diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 4a944550e5..38e41e4804 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1942,7 +1942,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-classic-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 881e3e4fb0..a789404f7a 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1942,7 +1942,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-modern-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index dc41a7a2c0..9df47ee171 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index ade0969bbc..8e4556d838 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index b82f3f848d..9402d1eea4 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 12bd3047d7..af64d265df 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 66f3e23fdc..3a5aad01d9 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -712,18 +712,6 @@ __DEV__ && null === memoizedState.dehydrated ); } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } function childrenAsString(children) { return children ? "string" === typeof children @@ -10206,66 +10194,35 @@ __DEV__ && ); } } - function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = null; - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) - doesFiberContain(firstChild[i], focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); + function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== child) + (child.return = fiber), (nextEffect = child); else - for (; null !== nextEffect; ) { - firstChild = root = nextEffect; - i = firstChild.alternate; - var flags = firstChild.flags; - if ( - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle - ) { - var JSCompiler_temp; - if ((JSCompiler_temp = 13 === firstChild.tag)) - a: { - if ( - null !== i && - ((JSCompiler_temp = i.memoizedState), - null === JSCompiler_temp || - null !== JSCompiler_temp.dehydrated) - ) { - JSCompiler_temp = firstChild.memoizedState; - JSCompiler_temp = - null !== JSCompiler_temp && - null === JSCompiler_temp.dehydrated; - break a; - } - JSCompiler_temp = !1; - } - JSCompiler_temp && - doesFiberContain(firstChild, focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - } - switch (firstChild.tag) { + a: for (; null !== nextEffect; ) { + child = fiber = nextEffect; + var current = child.alternate, + flags = child.flags; + switch (child.tag) { case 0: if ( 0 !== (flags & 4) && - ((firstChild = firstChild.updateQueue), - (firstChild = null !== firstChild ? firstChild.events : null), - null !== firstChild) + ((child = child.updateQueue), + (child = null !== child ? child.events : null), + null !== child) ) - for (i = 0; i < firstChild.length; i++) - (flags = firstChild[i]), (flags.ref.impl = flags.nextImpl); + for (current = 0; current < child.length; current++) + (flags = child[current]), (flags.ref.impl = flags.nextImpl); break; case 11: case 15: break; case 1: 0 !== (flags & 1024) && - null !== i && - commitClassSnapshot(firstChild, i); + null !== current && + commitClassSnapshot(child, current); break; case 3: break; @@ -10282,19 +10239,15 @@ __DEV__ && "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + child = fiber.sibling; + if (null !== child) { + child.return = fiber.return; + nextEffect = child; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return root; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -13455,7 +13408,8 @@ __DEV__ && (currentUpdatePriority = DiscreteEventPriority), (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), commitMutationEffects(root, finishedWork, lanes), (root.current = finishedWork), enableSchedulingProfiler && @@ -16590,8 +16544,6 @@ __DEV__ && nextEffect = null, inProgressLanes = null, inProgressRoot = null, - focusedInstanceHandle = null, - shouldFireAfterActiveInstanceBlur = !1, hostParent = null, hostParentIsContainer = !1, suspenseyCommitFlag = 8192, @@ -16903,10 +16855,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16940,7 +16892,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-classic-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 87c0b4da55..862233b98b 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -698,18 +698,6 @@ __DEV__ && null === memoizedState.dehydrated ); } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } function childrenAsString(children) { return children ? "string" === typeof children @@ -10010,66 +9998,35 @@ __DEV__ && ); } } - function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = null; - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) - doesFiberContain(firstChild[i], focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); + function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== child) + (child.return = fiber), (nextEffect = child); else - for (; null !== nextEffect; ) { - firstChild = root = nextEffect; - i = firstChild.alternate; - var flags = firstChild.flags; - if ( - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle - ) { - var JSCompiler_temp; - if ((JSCompiler_temp = 13 === firstChild.tag)) - a: { - if ( - null !== i && - ((JSCompiler_temp = i.memoizedState), - null === JSCompiler_temp || - null !== JSCompiler_temp.dehydrated) - ) { - JSCompiler_temp = firstChild.memoizedState; - JSCompiler_temp = - null !== JSCompiler_temp && - null === JSCompiler_temp.dehydrated; - break a; - } - JSCompiler_temp = !1; - } - JSCompiler_temp && - doesFiberContain(firstChild, focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - } - switch (firstChild.tag) { + a: for (; null !== nextEffect; ) { + child = fiber = nextEffect; + var current = child.alternate, + flags = child.flags; + switch (child.tag) { case 0: if ( 0 !== (flags & 4) && - ((firstChild = firstChild.updateQueue), - (firstChild = null !== firstChild ? firstChild.events : null), - null !== firstChild) + ((child = child.updateQueue), + (child = null !== child ? child.events : null), + null !== child) ) - for (i = 0; i < firstChild.length; i++) - (flags = firstChild[i]), (flags.ref.impl = flags.nextImpl); + for (current = 0; current < child.length; current++) + (flags = child[current]), (flags.ref.impl = flags.nextImpl); break; case 11: case 15: break; case 1: 0 !== (flags & 1024) && - null !== i && - commitClassSnapshot(firstChild, i); + null !== current && + commitClassSnapshot(child, current); break; case 3: break; @@ -10086,19 +10043,15 @@ __DEV__ && "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + child = fiber.sibling; + if (null !== child) { + child.return = fiber.return; + nextEffect = child; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return root; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -13255,7 +13208,8 @@ __DEV__ && (currentUpdatePriority = DiscreteEventPriority), (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), commitMutationEffects(root, finishedWork, lanes), (root.current = finishedWork), enableSchedulingProfiler && @@ -16353,8 +16307,6 @@ __DEV__ && nextEffect = null, inProgressLanes = null, inProgressRoot = null, - focusedInstanceHandle = null, - shouldFireAfterActiveInstanceBlur = !1, hostParent = null, hostParentIsContainer = !1, suspenseyCommitFlag = 8192, @@ -16666,10 +16618,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16703,7 +16655,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-modern-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index cfdfce22b3..3c098d27eb 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -449,18 +449,6 @@ function isFiberSuspenseAndTimedOut(fiber) { null === memoizedState.dehydrated ); } -function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; -} var isArrayImpl = Array.isArray, TYPES = { CLIPPING_RECTANGLE: "ClippingRectangle", @@ -7282,87 +7270,59 @@ function insertOrAppendPlacementNode(node, before, parent) { var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null, - focusedInstanceHandle = null, - shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = null; - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) - doesFiberContain(firstChild[i], focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); + nextEffect = null; +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== child) + (child.return = fiber), (nextEffect = child); else - for (; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.alternate; - i = root.flags; - if ( - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle - ) { - var JSCompiler_temp; - if ((JSCompiler_temp = 13 === root.tag)) - a: { - if ( - null !== firstChild && - ((JSCompiler_temp = firstChild.memoizedState), - null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) - ) { - JSCompiler_temp = root.memoizedState; - JSCompiler_temp = - null !== JSCompiler_temp && - null === JSCompiler_temp.dehydrated; - break a; - } - JSCompiler_temp = !1; - } - JSCompiler_temp && - doesFiberContain(root, focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - } - switch (root.tag) { + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + child = void 0; + var finishedWork = fiber, + current = finishedWork.alternate, + flags = finishedWork.flags; + switch (finishedWork.tag) { case 0: if ( - 0 !== (i & 4) && - ((firstChild = root.updateQueue), - (firstChild = null !== firstChild ? firstChild.events : null), - null !== firstChild) + 0 !== (flags & 4) && + ((child = finishedWork.updateQueue), + (child = null !== child ? child.events : null), + null !== child) ) - for (i = 0; i < firstChild.length; i++) - (JSCompiler_temp = firstChild[i]), - (JSCompiler_temp.ref.impl = JSCompiler_temp.nextImpl); + for ( + finishedWork = 0; + finishedWork < child.length; + finishedWork++ + ) + (flags = child[finishedWork]), + (flags.ref.impl = flags.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (i & 1024) && null !== firstChild) { - i = void 0; - JSCompiler_temp = root; - var prevProps = firstChild.memoizedProps; - firstChild = firstChild.memoizedState; - var instance = JSCompiler_temp.stateNode; + if (0 !== (flags & 1024) && null !== current) { + flags = current.memoizedProps; + current = current.memoizedState; + var instance = finishedWork.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - JSCompiler_temp.type, - prevProps, - JSCompiler_temp.elementType === JSCompiler_temp.type + finishedWork.type, + flags, + finishedWork.elementType === finishedWork.type ); - i = instance.getSnapshotBeforeUpdate( + child = instance.getSnapshotBeforeUpdate( resolvedPrevProps, - firstChild + current ); - instance.__reactInternalSnapshotBeforeUpdate = i; + instance.__reactInternalSnapshotBeforeUpdate = child; } catch (error) { captureCommitPhaseError( - JSCompiler_temp, - JSCompiler_temp.return, + finishedWork, + finishedWork.return, error ); } @@ -7378,21 +7338,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (i & 1024)) throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + child = fiber.sibling; + if (null !== child) { + child.return = fiber.return; + nextEffect = child; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -9997,7 +9953,8 @@ function commitRootImpl( (currentUpdatePriority = 2), (suspendedRetryLanes = executionContext), (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), commitMutationEffectsOnFiber(finishedWork, root), (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), @@ -10785,24 +10742,24 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1507 = { +var internals$jscomp$inline_1509 = { bundleType: 0, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1508 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1510 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1508.isDisabled && - hook$jscomp$inline_1508.supportsFiber + !hook$jscomp$inline_1510.isDisabled && + hook$jscomp$inline_1510.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1508.inject( - internals$jscomp$inline_1507 + (rendererID = hook$jscomp$inline_1510.inject( + internals$jscomp$inline_1509 )), - (injectedHook = hook$jscomp$inline_1508); + (injectedHook = hook$jscomp$inline_1510); } catch (err) {} } var Path = Mode$1.Path; @@ -10816,4 +10773,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 22af0384af..d8b777a1bd 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -370,18 +370,6 @@ function isFiberSuspenseAndTimedOut(fiber) { null === memoizedState.dehydrated ); } -function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; -} var isArrayImpl = Array.isArray, TYPES = { CLIPPING_RECTANGLE: "ClippingRectangle", @@ -7042,87 +7030,59 @@ function insertOrAppendPlacementNode(node, before, parent) { var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, - nextEffect = null, - focusedInstanceHandle = null, - shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = null; - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) - doesFiberContain(firstChild[i], focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); + nextEffect = null; +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== child) + (child.return = fiber), (nextEffect = child); else - for (; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.alternate; - i = root.flags; - if ( - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle - ) { - var JSCompiler_temp; - if ((JSCompiler_temp = 13 === root.tag)) - a: { - if ( - null !== firstChild && - ((JSCompiler_temp = firstChild.memoizedState), - null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) - ) { - JSCompiler_temp = root.memoizedState; - JSCompiler_temp = - null !== JSCompiler_temp && - null === JSCompiler_temp.dehydrated; - break a; - } - JSCompiler_temp = !1; - } - JSCompiler_temp && - doesFiberContain(root, focusedInstanceHandle) && - (shouldFireAfterActiveInstanceBlur = !0); - } - switch (root.tag) { + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + child = void 0; + var finishedWork = fiber, + current = finishedWork.alternate, + flags = finishedWork.flags; + switch (finishedWork.tag) { case 0: if ( - 0 !== (i & 4) && - ((firstChild = root.updateQueue), - (firstChild = null !== firstChild ? firstChild.events : null), - null !== firstChild) + 0 !== (flags & 4) && + ((child = finishedWork.updateQueue), + (child = null !== child ? child.events : null), + null !== child) ) - for (i = 0; i < firstChild.length; i++) - (JSCompiler_temp = firstChild[i]), - (JSCompiler_temp.ref.impl = JSCompiler_temp.nextImpl); + for ( + finishedWork = 0; + finishedWork < child.length; + finishedWork++ + ) + (flags = child[finishedWork]), + (flags.ref.impl = flags.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (i & 1024) && null !== firstChild) { - i = void 0; - JSCompiler_temp = root; - var prevProps = firstChild.memoizedProps; - firstChild = firstChild.memoizedState; - var instance = JSCompiler_temp.stateNode; + if (0 !== (flags & 1024) && null !== current) { + flags = current.memoizedProps; + current = current.memoizedState; + var instance = finishedWork.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - JSCompiler_temp.type, - prevProps, - JSCompiler_temp.elementType === JSCompiler_temp.type + finishedWork.type, + flags, + finishedWork.elementType === finishedWork.type ); - i = instance.getSnapshotBeforeUpdate( + child = instance.getSnapshotBeforeUpdate( resolvedPrevProps, - firstChild + current ); - instance.__reactInternalSnapshotBeforeUpdate = i; + instance.__reactInternalSnapshotBeforeUpdate = child; } catch (error) { captureCommitPhaseError( - JSCompiler_temp, - JSCompiler_temp.return, + finishedWork, + finishedWork.return, error ); } @@ -7138,21 +7098,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (i & 1024)) throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + child = fiber.sibling; + if (null !== child) { + child.return = fiber.return; + nextEffect = child; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -9753,7 +9709,8 @@ function commitRootImpl( (currentUpdatePriority = 2), (suspendedRetryLanes = executionContext), (executionContext |= 4), - commitBeforeMutationEffects(root, finishedWork), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), commitMutationEffectsOnFiber(finishedWork, root), (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), @@ -10501,24 +10458,24 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1486 = { +var internals$jscomp$inline_1488 = { bundleType: 0, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1487 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1489 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1487.isDisabled && - hook$jscomp$inline_1487.supportsFiber + !hook$jscomp$inline_1489.isDisabled && + hook$jscomp$inline_1489.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1487.inject( - internals$jscomp$inline_1486 + (rendererID = hook$jscomp$inline_1489.inject( + internals$jscomp$inline_1488 )), - (injectedHook = hook$jscomp$inline_1487); + (injectedHook = hook$jscomp$inline_1489); } catch (err) {} } var Path = Mode$1.Path; @@ -10532,4 +10489,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 523edc176e..8025ced6e0 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -12967,6 +12967,7 @@ __DEV__ && (root = getClosestInstanceFromNode(JSCompiler_temp)); _enabled = !1; focusedInstanceHandle = root; + shouldFireAfterActiveInstanceBlur = !1; for (nextEffect = firstChild; null !== nextEffect; ) { firstChild = nextEffect; root = firstChild.deletions; @@ -13078,10 +13079,7 @@ __DEV__ && nextEffect = firstChild.return; } } - firstChild = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; focusedInstanceHandle = null; - return firstChild; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -16620,44 +16618,41 @@ __DEV__ && (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = DiscreteEventPriority; - suspendedRetryLanes = executionContext; - executionContext |= CommitContext; - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = DiscreteEventPriority), + (suspendedRetryLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = spawnedLane) ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -27386,11 +27381,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-6ca7fbe8-20250102" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-d8b903f4-20250102" !== 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-www-classic-6ca7fbe8-20250102\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-d8b903f4-20250102\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27433,10 +27428,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28034,7 +28029,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-classic-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 0401490d23..b7ade60929 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -12766,6 +12766,7 @@ __DEV__ && (root = getClosestInstanceFromNode(JSCompiler_temp)); _enabled = !1; focusedInstanceHandle = root; + shouldFireAfterActiveInstanceBlur = !1; for (nextEffect = firstChild; null !== nextEffect; ) { firstChild = nextEffect; root = firstChild.deletions; @@ -12877,10 +12878,7 @@ __DEV__ && nextEffect = firstChild.return; } } - firstChild = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; focusedInstanceHandle = null; - return firstChild; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -16415,44 +16413,41 @@ __DEV__ && (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = DiscreteEventPriority; - suspendedRetryLanes = executionContext; - executionContext |= CommitContext; - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = DiscreteEventPriority), + (suspendedRetryLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = spawnedLane) ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -27165,11 +27160,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-6ca7fbe8-20250102" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-d8b903f4-20250102" !== 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-www-modern-6ca7fbe8-20250102\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-d8b903f4-20250102\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27212,10 +27207,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27813,7 +27808,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-modern-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index b02f72e4b1..e0fb7aa4ec 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -8691,191 +8691,105 @@ var offscreenSubtreeIsHidden = !1, nextEffect = null, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - root = root.containerInfo; - eventsEnabled = _enabled; - root = getActiveElementDeep(root); - if (hasSelectionCapabilities(root)) { - if ("selectionStart" in root) - var JSCompiler_temp = { - start: root.selectionStart, - end: root.selectionEnd - }; - else - a: { - JSCompiler_temp = - ((JSCompiler_temp = root.ownerDocument) && - JSCompiler_temp.defaultView) || - window; - var selection = - JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); - if (selection && 0 !== selection.rangeCount) { - JSCompiler_temp = selection.anchorNode; - var anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode; - selection = selection.focusOffset; - try { - JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$202) { - JSCompiler_temp = null; - break a; - } - var length = 0, - start = -1, - end = -1, - indexWithinAnchor = 0, - indexWithinFocus = 0, - node = root, - parentNode = null; - b: for (;;) { - for (var next; ; ) { - node !== JSCompiler_temp || - (0 !== anchorOffset && 3 !== node.nodeType) || - (start = length + anchorOffset); - node !== focusNode || - (0 !== selection && 3 !== node.nodeType) || - (end = length + selection); - 3 === node.nodeType && (length += node.nodeValue.length); - if (null === (next = node.firstChild)) break; - parentNode = node; - node = next; - } - for (;;) { - if (node === root) break b; - parentNode === JSCompiler_temp && - ++indexWithinAnchor === anchorOffset && - (start = length); - parentNode === focusNode && - ++indexWithinFocus === selection && - (end = length); - if (null !== (next = node.nextSibling)) break; - node = parentNode; - parentNode = node.parentNode; - } - node = next; - } - JSCompiler_temp = - -1 === start || -1 === end ? null : { start: start, end: end }; - } else JSCompiler_temp = null; - } - JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; - } else JSCompiler_temp = null; - selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; - root = null; - JSCompiler_temp = selectionInformation.focusedElem; - null !== JSCompiler_temp && - (root = getClosestInstanceFromNode(JSCompiler_temp)); - _enabled = !1; - focusedInstanceHandle = root; - for (nextEffect = firstChild; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.deletions; - if (null !== root) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - doesFiberContain(anchorOffset, focusedInstanceHandle) && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(anchorOffset)); - root = firstChild.child; - if (0 !== (firstChild.subtreeFlags & 9236) && null !== root) - (root.return = firstChild), (nextEffect = root); - else - for (; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.alternate; - JSCompiler_temp = firstChild.flags; - if ( - (anchorOffset = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) - ) { - if ((anchorOffset = 13 === firstChild.tag)) - a: { - if ( - null !== root && - ((anchorOffset = root.memoizedState), - null === anchorOffset || null !== anchorOffset.dehydrated) - ) { - anchorOffset = firstChild.memoizedState; - anchorOffset = - null !== anchorOffset && null === anchorOffset.dehydrated; - break a; - } - anchorOffset = !1; - } - anchorOffset = - anchorOffset && doesFiberContain(firstChild, focusedInstanceHandle); - } - anchorOffset && +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; + doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(firstChild)); - switch (firstChild.tag) { + beforeActiveInstanceBlur(deletion)); + } + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); + else + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; + if ( + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle + ) { + if ((JSCompiler_temp = 13 === i.tag)) + b: { + if ( + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) + ) { + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; + } + JSCompiler_temp = !1; + } + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); + } + switch (i.tag) { case 0: if ( - 0 !== (JSCompiler_temp & 4) && - ((root = firstChild.updateQueue), - (root = null !== root ? root.events : null), - null !== root) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - (anchorOffset.ref.impl = anchorOffset.nextImpl); + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), + (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (JSCompiler_temp & 1024) && null !== root) { - JSCompiler_temp = void 0; - anchorOffset = firstChild; - focusNode = root.memoizedProps; - root = root.memoizedState; - selection = anchorOffset.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - anchorOffset.type, - focusNode, - anchorOffset.elementType === anchorOffset.type + i.type, + flags, + i.elementType === i.type ); - JSCompiler_temp = selection.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - root + deletion ); - selection.__reactInternalSnapshotBeforeUpdate = JSCompiler_temp; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = deletions; } catch (error) { - captureCommitPhaseError( - anchorOffset, - anchorOffset.return, - error - ); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - if (0 !== (JSCompiler_temp & 1024)) - if ( - ((root = firstChild.stateNode.containerInfo), - (JSCompiler_temp = root.nodeType), - 9 === JSCompiler_temp) + if (0 !== (flags & 1024)) + b: if ( + ((deletions = i.stateNode.containerInfo), + (i = deletions.nodeType), + 9 === i) ) - clearContainerSparingly(root); - else if (1 === JSCompiler_temp) - switch (root.nodeName) { + clearContainerSparingly(deletions); + else if (1 === i) + switch (deletions.nodeName) { case "HEAD": case "HTML": case "BODY": - clearContainerSparingly(root); - break; + clearContainerSparingly(deletions); + break b; default: - root.textContent = ""; + deletions.textContent = ""; } break; case 5: @@ -8886,22 +8800,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (JSCompiler_temp & 1024)) - throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - root = firstChild.sibling; - if (null !== root) { - root.return = firstChild.return; - nextEffect = root; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = firstChild.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -11904,32 +11813,33 @@ function commitRootImpl( (root.callbackPriority = 0), (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = 2; - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$196 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$196 && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = 2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffectsOnFiber(finishedWork, root), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -11986,7 +11896,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$197 = rootWithPendingPassiveEffects, + var root$196 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12001,7 +11911,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$197, remainingLanes); + releaseRootPooledCache(root$196, remainingLanes); } } return !1; @@ -13238,14 +13148,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$352; if (canUseDOM) { - var isSupported$jscomp$inline_1556 = "oninput" in document; - if (!isSupported$jscomp$inline_1556) { - var element$jscomp$inline_1557 = document.createElement("div"); - element$jscomp$inline_1557.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1556 = - "function" === typeof element$jscomp$inline_1557.oninput; + var isSupported$jscomp$inline_1560 = "oninput" in document; + if (!isSupported$jscomp$inline_1560) { + var element$jscomp$inline_1561 = document.createElement("div"); + element$jscomp$inline_1561.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1560 = + "function" === typeof element$jscomp$inline_1561.oninput; } - JSCompiler_inline_result$jscomp$352 = isSupported$jscomp$inline_1556; + JSCompiler_inline_result$jscomp$352 = isSupported$jscomp$inline_1560; } else JSCompiler_inline_result$jscomp$352 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$352 && @@ -13659,20 +13569,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1597 = 0; - i$jscomp$inline_1597 < simpleEventPluginEvents.length; - i$jscomp$inline_1597++ + var i$jscomp$inline_1601 = 0; + i$jscomp$inline_1601 < simpleEventPluginEvents.length; + i$jscomp$inline_1601++ ) { - var eventName$jscomp$inline_1598 = - simpleEventPluginEvents[i$jscomp$inline_1597], - domEventName$jscomp$inline_1599 = - eventName$jscomp$inline_1598.toLowerCase(), - capitalizedEvent$jscomp$inline_1600 = - eventName$jscomp$inline_1598[0].toUpperCase() + - eventName$jscomp$inline_1598.slice(1); + var eventName$jscomp$inline_1602 = + simpleEventPluginEvents[i$jscomp$inline_1601], + domEventName$jscomp$inline_1603 = + eventName$jscomp$inline_1602.toLowerCase(), + capitalizedEvent$jscomp$inline_1604 = + eventName$jscomp$inline_1602[0].toUpperCase() + + eventName$jscomp$inline_1602.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1599, - "on" + capitalizedEvent$jscomp$inline_1600 + domEventName$jscomp$inline_1603, + "on" + capitalizedEvent$jscomp$inline_1604 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14965,34 +14875,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$216 = props[hasSrc]; - if (null != propValue$216) + var propValue$215 = props[hasSrc]; + if (null != propValue$215) switch (hasSrc) { case "name": - hasSrcSet = propValue$216; + hasSrcSet = propValue$215; break; case "type": - propValue = propValue$216; + propValue = propValue$215; break; case "checked": - checked = propValue$216; + checked = propValue$215; break; case "defaultChecked": - defaultChecked = propValue$216; + defaultChecked = propValue$215; break; case "value": - propKey = propValue$216; + propKey = propValue$215; break; case "defaultValue": - defaultValue = propValue$216; + defaultValue = propValue$215; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$216) + if (null != propValue$215) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$216, props, null); + setProp(domElement, tag, hasSrc, propValue$215, props, null); } } initInput( @@ -15129,14 +15039,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$216 in props) - props.hasOwnProperty(propValue$216) && - ((hasSrc = props[propValue$216]), + for (propValue$215 in props) + props.hasOwnProperty(propValue$215) && + ((hasSrc = props[propValue$215]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$216, + propValue$215, hasSrc, props, void 0 @@ -15184,14 +15094,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$233 in nextProps) { - var propKey = nextProps[propKey$233]; - lastProp = lastProps[propKey$233]; + for (var propKey$232 in nextProps) { + var propKey = nextProps[propKey$232]; + lastProp = lastProps[propKey$232]; if ( - nextProps.hasOwnProperty(propKey$233) && + nextProps.hasOwnProperty(propKey$232) && (null != propKey || null != lastProp) ) - switch (propKey$233) { + switch (propKey$232) { case "type": type = propKey; break; @@ -15220,7 +15130,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$233, + propKey$232, propKey, nextProps, lastProp @@ -15239,7 +15149,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$233 = null; + propKey = value = defaultValue = propKey$232 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15270,7 +15180,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$233 = type; + propKey$232 = type; break; case "defaultValue": defaultValue = type; @@ -15291,15 +15201,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$233 - ? updateOptions(domElement, !!lastProps, propKey$233, !1) + null != propKey$232 + ? updateOptions(domElement, !!lastProps, propKey$232, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$233 = null; + propKey = propKey$232 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15323,7 +15233,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$233 = name; + propKey$232 = name; break; case "defaultValue": propKey = name; @@ -15337,17 +15247,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$233, propKey); + updateTextarea(domElement, propKey$232, propKey); return; case "option": - for (var propKey$249 in lastProps) + for (var propKey$248 in lastProps) if ( - ((propKey$233 = lastProps[propKey$249]), - lastProps.hasOwnProperty(propKey$249) && - null != propKey$233 && - !nextProps.hasOwnProperty(propKey$249)) + ((propKey$232 = lastProps[propKey$248]), + lastProps.hasOwnProperty(propKey$248) && + null != propKey$232 && + !nextProps.hasOwnProperty(propKey$248)) ) - switch (propKey$249) { + switch (propKey$248) { case "selected": domElement.selected = !1; break; @@ -15355,33 +15265,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$249, + propKey$248, null, nextProps, - propKey$233 + propKey$232 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$233 = nextProps[lastDefaultValue]), + ((propKey$232 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$233 !== propKey && - (null != propKey$233 || null != propKey)) + propKey$232 !== propKey && + (null != propKey$232 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$233 && - "function" !== typeof propKey$233 && - "symbol" !== typeof propKey$233; + propKey$232 && + "function" !== typeof propKey$232 && + "symbol" !== typeof propKey$232; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$233, + propKey$232, nextProps, propKey ); @@ -15402,24 +15312,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$254 in lastProps) - (propKey$233 = lastProps[propKey$254]), - lastProps.hasOwnProperty(propKey$254) && - null != propKey$233 && - !nextProps.hasOwnProperty(propKey$254) && - setProp(domElement, tag, propKey$254, null, nextProps, propKey$233); + for (var propKey$253 in lastProps) + (propKey$232 = lastProps[propKey$253]), + lastProps.hasOwnProperty(propKey$253) && + null != propKey$232 && + !nextProps.hasOwnProperty(propKey$253) && + setProp(domElement, tag, propKey$253, null, nextProps, propKey$232); for (checked in nextProps) if ( - ((propKey$233 = nextProps[checked]), + ((propKey$232 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$233 !== propKey && - (null != propKey$233 || null != propKey)) + propKey$232 !== propKey && + (null != propKey$232 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$233) + if (null != propKey$232) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15427,7 +15337,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$233, + propKey$232, nextProps, propKey ); @@ -15435,49 +15345,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$259 in lastProps) - (propKey$233 = lastProps[propKey$259]), - lastProps.hasOwnProperty(propKey$259) && - void 0 !== propKey$233 && - !nextProps.hasOwnProperty(propKey$259) && + for (var propKey$258 in lastProps) + (propKey$232 = lastProps[propKey$258]), + lastProps.hasOwnProperty(propKey$258) && + void 0 !== propKey$232 && + !nextProps.hasOwnProperty(propKey$258) && setPropOnCustomElement( domElement, tag, - propKey$259, + propKey$258, void 0, nextProps, - propKey$233 + propKey$232 ); for (defaultChecked in nextProps) - (propKey$233 = nextProps[defaultChecked]), + (propKey$232 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$233 === propKey || - (void 0 === propKey$233 && void 0 === propKey) || + propKey$232 === propKey || + (void 0 === propKey$232 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$233, + propKey$232, nextProps, propKey ); return; } } - for (var propKey$264 in lastProps) - (propKey$233 = lastProps[propKey$264]), - lastProps.hasOwnProperty(propKey$264) && - null != propKey$233 && - !nextProps.hasOwnProperty(propKey$264) && - setProp(domElement, tag, propKey$264, null, nextProps, propKey$233); + for (var propKey$263 in lastProps) + (propKey$232 = lastProps[propKey$263]), + lastProps.hasOwnProperty(propKey$263) && + null != propKey$232 && + !nextProps.hasOwnProperty(propKey$263) && + setProp(domElement, tag, propKey$263, null, nextProps, propKey$232); for (lastProp in nextProps) - (propKey$233 = nextProps[lastProp]), + (propKey$232 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$233 === propKey || - (null == propKey$233 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$233, nextProps, propKey); + propKey$232 === propKey || + (null == propKey$232 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$232, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15510,6 +15420,85 @@ function getChildHostContextProd(parentNamespace, type) { ? 0 : parentNamespace; } +function prepareForCommit(containerInfo) { + eventsEnabled = _enabled; + containerInfo = getActiveElementDeep(containerInfo); + if (hasSelectionCapabilities(containerInfo)) { + if ("selectionStart" in containerInfo) + var JSCompiler_temp = { + start: containerInfo.selectionStart, + end: containerInfo.selectionEnd + }; + else + a: { + JSCompiler_temp = + ((JSCompiler_temp = containerInfo.ownerDocument) && + JSCompiler_temp.defaultView) || + window; + var selection = + JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); + if (selection && 0 !== selection.rangeCount) { + JSCompiler_temp = selection.anchorNode; + var anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode; + selection = selection.focusOffset; + try { + JSCompiler_temp.nodeType, focusNode.nodeType; + } catch (e$201) { + JSCompiler_temp = null; + break a; + } + var length = 0, + start = -1, + end = -1, + indexWithinAnchor = 0, + indexWithinFocus = 0, + node = containerInfo, + parentNode = null; + b: for (;;) { + for (var next; ; ) { + node !== JSCompiler_temp || + (0 !== anchorOffset && 3 !== node.nodeType) || + (start = length + anchorOffset); + node !== focusNode || + (0 !== selection && 3 !== node.nodeType) || + (end = length + selection); + 3 === node.nodeType && (length += node.nodeValue.length); + if (null === (next = node.firstChild)) break; + parentNode = node; + node = next; + } + for (;;) { + if (node === containerInfo) break b; + parentNode === JSCompiler_temp && + ++indexWithinAnchor === anchorOffset && + (start = length); + parentNode === focusNode && + ++indexWithinFocus === selection && + (end = length); + if (null !== (next = node.nextSibling)) break; + node = parentNode; + parentNode = node.parentNode; + } + node = next; + } + JSCompiler_temp = + -1 === start || -1 === end ? null : { start: start, end: end }; + } else JSCompiler_temp = null; + } + JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; + } else JSCompiler_temp = null; + selectionInformation = { + focusedElem: containerInfo, + selectionRange: JSCompiler_temp + }; + containerInfo = null; + JSCompiler_temp = selectionInformation.focusedElem; + null !== JSCompiler_temp && + (containerInfo = getClosestInstanceFromNode(JSCompiler_temp)); + _enabled = !1; + return containerInfo; +} function beforeActiveInstanceBlur(internalInstanceHandle) { _enabled = !0; var target = selectionInformation.focusedElem, @@ -16074,26 +16063,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$272 = getResourcesFromRoot( + var styles$271 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$273 = styles$272.get(type); - resource$273 || + resource$272 = styles$271.get(type); + resource$272 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$273 = { + (resource$272 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$272.set(type, resource$273), - (styles$272 = JSCompiler_inline_result.querySelector( + styles$271.set(type, resource$272), + (styles$271 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$272._p && - ((resource$273.instance = styles$272), - (resource$273.state.loading = 5)), + !styles$271._p && + ((resource$272.instance = styles$271), + (resource$272.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16106,16 +16095,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$272 || + styles$271 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$273.state + resource$272.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$273; + return resource$272; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16212,37 +16201,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$278 = hoistableRoot.querySelector( + var instance$277 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$278) + if (instance$277) return ( (resource.state.loading |= 4), - (resource.instance = instance$278), - markNodeAsHoistable(instance$278), - instance$278 + (resource.instance = instance$277), + markNodeAsHoistable(instance$277), + instance$277 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$278 = ( + instance$277 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$278); - var linkInstance = instance$278; + markNodeAsHoistable(instance$277); + var linkInstance = instance$277; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$278, "link", instance); + setInitialProperties(instance$277, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$278, props.precedence, hoistableRoot); - return (resource.instance = instance$278); + insertStylesheet(instance$277, props.precedence, hoistableRoot); + return (resource.instance = instance$277); case "script": - instance$278 = getScriptKey(props.src); + instance$277 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$278) + getScriptSelectorFromKey(instance$277) )) ) return ( @@ -16251,7 +16240,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$278))) + if ((styleProps = preloadPropsMap.get(instance$277))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17255,16 +17244,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1770 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1777 = React.version; if ( - "19.1.0-www-classic-6ca7fbe8-20250102" !== - isomorphicReactPackageVersion$jscomp$inline_1770 + "19.1.0-www-classic-d8b903f4-20250102" !== + isomorphicReactPackageVersion$jscomp$inline_1777 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1770, - "19.1.0-www-classic-6ca7fbe8-20250102" + isomorphicReactPackageVersion$jscomp$inline_1777, + "19.1.0-www-classic-d8b903f4-20250102" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17280,24 +17269,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2307 = { +var internals$jscomp$inline_2318 = { bundleType: 0, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2308 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2319 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2308.isDisabled && - hook$jscomp$inline_2308.supportsFiber + !hook$jscomp$inline_2319.isDisabled && + hook$jscomp$inline_2319.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2308.inject( - internals$jscomp$inline_2307 + (rendererID = hook$jscomp$inline_2319.inject( + internals$jscomp$inline_2318 )), - (injectedHook = hook$jscomp$inline_2308); + (injectedHook = hook$jscomp$inline_2319); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17650,4 +17639,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index e663097e80..ae0f22ca58 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -8442,191 +8442,105 @@ var offscreenSubtreeIsHidden = !1, nextEffect = null, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - root = root.containerInfo; - eventsEnabled = _enabled; - root = getActiveElementDeep(root); - if (hasSelectionCapabilities(root)) { - if ("selectionStart" in root) - var JSCompiler_temp = { - start: root.selectionStart, - end: root.selectionEnd - }; - else - a: { - JSCompiler_temp = - ((JSCompiler_temp = root.ownerDocument) && - JSCompiler_temp.defaultView) || - window; - var selection = - JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); - if (selection && 0 !== selection.rangeCount) { - JSCompiler_temp = selection.anchorNode; - var anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode; - selection = selection.focusOffset; - try { - JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$202) { - JSCompiler_temp = null; - break a; - } - var length = 0, - start = -1, - end = -1, - indexWithinAnchor = 0, - indexWithinFocus = 0, - node = root, - parentNode = null; - b: for (;;) { - for (var next; ; ) { - node !== JSCompiler_temp || - (0 !== anchorOffset && 3 !== node.nodeType) || - (start = length + anchorOffset); - node !== focusNode || - (0 !== selection && 3 !== node.nodeType) || - (end = length + selection); - 3 === node.nodeType && (length += node.nodeValue.length); - if (null === (next = node.firstChild)) break; - parentNode = node; - node = next; - } - for (;;) { - if (node === root) break b; - parentNode === JSCompiler_temp && - ++indexWithinAnchor === anchorOffset && - (start = length); - parentNode === focusNode && - ++indexWithinFocus === selection && - (end = length); - if (null !== (next = node.nextSibling)) break; - node = parentNode; - parentNode = node.parentNode; - } - node = next; - } - JSCompiler_temp = - -1 === start || -1 === end ? null : { start: start, end: end }; - } else JSCompiler_temp = null; - } - JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; - } else JSCompiler_temp = null; - selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; - root = null; - JSCompiler_temp = selectionInformation.focusedElem; - null !== JSCompiler_temp && - (root = getClosestInstanceFromNode(JSCompiler_temp)); - _enabled = !1; - focusedInstanceHandle = root; - for (nextEffect = firstChild; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.deletions; - if (null !== root) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - doesFiberContain(anchorOffset, focusedInstanceHandle) && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(anchorOffset)); - root = firstChild.child; - if (0 !== (firstChild.subtreeFlags & 9236) && null !== root) - (root.return = firstChild), (nextEffect = root); - else - for (; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.alternate; - JSCompiler_temp = firstChild.flags; - if ( - (anchorOffset = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) - ) { - if ((anchorOffset = 13 === firstChild.tag)) - a: { - if ( - null !== root && - ((anchorOffset = root.memoizedState), - null === anchorOffset || null !== anchorOffset.dehydrated) - ) { - anchorOffset = firstChild.memoizedState; - anchorOffset = - null !== anchorOffset && null === anchorOffset.dehydrated; - break a; - } - anchorOffset = !1; - } - anchorOffset = - anchorOffset && doesFiberContain(firstChild, focusedInstanceHandle); - } - anchorOffset && +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; + doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(firstChild)); - switch (firstChild.tag) { + beforeActiveInstanceBlur(deletion)); + } + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); + else + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; + if ( + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle + ) { + if ((JSCompiler_temp = 13 === i.tag)) + b: { + if ( + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) + ) { + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; + } + JSCompiler_temp = !1; + } + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); + } + switch (i.tag) { case 0: if ( - 0 !== (JSCompiler_temp & 4) && - ((root = firstChild.updateQueue), - (root = null !== root ? root.events : null), - null !== root) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - (anchorOffset.ref.impl = anchorOffset.nextImpl); + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), + (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (JSCompiler_temp & 1024) && null !== root) { - JSCompiler_temp = void 0; - anchorOffset = firstChild; - focusNode = root.memoizedProps; - root = root.memoizedState; - selection = anchorOffset.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - anchorOffset.type, - focusNode, - anchorOffset.elementType === anchorOffset.type + i.type, + flags, + i.elementType === i.type ); - JSCompiler_temp = selection.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - root + deletion ); - selection.__reactInternalSnapshotBeforeUpdate = JSCompiler_temp; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = deletions; } catch (error) { - captureCommitPhaseError( - anchorOffset, - anchorOffset.return, - error - ); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - if (0 !== (JSCompiler_temp & 1024)) - if ( - ((root = firstChild.stateNode.containerInfo), - (JSCompiler_temp = root.nodeType), - 9 === JSCompiler_temp) + if (0 !== (flags & 1024)) + b: if ( + ((deletions = i.stateNode.containerInfo), + (i = deletions.nodeType), + 9 === i) ) - clearContainerSparingly(root); - else if (1 === JSCompiler_temp) - switch (root.nodeName) { + clearContainerSparingly(deletions); + else if (1 === i) + switch (deletions.nodeName) { case "HEAD": case "HTML": case "BODY": - clearContainerSparingly(root); - break; + clearContainerSparingly(deletions); + break b; default: - root.textContent = ""; + deletions.textContent = ""; } break; case 5: @@ -8637,22 +8551,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (JSCompiler_temp & 1024)) - throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - root = firstChild.sibling; - if (null !== root) { - root.return = firstChild.return; - nextEffect = root; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = firstChild.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -11651,32 +11560,33 @@ function commitRootImpl( (root.callbackPriority = 0), (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = 2; - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$196 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$196 && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = 2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffectsOnFiber(finishedWork, root), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -11733,7 +11643,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$197 = rootWithPendingPassiveEffects, + var root$196 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11748,7 +11658,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$197, remainingLanes); + releaseRootPooledCache(root$196, remainingLanes); } } return !1; @@ -12974,14 +12884,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$355; if (canUseDOM) { - var isSupported$jscomp$inline_1546 = "oninput" in document; - if (!isSupported$jscomp$inline_1546) { - var element$jscomp$inline_1547 = document.createElement("div"); - element$jscomp$inline_1547.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1546 = - "function" === typeof element$jscomp$inline_1547.oninput; + var isSupported$jscomp$inline_1550 = "oninput" in document; + if (!isSupported$jscomp$inline_1550) { + var element$jscomp$inline_1551 = document.createElement("div"); + element$jscomp$inline_1551.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1550 = + "function" === typeof element$jscomp$inline_1551.oninput; } - JSCompiler_inline_result$jscomp$355 = isSupported$jscomp$inline_1546; + JSCompiler_inline_result$jscomp$355 = isSupported$jscomp$inline_1550; } else JSCompiler_inline_result$jscomp$355 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$355 && @@ -13395,20 +13305,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1587 = 0; - i$jscomp$inline_1587 < simpleEventPluginEvents.length; - i$jscomp$inline_1587++ + var i$jscomp$inline_1591 = 0; + i$jscomp$inline_1591 < simpleEventPluginEvents.length; + i$jscomp$inline_1591++ ) { - var eventName$jscomp$inline_1588 = - simpleEventPluginEvents[i$jscomp$inline_1587], - domEventName$jscomp$inline_1589 = - eventName$jscomp$inline_1588.toLowerCase(), - capitalizedEvent$jscomp$inline_1590 = - eventName$jscomp$inline_1588[0].toUpperCase() + - eventName$jscomp$inline_1588.slice(1); + var eventName$jscomp$inline_1592 = + simpleEventPluginEvents[i$jscomp$inline_1591], + domEventName$jscomp$inline_1593 = + eventName$jscomp$inline_1592.toLowerCase(), + capitalizedEvent$jscomp$inline_1594 = + eventName$jscomp$inline_1592[0].toUpperCase() + + eventName$jscomp$inline_1592.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1589, - "on" + capitalizedEvent$jscomp$inline_1590 + domEventName$jscomp$inline_1593, + "on" + capitalizedEvent$jscomp$inline_1594 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14697,34 +14607,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$216 = props[hasSrc]; - if (null != propValue$216) + var propValue$215 = props[hasSrc]; + if (null != propValue$215) switch (hasSrc) { case "name": - hasSrcSet = propValue$216; + hasSrcSet = propValue$215; break; case "type": - propKey = propValue$216; + propKey = propValue$215; break; case "checked": - checked = propValue$216; + checked = propValue$215; break; case "defaultChecked": - defaultChecked = propValue$216; + defaultChecked = propValue$215; break; case "value": - propValue = propValue$216; + propValue = propValue$215; break; case "defaultValue": - defaultValue = propValue$216; + defaultValue = propValue$215; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$216) + if (null != propValue$215) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$216, props, null); + setProp(domElement, tag, hasSrc, propValue$215, props, null); } } initInput( @@ -14860,14 +14770,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$216 in props) - props.hasOwnProperty(propValue$216) && - ((hasSrc = props[propValue$216]), + for (propValue$215 in props) + props.hasOwnProperty(propValue$215) && + ((hasSrc = props[propValue$215]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$216, + propValue$215, hasSrc, props, void 0 @@ -14915,14 +14825,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$233 in nextProps) { - var propKey = nextProps[propKey$233]; - lastProp = lastProps[propKey$233]; + for (var propKey$232 in nextProps) { + var propKey = nextProps[propKey$232]; + lastProp = lastProps[propKey$232]; if ( - nextProps.hasOwnProperty(propKey$233) && + nextProps.hasOwnProperty(propKey$232) && (null != propKey || null != lastProp) ) - switch (propKey$233) { + switch (propKey$232) { case "type": type = propKey; break; @@ -14951,7 +14861,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$233, + propKey$232, propKey, nextProps, lastProp @@ -14970,7 +14880,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$233 = null; + propKey = value = defaultValue = propKey$232 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15001,7 +14911,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$233 = type; + propKey$232 = type; break; case "defaultValue": defaultValue = type; @@ -15022,15 +14932,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$233 - ? updateOptions(domElement, !!lastProps, propKey$233, !1) + null != propKey$232 + ? updateOptions(domElement, !!lastProps, propKey$232, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$233 = null; + propKey = propKey$232 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15054,7 +14964,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$233 = name; + propKey$232 = name; break; case "defaultValue": propKey = name; @@ -15068,17 +14978,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$233, propKey); + updateTextarea(domElement, propKey$232, propKey); return; case "option": - for (var propKey$249 in lastProps) + for (var propKey$248 in lastProps) if ( - ((propKey$233 = lastProps[propKey$249]), - lastProps.hasOwnProperty(propKey$249) && - null != propKey$233 && - !nextProps.hasOwnProperty(propKey$249)) + ((propKey$232 = lastProps[propKey$248]), + lastProps.hasOwnProperty(propKey$248) && + null != propKey$232 && + !nextProps.hasOwnProperty(propKey$248)) ) - switch (propKey$249) { + switch (propKey$248) { case "selected": domElement.selected = !1; break; @@ -15086,33 +14996,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$249, + propKey$248, null, nextProps, - propKey$233 + propKey$232 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$233 = nextProps[lastDefaultValue]), + ((propKey$232 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$233 !== propKey && - (null != propKey$233 || null != propKey)) + propKey$232 !== propKey && + (null != propKey$232 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$233 && - "function" !== typeof propKey$233 && - "symbol" !== typeof propKey$233; + propKey$232 && + "function" !== typeof propKey$232 && + "symbol" !== typeof propKey$232; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$233, + propKey$232, nextProps, propKey ); @@ -15133,24 +15043,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$254 in lastProps) - (propKey$233 = lastProps[propKey$254]), - lastProps.hasOwnProperty(propKey$254) && - null != propKey$233 && - !nextProps.hasOwnProperty(propKey$254) && - setProp(domElement, tag, propKey$254, null, nextProps, propKey$233); + for (var propKey$253 in lastProps) + (propKey$232 = lastProps[propKey$253]), + lastProps.hasOwnProperty(propKey$253) && + null != propKey$232 && + !nextProps.hasOwnProperty(propKey$253) && + setProp(domElement, tag, propKey$253, null, nextProps, propKey$232); for (checked in nextProps) if ( - ((propKey$233 = nextProps[checked]), + ((propKey$232 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$233 !== propKey && - (null != propKey$233 || null != propKey)) + propKey$232 !== propKey && + (null != propKey$232 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$233) + if (null != propKey$232) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15158,7 +15068,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$233, + propKey$232, nextProps, propKey ); @@ -15166,49 +15076,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$259 in lastProps) - (propKey$233 = lastProps[propKey$259]), - lastProps.hasOwnProperty(propKey$259) && - void 0 !== propKey$233 && - !nextProps.hasOwnProperty(propKey$259) && + for (var propKey$258 in lastProps) + (propKey$232 = lastProps[propKey$258]), + lastProps.hasOwnProperty(propKey$258) && + void 0 !== propKey$232 && + !nextProps.hasOwnProperty(propKey$258) && setPropOnCustomElement( domElement, tag, - propKey$259, + propKey$258, void 0, nextProps, - propKey$233 + propKey$232 ); for (defaultChecked in nextProps) - (propKey$233 = nextProps[defaultChecked]), + (propKey$232 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$233 === propKey || - (void 0 === propKey$233 && void 0 === propKey) || + propKey$232 === propKey || + (void 0 === propKey$232 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$233, + propKey$232, nextProps, propKey ); return; } } - for (var propKey$264 in lastProps) - (propKey$233 = lastProps[propKey$264]), - lastProps.hasOwnProperty(propKey$264) && - null != propKey$233 && - !nextProps.hasOwnProperty(propKey$264) && - setProp(domElement, tag, propKey$264, null, nextProps, propKey$233); + for (var propKey$263 in lastProps) + (propKey$232 = lastProps[propKey$263]), + lastProps.hasOwnProperty(propKey$263) && + null != propKey$232 && + !nextProps.hasOwnProperty(propKey$263) && + setProp(domElement, tag, propKey$263, null, nextProps, propKey$232); for (lastProp in nextProps) - (propKey$233 = nextProps[lastProp]), + (propKey$232 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$233 === propKey || - (null == propKey$233 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$233, nextProps, propKey); + propKey$232 === propKey || + (null == propKey$232 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$232, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15241,6 +15151,85 @@ function getChildHostContextProd(parentNamespace, type) { ? 0 : parentNamespace; } +function prepareForCommit(containerInfo) { + eventsEnabled = _enabled; + containerInfo = getActiveElementDeep(containerInfo); + if (hasSelectionCapabilities(containerInfo)) { + if ("selectionStart" in containerInfo) + var JSCompiler_temp = { + start: containerInfo.selectionStart, + end: containerInfo.selectionEnd + }; + else + a: { + JSCompiler_temp = + ((JSCompiler_temp = containerInfo.ownerDocument) && + JSCompiler_temp.defaultView) || + window; + var selection = + JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); + if (selection && 0 !== selection.rangeCount) { + JSCompiler_temp = selection.anchorNode; + var anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode; + selection = selection.focusOffset; + try { + JSCompiler_temp.nodeType, focusNode.nodeType; + } catch (e$201) { + JSCompiler_temp = null; + break a; + } + var length = 0, + start = -1, + end = -1, + indexWithinAnchor = 0, + indexWithinFocus = 0, + node = containerInfo, + parentNode = null; + b: for (;;) { + for (var next; ; ) { + node !== JSCompiler_temp || + (0 !== anchorOffset && 3 !== node.nodeType) || + (start = length + anchorOffset); + node !== focusNode || + (0 !== selection && 3 !== node.nodeType) || + (end = length + selection); + 3 === node.nodeType && (length += node.nodeValue.length); + if (null === (next = node.firstChild)) break; + parentNode = node; + node = next; + } + for (;;) { + if (node === containerInfo) break b; + parentNode === JSCompiler_temp && + ++indexWithinAnchor === anchorOffset && + (start = length); + parentNode === focusNode && + ++indexWithinFocus === selection && + (end = length); + if (null !== (next = node.nextSibling)) break; + node = parentNode; + parentNode = node.parentNode; + } + node = next; + } + JSCompiler_temp = + -1 === start || -1 === end ? null : { start: start, end: end }; + } else JSCompiler_temp = null; + } + JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; + } else JSCompiler_temp = null; + selectionInformation = { + focusedElem: containerInfo, + selectionRange: JSCompiler_temp + }; + containerInfo = null; + JSCompiler_temp = selectionInformation.focusedElem; + null !== JSCompiler_temp && + (containerInfo = getClosestInstanceFromNode(JSCompiler_temp)); + _enabled = !1; + return containerInfo; +} function beforeActiveInstanceBlur(internalInstanceHandle) { _enabled = !0; var target = selectionInformation.focusedElem, @@ -15805,26 +15794,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$272 = getResourcesFromRoot( + var styles$271 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$273 = styles$272.get(type); - resource$273 || + resource$272 = styles$271.get(type); + resource$272 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$273 = { + (resource$272 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$272.set(type, resource$273), - (styles$272 = JSCompiler_inline_result.querySelector( + styles$271.set(type, resource$272), + (styles$271 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$272._p && - ((resource$273.instance = styles$272), - (resource$273.state.loading = 5)), + !styles$271._p && + ((resource$272.instance = styles$271), + (resource$272.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15837,16 +15826,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$272 || + styles$271 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$273.state + resource$272.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$273; + return resource$272; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15943,37 +15932,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$278 = hoistableRoot.querySelector( + var instance$277 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$278) + if (instance$277) return ( (resource.state.loading |= 4), - (resource.instance = instance$278), - markNodeAsHoistable(instance$278), - instance$278 + (resource.instance = instance$277), + markNodeAsHoistable(instance$277), + instance$277 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$278 = ( + instance$277 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$278); - var linkInstance = instance$278; + markNodeAsHoistable(instance$277); + var linkInstance = instance$277; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$278, "link", instance); + setInitialProperties(instance$277, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$278, props.precedence, hoistableRoot); - return (resource.instance = instance$278); + insertStylesheet(instance$277, props.precedence, hoistableRoot); + return (resource.instance = instance$277); case "script": - instance$278 = getScriptKey(props.src); + instance$277 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$278) + getScriptSelectorFromKey(instance$277) )) ) return ( @@ -15982,7 +15971,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$278))) + if ((styleProps = preloadPropsMap.get(instance$277))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16986,16 +16975,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1760 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1767 = React.version; if ( - "19.1.0-www-modern-6ca7fbe8-20250102" !== - isomorphicReactPackageVersion$jscomp$inline_1760 + "19.1.0-www-modern-d8b903f4-20250102" !== + isomorphicReactPackageVersion$jscomp$inline_1767 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1760, - "19.1.0-www-modern-6ca7fbe8-20250102" + isomorphicReactPackageVersion$jscomp$inline_1767, + "19.1.0-www-modern-d8b903f4-20250102" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17011,24 +17000,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2289 = { +var internals$jscomp$inline_2300 = { bundleType: 0, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2290 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2301 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2290.isDisabled && - hook$jscomp$inline_2290.supportsFiber + !hook$jscomp$inline_2301.isDisabled && + hook$jscomp$inline_2301.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2290.inject( - internals$jscomp$inline_2289 + (rendererID = hook$jscomp$inline_2301.inject( + internals$jscomp$inline_2300 )), - (injectedHook = hook$jscomp$inline_2290); + (injectedHook = hook$jscomp$inline_2301); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17381,4 +17370,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 21ef834370..499aa83411 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -9133,191 +9133,105 @@ var offscreenSubtreeIsHidden = !1, inProgressRoot = null, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - root = root.containerInfo; - eventsEnabled = _enabled; - root = getActiveElementDeep(root); - if (hasSelectionCapabilities(root)) { - if ("selectionStart" in root) - var JSCompiler_temp = { - start: root.selectionStart, - end: root.selectionEnd - }; - else - a: { - JSCompiler_temp = - ((JSCompiler_temp = root.ownerDocument) && - JSCompiler_temp.defaultView) || - window; - var selection = - JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); - if (selection && 0 !== selection.rangeCount) { - JSCompiler_temp = selection.anchorNode; - var anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode; - selection = selection.focusOffset; - try { - JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$219) { - JSCompiler_temp = null; - break a; - } - var length = 0, - start = -1, - end = -1, - indexWithinAnchor = 0, - indexWithinFocus = 0, - node = root, - parentNode = null; - b: for (;;) { - for (var next; ; ) { - node !== JSCompiler_temp || - (0 !== anchorOffset && 3 !== node.nodeType) || - (start = length + anchorOffset); - node !== focusNode || - (0 !== selection && 3 !== node.nodeType) || - (end = length + selection); - 3 === node.nodeType && (length += node.nodeValue.length); - if (null === (next = node.firstChild)) break; - parentNode = node; - node = next; - } - for (;;) { - if (node === root) break b; - parentNode === JSCompiler_temp && - ++indexWithinAnchor === anchorOffset && - (start = length); - parentNode === focusNode && - ++indexWithinFocus === selection && - (end = length); - if (null !== (next = node.nextSibling)) break; - node = parentNode; - parentNode = node.parentNode; - } - node = next; - } - JSCompiler_temp = - -1 === start || -1 === end ? null : { start: start, end: end }; - } else JSCompiler_temp = null; - } - JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; - } else JSCompiler_temp = null; - selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; - root = null; - JSCompiler_temp = selectionInformation.focusedElem; - null !== JSCompiler_temp && - (root = getClosestInstanceFromNode(JSCompiler_temp)); - _enabled = !1; - focusedInstanceHandle = root; - for (nextEffect = firstChild; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.deletions; - if (null !== root) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - doesFiberContain(anchorOffset, focusedInstanceHandle) && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(anchorOffset)); - root = firstChild.child; - if (0 !== (firstChild.subtreeFlags & 9236) && null !== root) - (root.return = firstChild), (nextEffect = root); - else - for (; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.alternate; - JSCompiler_temp = firstChild.flags; - if ( - (anchorOffset = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) - ) { - if ((anchorOffset = 13 === firstChild.tag)) - a: { - if ( - null !== root && - ((anchorOffset = root.memoizedState), - null === anchorOffset || null !== anchorOffset.dehydrated) - ) { - anchorOffset = firstChild.memoizedState; - anchorOffset = - null !== anchorOffset && null === anchorOffset.dehydrated; - break a; - } - anchorOffset = !1; - } - anchorOffset = - anchorOffset && doesFiberContain(firstChild, focusedInstanceHandle); - } - anchorOffset && +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; + doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(firstChild)); - switch (firstChild.tag) { + beforeActiveInstanceBlur(deletion)); + } + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); + else + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; + if ( + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle + ) { + if ((JSCompiler_temp = 13 === i.tag)) + b: { + if ( + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) + ) { + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; + } + JSCompiler_temp = !1; + } + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); + } + switch (i.tag) { case 0: if ( - 0 !== (JSCompiler_temp & 4) && - ((root = firstChild.updateQueue), - (root = null !== root ? root.events : null), - null !== root) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - (anchorOffset.ref.impl = anchorOffset.nextImpl); + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), + (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (JSCompiler_temp & 1024) && null !== root) { - JSCompiler_temp = void 0; - anchorOffset = firstChild; - focusNode = root.memoizedProps; - root = root.memoizedState; - selection = anchorOffset.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - anchorOffset.type, - focusNode, - anchorOffset.elementType === anchorOffset.type + i.type, + flags, + i.elementType === i.type ); - JSCompiler_temp = selection.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - root + deletion ); - selection.__reactInternalSnapshotBeforeUpdate = JSCompiler_temp; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = deletions; } catch (error) { - captureCommitPhaseError( - anchorOffset, - anchorOffset.return, - error - ); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - if (0 !== (JSCompiler_temp & 1024)) - if ( - ((root = firstChild.stateNode.containerInfo), - (JSCompiler_temp = root.nodeType), - 9 === JSCompiler_temp) + if (0 !== (flags & 1024)) + b: if ( + ((deletions = i.stateNode.containerInfo), + (i = deletions.nodeType), + 9 === i) ) - clearContainerSparingly(root); - else if (1 === JSCompiler_temp) - switch (root.nodeName) { + clearContainerSparingly(deletions); + else if (1 === i) + switch (deletions.nodeName) { case "HEAD": case "HTML": case "BODY": - clearContainerSparingly(root); - break; + clearContainerSparingly(deletions); + break b; default: - root.textContent = ""; + deletions.textContent = ""; } break; case 5: @@ -9328,22 +9242,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (JSCompiler_temp & 1024)) - throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - root = firstChild.sibling; - if (null !== root) { - root.return = firstChild.return; - nextEffect = root; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = firstChild.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -12519,42 +12428,43 @@ function commitRootImpl( (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = 2; - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$211 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$211 && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = 2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -12614,7 +12524,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$212 = rootWithPendingPassiveEffects, + var root$211 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12629,7 +12539,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$212, remainingLanes); + releaseRootPooledCache(root$211, remainingLanes); } } return !1; @@ -13372,9 +13282,9 @@ function attemptContinuousHydration(fiber) { function getLaneLabelMap() { if (enableSchedulingProfiler) { for ( - var map = new Map(), lane = 1, index$217 = 0; - 31 > index$217; - index$217++ + var map = new Map(), lane = 1, index$216 = 0; + 31 > index$216; + index$216++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -13927,14 +13837,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$369; if (canUseDOM) { - var isSupported$jscomp$inline_1649 = "oninput" in document; - if (!isSupported$jscomp$inline_1649) { - var element$jscomp$inline_1650 = document.createElement("div"); - element$jscomp$inline_1650.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1649 = - "function" === typeof element$jscomp$inline_1650.oninput; + var isSupported$jscomp$inline_1653 = "oninput" in document; + if (!isSupported$jscomp$inline_1653) { + var element$jscomp$inline_1654 = document.createElement("div"); + element$jscomp$inline_1654.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1653 = + "function" === typeof element$jscomp$inline_1654.oninput; } - JSCompiler_inline_result$jscomp$369 = isSupported$jscomp$inline_1649; + JSCompiler_inline_result$jscomp$369 = isSupported$jscomp$inline_1653; } else JSCompiler_inline_result$jscomp$369 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$369 && @@ -14348,20 +14258,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1690 = 0; - i$jscomp$inline_1690 < simpleEventPluginEvents.length; - i$jscomp$inline_1690++ + var i$jscomp$inline_1694 = 0; + i$jscomp$inline_1694 < simpleEventPluginEvents.length; + i$jscomp$inline_1694++ ) { - var eventName$jscomp$inline_1691 = - simpleEventPluginEvents[i$jscomp$inline_1690], - domEventName$jscomp$inline_1692 = - eventName$jscomp$inline_1691.toLowerCase(), - capitalizedEvent$jscomp$inline_1693 = - eventName$jscomp$inline_1691[0].toUpperCase() + - eventName$jscomp$inline_1691.slice(1); + var eventName$jscomp$inline_1695 = + simpleEventPluginEvents[i$jscomp$inline_1694], + domEventName$jscomp$inline_1696 = + eventName$jscomp$inline_1695.toLowerCase(), + capitalizedEvent$jscomp$inline_1697 = + eventName$jscomp$inline_1695[0].toUpperCase() + + eventName$jscomp$inline_1695.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1692, - "on" + capitalizedEvent$jscomp$inline_1693 + domEventName$jscomp$inline_1696, + "on" + capitalizedEvent$jscomp$inline_1697 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15654,34 +15564,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$233 = props[hasSrc]; - if (null != propValue$233) + var propValue$232 = props[hasSrc]; + if (null != propValue$232) switch (hasSrc) { case "name": - hasSrcSet = propValue$233; + hasSrcSet = propValue$232; break; case "type": - propValue = propValue$233; + propValue = propValue$232; break; case "checked": - checked = propValue$233; + checked = propValue$232; break; case "defaultChecked": - defaultChecked = propValue$233; + defaultChecked = propValue$232; break; case "value": - propKey = propValue$233; + propKey = propValue$232; break; case "defaultValue": - defaultValue = propValue$233; + defaultValue = propValue$232; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$233) + if (null != propValue$232) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$233, props, null); + setProp(domElement, tag, hasSrc, propValue$232, props, null); } } initInput( @@ -15818,14 +15728,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$233 in props) - props.hasOwnProperty(propValue$233) && - ((hasSrc = props[propValue$233]), + for (propValue$232 in props) + props.hasOwnProperty(propValue$232) && + ((hasSrc = props[propValue$232]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$233, + propValue$232, hasSrc, props, void 0 @@ -15873,14 +15783,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$250 in nextProps) { - var propKey = nextProps[propKey$250]; - lastProp = lastProps[propKey$250]; + for (var propKey$249 in nextProps) { + var propKey = nextProps[propKey$249]; + lastProp = lastProps[propKey$249]; if ( - nextProps.hasOwnProperty(propKey$250) && + nextProps.hasOwnProperty(propKey$249) && (null != propKey || null != lastProp) ) - switch (propKey$250) { + switch (propKey$249) { case "type": type = propKey; break; @@ -15909,7 +15819,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$250, + propKey$249, propKey, nextProps, lastProp @@ -15928,7 +15838,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$250 = null; + propKey = value = defaultValue = propKey$249 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15959,7 +15869,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$250 = type; + propKey$249 = type; break; case "defaultValue": defaultValue = type; @@ -15980,15 +15890,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$250 - ? updateOptions(domElement, !!lastProps, propKey$250, !1) + null != propKey$249 + ? updateOptions(domElement, !!lastProps, propKey$249, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$250 = null; + propKey = propKey$249 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -16012,7 +15922,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$250 = name; + propKey$249 = name; break; case "defaultValue": propKey = name; @@ -16026,17 +15936,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$250, propKey); + updateTextarea(domElement, propKey$249, propKey); return; case "option": - for (var propKey$266 in lastProps) + for (var propKey$265 in lastProps) if ( - ((propKey$250 = lastProps[propKey$266]), - lastProps.hasOwnProperty(propKey$266) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$266)) + ((propKey$249 = lastProps[propKey$265]), + lastProps.hasOwnProperty(propKey$265) && + null != propKey$249 && + !nextProps.hasOwnProperty(propKey$265)) ) - switch (propKey$266) { + switch (propKey$265) { case "selected": domElement.selected = !1; break; @@ -16044,33 +15954,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$266, + propKey$265, null, nextProps, - propKey$250 + propKey$249 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$250 = nextProps[lastDefaultValue]), + ((propKey$249 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$250 !== propKey && - (null != propKey$250 || null != propKey)) + propKey$249 !== propKey && + (null != propKey$249 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$250 && - "function" !== typeof propKey$250 && - "symbol" !== typeof propKey$250; + propKey$249 && + "function" !== typeof propKey$249 && + "symbol" !== typeof propKey$249; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$250, + propKey$249, nextProps, propKey ); @@ -16091,24 +16001,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$271 in lastProps) - (propKey$250 = lastProps[propKey$271]), - lastProps.hasOwnProperty(propKey$271) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$271) && - setProp(domElement, tag, propKey$271, null, nextProps, propKey$250); + for (var propKey$270 in lastProps) + (propKey$249 = lastProps[propKey$270]), + lastProps.hasOwnProperty(propKey$270) && + null != propKey$249 && + !nextProps.hasOwnProperty(propKey$270) && + setProp(domElement, tag, propKey$270, null, nextProps, propKey$249); for (checked in nextProps) if ( - ((propKey$250 = nextProps[checked]), + ((propKey$249 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$250 !== propKey && - (null != propKey$250 || null != propKey)) + propKey$249 !== propKey && + (null != propKey$249 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$250) + if (null != propKey$249) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -16116,7 +16026,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$250, + propKey$249, nextProps, propKey ); @@ -16124,49 +16034,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$276 in lastProps) - (propKey$250 = lastProps[propKey$276]), - lastProps.hasOwnProperty(propKey$276) && - void 0 !== propKey$250 && - !nextProps.hasOwnProperty(propKey$276) && + for (var propKey$275 in lastProps) + (propKey$249 = lastProps[propKey$275]), + lastProps.hasOwnProperty(propKey$275) && + void 0 !== propKey$249 && + !nextProps.hasOwnProperty(propKey$275) && setPropOnCustomElement( domElement, tag, - propKey$276, + propKey$275, void 0, nextProps, - propKey$250 + propKey$249 ); for (defaultChecked in nextProps) - (propKey$250 = nextProps[defaultChecked]), + (propKey$249 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$250 === propKey || - (void 0 === propKey$250 && void 0 === propKey) || + propKey$249 === propKey || + (void 0 === propKey$249 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$250, + propKey$249, nextProps, propKey ); return; } } - for (var propKey$281 in lastProps) - (propKey$250 = lastProps[propKey$281]), - lastProps.hasOwnProperty(propKey$281) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$281) && - setProp(domElement, tag, propKey$281, null, nextProps, propKey$250); + for (var propKey$280 in lastProps) + (propKey$249 = lastProps[propKey$280]), + lastProps.hasOwnProperty(propKey$280) && + null != propKey$249 && + !nextProps.hasOwnProperty(propKey$280) && + setProp(domElement, tag, propKey$280, null, nextProps, propKey$249); for (lastProp in nextProps) - (propKey$250 = nextProps[lastProp]), + (propKey$249 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$250 === propKey || - (null == propKey$250 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$250, nextProps, propKey); + propKey$249 === propKey || + (null == propKey$249 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$249, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16199,6 +16109,85 @@ function getChildHostContextProd(parentNamespace, type) { ? 0 : parentNamespace; } +function prepareForCommit(containerInfo) { + eventsEnabled = _enabled; + containerInfo = getActiveElementDeep(containerInfo); + if (hasSelectionCapabilities(containerInfo)) { + if ("selectionStart" in containerInfo) + var JSCompiler_temp = { + start: containerInfo.selectionStart, + end: containerInfo.selectionEnd + }; + else + a: { + JSCompiler_temp = + ((JSCompiler_temp = containerInfo.ownerDocument) && + JSCompiler_temp.defaultView) || + window; + var selection = + JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); + if (selection && 0 !== selection.rangeCount) { + JSCompiler_temp = selection.anchorNode; + var anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode; + selection = selection.focusOffset; + try { + JSCompiler_temp.nodeType, focusNode.nodeType; + } catch (e$218) { + JSCompiler_temp = null; + break a; + } + var length = 0, + start = -1, + end = -1, + indexWithinAnchor = 0, + indexWithinFocus = 0, + node = containerInfo, + parentNode = null; + b: for (;;) { + for (var next; ; ) { + node !== JSCompiler_temp || + (0 !== anchorOffset && 3 !== node.nodeType) || + (start = length + anchorOffset); + node !== focusNode || + (0 !== selection && 3 !== node.nodeType) || + (end = length + selection); + 3 === node.nodeType && (length += node.nodeValue.length); + if (null === (next = node.firstChild)) break; + parentNode = node; + node = next; + } + for (;;) { + if (node === containerInfo) break b; + parentNode === JSCompiler_temp && + ++indexWithinAnchor === anchorOffset && + (start = length); + parentNode === focusNode && + ++indexWithinFocus === selection && + (end = length); + if (null !== (next = node.nextSibling)) break; + node = parentNode; + parentNode = node.parentNode; + } + node = next; + } + JSCompiler_temp = + -1 === start || -1 === end ? null : { start: start, end: end }; + } else JSCompiler_temp = null; + } + JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; + } else JSCompiler_temp = null; + selectionInformation = { + focusedElem: containerInfo, + selectionRange: JSCompiler_temp + }; + containerInfo = null; + JSCompiler_temp = selectionInformation.focusedElem; + null !== JSCompiler_temp && + (containerInfo = getClosestInstanceFromNode(JSCompiler_temp)); + _enabled = !1; + return containerInfo; +} function beforeActiveInstanceBlur(internalInstanceHandle) { _enabled = !0; var target = selectionInformation.focusedElem, @@ -16763,26 +16752,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$289 = getResourcesFromRoot( + var styles$288 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$290 = styles$289.get(type); - resource$290 || + resource$289 = styles$288.get(type); + resource$289 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$290 = { + (resource$289 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$289.set(type, resource$290), - (styles$289 = JSCompiler_inline_result.querySelector( + styles$288.set(type, resource$289), + (styles$288 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$289._p && - ((resource$290.instance = styles$289), - (resource$290.state.loading = 5)), + !styles$288._p && + ((resource$289.instance = styles$288), + (resource$289.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16795,16 +16784,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$289 || + styles$288 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$290.state + resource$289.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$290; + return resource$289; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16901,37 +16890,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$295 = hoistableRoot.querySelector( + var instance$294 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$295) + if (instance$294) return ( (resource.state.loading |= 4), - (resource.instance = instance$295), - markNodeAsHoistable(instance$295), - instance$295 + (resource.instance = instance$294), + markNodeAsHoistable(instance$294), + instance$294 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$295 = ( + instance$294 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$295); - var linkInstance = instance$295; + markNodeAsHoistable(instance$294); + var linkInstance = instance$294; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$295, "link", instance); + setInitialProperties(instance$294, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$295, props.precedence, hoistableRoot); - return (resource.instance = instance$295); + insertStylesheet(instance$294, props.precedence, hoistableRoot); + return (resource.instance = instance$294); case "script": - instance$295 = getScriptKey(props.src); + instance$294 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$295) + getScriptSelectorFromKey(instance$294) )) ) return ( @@ -16940,7 +16929,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$295))) + if ((styleProps = preloadPropsMap.get(instance$294))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17944,16 +17933,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1863 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1870 = React.version; if ( - "19.1.0-www-classic-6ca7fbe8-20250102" !== - isomorphicReactPackageVersion$jscomp$inline_1863 + "19.1.0-www-classic-d8b903f4-20250102" !== + isomorphicReactPackageVersion$jscomp$inline_1870 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1863, - "19.1.0-www-classic-6ca7fbe8-20250102" + isomorphicReactPackageVersion$jscomp$inline_1870, + "19.1.0-www-classic-d8b903f4-20250102" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17969,27 +17958,27 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1865 = { +var internals$jscomp$inline_1872 = { bundleType: 0, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1865.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1865.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1872.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1872.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2359 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2370 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2359.isDisabled && - hook$jscomp$inline_2359.supportsFiber + !hook$jscomp$inline_2370.isDisabled && + hook$jscomp$inline_2370.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2359.inject( - internals$jscomp$inline_1865 + (rendererID = hook$jscomp$inline_2370.inject( + internals$jscomp$inline_1872 )), - (injectedHook = hook$jscomp$inline_2359); + (injectedHook = hook$jscomp$inline_2370); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18342,7 +18331,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index f2a7def07b..48b56b46d5 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -8883,191 +8883,105 @@ var offscreenSubtreeIsHidden = !1, inProgressRoot = null, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - root = root.containerInfo; - eventsEnabled = _enabled; - root = getActiveElementDeep(root); - if (hasSelectionCapabilities(root)) { - if ("selectionStart" in root) - var JSCompiler_temp = { - start: root.selectionStart, - end: root.selectionEnd - }; - else - a: { - JSCompiler_temp = - ((JSCompiler_temp = root.ownerDocument) && - JSCompiler_temp.defaultView) || - window; - var selection = - JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); - if (selection && 0 !== selection.rangeCount) { - JSCompiler_temp = selection.anchorNode; - var anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode; - selection = selection.focusOffset; - try { - JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$219) { - JSCompiler_temp = null; - break a; - } - var length = 0, - start = -1, - end = -1, - indexWithinAnchor = 0, - indexWithinFocus = 0, - node = root, - parentNode = null; - b: for (;;) { - for (var next; ; ) { - node !== JSCompiler_temp || - (0 !== anchorOffset && 3 !== node.nodeType) || - (start = length + anchorOffset); - node !== focusNode || - (0 !== selection && 3 !== node.nodeType) || - (end = length + selection); - 3 === node.nodeType && (length += node.nodeValue.length); - if (null === (next = node.firstChild)) break; - parentNode = node; - node = next; - } - for (;;) { - if (node === root) break b; - parentNode === JSCompiler_temp && - ++indexWithinAnchor === anchorOffset && - (start = length); - parentNode === focusNode && - ++indexWithinFocus === selection && - (end = length); - if (null !== (next = node.nextSibling)) break; - node = parentNode; - parentNode = node.parentNode; - } - node = next; - } - JSCompiler_temp = - -1 === start || -1 === end ? null : { start: start, end: end }; - } else JSCompiler_temp = null; - } - JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; - } else JSCompiler_temp = null; - selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; - root = null; - JSCompiler_temp = selectionInformation.focusedElem; - null !== JSCompiler_temp && - (root = getClosestInstanceFromNode(JSCompiler_temp)); - _enabled = !1; - focusedInstanceHandle = root; - for (nextEffect = firstChild; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.deletions; - if (null !== root) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - doesFiberContain(anchorOffset, focusedInstanceHandle) && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(anchorOffset)); - root = firstChild.child; - if (0 !== (firstChild.subtreeFlags & 9236) && null !== root) - (root.return = firstChild), (nextEffect = root); - else - for (; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.alternate; - JSCompiler_temp = firstChild.flags; - if ( - (anchorOffset = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) - ) { - if ((anchorOffset = 13 === firstChild.tag)) - a: { - if ( - null !== root && - ((anchorOffset = root.memoizedState), - null === anchorOffset || null !== anchorOffset.dehydrated) - ) { - anchorOffset = firstChild.memoizedState; - anchorOffset = - null !== anchorOffset && null === anchorOffset.dehydrated; - break a; - } - anchorOffset = !1; - } - anchorOffset = - anchorOffset && doesFiberContain(firstChild, focusedInstanceHandle); - } - anchorOffset && +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; + doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(firstChild)); - switch (firstChild.tag) { + beforeActiveInstanceBlur(deletion)); + } + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); + else + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; + if ( + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle + ) { + if ((JSCompiler_temp = 13 === i.tag)) + b: { + if ( + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) + ) { + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; + } + JSCompiler_temp = !1; + } + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); + } + switch (i.tag) { case 0: if ( - 0 !== (JSCompiler_temp & 4) && - ((root = firstChild.updateQueue), - (root = null !== root ? root.events : null), - null !== root) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - (anchorOffset.ref.impl = anchorOffset.nextImpl); + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), + (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (JSCompiler_temp & 1024) && null !== root) { - JSCompiler_temp = void 0; - anchorOffset = firstChild; - focusNode = root.memoizedProps; - root = root.memoizedState; - selection = anchorOffset.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - anchorOffset.type, - focusNode, - anchorOffset.elementType === anchorOffset.type + i.type, + flags, + i.elementType === i.type ); - JSCompiler_temp = selection.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - root + deletion ); - selection.__reactInternalSnapshotBeforeUpdate = JSCompiler_temp; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = deletions; } catch (error) { - captureCommitPhaseError( - anchorOffset, - anchorOffset.return, - error - ); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - if (0 !== (JSCompiler_temp & 1024)) - if ( - ((root = firstChild.stateNode.containerInfo), - (JSCompiler_temp = root.nodeType), - 9 === JSCompiler_temp) + if (0 !== (flags & 1024)) + b: if ( + ((deletions = i.stateNode.containerInfo), + (i = deletions.nodeType), + 9 === i) ) - clearContainerSparingly(root); - else if (1 === JSCompiler_temp) - switch (root.nodeName) { + clearContainerSparingly(deletions); + else if (1 === i) + switch (deletions.nodeName) { case "HEAD": case "HTML": case "BODY": - clearContainerSparingly(root); - break; + clearContainerSparingly(deletions); + break b; default: - root.textContent = ""; + deletions.textContent = ""; } break; case 5: @@ -9078,22 +8992,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (JSCompiler_temp & 1024)) - throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - root = firstChild.sibling; - if (null !== root) { - root.return = firstChild.return; - nextEffect = root; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = firstChild.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -12265,42 +12174,43 @@ function commitRootImpl( (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = 2; - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$211 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$211 && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = 2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -12360,7 +12270,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$212 = rootWithPendingPassiveEffects, + var root$211 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12375,7 +12285,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$212, remainingLanes); + releaseRootPooledCache(root$211, remainingLanes); } } return !1; @@ -13079,9 +12989,9 @@ function attemptContinuousHydration(fiber) { function getLaneLabelMap() { if (enableSchedulingProfiler) { for ( - var map = new Map(), lane = 1, index$217 = 0; - 31 > index$217; - index$217++ + var map = new Map(), lane = 1, index$216 = 0; + 31 > index$216; + index$216++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -13662,14 +13572,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$372; if (canUseDOM) { - var isSupported$jscomp$inline_1639 = "oninput" in document; - if (!isSupported$jscomp$inline_1639) { - var element$jscomp$inline_1640 = document.createElement("div"); - element$jscomp$inline_1640.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1639 = - "function" === typeof element$jscomp$inline_1640.oninput; + var isSupported$jscomp$inline_1643 = "oninput" in document; + if (!isSupported$jscomp$inline_1643) { + var element$jscomp$inline_1644 = document.createElement("div"); + element$jscomp$inline_1644.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1643 = + "function" === typeof element$jscomp$inline_1644.oninput; } - JSCompiler_inline_result$jscomp$372 = isSupported$jscomp$inline_1639; + JSCompiler_inline_result$jscomp$372 = isSupported$jscomp$inline_1643; } else JSCompiler_inline_result$jscomp$372 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$372 && @@ -14083,20 +13993,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1680 = 0; - i$jscomp$inline_1680 < simpleEventPluginEvents.length; - i$jscomp$inline_1680++ + var i$jscomp$inline_1684 = 0; + i$jscomp$inline_1684 < simpleEventPluginEvents.length; + i$jscomp$inline_1684++ ) { - var eventName$jscomp$inline_1681 = - simpleEventPluginEvents[i$jscomp$inline_1680], - domEventName$jscomp$inline_1682 = - eventName$jscomp$inline_1681.toLowerCase(), - capitalizedEvent$jscomp$inline_1683 = - eventName$jscomp$inline_1681[0].toUpperCase() + - eventName$jscomp$inline_1681.slice(1); + var eventName$jscomp$inline_1685 = + simpleEventPluginEvents[i$jscomp$inline_1684], + domEventName$jscomp$inline_1686 = + eventName$jscomp$inline_1685.toLowerCase(), + capitalizedEvent$jscomp$inline_1687 = + eventName$jscomp$inline_1685[0].toUpperCase() + + eventName$jscomp$inline_1685.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1682, - "on" + capitalizedEvent$jscomp$inline_1683 + domEventName$jscomp$inline_1686, + "on" + capitalizedEvent$jscomp$inline_1687 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15385,34 +15295,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$233 = props[hasSrc]; - if (null != propValue$233) + var propValue$232 = props[hasSrc]; + if (null != propValue$232) switch (hasSrc) { case "name": - hasSrcSet = propValue$233; + hasSrcSet = propValue$232; break; case "type": - propKey = propValue$233; + propKey = propValue$232; break; case "checked": - checked = propValue$233; + checked = propValue$232; break; case "defaultChecked": - defaultChecked = propValue$233; + defaultChecked = propValue$232; break; case "value": - propValue = propValue$233; + propValue = propValue$232; break; case "defaultValue": - defaultValue = propValue$233; + defaultValue = propValue$232; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$233) + if (null != propValue$232) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$233, props, null); + setProp(domElement, tag, hasSrc, propValue$232, props, null); } } initInput( @@ -15548,14 +15458,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$233 in props) - props.hasOwnProperty(propValue$233) && - ((hasSrc = props[propValue$233]), + for (propValue$232 in props) + props.hasOwnProperty(propValue$232) && + ((hasSrc = props[propValue$232]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$233, + propValue$232, hasSrc, props, void 0 @@ -15603,14 +15513,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$250 in nextProps) { - var propKey = nextProps[propKey$250]; - lastProp = lastProps[propKey$250]; + for (var propKey$249 in nextProps) { + var propKey = nextProps[propKey$249]; + lastProp = lastProps[propKey$249]; if ( - nextProps.hasOwnProperty(propKey$250) && + nextProps.hasOwnProperty(propKey$249) && (null != propKey || null != lastProp) ) - switch (propKey$250) { + switch (propKey$249) { case "type": type = propKey; break; @@ -15639,7 +15549,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$250, + propKey$249, propKey, nextProps, lastProp @@ -15658,7 +15568,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$250 = null; + propKey = value = defaultValue = propKey$249 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15689,7 +15599,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$250 = type; + propKey$249 = type; break; case "defaultValue": defaultValue = type; @@ -15710,15 +15620,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$250 - ? updateOptions(domElement, !!lastProps, propKey$250, !1) + null != propKey$249 + ? updateOptions(domElement, !!lastProps, propKey$249, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$250 = null; + propKey = propKey$249 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15742,7 +15652,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$250 = name; + propKey$249 = name; break; case "defaultValue": propKey = name; @@ -15756,17 +15666,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$250, propKey); + updateTextarea(domElement, propKey$249, propKey); return; case "option": - for (var propKey$266 in lastProps) + for (var propKey$265 in lastProps) if ( - ((propKey$250 = lastProps[propKey$266]), - lastProps.hasOwnProperty(propKey$266) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$266)) + ((propKey$249 = lastProps[propKey$265]), + lastProps.hasOwnProperty(propKey$265) && + null != propKey$249 && + !nextProps.hasOwnProperty(propKey$265)) ) - switch (propKey$266) { + switch (propKey$265) { case "selected": domElement.selected = !1; break; @@ -15774,33 +15684,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$266, + propKey$265, null, nextProps, - propKey$250 + propKey$249 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$250 = nextProps[lastDefaultValue]), + ((propKey$249 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$250 !== propKey && - (null != propKey$250 || null != propKey)) + propKey$249 !== propKey && + (null != propKey$249 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$250 && - "function" !== typeof propKey$250 && - "symbol" !== typeof propKey$250; + propKey$249 && + "function" !== typeof propKey$249 && + "symbol" !== typeof propKey$249; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$250, + propKey$249, nextProps, propKey ); @@ -15821,24 +15731,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$271 in lastProps) - (propKey$250 = lastProps[propKey$271]), - lastProps.hasOwnProperty(propKey$271) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$271) && - setProp(domElement, tag, propKey$271, null, nextProps, propKey$250); + for (var propKey$270 in lastProps) + (propKey$249 = lastProps[propKey$270]), + lastProps.hasOwnProperty(propKey$270) && + null != propKey$249 && + !nextProps.hasOwnProperty(propKey$270) && + setProp(domElement, tag, propKey$270, null, nextProps, propKey$249); for (checked in nextProps) if ( - ((propKey$250 = nextProps[checked]), + ((propKey$249 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$250 !== propKey && - (null != propKey$250 || null != propKey)) + propKey$249 !== propKey && + (null != propKey$249 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$250) + if (null != propKey$249) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15846,7 +15756,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$250, + propKey$249, nextProps, propKey ); @@ -15854,49 +15764,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$276 in lastProps) - (propKey$250 = lastProps[propKey$276]), - lastProps.hasOwnProperty(propKey$276) && - void 0 !== propKey$250 && - !nextProps.hasOwnProperty(propKey$276) && + for (var propKey$275 in lastProps) + (propKey$249 = lastProps[propKey$275]), + lastProps.hasOwnProperty(propKey$275) && + void 0 !== propKey$249 && + !nextProps.hasOwnProperty(propKey$275) && setPropOnCustomElement( domElement, tag, - propKey$276, + propKey$275, void 0, nextProps, - propKey$250 + propKey$249 ); for (defaultChecked in nextProps) - (propKey$250 = nextProps[defaultChecked]), + (propKey$249 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$250 === propKey || - (void 0 === propKey$250 && void 0 === propKey) || + propKey$249 === propKey || + (void 0 === propKey$249 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$250, + propKey$249, nextProps, propKey ); return; } } - for (var propKey$281 in lastProps) - (propKey$250 = lastProps[propKey$281]), - lastProps.hasOwnProperty(propKey$281) && - null != propKey$250 && - !nextProps.hasOwnProperty(propKey$281) && - setProp(domElement, tag, propKey$281, null, nextProps, propKey$250); + for (var propKey$280 in lastProps) + (propKey$249 = lastProps[propKey$280]), + lastProps.hasOwnProperty(propKey$280) && + null != propKey$249 && + !nextProps.hasOwnProperty(propKey$280) && + setProp(domElement, tag, propKey$280, null, nextProps, propKey$249); for (lastProp in nextProps) - (propKey$250 = nextProps[lastProp]), + (propKey$249 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$250 === propKey || - (null == propKey$250 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$250, nextProps, propKey); + propKey$249 === propKey || + (null == propKey$249 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$249, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15929,6 +15839,85 @@ function getChildHostContextProd(parentNamespace, type) { ? 0 : parentNamespace; } +function prepareForCommit(containerInfo) { + eventsEnabled = _enabled; + containerInfo = getActiveElementDeep(containerInfo); + if (hasSelectionCapabilities(containerInfo)) { + if ("selectionStart" in containerInfo) + var JSCompiler_temp = { + start: containerInfo.selectionStart, + end: containerInfo.selectionEnd + }; + else + a: { + JSCompiler_temp = + ((JSCompiler_temp = containerInfo.ownerDocument) && + JSCompiler_temp.defaultView) || + window; + var selection = + JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); + if (selection && 0 !== selection.rangeCount) { + JSCompiler_temp = selection.anchorNode; + var anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode; + selection = selection.focusOffset; + try { + JSCompiler_temp.nodeType, focusNode.nodeType; + } catch (e$218) { + JSCompiler_temp = null; + break a; + } + var length = 0, + start = -1, + end = -1, + indexWithinAnchor = 0, + indexWithinFocus = 0, + node = containerInfo, + parentNode = null; + b: for (;;) { + for (var next; ; ) { + node !== JSCompiler_temp || + (0 !== anchorOffset && 3 !== node.nodeType) || + (start = length + anchorOffset); + node !== focusNode || + (0 !== selection && 3 !== node.nodeType) || + (end = length + selection); + 3 === node.nodeType && (length += node.nodeValue.length); + if (null === (next = node.firstChild)) break; + parentNode = node; + node = next; + } + for (;;) { + if (node === containerInfo) break b; + parentNode === JSCompiler_temp && + ++indexWithinAnchor === anchorOffset && + (start = length); + parentNode === focusNode && + ++indexWithinFocus === selection && + (end = length); + if (null !== (next = node.nextSibling)) break; + node = parentNode; + parentNode = node.parentNode; + } + node = next; + } + JSCompiler_temp = + -1 === start || -1 === end ? null : { start: start, end: end }; + } else JSCompiler_temp = null; + } + JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; + } else JSCompiler_temp = null; + selectionInformation = { + focusedElem: containerInfo, + selectionRange: JSCompiler_temp + }; + containerInfo = null; + JSCompiler_temp = selectionInformation.focusedElem; + null !== JSCompiler_temp && + (containerInfo = getClosestInstanceFromNode(JSCompiler_temp)); + _enabled = !1; + return containerInfo; +} function beforeActiveInstanceBlur(internalInstanceHandle) { _enabled = !0; var target = selectionInformation.focusedElem, @@ -16493,26 +16482,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$289 = getResourcesFromRoot( + var styles$288 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$290 = styles$289.get(type); - resource$290 || + resource$289 = styles$288.get(type); + resource$289 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$290 = { + (resource$289 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$289.set(type, resource$290), - (styles$289 = JSCompiler_inline_result.querySelector( + styles$288.set(type, resource$289), + (styles$288 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$289._p && - ((resource$290.instance = styles$289), - (resource$290.state.loading = 5)), + !styles$288._p && + ((resource$289.instance = styles$288), + (resource$289.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16525,16 +16514,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$289 || + styles$288 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$290.state + resource$289.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$290; + return resource$289; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16631,37 +16620,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$295 = hoistableRoot.querySelector( + var instance$294 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$295) + if (instance$294) return ( (resource.state.loading |= 4), - (resource.instance = instance$295), - markNodeAsHoistable(instance$295), - instance$295 + (resource.instance = instance$294), + markNodeAsHoistable(instance$294), + instance$294 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$295 = ( + instance$294 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$295); - var linkInstance = instance$295; + markNodeAsHoistable(instance$294); + var linkInstance = instance$294; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$295, "link", instance); + setInitialProperties(instance$294, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$295, props.precedence, hoistableRoot); - return (resource.instance = instance$295); + insertStylesheet(instance$294, props.precedence, hoistableRoot); + return (resource.instance = instance$294); case "script": - instance$295 = getScriptKey(props.src); + instance$294 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$295) + getScriptSelectorFromKey(instance$294) )) ) return ( @@ -16670,7 +16659,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$295))) + if ((styleProps = preloadPropsMap.get(instance$294))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17674,16 +17663,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1853 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1860 = React.version; if ( - "19.1.0-www-modern-6ca7fbe8-20250102" !== - isomorphicReactPackageVersion$jscomp$inline_1853 + "19.1.0-www-modern-d8b903f4-20250102" !== + isomorphicReactPackageVersion$jscomp$inline_1860 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1853, - "19.1.0-www-modern-6ca7fbe8-20250102" + isomorphicReactPackageVersion$jscomp$inline_1860, + "19.1.0-www-modern-d8b903f4-20250102" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17699,27 +17688,27 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1855 = { +var internals$jscomp$inline_1862 = { bundleType: 0, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1855.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1855.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1862.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1862.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2341 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2352 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2341.isDisabled && - hook$jscomp$inline_2341.supportsFiber + !hook$jscomp$inline_2352.isDisabled && + hook$jscomp$inline_2352.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2341.inject( - internals$jscomp$inline_1855 + (rendererID = hook$jscomp$inline_2352.inject( + internals$jscomp$inline_1862 )), - (injectedHook = hook$jscomp$inline_2341); + (injectedHook = hook$jscomp$inline_2352); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18072,7 +18061,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 40a141dce0..7414dc4444 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9150,5 +9150,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-classic-d8b903f4-20250102"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 0703e5526b..89f29e205c 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8976,5 +8976,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-modern-d8b903f4-20250102"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 501b1c2109..ce38ee5a00 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5898,4 +5898,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-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 7badfe6294..7cb3974ea9 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5810,4 +5810,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-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 39ff746fba..4c0faa8306 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -13008,6 +13008,7 @@ __DEV__ && (root = getClosestInstanceFromNode(JSCompiler_temp)); _enabled = !1; focusedInstanceHandle = root; + shouldFireAfterActiveInstanceBlur = !1; for (nextEffect = firstChild; null !== nextEffect; ) { firstChild = nextEffect; root = firstChild.deletions; @@ -13119,10 +13120,7 @@ __DEV__ && nextEffect = firstChild.return; } } - firstChild = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; focusedInstanceHandle = null; - return firstChild; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -16843,44 +16841,41 @@ __DEV__ && (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = DiscreteEventPriority; - suspendedRetryLanes = executionContext; - executionContext |= CommitContext; - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = DiscreteEventPriority), + (suspendedRetryLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = spawnedLane) ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -27720,11 +27715,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-6ca7fbe8-20250102" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-d8b903f4-20250102" !== 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-www-classic-6ca7fbe8-20250102\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-d8b903f4-20250102\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27767,10 +27762,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28534,5 +28529,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-classic-d8b903f4-20250102"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 050e74ade7..3e81a181a7 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -12807,6 +12807,7 @@ __DEV__ && (root = getClosestInstanceFromNode(JSCompiler_temp)); _enabled = !1; focusedInstanceHandle = root; + shouldFireAfterActiveInstanceBlur = !1; for (nextEffect = firstChild; null !== nextEffect; ) { firstChild = nextEffect; root = firstChild.deletions; @@ -12918,10 +12919,7 @@ __DEV__ && nextEffect = firstChild.return; } } - firstChild = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; focusedInstanceHandle = null; - return firstChild; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -16638,44 +16636,41 @@ __DEV__ && (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = DiscreteEventPriority; - suspendedRetryLanes = executionContext; - executionContext |= CommitContext; - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = DiscreteEventPriority), + (suspendedRetryLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = spawnedLane) ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -27499,11 +27494,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-6ca7fbe8-20250102" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-d8b903f4-20250102" !== 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-www-modern-6ca7fbe8-20250102\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-d8b903f4-20250102\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27546,10 +27541,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28313,5 +28308,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-modern-d8b903f4-20250102"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index a6f232b083..0ff0af9bee 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -8777,191 +8777,105 @@ var offscreenSubtreeIsHidden = !1, nextEffect = null, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - root = root.containerInfo; - eventsEnabled = _enabled; - root = getActiveElementDeep(root); - if (hasSelectionCapabilities(root)) { - if ("selectionStart" in root) - var JSCompiler_temp = { - start: root.selectionStart, - end: root.selectionEnd - }; - else - a: { - JSCompiler_temp = - ((JSCompiler_temp = root.ownerDocument) && - JSCompiler_temp.defaultView) || - window; - var selection = - JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); - if (selection && 0 !== selection.rangeCount) { - JSCompiler_temp = selection.anchorNode; - var anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode; - selection = selection.focusOffset; - try { - JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$203) { - JSCompiler_temp = null; - break a; - } - var length = 0, - start = -1, - end = -1, - indexWithinAnchor = 0, - indexWithinFocus = 0, - node = root, - parentNode = null; - b: for (;;) { - for (var next; ; ) { - node !== JSCompiler_temp || - (0 !== anchorOffset && 3 !== node.nodeType) || - (start = length + anchorOffset); - node !== focusNode || - (0 !== selection && 3 !== node.nodeType) || - (end = length + selection); - 3 === node.nodeType && (length += node.nodeValue.length); - if (null === (next = node.firstChild)) break; - parentNode = node; - node = next; - } - for (;;) { - if (node === root) break b; - parentNode === JSCompiler_temp && - ++indexWithinAnchor === anchorOffset && - (start = length); - parentNode === focusNode && - ++indexWithinFocus === selection && - (end = length); - if (null !== (next = node.nextSibling)) break; - node = parentNode; - parentNode = node.parentNode; - } - node = next; - } - JSCompiler_temp = - -1 === start || -1 === end ? null : { start: start, end: end }; - } else JSCompiler_temp = null; - } - JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; - } else JSCompiler_temp = null; - selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; - root = null; - JSCompiler_temp = selectionInformation.focusedElem; - null !== JSCompiler_temp && - (root = getClosestInstanceFromNode(JSCompiler_temp)); - _enabled = !1; - focusedInstanceHandle = root; - for (nextEffect = firstChild; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.deletions; - if (null !== root) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - doesFiberContain(anchorOffset, focusedInstanceHandle) && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(anchorOffset)); - root = firstChild.child; - if (0 !== (firstChild.subtreeFlags & 9236) && null !== root) - (root.return = firstChild), (nextEffect = root); - else - for (; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.alternate; - JSCompiler_temp = firstChild.flags; - if ( - (anchorOffset = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) - ) { - if ((anchorOffset = 13 === firstChild.tag)) - a: { - if ( - null !== root && - ((anchorOffset = root.memoizedState), - null === anchorOffset || null !== anchorOffset.dehydrated) - ) { - anchorOffset = firstChild.memoizedState; - anchorOffset = - null !== anchorOffset && null === anchorOffset.dehydrated; - break a; - } - anchorOffset = !1; - } - anchorOffset = - anchorOffset && doesFiberContain(firstChild, focusedInstanceHandle); - } - anchorOffset && +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; + doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(firstChild)); - switch (firstChild.tag) { + beforeActiveInstanceBlur(deletion)); + } + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); + else + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; + if ( + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle + ) { + if ((JSCompiler_temp = 13 === i.tag)) + b: { + if ( + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) + ) { + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; + } + JSCompiler_temp = !1; + } + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); + } + switch (i.tag) { case 0: if ( - 0 !== (JSCompiler_temp & 4) && - ((root = firstChild.updateQueue), - (root = null !== root ? root.events : null), - null !== root) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - (anchorOffset.ref.impl = anchorOffset.nextImpl); + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), + (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (JSCompiler_temp & 1024) && null !== root) { - JSCompiler_temp = void 0; - anchorOffset = firstChild; - focusNode = root.memoizedProps; - root = root.memoizedState; - selection = anchorOffset.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - anchorOffset.type, - focusNode, - anchorOffset.elementType === anchorOffset.type + i.type, + flags, + i.elementType === i.type ); - JSCompiler_temp = selection.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - root + deletion ); - selection.__reactInternalSnapshotBeforeUpdate = JSCompiler_temp; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = deletions; } catch (error) { - captureCommitPhaseError( - anchorOffset, - anchorOffset.return, - error - ); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - if (0 !== (JSCompiler_temp & 1024)) - if ( - ((root = firstChild.stateNode.containerInfo), - (JSCompiler_temp = root.nodeType), - 9 === JSCompiler_temp) + if (0 !== (flags & 1024)) + b: if ( + ((deletions = i.stateNode.containerInfo), + (i = deletions.nodeType), + 9 === i) ) - clearContainerSparingly(root); - else if (1 === JSCompiler_temp) - switch (root.nodeName) { + clearContainerSparingly(deletions); + else if (1 === i) + switch (deletions.nodeName) { case "HEAD": case "HTML": case "BODY": - clearContainerSparingly(root); - break; + clearContainerSparingly(deletions); + break b; default: - root.textContent = ""; + deletions.textContent = ""; } break; case 5: @@ -8972,22 +8886,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (JSCompiler_temp & 1024)) - throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - root = firstChild.sibling; - if (null !== root) { - root.return = firstChild.return; - nextEffect = root; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = firstChild.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -12176,32 +12085,33 @@ function commitRootImpl( (root.callbackPriority = 0), (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = 2; - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$197 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$197 && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = 2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffectsOnFiber(finishedWork, root), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -12258,7 +12168,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$198 = rootWithPendingPassiveEffects, + var root$197 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12273,7 +12183,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$198, remainingLanes); + releaseRootPooledCache(root$197, remainingLanes); } } return !1; @@ -13510,14 +13420,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$354; if (canUseDOM) { - var isSupported$jscomp$inline_1585 = "oninput" in document; - if (!isSupported$jscomp$inline_1585) { - var element$jscomp$inline_1586 = document.createElement("div"); - element$jscomp$inline_1586.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1585 = - "function" === typeof element$jscomp$inline_1586.oninput; + var isSupported$jscomp$inline_1589 = "oninput" in document; + if (!isSupported$jscomp$inline_1589) { + var element$jscomp$inline_1590 = document.createElement("div"); + element$jscomp$inline_1590.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1589 = + "function" === typeof element$jscomp$inline_1590.oninput; } - JSCompiler_inline_result$jscomp$354 = isSupported$jscomp$inline_1585; + JSCompiler_inline_result$jscomp$354 = isSupported$jscomp$inline_1589; } else JSCompiler_inline_result$jscomp$354 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$354 && @@ -13931,20 +13841,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1626 = 0; - i$jscomp$inline_1626 < simpleEventPluginEvents.length; - i$jscomp$inline_1626++ + var i$jscomp$inline_1630 = 0; + i$jscomp$inline_1630 < simpleEventPluginEvents.length; + i$jscomp$inline_1630++ ) { - var eventName$jscomp$inline_1627 = - simpleEventPluginEvents[i$jscomp$inline_1626], - domEventName$jscomp$inline_1628 = - eventName$jscomp$inline_1627.toLowerCase(), - capitalizedEvent$jscomp$inline_1629 = - eventName$jscomp$inline_1627[0].toUpperCase() + - eventName$jscomp$inline_1627.slice(1); + var eventName$jscomp$inline_1631 = + simpleEventPluginEvents[i$jscomp$inline_1630], + domEventName$jscomp$inline_1632 = + eventName$jscomp$inline_1631.toLowerCase(), + capitalizedEvent$jscomp$inline_1633 = + eventName$jscomp$inline_1631[0].toUpperCase() + + eventName$jscomp$inline_1631.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1628, - "on" + capitalizedEvent$jscomp$inline_1629 + domEventName$jscomp$inline_1632, + "on" + capitalizedEvent$jscomp$inline_1633 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15237,34 +15147,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$217 = props[hasSrc]; - if (null != propValue$217) + var propValue$216 = props[hasSrc]; + if (null != propValue$216) switch (hasSrc) { case "name": - hasSrcSet = propValue$217; + hasSrcSet = propValue$216; break; case "type": - propValue = propValue$217; + propValue = propValue$216; break; case "checked": - checked = propValue$217; + checked = propValue$216; break; case "defaultChecked": - defaultChecked = propValue$217; + defaultChecked = propValue$216; break; case "value": - propKey = propValue$217; + propKey = propValue$216; break; case "defaultValue": - defaultValue = propValue$217; + defaultValue = propValue$216; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$217) + if (null != propValue$216) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$217, props, null); + setProp(domElement, tag, hasSrc, propValue$216, props, null); } } initInput( @@ -15401,14 +15311,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$217 in props) - props.hasOwnProperty(propValue$217) && - ((hasSrc = props[propValue$217]), + for (propValue$216 in props) + props.hasOwnProperty(propValue$216) && + ((hasSrc = props[propValue$216]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$217, + propValue$216, hasSrc, props, void 0 @@ -15456,14 +15366,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$234 in nextProps) { - var propKey = nextProps[propKey$234]; - lastProp = lastProps[propKey$234]; + for (var propKey$233 in nextProps) { + var propKey = nextProps[propKey$233]; + lastProp = lastProps[propKey$233]; if ( - nextProps.hasOwnProperty(propKey$234) && + nextProps.hasOwnProperty(propKey$233) && (null != propKey || null != lastProp) ) - switch (propKey$234) { + switch (propKey$233) { case "type": type = propKey; break; @@ -15492,7 +15402,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$234, + propKey$233, propKey, nextProps, lastProp @@ -15511,7 +15421,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$234 = null; + propKey = value = defaultValue = propKey$233 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15542,7 +15452,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$234 = type; + propKey$233 = type; break; case "defaultValue": defaultValue = type; @@ -15563,15 +15473,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$234 - ? updateOptions(domElement, !!lastProps, propKey$234, !1) + null != propKey$233 + ? updateOptions(domElement, !!lastProps, propKey$233, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$234 = null; + propKey = propKey$233 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15595,7 +15505,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$234 = name; + propKey$233 = name; break; case "defaultValue": propKey = name; @@ -15609,17 +15519,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$234, propKey); + updateTextarea(domElement, propKey$233, propKey); return; case "option": - for (var propKey$250 in lastProps) + for (var propKey$249 in lastProps) if ( - ((propKey$234 = lastProps[propKey$250]), - lastProps.hasOwnProperty(propKey$250) && - null != propKey$234 && - !nextProps.hasOwnProperty(propKey$250)) + ((propKey$233 = lastProps[propKey$249]), + lastProps.hasOwnProperty(propKey$249) && + null != propKey$233 && + !nextProps.hasOwnProperty(propKey$249)) ) - switch (propKey$250) { + switch (propKey$249) { case "selected": domElement.selected = !1; break; @@ -15627,33 +15537,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$250, + propKey$249, null, nextProps, - propKey$234 + propKey$233 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$234 = nextProps[lastDefaultValue]), + ((propKey$233 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$234 !== propKey && - (null != propKey$234 || null != propKey)) + propKey$233 !== propKey && + (null != propKey$233 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$234 && - "function" !== typeof propKey$234 && - "symbol" !== typeof propKey$234; + propKey$233 && + "function" !== typeof propKey$233 && + "symbol" !== typeof propKey$233; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$234, + propKey$233, nextProps, propKey ); @@ -15674,24 +15584,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$255 in lastProps) - (propKey$234 = lastProps[propKey$255]), - lastProps.hasOwnProperty(propKey$255) && - null != propKey$234 && - !nextProps.hasOwnProperty(propKey$255) && - setProp(domElement, tag, propKey$255, null, nextProps, propKey$234); + for (var propKey$254 in lastProps) + (propKey$233 = lastProps[propKey$254]), + lastProps.hasOwnProperty(propKey$254) && + null != propKey$233 && + !nextProps.hasOwnProperty(propKey$254) && + setProp(domElement, tag, propKey$254, null, nextProps, propKey$233); for (checked in nextProps) if ( - ((propKey$234 = nextProps[checked]), + ((propKey$233 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$234 !== propKey && - (null != propKey$234 || null != propKey)) + propKey$233 !== propKey && + (null != propKey$233 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$234) + if (null != propKey$233) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15699,7 +15609,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$234, + propKey$233, nextProps, propKey ); @@ -15707,49 +15617,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$260 in lastProps) - (propKey$234 = lastProps[propKey$260]), - lastProps.hasOwnProperty(propKey$260) && - void 0 !== propKey$234 && - !nextProps.hasOwnProperty(propKey$260) && + for (var propKey$259 in lastProps) + (propKey$233 = lastProps[propKey$259]), + lastProps.hasOwnProperty(propKey$259) && + void 0 !== propKey$233 && + !nextProps.hasOwnProperty(propKey$259) && setPropOnCustomElement( domElement, tag, - propKey$260, + propKey$259, void 0, nextProps, - propKey$234 + propKey$233 ); for (defaultChecked in nextProps) - (propKey$234 = nextProps[defaultChecked]), + (propKey$233 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$234 === propKey || - (void 0 === propKey$234 && void 0 === propKey) || + propKey$233 === propKey || + (void 0 === propKey$233 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$234, + propKey$233, nextProps, propKey ); return; } } - for (var propKey$265 in lastProps) - (propKey$234 = lastProps[propKey$265]), - lastProps.hasOwnProperty(propKey$265) && - null != propKey$234 && - !nextProps.hasOwnProperty(propKey$265) && - setProp(domElement, tag, propKey$265, null, nextProps, propKey$234); + for (var propKey$264 in lastProps) + (propKey$233 = lastProps[propKey$264]), + lastProps.hasOwnProperty(propKey$264) && + null != propKey$233 && + !nextProps.hasOwnProperty(propKey$264) && + setProp(domElement, tag, propKey$264, null, nextProps, propKey$233); for (lastProp in nextProps) - (propKey$234 = nextProps[lastProp]), + (propKey$233 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$234 === propKey || - (null == propKey$234 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$234, nextProps, propKey); + propKey$233 === propKey || + (null == propKey$233 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$233, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15782,6 +15692,85 @@ function getChildHostContextProd(parentNamespace, type) { ? 0 : parentNamespace; } +function prepareForCommit(containerInfo) { + eventsEnabled = _enabled; + containerInfo = getActiveElementDeep(containerInfo); + if (hasSelectionCapabilities(containerInfo)) { + if ("selectionStart" in containerInfo) + var JSCompiler_temp = { + start: containerInfo.selectionStart, + end: containerInfo.selectionEnd + }; + else + a: { + JSCompiler_temp = + ((JSCompiler_temp = containerInfo.ownerDocument) && + JSCompiler_temp.defaultView) || + window; + var selection = + JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); + if (selection && 0 !== selection.rangeCount) { + JSCompiler_temp = selection.anchorNode; + var anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode; + selection = selection.focusOffset; + try { + JSCompiler_temp.nodeType, focusNode.nodeType; + } catch (e$202) { + JSCompiler_temp = null; + break a; + } + var length = 0, + start = -1, + end = -1, + indexWithinAnchor = 0, + indexWithinFocus = 0, + node = containerInfo, + parentNode = null; + b: for (;;) { + for (var next; ; ) { + node !== JSCompiler_temp || + (0 !== anchorOffset && 3 !== node.nodeType) || + (start = length + anchorOffset); + node !== focusNode || + (0 !== selection && 3 !== node.nodeType) || + (end = length + selection); + 3 === node.nodeType && (length += node.nodeValue.length); + if (null === (next = node.firstChild)) break; + parentNode = node; + node = next; + } + for (;;) { + if (node === containerInfo) break b; + parentNode === JSCompiler_temp && + ++indexWithinAnchor === anchorOffset && + (start = length); + parentNode === focusNode && + ++indexWithinFocus === selection && + (end = length); + if (null !== (next = node.nextSibling)) break; + node = parentNode; + parentNode = node.parentNode; + } + node = next; + } + JSCompiler_temp = + -1 === start || -1 === end ? null : { start: start, end: end }; + } else JSCompiler_temp = null; + } + JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; + } else JSCompiler_temp = null; + selectionInformation = { + focusedElem: containerInfo, + selectionRange: JSCompiler_temp + }; + containerInfo = null; + JSCompiler_temp = selectionInformation.focusedElem; + null !== JSCompiler_temp && + (containerInfo = getClosestInstanceFromNode(JSCompiler_temp)); + _enabled = !1; + return containerInfo; +} function beforeActiveInstanceBlur(internalInstanceHandle) { _enabled = !0; var target = selectionInformation.focusedElem, @@ -16403,26 +16392,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$273 = getResourcesFromRoot( + var styles$272 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$274 = styles$273.get(type); - resource$274 || + resource$273 = styles$272.get(type); + resource$273 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$274 = { + (resource$273 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$273.set(type, resource$274), - (styles$273 = JSCompiler_inline_result.querySelector( + styles$272.set(type, resource$273), + (styles$272 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$273._p && - ((resource$274.instance = styles$273), - (resource$274.state.loading = 5)), + !styles$272._p && + ((resource$273.instance = styles$272), + (resource$273.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16435,16 +16424,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$273 || + styles$272 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$274.state + resource$273.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$274; + return resource$273; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16541,37 +16530,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$279 = hoistableRoot.querySelector( + var instance$278 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$279) + if (instance$278) return ( (resource.state.loading |= 4), - (resource.instance = instance$279), - markNodeAsHoistable(instance$279), - instance$279 + (resource.instance = instance$278), + markNodeAsHoistable(instance$278), + instance$278 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$279 = ( + instance$278 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$279); - var linkInstance = instance$279; + markNodeAsHoistable(instance$278); + var linkInstance = instance$278; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$279, "link", instance); + setInitialProperties(instance$278, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$279, props.precedence, hoistableRoot); - return (resource.instance = instance$279); + insertStylesheet(instance$278, props.precedence, hoistableRoot); + return (resource.instance = instance$278); case "script": - instance$279 = getScriptKey(props.src); + instance$278 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$279) + getScriptSelectorFromKey(instance$278) )) ) return ( @@ -16580,7 +16569,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$279))) + if ((styleProps = preloadPropsMap.get(instance$278))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17584,16 +17573,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1806 = React.version; if ( - "19.1.0-www-classic-6ca7fbe8-20250102" !== - isomorphicReactPackageVersion$jscomp$inline_1799 + "19.1.0-www-classic-d8b903f4-20250102" !== + isomorphicReactPackageVersion$jscomp$inline_1806 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1799, - "19.1.0-www-classic-6ca7fbe8-20250102" + isomorphicReactPackageVersion$jscomp$inline_1806, + "19.1.0-www-classic-d8b903f4-20250102" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17609,24 +17598,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2341 = { +var internals$jscomp$inline_2352 = { bundleType: 0, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2342 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2353 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2342.isDisabled && - hook$jscomp$inline_2342.supportsFiber + !hook$jscomp$inline_2353.isDisabled && + hook$jscomp$inline_2353.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2342.inject( - internals$jscomp$inline_2341 + (rendererID = hook$jscomp$inline_2353.inject( + internals$jscomp$inline_2352 )), - (injectedHook = hook$jscomp$inline_2342); + (injectedHook = hook$jscomp$inline_2353); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18130,4 +18119,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-classic-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 29993f9a6a..40a175c836 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -8528,191 +8528,105 @@ var offscreenSubtreeIsHidden = !1, nextEffect = null, focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1; -function commitBeforeMutationEffects(root, firstChild) { - root = root.containerInfo; - eventsEnabled = _enabled; - root = getActiveElementDeep(root); - if (hasSelectionCapabilities(root)) { - if ("selectionStart" in root) - var JSCompiler_temp = { - start: root.selectionStart, - end: root.selectionEnd - }; - else - a: { - JSCompiler_temp = - ((JSCompiler_temp = root.ownerDocument) && - JSCompiler_temp.defaultView) || - window; - var selection = - JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); - if (selection && 0 !== selection.rangeCount) { - JSCompiler_temp = selection.anchorNode; - var anchorOffset = selection.anchorOffset, - focusNode = selection.focusNode; - selection = selection.focusOffset; - try { - JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$203) { - JSCompiler_temp = null; - break a; - } - var length = 0, - start = -1, - end = -1, - indexWithinAnchor = 0, - indexWithinFocus = 0, - node = root, - parentNode = null; - b: for (;;) { - for (var next; ; ) { - node !== JSCompiler_temp || - (0 !== anchorOffset && 3 !== node.nodeType) || - (start = length + anchorOffset); - node !== focusNode || - (0 !== selection && 3 !== node.nodeType) || - (end = length + selection); - 3 === node.nodeType && (length += node.nodeValue.length); - if (null === (next = node.firstChild)) break; - parentNode = node; - node = next; - } - for (;;) { - if (node === root) break b; - parentNode === JSCompiler_temp && - ++indexWithinAnchor === anchorOffset && - (start = length); - parentNode === focusNode && - ++indexWithinFocus === selection && - (end = length); - if (null !== (next = node.nextSibling)) break; - node = parentNode; - parentNode = node.parentNode; - } - node = next; - } - JSCompiler_temp = - -1 === start || -1 === end ? null : { start: start, end: end }; - } else JSCompiler_temp = null; - } - JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; - } else JSCompiler_temp = null; - selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp }; - root = null; - JSCompiler_temp = selectionInformation.focusedElem; - null !== JSCompiler_temp && - (root = getClosestInstanceFromNode(JSCompiler_temp)); - _enabled = !1; - focusedInstanceHandle = root; - for (nextEffect = firstChild; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.deletions; - if (null !== root) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - doesFiberContain(anchorOffset, focusedInstanceHandle) && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(anchorOffset)); - root = firstChild.child; - if (0 !== (firstChild.subtreeFlags & 9236) && null !== root) - (root.return = firstChild), (nextEffect = root); - else - for (; null !== nextEffect; ) { - firstChild = nextEffect; - root = firstChild.alternate; - JSCompiler_temp = firstChild.flags; - if ( - (anchorOffset = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) - ) { - if ((anchorOffset = 13 === firstChild.tag)) - a: { - if ( - null !== root && - ((anchorOffset = root.memoizedState), - null === anchorOffset || null !== anchorOffset.dehydrated) - ) { - anchorOffset = firstChild.memoizedState; - anchorOffset = - null !== anchorOffset && null === anchorOffset.dehydrated; - break a; - } - anchorOffset = !1; - } - anchorOffset = - anchorOffset && doesFiberContain(firstChild, focusedInstanceHandle); - } - anchorOffset && +function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; + doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(firstChild)); - switch (firstChild.tag) { + beforeActiveInstanceBlur(deletion)); + } + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); + else + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; + if ( + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle + ) { + if ((JSCompiler_temp = 13 === i.tag)) + b: { + if ( + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || null !== JSCompiler_temp.dehydrated) + ) { + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; + } + JSCompiler_temp = !1; + } + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); + } + switch (i.tag) { case 0: if ( - 0 !== (JSCompiler_temp & 4) && - ((root = firstChild.updateQueue), - (root = null !== root ? root.events : null), - null !== root) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for ( - JSCompiler_temp = 0; - JSCompiler_temp < root.length; - JSCompiler_temp++ - ) - (anchorOffset = root[JSCompiler_temp]), - (anchorOffset.ref.impl = anchorOffset.nextImpl); + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), + (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (JSCompiler_temp & 1024) && null !== root) { - JSCompiler_temp = void 0; - anchorOffset = firstChild; - focusNode = root.memoizedProps; - root = root.memoizedState; - selection = anchorOffset.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - anchorOffset.type, - focusNode, - anchorOffset.elementType === anchorOffset.type + i.type, + flags, + i.elementType === i.type ); - JSCompiler_temp = selection.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - root + deletion ); - selection.__reactInternalSnapshotBeforeUpdate = JSCompiler_temp; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = deletions; } catch (error) { - captureCommitPhaseError( - anchorOffset, - anchorOffset.return, - error - ); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - if (0 !== (JSCompiler_temp & 1024)) - if ( - ((root = firstChild.stateNode.containerInfo), - (JSCompiler_temp = root.nodeType), - 9 === JSCompiler_temp) + if (0 !== (flags & 1024)) + b: if ( + ((deletions = i.stateNode.containerInfo), + (i = deletions.nodeType), + 9 === i) ) - clearContainerSparingly(root); - else if (1 === JSCompiler_temp) - switch (root.nodeName) { + clearContainerSparingly(deletions); + else if (1 === i) + switch (deletions.nodeName) { case "HEAD": case "HTML": case "BODY": - clearContainerSparingly(root); - break; + clearContainerSparingly(deletions); + break b; default: - root.textContent = ""; + deletions.textContent = ""; } break; case 5: @@ -8723,22 +8637,17 @@ function commitBeforeMutationEffects(root, firstChild) { case 17: break; default: - if (0 !== (JSCompiler_temp & 1024)) - throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) throw Error(formatProdErrorMessage(163)); } - root = firstChild.sibling; - if (null !== root) { - root.return = firstChild.return; - nextEffect = root; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = firstChild.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -11923,32 +11832,33 @@ function commitRootImpl( (root.callbackPriority = 0), (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = Internals.p; - Internals.p = 2; - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$197 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$197 && - ((_enabled = !0), - dispatchAfterDetachedBlur(selectionInformation.focusedElem), - (_enabled = !1)); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = suspendedRetryLanes; - Internals.p = updatedLanes; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = Internals.p), + (Internals.p = 2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffectsOnFiber(finishedWork, root), + shouldFireAfterActiveInstanceBlur && + ((_enabled = !0), + dispatchAfterDetachedBlur(selectionInformation.focusedElem), + (_enabled = !1)), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = suspendedRetryLanes), + (Internals.p = updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -12005,7 +11915,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$198 = rootWithPendingPassiveEffects, + var root$197 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12020,7 +11930,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$198, remainingLanes); + releaseRootPooledCache(root$197, remainingLanes); } } return !1; @@ -13246,14 +13156,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$357; if (canUseDOM) { - var isSupported$jscomp$inline_1575 = "oninput" in document; - if (!isSupported$jscomp$inline_1575) { - var element$jscomp$inline_1576 = document.createElement("div"); - element$jscomp$inline_1576.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1575 = - "function" === typeof element$jscomp$inline_1576.oninput; + var isSupported$jscomp$inline_1579 = "oninput" in document; + if (!isSupported$jscomp$inline_1579) { + var element$jscomp$inline_1580 = document.createElement("div"); + element$jscomp$inline_1580.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1579 = + "function" === typeof element$jscomp$inline_1580.oninput; } - JSCompiler_inline_result$jscomp$357 = isSupported$jscomp$inline_1575; + JSCompiler_inline_result$jscomp$357 = isSupported$jscomp$inline_1579; } else JSCompiler_inline_result$jscomp$357 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$357 && @@ -13667,20 +13577,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1616 = 0; - i$jscomp$inline_1616 < simpleEventPluginEvents.length; - i$jscomp$inline_1616++ + var i$jscomp$inline_1620 = 0; + i$jscomp$inline_1620 < simpleEventPluginEvents.length; + i$jscomp$inline_1620++ ) { - var eventName$jscomp$inline_1617 = - simpleEventPluginEvents[i$jscomp$inline_1616], - domEventName$jscomp$inline_1618 = - eventName$jscomp$inline_1617.toLowerCase(), - capitalizedEvent$jscomp$inline_1619 = - eventName$jscomp$inline_1617[0].toUpperCase() + - eventName$jscomp$inline_1617.slice(1); + var eventName$jscomp$inline_1621 = + simpleEventPluginEvents[i$jscomp$inline_1620], + domEventName$jscomp$inline_1622 = + eventName$jscomp$inline_1621.toLowerCase(), + capitalizedEvent$jscomp$inline_1623 = + eventName$jscomp$inline_1621[0].toUpperCase() + + eventName$jscomp$inline_1621.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1618, - "on" + capitalizedEvent$jscomp$inline_1619 + domEventName$jscomp$inline_1622, + "on" + capitalizedEvent$jscomp$inline_1623 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14969,34 +14879,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$217 = props[hasSrc]; - if (null != propValue$217) + var propValue$216 = props[hasSrc]; + if (null != propValue$216) switch (hasSrc) { case "name": - hasSrcSet = propValue$217; + hasSrcSet = propValue$216; break; case "type": - propKey = propValue$217; + propKey = propValue$216; break; case "checked": - checked = propValue$217; + checked = propValue$216; break; case "defaultChecked": - defaultChecked = propValue$217; + defaultChecked = propValue$216; break; case "value": - propValue = propValue$217; + propValue = propValue$216; break; case "defaultValue": - defaultValue = propValue$217; + defaultValue = propValue$216; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$217) + if (null != propValue$216) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$217, props, null); + setProp(domElement, tag, hasSrc, propValue$216, props, null); } } initInput( @@ -15132,14 +15042,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$217 in props) - props.hasOwnProperty(propValue$217) && - ((hasSrc = props[propValue$217]), + for (propValue$216 in props) + props.hasOwnProperty(propValue$216) && + ((hasSrc = props[propValue$216]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$217, + propValue$216, hasSrc, props, void 0 @@ -15187,14 +15097,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$234 in nextProps) { - var propKey = nextProps[propKey$234]; - lastProp = lastProps[propKey$234]; + for (var propKey$233 in nextProps) { + var propKey = nextProps[propKey$233]; + lastProp = lastProps[propKey$233]; if ( - nextProps.hasOwnProperty(propKey$234) && + nextProps.hasOwnProperty(propKey$233) && (null != propKey || null != lastProp) ) - switch (propKey$234) { + switch (propKey$233) { case "type": type = propKey; break; @@ -15223,7 +15133,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$234, + propKey$233, propKey, nextProps, lastProp @@ -15242,7 +15152,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$234 = null; + propKey = value = defaultValue = propKey$233 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15273,7 +15183,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$234 = type; + propKey$233 = type; break; case "defaultValue": defaultValue = type; @@ -15294,15 +15204,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$234 - ? updateOptions(domElement, !!lastProps, propKey$234, !1) + null != propKey$233 + ? updateOptions(domElement, !!lastProps, propKey$233, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$234 = null; + propKey = propKey$233 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15326,7 +15236,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$234 = name; + propKey$233 = name; break; case "defaultValue": propKey = name; @@ -15340,17 +15250,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$234, propKey); + updateTextarea(domElement, propKey$233, propKey); return; case "option": - for (var propKey$250 in lastProps) + for (var propKey$249 in lastProps) if ( - ((propKey$234 = lastProps[propKey$250]), - lastProps.hasOwnProperty(propKey$250) && - null != propKey$234 && - !nextProps.hasOwnProperty(propKey$250)) + ((propKey$233 = lastProps[propKey$249]), + lastProps.hasOwnProperty(propKey$249) && + null != propKey$233 && + !nextProps.hasOwnProperty(propKey$249)) ) - switch (propKey$250) { + switch (propKey$249) { case "selected": domElement.selected = !1; break; @@ -15358,33 +15268,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$250, + propKey$249, null, nextProps, - propKey$234 + propKey$233 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$234 = nextProps[lastDefaultValue]), + ((propKey$233 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$234 !== propKey && - (null != propKey$234 || null != propKey)) + propKey$233 !== propKey && + (null != propKey$233 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$234 && - "function" !== typeof propKey$234 && - "symbol" !== typeof propKey$234; + propKey$233 && + "function" !== typeof propKey$233 && + "symbol" !== typeof propKey$233; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$234, + propKey$233, nextProps, propKey ); @@ -15405,24 +15315,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$255 in lastProps) - (propKey$234 = lastProps[propKey$255]), - lastProps.hasOwnProperty(propKey$255) && - null != propKey$234 && - !nextProps.hasOwnProperty(propKey$255) && - setProp(domElement, tag, propKey$255, null, nextProps, propKey$234); + for (var propKey$254 in lastProps) + (propKey$233 = lastProps[propKey$254]), + lastProps.hasOwnProperty(propKey$254) && + null != propKey$233 && + !nextProps.hasOwnProperty(propKey$254) && + setProp(domElement, tag, propKey$254, null, nextProps, propKey$233); for (checked in nextProps) if ( - ((propKey$234 = nextProps[checked]), + ((propKey$233 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$234 !== propKey && - (null != propKey$234 || null != propKey)) + propKey$233 !== propKey && + (null != propKey$233 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$234) + if (null != propKey$233) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15430,7 +15340,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$234, + propKey$233, nextProps, propKey ); @@ -15438,49 +15348,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$260 in lastProps) - (propKey$234 = lastProps[propKey$260]), - lastProps.hasOwnProperty(propKey$260) && - void 0 !== propKey$234 && - !nextProps.hasOwnProperty(propKey$260) && + for (var propKey$259 in lastProps) + (propKey$233 = lastProps[propKey$259]), + lastProps.hasOwnProperty(propKey$259) && + void 0 !== propKey$233 && + !nextProps.hasOwnProperty(propKey$259) && setPropOnCustomElement( domElement, tag, - propKey$260, + propKey$259, void 0, nextProps, - propKey$234 + propKey$233 ); for (defaultChecked in nextProps) - (propKey$234 = nextProps[defaultChecked]), + (propKey$233 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$234 === propKey || - (void 0 === propKey$234 && void 0 === propKey) || + propKey$233 === propKey || + (void 0 === propKey$233 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$234, + propKey$233, nextProps, propKey ); return; } } - for (var propKey$265 in lastProps) - (propKey$234 = lastProps[propKey$265]), - lastProps.hasOwnProperty(propKey$265) && - null != propKey$234 && - !nextProps.hasOwnProperty(propKey$265) && - setProp(domElement, tag, propKey$265, null, nextProps, propKey$234); + for (var propKey$264 in lastProps) + (propKey$233 = lastProps[propKey$264]), + lastProps.hasOwnProperty(propKey$264) && + null != propKey$233 && + !nextProps.hasOwnProperty(propKey$264) && + setProp(domElement, tag, propKey$264, null, nextProps, propKey$233); for (lastProp in nextProps) - (propKey$234 = nextProps[lastProp]), + (propKey$233 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$234 === propKey || - (null == propKey$234 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$234, nextProps, propKey); + propKey$233 === propKey || + (null == propKey$233 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$233, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15513,6 +15423,85 @@ function getChildHostContextProd(parentNamespace, type) { ? 0 : parentNamespace; } +function prepareForCommit(containerInfo) { + eventsEnabled = _enabled; + containerInfo = getActiveElementDeep(containerInfo); + if (hasSelectionCapabilities(containerInfo)) { + if ("selectionStart" in containerInfo) + var JSCompiler_temp = { + start: containerInfo.selectionStart, + end: containerInfo.selectionEnd + }; + else + a: { + JSCompiler_temp = + ((JSCompiler_temp = containerInfo.ownerDocument) && + JSCompiler_temp.defaultView) || + window; + var selection = + JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); + if (selection && 0 !== selection.rangeCount) { + JSCompiler_temp = selection.anchorNode; + var anchorOffset = selection.anchorOffset, + focusNode = selection.focusNode; + selection = selection.focusOffset; + try { + JSCompiler_temp.nodeType, focusNode.nodeType; + } catch (e$202) { + JSCompiler_temp = null; + break a; + } + var length = 0, + start = -1, + end = -1, + indexWithinAnchor = 0, + indexWithinFocus = 0, + node = containerInfo, + parentNode = null; + b: for (;;) { + for (var next; ; ) { + node !== JSCompiler_temp || + (0 !== anchorOffset && 3 !== node.nodeType) || + (start = length + anchorOffset); + node !== focusNode || + (0 !== selection && 3 !== node.nodeType) || + (end = length + selection); + 3 === node.nodeType && (length += node.nodeValue.length); + if (null === (next = node.firstChild)) break; + parentNode = node; + node = next; + } + for (;;) { + if (node === containerInfo) break b; + parentNode === JSCompiler_temp && + ++indexWithinAnchor === anchorOffset && + (start = length); + parentNode === focusNode && + ++indexWithinFocus === selection && + (end = length); + if (null !== (next = node.nextSibling)) break; + node = parentNode; + parentNode = node.parentNode; + } + node = next; + } + JSCompiler_temp = + -1 === start || -1 === end ? null : { start: start, end: end }; + } else JSCompiler_temp = null; + } + JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; + } else JSCompiler_temp = null; + selectionInformation = { + focusedElem: containerInfo, + selectionRange: JSCompiler_temp + }; + containerInfo = null; + JSCompiler_temp = selectionInformation.focusedElem; + null !== JSCompiler_temp && + (containerInfo = getClosestInstanceFromNode(JSCompiler_temp)); + _enabled = !1; + return containerInfo; +} function beforeActiveInstanceBlur(internalInstanceHandle) { _enabled = !0; var target = selectionInformation.focusedElem, @@ -16134,26 +16123,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$273 = getResourcesFromRoot( + var styles$272 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$274 = styles$273.get(type); - resource$274 || + resource$273 = styles$272.get(type); + resource$273 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$274 = { + (resource$273 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$273.set(type, resource$274), - (styles$273 = JSCompiler_inline_result.querySelector( + styles$272.set(type, resource$273), + (styles$272 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$273._p && - ((resource$274.instance = styles$273), - (resource$274.state.loading = 5)), + !styles$272._p && + ((resource$273.instance = styles$272), + (resource$273.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16166,16 +16155,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$273 || + styles$272 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$274.state + resource$273.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$274; + return resource$273; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16272,37 +16261,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$279 = hoistableRoot.querySelector( + var instance$278 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$279) + if (instance$278) return ( (resource.state.loading |= 4), - (resource.instance = instance$279), - markNodeAsHoistable(instance$279), - instance$279 + (resource.instance = instance$278), + markNodeAsHoistable(instance$278), + instance$278 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$279 = ( + instance$278 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$279); - var linkInstance = instance$279; + markNodeAsHoistable(instance$278); + var linkInstance = instance$278; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$279, "link", instance); + setInitialProperties(instance$278, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$279, props.precedence, hoistableRoot); - return (resource.instance = instance$279); + insertStylesheet(instance$278, props.precedence, hoistableRoot); + return (resource.instance = instance$278); case "script": - instance$279 = getScriptKey(props.src); + instance$278 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$279) + getScriptSelectorFromKey(instance$278) )) ) return ( @@ -16311,7 +16300,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$279))) + if ((styleProps = preloadPropsMap.get(instance$278))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17315,16 +17304,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1789 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1796 = React.version; if ( - "19.1.0-www-modern-6ca7fbe8-20250102" !== - isomorphicReactPackageVersion$jscomp$inline_1789 + "19.1.0-www-modern-d8b903f4-20250102" !== + isomorphicReactPackageVersion$jscomp$inline_1796 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1789, - "19.1.0-www-modern-6ca7fbe8-20250102" + isomorphicReactPackageVersion$jscomp$inline_1796, + "19.1.0-www-modern-d8b903f4-20250102" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17340,24 +17329,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2323 = { +var internals$jscomp$inline_2334 = { bundleType: 0, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2324 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2335 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2324.isDisabled && - hook$jscomp$inline_2324.supportsFiber + !hook$jscomp$inline_2335.isDisabled && + hook$jscomp$inline_2335.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2324.inject( - internals$jscomp$inline_2323 + (rendererID = hook$jscomp$inline_2335.inject( + internals$jscomp$inline_2334 )), - (injectedHook = hook$jscomp$inline_2324); + (injectedHook = hook$jscomp$inline_2335); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17861,4 +17850,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; +exports.version = "19.1.0-www-modern-d8b903f4-20250102"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 2670d1112e..f3031d4199 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -11245,6 +11245,7 @@ __DEV__ && } function commitBeforeMutationEffects(root, firstChild) { focusedInstanceHandle = prepareForCommit(root.containerInfo); + shouldFireAfterActiveInstanceBlur = !1; for (nextEffect = firstChild; null !== nextEffect; ) { root = nextEffect; firstChild = root.deletions; @@ -11339,10 +11340,7 @@ __DEV__ && nextEffect = root.return; } } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; focusedInstanceHandle = null; - return root; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -14984,39 +14982,36 @@ __DEV__ && (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = getCurrentUpdatePriority(); - setCurrentUpdatePriority(2); - suspendedRetryLanes = executionContext; - executionContext |= CommitContext; - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur && afterActiveInstanceBlur(); - resetAfterCommit(root.containerInfo); - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = getCurrentUpdatePriority()), + setCurrentUpdatePriority(2), + (suspendedRetryLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && afterActiveInstanceBlur(), + resetAfterCommit(root.containerInfo), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - setCurrentUpdatePriority(updatedLanes); - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + setCurrentUpdatePriority(updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = spawnedLane) ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -19064,7 +19059,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index c2af556df8..bdb8467cd2 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -11063,6 +11063,7 @@ __DEV__ && } function commitBeforeMutationEffects(root, firstChild) { focusedInstanceHandle = prepareForCommit(root.containerInfo); + shouldFireAfterActiveInstanceBlur = !1; for (nextEffect = firstChild; null !== nextEffect; ) { root = nextEffect; firstChild = root.deletions; @@ -11157,10 +11158,7 @@ __DEV__ && nextEffect = root.return; } } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; focusedInstanceHandle = null; - return root; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -14798,39 +14796,36 @@ __DEV__ && (root.cancelPendingCommit = null)); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = getCurrentUpdatePriority(); - setCurrentUpdatePriority(2); - suspendedRetryLanes = executionContext; - executionContext |= CommitContext; - var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur && afterActiveInstanceBlur(); - resetAfterCommit(root.containerInfo); - root.current = finishedWork; - enableSchedulingProfiler && + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = getCurrentUpdatePriority()), + setCurrentUpdatePriority(2), + (suspendedRetryLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, lanes), + shouldFireAfterActiveInstanceBlur && afterActiveInstanceBlur(), + resetAfterCommit(root.containerInfo), + (root.current = finishedWork), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted(lanes); - commitLayoutEffects(finishedWork, root, lanes); - enableSchedulingProfiler && + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted(lanes), + commitLayoutEffects(finishedWork, root, lanes), enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = suspendedRetryLanes; - setCurrentUpdatePriority(updatedLanes); - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = suspendedRetryLanes), + setCurrentUpdatePriority(updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = spawnedLane) ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -18838,7 +18833,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index af7469ea40..f078560bc1 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -7655,92 +7655,94 @@ module.exports = function ($$$config) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } - function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) { - var deletion = firstChild[i]; + function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), beforeActiveInstanceBlur(deletion)); } - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); else - for (; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.alternate; - i = root.flags; + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; if ( - (deletion = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle ) { - if ((deletion = 13 === root.tag)) - a: { + if ((JSCompiler_temp = 13 === i.tag)) + b: { if ( - null !== firstChild && - ((deletion = firstChild.memoizedState), - null === deletion || null !== deletion.dehydrated) + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || + null !== JSCompiler_temp.dehydrated) ) { - deletion = root.memoizedState; - deletion = null !== deletion && null === deletion.dehydrated; - break a; + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; } - deletion = !1; + JSCompiler_temp = !1; } - deletion = - deletion && doesFiberContain(root, focusedInstanceHandle); + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); } - deletion && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(root)); - switch (root.tag) { + switch (i.tag) { case 0: if ( - 0 !== (i & 4) && - ((firstChild = root.updateQueue), - (firstChild = null !== firstChild ? firstChild.events : null), - null !== firstChild) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for (i = 0; i < firstChild.length; i++) - (deletion = firstChild[i]), + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (i & 1024) && null !== firstChild) { - i = void 0; - deletion = root; - var prevProps = firstChild.memoizedProps; - firstChild = firstChild.memoizedState; - var instance = deletion.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - deletion.type, - prevProps, - deletion.elementType === deletion.type + i.type, + flags, + i.elementType === i.type ); - i = instance.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - firstChild + deletion ); - instance.__reactInternalSnapshotBeforeUpdate = i; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = + deletions; } catch (error) { - captureCommitPhaseError(deletion, deletion.return, error); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - 0 !== (i & 1024) && + 0 !== (flags & 1024) && supportsMutation && - clearContainer(root.stateNode.containerInfo); + clearContainer(i.stateNode.containerInfo); break; case 5: case 26: @@ -7750,21 +7752,18 @@ module.exports = function ($$$config) { case 17: break; default: - if (0 !== (i & 1024)) throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) + throw Error(formatProdErrorMessage(163)); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -10861,27 +10860,28 @@ module.exports = function ($$$config) { (root.callbackPriority = 0), (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = getCurrentUpdatePriority(); - setCurrentUpdatePriority(2); - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$180 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$180 && afterActiveInstanceBlur(); - resetAfterCommit(root.containerInfo); - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = suspendedRetryLanes; - setCurrentUpdatePriority(updatedLanes); - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = getCurrentUpdatePriority()), + setCurrentUpdatePriority(2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffectsOnFiber(finishedWork, root), + shouldFireAfterActiveInstanceBlur && afterActiveInstanceBlur(), + resetAfterCommit(root.containerInfo), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = suspendedRetryLanes), + setCurrentUpdatePriority(updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -12821,7 +12821,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 9f8d01647f..f5571dafb2 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -7417,92 +7417,94 @@ module.exports = function ($$$config) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } } - function commitBeforeMutationEffects(root, firstChild) { - focusedInstanceHandle = prepareForCommit(root.containerInfo); - for (nextEffect = firstChild; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.deletions; - if (null !== firstChild) - for (var i = 0; i < firstChild.length; i++) { - var deletion = firstChild[i]; + function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + deletions = fiber.deletions; + if (null !== deletions) + for (var i = 0; i < deletions.length; i++) { + var deletion = deletions[i]; doesFiberContain(deletion, focusedInstanceHandle) && ((shouldFireAfterActiveInstanceBlur = !0), beforeActiveInstanceBlur(deletion)); } - firstChild = root.child; - if (0 !== (root.subtreeFlags & 9236) && null !== firstChild) - (firstChild.return = root), (nextEffect = firstChild); + deletions = fiber.child; + if (0 !== (fiber.subtreeFlags & 9236) && null !== deletions) + (deletions.return = fiber), (nextEffect = deletions); else - for (; null !== nextEffect; ) { - root = nextEffect; - firstChild = root.alternate; - i = root.flags; + a: for (; null !== nextEffect; ) { + fiber = nextEffect; + deletions = void 0; + var JSCompiler_temp; + i = fiber; + deletion = i.alternate; + var flags = i.flags; if ( - (deletion = - !shouldFireAfterActiveInstanceBlur && - null !== focusedInstanceHandle) + !shouldFireAfterActiveInstanceBlur && + null !== focusedInstanceHandle ) { - if ((deletion = 13 === root.tag)) - a: { + if ((JSCompiler_temp = 13 === i.tag)) + b: { if ( - null !== firstChild && - ((deletion = firstChild.memoizedState), - null === deletion || null !== deletion.dehydrated) + null !== deletion && + ((JSCompiler_temp = deletion.memoizedState), + null === JSCompiler_temp || + null !== JSCompiler_temp.dehydrated) ) { - deletion = root.memoizedState; - deletion = null !== deletion && null === deletion.dehydrated; - break a; + JSCompiler_temp = i.memoizedState; + JSCompiler_temp = + null !== JSCompiler_temp && + null === JSCompiler_temp.dehydrated; + break b; } - deletion = !1; + JSCompiler_temp = !1; } - deletion = - deletion && doesFiberContain(root, focusedInstanceHandle); + JSCompiler_temp && + doesFiberContain(i, focusedInstanceHandle) && + ((shouldFireAfterActiveInstanceBlur = !0), + beforeActiveInstanceBlur(i)); } - deletion && - ((shouldFireAfterActiveInstanceBlur = !0), - beforeActiveInstanceBlur(root)); - switch (root.tag) { + switch (i.tag) { case 0: if ( - 0 !== (i & 4) && - ((firstChild = root.updateQueue), - (firstChild = null !== firstChild ? firstChild.events : null), - null !== firstChild) + 0 !== (flags & 4) && + ((deletions = i.updateQueue), + (deletions = null !== deletions ? deletions.events : null), + null !== deletions) ) - for (i = 0; i < firstChild.length; i++) - (deletion = firstChild[i]), + for (i = 0; i < deletions.length; i++) + (deletion = deletions[i]), (deletion.ref.impl = deletion.nextImpl); break; case 11: case 15: break; case 1: - if (0 !== (i & 1024) && null !== firstChild) { - i = void 0; - deletion = root; - var prevProps = firstChild.memoizedProps; - firstChild = firstChild.memoizedState; - var instance = deletion.stateNode; + if (0 !== (flags & 1024) && null !== deletion) { + flags = deletion.memoizedProps; + deletion = deletion.memoizedState; + JSCompiler_temp = i.stateNode; try { var resolvedPrevProps = resolveClassComponentProps( - deletion.type, - prevProps, - deletion.elementType === deletion.type + i.type, + flags, + i.elementType === i.type ); - i = instance.getSnapshotBeforeUpdate( + deletions = JSCompiler_temp.getSnapshotBeforeUpdate( resolvedPrevProps, - firstChild + deletion ); - instance.__reactInternalSnapshotBeforeUpdate = i; + JSCompiler_temp.__reactInternalSnapshotBeforeUpdate = + deletions; } catch (error) { - captureCommitPhaseError(deletion, deletion.return, error); + captureCommitPhaseError(i, i.return, error); } } break; case 3: - 0 !== (i & 1024) && + 0 !== (flags & 1024) && supportsMutation && - clearContainer(root.stateNode.containerInfo); + clearContainer(i.stateNode.containerInfo); break; case 5: case 26: @@ -7512,21 +7514,18 @@ module.exports = function ($$$config) { case 17: break; default: - if (0 !== (i & 1024)) throw Error(formatProdErrorMessage(163)); + if (0 !== (flags & 1024)) + throw Error(formatProdErrorMessage(163)); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + deletions = fiber.sibling; + if (null !== deletions) { + deletions.return = fiber.return; + nextEffect = deletions; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } } - resolvedPrevProps = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - focusedInstanceHandle = null; - return resolvedPrevProps; } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -10619,27 +10618,28 @@ module.exports = function ($$$config) { (root.callbackPriority = 0), (root.cancelPendingCommit = null)); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - updatedLanes = getCurrentUpdatePriority(); - setCurrentUpdatePriority(2); - suspendedRetryLanes = executionContext; - executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$180 = commitBeforeMutationEffects( - root, - finishedWork - ); - commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$180 && afterActiveInstanceBlur(); - resetAfterCommit(root.containerInfo); - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = suspendedRetryLanes; - setCurrentUpdatePriority(updatedLanes); - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (updatedLanes = getCurrentUpdatePriority()), + setCurrentUpdatePriority(2), + (suspendedRetryLanes = executionContext), + (executionContext |= 4), + (focusedInstanceHandle = prepareForCommit(root.containerInfo)), + (shouldFireAfterActiveInstanceBlur = !1), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), + (focusedInstanceHandle = null), + commitMutationEffectsOnFiber(finishedWork, root), + shouldFireAfterActiveInstanceBlur && afterActiveInstanceBlur(), + resetAfterCommit(root.containerInfo), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = suspendedRetryLanes), + setCurrentUpdatePriority(updatedLanes), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); spawnedLane ? ((spawnedLane = !1), (rootWithPendingPassiveEffects = root), @@ -12540,7 +12540,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 5cd166c381..1c0951af54 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -9120,20 +9120,18 @@ __DEV__ && ); } } - function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect; ) - if ( - ((root = nextEffect), - (firstChild = root.child), - 0 !== (root.subtreeFlags & 1024) && null !== firstChild) - ) - (firstChild.return = root), (nextEffect = firstChild); + function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (fiber.subtreeFlags & 1024) && null !== child) + (child.return = fiber), (nextEffect = child); else - for (; null !== nextEffect; ) { - firstChild = root = nextEffect; - var current = firstChild.alternate, - flags = firstChild.flags; - switch (firstChild.tag) { + a: for (; null !== nextEffect; ) { + child = fiber = nextEffect; + var current = child.alternate, + flags = child.flags; + switch (child.tag) { case 0: break; case 11: @@ -9142,11 +9140,11 @@ __DEV__ && case 1: 0 !== (flags & 1024) && null !== current && - commitClassSnapshot(firstChild, current); + commitClassSnapshot(child, current); break; case 3: 0 !== (flags & 1024) && - firstChild.stateNode.containerInfo.children.splice(0); + child.stateNode.containerInfo.children.splice(0); break; case 5: case 26: @@ -9161,17 +9159,15 @@ __DEV__ && "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + child = fiber.sibling; + if (null !== child) { + child.return = fiber.return; + nextEffect = child; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return root; + } } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -11716,7 +11712,8 @@ __DEV__ && (currentUpdatePriority = DiscreteEventPriority), (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), commitMutationEffectsOnFiber(finishedWork, root), (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), @@ -14660,7 +14657,6 @@ __DEV__ && offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, - shouldFireAfterActiveInstanceBlur = !1, hostParent = null, hostParentIsContainer = !1, suspenseyCommitFlag = 8192, @@ -14963,10 +14959,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6ca7fbe8-20250102", + version: "19.1.0-www-classic-d8b903f4-20250102", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-classic-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15101,5 +15097,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-classic-d8b903f4-20250102"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index efff590412..0169cdafca 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -9120,20 +9120,18 @@ __DEV__ && ); } } - function commitBeforeMutationEffects(root, firstChild) { - for (nextEffect = firstChild; null !== nextEffect; ) - if ( - ((root = nextEffect), - (firstChild = root.child), - 0 !== (root.subtreeFlags & 1024) && null !== firstChild) - ) - (firstChild.return = root), (nextEffect = firstChild); + function commitBeforeMutationEffects_begin() { + for (; null !== nextEffect; ) { + var fiber = nextEffect, + child = fiber.child; + if (0 !== (fiber.subtreeFlags & 1024) && null !== child) + (child.return = fiber), (nextEffect = child); else - for (; null !== nextEffect; ) { - firstChild = root = nextEffect; - var current = firstChild.alternate, - flags = firstChild.flags; - switch (firstChild.tag) { + a: for (; null !== nextEffect; ) { + child = fiber = nextEffect; + var current = child.alternate, + flags = child.flags; + switch (child.tag) { case 0: break; case 11: @@ -9142,11 +9140,11 @@ __DEV__ && case 1: 0 !== (flags & 1024) && null !== current && - commitClassSnapshot(firstChild, current); + commitClassSnapshot(child, current); break; case 3: 0 !== (flags & 1024) && - firstChild.stateNode.containerInfo.children.splice(0); + child.stateNode.containerInfo.children.splice(0); break; case 5: case 26: @@ -9161,17 +9159,15 @@ __DEV__ && "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." ); } - firstChild = root.sibling; - if (null !== firstChild) { - firstChild.return = root.return; - nextEffect = firstChild; - break; + child = fiber.sibling; + if (null !== child) { + child.return = fiber.return; + nextEffect = child; + break a; } - nextEffect = root.return; + nextEffect = fiber.return; } - root = shouldFireAfterActiveInstanceBlur; - shouldFireAfterActiveInstanceBlur = !1; - return root; + } } function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { var flags = finishedWork.flags; @@ -11716,7 +11712,8 @@ __DEV__ && (currentUpdatePriority = DiscreteEventPriority), (suspendedRetryLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, finishedWork), + (nextEffect = finishedWork), + commitBeforeMutationEffects_begin(), commitMutationEffectsOnFiber(finishedWork, root), (root.current = finishedWork), commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), @@ -14660,7 +14657,6 @@ __DEV__ && offscreenSubtreeWasHidden = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, - shouldFireAfterActiveInstanceBlur = !1, hostParent = null, hostParentIsContainer = !1, suspenseyCommitFlag = 8192, @@ -14963,10 +14959,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6ca7fbe8-20250102", + version: "19.1.0-www-modern-d8b903f4-20250102", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6ca7fbe8-20250102" + reconcilerVersion: "19.1.0-www-modern-d8b903f4-20250102" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15101,5 +15097,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-6ca7fbe8-20250102"; + exports.version = "19.1.0-www-modern-d8b903f4-20250102"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 3160386dfe..205a2d3818 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-6ca7fbe8-20250102 \ No newline at end of file +19.1.0-www-classic-d8b903f4-20250102 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 96ba123318..749edafd81 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-6ca7fbe8-20250102 \ No newline at end of file +19.1.0-www-modern-d8b903f4-20250102 \ No newline at end of file