[Fiber] Optimize enableProfilerCommitHooks by Collecting Elapsed Effect Duration in Module Scope (#30981)

Stacked on #30979.

The problem with the previous approach is that it recursively walked the
tree up to propagate the resulting time from recording a layout effect.

Instead, we keep a running count of the effect duration on the module
scope. Then we reset it when entering a nested Profiler and then we add
its elapsed count when we exit the Profiler.

This also fixes a bug where we weren't previously including unmount
times for some detached trees since they couldn't bubble up to find the
profiler.

DiffTrain build for [4549be0f84](https://github.com/facebook/react/commit/4549be0f846e7df5a4eaabf06369d93bd120271e)
This commit is contained in:
sebmarkbage
2024-09-17 12:19:38 -07:00
parent 905f7f3c7b
commit e70db3db9b
34 changed files with 5394 additions and 6834 deletions
+1 -1
View File
@@ -1 +1 @@
7b56a542987890f618eeda4e4906fbf1f1df2213
4549be0f846e7df5a4eaabf06369d93bd120271e
+1 -1
View File
@@ -1 +1 @@
7b56a542987890f618eeda4e4906fbf1f1df2213
4549be0f846e7df5a4eaabf06369d93bd120271e
+1 -1
View File
@@ -2001,7 +2001,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1981,7 +1981,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
+1 -1
View File
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+202 -304
View File
@@ -743,20 +743,6 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentRenderStopped &&
injectedProfilingHooks.markComponentRenderStopped();
}
function markComponentLayoutEffectUnmountStarted(fiber) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
}
function markComponentLayoutEffectUnmountStopped() {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
}
function markRenderStarted(lanes) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
@@ -5431,6 +5417,21 @@ __DEV__ &&
}
enableSchedulingProfiler && markStateUpdateScheduled(fiber, lane);
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
profilerEffectDuration = 0;
return prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration = prevEffectDuration;
return elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration += prevEffectDuration;
return elapsedTime;
}
function startProfilerTimer(fiber) {
profilerStartTime = now();
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
@@ -5450,44 +5451,15 @@ __DEV__ &&
profilerStartTime = -1;
}
}
function recordLayoutEffectDuration(fiber) {
if (0 <= layoutEffectStartTime) {
var elapsedTime = now() - layoutEffectStartTime;
layoutEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber.stateNode.effectDuration += elapsedTime;
return;
case 12:
fiber.stateNode.effectDuration += elapsedTime;
return;
}
fiber = fiber.return;
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
profilerStartTime = -1;
profilerEffectDuration += elapsedTime;
}
}
function recordPassiveEffectDuration(fiber) {
if (0 <= passiveEffectStartTime) {
var elapsedTime = now() - passiveEffectStartTime;
passiveEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
case 12:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
}
fiber = fiber.return;
}
}
}
function startLayoutEffectTimer() {
layoutEffectStartTime = now();
function startEffectTimer() {
profilerStartTime = now();
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
@@ -7866,8 +7838,8 @@ __DEV__ &&
(workInProgress.flags |= 4);
workInProgress.flags |= 2048;
var stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0;
stateNode.passiveEffectDuration = 0;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
break;
case 13:
stateNode = workInProgress.memoizedState;
@@ -8289,8 +8261,8 @@ __DEV__ &&
(workInProgress.flags |= 4),
(workInProgress.flags |= 2048),
(returnFiber = workInProgress.stateNode),
(returnFiber.effectDuration = 0),
(returnFiber.passiveEffectDuration = 0),
(returnFiber.effectDuration = -0),
(returnFiber.passiveEffectDuration = -0),
reconcileChildren(
current,
workInProgress,
@@ -9662,16 +9634,35 @@ __DEV__ &&
pop(markerInstanceStack, interruptedWork);
}
}
function shouldProfile$1(current) {
function shouldProfile(current) {
return 0 !== (current.mode & 2);
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(
finishedWork,
nearestMountedAncestor,
hookFlags
) {
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -9789,10 +9780,18 @@ __DEV__ &&
finishedWork
)
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStarted(finishedWork)),
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(
finishedWork
)),
(flags & Insertion) !== NoFlags &&
(isRunningInsertionEffect = !0),
safelyCallDestroy(
runWithFiberInDEV(
finishedWork,
callDestroyInDEV,
finishedWork,
nearestMountedAncestor,
destroy
@@ -9807,7 +9806,11 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStopped()));
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()));
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -9817,10 +9820,10 @@ __DEV__ &&
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(
@@ -9828,14 +9831,14 @@ __DEV__ &&
nearestMountedAncestor,
hookFlags
) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
@@ -9940,8 +9943,8 @@ __DEV__ &&
current.elementType === current.type
);
instance.state = current.memoizedState;
shouldProfile$1(current)
? (startLayoutEffectTimer(),
shouldProfile(current)
? (startEffectTimer(),
runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -9949,7 +9952,7 @@ __DEV__ &&
nearestMountedAncestor,
instance
),
recordLayoutEffectDuration(current))
recordEffectDuration())
: runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -9973,12 +9976,12 @@ __DEV__ &&
}
21 === finishedWork.tag && (instanceToUse = instance);
if ("function" === typeof ref)
if (shouldProfile$1(finishedWork))
if (shouldProfile(finishedWork))
try {
startLayoutEffectTimer(),
startEffectTimer(),
(finishedWork.refCleanup = ref(instanceToUse));
} finally {
recordLayoutEffectDuration(finishedWork);
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
@@ -10003,12 +10006,11 @@ __DEV__ &&
if (null !== ref)
if ("function" === typeof refCleanup)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(),
runWithFiberInDEV(current, refCleanup);
startEffectTimer(), runWithFiberInDEV(current, refCleanup);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, refCleanup);
} catch (error$18) {
@@ -10020,11 +10022,11 @@ __DEV__ &&
}
else if ("function" === typeof ref)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(), runWithFiberInDEV(current, ref, null);
startEffectTimer(), runWithFiberInDEV(current, ref, null);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, ref, null);
} catch (error$19) {
@@ -10032,15 +10034,6 @@ __DEV__ &&
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
runWithFiberInDEV(
current,
callDestroyInDEV,
current,
nearestMountedAncestor,
destroy
);
}
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
var _finishedWork$memoize = finishedWork.memoizedProps,
id = _finishedWork$memoize.id,
@@ -10332,15 +10325,15 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)),
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
@@ -10367,8 +10360,8 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -10378,7 +10371,7 @@ __DEV__ &&
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -10393,27 +10386,28 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
current = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (
flags & 64 &&
((flags = finishedWork.updateQueue), null !== flags)
) {
finishedRoot = null;
prevProps = null;
if (null !== finishedWork.child)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
finishedRoot
prevProps
);
} catch (error$15) {
captureCommitPhaseError(
@@ -10423,6 +10417,7 @@ __DEV__ &&
);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current);
break;
case 26:
case 27:
@@ -10432,9 +10427,11 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4) {
flags = finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
finishedRoot = finishedWork.stateNode;
finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -10442,7 +10439,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
flags
finishedRoot.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -10451,19 +10448,7 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -10822,96 +10807,19 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((_prevHostParent = deletedFiber.updateQueue),
null !== _prevHostParent &&
((_prevHostParent = _prevHostParent.lastEffect),
null !== _prevHostParent))
) {
_prevHostParentIsContainer = _prevHostParent =
_prevHostParent.next;
do {
var tag = _prevHostParentIsContainer.tag,
inst = _prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((isRunningInsertionEffect = !0),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
(isRunningInsertionEffect = !1))
: offscreenSubtreeWasHidden ||
(tag & Layout) === NoFlags ||
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
0 !== (deletedFiber.mode & 2)
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped()));
_prevHostParentIsContainer = _prevHostParentIsContainer.next;
} while (_prevHostParentIsContainer !== _prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((_prevHostParent = deletedFiber.updateQueue),
null !== _prevHostParent &&
((_prevHostParent = _prevHostParent.lastEffect),
null !== _prevHostParent))
) {
_prevHostParentIsContainer = _prevHostParent = _prevHostParent.next;
do
(tag = _prevHostParentIsContainer.tag),
(inst = _prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: (tag & Layout) !== NoFlags &&
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
0 !== (deletedFiber.mode & 2)
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped())),
(_prevHostParentIsContainer = _prevHostParentIsContainer.next);
while (_prevHostParentIsContainer !== _prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
);
offscreenSubtreeWasHidden ||
commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -11101,19 +11009,11 @@ __DEV__ &&
finishedWork.return
),
commitHookEffectListMount(Insertion | HasEffect, finishedWork),
0 !== (finishedWork.mode & 2)
? (startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
),
recordLayoutEffectDuration(finishedWork))
: commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
));
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -11207,13 +11107,22 @@ __DEV__ &&
}
break;
case 3:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
root.effectDuration += popNestedEffectDurations(flags);
break;
case 4:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 12:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.stateNode.effectDuration +=
bubbleNestedEffectDurations(flags);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -11416,23 +11325,11 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (0 !== (finishedWork.mode & 2))
try {
startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
} finally {
recordLayoutEffectDuration(finishedWork);
}
else
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
);
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
@@ -11529,14 +11426,16 @@ __DEV__ &&
safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4) {
includeWorkInProgressEffects =
finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
includeWorkInProgressEffects = finishedWork.stateNode;
includeWorkInProgressEffects.effectDuration +=
bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -11544,7 +11443,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
includeWorkInProgressEffects
includeWorkInProgressEffects.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -11553,21 +11452,12 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
case 12:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -11720,6 +11610,7 @@ __DEV__ &&
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -11787,37 +11678,33 @@ __DEV__ &&
clearTransitionsForLanes(finishedRoot, committedLanes);
}
}
finishedRoot.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
if (flags & 2048)
a: for (
finishedRoot = finishedWork.stateNode.passiveEffectDuration,
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot
),
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
case 12:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
}
finishedWork = finishedWork.return;
}
flags & 2048
? ((prevEffectDuration = pushNestedEffectDurations()),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
(finishedRoot = finishedWork.stateNode),
(finishedRoot.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration)),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -11834,9 +11721,9 @@ __DEV__ &&
);
break;
case 22:
nextCache = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState
? nextCache._visibility & 4
? prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -11848,21 +11735,21 @@ __DEV__ &&
finishedRoot,
finishedWork
)
: ((nextCache._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
))
: nextCache._visibility & 4
: prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((nextCache._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -11874,7 +11761,7 @@ __DEV__ &&
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
nextCache
prevEffectDuration
);
break;
case 24:
@@ -12164,12 +12051,24 @@ __DEV__ &&
Passive | HasEffect
);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
break;
case 22:
var instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
instance._visibility & 4 &&
prevEffectDuration._visibility & 4 &&
(null === finishedWork.return || 13 !== finishedWork.return.tag)
? ((instance._visibility &= -5),
? ((prevEffectDuration._visibility &= -5),
recursivelyTraverseDisconnectPassiveEffects(finishedWork))
: recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
@@ -14770,7 +14669,7 @@ __DEV__ &&
identifierPrefix++
)
containerInfo.push(null);
this.passiveEffectDuration = this.effectDuration = 0;
this.passiveEffectDuration = this.effectDuration = -0;
this.memoizedUpdaters = new Set();
containerInfo = this.pendingUpdatersLaneMap = [];
for (identifierPrefix = 0; 31 > identifierPrefix; identifierPrefix++)
@@ -16607,10 +16506,9 @@ __DEV__ &&
return unstable_useContextWithBailout(context, select);
};
var now = Scheduler.unstable_now,
commitTime = 0,
layoutEffectStartTime = -1,
profilerStartTime = -1,
passiveEffectStartTime = -1,
commitTime = -0,
profilerStartTime = -1.1,
profilerEffectDuration = -0,
currentUpdateIsNested = !1,
nestedUpdateScheduled = !1,
fakeInternalInstance = {};
@@ -17128,11 +17026,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-7b56a542-20240917",
version: "19.0.0-www-classic-4549be0f-20240917",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-classic-4549be0f-20240917"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17166,7 +17064,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+201 -303
View File
@@ -726,20 +726,6 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentRenderStopped &&
injectedProfilingHooks.markComponentRenderStopped();
}
function markComponentLayoutEffectUnmountStarted(fiber) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
}
function markComponentLayoutEffectUnmountStopped() {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
}
function markRenderStarted(lanes) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
@@ -5307,6 +5293,21 @@ __DEV__ &&
}
enableSchedulingProfiler && markStateUpdateScheduled(fiber, lane);
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
profilerEffectDuration = 0;
return prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration = prevEffectDuration;
return elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration += prevEffectDuration;
return elapsedTime;
}
function startProfilerTimer(fiber) {
profilerStartTime = now();
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
@@ -5326,44 +5327,15 @@ __DEV__ &&
profilerStartTime = -1;
}
}
function recordLayoutEffectDuration(fiber) {
if (0 <= layoutEffectStartTime) {
var elapsedTime = now() - layoutEffectStartTime;
layoutEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber.stateNode.effectDuration += elapsedTime;
return;
case 12:
fiber.stateNode.effectDuration += elapsedTime;
return;
}
fiber = fiber.return;
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
profilerStartTime = -1;
profilerEffectDuration += elapsedTime;
}
}
function recordPassiveEffectDuration(fiber) {
if (0 <= passiveEffectStartTime) {
var elapsedTime = now() - passiveEffectStartTime;
passiveEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
case 12:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
}
fiber = fiber.return;
}
}
}
function startLayoutEffectTimer() {
layoutEffectStartTime = now();
function startEffectTimer() {
profilerStartTime = now();
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
@@ -7567,8 +7539,8 @@ __DEV__ &&
(workInProgress.flags |= 4);
workInProgress.flags |= 2048;
var stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0;
stateNode.passiveEffectDuration = 0;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
break;
case 13:
stateNode = workInProgress.memoizedState;
@@ -7990,8 +7962,8 @@ __DEV__ &&
(workInProgress.flags |= 4),
(workInProgress.flags |= 2048),
(returnFiber = workInProgress.stateNode),
(returnFiber.effectDuration = 0),
(returnFiber.passiveEffectDuration = 0),
(returnFiber.effectDuration = -0),
(returnFiber.passiveEffectDuration = -0),
reconcileChildren(
current,
workInProgress,
@@ -9294,16 +9266,35 @@ __DEV__ &&
pop(markerInstanceStack, interruptedWork);
}
}
function shouldProfile$1(current) {
function shouldProfile(current) {
return 0 !== (current.mode & 2);
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(
finishedWork,
nearestMountedAncestor,
hookFlags
) {
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -9421,10 +9412,18 @@ __DEV__ &&
finishedWork
)
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStarted(finishedWork)),
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(
finishedWork
)),
(flags & Insertion) !== NoFlags &&
(isRunningInsertionEffect = !0),
safelyCallDestroy(
runWithFiberInDEV(
finishedWork,
callDestroyInDEV,
finishedWork,
nearestMountedAncestor,
destroy
@@ -9439,7 +9438,11 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStopped()));
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()));
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -9449,10 +9452,10 @@ __DEV__ &&
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(
@@ -9460,14 +9463,14 @@ __DEV__ &&
nearestMountedAncestor,
hookFlags
) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
@@ -9562,8 +9565,8 @@ __DEV__ &&
current.elementType === current.type
);
instance.state = current.memoizedState;
shouldProfile$1(current)
? (startLayoutEffectTimer(),
shouldProfile(current)
? (startEffectTimer(),
runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -9571,7 +9574,7 @@ __DEV__ &&
nearestMountedAncestor,
instance
),
recordLayoutEffectDuration(current))
recordEffectDuration())
: runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -9595,12 +9598,12 @@ __DEV__ &&
}
21 === finishedWork.tag && (instanceToUse = instance);
if ("function" === typeof ref)
if (shouldProfile$1(finishedWork))
if (shouldProfile(finishedWork))
try {
startLayoutEffectTimer(),
startEffectTimer(),
(finishedWork.refCleanup = ref(instanceToUse));
} finally {
recordLayoutEffectDuration(finishedWork);
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
@@ -9625,12 +9628,11 @@ __DEV__ &&
if (null !== ref)
if ("function" === typeof refCleanup)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(),
runWithFiberInDEV(current, refCleanup);
startEffectTimer(), runWithFiberInDEV(current, refCleanup);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, refCleanup);
} catch (error$18) {
@@ -9642,11 +9644,11 @@ __DEV__ &&
}
else if ("function" === typeof ref)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(), runWithFiberInDEV(current, ref, null);
startEffectTimer(), runWithFiberInDEV(current, ref, null);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, ref, null);
} catch (error$19) {
@@ -9654,15 +9656,6 @@ __DEV__ &&
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
runWithFiberInDEV(
current,
callDestroyInDEV,
current,
nearestMountedAncestor,
destroy
);
}
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
var _finishedWork$memoize = finishedWork.memoizedProps,
id = _finishedWork$memoize.id,
@@ -9954,15 +9947,15 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)),
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
@@ -9989,8 +9982,8 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -10000,7 +9993,7 @@ __DEV__ &&
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -10015,27 +10008,28 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
current = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (
flags & 64 &&
((flags = finishedWork.updateQueue), null !== flags)
) {
finishedRoot = null;
prevProps = null;
if (null !== finishedWork.child)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
finishedRoot
prevProps
);
} catch (error$15) {
captureCommitPhaseError(
@@ -10045,6 +10039,7 @@ __DEV__ &&
);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current);
break;
case 26:
case 27:
@@ -10054,9 +10049,11 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4) {
flags = finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
finishedRoot = finishedWork.stateNode;
finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -10064,7 +10061,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
flags
finishedRoot.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -10073,19 +10070,7 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -10439,96 +10424,19 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((_prevHostParent = deletedFiber.updateQueue),
null !== _prevHostParent &&
((_prevHostParent = _prevHostParent.lastEffect),
null !== _prevHostParent))
) {
_prevHostParentIsContainer = _prevHostParent =
_prevHostParent.next;
do {
var tag = _prevHostParentIsContainer.tag,
inst = _prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((isRunningInsertionEffect = !0),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
(isRunningInsertionEffect = !1))
: offscreenSubtreeWasHidden ||
(tag & Layout) === NoFlags ||
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
0 !== (deletedFiber.mode & 2)
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped()));
_prevHostParentIsContainer = _prevHostParentIsContainer.next;
} while (_prevHostParentIsContainer !== _prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((_prevHostParent = deletedFiber.updateQueue),
null !== _prevHostParent &&
((_prevHostParent = _prevHostParent.lastEffect),
null !== _prevHostParent))
) {
_prevHostParentIsContainer = _prevHostParent = _prevHostParent.next;
do
(tag = _prevHostParentIsContainer.tag),
(inst = _prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: (tag & Layout) !== NoFlags &&
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
0 !== (deletedFiber.mode & 2)
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped())),
(_prevHostParentIsContainer = _prevHostParentIsContainer.next);
while (_prevHostParentIsContainer !== _prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
);
offscreenSubtreeWasHidden ||
commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -10712,19 +10620,11 @@ __DEV__ &&
finishedWork.return
),
commitHookEffectListMount(Insertion | HasEffect, finishedWork),
0 !== (finishedWork.mode & 2)
? (startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
),
recordLayoutEffectDuration(finishedWork))
: commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
));
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -10818,13 +10718,22 @@ __DEV__ &&
}
break;
case 3:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
root.effectDuration += popNestedEffectDurations(flags);
break;
case 4:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 12:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.stateNode.effectDuration +=
bubbleNestedEffectDurations(flags);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -11024,23 +10933,11 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (0 !== (finishedWork.mode & 2))
try {
startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
} finally {
recordLayoutEffectDuration(finishedWork);
}
else
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
);
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
@@ -11144,14 +11041,16 @@ __DEV__ &&
safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4) {
includeWorkInProgressEffects =
finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
includeWorkInProgressEffects = finishedWork.stateNode;
includeWorkInProgressEffects.effectDuration +=
bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -11159,7 +11058,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
includeWorkInProgressEffects
includeWorkInProgressEffects.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -11168,21 +11067,12 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
case 12:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -11335,6 +11225,7 @@ __DEV__ &&
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -11402,37 +11293,33 @@ __DEV__ &&
clearTransitionsForLanes(finishedRoot, committedLanes);
}
}
finishedRoot.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
if (flags & 2048)
a: for (
finishedRoot = finishedWork.stateNode.passiveEffectDuration,
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot
),
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
case 12:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
}
finishedWork = finishedWork.return;
}
flags & 2048
? ((prevEffectDuration = pushNestedEffectDurations()),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
(finishedRoot = finishedWork.stateNode),
(finishedRoot.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration)),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -11449,9 +11336,9 @@ __DEV__ &&
);
break;
case 22:
nextCache = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState
? nextCache._visibility & 4
? prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -11462,14 +11349,14 @@ __DEV__ &&
finishedRoot,
finishedWork
)
: nextCache._visibility & 4
: prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((nextCache._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -11481,7 +11368,7 @@ __DEV__ &&
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
nextCache
prevEffectDuration
);
break;
case 24:
@@ -11762,12 +11649,24 @@ __DEV__ &&
Passive | HasEffect
);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
break;
case 22:
var instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
instance._visibility & 4 &&
prevEffectDuration._visibility & 4 &&
(null === finishedWork.return || 13 !== finishedWork.return.tag)
? ((instance._visibility &= -5),
? ((prevEffectDuration._visibility &= -5),
recursivelyTraverseDisconnectPassiveEffects(finishedWork))
: recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
@@ -14265,7 +14164,7 @@ __DEV__ &&
tag++
)
containerInfo.push(null);
this.passiveEffectDuration = this.effectDuration = 0;
this.passiveEffectDuration = this.effectDuration = -0;
this.memoizedUpdaters = new Set();
containerInfo = this.pendingUpdatersLaneMap = [];
for (tag = 0; 31 > tag; tag++) containerInfo.push(new Set());
@@ -16044,10 +15943,9 @@ __DEV__ &&
return unstable_useContextWithBailout(context, select);
};
var now = Scheduler.unstable_now,
commitTime = 0,
layoutEffectStartTime = -1,
profilerStartTime = -1,
passiveEffectStartTime = -1,
commitTime = -0,
profilerStartTime = -1.1,
profilerEffectDuration = -0,
currentUpdateIsNested = !1,
nestedUpdateScheduled = !1,
fakeInternalInstance = {};
@@ -16574,11 +16472,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-7b56a542-20240917",
version: "19.0.0-www-modern-4549be0f-20240917",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16612,7 +16510,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+89 -127
View File
@@ -7083,7 +7083,7 @@ function commitHookEffectListMount(flags, finishedWork) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor
nearestMountedAncestor$jscomp$0
) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -7095,9 +7095,20 @@ function commitHookEffectListUnmount(
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((inst.destroy = void 0),
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy));
if (void 0 !== destroy) {
inst.destroy = void 0;
lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -7179,11 +7190,25 @@ function safelyDetachRef(current, nearestMountedAncestor) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
function commitProfilerPostCommit(
finishedWork,
current,
commitTime,
passiveEffectDuration
) {
try {
destroy();
var _finishedWork$memoize2 = finishedWork.memoizedProps,
id = _finishedWork$memoize2.id,
onPostCommit = _finishedWork$memoize2.onPostCommit;
"function" === typeof onPostCommit &&
onPostCommit(
id,
null === current ? "mount" : "update",
passiveEffectDuration,
commitTime
);
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function isHostParent(fiber) {
@@ -7425,23 +7450,6 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -7771,63 +7779,11 @@ function commitDeletionEffectsOnFiber(
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((child = deletedFiber.updateQueue),
null !== child && ((child = child.lastEffect), null !== child))
) {
child$jscomp$0 = child = child.next;
do {
prevHostParent = child$jscomp$0.tag;
prevHostParentIsContainer = child$jscomp$0.inst;
var destroy = prevHostParentIsContainer.destroy;
void 0 !== destroy &&
(0 !== (prevHostParent & 2)
? ((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: offscreenSubtreeWasHidden ||
0 === (prevHostParent & 4) ||
((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)));
child$jscomp$0 = child$jscomp$0.next;
} while (child$jscomp$0 !== child);
}
} else if (
!offscreenSubtreeWasHidden &&
((child = deletedFiber.updateQueue),
null !== child && ((child = child.lastEffect), null !== child))
) {
child$jscomp$0 = child = child.next;
do
(prevHostParent = child$jscomp$0.tag),
(prevHostParentIsContainer = child$jscomp$0.inst),
(destroy = prevHostParentIsContainer.destroy),
void 0 !== destroy &&
(0 !== (prevHostParent & 2)
? ((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: 0 !== (prevHostParent & 4) &&
((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))),
(child$jscomp$0 = child$jscomp$0.next);
while (child$jscomp$0 !== child);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -8040,6 +7996,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -8344,23 +8304,6 @@ function recursivelyTraverseReappearLayoutEffects(
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -8555,12 +8498,25 @@ function commitPassiveMountOnFiber(
}
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
flags & 2048
? (recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
-0,
finishedWork.stateNode.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -8695,9 +8651,9 @@ function recursivelyTraverseReconnectPassiveEffects(
);
break;
case 22:
var instance$147 = finishedWork.stateNode;
var instance$140 = finishedWork.stateNode;
null !== finishedWork.memoizedState
? instance$147._visibility & 4
? instance$140._visibility & 4
? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8710,7 +8666,7 @@ function recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance$147._visibility |= 4),
: ((instance$140._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8718,7 +8674,7 @@ function recursivelyTraverseReconnectPassiveEffects(
committedTransitions,
includeWorkInProgressEffects
))
: ((instance$147._visibility |= 4),
: ((instance$140._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8731,7 +8687,7 @@ function recursivelyTraverseReconnectPassiveEffects(
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
instance$147
instance$140
);
break;
case 24:
@@ -8825,12 +8781,12 @@ function accumulateSuspenseyCommitOnFiber(fiber) {
break;
case 22:
if (null === fiber.memoizedState) {
var current$152 = fiber.alternate;
null !== current$152 && null !== current$152.memoizedState
? ((current$152 = suspenseyCommitFlag),
var current$145 = fiber.alternate;
null !== current$145 && null !== current$145.memoizedState
? ((current$145 = suspenseyCommitFlag),
(suspenseyCommitFlag = 16777216),
recursivelyAccumulateSuspenseyCommit(fiber),
(suspenseyCommitFlag = current$152))
(suspenseyCommitFlag = current$145))
: recursivelyAccumulateSuspenseyCommit(fiber);
}
break;
@@ -8880,6 +8836,12 @@ function commitPassiveUnmountOnFiber(finishedWork) {
finishedWork.flags & 2048 &&
commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
@@ -9695,8 +9657,8 @@ function renderRootSync(root, lanes) {
}
workLoopSync();
break;
} catch (thrownValue$158) {
handleThrow(root, thrownValue$158);
} catch (thrownValue$151) {
handleThrow(root, thrownValue$151);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -9811,8 +9773,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$160) {
handleThrow(root, thrownValue$160);
} catch (thrownValue$153) {
handleThrow(root, thrownValue$153);
}
while (1);
resetContextDependencies();
@@ -10889,27 +10851,27 @@ var slice = Array.prototype.slice,
};
return Text;
})(React.Component);
var internals$jscomp$inline_1424 = {
var internals$jscomp$inline_1439 = {
bundleType: 0,
version: "19.0.0-www-classic-7b56a542-20240917",
version: "19.0.0-www-classic-4549be0f-20240917",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-classic-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-classic-4549be0f-20240917"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1425 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1440 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1425.isDisabled &&
hook$jscomp$inline_1425.supportsFiber
!hook$jscomp$inline_1440.isDisabled &&
hook$jscomp$inline_1440.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1425.inject(
internals$jscomp$inline_1424
(rendererID = hook$jscomp$inline_1440.inject(
internals$jscomp$inline_1439
)),
(injectedHook = hook$jscomp$inline_1425);
(injectedHook = hook$jscomp$inline_1440);
} catch (err) {}
}
var Path = Mode$1.Path;
@@ -10923,4 +10885,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
+88 -126
View File
@@ -6692,7 +6692,7 @@ function commitHookEffectListMount(flags, finishedWork) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor
nearestMountedAncestor$jscomp$0
) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -6704,9 +6704,20 @@ function commitHookEffectListUnmount(
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((inst.destroy = void 0),
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy));
if (void 0 !== destroy) {
inst.destroy = void 0;
lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -6788,11 +6799,25 @@ function safelyDetachRef(current, nearestMountedAncestor) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
function commitProfilerPostCommit(
finishedWork,
current,
commitTime,
passiveEffectDuration
) {
try {
destroy();
var _finishedWork$memoize2 = finishedWork.memoizedProps,
id = _finishedWork$memoize2.id,
onPostCommit = _finishedWork$memoize2.onPostCommit;
"function" === typeof onPostCommit &&
onPostCommit(
id,
null === current ? "mount" : "update",
passiveEffectDuration,
commitTime
);
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function isHostParent(fiber) {
@@ -7034,23 +7059,6 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -7375,63 +7383,11 @@ function commitDeletionEffectsOnFiber(
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((child = deletedFiber.updateQueue),
null !== child && ((child = child.lastEffect), null !== child))
) {
child$jscomp$0 = child = child.next;
do {
prevHostParent = child$jscomp$0.tag;
prevHostParentIsContainer = child$jscomp$0.inst;
var destroy = prevHostParentIsContainer.destroy;
void 0 !== destroy &&
(0 !== (prevHostParent & 2)
? ((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: offscreenSubtreeWasHidden ||
0 === (prevHostParent & 4) ||
((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)));
child$jscomp$0 = child$jscomp$0.next;
} while (child$jscomp$0 !== child);
}
} else if (
!offscreenSubtreeWasHidden &&
((child = deletedFiber.updateQueue),
null !== child && ((child = child.lastEffect), null !== child))
) {
child$jscomp$0 = child = child.next;
do
(prevHostParent = child$jscomp$0.tag),
(prevHostParentIsContainer = child$jscomp$0.inst),
(destroy = prevHostParentIsContainer.destroy),
void 0 !== destroy &&
(0 !== (prevHostParent & 2)
? ((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: 0 !== (prevHostParent & 4) &&
((prevHostParentIsContainer.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))),
(child$jscomp$0 = child$jscomp$0.next);
while (child$jscomp$0 !== child);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -7638,6 +7594,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -7939,23 +7899,6 @@ function recursivelyTraverseReappearLayoutEffects(
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -8150,12 +8093,25 @@ function commitPassiveMountOnFiber(
}
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
flags & 2048
? (recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
-0,
finishedWork.stateNode.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -8279,9 +8235,9 @@ function recursivelyTraverseReconnectPassiveEffects(
);
break;
case 22:
var instance$138 = finishedWork.stateNode;
var instance$131 = finishedWork.stateNode;
null !== finishedWork.memoizedState
? instance$138._visibility & 4
? instance$131._visibility & 4
? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8293,7 +8249,7 @@ function recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance$138._visibility |= 4),
: ((instance$131._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8306,7 +8262,7 @@ function recursivelyTraverseReconnectPassiveEffects(
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
instance$138
instance$131
);
break;
case 24:
@@ -8400,12 +8356,12 @@ function accumulateSuspenseyCommitOnFiber(fiber) {
break;
case 22:
if (null === fiber.memoizedState) {
var current$143 = fiber.alternate;
null !== current$143 && null !== current$143.memoizedState
? ((current$143 = suspenseyCommitFlag),
var current$136 = fiber.alternate;
null !== current$136 && null !== current$136.memoizedState
? ((current$136 = suspenseyCommitFlag),
(suspenseyCommitFlag = 16777216),
recursivelyAccumulateSuspenseyCommit(fiber),
(suspenseyCommitFlag = current$143))
(suspenseyCommitFlag = current$136))
: recursivelyAccumulateSuspenseyCommit(fiber);
}
break;
@@ -8455,6 +8411,12 @@ function commitPassiveUnmountOnFiber(finishedWork) {
finishedWork.flags & 2048 &&
commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
@@ -9261,8 +9223,8 @@ function renderRootSync(root, lanes) {
}
workLoopSync();
break;
} catch (thrownValue$149) {
handleThrow(root, thrownValue$149);
} catch (thrownValue$142) {
handleThrow(root, thrownValue$142);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -9377,8 +9339,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$151) {
handleThrow(root, thrownValue$151);
} catch (thrownValue$144) {
handleThrow(root, thrownValue$144);
}
while (1);
resetContextDependencies();
@@ -10403,27 +10365,27 @@ var slice = Array.prototype.slice,
};
return Text;
})(React.Component);
var internals$jscomp$inline_1416 = {
var internals$jscomp$inline_1431 = {
bundleType: 0,
version: "19.0.0-www-modern-7b56a542-20240917",
version: "19.0.0-www-modern-4549be0f-20240917",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1417 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_1432 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_1417.isDisabled &&
hook$jscomp$inline_1417.supportsFiber
!hook$jscomp$inline_1432.isDisabled &&
hook$jscomp$inline_1432.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_1417.inject(
internals$jscomp$inline_1416
(rendererID = hook$jscomp$inline_1432.inject(
internals$jscomp$inline_1431
)),
(injectedHook = hook$jscomp$inline_1417);
(injectedHook = hook$jscomp$inline_1432);
} catch (err) {}
}
var Path = Mode$1.Path;
@@ -10437,4 +10399,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+220 -262
View File
@@ -8033,7 +8033,7 @@ function commitHookEffectListMount(flags, finishedWork) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor
nearestMountedAncestor$jscomp$0
) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -8045,9 +8045,20 @@ function commitHookEffectListUnmount(
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((inst.destroy = void 0),
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy));
if (void 0 !== destroy) {
inst.destroy = void 0;
lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -8129,11 +8140,25 @@ function safelyDetachRef(current, nearestMountedAncestor) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
function commitProfilerPostCommit(
finishedWork,
current,
commitTime,
passiveEffectDuration
) {
try {
destroy();
var _finishedWork$memoize2 = finishedWork.memoizedProps,
id = _finishedWork$memoize2.id,
onPostCommit = _finishedWork$memoize2.onPostCommit;
"function" === typeof onPostCommit &&
onPostCommit(
id,
null === current ? "mount" : "update",
passiveEffectDuration,
commitTime
);
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostMount(finishedWork) {
@@ -8267,7 +8292,7 @@ function commitBeforeMutationEffects(root, firstChild) {
selection = selection.focusOffset;
try {
JSCompiler_temp.nodeType, focusNode.nodeType;
} catch (e$221) {
} catch (e$212) {
JSCompiler_temp = null;
break a;
}
@@ -8528,23 +8553,6 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -8844,7 +8852,7 @@ function commitDeletionEffectsOnFiber(
safelyDetachRef(deletedFiber, nearestMountedAncestor);
case 6:
prevHostParentIsContainer = hostParent;
var prevHostParentIsContainer$172 = hostParentIsContainer;
var prevHostParentIsContainer$171 = hostParentIsContainer;
hostParent = null;
recursivelyTraverseDeletionEffects(
finishedRoot,
@@ -8852,7 +8860,7 @@ function commitDeletionEffectsOnFiber(
deletedFiber
);
hostParent = prevHostParentIsContainer;
hostParentIsContainer = prevHostParentIsContainer$172;
hostParentIsContainer = prevHostParentIsContainer$171;
if (null !== hostParent)
if (hostParentIsContainer)
try {
@@ -8919,67 +8927,11 @@ function commitDeletionEffectsOnFiber(
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do {
prevHostParentIsContainer$172 = prevHostParentIsContainer.tag;
var inst = prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
(0 !== (prevHostParentIsContainer$172 & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: offscreenSubtreeWasHidden ||
0 === (prevHostParentIsContainer$172 & 4) ||
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)));
prevHostParentIsContainer = prevHostParentIsContainer.next;
} while (prevHostParentIsContainer !== prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do
(prevHostParentIsContainer$172 = prevHostParentIsContainer.tag),
(inst = prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
(0 !== (prevHostParentIsContainer$172 & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: 0 !== (prevHostParentIsContainer$172 & 4) &&
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))),
(prevHostParentIsContainer = prevHostParentIsContainer.next);
while (prevHostParentIsContainer !== prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -9032,15 +8984,15 @@ function commitDeletionEffectsOnFiber(
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (null === finishedWork.memoizedState) {
var current$182 = finishedWork.alternate;
var current$174 = finishedWork.alternate;
if (
null !== current$182 &&
((current$182 = current$182.memoizedState),
null !== current$182 &&
((current$182 = current$182.dehydrated), null !== current$182))
null !== current$174 &&
((current$174 = current$174.memoizedState),
null !== current$174 &&
((current$174 = current$174.dehydrated), null !== current$174))
) {
try {
retryIfBlockedOn(current$182);
retryIfBlockedOn(current$174);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
@@ -9048,7 +9000,7 @@ function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
var hydrationCallbacks = finishedRoot.hydrationCallbacks;
if (null !== hydrationCallbacks) {
var onHydrated = hydrationCallbacks.onHydrated;
onHydrated && onHydrated(current$182);
onHydrated && onHydrated(current$174);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
@@ -9421,6 +9373,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
commitReconciliationEffects(finishedWork);
currentHoistableRoot = flags;
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -9685,7 +9641,7 @@ function recursivelyTraverseReappearLayoutEffects(
includeWorkInProgressEffects =
includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);
for (parentFiber = parentFiber.child; null !== parentFiber; ) {
var current$189 = parentFiber.alternate,
var current$180 = parentFiber.alternate,
finishedRoot = finishedRoot$jscomp$0,
finishedWork = parentFiber,
flags = finishedWork.flags;
@@ -9706,18 +9662,18 @@ function recursivelyTraverseReappearLayoutEffects(
finishedWork,
includeWorkInProgressEffects
);
current$189 = finishedWork;
finishedRoot = current$189.stateNode;
current$180 = finishedWork;
finishedRoot = current$180.stateNode;
if ("function" === typeof finishedRoot.componentDidMount)
try {
finishedRoot.componentDidMount();
} catch (error) {
captureCommitPhaseError(current$189, current$189.return, error);
captureCommitPhaseError(current$180, current$180.return, error);
}
current$189 = finishedWork;
finishedRoot = current$189.updateQueue;
current$180 = finishedWork;
finishedRoot = current$180.updateQueue;
if (null !== finishedRoot) {
var instance = current$189.stateNode;
var instance = current$180.stateNode;
try {
var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;
if (null !== hiddenCallbacks)
@@ -9728,7 +9684,7 @@ function recursivelyTraverseReappearLayoutEffects(
)
callCallback(hiddenCallbacks[finishedRoot], instance);
} catch (error) {
captureCommitPhaseError(current$189, current$189.return, error);
captureCommitPhaseError(current$180, current$180.return, error);
}
}
includeWorkInProgressEffects &&
@@ -9745,7 +9701,7 @@ function recursivelyTraverseReappearLayoutEffects(
includeWorkInProgressEffects
);
includeWorkInProgressEffects &&
null === current$189 &&
null === current$180 &&
flags & 4 &&
commitHostMount(finishedWork);
safelyAttachRef(finishedWork, finishedWork.return);
@@ -9756,23 +9712,6 @@ function recursivelyTraverseReappearLayoutEffects(
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -9970,12 +9909,25 @@ function commitPassiveMountOnFiber(
}
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
flags & 2048
? (recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
-0,
finishedWork.stateNode.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -10099,9 +10051,9 @@ function recursivelyTraverseReconnectPassiveEffects(
);
break;
case 22:
var instance$196 = finishedWork.stateNode;
var instance$187 = finishedWork.stateNode;
null !== finishedWork.memoizedState
? instance$196._visibility & 4
? instance$187._visibility & 4
? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -10113,7 +10065,7 @@ function recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance$196._visibility |= 4),
: ((instance$187._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -10126,7 +10078,7 @@ function recursivelyTraverseReconnectPassiveEffects(
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
instance$196
instance$187
);
break;
case 24:
@@ -10283,6 +10235,12 @@ function commitPassiveUnmountOnFiber(finishedWork) {
finishedWork.flags & 2048 &&
commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
@@ -11124,8 +11082,8 @@ function renderRootSync(root, lanes) {
}
workLoopSync();
break;
} catch (thrownValue$207) {
handleThrow(root, thrownValue$207);
} catch (thrownValue$198) {
handleThrow(root, thrownValue$198);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -11240,8 +11198,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$209) {
handleThrow(root, thrownValue$209);
} catch (thrownValue$200) {
handleThrow(root, thrownValue$200);
}
while (1);
resetContextDependencies();
@@ -11584,7 +11542,7 @@ function releaseRootPooledCache(root, remainingLanes) {
}
function flushPassiveEffects() {
if (null !== rootWithPendingPassiveEffects) {
var root$216 = rootWithPendingPassiveEffects,
var root$207 = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
@@ -11599,7 +11557,7 @@ function flushPassiveEffects() {
} finally {
(Internals.p = previousPriority),
(ReactSharedInternals.T = prevTransition),
releaseRootPooledCache(root$216, remainingLanes);
releaseRootPooledCache(root$207, remainingLanes);
}
}
return !1;
@@ -12824,7 +12782,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
}
var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$378;
var JSCompiler_inline_result$jscomp$369;
if (canUseDOM) {
var isSupported$jscomp$inline_1525 = "oninput" in document;
if (!isSupported$jscomp$inline_1525) {
@@ -12833,10 +12791,10 @@ if (canUseDOM) {
isSupported$jscomp$inline_1525 =
"function" === typeof element$jscomp$inline_1526.oninput;
}
JSCompiler_inline_result$jscomp$378 = isSupported$jscomp$inline_1525;
} else JSCompiler_inline_result$jscomp$378 = !1;
JSCompiler_inline_result$jscomp$369 = isSupported$jscomp$inline_1525;
} else JSCompiler_inline_result$jscomp$369 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$378 &&
JSCompiler_inline_result$jscomp$369 &&
(!document.documentMode || 9 < document.documentMode);
}
function stopWatchingForValueChange() {
@@ -12925,36 +12883,36 @@ function containsNode(outerNode, innerNode) {
: !1;
}
function getActiveElementDeep(containerInfo) {
var $jscomp$optchain$tmpm209527808$1, $jscomp$nullish$tmp0;
var $jscomp$optchain$tmp1412174161$1, $jscomp$nullish$tmp0;
containerInfo =
null !=
($jscomp$nullish$tmp0 =
null == containerInfo
? void 0
: null ==
($jscomp$optchain$tmpm209527808$1 = containerInfo.ownerDocument)
($jscomp$optchain$tmp1412174161$1 = containerInfo.ownerDocument)
? void 0
: $jscomp$optchain$tmpm209527808$1.defaultView)
: $jscomp$optchain$tmp1412174161$1.defaultView)
? $jscomp$nullish$tmp0
: window;
for (
$jscomp$optchain$tmpm209527808$1 = getActiveElement(containerInfo.document);
$jscomp$optchain$tmpm209527808$1 instanceof containerInfo.HTMLIFrameElement;
$jscomp$optchain$tmp1412174161$1 = getActiveElement(containerInfo.document);
$jscomp$optchain$tmp1412174161$1 instanceof containerInfo.HTMLIFrameElement;
) {
try {
var JSCompiler_inline_result =
"string" ===
typeof $jscomp$optchain$tmpm209527808$1.contentWindow.location.href;
typeof $jscomp$optchain$tmp1412174161$1.contentWindow.location.href;
} catch (err) {
JSCompiler_inline_result = !1;
}
if (JSCompiler_inline_result)
containerInfo = $jscomp$optchain$tmpm209527808$1.contentWindow;
containerInfo = $jscomp$optchain$tmp1412174161$1.contentWindow;
else break;
$jscomp$optchain$tmpm209527808$1 = getActiveElement(containerInfo.document);
$jscomp$optchain$tmp1412174161$1 = getActiveElement(containerInfo.document);
}
return $jscomp$optchain$tmpm209527808$1;
return $jscomp$optchain$tmp1412174161$1;
}
function hasSelectionCapabilities(elem) {
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
@@ -14557,34 +14515,34 @@ function setInitialProperties(domElement, tag, props) {
defaultChecked = null;
for (hasSrc in props)
if (props.hasOwnProperty(hasSrc)) {
var propValue$235 = props[hasSrc];
if (null != propValue$235)
var propValue$226 = props[hasSrc];
if (null != propValue$226)
switch (hasSrc) {
case "name":
hasSrcSet = propValue$235;
hasSrcSet = propValue$226;
break;
case "type":
propKey = propValue$235;
propKey = propValue$226;
break;
case "checked":
checked = propValue$235;
checked = propValue$226;
break;
case "defaultChecked":
defaultChecked = propValue$235;
defaultChecked = propValue$226;
break;
case "value":
propValue = propValue$235;
propValue = propValue$226;
break;
case "defaultValue":
defaultValue = propValue$235;
defaultValue = propValue$226;
break;
case "children":
case "dangerouslySetInnerHTML":
if (null != propValue$235)
if (null != propValue$226)
throw Error(formatProdErrorMessage(137, tag));
break;
default:
setProp(domElement, tag, hasSrc, propValue$235, props, null);
setProp(domElement, tag, hasSrc, propValue$226, props, null);
}
}
initInput(
@@ -14720,14 +14678,14 @@ function setInitialProperties(domElement, tag, props) {
return;
default:
if (isCustomElement(tag)) {
for (propValue$235 in props)
props.hasOwnProperty(propValue$235) &&
((hasSrc = props[propValue$235]),
for (propValue$226 in props)
props.hasOwnProperty(propValue$226) &&
((hasSrc = props[propValue$226]),
void 0 !== hasSrc &&
setPropOnCustomElement(
domElement,
tag,
propValue$235,
propValue$226,
hasSrc,
props,
void 0
@@ -14775,14 +14733,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
setProp(domElement, tag, propKey, null, nextProps, lastProp);
}
}
for (var propKey$252 in nextProps) {
var propKey = nextProps[propKey$252];
lastProp = lastProps[propKey$252];
for (var propKey$243 in nextProps) {
var propKey = nextProps[propKey$243];
lastProp = lastProps[propKey$243];
if (
nextProps.hasOwnProperty(propKey$252) &&
nextProps.hasOwnProperty(propKey$243) &&
(null != propKey || null != lastProp)
)
switch (propKey$252) {
switch (propKey$243) {
case "type":
type = propKey;
break;
@@ -14811,7 +14769,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
setProp(
domElement,
tag,
propKey$252,
propKey$243,
propKey,
nextProps,
lastProp
@@ -14830,7 +14788,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
);
return;
case "select":
propKey = value = defaultValue = propKey$252 = null;
propKey = value = defaultValue = propKey$243 = null;
for (type in lastProps)
if (
((lastDefaultValue = lastProps[type]),
@@ -14861,7 +14819,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
)
switch (name) {
case "value":
propKey$252 = type;
propKey$243 = type;
break;
case "defaultValue":
defaultValue = type;
@@ -14882,15 +14840,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
tag = defaultValue;
lastProps = value;
nextProps = propKey;
null != propKey$252
? updateOptions(domElement, !!lastProps, propKey$252, !1)
null != propKey$243
? updateOptions(domElement, !!lastProps, propKey$243, !1)
: !!nextProps !== !!lastProps &&
(null != tag
? updateOptions(domElement, !!lastProps, tag, !0)
: updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
return;
case "textarea":
propKey = propKey$252 = null;
propKey = propKey$243 = null;
for (defaultValue in lastProps)
if (
((name = lastProps[defaultValue]),
@@ -14914,7 +14872,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
)
switch (value) {
case "value":
propKey$252 = name;
propKey$243 = name;
break;
case "defaultValue":
propKey = name;
@@ -14928,17 +14886,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
name !== type &&
setProp(domElement, tag, value, name, nextProps, type);
}
updateTextarea(domElement, propKey$252, propKey);
updateTextarea(domElement, propKey$243, propKey);
return;
case "option":
for (var propKey$268 in lastProps)
for (var propKey$259 in lastProps)
if (
((propKey$252 = lastProps[propKey$268]),
lastProps.hasOwnProperty(propKey$268) &&
null != propKey$252 &&
!nextProps.hasOwnProperty(propKey$268))
((propKey$243 = lastProps[propKey$259]),
lastProps.hasOwnProperty(propKey$259) &&
null != propKey$243 &&
!nextProps.hasOwnProperty(propKey$259))
)
switch (propKey$268) {
switch (propKey$259) {
case "selected":
domElement.selected = !1;
break;
@@ -14946,33 +14904,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
setProp(
domElement,
tag,
propKey$268,
propKey$259,
null,
nextProps,
propKey$252
propKey$243
);
}
for (lastDefaultValue in nextProps)
if (
((propKey$252 = nextProps[lastDefaultValue]),
((propKey$243 = nextProps[lastDefaultValue]),
(propKey = lastProps[lastDefaultValue]),
nextProps.hasOwnProperty(lastDefaultValue) &&
propKey$252 !== propKey &&
(null != propKey$252 || null != propKey))
propKey$243 !== propKey &&
(null != propKey$243 || null != propKey))
)
switch (lastDefaultValue) {
case "selected":
domElement.selected =
propKey$252 &&
"function" !== typeof propKey$252 &&
"symbol" !== typeof propKey$252;
propKey$243 &&
"function" !== typeof propKey$243 &&
"symbol" !== typeof propKey$243;
break;
default:
setProp(
domElement,
tag,
lastDefaultValue,
propKey$252,
propKey$243,
nextProps,
propKey
);
@@ -14993,24 +14951,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
case "track":
case "wbr":
case "menuitem":
for (var propKey$273 in lastProps)
(propKey$252 = lastProps[propKey$273]),
lastProps.hasOwnProperty(propKey$273) &&
null != propKey$252 &&
!nextProps.hasOwnProperty(propKey$273) &&
setProp(domElement, tag, propKey$273, null, nextProps, propKey$252);
for (var propKey$264 in lastProps)
(propKey$243 = lastProps[propKey$264]),
lastProps.hasOwnProperty(propKey$264) &&
null != propKey$243 &&
!nextProps.hasOwnProperty(propKey$264) &&
setProp(domElement, tag, propKey$264, null, nextProps, propKey$243);
for (checked in nextProps)
if (
((propKey$252 = nextProps[checked]),
((propKey$243 = nextProps[checked]),
(propKey = lastProps[checked]),
nextProps.hasOwnProperty(checked) &&
propKey$252 !== propKey &&
(null != propKey$252 || null != propKey))
propKey$243 !== propKey &&
(null != propKey$243 || null != propKey))
)
switch (checked) {
case "children":
case "dangerouslySetInnerHTML":
if (null != propKey$252)
if (null != propKey$243)
throw Error(formatProdErrorMessage(137, tag));
break;
default:
@@ -15018,7 +14976,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
domElement,
tag,
checked,
propKey$252,
propKey$243,
nextProps,
propKey
);
@@ -15026,49 +14984,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
return;
default:
if (isCustomElement(tag)) {
for (var propKey$278 in lastProps)
(propKey$252 = lastProps[propKey$278]),
lastProps.hasOwnProperty(propKey$278) &&
void 0 !== propKey$252 &&
!nextProps.hasOwnProperty(propKey$278) &&
for (var propKey$269 in lastProps)
(propKey$243 = lastProps[propKey$269]),
lastProps.hasOwnProperty(propKey$269) &&
void 0 !== propKey$243 &&
!nextProps.hasOwnProperty(propKey$269) &&
setPropOnCustomElement(
domElement,
tag,
propKey$278,
propKey$269,
void 0,
nextProps,
propKey$252
propKey$243
);
for (defaultChecked in nextProps)
(propKey$252 = nextProps[defaultChecked]),
(propKey$243 = nextProps[defaultChecked]),
(propKey = lastProps[defaultChecked]),
!nextProps.hasOwnProperty(defaultChecked) ||
propKey$252 === propKey ||
(void 0 === propKey$252 && void 0 === propKey) ||
propKey$243 === propKey ||
(void 0 === propKey$243 && void 0 === propKey) ||
setPropOnCustomElement(
domElement,
tag,
defaultChecked,
propKey$252,
propKey$243,
nextProps,
propKey
);
return;
}
}
for (var propKey$283 in lastProps)
(propKey$252 = lastProps[propKey$283]),
lastProps.hasOwnProperty(propKey$283) &&
null != propKey$252 &&
!nextProps.hasOwnProperty(propKey$283) &&
setProp(domElement, tag, propKey$283, null, nextProps, propKey$252);
for (var propKey$274 in lastProps)
(propKey$243 = lastProps[propKey$274]),
lastProps.hasOwnProperty(propKey$274) &&
null != propKey$243 &&
!nextProps.hasOwnProperty(propKey$274) &&
setProp(domElement, tag, propKey$274, null, nextProps, propKey$243);
for (lastProp in nextProps)
(propKey$252 = nextProps[lastProp]),
(propKey$243 = nextProps[lastProp]),
(propKey = lastProps[lastProp]),
!nextProps.hasOwnProperty(lastProp) ||
propKey$252 === propKey ||
(null == propKey$252 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$252, nextProps, propKey);
propKey$243 === propKey ||
(null == propKey$243 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$243, nextProps, propKey);
}
var eventsEnabled = null,
selectionInformation = null;
@@ -15646,26 +15604,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
"string" === typeof pendingProps.precedence
) {
type = getStyleKey(pendingProps.href);
var styles$291 = getResourcesFromRoot(
var styles$282 = getResourcesFromRoot(
JSCompiler_inline_result
).hoistableStyles,
resource$292 = styles$291.get(type);
resource$292 ||
resource$283 = styles$282.get(type);
resource$283 ||
((JSCompiler_inline_result =
JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
(resource$292 = {
(resource$283 = {
type: "stylesheet",
instance: null,
count: 0,
state: { loading: 0, preload: null }
}),
styles$291.set(type, resource$292),
(styles$291 = JSCompiler_inline_result.querySelector(
styles$282.set(type, resource$283),
(styles$282 = JSCompiler_inline_result.querySelector(
getStylesheetSelectorFromKey(type)
)) &&
!styles$291._p &&
((resource$292.instance = styles$291),
(resource$292.state.loading = 5)),
!styles$282._p &&
((resource$283.instance = styles$282),
(resource$283.state.loading = 5)),
preloadPropsMap.has(type) ||
((pendingProps = {
rel: "preload",
@@ -15678,16 +15636,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
referrerPolicy: pendingProps.referrerPolicy
}),
preloadPropsMap.set(type, pendingProps),
styles$291 ||
styles$282 ||
preloadStylesheet(
JSCompiler_inline_result,
type,
pendingProps,
resource$292.state
resource$283.state
)));
if (currentProps && null === currentResource)
throw Error(formatProdErrorMessage(528, ""));
return resource$292;
return resource$283;
}
if (currentProps && null !== currentResource)
throw Error(formatProdErrorMessage(529, ""));
@@ -15784,37 +15742,37 @@ function acquireResource(hoistableRoot, resource, props) {
return (resource.instance = instance);
case "stylesheet":
styleProps = getStyleKey(props.href);
var instance$297 = hoistableRoot.querySelector(
var instance$288 = hoistableRoot.querySelector(
getStylesheetSelectorFromKey(styleProps)
);
if (instance$297)
if (instance$288)
return (
(resource.state.loading |= 4),
(resource.instance = instance$297),
markNodeAsHoistable(instance$297),
instance$297
(resource.instance = instance$288),
markNodeAsHoistable(instance$288),
instance$288
);
instance = stylesheetPropsFromRawProps(props);
(styleProps = preloadPropsMap.get(styleProps)) &&
adoptPreloadPropsForStylesheet(instance, styleProps);
instance$297 = (
instance$288 = (
hoistableRoot.ownerDocument || hoistableRoot
).createElement("link");
markNodeAsHoistable(instance$297);
var linkInstance = instance$297;
markNodeAsHoistable(instance$288);
var linkInstance = instance$288;
linkInstance._p = new Promise(function (resolve, reject) {
linkInstance.onload = resolve;
linkInstance.onerror = reject;
});
setInitialProperties(instance$297, "link", instance);
setInitialProperties(instance$288, "link", instance);
resource.state.loading |= 4;
insertStylesheet(instance$297, props.precedence, hoistableRoot);
return (resource.instance = instance$297);
insertStylesheet(instance$288, props.precedence, hoistableRoot);
return (resource.instance = instance$288);
case "script":
instance$297 = getScriptKey(props.src);
instance$288 = getScriptKey(props.src);
if (
(styleProps = hoistableRoot.querySelector(
getScriptSelectorFromKey(instance$297)
getScriptSelectorFromKey(instance$288)
))
)
return (
@@ -15823,7 +15781,7 @@ function acquireResource(hoistableRoot, resource, props) {
styleProps
);
instance = props;
if ((styleProps = preloadPropsMap.get(instance$297)))
if ((styleProps = preloadPropsMap.get(instance$288)))
(instance = assign({}, props)),
adoptPreloadPropsForScript(instance, styleProps);
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -16828,14 +16786,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1739 = React.version;
if (
"19.0.0-www-modern-7b56a542-20240917" !==
"19.0.0-www-modern-4549be0f-20240917" !==
isomorphicReactPackageVersion$jscomp$inline_1739
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1739,
"19.0.0-www-modern-7b56a542-20240917"
"19.0.0-www-modern-4549be0f-20240917"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16851,25 +16809,25 @@ Internals.Events = [
return fn(a);
}
];
var internals$jscomp$inline_2254 = {
var internals$jscomp$inline_2267 = {
bundleType: 0,
version: "19.0.0-www-modern-7b56a542-20240917",
version: "19.0.0-www-modern-4549be0f-20240917",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2255 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_2268 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_2255.isDisabled &&
hook$jscomp$inline_2255.supportsFiber
!hook$jscomp$inline_2268.isDisabled &&
hook$jscomp$inline_2268.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_2255.inject(
internals$jscomp$inline_2254
(rendererID = hook$jscomp$inline_2268.inject(
internals$jscomp$inline_2267
)),
(injectedHook = hook$jscomp$inline_2255);
(injectedHook = hook$jscomp$inline_2268);
} catch (err) {}
}
function ReactDOMRoot(internalRoot) {
@@ -17220,4 +17178,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -8986,5 +8986,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
})();
@@ -8804,5 +8804,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
})();
@@ -5911,4 +5911,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
@@ -5823,4 +5823,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -8119,7 +8119,7 @@ function commitHookEffectListMount(flags, finishedWork) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor
nearestMountedAncestor$jscomp$0
) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -8131,9 +8131,20 @@ function commitHookEffectListUnmount(
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((inst.destroy = void 0),
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy));
if (void 0 !== destroy) {
inst.destroy = void 0;
lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -8215,11 +8226,25 @@ function safelyDetachRef(current, nearestMountedAncestor) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
function commitProfilerPostCommit(
finishedWork,
current,
commitTime,
passiveEffectDuration
) {
try {
destroy();
var _finishedWork$memoize2 = finishedWork.memoizedProps,
id = _finishedWork$memoize2.id,
onPostCommit = _finishedWork$memoize2.onPostCommit;
"function" === typeof onPostCommit &&
onPostCommit(
id,
null === current ? "mount" : "update",
passiveEffectDuration,
commitTime
);
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostMount(finishedWork) {
@@ -8353,7 +8378,7 @@ function commitBeforeMutationEffects(root, firstChild) {
selection = selection.focusOffset;
try {
JSCompiler_temp.nodeType, focusNode.nodeType;
} catch (e$222) {
} catch (e$213) {
JSCompiler_temp = null;
break a;
}
@@ -8614,23 +8639,6 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -8930,7 +8938,7 @@ function commitDeletionEffectsOnFiber(
safelyDetachRef(deletedFiber, nearestMountedAncestor);
case 6:
prevHostParentIsContainer = hostParent;
var prevHostParentIsContainer$172 = hostParentIsContainer;
var prevHostParentIsContainer$171 = hostParentIsContainer;
hostParent = null;
recursivelyTraverseDeletionEffects(
finishedRoot,
@@ -8938,7 +8946,7 @@ function commitDeletionEffectsOnFiber(
deletedFiber
);
hostParent = prevHostParentIsContainer;
hostParentIsContainer = prevHostParentIsContainer$172;
hostParentIsContainer = prevHostParentIsContainer$171;
if (null !== hostParent)
if (hostParentIsContainer)
try {
@@ -9005,67 +9013,11 @@ function commitDeletionEffectsOnFiber(
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do {
prevHostParentIsContainer$172 = prevHostParentIsContainer.tag;
var inst = prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
(0 !== (prevHostParentIsContainer$172 & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: offscreenSubtreeWasHidden ||
0 === (prevHostParentIsContainer$172 & 4) ||
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)));
prevHostParentIsContainer = prevHostParentIsContainer.next;
} while (prevHostParentIsContainer !== prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do
(prevHostParentIsContainer$172 = prevHostParentIsContainer.tag),
(inst = prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
(0 !== (prevHostParentIsContainer$172 & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: 0 !== (prevHostParentIsContainer$172 & 4) &&
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))),
(prevHostParentIsContainer = prevHostParentIsContainer.next);
while (prevHostParentIsContainer !== prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -9118,15 +9070,15 @@ function commitDeletionEffectsOnFiber(
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (null === finishedWork.memoizedState) {
var current$182 = finishedWork.alternate;
var current$174 = finishedWork.alternate;
if (
null !== current$182 &&
((current$182 = current$182.memoizedState),
null !== current$182 &&
((current$182 = current$182.dehydrated), null !== current$182))
null !== current$174 &&
((current$174 = current$174.memoizedState),
null !== current$174 &&
((current$174 = current$174.dehydrated), null !== current$174))
) {
try {
retryIfBlockedOn(current$182);
retryIfBlockedOn(current$174);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
@@ -9134,7 +9086,7 @@ function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
var hydrationCallbacks = finishedRoot.hydrationCallbacks;
if (null !== hydrationCallbacks) {
var onHydrated = hydrationCallbacks.onHydrated;
onHydrated && onHydrated(current$182);
onHydrated && onHydrated(current$174);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
@@ -9507,6 +9459,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
commitReconciliationEffects(finishedWork);
currentHoistableRoot = flags;
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -9771,7 +9727,7 @@ function recursivelyTraverseReappearLayoutEffects(
includeWorkInProgressEffects =
includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);
for (parentFiber = parentFiber.child; null !== parentFiber; ) {
var current$189 = parentFiber.alternate,
var current$180 = parentFiber.alternate,
finishedRoot = finishedRoot$jscomp$0,
finishedWork = parentFiber,
flags = finishedWork.flags;
@@ -9792,18 +9748,18 @@ function recursivelyTraverseReappearLayoutEffects(
finishedWork,
includeWorkInProgressEffects
);
current$189 = finishedWork;
finishedRoot = current$189.stateNode;
current$180 = finishedWork;
finishedRoot = current$180.stateNode;
if ("function" === typeof finishedRoot.componentDidMount)
try {
finishedRoot.componentDidMount();
} catch (error) {
captureCommitPhaseError(current$189, current$189.return, error);
captureCommitPhaseError(current$180, current$180.return, error);
}
current$189 = finishedWork;
finishedRoot = current$189.updateQueue;
current$180 = finishedWork;
finishedRoot = current$180.updateQueue;
if (null !== finishedRoot) {
var instance = current$189.stateNode;
var instance = current$180.stateNode;
try {
var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;
if (null !== hiddenCallbacks)
@@ -9814,7 +9770,7 @@ function recursivelyTraverseReappearLayoutEffects(
)
callCallback(hiddenCallbacks[finishedRoot], instance);
} catch (error) {
captureCommitPhaseError(current$189, current$189.return, error);
captureCommitPhaseError(current$180, current$180.return, error);
}
}
includeWorkInProgressEffects &&
@@ -9831,7 +9787,7 @@ function recursivelyTraverseReappearLayoutEffects(
includeWorkInProgressEffects
);
includeWorkInProgressEffects &&
null === current$189 &&
null === current$180 &&
flags & 4 &&
commitHostMount(finishedWork);
safelyAttachRef(finishedWork, finishedWork.return);
@@ -9842,23 +9798,6 @@ function recursivelyTraverseReappearLayoutEffects(
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -10056,12 +9995,25 @@ function commitPassiveMountOnFiber(
}
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
flags & 2048
? (recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
-0,
finishedWork.stateNode.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -10185,9 +10137,9 @@ function recursivelyTraverseReconnectPassiveEffects(
);
break;
case 22:
var instance$196 = finishedWork.stateNode;
var instance$187 = finishedWork.stateNode;
null !== finishedWork.memoizedState
? instance$196._visibility & 4
? instance$187._visibility & 4
? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -10199,7 +10151,7 @@ function recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork
)
: ((instance$196._visibility |= 4),
: ((instance$187._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -10212,7 +10164,7 @@ function recursivelyTraverseReconnectPassiveEffects(
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
instance$196
instance$187
);
break;
case 24:
@@ -10369,6 +10321,12 @@ function commitPassiveUnmountOnFiber(finishedWork) {
finishedWork.flags & 2048 &&
commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
@@ -10552,12 +10510,12 @@ function findFiberRootForHostRoot(hostRoot) {
a: {
hostRoot = [hostRoot];
for (maybeFiber = 0; maybeFiber < hostRoot.length; ) {
var current$291 = hostRoot[maybeFiber++];
if (current$291[internalContainerInstanceKey]) {
hostRoot = getInstanceFromNode(current$291);
var current$282 = hostRoot[maybeFiber++];
if (current$282[internalContainerInstanceKey]) {
hostRoot = getInstanceFromNode(current$282);
break a;
}
hostRoot.push.apply(hostRoot, current$291.children);
hostRoot.push.apply(hostRoot, current$282.children);
}
hostRoot = null;
}
@@ -11396,8 +11354,8 @@ function renderRootSync(root, lanes) {
}
workLoopSync();
break;
} catch (thrownValue$208) {
handleThrow(root, thrownValue$208);
} catch (thrownValue$199) {
handleThrow(root, thrownValue$199);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -11512,8 +11470,8 @@ function renderRootConcurrent(root, lanes) {
}
workLoopConcurrent();
break;
} catch (thrownValue$210) {
handleThrow(root, thrownValue$210);
} catch (thrownValue$201) {
handleThrow(root, thrownValue$201);
}
while (1);
resetContextDependencies();
@@ -11856,7 +11814,7 @@ function releaseRootPooledCache(root, remainingLanes) {
}
function flushPassiveEffects() {
if (null !== rootWithPendingPassiveEffects) {
var root$217 = rootWithPendingPassiveEffects,
var root$208 = rootWithPendingPassiveEffects,
remainingLanes = pendingPassiveEffectsRemainingLanes;
pendingPassiveEffectsRemainingLanes = 0;
var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes),
@@ -11871,7 +11829,7 @@ function flushPassiveEffects() {
} finally {
(Internals.p = previousPriority),
(ReactSharedInternals.T = prevTransition),
releaseRootPooledCache(root$217, remainingLanes);
releaseRootPooledCache(root$208, remainingLanes);
}
}
return !1;
@@ -13096,7 +13054,7 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
}
var isInputEventSupported = !1;
if (canUseDOM) {
var JSCompiler_inline_result$jscomp$381;
var JSCompiler_inline_result$jscomp$372;
if (canUseDOM) {
var isSupported$jscomp$inline_1555 = "oninput" in document;
if (!isSupported$jscomp$inline_1555) {
@@ -13105,10 +13063,10 @@ if (canUseDOM) {
isSupported$jscomp$inline_1555 =
"function" === typeof element$jscomp$inline_1556.oninput;
}
JSCompiler_inline_result$jscomp$381 = isSupported$jscomp$inline_1555;
} else JSCompiler_inline_result$jscomp$381 = !1;
JSCompiler_inline_result$jscomp$372 = isSupported$jscomp$inline_1555;
} else JSCompiler_inline_result$jscomp$372 = !1;
isInputEventSupported =
JSCompiler_inline_result$jscomp$381 &&
JSCompiler_inline_result$jscomp$372 &&
(!document.documentMode || 9 < document.documentMode);
}
function stopWatchingForValueChange() {
@@ -13197,36 +13155,36 @@ function containsNode(outerNode, innerNode) {
: !1;
}
function getActiveElementDeep(containerInfo) {
var $jscomp$optchain$tmp495076701$1, $jscomp$nullish$tmp0;
var $jscomp$optchain$tmp479822457$1, $jscomp$nullish$tmp0;
containerInfo =
null !=
($jscomp$nullish$tmp0 =
null == containerInfo
? void 0
: null ==
($jscomp$optchain$tmp495076701$1 = containerInfo.ownerDocument)
($jscomp$optchain$tmp479822457$1 = containerInfo.ownerDocument)
? void 0
: $jscomp$optchain$tmp495076701$1.defaultView)
: $jscomp$optchain$tmp479822457$1.defaultView)
? $jscomp$nullish$tmp0
: window;
for (
$jscomp$optchain$tmp495076701$1 = getActiveElement(containerInfo.document);
$jscomp$optchain$tmp495076701$1 instanceof containerInfo.HTMLIFrameElement;
$jscomp$optchain$tmp479822457$1 = getActiveElement(containerInfo.document);
$jscomp$optchain$tmp479822457$1 instanceof containerInfo.HTMLIFrameElement;
) {
try {
var JSCompiler_inline_result =
"string" ===
typeof $jscomp$optchain$tmp495076701$1.contentWindow.location.href;
typeof $jscomp$optchain$tmp479822457$1.contentWindow.location.href;
} catch (err) {
JSCompiler_inline_result = !1;
}
if (JSCompiler_inline_result)
containerInfo = $jscomp$optchain$tmp495076701$1.contentWindow;
containerInfo = $jscomp$optchain$tmp479822457$1.contentWindow;
else break;
$jscomp$optchain$tmp495076701$1 = getActiveElement(containerInfo.document);
$jscomp$optchain$tmp479822457$1 = getActiveElement(containerInfo.document);
}
return $jscomp$optchain$tmp495076701$1;
return $jscomp$optchain$tmp479822457$1;
}
function hasSelectionCapabilities(elem) {
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
@@ -14829,34 +14787,34 @@ function setInitialProperties(domElement, tag, props) {
defaultChecked = null;
for (hasSrc in props)
if (props.hasOwnProperty(hasSrc)) {
var propValue$236 = props[hasSrc];
if (null != propValue$236)
var propValue$227 = props[hasSrc];
if (null != propValue$227)
switch (hasSrc) {
case "name":
hasSrcSet = propValue$236;
hasSrcSet = propValue$227;
break;
case "type":
propKey = propValue$236;
propKey = propValue$227;
break;
case "checked":
checked = propValue$236;
checked = propValue$227;
break;
case "defaultChecked":
defaultChecked = propValue$236;
defaultChecked = propValue$227;
break;
case "value":
propValue = propValue$236;
propValue = propValue$227;
break;
case "defaultValue":
defaultValue = propValue$236;
defaultValue = propValue$227;
break;
case "children":
case "dangerouslySetInnerHTML":
if (null != propValue$236)
if (null != propValue$227)
throw Error(formatProdErrorMessage(137, tag));
break;
default:
setProp(domElement, tag, hasSrc, propValue$236, props, null);
setProp(domElement, tag, hasSrc, propValue$227, props, null);
}
}
initInput(
@@ -14992,14 +14950,14 @@ function setInitialProperties(domElement, tag, props) {
return;
default:
if (isCustomElement(tag)) {
for (propValue$236 in props)
props.hasOwnProperty(propValue$236) &&
((hasSrc = props[propValue$236]),
for (propValue$227 in props)
props.hasOwnProperty(propValue$227) &&
((hasSrc = props[propValue$227]),
void 0 !== hasSrc &&
setPropOnCustomElement(
domElement,
tag,
propValue$236,
propValue$227,
hasSrc,
props,
void 0
@@ -15047,14 +15005,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
setProp(domElement, tag, propKey, null, nextProps, lastProp);
}
}
for (var propKey$253 in nextProps) {
var propKey = nextProps[propKey$253];
lastProp = lastProps[propKey$253];
for (var propKey$244 in nextProps) {
var propKey = nextProps[propKey$244];
lastProp = lastProps[propKey$244];
if (
nextProps.hasOwnProperty(propKey$253) &&
nextProps.hasOwnProperty(propKey$244) &&
(null != propKey || null != lastProp)
)
switch (propKey$253) {
switch (propKey$244) {
case "type":
type = propKey;
break;
@@ -15083,7 +15041,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
setProp(
domElement,
tag,
propKey$253,
propKey$244,
propKey,
nextProps,
lastProp
@@ -15102,7 +15060,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
);
return;
case "select":
propKey = value = defaultValue = propKey$253 = null;
propKey = value = defaultValue = propKey$244 = null;
for (type in lastProps)
if (
((lastDefaultValue = lastProps[type]),
@@ -15133,7 +15091,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
)
switch (name) {
case "value":
propKey$253 = type;
propKey$244 = type;
break;
case "defaultValue":
defaultValue = type;
@@ -15154,15 +15112,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
tag = defaultValue;
lastProps = value;
nextProps = propKey;
null != propKey$253
? updateOptions(domElement, !!lastProps, propKey$253, !1)
null != propKey$244
? updateOptions(domElement, !!lastProps, propKey$244, !1)
: !!nextProps !== !!lastProps &&
(null != tag
? updateOptions(domElement, !!lastProps, tag, !0)
: updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
return;
case "textarea":
propKey = propKey$253 = null;
propKey = propKey$244 = null;
for (defaultValue in lastProps)
if (
((name = lastProps[defaultValue]),
@@ -15186,7 +15144,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
)
switch (value) {
case "value":
propKey$253 = name;
propKey$244 = name;
break;
case "defaultValue":
propKey = name;
@@ -15200,17 +15158,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
name !== type &&
setProp(domElement, tag, value, name, nextProps, type);
}
updateTextarea(domElement, propKey$253, propKey);
updateTextarea(domElement, propKey$244, propKey);
return;
case "option":
for (var propKey$269 in lastProps)
for (var propKey$260 in lastProps)
if (
((propKey$253 = lastProps[propKey$269]),
lastProps.hasOwnProperty(propKey$269) &&
null != propKey$253 &&
!nextProps.hasOwnProperty(propKey$269))
((propKey$244 = lastProps[propKey$260]),
lastProps.hasOwnProperty(propKey$260) &&
null != propKey$244 &&
!nextProps.hasOwnProperty(propKey$260))
)
switch (propKey$269) {
switch (propKey$260) {
case "selected":
domElement.selected = !1;
break;
@@ -15218,33 +15176,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
setProp(
domElement,
tag,
propKey$269,
propKey$260,
null,
nextProps,
propKey$253
propKey$244
);
}
for (lastDefaultValue in nextProps)
if (
((propKey$253 = nextProps[lastDefaultValue]),
((propKey$244 = nextProps[lastDefaultValue]),
(propKey = lastProps[lastDefaultValue]),
nextProps.hasOwnProperty(lastDefaultValue) &&
propKey$253 !== propKey &&
(null != propKey$253 || null != propKey))
propKey$244 !== propKey &&
(null != propKey$244 || null != propKey))
)
switch (lastDefaultValue) {
case "selected":
domElement.selected =
propKey$253 &&
"function" !== typeof propKey$253 &&
"symbol" !== typeof propKey$253;
propKey$244 &&
"function" !== typeof propKey$244 &&
"symbol" !== typeof propKey$244;
break;
default:
setProp(
domElement,
tag,
lastDefaultValue,
propKey$253,
propKey$244,
nextProps,
propKey
);
@@ -15265,24 +15223,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
case "track":
case "wbr":
case "menuitem":
for (var propKey$274 in lastProps)
(propKey$253 = lastProps[propKey$274]),
lastProps.hasOwnProperty(propKey$274) &&
null != propKey$253 &&
!nextProps.hasOwnProperty(propKey$274) &&
setProp(domElement, tag, propKey$274, null, nextProps, propKey$253);
for (var propKey$265 in lastProps)
(propKey$244 = lastProps[propKey$265]),
lastProps.hasOwnProperty(propKey$265) &&
null != propKey$244 &&
!nextProps.hasOwnProperty(propKey$265) &&
setProp(domElement, tag, propKey$265, null, nextProps, propKey$244);
for (checked in nextProps)
if (
((propKey$253 = nextProps[checked]),
((propKey$244 = nextProps[checked]),
(propKey = lastProps[checked]),
nextProps.hasOwnProperty(checked) &&
propKey$253 !== propKey &&
(null != propKey$253 || null != propKey))
propKey$244 !== propKey &&
(null != propKey$244 || null != propKey))
)
switch (checked) {
case "children":
case "dangerouslySetInnerHTML":
if (null != propKey$253)
if (null != propKey$244)
throw Error(formatProdErrorMessage(137, tag));
break;
default:
@@ -15290,7 +15248,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
domElement,
tag,
checked,
propKey$253,
propKey$244,
nextProps,
propKey
);
@@ -15298,49 +15256,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
return;
default:
if (isCustomElement(tag)) {
for (var propKey$279 in lastProps)
(propKey$253 = lastProps[propKey$279]),
lastProps.hasOwnProperty(propKey$279) &&
void 0 !== propKey$253 &&
!nextProps.hasOwnProperty(propKey$279) &&
for (var propKey$270 in lastProps)
(propKey$244 = lastProps[propKey$270]),
lastProps.hasOwnProperty(propKey$270) &&
void 0 !== propKey$244 &&
!nextProps.hasOwnProperty(propKey$270) &&
setPropOnCustomElement(
domElement,
tag,
propKey$279,
propKey$270,
void 0,
nextProps,
propKey$253
propKey$244
);
for (defaultChecked in nextProps)
(propKey$253 = nextProps[defaultChecked]),
(propKey$244 = nextProps[defaultChecked]),
(propKey = lastProps[defaultChecked]),
!nextProps.hasOwnProperty(defaultChecked) ||
propKey$253 === propKey ||
(void 0 === propKey$253 && void 0 === propKey) ||
propKey$244 === propKey ||
(void 0 === propKey$244 && void 0 === propKey) ||
setPropOnCustomElement(
domElement,
tag,
defaultChecked,
propKey$253,
propKey$244,
nextProps,
propKey
);
return;
}
}
for (var propKey$284 in lastProps)
(propKey$253 = lastProps[propKey$284]),
lastProps.hasOwnProperty(propKey$284) &&
null != propKey$253 &&
!nextProps.hasOwnProperty(propKey$284) &&
setProp(domElement, tag, propKey$284, null, nextProps, propKey$253);
for (var propKey$275 in lastProps)
(propKey$244 = lastProps[propKey$275]),
lastProps.hasOwnProperty(propKey$275) &&
null != propKey$244 &&
!nextProps.hasOwnProperty(propKey$275) &&
setProp(domElement, tag, propKey$275, null, nextProps, propKey$244);
for (lastProp in nextProps)
(propKey$253 = nextProps[lastProp]),
(propKey$244 = nextProps[lastProp]),
(propKey = lastProps[lastProp]),
!nextProps.hasOwnProperty(lastProp) ||
propKey$253 === propKey ||
(null == propKey$253 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$253, nextProps, propKey);
propKey$244 === propKey ||
(null == propKey$244 && null == propKey) ||
setProp(domElement, tag, lastProp, propKey$244, nextProps, propKey);
}
var eventsEnabled = null,
selectionInformation = null;
@@ -15975,26 +15933,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
"string" === typeof pendingProps.precedence
) {
type = getStyleKey(pendingProps.href);
var styles$293 = getResourcesFromRoot(
var styles$284 = getResourcesFromRoot(
JSCompiler_inline_result
).hoistableStyles,
resource$294 = styles$293.get(type);
resource$294 ||
resource$285 = styles$284.get(type);
resource$285 ||
((JSCompiler_inline_result =
JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
(resource$294 = {
(resource$285 = {
type: "stylesheet",
instance: null,
count: 0,
state: { loading: 0, preload: null }
}),
styles$293.set(type, resource$294),
(styles$293 = JSCompiler_inline_result.querySelector(
styles$284.set(type, resource$285),
(styles$284 = JSCompiler_inline_result.querySelector(
getStylesheetSelectorFromKey(type)
)) &&
!styles$293._p &&
((resource$294.instance = styles$293),
(resource$294.state.loading = 5)),
!styles$284._p &&
((resource$285.instance = styles$284),
(resource$285.state.loading = 5)),
preloadPropsMap.has(type) ||
((pendingProps = {
rel: "preload",
@@ -16007,16 +15965,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
referrerPolicy: pendingProps.referrerPolicy
}),
preloadPropsMap.set(type, pendingProps),
styles$293 ||
styles$284 ||
preloadStylesheet(
JSCompiler_inline_result,
type,
pendingProps,
resource$294.state
resource$285.state
)));
if (currentProps && null === currentResource)
throw Error(formatProdErrorMessage(528, ""));
return resource$294;
return resource$285;
}
if (currentProps && null !== currentResource)
throw Error(formatProdErrorMessage(529, ""));
@@ -16113,37 +16071,37 @@ function acquireResource(hoistableRoot, resource, props) {
return (resource.instance = instance);
case "stylesheet":
styleProps = getStyleKey(props.href);
var instance$299 = hoistableRoot.querySelector(
var instance$290 = hoistableRoot.querySelector(
getStylesheetSelectorFromKey(styleProps)
);
if (instance$299)
if (instance$290)
return (
(resource.state.loading |= 4),
(resource.instance = instance$299),
markNodeAsHoistable(instance$299),
instance$299
(resource.instance = instance$290),
markNodeAsHoistable(instance$290),
instance$290
);
instance = stylesheetPropsFromRawProps(props);
(styleProps = preloadPropsMap.get(styleProps)) &&
adoptPreloadPropsForStylesheet(instance, styleProps);
instance$299 = (
instance$290 = (
hoistableRoot.ownerDocument || hoistableRoot
).createElement("link");
markNodeAsHoistable(instance$299);
var linkInstance = instance$299;
markNodeAsHoistable(instance$290);
var linkInstance = instance$290;
linkInstance._p = new Promise(function (resolve, reject) {
linkInstance.onload = resolve;
linkInstance.onerror = reject;
});
setInitialProperties(instance$299, "link", instance);
setInitialProperties(instance$290, "link", instance);
resource.state.loading |= 4;
insertStylesheet(instance$299, props.precedence, hoistableRoot);
return (resource.instance = instance$299);
insertStylesheet(instance$290, props.precedence, hoistableRoot);
return (resource.instance = instance$290);
case "script":
instance$299 = getScriptKey(props.src);
instance$290 = getScriptKey(props.src);
if (
(styleProps = hoistableRoot.querySelector(
getScriptSelectorFromKey(instance$299)
getScriptSelectorFromKey(instance$290)
))
)
return (
@@ -16152,7 +16110,7 @@ function acquireResource(hoistableRoot, resource, props) {
styleProps
);
instance = props;
if ((styleProps = preloadPropsMap.get(instance$299)))
if ((styleProps = preloadPropsMap.get(instance$290)))
(instance = assign({}, props)),
adoptPreloadPropsForScript(instance, styleProps);
hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -17157,14 +17115,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version;
if (
"19.0.0-www-modern-7b56a542-20240917" !==
"19.0.0-www-modern-4549be0f-20240917" !==
isomorphicReactPackageVersion$jscomp$inline_1769
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1769,
"19.0.0-www-modern-7b56a542-20240917"
"19.0.0-www-modern-4549be0f-20240917"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17180,25 +17138,25 @@ Internals.Events = [
return fn(a);
}
];
var internals$jscomp$inline_2289 = {
var internals$jscomp$inline_2302 = {
bundleType: 0,
version: "19.0.0-www-modern-7b56a542-20240917",
version: "19.0.0-www-modern-4549be0f-20240917",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2290 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
var hook$jscomp$inline_2303 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (
!hook$jscomp$inline_2290.isDisabled &&
hook$jscomp$inline_2290.supportsFiber
!hook$jscomp$inline_2303.isDisabled &&
hook$jscomp$inline_2303.supportsFiber
)
try {
(rendererID = hook$jscomp$inline_2290.inject(
internals$jscomp$inline_2289
(rendererID = hook$jscomp$inline_2303.inject(
internals$jscomp$inline_2302
)),
(injectedHook = hook$jscomp$inline_2290);
(injectedHook = hook$jscomp$inline_2303);
} catch (err) {}
}
function ReactDOMRoot(internalRoot) {
@@ -17700,4 +17658,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
@@ -1253,20 +1253,6 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentRenderStopped &&
injectedProfilingHooks.markComponentRenderStopped();
}
function markComponentLayoutEffectUnmountStarted(fiber) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
}
function markComponentLayoutEffectUnmountStopped() {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
}
function markRenderStarted(lanes) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
@@ -5672,6 +5658,21 @@ __DEV__ &&
}
enableSchedulingProfiler && markStateUpdateScheduled(fiber, lane);
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
profilerEffectDuration = 0;
return prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration = prevEffectDuration;
return elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration += prevEffectDuration;
return elapsedTime;
}
function startProfilerTimer(fiber) {
profilerStartTime = now();
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
@@ -5691,44 +5692,15 @@ __DEV__ &&
profilerStartTime = -1;
}
}
function recordLayoutEffectDuration(fiber) {
if (0 <= layoutEffectStartTime) {
var elapsedTime = now() - layoutEffectStartTime;
layoutEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber.stateNode.effectDuration += elapsedTime;
return;
case 12:
fiber.stateNode.effectDuration += elapsedTime;
return;
}
fiber = fiber.return;
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
profilerStartTime = -1;
profilerEffectDuration += elapsedTime;
}
}
function recordPassiveEffectDuration(fiber) {
if (0 <= passiveEffectStartTime) {
var elapsedTime = now() - passiveEffectStartTime;
passiveEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
case 12:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
}
fiber = fiber.return;
}
}
}
function startLayoutEffectTimer() {
layoutEffectStartTime = now();
function startEffectTimer() {
profilerStartTime = now();
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
@@ -8281,8 +8253,8 @@ __DEV__ &&
(workInProgress.flags |= 4);
workInProgress.flags |= 2048;
var stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0;
stateNode.passiveEffectDuration = 0;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
break;
case 13:
stateNode = workInProgress.memoizedState;
@@ -8924,8 +8896,8 @@ __DEV__ &&
(workInProgress.flags |= 4),
(workInProgress.flags |= 2048),
(returnFiber = workInProgress.stateNode),
(returnFiber.effectDuration = 0),
(returnFiber.passiveEffectDuration = 0),
(returnFiber.effectDuration = -0),
(returnFiber.passiveEffectDuration = -0),
reconcileChildren(
current,
workInProgress,
@@ -10675,16 +10647,35 @@ __DEV__ &&
pop(markerInstanceStack, interruptedWork);
}
}
function shouldProfile$1(current) {
function shouldProfile(current) {
return (current.mode & 2) !== NoMode;
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(
finishedWork,
nearestMountedAncestor,
hookFlags
) {
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -10802,10 +10793,18 @@ __DEV__ &&
finishedWork
)
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStarted(finishedWork)),
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(
finishedWork
)),
(flags & Insertion) !== NoFlags &&
(isRunningInsertionEffect = !0),
safelyCallDestroy(
runWithFiberInDEV(
finishedWork,
callDestroyInDEV,
finishedWork,
nearestMountedAncestor,
destroy
@@ -10820,7 +10819,11 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStopped()));
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()));
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -10830,10 +10833,10 @@ __DEV__ &&
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(
@@ -10841,14 +10844,14 @@ __DEV__ &&
nearestMountedAncestor,
hookFlags
) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
@@ -10953,8 +10956,8 @@ __DEV__ &&
current.elementType === current.type
);
instance.state = current.memoizedState;
shouldProfile$1(current)
? (startLayoutEffectTimer(),
shouldProfile(current)
? (startEffectTimer(),
runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -10962,7 +10965,7 @@ __DEV__ &&
nearestMountedAncestor,
instance
),
recordLayoutEffectDuration(current))
recordEffectDuration())
: runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -10986,12 +10989,12 @@ __DEV__ &&
}
21 === finishedWork.tag && (instanceToUse = instance);
if ("function" === typeof ref)
if (shouldProfile$1(finishedWork))
if (shouldProfile(finishedWork))
try {
startLayoutEffectTimer(),
startEffectTimer(),
(finishedWork.refCleanup = ref(instanceToUse));
} finally {
recordLayoutEffectDuration(finishedWork);
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
@@ -11016,12 +11019,11 @@ __DEV__ &&
if (null !== ref)
if ("function" === typeof refCleanup)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(),
runWithFiberInDEV(current, refCleanup);
startEffectTimer(), runWithFiberInDEV(current, refCleanup);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, refCleanup);
} catch (error$18) {
@@ -11033,11 +11035,11 @@ __DEV__ &&
}
else if ("function" === typeof ref)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(), runWithFiberInDEV(current, ref, null);
startEffectTimer(), runWithFiberInDEV(current, ref, null);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, ref, null);
} catch (error$19) {
@@ -11045,15 +11047,6 @@ __DEV__ &&
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
runWithFiberInDEV(
current,
callDestroyInDEV,
current,
nearestMountedAncestor,
destroy
);
}
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
var _finishedWork$memoize = finishedWork.memoizedProps,
id = _finishedWork$memoize.id,
@@ -11413,15 +11406,15 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)),
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
@@ -11448,8 +11441,8 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -11459,7 +11452,7 @@ __DEV__ &&
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -11474,29 +11467,28 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
current = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (
flags & 64 &&
((flags = finishedWork.updateQueue), null !== flags)
) {
finishedRoot = null;
prevProps = null;
if (null !== finishedWork.child)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = getPublicInstance(
finishedWork.child.stateNode
);
prevProps = getPublicInstance(finishedWork.child.stateNode);
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
finishedRoot
prevProps
);
} catch (error$15) {
captureCommitPhaseError(
@@ -11506,6 +11498,7 @@ __DEV__ &&
);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current);
break;
case 26:
if (supportsResources) {
@@ -11520,9 +11513,11 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4) {
flags = finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
finishedRoot = finishedWork.stateNode;
finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -11530,7 +11525,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
flags
finishedRoot.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -11539,19 +11534,7 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -11970,95 +11953,19 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do {
var tag = prevHostParentIsContainer.tag,
inst = prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((isRunningInsertionEffect = !0),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
(isRunningInsertionEffect = !1))
: offscreenSubtreeWasHidden ||
(tag & Layout) === NoFlags ||
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
(deletedFiber.mode & 2) !== NoMode
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped()));
prevHostParentIsContainer = prevHostParentIsContainer.next;
} while (prevHostParentIsContainer !== prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do
(tag = prevHostParentIsContainer.tag),
(inst = prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: (tag & Layout) !== NoFlags &&
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
(deletedFiber.mode & 2) !== NoMode
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped())),
(prevHostParentIsContainer = prevHostParentIsContainer.next);
while (prevHostParentIsContainer !== prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
);
offscreenSubtreeWasHidden ||
commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -12288,19 +12195,11 @@ __DEV__ &&
finishedWork.return
),
commitHookEffectListMount(Insertion | HasEffect, finishedWork),
(finishedWork.mode & 2) !== NoMode
? (startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
),
recordLayoutEffectDuration(finishedWork))
: commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
));
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -12463,12 +12362,13 @@ __DEV__ &&
}
break;
case 3:
hoistableRoot = pushNestedEffectDurations();
supportsResources
? (prepareToCommitHoistables(),
(hoistableRoot = currentHoistableRoot),
(props = currentHoistableRoot),
(currentHoistableRoot = getHoistableRoot(root.containerInfo)),
recursivelyTraverseMutationEffects(root, finishedWork),
(currentHoistableRoot = hoistableRoot))
(currentHoistableRoot = props))
: recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
if (flags & 4) {
@@ -12512,6 +12412,7 @@ __DEV__ &&
}
needsFormReset &&
((needsFormReset = !1), recursivelyResetForms(finishedWork));
root.effectDuration += popNestedEffectDurations(hoistableRoot);
break;
case 4:
supportsResources
@@ -12532,6 +12433,13 @@ __DEV__ &&
finishedWork.stateNode.pendingChildren
);
break;
case 12:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.stateNode.effectDuration +=
bubbleNestedEffectDurations(flags);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -12753,23 +12661,11 @@ __DEV__ &&
case 11:
case 14:
case 15:
if ((finishedWork.mode & 2) !== NoMode)
try {
startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
} finally {
recordLayoutEffectDuration(finishedWork);
}
else
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
);
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
@@ -12866,14 +12762,16 @@ __DEV__ &&
safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4) {
includeWorkInProgressEffects =
finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
includeWorkInProgressEffects = finishedWork.stateNode;
includeWorkInProgressEffects.effectDuration +=
bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -12881,7 +12779,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
includeWorkInProgressEffects
includeWorkInProgressEffects.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -12890,21 +12788,12 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
case 12:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -13060,6 +12949,7 @@ __DEV__ &&
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -13127,37 +13017,33 @@ __DEV__ &&
clearTransitionsForLanes(finishedRoot, committedLanes);
}
}
finishedRoot.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
if (flags & 2048)
a: for (
finishedRoot = finishedWork.stateNode.passiveEffectDuration,
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot
),
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
case 12:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
}
finishedWork = finishedWork.return;
}
flags & 2048
? ((prevEffectDuration = pushNestedEffectDurations()),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
(finishedRoot = finishedWork.stateNode),
(finishedRoot.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration)),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -13174,9 +13060,9 @@ __DEV__ &&
);
break;
case 22:
nextCache = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState
? nextCache._visibility & 4
? prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -13188,21 +13074,21 @@ __DEV__ &&
finishedRoot,
finishedWork
)
: ((nextCache._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
))
: nextCache._visibility & 4
: prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((nextCache._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -13214,7 +13100,7 @@ __DEV__ &&
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
nextCache
prevEffectDuration
);
break;
case 24:
@@ -13518,12 +13404,24 @@ __DEV__ &&
Passive | HasEffect
);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
break;
case 22:
var instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
instance._visibility & 4 &&
prevEffectDuration._visibility & 4 &&
(null === finishedWork.return || 13 !== finishedWork.return.tag)
? ((instance._visibility &= -5),
? ((prevEffectDuration._visibility &= -5),
recursivelyTraverseDisconnectPassiveEffects(finishedWork))
: recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
@@ -16369,7 +16267,7 @@ __DEV__ &&
identifierPrefix++
)
containerInfo.push(null);
this.passiveEffectDuration = this.effectDuration = 0;
this.passiveEffectDuration = this.effectDuration = -0;
this.memoizedUpdaters = new Set();
containerInfo = this.pendingUpdatersLaneMap = [];
for (identifierPrefix = 0; 31 > identifierPrefix; identifierPrefix++)
@@ -18438,10 +18336,9 @@ __DEV__ &&
return unstable_useContextWithBailout(context, select);
};
var now = Scheduler.unstable_now,
commitTime = 0,
layoutEffectStartTime = -1,
profilerStartTime = -1,
passiveEffectStartTime = -1,
commitTime = -0,
profilerStartTime = -1.1,
profilerEffectDuration = -0,
currentUpdateIsNested = !1,
nestedUpdateScheduled = !1,
fakeInternalInstance = {};
@@ -19315,7 +19212,7 @@ __DEV__ &&
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-classic-4549be0f-20240917"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -1156,20 +1156,6 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentRenderStopped &&
injectedProfilingHooks.markComponentRenderStopped();
}
function markComponentLayoutEffectUnmountStarted(fiber) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
}
function markComponentLayoutEffectUnmountStopped() {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
}
function markRenderStarted(lanes) {
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
@@ -5562,6 +5548,21 @@ __DEV__ &&
}
enableSchedulingProfiler && markStateUpdateScheduled(fiber, lane);
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
profilerEffectDuration = 0;
return prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration = prevEffectDuration;
return elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration += prevEffectDuration;
return elapsedTime;
}
function startProfilerTimer(fiber) {
profilerStartTime = now();
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
@@ -5581,44 +5582,15 @@ __DEV__ &&
profilerStartTime = -1;
}
}
function recordLayoutEffectDuration(fiber) {
if (0 <= layoutEffectStartTime) {
var elapsedTime = now() - layoutEffectStartTime;
layoutEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber.stateNode.effectDuration += elapsedTime;
return;
case 12:
fiber.stateNode.effectDuration += elapsedTime;
return;
}
fiber = fiber.return;
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
profilerStartTime = -1;
profilerEffectDuration += elapsedTime;
}
}
function recordPassiveEffectDuration(fiber) {
if (0 <= passiveEffectStartTime) {
var elapsedTime = now() - passiveEffectStartTime;
passiveEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
case 12:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
}
fiber = fiber.return;
}
}
}
function startLayoutEffectTimer() {
layoutEffectStartTime = now();
function startEffectTimer() {
profilerStartTime = now();
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
@@ -7963,8 +7935,8 @@ __DEV__ &&
(workInProgress.flags |= 4);
workInProgress.flags |= 2048;
var stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0;
stateNode.passiveEffectDuration = 0;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
break;
case 13:
stateNode = workInProgress.memoizedState;
@@ -8606,8 +8578,8 @@ __DEV__ &&
(workInProgress.flags |= 4),
(workInProgress.flags |= 2048),
(returnFiber = workInProgress.stateNode),
(returnFiber.effectDuration = 0),
(returnFiber.passiveEffectDuration = 0),
(returnFiber.effectDuration = -0),
(returnFiber.passiveEffectDuration = -0),
reconcileChildren(
current,
workInProgress,
@@ -10287,16 +10259,35 @@ __DEV__ &&
pop(markerInstanceStack, interruptedWork);
}
}
function shouldProfile$1(current) {
function shouldProfile(current) {
return (current.mode & 2) !== NoMode;
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(
finishedWork,
nearestMountedAncestor,
hookFlags
) {
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -10414,10 +10405,18 @@ __DEV__ &&
finishedWork
)
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStarted(finishedWork)),
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(
finishedWork
)),
(flags & Insertion) !== NoFlags &&
(isRunningInsertionEffect = !0),
safelyCallDestroy(
runWithFiberInDEV(
finishedWork,
callDestroyInDEV,
finishedWork,
nearestMountedAncestor,
destroy
@@ -10432,7 +10431,11 @@ __DEV__ &&
typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped &&
injectedProfilingHooks.markComponentPassiveEffectUnmountStopped()
: (flags & Layout) !== NoFlags &&
markComponentLayoutEffectUnmountStopped()));
enableSchedulingProfiler &&
null !== injectedProfilingHooks &&
"function" ===
typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped &&
injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()));
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -10442,10 +10445,10 @@ __DEV__ &&
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(
@@ -10453,14 +10456,14 @@ __DEV__ &&
nearestMountedAncestor,
hookFlags
) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
@@ -10555,8 +10558,8 @@ __DEV__ &&
current.elementType === current.type
);
instance.state = current.memoizedState;
shouldProfile$1(current)
? (startLayoutEffectTimer(),
shouldProfile(current)
? (startEffectTimer(),
runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -10564,7 +10567,7 @@ __DEV__ &&
nearestMountedAncestor,
instance
),
recordLayoutEffectDuration(current))
recordEffectDuration())
: runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -10588,12 +10591,12 @@ __DEV__ &&
}
21 === finishedWork.tag && (instanceToUse = instance);
if ("function" === typeof ref)
if (shouldProfile$1(finishedWork))
if (shouldProfile(finishedWork))
try {
startLayoutEffectTimer(),
startEffectTimer(),
(finishedWork.refCleanup = ref(instanceToUse));
} finally {
recordLayoutEffectDuration(finishedWork);
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
@@ -10618,12 +10621,11 @@ __DEV__ &&
if (null !== ref)
if ("function" === typeof refCleanup)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(),
runWithFiberInDEV(current, refCleanup);
startEffectTimer(), runWithFiberInDEV(current, refCleanup);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, refCleanup);
} catch (error$18) {
@@ -10635,11 +10637,11 @@ __DEV__ &&
}
else if ("function" === typeof ref)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(), runWithFiberInDEV(current, ref, null);
startEffectTimer(), runWithFiberInDEV(current, ref, null);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, ref, null);
} catch (error$19) {
@@ -10647,15 +10649,6 @@ __DEV__ &&
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
runWithFiberInDEV(
current,
callDestroyInDEV,
current,
nearestMountedAncestor,
destroy
);
}
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
var _finishedWork$memoize = finishedWork.memoizedProps,
id = _finishedWork$memoize.id,
@@ -11015,15 +11008,15 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)),
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
@@ -11050,8 +11043,8 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -11061,7 +11054,7 @@ __DEV__ &&
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -11076,29 +11069,28 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
current = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (
flags & 64 &&
((flags = finishedWork.updateQueue), null !== flags)
) {
finishedRoot = null;
prevProps = null;
if (null !== finishedWork.child)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = getPublicInstance(
finishedWork.child.stateNode
);
prevProps = getPublicInstance(finishedWork.child.stateNode);
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
finishedRoot
prevProps
);
} catch (error$15) {
captureCommitPhaseError(
@@ -11108,6 +11100,7 @@ __DEV__ &&
);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current);
break;
case 26:
if (supportsResources) {
@@ -11122,9 +11115,11 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4) {
flags = finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
finishedRoot = finishedWork.stateNode;
finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -11132,7 +11127,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
flags
finishedRoot.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -11141,19 +11136,7 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -11567,95 +11550,19 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do {
var tag = prevHostParentIsContainer.tag,
inst = prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((isRunningInsertionEffect = !0),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
(isRunningInsertionEffect = !1))
: offscreenSubtreeWasHidden ||
(tag & Layout) === NoFlags ||
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
(deletedFiber.mode & 2) !== NoMode
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped()));
prevHostParentIsContainer = prevHostParentIsContainer.next;
} while (prevHostParentIsContainer !== prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do
(tag = prevHostParentIsContainer.tag),
(inst = prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: (tag & Layout) !== NoFlags &&
(enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStarted(deletedFiber),
(deletedFiber.mode & 2) !== NoMode
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)),
enableSchedulingProfiler &&
markComponentLayoutEffectUnmountStopped())),
(prevHostParentIsContainer = prevHostParentIsContainer.next);
while (prevHostParentIsContainer !== prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
);
offscreenSubtreeWasHidden ||
commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -11879,19 +11786,11 @@ __DEV__ &&
finishedWork.return
),
commitHookEffectListMount(Insertion | HasEffect, finishedWork),
(finishedWork.mode & 2) !== NoMode
? (startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
),
recordLayoutEffectDuration(finishedWork))
: commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
));
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -12054,12 +11953,13 @@ __DEV__ &&
}
break;
case 3:
hoistableRoot = pushNestedEffectDurations();
supportsResources
? (prepareToCommitHoistables(),
(hoistableRoot = currentHoistableRoot),
(props = currentHoistableRoot),
(currentHoistableRoot = getHoistableRoot(root.containerInfo)),
recursivelyTraverseMutationEffects(root, finishedWork),
(currentHoistableRoot = hoistableRoot))
(currentHoistableRoot = props))
: recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
if (flags & 4) {
@@ -12103,6 +12003,7 @@ __DEV__ &&
}
needsFormReset &&
((needsFormReset = !1), recursivelyResetForms(finishedWork));
root.effectDuration += popNestedEffectDurations(hoistableRoot);
break;
case 4:
supportsResources
@@ -12123,6 +12024,13 @@ __DEV__ &&
finishedWork.stateNode.pendingChildren
);
break;
case 12:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.stateNode.effectDuration +=
bubbleNestedEffectDurations(flags);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -12341,23 +12249,11 @@ __DEV__ &&
case 11:
case 14:
case 15:
if ((finishedWork.mode & 2) !== NoMode)
try {
startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
} finally {
recordLayoutEffectDuration(finishedWork);
}
else
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
);
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
@@ -12461,14 +12357,16 @@ __DEV__ &&
safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4) {
includeWorkInProgressEffects =
finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
includeWorkInProgressEffects = finishedWork.stateNode;
includeWorkInProgressEffects.effectDuration +=
bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -12476,7 +12374,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
includeWorkInProgressEffects
includeWorkInProgressEffects.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -12485,21 +12383,12 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
case 12:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -12655,6 +12544,7 @@ __DEV__ &&
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -12722,37 +12612,33 @@ __DEV__ &&
clearTransitionsForLanes(finishedRoot, committedLanes);
}
}
finishedRoot.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
if (flags & 2048)
a: for (
finishedRoot = finishedWork.stateNode.passiveEffectDuration,
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot
),
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
case 12:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
}
finishedWork = finishedWork.return;
}
flags & 2048
? ((prevEffectDuration = pushNestedEffectDurations()),
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
(finishedRoot = finishedWork.stateNode),
(finishedRoot.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration)),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -12769,9 +12655,9 @@ __DEV__ &&
);
break;
case 22:
nextCache = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState
? nextCache._visibility & 4
? prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -12782,14 +12668,14 @@ __DEV__ &&
finishedRoot,
finishedWork
)
: nextCache._visibility & 4
: prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((nextCache._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -12801,7 +12687,7 @@ __DEV__ &&
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
nextCache
prevEffectDuration
);
break;
case 24:
@@ -13096,12 +12982,24 @@ __DEV__ &&
Passive | HasEffect
);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
break;
case 22:
var instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
instance._visibility & 4 &&
prevEffectDuration._visibility & 4 &&
(null === finishedWork.return || 13 !== finishedWork.return.tag)
? ((instance._visibility &= -5),
? ((prevEffectDuration._visibility &= -5),
recursivelyTraverseDisconnectPassiveEffects(finishedWork))
: recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
@@ -15828,7 +15726,7 @@ __DEV__ &&
tag++
)
containerInfo.push(null);
this.passiveEffectDuration = this.effectDuration = 0;
this.passiveEffectDuration = this.effectDuration = -0;
this.memoizedUpdaters = new Set();
containerInfo = this.pendingUpdatersLaneMap = [];
for (tag = 0; 31 > tag; tag++) containerInfo.push(new Set());
@@ -17846,10 +17744,9 @@ __DEV__ &&
return unstable_useContextWithBailout(context, select);
};
var now = Scheduler.unstable_now,
commitTime = 0,
layoutEffectStartTime = -1,
profilerStartTime = -1,
passiveEffectStartTime = -1,
commitTime = -0,
profilerStartTime = -1.1,
profilerEffectDuration = -0,
currentUpdateIsNested = !1,
nestedUpdateScheduled = !1,
fakeInternalInstance = {};
@@ -18709,7 +18606,7 @@ __DEV__ &&
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7408,7 +7408,7 @@ module.exports = function ($$$config) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor
nearestMountedAncestor$jscomp$0
) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -7420,9 +7420,20 @@ module.exports = function ($$$config) {
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((inst.destroy = void 0),
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy));
if (void 0 !== destroy) {
inst.destroy = void 0;
lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -7504,11 +7515,25 @@ module.exports = function ($$$config) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
function commitProfilerPostCommit(
finishedWork,
current,
commitTime,
passiveEffectDuration
) {
try {
destroy();
var _finishedWork$memoize2 = finishedWork.memoizedProps,
id = _finishedWork$memoize2.id,
onPostCommit = _finishedWork$memoize2.onPostCommit;
"function" === typeof onPostCommit &&
onPostCommit(
id,
null === current ? "mount" : "update",
passiveEffectDuration,
commitTime
);
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostMount(finishedWork) {
@@ -7804,23 +7829,6 @@ module.exports = function ($$$config) {
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -8215,67 +8223,11 @@ module.exports = function ($$$config) {
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do {
var tag = prevHostParentIsContainer.tag,
inst = prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
(0 !== (tag & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: offscreenSubtreeWasHidden ||
0 === (tag & 4) ||
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)));
prevHostParentIsContainer = prevHostParentIsContainer.next;
} while (prevHostParentIsContainer !== prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do
(tag = prevHostParentIsContainer.tag),
(inst = prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
(0 !== (tag & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: 0 !== (tag & 4) &&
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))),
(prevHostParentIsContainer = prevHostParentIsContainer.next);
while (prevHostParentIsContainer !== prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -8334,15 +8286,15 @@ module.exports = function ($$$config) {
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (supportsHydration && null === finishedWork.memoizedState) {
var current$170 = finishedWork.alternate;
var current$163 = finishedWork.alternate;
if (
null !== current$170 &&
((current$170 = current$170.memoizedState),
null !== current$170 &&
((current$170 = current$170.dehydrated), null !== current$170))
null !== current$163 &&
((current$163 = current$163.memoizedState),
null !== current$163 &&
((current$163 = current$163.dehydrated), null !== current$163))
) {
try {
commitHydratedSuspenseInstance(current$170);
commitHydratedSuspenseInstance(current$163);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
@@ -8350,7 +8302,7 @@ module.exports = function ($$$config) {
var hydrationCallbacks = finishedRoot.hydrationCallbacks;
if (null !== hydrationCallbacks) {
var onHydrated = hydrationCallbacks.onHydrated;
onHydrated && onHydrated(current$170);
onHydrated && onHydrated(current$163);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
@@ -8648,6 +8600,10 @@ module.exports = function ($$$config) {
finishedWork.stateNode.pendingChildren
);
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -8930,7 +8886,7 @@ module.exports = function ($$$config) {
includeWorkInProgressEffects =
includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);
for (parentFiber = parentFiber.child; null !== parentFiber; ) {
var current$176 = parentFiber.alternate,
var current$169 = parentFiber.alternate,
finishedRoot = finishedRoot$jscomp$0,
finishedWork = parentFiber,
flags = finishedWork.flags;
@@ -8951,18 +8907,18 @@ module.exports = function ($$$config) {
finishedWork,
includeWorkInProgressEffects
);
current$176 = finishedWork;
finishedRoot = current$176.stateNode;
current$169 = finishedWork;
finishedRoot = current$169.stateNode;
if ("function" === typeof finishedRoot.componentDidMount)
try {
finishedRoot.componentDidMount();
} catch (error) {
captureCommitPhaseError(current$176, current$176.return, error);
captureCommitPhaseError(current$169, current$169.return, error);
}
current$176 = finishedWork;
finishedRoot = current$176.updateQueue;
current$169 = finishedWork;
finishedRoot = current$169.updateQueue;
if (null !== finishedRoot) {
var instance = current$176.stateNode;
var instance = current$169.stateNode;
try {
var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;
if (null !== hiddenCallbacks)
@@ -8973,7 +8929,7 @@ module.exports = function ($$$config) {
)
callCallback(hiddenCallbacks[finishedRoot], instance);
} catch (error) {
captureCommitPhaseError(current$176, current$176.return, error);
captureCommitPhaseError(current$169, current$169.return, error);
}
}
includeWorkInProgressEffects &&
@@ -8990,7 +8946,7 @@ module.exports = function ($$$config) {
includeWorkInProgressEffects
);
includeWorkInProgressEffects &&
null === current$176 &&
null === current$169 &&
flags & 4 &&
commitHostMount(finishedWork);
safelyAttachRef(finishedWork, finishedWork.return);
@@ -9001,23 +8957,6 @@ module.exports = function ($$$config) {
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -9219,12 +9158,25 @@ module.exports = function ($$$config) {
}
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
flags & 2048
? (recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
-0,
finishedWork.stateNode.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -9359,9 +9311,9 @@ module.exports = function ($$$config) {
);
break;
case 22:
var instance$182 = finishedWork.stateNode;
var instance$175 = finishedWork.stateNode;
null !== finishedWork.memoizedState
? instance$182._visibility & 4
? instance$175._visibility & 4
? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -9374,7 +9326,7 @@ module.exports = function ($$$config) {
finishedRoot,
finishedWork
)
: ((instance$182._visibility |= 4),
: ((instance$175._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -9382,7 +9334,7 @@ module.exports = function ($$$config) {
committedTransitions,
includeWorkInProgressEffects
))
: ((instance$182._visibility |= 4),
: ((instance$175._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -9395,7 +9347,7 @@ module.exports = function ($$$config) {
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
instance$182
instance$175
);
break;
case 24:
@@ -9561,6 +9513,12 @@ module.exports = function ($$$config) {
finishedWork.flags & 2048 &&
commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
@@ -10510,8 +10468,8 @@ module.exports = function ($$$config) {
}
workLoopSync();
break;
} catch (thrownValue$196) {
handleThrow(root, thrownValue$196);
} catch (thrownValue$189) {
handleThrow(root, thrownValue$189);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -10632,8 +10590,8 @@ module.exports = function ($$$config) {
}
workLoopConcurrent();
break;
} catch (thrownValue$198) {
handleThrow(root, thrownValue$198);
} catch (thrownValue$191) {
handleThrow(root, thrownValue$191);
}
while (1);
resetContextDependencies();
@@ -12891,7 +12849,7 @@ module.exports = function ($$$config) {
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-classic-4549be0f-20240917"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7009,7 +7009,7 @@ module.exports = function ($$$config) {
function commitHookEffectListUnmount(
flags,
finishedWork,
nearestMountedAncestor
nearestMountedAncestor$jscomp$0
) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -7021,9 +7021,20 @@ module.exports = function ($$$config) {
if ((updateQueue.tag & flags) === flags) {
var inst = updateQueue.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((inst.destroy = void 0),
safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy));
if (void 0 !== destroy) {
inst.destroy = void 0;
lastEffect = finishedWork;
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
try {
destroy();
} catch (error) {
captureCommitPhaseError(
lastEffect,
nearestMountedAncestor,
error
);
}
}
}
updateQueue = updateQueue.next;
} while (updateQueue !== firstEffect);
@@ -7105,11 +7116,25 @@ module.exports = function ($$$config) {
}
else ref.current = null;
}
function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
function commitProfilerPostCommit(
finishedWork,
current,
commitTime,
passiveEffectDuration
) {
try {
destroy();
var _finishedWork$memoize2 = finishedWork.memoizedProps,
id = _finishedWork$memoize2.id,
onPostCommit = _finishedWork$memoize2.onPostCommit;
"function" === typeof onPostCommit &&
onPostCommit(
id,
null === current ? "mount" : "update",
passiveEffectDuration,
commitTime
);
} catch (error) {
captureCommitPhaseError(current, nearestMountedAncestor, error);
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
}
function commitHostMount(finishedWork) {
@@ -7405,23 +7430,6 @@ module.exports = function ($$$config) {
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -7812,67 +7820,11 @@ module.exports = function ($$$config) {
case 11:
case 14:
case 15:
if (enableHiddenSubtreeInsertionEffectCleanup) {
if (
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do {
var tag = prevHostParentIsContainer.tag,
inst = prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
(0 !== (tag & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: offscreenSubtreeWasHidden ||
0 === (tag & 4) ||
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
)));
prevHostParentIsContainer = prevHostParentIsContainer.next;
} while (prevHostParentIsContainer !== prevHostParent);
}
} else if (
!offscreenSubtreeWasHidden &&
((prevHostParent = deletedFiber.updateQueue),
null !== prevHostParent &&
((prevHostParent = prevHostParent.lastEffect),
null !== prevHostParent))
) {
prevHostParentIsContainer = prevHostParent = prevHostParent.next;
do
(tag = prevHostParentIsContainer.tag),
(inst = prevHostParentIsContainer.inst),
(destroy = inst.destroy),
void 0 !== destroy &&
(0 !== (tag & 2)
? ((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))
: 0 !== (tag & 4) &&
((inst.destroy = void 0),
safelyCallDestroy(
deletedFiber,
nearestMountedAncestor,
destroy
))),
(prevHostParentIsContainer = prevHostParentIsContainer.next);
while (prevHostParentIsContainer !== prevHostParent);
}
(!enableHiddenSubtreeInsertionEffectCleanup &&
offscreenSubtreeWasHidden) ||
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
offscreenSubtreeWasHidden ||
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -7925,15 +7877,15 @@ module.exports = function ($$$config) {
}
function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
if (supportsHydration && null === finishedWork.memoizedState) {
var current$161 = finishedWork.alternate;
var current$154 = finishedWork.alternate;
if (
null !== current$161 &&
((current$161 = current$161.memoizedState),
null !== current$161 &&
((current$161 = current$161.dehydrated), null !== current$161))
null !== current$154 &&
((current$154 = current$154.memoizedState),
null !== current$154 &&
((current$154 = current$154.dehydrated), null !== current$154))
) {
try {
commitHydratedSuspenseInstance(current$161);
commitHydratedSuspenseInstance(current$154);
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
}
@@ -7941,7 +7893,7 @@ module.exports = function ($$$config) {
var hydrationCallbacks = finishedRoot.hydrationCallbacks;
if (null !== hydrationCallbacks) {
var onHydrated = hydrationCallbacks.onHydrated;
onHydrated && onHydrated(current$161);
onHydrated && onHydrated(current$154);
}
} catch (error) {
captureCommitPhaseError(finishedWork, finishedWork.return, error);
@@ -8239,6 +8191,10 @@ module.exports = function ($$$config) {
finishedWork.stateNode.pendingChildren
);
break;
case 12:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -8517,7 +8473,7 @@ module.exports = function ($$$config) {
includeWorkInProgressEffects =
includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);
for (parentFiber = parentFiber.child; null !== parentFiber; ) {
var current$167 = parentFiber.alternate,
var current$160 = parentFiber.alternate,
finishedRoot = finishedRoot$jscomp$0,
finishedWork = parentFiber,
flags = finishedWork.flags;
@@ -8538,18 +8494,18 @@ module.exports = function ($$$config) {
finishedWork,
includeWorkInProgressEffects
);
current$167 = finishedWork;
finishedRoot = current$167.stateNode;
current$160 = finishedWork;
finishedRoot = current$160.stateNode;
if ("function" === typeof finishedRoot.componentDidMount)
try {
finishedRoot.componentDidMount();
} catch (error) {
captureCommitPhaseError(current$167, current$167.return, error);
captureCommitPhaseError(current$160, current$160.return, error);
}
current$167 = finishedWork;
finishedRoot = current$167.updateQueue;
current$160 = finishedWork;
finishedRoot = current$160.updateQueue;
if (null !== finishedRoot) {
var instance = current$167.stateNode;
var instance = current$160.stateNode;
try {
var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;
if (null !== hiddenCallbacks)
@@ -8560,7 +8516,7 @@ module.exports = function ($$$config) {
)
callCallback(hiddenCallbacks[finishedRoot], instance);
} catch (error) {
captureCommitPhaseError(current$167, current$167.return, error);
captureCommitPhaseError(current$160, current$160.return, error);
}
}
includeWorkInProgressEffects &&
@@ -8577,7 +8533,7 @@ module.exports = function ($$$config) {
includeWorkInProgressEffects
);
includeWorkInProgressEffects &&
null === current$167 &&
null === current$160 &&
flags & 4 &&
commitHostMount(finishedWork);
safelyAttachRef(finishedWork, finishedWork.return);
@@ -8588,23 +8544,6 @@ module.exports = function ($$$config) {
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4)
a: for (
flags = finishedWork.stateNode.effectDuration,
finishedWork = finishedWork.return;
null !== finishedWork;
) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -8806,12 +8745,25 @@ module.exports = function ($$$config) {
}
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
flags & 2048
? (recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
),
commitProfilerPostCommit(
finishedWork,
finishedWork.alternate,
-0,
finishedWork.stateNode.passiveEffectDuration
))
: recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
@@ -8938,9 +8890,9 @@ module.exports = function ($$$config) {
);
break;
case 22:
var instance$173 = finishedWork.stateNode;
var instance$166 = finishedWork.stateNode;
null !== finishedWork.memoizedState
? instance$173._visibility & 4
? instance$166._visibility & 4
? recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8952,7 +8904,7 @@ module.exports = function ($$$config) {
finishedRoot,
finishedWork
)
: ((instance$173._visibility |= 4),
: ((instance$166._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -8965,7 +8917,7 @@ module.exports = function ($$$config) {
commitOffscreenPassiveMountEffects(
finishedWork.alternate,
finishedWork,
instance$173
instance$166
);
break;
case 24:
@@ -9131,6 +9083,12 @@ module.exports = function ($$$config) {
finishedWork.flags & 2048 &&
commitHookEffectListUnmount(9, finishedWork, finishedWork.return);
break;
case 3:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 12:
recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
case 22:
var instance = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
@@ -10068,8 +10026,8 @@ module.exports = function ($$$config) {
}
workLoopSync();
break;
} catch (thrownValue$187) {
handleThrow(root, thrownValue$187);
} catch (thrownValue$180) {
handleThrow(root, thrownValue$180);
}
while (1);
lanes && root.shellSuspendCounter++;
@@ -10190,8 +10148,8 @@ module.exports = function ($$$config) {
}
workLoopConcurrent();
break;
} catch (thrownValue$189) {
handleThrow(root, thrownValue$189);
} catch (thrownValue$182) {
handleThrow(root, thrownValue$182);
}
while (1);
resetContextDependencies();
@@ -12384,7 +12342,7 @@ module.exports = function ($$$config) {
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13,7 +13,7 @@
"use strict";
__DEV__ &&
(function () {
function JSCompiler_object_inline_createNodeMock_1119() {
function JSCompiler_object_inline_createNodeMock_1098() {
return null;
}
function findHook(fiber, id) {
@@ -5000,6 +5000,21 @@ __DEV__ &&
markRootEntangled(root, lane);
}
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
profilerEffectDuration = 0;
return prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration = prevEffectDuration;
return elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration += prevEffectDuration;
return elapsedTime;
}
function startProfilerTimer(fiber) {
profilerStartTime = now();
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
@@ -5019,44 +5034,15 @@ __DEV__ &&
profilerStartTime = -1;
}
}
function recordLayoutEffectDuration(fiber) {
if (0 <= layoutEffectStartTime) {
var elapsedTime = now() - layoutEffectStartTime;
layoutEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber.stateNode.effectDuration += elapsedTime;
return;
case 12:
fiber.stateNode.effectDuration += elapsedTime;
return;
}
fiber = fiber.return;
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
profilerStartTime = -1;
profilerEffectDuration += elapsedTime;
}
}
function recordPassiveEffectDuration(fiber) {
if (0 <= passiveEffectStartTime) {
var elapsedTime = now() - passiveEffectStartTime;
passiveEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
case 12:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
}
fiber = fiber.return;
}
}
}
function startLayoutEffectTimer() {
layoutEffectStartTime = now();
function startEffectTimer() {
profilerStartTime = now();
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
@@ -7104,8 +7090,8 @@ __DEV__ &&
(workInProgress.flags |= 4);
workInProgress.flags |= 2048;
var stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0;
stateNode.passiveEffectDuration = 0;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
break;
case 13:
stateNode = workInProgress.memoizedState;
@@ -7498,8 +7484,8 @@ __DEV__ &&
(workInProgress.flags |= 4),
(workInProgress.flags |= 2048),
(returnFiber = workInProgress.stateNode),
(returnFiber.effectDuration = 0),
(returnFiber.passiveEffectDuration = 0),
(returnFiber.effectDuration = -0),
(returnFiber.passiveEffectDuration = -0),
reconcileChildren(
current,
workInProgress,
@@ -8627,16 +8613,35 @@ __DEV__ &&
popProvider(CacheContext, interruptedWork);
}
}
function shouldProfile$1(current) {
function shouldProfile(current) {
return 0 !== (current.mode & 2);
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(
finishedWork,
nearestMountedAncestor,
hookFlags
) {
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -8734,10 +8739,10 @@ __DEV__ &&
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(
@@ -8745,14 +8750,14 @@ __DEV__ &&
nearestMountedAncestor,
hookFlags
) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
@@ -8857,8 +8862,8 @@ __DEV__ &&
current.elementType === current.type
);
instance.state = current.memoizedState;
shouldProfile$1(current)
? (startLayoutEffectTimer(),
shouldProfile(current)
? (startEffectTimer(),
runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -8866,7 +8871,7 @@ __DEV__ &&
nearestMountedAncestor,
instance
),
recordLayoutEffectDuration(current))
recordEffectDuration())
: runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -8890,12 +8895,12 @@ __DEV__ &&
}
21 === finishedWork.tag && (instanceToUse = instance);
if ("function" === typeof ref)
if (shouldProfile$1(finishedWork))
if (shouldProfile(finishedWork))
try {
startLayoutEffectTimer(),
startEffectTimer(),
(finishedWork.refCleanup = ref(instanceToUse));
} finally {
recordLayoutEffectDuration(finishedWork);
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
@@ -8920,12 +8925,11 @@ __DEV__ &&
if (null !== ref)
if ("function" === typeof refCleanup)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(),
runWithFiberInDEV(current, refCleanup);
startEffectTimer(), runWithFiberInDEV(current, refCleanup);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, refCleanup);
} catch (error$18) {
@@ -8937,11 +8941,11 @@ __DEV__ &&
}
else if ("function" === typeof ref)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(), runWithFiberInDEV(current, ref, null);
startEffectTimer(), runWithFiberInDEV(current, ref, null);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, ref, null);
} catch (error$19) {
@@ -9182,15 +9186,15 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)),
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
@@ -9217,8 +9221,8 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -9228,7 +9232,7 @@ __DEV__ &&
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -9243,29 +9247,28 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
current = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (
flags & 64 &&
((flags = finishedWork.updateQueue), null !== flags)
) {
finishedRoot = null;
prevProps = null;
if (null !== finishedWork.child)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = getPublicInstance(
finishedWork.child.stateNode
);
prevProps = getPublicInstance(finishedWork.child.stateNode);
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
finishedRoot
prevProps
);
} catch (error$15) {
captureCommitPhaseError(
@@ -9275,6 +9278,7 @@ __DEV__ &&
);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current);
break;
case 26:
case 27:
@@ -9284,9 +9288,11 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4) {
flags = finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
finishedRoot = finishedWork.stateNode;
finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -9294,7 +9300,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
flags
finishedRoot.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -9303,19 +9309,7 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -9483,53 +9477,17 @@ __DEV__ &&
case 11:
case 14:
case 15:
_prevHostParent = deletedFiber.updateQueue;
if (
null !== _prevHostParent &&
((_prevHostParent = _prevHostParent.lastEffect),
null !== _prevHostParent)
) {
_prevHostParentIsContainer = _prevHostParent = _prevHostParent.next;
do {
var tag = _prevHostParentIsContainer.tag,
inst = _prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((isRunningInsertionEffect = !0),
(inst.destroy = void 0),
runWithFiberInDEV(
deletedFiber,
callDestroyInDEV,
deletedFiber,
nearestMountedAncestor,
destroy
),
(isRunningInsertionEffect = !1))
: offscreenSubtreeWasHidden ||
(tag & Layout) === NoFlags ||
(0 !== (deletedFiber.mode & 2)
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
runWithFiberInDEV(
deletedFiber,
callDestroyInDEV,
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
runWithFiberInDEV(
deletedFiber,
callDestroyInDEV,
deletedFiber,
nearestMountedAncestor,
destroy
))));
_prevHostParentIsContainer = _prevHostParentIsContainer.next;
} while (_prevHostParentIsContainer !== _prevHostParent);
}
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
);
offscreenSubtreeWasHidden ||
commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -9672,19 +9630,11 @@ __DEV__ &&
finishedWork.return
),
commitHookEffectListMount(Insertion | HasEffect, finishedWork),
0 !== (finishedWork.mode & 2)
? (startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
),
recordLayoutEffectDuration(finishedWork))
: commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
));
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -9790,13 +9740,22 @@ __DEV__ &&
}
break;
case 3:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
root.effectDuration += popNestedEffectDurations(flags);
break;
case 4:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 12:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.stateNode.effectDuration +=
bubbleNestedEffectDurations(flags);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -9996,23 +9955,11 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (0 !== (finishedWork.mode & 2))
try {
startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
} finally {
recordLayoutEffectDuration(finishedWork);
}
else
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
);
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
@@ -10110,42 +10057,38 @@ __DEV__ &&
safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4) {
includeWorkInProgressEffects =
finishedWork.stateNode.effectDuration;
flags = finishedWork;
flags = pushNestedEffectDurations();
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
includeWorkInProgressEffects = finishedWork.stateNode;
includeWorkInProgressEffects.effectDuration +=
bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
flags,
finishedWork,
commitProfiler,
flags,
finishedWork,
current,
commitTime,
includeWorkInProgressEffects
includeWorkInProgressEffects.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(flags, flags.return, error$20);
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
case 12:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -10232,6 +10175,7 @@ __DEV__ &&
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -10239,23 +10183,28 @@ __DEV__ &&
committedTransitions
);
flags & 2048 &&
((finishedRoot = null),
((committedLanes = null),
null !== finishedWork.alternate &&
(finishedRoot = finishedWork.alternate.memoizedState.cache),
(committedLanes = finishedWork.alternate.memoizedState.cache),
(finishedWork = finishedWork.memoizedState.cache),
finishedWork !== finishedRoot &&
finishedWork !== committedLanes &&
(retainCache(finishedWork),
null != finishedRoot && releaseCache(finishedRoot)));
null != committedLanes && releaseCache(committedLanes)));
finishedRoot.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
if (flags & 2048) {
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
finishedRoot = finishedWork.stateNode;
finishedRoot.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
try {
runWithFiberInDEV(
finishedWork,
@@ -10263,7 +10212,7 @@ __DEV__ &&
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot
finishedRoot.passiveEffectDuration
);
} catch (error$21) {
captureCommitPhaseError(
@@ -10272,26 +10221,20 @@ __DEV__ &&
error$21
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
case 12:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
break;
case 22:
var _instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState
? _instance._visibility & 4
? prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -10302,14 +10245,14 @@ __DEV__ &&
finishedRoot,
finishedWork
)
: _instance._visibility & 4
: prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((_instance._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -10554,12 +10497,24 @@ __DEV__ &&
Passive | HasEffect
);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
break;
case 22:
var instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
instance._visibility & 4 &&
prevEffectDuration._visibility & 4 &&
(null === finishedWork.return || 13 !== finishedWork.return.tag)
? ((instance._visibility &= -5),
? ((prevEffectDuration._visibility &= -5),
recursivelyTraverseDisconnectPassiveEffects(finishedWork))
: recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
@@ -12641,7 +12596,7 @@ __DEV__ &&
this.hydrationCallbacks = null;
this.formState = formState;
this.incompleteTransitions = new Map();
this.passiveEffectDuration = this.effectDuration = 0;
this.passiveEffectDuration = this.effectDuration = -0;
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
}
function testStringCoercion(value) {
@@ -14541,10 +14496,9 @@ __DEV__ &&
return rerenderOptimistic(passthrough, reducer);
};
var now = Scheduler$1.unstable_now,
commitTime = 0,
layoutEffectStartTime = -1,
profilerStartTime = -1,
passiveEffectStartTime = -1,
commitTime = -0,
profilerStartTime = -1.1,
profilerEffectDuration = -0,
currentUpdateIsNested = !1,
nestedUpdateScheduled = !1,
fakeInternalInstance = {};
@@ -15020,11 +14974,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-7b56a542-20240917",
version: "19.0.0-www-classic-4549be0f-20240917",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-classic-4549be0f-20240917"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15044,7 +14998,7 @@ __DEV__ &&
exports._Scheduler = Scheduler;
exports.act = act;
exports.create = function (element, options) {
var createNodeMock = JSCompiler_object_inline_createNodeMock_1119,
var createNodeMock = JSCompiler_object_inline_createNodeMock_1098,
isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT,
isConcurrent = isConcurrentOnly,
isStrictMode = !1;
@@ -15159,5 +15113,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.0.0-www-classic-7b56a542-20240917";
exports.version = "19.0.0-www-classic-4549be0f-20240917";
})();
@@ -13,7 +13,7 @@
"use strict";
__DEV__ &&
(function () {
function JSCompiler_object_inline_createNodeMock_1119() {
function JSCompiler_object_inline_createNodeMock_1098() {
return null;
}
function findHook(fiber, id) {
@@ -5000,6 +5000,21 @@ __DEV__ &&
markRootEntangled(root, lane);
}
}
function pushNestedEffectDurations() {
var prevEffectDuration = profilerEffectDuration;
profilerEffectDuration = 0;
return prevEffectDuration;
}
function popNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration = prevEffectDuration;
return elapsedTime;
}
function bubbleNestedEffectDurations(prevEffectDuration) {
var elapsedTime = profilerEffectDuration;
profilerEffectDuration += prevEffectDuration;
return elapsedTime;
}
function startProfilerTimer(fiber) {
profilerStartTime = now();
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
@@ -5019,44 +5034,15 @@ __DEV__ &&
profilerStartTime = -1;
}
}
function recordLayoutEffectDuration(fiber) {
if (0 <= layoutEffectStartTime) {
var elapsedTime = now() - layoutEffectStartTime;
layoutEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber.stateNode.effectDuration += elapsedTime;
return;
case 12:
fiber.stateNode.effectDuration += elapsedTime;
return;
}
fiber = fiber.return;
}
function recordEffectDuration() {
if (0 <= profilerStartTime) {
var elapsedTime = now() - profilerStartTime;
profilerStartTime = -1;
profilerEffectDuration += elapsedTime;
}
}
function recordPassiveEffectDuration(fiber) {
if (0 <= passiveEffectStartTime) {
var elapsedTime = now() - passiveEffectStartTime;
passiveEffectStartTime = -1;
for (fiber = fiber.return; null !== fiber; ) {
switch (fiber.tag) {
case 3:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
case 12:
fiber = fiber.stateNode;
null !== fiber && (fiber.passiveEffectDuration += elapsedTime);
return;
}
fiber = fiber.return;
}
}
}
function startLayoutEffectTimer() {
layoutEffectStartTime = now();
function startEffectTimer() {
profilerStartTime = now();
}
function transferActualDuration(fiber) {
for (var child = fiber.child; child; )
@@ -7104,8 +7090,8 @@ __DEV__ &&
(workInProgress.flags |= 4);
workInProgress.flags |= 2048;
var stateNode = workInProgress.stateNode;
stateNode.effectDuration = 0;
stateNode.passiveEffectDuration = 0;
stateNode.effectDuration = -0;
stateNode.passiveEffectDuration = -0;
break;
case 13:
stateNode = workInProgress.memoizedState;
@@ -7498,8 +7484,8 @@ __DEV__ &&
(workInProgress.flags |= 4),
(workInProgress.flags |= 2048),
(returnFiber = workInProgress.stateNode),
(returnFiber.effectDuration = 0),
(returnFiber.passiveEffectDuration = 0),
(returnFiber.effectDuration = -0),
(returnFiber.passiveEffectDuration = -0),
reconcileChildren(
current,
workInProgress,
@@ -8627,16 +8613,35 @@ __DEV__ &&
popProvider(CacheContext, interruptedWork);
}
}
function shouldProfile$1(current) {
function shouldProfile(current) {
return 0 !== (current.mode & 2);
}
function commitHookLayoutEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookLayoutUnmountEffects(
finishedWork,
nearestMountedAncestor,
hookFlags
) {
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
);
}
function commitHookEffectListMount(flags, finishedWork) {
try {
var updateQueue = finishedWork.updateQueue,
@@ -8734,10 +8739,10 @@ __DEV__ &&
}
}
function commitHookPassiveMountEffects(finishedWork, hookFlags) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListMount(hookFlags, finishedWork),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListMount(hookFlags, finishedWork);
}
function commitHookPassiveUnmountEffects(
@@ -8745,14 +8750,14 @@ __DEV__ &&
nearestMountedAncestor,
hookFlags
) {
shouldProfile$1(finishedWork)
? ((passiveEffectStartTime = now()),
shouldProfile(finishedWork)
? (startEffectTimer(),
commitHookEffectListUnmount(
hookFlags,
finishedWork,
nearestMountedAncestor
),
recordPassiveEffectDuration(finishedWork))
recordEffectDuration())
: commitHookEffectListUnmount(
hookFlags,
finishedWork,
@@ -8857,8 +8862,8 @@ __DEV__ &&
current.elementType === current.type
);
instance.state = current.memoizedState;
shouldProfile$1(current)
? (startLayoutEffectTimer(),
shouldProfile(current)
? (startEffectTimer(),
runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -8866,7 +8871,7 @@ __DEV__ &&
nearestMountedAncestor,
instance
),
recordLayoutEffectDuration(current))
recordEffectDuration())
: runWithFiberInDEV(
current,
callComponentWillUnmountInDEV,
@@ -8890,12 +8895,12 @@ __DEV__ &&
}
21 === finishedWork.tag && (instanceToUse = instance);
if ("function" === typeof ref)
if (shouldProfile$1(finishedWork))
if (shouldProfile(finishedWork))
try {
startLayoutEffectTimer(),
startEffectTimer(),
(finishedWork.refCleanup = ref(instanceToUse));
} finally {
recordLayoutEffectDuration(finishedWork);
recordEffectDuration();
}
else finishedWork.refCleanup = ref(instanceToUse);
else
@@ -8920,12 +8925,11 @@ __DEV__ &&
if (null !== ref)
if ("function" === typeof refCleanup)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(),
runWithFiberInDEV(current, refCleanup);
startEffectTimer(), runWithFiberInDEV(current, refCleanup);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, refCleanup);
} catch (error$18) {
@@ -8937,11 +8941,11 @@ __DEV__ &&
}
else if ("function" === typeof ref)
try {
if (shouldProfile$1(current))
if (shouldProfile(current))
try {
startLayoutEffectTimer(), runWithFiberInDEV(current, ref, null);
startEffectTimer(), runWithFiberInDEV(current, ref, null);
} finally {
recordLayoutEffectDuration(current);
recordEffectDuration(current);
}
else runWithFiberInDEV(current, ref, null);
} catch (error$19) {
@@ -9182,15 +9186,15 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
)),
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
finishedWork,
finishedRoot
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidMountInDEV,
@@ -9217,8 +9221,8 @@ __DEV__ &&
"Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
getComponentNameFromFiber(finishedWork) || "instance"
));
shouldProfile$1(finishedWork)
? (startLayoutEffectTimer(),
shouldProfile(finishedWork)
? (startEffectTimer(),
runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -9228,7 +9232,7 @@ __DEV__ &&
current,
finishedRoot.__reactInternalSnapshotBeforeUpdate
),
recordLayoutEffectDuration(finishedWork))
recordEffectDuration())
: runWithFiberInDEV(
finishedWork,
callComponentDidUpdateInDEV,
@@ -9243,29 +9247,28 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 3:
current = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (
flags & 64 &&
((flags = finishedWork.updateQueue), null !== flags)
) {
finishedRoot = null;
prevProps = null;
if (null !== finishedWork.child)
switch (finishedWork.child.tag) {
case 27:
case 5:
finishedRoot = getPublicInstance(
finishedWork.child.stateNode
);
prevProps = getPublicInstance(finishedWork.child.stateNode);
break;
case 1:
finishedRoot = finishedWork.child.stateNode;
prevProps = finishedWork.child.stateNode;
}
try {
runWithFiberInDEV(
finishedWork,
commitCallbacks,
flags,
finishedRoot
prevProps
);
} catch (error$15) {
captureCommitPhaseError(
@@ -9275,6 +9278,7 @@ __DEV__ &&
);
}
}
finishedRoot.effectDuration += popNestedEffectDurations(current);
break;
case 26:
case 27:
@@ -9284,9 +9288,11 @@ __DEV__ &&
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
if (flags & 4) {
flags = finishedWork.stateNode.effectDuration;
flags = pushNestedEffectDurations();
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
finishedRoot = finishedWork.stateNode;
finishedRoot.effectDuration += bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
finishedWork,
@@ -9294,7 +9300,7 @@ __DEV__ &&
finishedWork,
current,
commitTime,
flags
finishedRoot.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(
@@ -9303,19 +9309,7 @@ __DEV__ &&
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration += flags;
break a;
case 12:
finishedWork.stateNode.effectDuration += flags;
break a;
}
finishedWork = finishedWork.return;
}
}
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
break;
case 13:
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
@@ -9483,53 +9477,17 @@ __DEV__ &&
case 11:
case 14:
case 15:
_prevHostParent = deletedFiber.updateQueue;
if (
null !== _prevHostParent &&
((_prevHostParent = _prevHostParent.lastEffect),
null !== _prevHostParent)
) {
_prevHostParentIsContainer = _prevHostParent = _prevHostParent.next;
do {
var tag = _prevHostParentIsContainer.tag,
inst = _prevHostParentIsContainer.inst,
destroy = inst.destroy;
void 0 !== destroy &&
((tag & Insertion) !== NoFlags
? ((isRunningInsertionEffect = !0),
(inst.destroy = void 0),
runWithFiberInDEV(
deletedFiber,
callDestroyInDEV,
deletedFiber,
nearestMountedAncestor,
destroy
),
(isRunningInsertionEffect = !1))
: offscreenSubtreeWasHidden ||
(tag & Layout) === NoFlags ||
(0 !== (deletedFiber.mode & 2)
? (startLayoutEffectTimer(),
(inst.destroy = void 0),
runWithFiberInDEV(
deletedFiber,
callDestroyInDEV,
deletedFiber,
nearestMountedAncestor,
destroy
),
recordLayoutEffectDuration(deletedFiber))
: ((inst.destroy = void 0),
runWithFiberInDEV(
deletedFiber,
callDestroyInDEV,
deletedFiber,
nearestMountedAncestor,
destroy
))));
_prevHostParentIsContainer = _prevHostParentIsContainer.next;
} while (_prevHostParentIsContainer !== _prevHostParent);
}
commitHookEffectListUnmount(
Insertion,
deletedFiber,
nearestMountedAncestor
);
offscreenSubtreeWasHidden ||
commitHookLayoutUnmountEffects(
deletedFiber,
nearestMountedAncestor,
Layout
);
recursivelyTraverseDeletionEffects(
finishedRoot,
nearestMountedAncestor,
@@ -9672,19 +9630,11 @@ __DEV__ &&
finishedWork.return
),
commitHookEffectListMount(Insertion | HasEffect, finishedWork),
0 !== (finishedWork.mode & 2)
? (startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
),
recordLayoutEffectDuration(finishedWork))
: commitHookEffectListUnmount(
Layout | HasEffect,
finishedWork,
finishedWork.return
));
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout | HasEffect
));
break;
case 1:
recursivelyTraverseMutationEffects(root, finishedWork);
@@ -9790,13 +9740,22 @@ __DEV__ &&
}
break;
case 3:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
root.effectDuration += popNestedEffectDurations(flags);
break;
case 4:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
break;
case 12:
flags = pushNestedEffectDurations();
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
finishedWork.stateNode.effectDuration +=
bubbleNestedEffectDurations(flags);
break;
case 13:
recursivelyTraverseMutationEffects(root, finishedWork);
commitReconciliationEffects(finishedWork);
@@ -9996,23 +9955,11 @@ __DEV__ &&
case 11:
case 14:
case 15:
if (0 !== (finishedWork.mode & 2))
try {
startLayoutEffectTimer(),
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
} finally {
recordLayoutEffectDuration(finishedWork);
}
else
commitHookEffectListUnmount(
Layout,
finishedWork,
finishedWork.return
);
commitHookLayoutUnmountEffects(
finishedWork,
finishedWork.return,
Layout
);
recursivelyTraverseDisappearLayoutEffects(finishedWork);
break;
case 1:
@@ -10110,42 +10057,38 @@ __DEV__ &&
safelyAttachRef(finishedWork, finishedWork.return);
break;
case 12:
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
if (includeWorkInProgressEffects && flags & 4) {
includeWorkInProgressEffects =
finishedWork.stateNode.effectDuration;
flags = finishedWork;
flags = pushNestedEffectDurations();
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
includeWorkInProgressEffects = finishedWork.stateNode;
includeWorkInProgressEffects.effectDuration +=
bubbleNestedEffectDurations(flags);
try {
runWithFiberInDEV(
flags,
finishedWork,
commitProfiler,
flags,
finishedWork,
current,
commitTime,
includeWorkInProgressEffects
includeWorkInProgressEffects.effectDuration
);
} catch (error$20) {
captureCommitPhaseError(flags, flags.return, error$20);
captureCommitPhaseError(
finishedWork,
finishedWork.return,
error$20
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
case 12:
finishedWork.stateNode.effectDuration +=
includeWorkInProgressEffects;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraverseReappearLayoutEffects(
finishedRoot,
finishedWork,
includeWorkInProgressEffects
);
break;
case 13:
recursivelyTraverseReappearLayoutEffects(
@@ -10232,6 +10175,7 @@ __DEV__ &&
commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -10239,23 +10183,28 @@ __DEV__ &&
committedTransitions
);
flags & 2048 &&
((finishedRoot = null),
((committedLanes = null),
null !== finishedWork.alternate &&
(finishedRoot = finishedWork.alternate.memoizedState.cache),
(committedLanes = finishedWork.alternate.memoizedState.cache),
(finishedWork = finishedWork.memoizedState.cache),
finishedWork !== finishedRoot &&
finishedWork !== committedLanes &&
(retainCache(finishedWork),
null != finishedRoot && releaseCache(finishedRoot)));
null != committedLanes && releaseCache(committedLanes)));
finishedRoot.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
if (flags & 2048) {
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
finishedRoot = finishedWork.stateNode;
finishedRoot.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
try {
runWithFiberInDEV(
finishedWork,
@@ -10263,7 +10212,7 @@ __DEV__ &&
finishedWork,
finishedWork.alternate,
commitTime,
finishedRoot
finishedRoot.passiveEffectDuration
);
} catch (error$21) {
captureCommitPhaseError(
@@ -10272,26 +10221,20 @@ __DEV__ &&
error$21
);
}
finishedWork = finishedWork.return;
a: for (; null !== finishedWork; ) {
switch (finishedWork.tag) {
case 3:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
case 12:
finishedWork.stateNode.passiveEffectDuration += finishedRoot;
break a;
}
finishedWork = finishedWork.return;
}
}
} else
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
break;
case 22:
var _instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState
? _instance._visibility & 4
? prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
@@ -10302,14 +10245,14 @@ __DEV__ &&
finishedRoot,
finishedWork
)
: _instance._visibility & 4
: prevEffectDuration._visibility & 4
? recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
)
: ((_instance._visibility |= 4),
: ((prevEffectDuration._visibility |= 4),
recursivelyTraverseReconnectPassiveEffects(
finishedRoot,
finishedWork,
@@ -10554,12 +10497,24 @@ __DEV__ &&
Passive | HasEffect
);
break;
case 3:
var prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
popNestedEffectDurations(prevEffectDuration);
break;
case 12:
prevEffectDuration = pushNestedEffectDurations();
recursivelyTraversePassiveUnmountEffects(finishedWork);
finishedWork.stateNode.passiveEffectDuration +=
bubbleNestedEffectDurations(prevEffectDuration);
break;
case 22:
var instance = finishedWork.stateNode;
prevEffectDuration = finishedWork.stateNode;
null !== finishedWork.memoizedState &&
instance._visibility & 4 &&
prevEffectDuration._visibility & 4 &&
(null === finishedWork.return || 13 !== finishedWork.return.tag)
? ((instance._visibility &= -5),
? ((prevEffectDuration._visibility &= -5),
recursivelyTraverseDisconnectPassiveEffects(finishedWork))
: recursivelyTraversePassiveUnmountEffects(finishedWork);
break;
@@ -12641,7 +12596,7 @@ __DEV__ &&
this.hydrationCallbacks = null;
this.formState = formState;
this.incompleteTransitions = new Map();
this.passiveEffectDuration = this.effectDuration = 0;
this.passiveEffectDuration = this.effectDuration = -0;
this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()";
}
function testStringCoercion(value) {
@@ -14541,10 +14496,9 @@ __DEV__ &&
return rerenderOptimistic(passthrough, reducer);
};
var now = Scheduler$1.unstable_now,
commitTime = 0,
layoutEffectStartTime = -1,
profilerStartTime = -1,
passiveEffectStartTime = -1,
commitTime = -0,
profilerStartTime = -1.1,
profilerEffectDuration = -0,
currentUpdateIsNested = !1,
nestedUpdateScheduled = !1,
fakeInternalInstance = {};
@@ -15020,11 +14974,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-7b56a542-20240917",
version: "19.0.0-www-modern-4549be0f-20240917",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-7b56a542-20240917"
reconcilerVersion: "19.0.0-www-modern-4549be0f-20240917"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15044,7 +14998,7 @@ __DEV__ &&
exports._Scheduler = Scheduler;
exports.act = act;
exports.create = function (element, options) {
var createNodeMock = JSCompiler_object_inline_createNodeMock_1119,
var createNodeMock = JSCompiler_object_inline_createNodeMock_1098,
isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT,
isConcurrent = isConcurrentOnly,
isStrictMode = !1;
@@ -15159,5 +15113,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.0.0-www-modern-7b56a542-20240917";
exports.version = "19.0.0-www-modern-4549be0f-20240917";
})();
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-classic-7b56a542-20240917
19.0.0-www-classic-4549be0f-20240917
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-modern-7b56a542-20240917
19.0.0-www-modern-4549be0f-20240917