mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fiber] Log Component Renders to Custom Performance Track (#30967)
Stacked on #30960 and #30966. Behind the enableComponentPerformanceTrack
flag.
This is the first step of performance logging. This logs the start and
end time of a component render in the passive effect phase. We use the
data we're already tracking on components when the Profiler component or
DevTools is active in the Profiling or Dev builds. By backdating this
after committing we avoid adding more overhead in the hot path. By only
logging things that actually committed, we avoid the costly unwinding of
an interrupted render which was hard to maintain in earlier versions.
We already have the start time but we don't have the end time. That's
because `actualStartTime + actualDuration` isn't enough since
`actualDuration` counts the actual CPU time excluding yields and
suspending in the render.
Instead, we infer the end time to be the start time of the next sibling
or the complete time of the whole root if there are no more siblings. We
need to pass this down the passive effect tree. This will mean that any
overhead and yields are attributed to this component's span. In a follow
up, we'll need to start logging these yields to make it clear that this
is not part of the component's self-time.
In follow ups, I'll do the same for commit phases. We'll also need to
log more information about the phases in the top track. We'll also need
to filter out more components from the trees that we don't need to
highlight like the internal Offscreen components. It also needs polish
on colors etc.
Currently, I place the components into separate tracks depending on
which lane currently committed. That way you can see what was blocking
Transitions or Suspense etc. One problem that I've hit with the new
performance.measure extensions is that these tracks show up in the order
they're used which is not the order of priority that we use. Even when
you add fake markers they have to actually be within the performance run
since otherwise the calls are noops so it's not enough to do that once.
However, I think this visualization is actually not good because these
trees end up so large that you can't see any other lanes once you expand
one. Therefore, I think in a follow up I'll actually instead switch to a
model where Components is a single track regardless of lane since we
don't currently have overlap anyway. Then the description about what is
actually rendering can be separate lanes.
<img width="1512" alt="Screenshot 2024-09-15 at 10 55 55 PM"
src="https://github.com/user-attachments/assets/5ca3fa74-97ce-40c7-97f7-80c1dd7d6470">
<img width="1512" alt="Screenshot 2024-09-15 at 10 56 27 PM"
src="https://github.com/user-attachments/assets/557ad65b-4190-465f-843c-0bc6cbb9326d">
DiffTrain build for [f2df5694f2](https://github.com/facebook/react/commit/f2df5694f2be141954f22618fd3ad035203241a3)
This commit is contained in:
@@ -1 +1 @@
|
||||
0eab377a96099f0121009c8968c49d13d4e00bd1
|
||||
f2df5694f2be141954f22618fd3ad035203241a3
|
||||
|
||||
@@ -1 +1 @@
|
||||
0eab377a96099f0121009c8968c49d13d4e00bd1
|
||||
f2df5694f2be141954f22618fd3ad035203241a3
|
||||
|
||||
@@ -2001,7 +2001,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -1981,7 +1981,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
|
||||
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
|
||||
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
"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-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -7864,6 +7864,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
0 !== (renderLanes & workInProgress.childLanes) &&
|
||||
(workInProgress.flags |= 4);
|
||||
workInProgress.flags |= 2048;
|
||||
var stateNode = workInProgress.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
@@ -8286,6 +8287,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
return (
|
||||
(workInProgress.flags |= 4),
|
||||
(workInProgress.flags |= 2048),
|
||||
(returnFiber = workInProgress.stateNode),
|
||||
(returnFiber.effectDuration = 0),
|
||||
(returnFiber.passiveEffectDuration = 0),
|
||||
@@ -10044,13 +10046,14 @@ __DEV__ &&
|
||||
}
|
||||
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onCommit = _finishedWork$memoize.onCommit;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onRender;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
finishedWork.memoizedProps.id,
|
||||
id,
|
||||
current,
|
||||
finishedWork.actualDuration,
|
||||
finishedWork.treeBaseDuration,
|
||||
@@ -10085,6 +10088,44 @@ __DEV__ &&
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$20);
|
||||
}
|
||||
}
|
||||
function commitProfilerPostCommitImpl(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
var _finishedWork$memoize2 = finishedWork.memoizedProps;
|
||||
finishedWork = _finishedWork$memoize2.id;
|
||||
_finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize2 &&
|
||||
_finishedWork$memoize2(
|
||||
finishedWork,
|
||||
current,
|
||||
passiveEffectDuration,
|
||||
commitTime
|
||||
);
|
||||
}
|
||||
function commitProfilerPostCommit(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
try {
|
||||
runWithFiberInDEV(
|
||||
finishedWork,
|
||||
commitProfilerPostCommitImpl,
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
}
|
||||
}
|
||||
function commitHostMount(finishedWork) {
|
||||
var type = finishedWork.type,
|
||||
props = finishedWork.memoizedProps,
|
||||
@@ -10098,8 +10139,8 @@ __DEV__ &&
|
||||
props,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
}
|
||||
}
|
||||
function isHostParent(fiber) {
|
||||
@@ -10293,38 +10334,6 @@ __DEV__ &&
|
||||
focusedInstanceHandle = null;
|
||||
return root;
|
||||
}
|
||||
function commitPassiveEffectDurations(finishedRoot, finishedWork) {
|
||||
if (executionContext & CommitContext && 0 !== (finishedWork.flags & 4))
|
||||
switch (finishedWork.tag) {
|
||||
case 12:
|
||||
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onPostCommit;
|
||||
var commitTime$jscomp$0 = commitTime,
|
||||
phase = null === finishedWork.alternate ? "mount" : "update";
|
||||
currentUpdateIsNested && (phase = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
id,
|
||||
phase,
|
||||
finishedRoot,
|
||||
commitTime$jscomp$0
|
||||
);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
||||
var flags = finishedWork.flags;
|
||||
switch (finishedWork.tag) {
|
||||
@@ -10457,7 +10466,6 @@ __DEV__ &&
|
||||
a: for (
|
||||
flags = finishedWork.stateNode.effectDuration,
|
||||
commitProfilerUpdate(finishedWork, current, commitTime, flags),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -10772,11 +10780,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$28) {
|
||||
} catch (error$29) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$28
|
||||
error$29
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -10787,11 +10795,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$29) {
|
||||
} catch (error$30) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$29
|
||||
error$30
|
||||
);
|
||||
}
|
||||
break;
|
||||
@@ -10801,11 +10809,11 @@ __DEV__ &&
|
||||
try {
|
||||
(_prevHostParent = finishedRoot.onDeleted) &&
|
||||
_prevHostParent(deletedFiber.stateNode);
|
||||
} catch (error$30) {
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$30
|
||||
error$31
|
||||
);
|
||||
}
|
||||
null !== hostParent &&
|
||||
@@ -11151,11 +11159,11 @@ __DEV__ &&
|
||||
var instance = finishedWork.stateNode;
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, resetTextContent, instance);
|
||||
} catch (error$24) {
|
||||
} catch (error$25) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$24
|
||||
error$25
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11172,11 +11180,11 @@ __DEV__ &&
|
||||
instance,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$22) {
|
||||
} catch (error$23) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$22
|
||||
error$23
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11205,11 +11213,11 @@ __DEV__ &&
|
||||
current,
|
||||
flags
|
||||
);
|
||||
} catch (error$23) {
|
||||
} catch (error$24) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$23
|
||||
error$24
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11245,11 +11253,11 @@ __DEV__ &&
|
||||
void 0 !== suspenseCallback &&
|
||||
error$jscomp$0("Unexpected type for suspenseCallback.");
|
||||
}
|
||||
} catch (error$31) {
|
||||
} catch (error$32) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$31
|
||||
error$32
|
||||
);
|
||||
}
|
||||
flags = finishedWork.updateQueue;
|
||||
@@ -11309,11 +11317,11 @@ __DEV__ &&
|
||||
retryQueue.stateNode,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$25) {
|
||||
} catch (error$26) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$25
|
||||
error$26
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11334,11 +11342,11 @@ __DEV__ &&
|
||||
instance$jscomp$0,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$26) {
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$26
|
||||
error$27
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11399,8 +11407,8 @@ __DEV__ &&
|
||||
if (flags & 2) {
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$27);
|
||||
} catch (error$28) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$28);
|
||||
}
|
||||
finishedWork.flags &= -3;
|
||||
}
|
||||
@@ -11552,7 +11560,6 @@ __DEV__ &&
|
||||
commitTime,
|
||||
includeWorkInProgressEffects
|
||||
),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -11789,6 +11796,37 @@ __DEV__ &&
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
if (flags & 2048 && executionContext & CommitContext)
|
||||
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;
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -12754,7 +12792,7 @@ __DEV__ &&
|
||||
check = check.value;
|
||||
try {
|
||||
if (!objectIs(getSnapshot(), check)) return !1;
|
||||
} catch (error$32) {
|
||||
} catch (error$33) {
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
@@ -13091,8 +13129,8 @@ __DEV__ &&
|
||||
}
|
||||
workLoopSync();
|
||||
break;
|
||||
} catch (thrownValue$33) {
|
||||
handleThrow(root, thrownValue$33);
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
}
|
||||
while (1);
|
||||
lanes && root.shellSuspendCounter++;
|
||||
@@ -13260,8 +13298,8 @@ __DEV__ &&
|
||||
? workLoopSync()
|
||||
: workLoopConcurrent();
|
||||
break;
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
} catch (thrownValue$35) {
|
||||
handleThrow(root, thrownValue$35);
|
||||
}
|
||||
while (1);
|
||||
resetContextDependencies();
|
||||
@@ -13410,9 +13448,9 @@ __DEV__ &&
|
||||
workInProgress = null;
|
||||
return;
|
||||
}
|
||||
} catch (error$35) {
|
||||
} catch (error$36) {
|
||||
if (null !== returnFiber)
|
||||
throw ((workInProgress = returnFiber), error$35);
|
||||
throw ((workInProgress = returnFiber), error$36);
|
||||
workInProgressRootExitStatus = RootFatalErrored;
|
||||
logUncaughtError(
|
||||
root,
|
||||
@@ -13457,25 +13495,16 @@ __DEV__ &&
|
||||
}
|
||||
var current = completedWork.alternate;
|
||||
unitOfWork = completedWork.return;
|
||||
0 === (completedWork.mode & 2)
|
||||
? (current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
))
|
||||
: (startProfilerTimer(completedWork),
|
||||
(current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
)),
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(
|
||||
completedWork
|
||||
));
|
||||
startProfilerTimer(completedWork);
|
||||
current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
0 !== (completedWork.mode & 2) &&
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork);
|
||||
if (null !== current) {
|
||||
workInProgress = current;
|
||||
return;
|
||||
@@ -13752,15 +13781,6 @@ __DEV__ &&
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function enqueuePendingPassiveProfilerEffect(fiber) {
|
||||
pendingPassiveProfilerEffects.push(fiber);
|
||||
rootDoesHavePassiveEffects ||
|
||||
((rootDoesHavePassiveEffects = !0),
|
||||
scheduleCallback(NormalPriority$1, function () {
|
||||
flushPassiveEffects();
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
function flushPassiveEffectsImpl() {
|
||||
if (null === rootWithPendingPassiveEffects) return !1;
|
||||
var transitions = pendingPassiveTransitions;
|
||||
@@ -13791,10 +13811,6 @@ __DEV__ &&
|
||||
executionContext |= CommitContext;
|
||||
commitPassiveUnmountOnFiber(root.current);
|
||||
commitPassiveMountOnFiber(root, root.current, lanes, transitions);
|
||||
transitions = pendingPassiveProfilerEffects;
|
||||
pendingPassiveProfilerEffects = [];
|
||||
for (lanes = 0; lanes < transitions.length; lanes++)
|
||||
commitPassiveEffectDurations(root, transitions[lanes]);
|
||||
enableDebugTracing && enableDebugTracing && groupEnd();
|
||||
enableSchedulingProfiler &&
|
||||
enableSchedulingProfiler &&
|
||||
@@ -13842,9 +13858,9 @@ __DEV__ &&
|
||||
err
|
||||
));
|
||||
}
|
||||
root = root.current.stateNode;
|
||||
root.effectDuration = 0;
|
||||
root.passiveEffectDuration = 0;
|
||||
transitions = root.current.stateNode;
|
||||
transitions.effectDuration = 0;
|
||||
transitions.passiveEffectDuration = 0;
|
||||
return !0;
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
@@ -16885,7 +16901,6 @@ __DEV__ &&
|
||||
rootDoesHavePassiveEffects = !1,
|
||||
rootWithPendingPassiveEffects = null,
|
||||
pendingPassiveEffectsLanes = 0,
|
||||
pendingPassiveProfilerEffects = [],
|
||||
pendingPassiveEffectsRemainingLanes = 0,
|
||||
pendingPassiveTransitions = null,
|
||||
NESTED_UPDATE_LIMIT = 50,
|
||||
@@ -17121,11 +17136,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-0eab377a-20240916",
|
||||
version: "19.0.0-www-classic-f2df5694-20240916",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -17159,7 +17174,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -7565,6 +7565,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
0 !== (renderLanes & workInProgress.childLanes) &&
|
||||
(workInProgress.flags |= 4);
|
||||
workInProgress.flags |= 2048;
|
||||
var stateNode = workInProgress.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
@@ -7987,6 +7988,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
return (
|
||||
(workInProgress.flags |= 4),
|
||||
(workInProgress.flags |= 2048),
|
||||
(returnFiber = workInProgress.stateNode),
|
||||
(returnFiber.effectDuration = 0),
|
||||
(returnFiber.passiveEffectDuration = 0),
|
||||
@@ -9666,13 +9668,14 @@ __DEV__ &&
|
||||
}
|
||||
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onCommit = _finishedWork$memoize.onCommit;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onRender;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
finishedWork.memoizedProps.id,
|
||||
id,
|
||||
current,
|
||||
finishedWork.actualDuration,
|
||||
finishedWork.treeBaseDuration,
|
||||
@@ -9707,6 +9710,44 @@ __DEV__ &&
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$20);
|
||||
}
|
||||
}
|
||||
function commitProfilerPostCommitImpl(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
var _finishedWork$memoize2 = finishedWork.memoizedProps;
|
||||
finishedWork = _finishedWork$memoize2.id;
|
||||
_finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize2 &&
|
||||
_finishedWork$memoize2(
|
||||
finishedWork,
|
||||
current,
|
||||
passiveEffectDuration,
|
||||
commitTime
|
||||
);
|
||||
}
|
||||
function commitProfilerPostCommit(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
try {
|
||||
runWithFiberInDEV(
|
||||
finishedWork,
|
||||
commitProfilerPostCommitImpl,
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
}
|
||||
}
|
||||
function commitHostMount(finishedWork) {
|
||||
var type = finishedWork.type,
|
||||
props = finishedWork.memoizedProps,
|
||||
@@ -9720,8 +9761,8 @@ __DEV__ &&
|
||||
props,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
}
|
||||
}
|
||||
function isHostParent(fiber) {
|
||||
@@ -9915,38 +9956,6 @@ __DEV__ &&
|
||||
focusedInstanceHandle = null;
|
||||
return root;
|
||||
}
|
||||
function commitPassiveEffectDurations(finishedRoot, finishedWork) {
|
||||
if (executionContext & CommitContext && 0 !== (finishedWork.flags & 4))
|
||||
switch (finishedWork.tag) {
|
||||
case 12:
|
||||
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onPostCommit;
|
||||
var commitTime$jscomp$0 = commitTime,
|
||||
phase = null === finishedWork.alternate ? "mount" : "update";
|
||||
currentUpdateIsNested && (phase = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
id,
|
||||
phase,
|
||||
finishedRoot,
|
||||
commitTime$jscomp$0
|
||||
);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
||||
var flags = finishedWork.flags;
|
||||
switch (finishedWork.tag) {
|
||||
@@ -10079,7 +10088,6 @@ __DEV__ &&
|
||||
a: for (
|
||||
flags = finishedWork.stateNode.effectDuration,
|
||||
commitProfilerUpdate(finishedWork, current, commitTime, flags),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -10389,11 +10397,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$28) {
|
||||
} catch (error$29) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$28
|
||||
error$29
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -10404,11 +10412,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$29) {
|
||||
} catch (error$30) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$29
|
||||
error$30
|
||||
);
|
||||
}
|
||||
break;
|
||||
@@ -10418,11 +10426,11 @@ __DEV__ &&
|
||||
try {
|
||||
(_prevHostParent = finishedRoot.onDeleted) &&
|
||||
_prevHostParent(deletedFiber.stateNode);
|
||||
} catch (error$30) {
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$30
|
||||
error$31
|
||||
);
|
||||
}
|
||||
null !== hostParent &&
|
||||
@@ -10762,11 +10770,11 @@ __DEV__ &&
|
||||
var instance = finishedWork.stateNode;
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, resetTextContent, instance);
|
||||
} catch (error$24) {
|
||||
} catch (error$25) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$24
|
||||
error$25
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -10783,11 +10791,11 @@ __DEV__ &&
|
||||
instance,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$22) {
|
||||
} catch (error$23) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$22
|
||||
error$23
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -10816,11 +10824,11 @@ __DEV__ &&
|
||||
current,
|
||||
flags
|
||||
);
|
||||
} catch (error$23) {
|
||||
} catch (error$24) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$23
|
||||
error$24
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -10856,11 +10864,11 @@ __DEV__ &&
|
||||
void 0 !== suspenseCallback &&
|
||||
error$jscomp$0("Unexpected type for suspenseCallback.");
|
||||
}
|
||||
} catch (error$31) {
|
||||
} catch (error$32) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$31
|
||||
error$32
|
||||
);
|
||||
}
|
||||
flags = finishedWork.updateQueue;
|
||||
@@ -10917,11 +10925,11 @@ __DEV__ &&
|
||||
retryQueue.stateNode,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$25) {
|
||||
} catch (error$26) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$25
|
||||
error$26
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -10942,11 +10950,11 @@ __DEV__ &&
|
||||
instance$jscomp$0,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$26) {
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$26
|
||||
error$27
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11007,8 +11015,8 @@ __DEV__ &&
|
||||
if (flags & 2) {
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$27);
|
||||
} catch (error$28) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$28);
|
||||
}
|
||||
finishedWork.flags &= -3;
|
||||
}
|
||||
@@ -11167,7 +11175,6 @@ __DEV__ &&
|
||||
commitTime,
|
||||
includeWorkInProgressEffects
|
||||
),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -11404,6 +11411,37 @@ __DEV__ &&
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
if (flags & 2048 && executionContext & CommitContext)
|
||||
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;
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -12302,7 +12340,7 @@ __DEV__ &&
|
||||
check = check.value;
|
||||
try {
|
||||
if (!objectIs(getSnapshot(), check)) return !1;
|
||||
} catch (error$32) {
|
||||
} catch (error$33) {
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
@@ -12639,8 +12677,8 @@ __DEV__ &&
|
||||
}
|
||||
workLoopSync();
|
||||
break;
|
||||
} catch (thrownValue$33) {
|
||||
handleThrow(root, thrownValue$33);
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
}
|
||||
while (1);
|
||||
lanes && root.shellSuspendCounter++;
|
||||
@@ -12808,8 +12846,8 @@ __DEV__ &&
|
||||
? workLoopSync()
|
||||
: workLoopConcurrent();
|
||||
break;
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
} catch (thrownValue$35) {
|
||||
handleThrow(root, thrownValue$35);
|
||||
}
|
||||
while (1);
|
||||
resetContextDependencies();
|
||||
@@ -12954,9 +12992,9 @@ __DEV__ &&
|
||||
workInProgress = null;
|
||||
return;
|
||||
}
|
||||
} catch (error$35) {
|
||||
} catch (error$36) {
|
||||
if (null !== returnFiber)
|
||||
throw ((workInProgress = returnFiber), error$35);
|
||||
throw ((workInProgress = returnFiber), error$36);
|
||||
workInProgressRootExitStatus = RootFatalErrored;
|
||||
logUncaughtError(
|
||||
root,
|
||||
@@ -13001,25 +13039,16 @@ __DEV__ &&
|
||||
}
|
||||
var current = completedWork.alternate;
|
||||
unitOfWork = completedWork.return;
|
||||
0 === (completedWork.mode & 2)
|
||||
? (current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
))
|
||||
: (startProfilerTimer(completedWork),
|
||||
(current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
)),
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(
|
||||
completedWork
|
||||
));
|
||||
startProfilerTimer(completedWork);
|
||||
current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
0 !== (completedWork.mode & 2) &&
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork);
|
||||
if (null !== current) {
|
||||
workInProgress = current;
|
||||
return;
|
||||
@@ -13294,15 +13323,6 @@ __DEV__ &&
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function enqueuePendingPassiveProfilerEffect(fiber) {
|
||||
pendingPassiveProfilerEffects.push(fiber);
|
||||
rootDoesHavePassiveEffects ||
|
||||
((rootDoesHavePassiveEffects = !0),
|
||||
scheduleCallback(NormalPriority$1, function () {
|
||||
flushPassiveEffects();
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
function flushPassiveEffectsImpl() {
|
||||
if (null === rootWithPendingPassiveEffects) return !1;
|
||||
var transitions = pendingPassiveTransitions;
|
||||
@@ -13333,10 +13353,6 @@ __DEV__ &&
|
||||
executionContext |= CommitContext;
|
||||
commitPassiveUnmountOnFiber(root.current);
|
||||
commitPassiveMountOnFiber(root, root.current, lanes, transitions);
|
||||
transitions = pendingPassiveProfilerEffects;
|
||||
pendingPassiveProfilerEffects = [];
|
||||
for (lanes = 0; lanes < transitions.length; lanes++)
|
||||
commitPassiveEffectDurations(root, transitions[lanes]);
|
||||
enableDebugTracing && enableDebugTracing && groupEnd();
|
||||
enableSchedulingProfiler &&
|
||||
enableSchedulingProfiler &&
|
||||
@@ -13384,9 +13400,9 @@ __DEV__ &&
|
||||
err
|
||||
));
|
||||
}
|
||||
root = root.current.stateNode;
|
||||
root.effectDuration = 0;
|
||||
root.passiveEffectDuration = 0;
|
||||
transitions = root.current.stateNode;
|
||||
transitions.effectDuration = 0;
|
||||
transitions.passiveEffectDuration = 0;
|
||||
return !0;
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
@@ -16332,7 +16348,6 @@ __DEV__ &&
|
||||
rootDoesHavePassiveEffects = !1,
|
||||
rootWithPendingPassiveEffects = null,
|
||||
pendingPassiveEffectsLanes = 0,
|
||||
pendingPassiveProfilerEffects = [],
|
||||
pendingPassiveEffectsRemainingLanes = 0,
|
||||
pendingPassiveTransitions = null,
|
||||
NESTED_UPDATE_LIMIT = 50,
|
||||
@@ -16567,11 +16582,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-0eab377a-20240916",
|
||||
version: "19.0.0-www-modern-f2df5694-20240916",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -16605,7 +16620,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -8554,6 +8554,14 @@ function commitPassiveMountOnFiber(
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -10883,13 +10891,13 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1424 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0eab377a-20240916",
|
||||
version: "19.0.0-www-classic-f2df5694-20240916",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: function () {
|
||||
return null;
|
||||
},
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1425 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10915,4 +10923,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
|
||||
@@ -8149,6 +8149,14 @@ function commitPassiveMountOnFiber(
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -10397,13 +10405,13 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1416 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0eab377a-20240916",
|
||||
version: "19.0.0-www-modern-f2df5694-20240916",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: function () {
|
||||
return null;
|
||||
},
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1417 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10429,4 +10437,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10400,6 +10400,14 @@ function commitPassiveMountOnFiber(
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -13490,36 +13498,41 @@ function containsNode(outerNode, innerNode) {
|
||||
: !1;
|
||||
}
|
||||
function getActiveElementDeep(containerInfo) {
|
||||
var $jscomp$optchain$tmpm635974878$1, $jscomp$nullish$tmp0;
|
||||
var $jscomp$optchain$tmpm2105495837$1, $jscomp$nullish$tmp0;
|
||||
containerInfo =
|
||||
null !=
|
||||
($jscomp$nullish$tmp0 =
|
||||
null == containerInfo
|
||||
? void 0
|
||||
: null ==
|
||||
($jscomp$optchain$tmpm635974878$1 = containerInfo.ownerDocument)
|
||||
($jscomp$optchain$tmpm2105495837$1 = containerInfo.ownerDocument)
|
||||
? void 0
|
||||
: $jscomp$optchain$tmpm635974878$1.defaultView)
|
||||
: $jscomp$optchain$tmpm2105495837$1.defaultView)
|
||||
? $jscomp$nullish$tmp0
|
||||
: window;
|
||||
for (
|
||||
$jscomp$optchain$tmpm635974878$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmpm635974878$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
$jscomp$optchain$tmpm2105495837$1 = getActiveElement(
|
||||
containerInfo.document
|
||||
);
|
||||
$jscomp$optchain$tmpm2105495837$1 instanceof
|
||||
containerInfo.HTMLIFrameElement;
|
||||
|
||||
) {
|
||||
try {
|
||||
var JSCompiler_inline_result =
|
||||
"string" ===
|
||||
typeof $jscomp$optchain$tmpm635974878$1.contentWindow.location.href;
|
||||
typeof $jscomp$optchain$tmpm2105495837$1.contentWindow.location.href;
|
||||
} catch (err) {
|
||||
JSCompiler_inline_result = !1;
|
||||
}
|
||||
if (JSCompiler_inline_result)
|
||||
containerInfo = $jscomp$optchain$tmpm635974878$1.contentWindow;
|
||||
containerInfo = $jscomp$optchain$tmpm2105495837$1.contentWindow;
|
||||
else break;
|
||||
$jscomp$optchain$tmpm635974878$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmpm2105495837$1 = getActiveElement(
|
||||
containerInfo.document
|
||||
);
|
||||
}
|
||||
return $jscomp$optchain$tmpm635974878$1;
|
||||
return $jscomp$optchain$tmpm2105495837$1;
|
||||
}
|
||||
function hasSelectionCapabilities(elem) {
|
||||
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
||||
@@ -17444,14 +17457,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1768 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-0eab377a-20240916" !==
|
||||
"19.0.0-www-classic-f2df5694-20240916" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1768
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1768,
|
||||
"19.0.0-www-classic-0eab377a-20240916"
|
||||
"19.0.0-www-classic-f2df5694-20240916"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -17496,11 +17509,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2263 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0eab377a-20240916",
|
||||
version: "19.0.0-www-classic-f2df5694-20240916",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2264 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17956,4 +17969,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
|
||||
@@ -9969,6 +9969,14 @@ function commitPassiveMountOnFiber(
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -12917,36 +12925,36 @@ function containsNode(outerNode, innerNode) {
|
||||
: !1;
|
||||
}
|
||||
function getActiveElementDeep(containerInfo) {
|
||||
var $jscomp$optchain$tmp645898484$1, $jscomp$nullish$tmp0;
|
||||
var $jscomp$optchain$tmp1163653330$1, $jscomp$nullish$tmp0;
|
||||
containerInfo =
|
||||
null !=
|
||||
($jscomp$nullish$tmp0 =
|
||||
null == containerInfo
|
||||
? void 0
|
||||
: null ==
|
||||
($jscomp$optchain$tmp645898484$1 = containerInfo.ownerDocument)
|
||||
($jscomp$optchain$tmp1163653330$1 = containerInfo.ownerDocument)
|
||||
? void 0
|
||||
: $jscomp$optchain$tmp645898484$1.defaultView)
|
||||
: $jscomp$optchain$tmp1163653330$1.defaultView)
|
||||
? $jscomp$nullish$tmp0
|
||||
: window;
|
||||
for (
|
||||
$jscomp$optchain$tmp645898484$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp645898484$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
$jscomp$optchain$tmp1163653330$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1163653330$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
|
||||
) {
|
||||
try {
|
||||
var JSCompiler_inline_result =
|
||||
"string" ===
|
||||
typeof $jscomp$optchain$tmp645898484$1.contentWindow.location.href;
|
||||
typeof $jscomp$optchain$tmp1163653330$1.contentWindow.location.href;
|
||||
} catch (err) {
|
||||
JSCompiler_inline_result = !1;
|
||||
}
|
||||
if (JSCompiler_inline_result)
|
||||
containerInfo = $jscomp$optchain$tmp645898484$1.contentWindow;
|
||||
containerInfo = $jscomp$optchain$tmp1163653330$1.contentWindow;
|
||||
else break;
|
||||
$jscomp$optchain$tmp645898484$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1163653330$1 = getActiveElement(containerInfo.document);
|
||||
}
|
||||
return $jscomp$optchain$tmp645898484$1;
|
||||
return $jscomp$optchain$tmp1163653330$1;
|
||||
}
|
||||
function hasSelectionCapabilities(elem) {
|
||||
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
||||
@@ -16820,14 +16828,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1739 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-0eab377a-20240916" !==
|
||||
"19.0.0-www-modern-f2df5694-20240916" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1739
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1739,
|
||||
"19.0.0-www-modern-0eab377a-20240916"
|
||||
"19.0.0-www-modern-f2df5694-20240916"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16845,11 +16853,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2254 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0eab377a-20240916",
|
||||
version: "19.0.0-www-modern-f2df5694-20240916",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2255 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17212,4 +17220,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
|
||||
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-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
})();
|
||||
|
||||
@@ -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-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
})();
|
||||
|
||||
@@ -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-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
|
||||
@@ -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-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -10486,6 +10486,14 @@ function commitPassiveMountOnFiber(
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -13762,36 +13770,36 @@ function containsNode(outerNode, innerNode) {
|
||||
: !1;
|
||||
}
|
||||
function getActiveElementDeep(containerInfo) {
|
||||
var $jscomp$optchain$tmp1582461935$1, $jscomp$nullish$tmp0;
|
||||
var $jscomp$optchain$tmp1907059305$1, $jscomp$nullish$tmp0;
|
||||
containerInfo =
|
||||
null !=
|
||||
($jscomp$nullish$tmp0 =
|
||||
null == containerInfo
|
||||
? void 0
|
||||
: null ==
|
||||
($jscomp$optchain$tmp1582461935$1 = containerInfo.ownerDocument)
|
||||
($jscomp$optchain$tmp1907059305$1 = containerInfo.ownerDocument)
|
||||
? void 0
|
||||
: $jscomp$optchain$tmp1582461935$1.defaultView)
|
||||
: $jscomp$optchain$tmp1907059305$1.defaultView)
|
||||
? $jscomp$nullish$tmp0
|
||||
: window;
|
||||
for (
|
||||
$jscomp$optchain$tmp1582461935$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1582461935$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
$jscomp$optchain$tmp1907059305$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1907059305$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
|
||||
) {
|
||||
try {
|
||||
var JSCompiler_inline_result =
|
||||
"string" ===
|
||||
typeof $jscomp$optchain$tmp1582461935$1.contentWindow.location.href;
|
||||
typeof $jscomp$optchain$tmp1907059305$1.contentWindow.location.href;
|
||||
} catch (err) {
|
||||
JSCompiler_inline_result = !1;
|
||||
}
|
||||
if (JSCompiler_inline_result)
|
||||
containerInfo = $jscomp$optchain$tmp1582461935$1.contentWindow;
|
||||
containerInfo = $jscomp$optchain$tmp1907059305$1.contentWindow;
|
||||
else break;
|
||||
$jscomp$optchain$tmp1582461935$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1907059305$1 = getActiveElement(containerInfo.document);
|
||||
}
|
||||
return $jscomp$optchain$tmp1582461935$1;
|
||||
return $jscomp$optchain$tmp1907059305$1;
|
||||
}
|
||||
function hasSelectionCapabilities(elem) {
|
||||
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
||||
@@ -17773,14 +17781,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1798 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-0eab377a-20240916" !==
|
||||
"19.0.0-www-classic-f2df5694-20240916" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1798
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1798,
|
||||
"19.0.0-www-classic-0eab377a-20240916"
|
||||
"19.0.0-www-classic-f2df5694-20240916"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -17825,11 +17833,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2298 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0eab377a-20240916",
|
||||
version: "19.0.0-www-classic-f2df5694-20240916",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2299 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -18436,4 +18444,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
|
||||
@@ -10055,6 +10055,14 @@ function commitPassiveMountOnFiber(
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -13189,36 +13197,36 @@ function containsNode(outerNode, innerNode) {
|
||||
: !1;
|
||||
}
|
||||
function getActiveElementDeep(containerInfo) {
|
||||
var $jscomp$optchain$tmp614171160$1, $jscomp$nullish$tmp0;
|
||||
var $jscomp$optchain$tmp1657612496$1, $jscomp$nullish$tmp0;
|
||||
containerInfo =
|
||||
null !=
|
||||
($jscomp$nullish$tmp0 =
|
||||
null == containerInfo
|
||||
? void 0
|
||||
: null ==
|
||||
($jscomp$optchain$tmp614171160$1 = containerInfo.ownerDocument)
|
||||
($jscomp$optchain$tmp1657612496$1 = containerInfo.ownerDocument)
|
||||
? void 0
|
||||
: $jscomp$optchain$tmp614171160$1.defaultView)
|
||||
: $jscomp$optchain$tmp1657612496$1.defaultView)
|
||||
? $jscomp$nullish$tmp0
|
||||
: window;
|
||||
for (
|
||||
$jscomp$optchain$tmp614171160$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp614171160$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
$jscomp$optchain$tmp1657612496$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1657612496$1 instanceof containerInfo.HTMLIFrameElement;
|
||||
|
||||
) {
|
||||
try {
|
||||
var JSCompiler_inline_result =
|
||||
"string" ===
|
||||
typeof $jscomp$optchain$tmp614171160$1.contentWindow.location.href;
|
||||
typeof $jscomp$optchain$tmp1657612496$1.contentWindow.location.href;
|
||||
} catch (err) {
|
||||
JSCompiler_inline_result = !1;
|
||||
}
|
||||
if (JSCompiler_inline_result)
|
||||
containerInfo = $jscomp$optchain$tmp614171160$1.contentWindow;
|
||||
containerInfo = $jscomp$optchain$tmp1657612496$1.contentWindow;
|
||||
else break;
|
||||
$jscomp$optchain$tmp614171160$1 = getActiveElement(containerInfo.document);
|
||||
$jscomp$optchain$tmp1657612496$1 = getActiveElement(containerInfo.document);
|
||||
}
|
||||
return $jscomp$optchain$tmp614171160$1;
|
||||
return $jscomp$optchain$tmp1657612496$1;
|
||||
}
|
||||
function hasSelectionCapabilities(elem) {
|
||||
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
||||
@@ -17149,14 +17157,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-0eab377a-20240916" !==
|
||||
"19.0.0-www-modern-f2df5694-20240916" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1769
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1769,
|
||||
"19.0.0-www-modern-0eab377a-20240916"
|
||||
"19.0.0-www-modern-f2df5694-20240916"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17174,11 +17182,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2289 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0eab377a-20240916",
|
||||
version: "19.0.0-www-modern-f2df5694-20240916",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2290 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17692,4 +17700,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
|
||||
@@ -8279,6 +8279,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
0 !== (renderLanes & workInProgress.childLanes) &&
|
||||
(workInProgress.flags |= 4);
|
||||
workInProgress.flags |= 2048;
|
||||
var stateNode = workInProgress.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
@@ -8921,6 +8922,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
return (
|
||||
(workInProgress.flags |= 4),
|
||||
(workInProgress.flags |= 2048),
|
||||
(returnFiber = workInProgress.stateNode),
|
||||
(returnFiber.effectDuration = 0),
|
||||
(returnFiber.passiveEffectDuration = 0),
|
||||
@@ -11057,13 +11059,14 @@ __DEV__ &&
|
||||
}
|
||||
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onCommit = _finishedWork$memoize.onCommit;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onRender;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
finishedWork.memoizedProps.id,
|
||||
id,
|
||||
current,
|
||||
finishedWork.actualDuration,
|
||||
finishedWork.treeBaseDuration,
|
||||
@@ -11098,6 +11101,44 @@ __DEV__ &&
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$20);
|
||||
}
|
||||
}
|
||||
function commitProfilerPostCommitImpl(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
var _finishedWork$memoize2 = finishedWork.memoizedProps;
|
||||
finishedWork = _finishedWork$memoize2.id;
|
||||
_finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize2 &&
|
||||
_finishedWork$memoize2(
|
||||
finishedWork,
|
||||
current,
|
||||
passiveEffectDuration,
|
||||
commitTime
|
||||
);
|
||||
}
|
||||
function commitProfilerPostCommit(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
try {
|
||||
runWithFiberInDEV(
|
||||
finishedWork,
|
||||
commitProfilerPostCommitImpl,
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
}
|
||||
}
|
||||
function commitHostMount(finishedWork) {
|
||||
var type = finishedWork.type,
|
||||
props = finishedWork.memoizedProps,
|
||||
@@ -11111,8 +11152,8 @@ __DEV__ &&
|
||||
props,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
}
|
||||
}
|
||||
function commitHostUpdate(finishedWork, newProps, oldProps) {
|
||||
@@ -11126,8 +11167,8 @@ __DEV__ &&
|
||||
newProps,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
} catch (error$23) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$23);
|
||||
}
|
||||
}
|
||||
function isHostParent(fiber) {
|
||||
@@ -11263,8 +11304,8 @@ __DEV__ &&
|
||||
portal,
|
||||
pendingChildren
|
||||
);
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$31);
|
||||
} catch (error$32) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$32);
|
||||
}
|
||||
}
|
||||
function shouldProfile(current) {
|
||||
@@ -11374,38 +11415,6 @@ __DEV__ &&
|
||||
focusedInstanceHandle = null;
|
||||
return root;
|
||||
}
|
||||
function commitPassiveEffectDurations(finishedRoot, finishedWork) {
|
||||
if (executionContext & CommitContext && 0 !== (finishedWork.flags & 4))
|
||||
switch (finishedWork.tag) {
|
||||
case 12:
|
||||
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onPostCommit;
|
||||
var commitTime$jscomp$0 = commitTime,
|
||||
phase = null === finishedWork.alternate ? "mount" : "update";
|
||||
currentUpdateIsNested && (phase = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
id,
|
||||
phase,
|
||||
finishedRoot,
|
||||
commitTime$jscomp$0
|
||||
);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
||||
var flags = finishedWork.flags;
|
||||
switch (finishedWork.tag) {
|
||||
@@ -11545,7 +11554,6 @@ __DEV__ &&
|
||||
a: for (
|
||||
flags = finishedWork.stateNode.effectDuration,
|
||||
commitProfilerUpdate(finishedWork, current, commitTime, flags),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -11898,11 +11906,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$28) {
|
||||
} catch (error$29) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$28
|
||||
error$29
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -11913,11 +11921,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$29) {
|
||||
} catch (error$30) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$29
|
||||
error$30
|
||||
);
|
||||
}
|
||||
} else
|
||||
@@ -11933,11 +11941,11 @@ __DEV__ &&
|
||||
try {
|
||||
(prevHostParent = finishedRoot.onDeleted) &&
|
||||
prevHostParent(deletedFiber.stateNode);
|
||||
} catch (error$35) {
|
||||
} catch (error$36) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$35
|
||||
error$36
|
||||
);
|
||||
}
|
||||
supportsMutation &&
|
||||
@@ -12138,11 +12146,11 @@ __DEV__ &&
|
||||
commitHydratedSuspenseInstance,
|
||||
current
|
||||
);
|
||||
} catch (error$33) {
|
||||
} catch (error$34) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$33
|
||||
error$34
|
||||
);
|
||||
}
|
||||
try {
|
||||
@@ -12151,11 +12159,11 @@ __DEV__ &&
|
||||
var onHydrated = hydrationCallbacks.onHydrated;
|
||||
onHydrated && onHydrated(current);
|
||||
}
|
||||
} catch (error$36) {
|
||||
} catch (error$37) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$36
|
||||
error$37
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12399,11 +12407,11 @@ __DEV__ &&
|
||||
hoistableRoot,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$34) {
|
||||
} catch (error$35) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$34
|
||||
error$35
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12418,11 +12426,11 @@ __DEV__ &&
|
||||
root = finishedWork.stateNode;
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, resetTextContent, root);
|
||||
} catch (error$24) {
|
||||
} catch (error$25) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$24
|
||||
error$25
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12461,11 +12469,11 @@ __DEV__ &&
|
||||
current,
|
||||
flags
|
||||
);
|
||||
} catch (error$23) {
|
||||
} catch (error$24) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$23
|
||||
error$24
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12492,11 +12500,11 @@ __DEV__ &&
|
||||
commitHydratedContainer,
|
||||
root.containerInfo
|
||||
);
|
||||
} catch (error$32) {
|
||||
} catch (error$33) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$32
|
||||
error$33
|
||||
);
|
||||
}
|
||||
if (supportsPersistence) {
|
||||
@@ -12509,11 +12517,11 @@ __DEV__ &&
|
||||
flags,
|
||||
current
|
||||
);
|
||||
} catch (error$30) {
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$30
|
||||
error$31
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12561,11 +12569,11 @@ __DEV__ &&
|
||||
void 0 !== suspenseCallback &&
|
||||
error$jscomp$0("Unexpected type for suspenseCallback.");
|
||||
}
|
||||
} catch (error$37) {
|
||||
} catch (error$38) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$37
|
||||
error$38
|
||||
);
|
||||
}
|
||||
flags = finishedWork.updateQueue;
|
||||
@@ -12635,11 +12643,11 @@ __DEV__ &&
|
||||
retryQueue.stateNode,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$25) {
|
||||
} catch (error$26) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$25
|
||||
error$26
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12660,11 +12668,11 @@ __DEV__ &&
|
||||
props,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$26) {
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$26
|
||||
error$27
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12725,8 +12733,8 @@ __DEV__ &&
|
||||
if (flags & 2) {
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$27);
|
||||
} catch (error$28) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$28);
|
||||
}
|
||||
finishedWork.flags &= -3;
|
||||
}
|
||||
@@ -12889,7 +12897,6 @@ __DEV__ &&
|
||||
commitTime,
|
||||
includeWorkInProgressEffects
|
||||
),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -13129,6 +13136,37 @@ __DEV__ &&
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
if (flags & 2048 && executionContext & CommitContext)
|
||||
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;
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -14307,7 +14345,7 @@ __DEV__ &&
|
||||
check = check.value;
|
||||
try {
|
||||
if (!objectIs(getSnapshot(), check)) return !1;
|
||||
} catch (error$38) {
|
||||
} catch (error$39) {
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
@@ -14643,8 +14681,8 @@ __DEV__ &&
|
||||
}
|
||||
workLoopSync();
|
||||
break;
|
||||
} catch (thrownValue$39) {
|
||||
handleThrow(root, thrownValue$39);
|
||||
} catch (thrownValue$40) {
|
||||
handleThrow(root, thrownValue$40);
|
||||
}
|
||||
while (1);
|
||||
lanes && root.shellSuspendCounter++;
|
||||
@@ -14818,8 +14856,8 @@ __DEV__ &&
|
||||
? workLoopSync()
|
||||
: workLoopConcurrent();
|
||||
break;
|
||||
} catch (thrownValue$40) {
|
||||
handleThrow(root, thrownValue$40);
|
||||
} catch (thrownValue$41) {
|
||||
handleThrow(root, thrownValue$41);
|
||||
}
|
||||
while (1);
|
||||
resetContextDependencies();
|
||||
@@ -14968,9 +15006,9 @@ __DEV__ &&
|
||||
workInProgress = null;
|
||||
return;
|
||||
}
|
||||
} catch (error$41) {
|
||||
} catch (error$42) {
|
||||
if (null !== returnFiber)
|
||||
throw ((workInProgress = returnFiber), error$41);
|
||||
throw ((workInProgress = returnFiber), error$42);
|
||||
workInProgressRootExitStatus = RootFatalErrored;
|
||||
logUncaughtError(
|
||||
root,
|
||||
@@ -15015,25 +15053,16 @@ __DEV__ &&
|
||||
}
|
||||
var current = completedWork.alternate;
|
||||
unitOfWork = completedWork.return;
|
||||
(completedWork.mode & 2) === NoMode
|
||||
? (current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
))
|
||||
: (startProfilerTimer(completedWork),
|
||||
(current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
)),
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(
|
||||
completedWork
|
||||
));
|
||||
startProfilerTimer(completedWork);
|
||||
current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
(completedWork.mode & 2) !== NoMode &&
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork);
|
||||
if (null !== current) {
|
||||
workInProgress = current;
|
||||
return;
|
||||
@@ -15331,15 +15360,6 @@ __DEV__ &&
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function enqueuePendingPassiveProfilerEffect(fiber) {
|
||||
pendingPassiveProfilerEffects.push(fiber);
|
||||
rootDoesHavePassiveEffects ||
|
||||
((rootDoesHavePassiveEffects = !0),
|
||||
scheduleCallback(NormalPriority$1, function () {
|
||||
flushPassiveEffects();
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
function flushPassiveEffectsImpl() {
|
||||
if (null === rootWithPendingPassiveEffects) return !1;
|
||||
var transitions = pendingPassiveTransitions;
|
||||
@@ -15370,10 +15390,6 @@ __DEV__ &&
|
||||
executionContext |= CommitContext;
|
||||
commitPassiveUnmountOnFiber(root.current);
|
||||
commitPassiveMountOnFiber(root, root.current, lanes, transitions);
|
||||
transitions = pendingPassiveProfilerEffects;
|
||||
pendingPassiveProfilerEffects = [];
|
||||
for (lanes = 0; lanes < transitions.length; lanes++)
|
||||
commitPassiveEffectDurations(root, transitions[lanes]);
|
||||
enableDebugTracing && enableDebugTracing && groupEnd();
|
||||
enableSchedulingProfiler &&
|
||||
enableSchedulingProfiler &&
|
||||
@@ -15421,9 +15437,9 @@ __DEV__ &&
|
||||
err
|
||||
));
|
||||
}
|
||||
root = root.current.stateNode;
|
||||
root.effectDuration = 0;
|
||||
root.passiveEffectDuration = 0;
|
||||
transitions = root.current.stateNode;
|
||||
transitions.effectDuration = 0;
|
||||
transitions.passiveEffectDuration = 0;
|
||||
return !0;
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
@@ -18730,7 +18746,6 @@ __DEV__ &&
|
||||
rootDoesHavePassiveEffects = !1,
|
||||
rootWithPendingPassiveEffects = null,
|
||||
pendingPassiveEffectsLanes = 0,
|
||||
pendingPassiveProfilerEffects = [],
|
||||
pendingPassiveEffectsRemainingLanes = 0,
|
||||
pendingPassiveTransitions = null,
|
||||
NESTED_UPDATE_LIMIT = 50,
|
||||
@@ -18968,7 +18983,7 @@ __DEV__ &&
|
||||
try {
|
||||
testStringCoercion(key);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e$42) {
|
||||
} catch (e$43) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
JSCompiler_inline_result &&
|
||||
@@ -19308,7 +19323,7 @@ __DEV__ &&
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -7961,6 +7961,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
0 !== (renderLanes & workInProgress.childLanes) &&
|
||||
(workInProgress.flags |= 4);
|
||||
workInProgress.flags |= 2048;
|
||||
var stateNode = workInProgress.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
@@ -8603,6 +8604,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
return (
|
||||
(workInProgress.flags |= 4),
|
||||
(workInProgress.flags |= 2048),
|
||||
(returnFiber = workInProgress.stateNode),
|
||||
(returnFiber.effectDuration = 0),
|
||||
(returnFiber.passiveEffectDuration = 0),
|
||||
@@ -10659,13 +10661,14 @@ __DEV__ &&
|
||||
}
|
||||
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onCommit = _finishedWork$memoize.onCommit;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onRender;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
finishedWork.memoizedProps.id,
|
||||
id,
|
||||
current,
|
||||
finishedWork.actualDuration,
|
||||
finishedWork.treeBaseDuration,
|
||||
@@ -10700,6 +10703,44 @@ __DEV__ &&
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$20);
|
||||
}
|
||||
}
|
||||
function commitProfilerPostCommitImpl(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
var _finishedWork$memoize2 = finishedWork.memoizedProps;
|
||||
finishedWork = _finishedWork$memoize2.id;
|
||||
_finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize2 &&
|
||||
_finishedWork$memoize2(
|
||||
finishedWork,
|
||||
current,
|
||||
passiveEffectDuration,
|
||||
commitTime
|
||||
);
|
||||
}
|
||||
function commitProfilerPostCommit(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
try {
|
||||
runWithFiberInDEV(
|
||||
finishedWork,
|
||||
commitProfilerPostCommitImpl,
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
}
|
||||
}
|
||||
function commitHostMount(finishedWork) {
|
||||
var type = finishedWork.type,
|
||||
props = finishedWork.memoizedProps,
|
||||
@@ -10713,8 +10754,8 @@ __DEV__ &&
|
||||
props,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
}
|
||||
}
|
||||
function commitHostUpdate(finishedWork, newProps, oldProps) {
|
||||
@@ -10728,8 +10769,8 @@ __DEV__ &&
|
||||
newProps,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
} catch (error$23) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$23);
|
||||
}
|
||||
}
|
||||
function isHostParent(fiber) {
|
||||
@@ -10865,8 +10906,8 @@ __DEV__ &&
|
||||
portal,
|
||||
pendingChildren
|
||||
);
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$31);
|
||||
} catch (error$32) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$32);
|
||||
}
|
||||
}
|
||||
function shouldProfile(current) {
|
||||
@@ -10976,38 +11017,6 @@ __DEV__ &&
|
||||
focusedInstanceHandle = null;
|
||||
return root;
|
||||
}
|
||||
function commitPassiveEffectDurations(finishedRoot, finishedWork) {
|
||||
if (executionContext & CommitContext && 0 !== (finishedWork.flags & 4))
|
||||
switch (finishedWork.tag) {
|
||||
case 12:
|
||||
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onPostCommit;
|
||||
var commitTime$jscomp$0 = commitTime,
|
||||
phase = null === finishedWork.alternate ? "mount" : "update";
|
||||
currentUpdateIsNested && (phase = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
id,
|
||||
phase,
|
||||
finishedRoot,
|
||||
commitTime$jscomp$0
|
||||
);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
||||
var flags = finishedWork.flags;
|
||||
switch (finishedWork.tag) {
|
||||
@@ -11147,7 +11156,6 @@ __DEV__ &&
|
||||
a: for (
|
||||
flags = finishedWork.stateNode.effectDuration,
|
||||
commitProfilerUpdate(finishedWork, current, commitTime, flags),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -11495,11 +11503,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$28) {
|
||||
} catch (error$29) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$28
|
||||
error$29
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -11510,11 +11518,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$29) {
|
||||
} catch (error$30) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$29
|
||||
error$30
|
||||
);
|
||||
}
|
||||
} else
|
||||
@@ -11530,11 +11538,11 @@ __DEV__ &&
|
||||
try {
|
||||
(prevHostParent = finishedRoot.onDeleted) &&
|
||||
prevHostParent(deletedFiber.stateNode);
|
||||
} catch (error$35) {
|
||||
} catch (error$36) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$35
|
||||
error$36
|
||||
);
|
||||
}
|
||||
supportsMutation &&
|
||||
@@ -11729,11 +11737,11 @@ __DEV__ &&
|
||||
commitHydratedSuspenseInstance,
|
||||
current
|
||||
);
|
||||
} catch (error$33) {
|
||||
} catch (error$34) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$33
|
||||
error$34
|
||||
);
|
||||
}
|
||||
try {
|
||||
@@ -11742,11 +11750,11 @@ __DEV__ &&
|
||||
var onHydrated = hydrationCallbacks.onHydrated;
|
||||
onHydrated && onHydrated(current);
|
||||
}
|
||||
} catch (error$36) {
|
||||
} catch (error$37) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$36
|
||||
error$37
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -11990,11 +11998,11 @@ __DEV__ &&
|
||||
hoistableRoot,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$34) {
|
||||
} catch (error$35) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$34
|
||||
error$35
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12009,11 +12017,11 @@ __DEV__ &&
|
||||
root = finishedWork.stateNode;
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, resetTextContent, root);
|
||||
} catch (error$24) {
|
||||
} catch (error$25) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$24
|
||||
error$25
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12052,11 +12060,11 @@ __DEV__ &&
|
||||
current,
|
||||
flags
|
||||
);
|
||||
} catch (error$23) {
|
||||
} catch (error$24) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$23
|
||||
error$24
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12083,11 +12091,11 @@ __DEV__ &&
|
||||
commitHydratedContainer,
|
||||
root.containerInfo
|
||||
);
|
||||
} catch (error$32) {
|
||||
} catch (error$33) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$32
|
||||
error$33
|
||||
);
|
||||
}
|
||||
if (supportsPersistence) {
|
||||
@@ -12100,11 +12108,11 @@ __DEV__ &&
|
||||
flags,
|
||||
current
|
||||
);
|
||||
} catch (error$30) {
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$30
|
||||
error$31
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12152,11 +12160,11 @@ __DEV__ &&
|
||||
void 0 !== suspenseCallback &&
|
||||
error$jscomp$0("Unexpected type for suspenseCallback.");
|
||||
}
|
||||
} catch (error$37) {
|
||||
} catch (error$38) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$37
|
||||
error$38
|
||||
);
|
||||
}
|
||||
flags = finishedWork.updateQueue;
|
||||
@@ -12223,11 +12231,11 @@ __DEV__ &&
|
||||
retryQueue.stateNode,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$25) {
|
||||
} catch (error$26) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$25
|
||||
error$26
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12248,11 +12256,11 @@ __DEV__ &&
|
||||
props,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$26) {
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$26
|
||||
error$27
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12313,8 +12321,8 @@ __DEV__ &&
|
||||
if (flags & 2) {
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$27);
|
||||
} catch (error$28) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$28);
|
||||
}
|
||||
finishedWork.flags &= -3;
|
||||
}
|
||||
@@ -12484,7 +12492,6 @@ __DEV__ &&
|
||||
commitTime,
|
||||
includeWorkInProgressEffects
|
||||
),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -12724,6 +12731,37 @@ __DEV__ &&
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
if (flags & 2048 && executionContext & CommitContext)
|
||||
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;
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -13822,7 +13860,7 @@ __DEV__ &&
|
||||
check = check.value;
|
||||
try {
|
||||
if (!objectIs(getSnapshot(), check)) return !1;
|
||||
} catch (error$38) {
|
||||
} catch (error$39) {
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
@@ -14158,8 +14196,8 @@ __DEV__ &&
|
||||
}
|
||||
workLoopSync();
|
||||
break;
|
||||
} catch (thrownValue$39) {
|
||||
handleThrow(root, thrownValue$39);
|
||||
} catch (thrownValue$40) {
|
||||
handleThrow(root, thrownValue$40);
|
||||
}
|
||||
while (1);
|
||||
lanes && root.shellSuspendCounter++;
|
||||
@@ -14333,8 +14371,8 @@ __DEV__ &&
|
||||
? workLoopSync()
|
||||
: workLoopConcurrent();
|
||||
break;
|
||||
} catch (thrownValue$40) {
|
||||
handleThrow(root, thrownValue$40);
|
||||
} catch (thrownValue$41) {
|
||||
handleThrow(root, thrownValue$41);
|
||||
}
|
||||
while (1);
|
||||
resetContextDependencies();
|
||||
@@ -14479,9 +14517,9 @@ __DEV__ &&
|
||||
workInProgress = null;
|
||||
return;
|
||||
}
|
||||
} catch (error$41) {
|
||||
} catch (error$42) {
|
||||
if (null !== returnFiber)
|
||||
throw ((workInProgress = returnFiber), error$41);
|
||||
throw ((workInProgress = returnFiber), error$42);
|
||||
workInProgressRootExitStatus = RootFatalErrored;
|
||||
logUncaughtError(
|
||||
root,
|
||||
@@ -14526,25 +14564,16 @@ __DEV__ &&
|
||||
}
|
||||
var current = completedWork.alternate;
|
||||
unitOfWork = completedWork.return;
|
||||
(completedWork.mode & 2) === NoMode
|
||||
? (current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
))
|
||||
: (startProfilerTimer(completedWork),
|
||||
(current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
)),
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(
|
||||
completedWork
|
||||
));
|
||||
startProfilerTimer(completedWork);
|
||||
current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
(completedWork.mode & 2) !== NoMode &&
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork);
|
||||
if (null !== current) {
|
||||
workInProgress = current;
|
||||
return;
|
||||
@@ -14840,15 +14869,6 @@ __DEV__ &&
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function enqueuePendingPassiveProfilerEffect(fiber) {
|
||||
pendingPassiveProfilerEffects.push(fiber);
|
||||
rootDoesHavePassiveEffects ||
|
||||
((rootDoesHavePassiveEffects = !0),
|
||||
scheduleCallback(NormalPriority$1, function () {
|
||||
flushPassiveEffects();
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
function flushPassiveEffectsImpl() {
|
||||
if (null === rootWithPendingPassiveEffects) return !1;
|
||||
var transitions = pendingPassiveTransitions;
|
||||
@@ -14879,10 +14899,6 @@ __DEV__ &&
|
||||
executionContext |= CommitContext;
|
||||
commitPassiveUnmountOnFiber(root.current);
|
||||
commitPassiveMountOnFiber(root, root.current, lanes, transitions);
|
||||
transitions = pendingPassiveProfilerEffects;
|
||||
pendingPassiveProfilerEffects = [];
|
||||
for (lanes = 0; lanes < transitions.length; lanes++)
|
||||
commitPassiveEffectDurations(root, transitions[lanes]);
|
||||
enableDebugTracing && enableDebugTracing && groupEnd();
|
||||
enableSchedulingProfiler &&
|
||||
enableSchedulingProfiler &&
|
||||
@@ -14930,9 +14946,9 @@ __DEV__ &&
|
||||
err
|
||||
));
|
||||
}
|
||||
root = root.current.stateNode;
|
||||
root.effectDuration = 0;
|
||||
root.passiveEffectDuration = 0;
|
||||
transitions = root.current.stateNode;
|
||||
transitions.effectDuration = 0;
|
||||
transitions.passiveEffectDuration = 0;
|
||||
return !0;
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
@@ -18137,7 +18153,6 @@ __DEV__ &&
|
||||
rootDoesHavePassiveEffects = !1,
|
||||
rootWithPendingPassiveEffects = null,
|
||||
pendingPassiveEffectsLanes = 0,
|
||||
pendingPassiveProfilerEffects = [],
|
||||
pendingPassiveEffectsRemainingLanes = 0,
|
||||
pendingPassiveTransitions = null,
|
||||
NESTED_UPDATE_LIMIT = 50,
|
||||
@@ -18366,7 +18381,7 @@ __DEV__ &&
|
||||
try {
|
||||
testStringCoercion(key);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e$42) {
|
||||
} catch (e$43) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
JSCompiler_inline_result &&
|
||||
@@ -18702,7 +18717,7 @@ __DEV__ &&
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -9218,6 +9218,14 @@ module.exports = function ($$$config) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -12883,7 +12891,7 @@ module.exports = function ($$$config) {
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -8805,6 +8805,14 @@ module.exports = function ($$$config) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
break;
|
||||
case 23:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
@@ -12376,7 +12384,7 @@ module.exports = function ($$$config) {
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"use strict";
|
||||
__DEV__ &&
|
||||
(function () {
|
||||
function JSCompiler_object_inline_createNodeMock_1115() {
|
||||
function JSCompiler_object_inline_createNodeMock_1119() {
|
||||
return null;
|
||||
}
|
||||
function findHook(fiber, id) {
|
||||
@@ -7102,6 +7102,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
0 !== (renderLanes & workInProgress.childLanes) &&
|
||||
(workInProgress.flags |= 4);
|
||||
workInProgress.flags |= 2048;
|
||||
var stateNode = workInProgress.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
@@ -7495,6 +7496,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
return (
|
||||
(workInProgress.flags |= 4),
|
||||
(workInProgress.flags |= 2048),
|
||||
(returnFiber = workInProgress.stateNode),
|
||||
(returnFiber.effectDuration = 0),
|
||||
(returnFiber.passiveEffectDuration = 0),
|
||||
@@ -8952,13 +8954,14 @@ __DEV__ &&
|
||||
}
|
||||
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onCommit = _finishedWork$memoize.onCommit;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onRender;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
finishedWork.memoizedProps.id,
|
||||
id,
|
||||
current,
|
||||
finishedWork.actualDuration,
|
||||
finishedWork.treeBaseDuration,
|
||||
@@ -8993,6 +8996,25 @@ __DEV__ &&
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$20);
|
||||
}
|
||||
}
|
||||
function commitProfilerPostCommitImpl(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
var _finishedWork$memoize2 = finishedWork.memoizedProps;
|
||||
finishedWork = _finishedWork$memoize2.id;
|
||||
_finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize2 &&
|
||||
_finishedWork$memoize2(
|
||||
finishedWork,
|
||||
current,
|
||||
passiveEffectDuration,
|
||||
commitTime
|
||||
);
|
||||
}
|
||||
function commitHostMount(finishedWork) {
|
||||
var type = finishedWork.type,
|
||||
props = finishedWork.memoizedProps,
|
||||
@@ -9006,8 +9028,8 @@ __DEV__ &&
|
||||
props,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
}
|
||||
}
|
||||
function isHostParent(fiber) {
|
||||
@@ -9296,7 +9318,6 @@ __DEV__ &&
|
||||
a: for (
|
||||
flags = finishedWork.stateNode.effectDuration,
|
||||
commitProfilerUpdate(finishedWork, current, commitTime, flags),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -9420,11 +9441,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$28) {
|
||||
} catch (error$29) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$28
|
||||
error$29
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -9435,11 +9456,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$29) {
|
||||
} catch (error$30) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$29
|
||||
error$30
|
||||
);
|
||||
}
|
||||
break;
|
||||
@@ -9449,11 +9470,11 @@ __DEV__ &&
|
||||
try {
|
||||
(_prevHostParent = finishedRoot.onDeleted) &&
|
||||
_prevHostParent(deletedFiber.stateNode);
|
||||
} catch (error$30) {
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$30
|
||||
error$31
|
||||
);
|
||||
}
|
||||
null !== hostParent &&
|
||||
@@ -9717,11 +9738,11 @@ __DEV__ &&
|
||||
resetTextContent,
|
||||
existingHiddenCallbacks
|
||||
);
|
||||
} catch (error$24) {
|
||||
} catch (error$25) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$24
|
||||
error$25
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9741,11 +9762,11 @@ __DEV__ &&
|
||||
existingHiddenCallbacks,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$22) {
|
||||
} catch (error$23) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$22
|
||||
error$23
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9775,11 +9796,11 @@ __DEV__ &&
|
||||
existingHiddenCallbacks,
|
||||
flags
|
||||
);
|
||||
} catch (error$23) {
|
||||
} catch (error$24) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$23
|
||||
error$24
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9811,11 +9832,11 @@ __DEV__ &&
|
||||
void 0 !== suspenseCallback &&
|
||||
error$jscomp$0("Unexpected type for suspenseCallback.");
|
||||
}
|
||||
} catch (error$31) {
|
||||
} catch (error$32) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$31
|
||||
error$32
|
||||
);
|
||||
}
|
||||
flags = finishedWork.updateQueue;
|
||||
@@ -9876,11 +9897,11 @@ __DEV__ &&
|
||||
retryQueue.stateNode,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$25) {
|
||||
} catch (error$26) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$25
|
||||
error$26
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9901,11 +9922,11 @@ __DEV__ &&
|
||||
oldProps,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$26) {
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$26
|
||||
error$27
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9970,8 +9991,8 @@ __DEV__ &&
|
||||
if (flags & 2) {
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$27);
|
||||
} catch (error$28) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$28);
|
||||
}
|
||||
finishedWork.flags &= -3;
|
||||
}
|
||||
@@ -10120,7 +10141,6 @@ __DEV__ &&
|
||||
commitTime,
|
||||
includeWorkInProgressEffects
|
||||
),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -10238,6 +10258,45 @@ __DEV__ &&
|
||||
(retainCache(finishedWork),
|
||||
null != finishedRoot && releaseCache(finishedRoot)));
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
if (flags & 2048 && executionContext & CommitContext) {
|
||||
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
|
||||
try {
|
||||
runWithFiberInDEV(
|
||||
finishedWork,
|
||||
commitProfilerPostCommitImpl,
|
||||
finishedWork,
|
||||
finishedWork.alternate,
|
||||
commitTime,
|
||||
finishedRoot
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
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;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
break;
|
||||
case 22:
|
||||
@@ -10980,7 +11039,7 @@ __DEV__ &&
|
||||
check = check.value;
|
||||
try {
|
||||
if (!objectIs(getSnapshot(), check)) return !1;
|
||||
} catch (error$32) {
|
||||
} catch (error$33) {
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
@@ -11263,8 +11322,8 @@ __DEV__ &&
|
||||
}
|
||||
workLoopSync();
|
||||
break;
|
||||
} catch (thrownValue$33) {
|
||||
handleThrow(root, thrownValue$33);
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
}
|
||||
while (1);
|
||||
lanes && root.shellSuspendCounter++;
|
||||
@@ -11413,8 +11472,8 @@ __DEV__ &&
|
||||
? workLoopSync()
|
||||
: workLoopConcurrent();
|
||||
break;
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
} catch (thrownValue$35) {
|
||||
handleThrow(root, thrownValue$35);
|
||||
}
|
||||
while (1);
|
||||
resetContextDependencies();
|
||||
@@ -11546,9 +11605,9 @@ __DEV__ &&
|
||||
workInProgress = null;
|
||||
return;
|
||||
}
|
||||
} catch (error$35) {
|
||||
} catch (error$36) {
|
||||
if (null !== returnFiber)
|
||||
throw ((workInProgress = returnFiber), error$35);
|
||||
throw ((workInProgress = returnFiber), error$36);
|
||||
workInProgressRootExitStatus = RootFatalErrored;
|
||||
logUncaughtError(
|
||||
root,
|
||||
@@ -11573,25 +11632,16 @@ __DEV__ &&
|
||||
}
|
||||
var current = completedWork.alternate;
|
||||
unitOfWork = completedWork.return;
|
||||
0 === (completedWork.mode & 2)
|
||||
? (current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
))
|
||||
: (startProfilerTimer(completedWork),
|
||||
(current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
)),
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(
|
||||
completedWork
|
||||
));
|
||||
startProfilerTimer(completedWork);
|
||||
current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
0 !== (completedWork.mode & 2) &&
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork);
|
||||
if (null !== current) {
|
||||
workInProgress = current;
|
||||
return;
|
||||
@@ -11820,10 +11870,10 @@ __DEV__ &&
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
var transitions = pendingPassiveTransitions;
|
||||
priority = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
priority = rootWithPendingPassiveEffects;
|
||||
var lanes = pendingPassiveEffectsLanes;
|
||||
var root$jscomp$0 = rootWithPendingPassiveEffects,
|
||||
lanes = pendingPassiveEffectsLanes;
|
||||
rootWithPendingPassiveEffects = null;
|
||||
pendingPassiveEffectsLanes = 0;
|
||||
if (
|
||||
@@ -11837,68 +11887,26 @@ __DEV__ &&
|
||||
didScheduleUpdateDuringPassiveEffects = !1;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= CommitContext;
|
||||
commitPassiveUnmountOnFiber(priority.current);
|
||||
commitPassiveUnmountOnFiber(root$jscomp$0.current);
|
||||
commitPassiveMountOnFiber(
|
||||
priority,
|
||||
priority.current,
|
||||
root$jscomp$0,
|
||||
root$jscomp$0.current,
|
||||
lanes,
|
||||
transitions
|
||||
priority
|
||||
);
|
||||
transitions = pendingPassiveProfilerEffects;
|
||||
pendingPassiveProfilerEffects = [];
|
||||
for (lanes = 0; lanes < transitions.length; lanes++) {
|
||||
var finishedWork = transitions[lanes];
|
||||
if (
|
||||
executionContext & CommitContext &&
|
||||
0 !== (finishedWork.flags & 4)
|
||||
)
|
||||
switch (finishedWork.tag) {
|
||||
case 12:
|
||||
var passiveEffectDuration =
|
||||
finishedWork.stateNode.passiveEffectDuration,
|
||||
_finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onPostCommit = _finishedWork$memoize.onPostCommit,
|
||||
commitTime$jscomp$0 = commitTime,
|
||||
phase =
|
||||
null === finishedWork.alternate ? "mount" : "update";
|
||||
currentUpdateIsNested && (phase = "nested-update");
|
||||
"function" === typeof onPostCommit &&
|
||||
onPostCommit(
|
||||
id,
|
||||
phase,
|
||||
passiveEffectDuration,
|
||||
commitTime$jscomp$0
|
||||
);
|
||||
var parentFiber = finishedWork.return;
|
||||
b: for (; null !== parentFiber; ) {
|
||||
switch (parentFiber.tag) {
|
||||
case 3:
|
||||
parentFiber.stateNode.passiveEffectDuration +=
|
||||
passiveEffectDuration;
|
||||
break b;
|
||||
case 12:
|
||||
parentFiber.stateNode.passiveEffectDuration +=
|
||||
passiveEffectDuration;
|
||||
break b;
|
||||
}
|
||||
parentFiber = parentFiber.return;
|
||||
}
|
||||
}
|
||||
}
|
||||
runWithFiberInDEV(
|
||||
priority.current,
|
||||
root$jscomp$0.current,
|
||||
legacyCommitDoubleInvokeEffectsInDEV,
|
||||
priority.current,
|
||||
root$jscomp$0.current,
|
||||
!0
|
||||
);
|
||||
executionContext = prevExecutionContext;
|
||||
flushSyncWorkAcrossRoots_impl(0, !1);
|
||||
didScheduleUpdateDuringPassiveEffects
|
||||
? priority === rootWithPassiveNestedUpdates
|
||||
? root$jscomp$0 === rootWithPassiveNestedUpdates
|
||||
? nestedPassiveUpdateCount++
|
||||
: ((nestedPassiveUpdateCount = 0),
|
||||
(rootWithPassiveNestedUpdates = priority))
|
||||
(rootWithPassiveNestedUpdates = root$jscomp$0))
|
||||
: (nestedPassiveUpdateCount = 0);
|
||||
didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects =
|
||||
!1;
|
||||
@@ -11907,7 +11915,7 @@ __DEV__ &&
|
||||
"function" === typeof injectedHook.onPostCommitFiberRoot
|
||||
)
|
||||
try {
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, priority);
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
|
||||
} catch (err) {
|
||||
hasLoggedError ||
|
||||
((hasLoggedError = !0),
|
||||
@@ -11916,7 +11924,7 @@ __DEV__ &&
|
||||
err
|
||||
));
|
||||
}
|
||||
var stateNode = priority.current.stateNode;
|
||||
var stateNode = root$jscomp$0.current.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
JSCompiler_inline_result = !0;
|
||||
@@ -11930,15 +11938,6 @@ __DEV__ &&
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function enqueuePendingPassiveProfilerEffect(fiber) {
|
||||
pendingPassiveProfilerEffects.push(fiber);
|
||||
rootDoesHavePassiveEffects ||
|
||||
((rootDoesHavePassiveEffects = !0),
|
||||
scheduleCallback(NormalPriority$1, function () {
|
||||
flushPassiveEffects();
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
|
||||
@@ -12939,7 +12938,7 @@ __DEV__ &&
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e$36) {
|
||||
} catch (e$37) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
JSCompiler_inline_result &&
|
||||
@@ -14804,7 +14803,6 @@ __DEV__ &&
|
||||
rootDoesHavePassiveEffects = !1,
|
||||
rootWithPendingPassiveEffects = null,
|
||||
pendingPassiveEffectsLanes = 0,
|
||||
pendingPassiveProfilerEffects = [],
|
||||
pendingPassiveEffectsRemainingLanes = 0,
|
||||
pendingPassiveTransitions = null,
|
||||
NESTED_UPDATE_LIMIT = 50,
|
||||
@@ -15033,11 +15031,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-0eab377a-20240916",
|
||||
version: "19.0.0-www-classic-f2df5694-20240916",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-classic-f2df5694-20240916"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15057,7 +15055,7 @@ __DEV__ &&
|
||||
exports._Scheduler = Scheduler;
|
||||
exports.act = act;
|
||||
exports.create = function (element, options) {
|
||||
var createNodeMock = JSCompiler_object_inline_createNodeMock_1115,
|
||||
var createNodeMock = JSCompiler_object_inline_createNodeMock_1119,
|
||||
isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT,
|
||||
isConcurrent = isConcurrentOnly,
|
||||
isStrictMode = !1;
|
||||
@@ -15172,5 +15170,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-classic-f2df5694-20240916";
|
||||
})();
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"use strict";
|
||||
__DEV__ &&
|
||||
(function () {
|
||||
function JSCompiler_object_inline_createNodeMock_1115() {
|
||||
function JSCompiler_object_inline_createNodeMock_1119() {
|
||||
return null;
|
||||
}
|
||||
function findHook(fiber, id) {
|
||||
@@ -7102,6 +7102,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
0 !== (renderLanes & workInProgress.childLanes) &&
|
||||
(workInProgress.flags |= 4);
|
||||
workInProgress.flags |= 2048;
|
||||
var stateNode = workInProgress.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
@@ -7495,6 +7496,7 @@ __DEV__ &&
|
||||
case 12:
|
||||
return (
|
||||
(workInProgress.flags |= 4),
|
||||
(workInProgress.flags |= 2048),
|
||||
(returnFiber = workInProgress.stateNode),
|
||||
(returnFiber.effectDuration = 0),
|
||||
(returnFiber.passiveEffectDuration = 0),
|
||||
@@ -8952,13 +8954,14 @@ __DEV__ &&
|
||||
}
|
||||
function commitProfiler(finishedWork, current, commitTime, effectDuration) {
|
||||
var _finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onCommit = _finishedWork$memoize.onCommit;
|
||||
_finishedWork$memoize = _finishedWork$memoize.onRender;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize &&
|
||||
_finishedWork$memoize(
|
||||
finishedWork.memoizedProps.id,
|
||||
id,
|
||||
current,
|
||||
finishedWork.actualDuration,
|
||||
finishedWork.treeBaseDuration,
|
||||
@@ -8993,6 +8996,25 @@ __DEV__ &&
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$20);
|
||||
}
|
||||
}
|
||||
function commitProfilerPostCommitImpl(
|
||||
finishedWork,
|
||||
current,
|
||||
commitTime,
|
||||
passiveEffectDuration
|
||||
) {
|
||||
var _finishedWork$memoize2 = finishedWork.memoizedProps;
|
||||
finishedWork = _finishedWork$memoize2.id;
|
||||
_finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit;
|
||||
current = null === current ? "mount" : "update";
|
||||
currentUpdateIsNested && (current = "nested-update");
|
||||
"function" === typeof _finishedWork$memoize2 &&
|
||||
_finishedWork$memoize2(
|
||||
finishedWork,
|
||||
current,
|
||||
passiveEffectDuration,
|
||||
commitTime
|
||||
);
|
||||
}
|
||||
function commitHostMount(finishedWork) {
|
||||
var type = finishedWork.type,
|
||||
props = finishedWork.memoizedProps,
|
||||
@@ -9006,8 +9028,8 @@ __DEV__ &&
|
||||
props,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$21);
|
||||
} catch (error$22) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$22);
|
||||
}
|
||||
}
|
||||
function isHostParent(fiber) {
|
||||
@@ -9296,7 +9318,6 @@ __DEV__ &&
|
||||
a: for (
|
||||
flags = finishedWork.stateNode.effectDuration,
|
||||
commitProfilerUpdate(finishedWork, current, commitTime, flags),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -9420,11 +9441,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$28) {
|
||||
} catch (error$29) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$28
|
||||
error$29
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -9435,11 +9456,11 @@ __DEV__ &&
|
||||
hostParent,
|
||||
deletedFiber.stateNode
|
||||
);
|
||||
} catch (error$29) {
|
||||
} catch (error$30) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$29
|
||||
error$30
|
||||
);
|
||||
}
|
||||
break;
|
||||
@@ -9449,11 +9470,11 @@ __DEV__ &&
|
||||
try {
|
||||
(_prevHostParent = finishedRoot.onDeleted) &&
|
||||
_prevHostParent(deletedFiber.stateNode);
|
||||
} catch (error$30) {
|
||||
} catch (error$31) {
|
||||
captureCommitPhaseError(
|
||||
deletedFiber,
|
||||
nearestMountedAncestor,
|
||||
error$30
|
||||
error$31
|
||||
);
|
||||
}
|
||||
null !== hostParent &&
|
||||
@@ -9717,11 +9738,11 @@ __DEV__ &&
|
||||
resetTextContent,
|
||||
existingHiddenCallbacks
|
||||
);
|
||||
} catch (error$24) {
|
||||
} catch (error$25) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$24
|
||||
error$25
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9741,11 +9762,11 @@ __DEV__ &&
|
||||
existingHiddenCallbacks,
|
||||
finishedWork
|
||||
);
|
||||
} catch (error$22) {
|
||||
} catch (error$23) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$22
|
||||
error$23
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9775,11 +9796,11 @@ __DEV__ &&
|
||||
existingHiddenCallbacks,
|
||||
flags
|
||||
);
|
||||
} catch (error$23) {
|
||||
} catch (error$24) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$23
|
||||
error$24
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9811,11 +9832,11 @@ __DEV__ &&
|
||||
void 0 !== suspenseCallback &&
|
||||
error$jscomp$0("Unexpected type for suspenseCallback.");
|
||||
}
|
||||
} catch (error$31) {
|
||||
} catch (error$32) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
error$31
|
||||
error$32
|
||||
);
|
||||
}
|
||||
flags = finishedWork.updateQueue;
|
||||
@@ -9876,11 +9897,11 @@ __DEV__ &&
|
||||
retryQueue.stateNode,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$25) {
|
||||
} catch (error$26) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$25
|
||||
error$26
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9901,11 +9922,11 @@ __DEV__ &&
|
||||
oldProps,
|
||||
retryQueue.memoizedProps
|
||||
);
|
||||
} catch (error$26) {
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(
|
||||
retryQueue,
|
||||
retryQueue.return,
|
||||
error$26
|
||||
error$27
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -9970,8 +9991,8 @@ __DEV__ &&
|
||||
if (flags & 2) {
|
||||
try {
|
||||
runWithFiberInDEV(finishedWork, commitPlacement, finishedWork);
|
||||
} catch (error$27) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$27);
|
||||
} catch (error$28) {
|
||||
captureCommitPhaseError(finishedWork, finishedWork.return, error$28);
|
||||
}
|
||||
finishedWork.flags &= -3;
|
||||
}
|
||||
@@ -10120,7 +10141,6 @@ __DEV__ &&
|
||||
commitTime,
|
||||
includeWorkInProgressEffects
|
||||
),
|
||||
enqueuePendingPassiveProfilerEffect(finishedWork),
|
||||
finishedWork = finishedWork.return;
|
||||
null !== finishedWork;
|
||||
|
||||
@@ -10238,6 +10258,45 @@ __DEV__ &&
|
||||
(retainCache(finishedWork),
|
||||
null != finishedRoot && releaseCache(finishedRoot)));
|
||||
break;
|
||||
case 12:
|
||||
recursivelyTraversePassiveMountEffects(
|
||||
finishedRoot,
|
||||
finishedWork,
|
||||
committedLanes,
|
||||
committedTransitions
|
||||
);
|
||||
if (flags & 2048 && executionContext & CommitContext) {
|
||||
finishedRoot = finishedWork.stateNode.passiveEffectDuration;
|
||||
try {
|
||||
runWithFiberInDEV(
|
||||
finishedWork,
|
||||
commitProfilerPostCommitImpl,
|
||||
finishedWork,
|
||||
finishedWork.alternate,
|
||||
commitTime,
|
||||
finishedRoot
|
||||
);
|
||||
} catch (error$21) {
|
||||
captureCommitPhaseError(
|
||||
finishedWork,
|
||||
finishedWork.return,
|
||||
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;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 23:
|
||||
break;
|
||||
case 22:
|
||||
@@ -10980,7 +11039,7 @@ __DEV__ &&
|
||||
check = check.value;
|
||||
try {
|
||||
if (!objectIs(getSnapshot(), check)) return !1;
|
||||
} catch (error$32) {
|
||||
} catch (error$33) {
|
||||
return !1;
|
||||
}
|
||||
}
|
||||
@@ -11263,8 +11322,8 @@ __DEV__ &&
|
||||
}
|
||||
workLoopSync();
|
||||
break;
|
||||
} catch (thrownValue$33) {
|
||||
handleThrow(root, thrownValue$33);
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
}
|
||||
while (1);
|
||||
lanes && root.shellSuspendCounter++;
|
||||
@@ -11413,8 +11472,8 @@ __DEV__ &&
|
||||
? workLoopSync()
|
||||
: workLoopConcurrent();
|
||||
break;
|
||||
} catch (thrownValue$34) {
|
||||
handleThrow(root, thrownValue$34);
|
||||
} catch (thrownValue$35) {
|
||||
handleThrow(root, thrownValue$35);
|
||||
}
|
||||
while (1);
|
||||
resetContextDependencies();
|
||||
@@ -11546,9 +11605,9 @@ __DEV__ &&
|
||||
workInProgress = null;
|
||||
return;
|
||||
}
|
||||
} catch (error$35) {
|
||||
} catch (error$36) {
|
||||
if (null !== returnFiber)
|
||||
throw ((workInProgress = returnFiber), error$35);
|
||||
throw ((workInProgress = returnFiber), error$36);
|
||||
workInProgressRootExitStatus = RootFatalErrored;
|
||||
logUncaughtError(
|
||||
root,
|
||||
@@ -11573,25 +11632,16 @@ __DEV__ &&
|
||||
}
|
||||
var current = completedWork.alternate;
|
||||
unitOfWork = completedWork.return;
|
||||
0 === (completedWork.mode & 2)
|
||||
? (current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
))
|
||||
: (startProfilerTimer(completedWork),
|
||||
(current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
)),
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(
|
||||
completedWork
|
||||
));
|
||||
startProfilerTimer(completedWork);
|
||||
current = runWithFiberInDEV(
|
||||
completedWork,
|
||||
completeWork,
|
||||
current,
|
||||
completedWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
0 !== (completedWork.mode & 2) &&
|
||||
stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork);
|
||||
if (null !== current) {
|
||||
workInProgress = current;
|
||||
return;
|
||||
@@ -11820,10 +11870,10 @@ __DEV__ &&
|
||||
if (null === rootWithPendingPassiveEffects)
|
||||
var JSCompiler_inline_result = !1;
|
||||
else {
|
||||
var transitions = pendingPassiveTransitions;
|
||||
priority = pendingPassiveTransitions;
|
||||
pendingPassiveTransitions = null;
|
||||
priority = rootWithPendingPassiveEffects;
|
||||
var lanes = pendingPassiveEffectsLanes;
|
||||
var root$jscomp$0 = rootWithPendingPassiveEffects,
|
||||
lanes = pendingPassiveEffectsLanes;
|
||||
rootWithPendingPassiveEffects = null;
|
||||
pendingPassiveEffectsLanes = 0;
|
||||
if (
|
||||
@@ -11837,68 +11887,26 @@ __DEV__ &&
|
||||
didScheduleUpdateDuringPassiveEffects = !1;
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= CommitContext;
|
||||
commitPassiveUnmountOnFiber(priority.current);
|
||||
commitPassiveUnmountOnFiber(root$jscomp$0.current);
|
||||
commitPassiveMountOnFiber(
|
||||
priority,
|
||||
priority.current,
|
||||
root$jscomp$0,
|
||||
root$jscomp$0.current,
|
||||
lanes,
|
||||
transitions
|
||||
priority
|
||||
);
|
||||
transitions = pendingPassiveProfilerEffects;
|
||||
pendingPassiveProfilerEffects = [];
|
||||
for (lanes = 0; lanes < transitions.length; lanes++) {
|
||||
var finishedWork = transitions[lanes];
|
||||
if (
|
||||
executionContext & CommitContext &&
|
||||
0 !== (finishedWork.flags & 4)
|
||||
)
|
||||
switch (finishedWork.tag) {
|
||||
case 12:
|
||||
var passiveEffectDuration =
|
||||
finishedWork.stateNode.passiveEffectDuration,
|
||||
_finishedWork$memoize = finishedWork.memoizedProps,
|
||||
id = _finishedWork$memoize.id,
|
||||
onPostCommit = _finishedWork$memoize.onPostCommit,
|
||||
commitTime$jscomp$0 = commitTime,
|
||||
phase =
|
||||
null === finishedWork.alternate ? "mount" : "update";
|
||||
currentUpdateIsNested && (phase = "nested-update");
|
||||
"function" === typeof onPostCommit &&
|
||||
onPostCommit(
|
||||
id,
|
||||
phase,
|
||||
passiveEffectDuration,
|
||||
commitTime$jscomp$0
|
||||
);
|
||||
var parentFiber = finishedWork.return;
|
||||
b: for (; null !== parentFiber; ) {
|
||||
switch (parentFiber.tag) {
|
||||
case 3:
|
||||
parentFiber.stateNode.passiveEffectDuration +=
|
||||
passiveEffectDuration;
|
||||
break b;
|
||||
case 12:
|
||||
parentFiber.stateNode.passiveEffectDuration +=
|
||||
passiveEffectDuration;
|
||||
break b;
|
||||
}
|
||||
parentFiber = parentFiber.return;
|
||||
}
|
||||
}
|
||||
}
|
||||
runWithFiberInDEV(
|
||||
priority.current,
|
||||
root$jscomp$0.current,
|
||||
legacyCommitDoubleInvokeEffectsInDEV,
|
||||
priority.current,
|
||||
root$jscomp$0.current,
|
||||
!0
|
||||
);
|
||||
executionContext = prevExecutionContext;
|
||||
flushSyncWorkAcrossRoots_impl(0, !1);
|
||||
didScheduleUpdateDuringPassiveEffects
|
||||
? priority === rootWithPassiveNestedUpdates
|
||||
? root$jscomp$0 === rootWithPassiveNestedUpdates
|
||||
? nestedPassiveUpdateCount++
|
||||
: ((nestedPassiveUpdateCount = 0),
|
||||
(rootWithPassiveNestedUpdates = priority))
|
||||
(rootWithPassiveNestedUpdates = root$jscomp$0))
|
||||
: (nestedPassiveUpdateCount = 0);
|
||||
didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects =
|
||||
!1;
|
||||
@@ -11907,7 +11915,7 @@ __DEV__ &&
|
||||
"function" === typeof injectedHook.onPostCommitFiberRoot
|
||||
)
|
||||
try {
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, priority);
|
||||
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
|
||||
} catch (err) {
|
||||
hasLoggedError ||
|
||||
((hasLoggedError = !0),
|
||||
@@ -11916,7 +11924,7 @@ __DEV__ &&
|
||||
err
|
||||
));
|
||||
}
|
||||
var stateNode = priority.current.stateNode;
|
||||
var stateNode = root$jscomp$0.current.stateNode;
|
||||
stateNode.effectDuration = 0;
|
||||
stateNode.passiveEffectDuration = 0;
|
||||
JSCompiler_inline_result = !0;
|
||||
@@ -11930,15 +11938,6 @@ __DEV__ &&
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function enqueuePendingPassiveProfilerEffect(fiber) {
|
||||
pendingPassiveProfilerEffects.push(fiber);
|
||||
rootDoesHavePassiveEffects ||
|
||||
((rootDoesHavePassiveEffects = !0),
|
||||
scheduleCallback(NormalPriority$1, function () {
|
||||
flushPassiveEffects();
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
||||
sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
|
||||
sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
|
||||
@@ -12939,7 +12938,7 @@ __DEV__ &&
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e$36) {
|
||||
} catch (e$37) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
JSCompiler_inline_result &&
|
||||
@@ -14804,7 +14803,6 @@ __DEV__ &&
|
||||
rootDoesHavePassiveEffects = !1,
|
||||
rootWithPendingPassiveEffects = null,
|
||||
pendingPassiveEffectsLanes = 0,
|
||||
pendingPassiveProfilerEffects = [],
|
||||
pendingPassiveEffectsRemainingLanes = 0,
|
||||
pendingPassiveTransitions = null,
|
||||
NESTED_UPDATE_LIMIT = 50,
|
||||
@@ -15033,11 +15031,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-0eab377a-20240916",
|
||||
version: "19.0.0-www-modern-f2df5694-20240916",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0eab377a-20240916"
|
||||
reconcilerVersion: "19.0.0-www-modern-f2df5694-20240916"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15057,7 +15055,7 @@ __DEV__ &&
|
||||
exports._Scheduler = Scheduler;
|
||||
exports.act = act;
|
||||
exports.create = function (element, options) {
|
||||
var createNodeMock = JSCompiler_object_inline_createNodeMock_1115,
|
||||
var createNodeMock = JSCompiler_object_inline_createNodeMock_1119,
|
||||
isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT,
|
||||
isConcurrent = isConcurrentOnly,
|
||||
isStrictMode = !1;
|
||||
@@ -15172,5 +15170,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0eab377a-20240916";
|
||||
exports.version = "19.0.0-www-modern-f2df5694-20240916";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-classic-0eab377a-20240916
|
||||
19.0.0-www-classic-f2df5694-20240916
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-modern-0eab377a-20240916
|
||||
19.0.0-www-modern-f2df5694-20240916
|
||||
Reference in New Issue
Block a user