react-dom 19.1.0-canary-0a82580b-20250203 → 19.1.0-canary-d85cf3e5-20250205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +377 -361
- package/cjs/react-dom-client.production.js +214 -191
- package/cjs/react-dom-profiling.development.js +377 -361
- package/cjs/react-dom-profiling.profiling.js +214 -191
- package/cjs/react-dom-server-legacy.browser.development.js +73 -28
- package/cjs/react-dom-server-legacy.browser.production.js +97 -52
- package/cjs/react-dom-server-legacy.node.development.js +73 -28
- package/cjs/react-dom-server-legacy.node.production.js +97 -52
- package/cjs/react-dom-server.browser.development.js +90 -38
- package/cjs/react-dom-server.browser.production.js +94 -39
- package/cjs/react-dom-server.bun.development.js +91 -37
- package/cjs/react-dom-server.bun.production.js +94 -42
- package/cjs/react-dom-server.edge.development.js +90 -38
- package/cjs/react-dom-server.edge.production.js +97 -42
- package/cjs/react-dom-server.node.development.js +90 -38
- package/cjs/react-dom-server.node.production.js +97 -42
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -423,11 +423,7 @@
|
|
423
423
|
break;
|
424
424
|
default:
|
425
425
|
if (
|
426
|
-
((
|
427
|
-
8 === nextRootContext
|
428
|
-
? nextRootInstance.parentNode
|
429
|
-
: nextRootInstance),
|
430
|
-
(nextRootContext = nextRootInstance.tagName),
|
426
|
+
((nextRootContext = nextRootInstance.tagName),
|
431
427
|
(nextRootInstance = nextRootInstance.namespaceURI))
|
432
428
|
)
|
433
429
|
(nextRootInstance = getOwnHostContext(nextRootInstance)),
|
@@ -8856,32 +8852,32 @@
|
|
8856
8852
|
return current;
|
8857
8853
|
}
|
8858
8854
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
8859
|
-
var
|
8860
|
-
var
|
8855
|
+
var JSCompiler_object_inline_digest_2412;
|
8856
|
+
var JSCompiler_object_inline_stack_2413 = workInProgress.pendingProps;
|
8861
8857
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
8862
|
-
var
|
8858
|
+
var JSCompiler_object_inline_componentStack_2414 = !1;
|
8863
8859
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
8864
|
-
(
|
8865
|
-
(
|
8860
|
+
(JSCompiler_object_inline_digest_2412 = didSuspend) ||
|
8861
|
+
(JSCompiler_object_inline_digest_2412 =
|
8866
8862
|
null !== current && null === current.memoizedState
|
8867
8863
|
? !1
|
8868
8864
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
8869
|
-
|
8870
|
-
((
|
8865
|
+
JSCompiler_object_inline_digest_2412 &&
|
8866
|
+
((JSCompiler_object_inline_componentStack_2414 = !0),
|
8871
8867
|
(workInProgress.flags &= -129));
|
8872
|
-
|
8868
|
+
JSCompiler_object_inline_digest_2412 = 0 !== (workInProgress.flags & 32);
|
8873
8869
|
workInProgress.flags &= -33;
|
8874
8870
|
if (null === current) {
|
8875
8871
|
if (isHydrating) {
|
8876
|
-
|
8872
|
+
JSCompiler_object_inline_componentStack_2414
|
8877
8873
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
8878
8874
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
8879
8875
|
if (isHydrating) {
|
8880
|
-
var
|
8876
|
+
var JSCompiler_object_inline_message_2411 = nextHydratableInstance;
|
8881
8877
|
var JSCompiler_temp;
|
8882
|
-
if (!(JSCompiler_temp = !
|
8878
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2411)) {
|
8883
8879
|
c: {
|
8884
|
-
var instance =
|
8880
|
+
var instance = JSCompiler_object_inline_message_2411;
|
8885
8881
|
for (
|
8886
8882
|
JSCompiler_temp = rootOrSingletonContext;
|
8887
8883
|
8 !== instance.nodeType;
|
@@ -8923,77 +8919,77 @@
|
|
8923
8919
|
JSCompiler_temp &&
|
8924
8920
|
(warnNonHydratedInstance(
|
8925
8921
|
workInProgress,
|
8926
|
-
|
8922
|
+
JSCompiler_object_inline_message_2411
|
8927
8923
|
),
|
8928
8924
|
throwOnHydrationMismatch(workInProgress));
|
8929
8925
|
}
|
8930
|
-
|
8926
|
+
JSCompiler_object_inline_message_2411 = workInProgress.memoizedState;
|
8931
8927
|
if (
|
8932
|
-
null !==
|
8933
|
-
((
|
8934
|
-
|
8935
|
-
null !==
|
8928
|
+
null !== JSCompiler_object_inline_message_2411 &&
|
8929
|
+
((JSCompiler_object_inline_message_2411 =
|
8930
|
+
JSCompiler_object_inline_message_2411.dehydrated),
|
8931
|
+
null !== JSCompiler_object_inline_message_2411)
|
8936
8932
|
)
|
8937
8933
|
return (
|
8938
|
-
isSuspenseInstanceFallback(
|
8934
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2411)
|
8939
8935
|
? (workInProgress.lanes = 32)
|
8940
8936
|
: (workInProgress.lanes = 536870912),
|
8941
8937
|
null
|
8942
8938
|
);
|
8943
8939
|
popSuspenseHandler(workInProgress);
|
8944
8940
|
}
|
8945
|
-
|
8946
|
-
|
8947
|
-
|
8948
|
-
|
8949
|
-
if (
|
8941
|
+
JSCompiler_object_inline_message_2411 =
|
8942
|
+
JSCompiler_object_inline_stack_2413.children;
|
8943
|
+
JSCompiler_object_inline_stack_2413 =
|
8944
|
+
JSCompiler_object_inline_stack_2413.fallback;
|
8945
|
+
if (JSCompiler_object_inline_componentStack_2414)
|
8950
8946
|
return (
|
8951
8947
|
reuseSuspenseHandlerOnStack(workInProgress),
|
8952
|
-
(
|
8948
|
+
(JSCompiler_object_inline_componentStack_2414 =
|
8953
8949
|
workInProgress.mode),
|
8954
|
-
(
|
8950
|
+
(JSCompiler_object_inline_message_2411 =
|
8955
8951
|
mountWorkInProgressOffscreenFiber(
|
8956
8952
|
{
|
8957
8953
|
mode: "hidden",
|
8958
|
-
children:
|
8954
|
+
children: JSCompiler_object_inline_message_2411
|
8959
8955
|
},
|
8960
|
-
|
8956
|
+
JSCompiler_object_inline_componentStack_2414
|
8961
8957
|
)),
|
8962
|
-
(
|
8963
|
-
|
8964
|
-
|
8958
|
+
(JSCompiler_object_inline_stack_2413 = createFiberFromFragment(
|
8959
|
+
JSCompiler_object_inline_stack_2413,
|
8960
|
+
JSCompiler_object_inline_componentStack_2414,
|
8965
8961
|
renderLanes,
|
8966
8962
|
null
|
8967
8963
|
)),
|
8968
|
-
(
|
8969
|
-
(
|
8970
|
-
(
|
8971
|
-
|
8972
|
-
(workInProgress.child =
|
8973
|
-
(
|
8964
|
+
(JSCompiler_object_inline_message_2411.return = workInProgress),
|
8965
|
+
(JSCompiler_object_inline_stack_2413.return = workInProgress),
|
8966
|
+
(JSCompiler_object_inline_message_2411.sibling =
|
8967
|
+
JSCompiler_object_inline_stack_2413),
|
8968
|
+
(workInProgress.child = JSCompiler_object_inline_message_2411),
|
8969
|
+
(JSCompiler_object_inline_componentStack_2414 =
|
8974
8970
|
workInProgress.child),
|
8975
|
-
(
|
8971
|
+
(JSCompiler_object_inline_componentStack_2414.memoizedState =
|
8976
8972
|
mountSuspenseOffscreenState(renderLanes)),
|
8977
|
-
(
|
8973
|
+
(JSCompiler_object_inline_componentStack_2414.childLanes =
|
8978
8974
|
getRemainingWorkInPrimaryTree(
|
8979
8975
|
current,
|
8980
|
-
|
8976
|
+
JSCompiler_object_inline_digest_2412,
|
8981
8977
|
renderLanes
|
8982
8978
|
)),
|
8983
8979
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
8984
|
-
|
8980
|
+
JSCompiler_object_inline_stack_2413
|
8985
8981
|
);
|
8986
8982
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
8987
8983
|
return mountSuspensePrimaryChildren(
|
8988
8984
|
workInProgress,
|
8989
|
-
|
8985
|
+
JSCompiler_object_inline_message_2411
|
8990
8986
|
);
|
8991
8987
|
}
|
8992
8988
|
var prevState = current.memoizedState;
|
8993
8989
|
if (
|
8994
8990
|
null !== prevState &&
|
8995
|
-
((
|
8996
|
-
null !==
|
8991
|
+
((JSCompiler_object_inline_message_2411 = prevState.dehydrated),
|
8992
|
+
null !== JSCompiler_object_inline_message_2411)
|
8997
8993
|
) {
|
8998
8994
|
if (didSuspend)
|
8999
8995
|
workInProgress.flags & 256
|
@@ -9010,94 +9006,94 @@
|
|
9010
9006
|
(workInProgress.flags |= 128),
|
9011
9007
|
(workInProgress = null))
|
9012
9008
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
9013
|
-
(
|
9014
|
-
|
9015
|
-
(
|
9016
|
-
(
|
9009
|
+
(JSCompiler_object_inline_componentStack_2414 =
|
9010
|
+
JSCompiler_object_inline_stack_2413.fallback),
|
9011
|
+
(JSCompiler_object_inline_message_2411 = workInProgress.mode),
|
9012
|
+
(JSCompiler_object_inline_stack_2413 =
|
9017
9013
|
mountWorkInProgressOffscreenFiber(
|
9018
9014
|
{
|
9019
9015
|
mode: "visible",
|
9020
|
-
children:
|
9016
|
+
children: JSCompiler_object_inline_stack_2413.children
|
9021
9017
|
},
|
9022
|
-
|
9018
|
+
JSCompiler_object_inline_message_2411
|
9023
9019
|
)),
|
9024
|
-
(
|
9020
|
+
(JSCompiler_object_inline_componentStack_2414 =
|
9025
9021
|
createFiberFromFragment(
|
9026
|
-
|
9027
|
-
|
9022
|
+
JSCompiler_object_inline_componentStack_2414,
|
9023
|
+
JSCompiler_object_inline_message_2411,
|
9028
9024
|
renderLanes,
|
9029
9025
|
null
|
9030
9026
|
)),
|
9031
|
-
(
|
9032
|
-
(
|
9033
|
-
(
|
9027
|
+
(JSCompiler_object_inline_componentStack_2414.flags |= 2),
|
9028
|
+
(JSCompiler_object_inline_stack_2413.return = workInProgress),
|
9029
|
+
(JSCompiler_object_inline_componentStack_2414.return =
|
9034
9030
|
workInProgress),
|
9035
|
-
(
|
9036
|
-
|
9037
|
-
(workInProgress.child =
|
9031
|
+
(JSCompiler_object_inline_stack_2413.sibling =
|
9032
|
+
JSCompiler_object_inline_componentStack_2414),
|
9033
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2413),
|
9038
9034
|
reconcileChildFibers(
|
9039
9035
|
workInProgress,
|
9040
9036
|
current.child,
|
9041
9037
|
null,
|
9042
9038
|
renderLanes
|
9043
9039
|
),
|
9044
|
-
(
|
9045
|
-
(
|
9040
|
+
(JSCompiler_object_inline_stack_2413 = workInProgress.child),
|
9041
|
+
(JSCompiler_object_inline_stack_2413.memoizedState =
|
9046
9042
|
mountSuspenseOffscreenState(renderLanes)),
|
9047
|
-
(
|
9043
|
+
(JSCompiler_object_inline_stack_2413.childLanes =
|
9048
9044
|
getRemainingWorkInPrimaryTree(
|
9049
9045
|
current,
|
9050
|
-
|
9046
|
+
JSCompiler_object_inline_digest_2412,
|
9051
9047
|
renderLanes
|
9052
9048
|
)),
|
9053
9049
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9054
9050
|
(workInProgress =
|
9055
|
-
|
9051
|
+
JSCompiler_object_inline_componentStack_2414));
|
9056
9052
|
else if (
|
9057
9053
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
9058
9054
|
isHydrating &&
|
9059
9055
|
console.error(
|
9060
9056
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
9061
9057
|
),
|
9062
|
-
isSuspenseInstanceFallback(
|
9058
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2411))
|
9063
9059
|
) {
|
9064
|
-
|
9065
|
-
|
9066
|
-
|
9067
|
-
if (
|
9068
|
-
JSCompiler_temp =
|
9069
|
-
var message =
|
9070
|
-
instance =
|
9071
|
-
var componentStack =
|
9060
|
+
JSCompiler_object_inline_digest_2412 =
|
9061
|
+
JSCompiler_object_inline_message_2411.nextSibling &&
|
9062
|
+
JSCompiler_object_inline_message_2411.nextSibling.dataset;
|
9063
|
+
if (JSCompiler_object_inline_digest_2412) {
|
9064
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2412.dgst;
|
9065
|
+
var message = JSCompiler_object_inline_digest_2412.msg;
|
9066
|
+
instance = JSCompiler_object_inline_digest_2412.stck;
|
9067
|
+
var componentStack = JSCompiler_object_inline_digest_2412.cstck;
|
9072
9068
|
}
|
9073
|
-
|
9074
|
-
|
9075
|
-
|
9076
|
-
JSCompiler_temp =
|
9069
|
+
JSCompiler_object_inline_message_2411 = message;
|
9070
|
+
JSCompiler_object_inline_digest_2412 = JSCompiler_temp;
|
9071
|
+
JSCompiler_object_inline_stack_2413 = instance;
|
9072
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2414 =
|
9077
9073
|
componentStack;
|
9078
|
-
|
9079
|
-
|
9080
|
-
? Error(
|
9074
|
+
JSCompiler_object_inline_componentStack_2414 =
|
9075
|
+
JSCompiler_object_inline_message_2411
|
9076
|
+
? Error(JSCompiler_object_inline_message_2411)
|
9081
9077
|
: Error(
|
9082
9078
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
9083
9079
|
);
|
9084
|
-
|
9085
|
-
|
9086
|
-
|
9087
|
-
|
9088
|
-
|
9080
|
+
JSCompiler_object_inline_componentStack_2414.stack =
|
9081
|
+
JSCompiler_object_inline_stack_2413 || "";
|
9082
|
+
JSCompiler_object_inline_componentStack_2414.digest =
|
9083
|
+
JSCompiler_object_inline_digest_2412;
|
9084
|
+
JSCompiler_object_inline_digest_2412 =
|
9089
9085
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
9090
|
-
|
9091
|
-
value:
|
9086
|
+
JSCompiler_object_inline_stack_2413 = {
|
9087
|
+
value: JSCompiler_object_inline_componentStack_2414,
|
9092
9088
|
source: null,
|
9093
|
-
stack:
|
9089
|
+
stack: JSCompiler_object_inline_digest_2412
|
9094
9090
|
};
|
9095
|
-
"string" === typeof
|
9091
|
+
"string" === typeof JSCompiler_object_inline_digest_2412 &&
|
9096
9092
|
CapturedStacks.set(
|
9097
|
-
|
9098
|
-
|
9093
|
+
JSCompiler_object_inline_componentStack_2414,
|
9094
|
+
JSCompiler_object_inline_stack_2413
|
9099
9095
|
);
|
9100
|
-
queueHydrationError(
|
9096
|
+
queueHydrationError(JSCompiler_object_inline_stack_2413);
|
9101
9097
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9102
9098
|
current,
|
9103
9099
|
workInProgress,
|
@@ -9111,44 +9107,44 @@
|
|
9111
9107
|
renderLanes,
|
9112
9108
|
!1
|
9113
9109
|
),
|
9114
|
-
(
|
9110
|
+
(JSCompiler_object_inline_digest_2412 =
|
9115
9111
|
0 !== (renderLanes & current.childLanes)),
|
9116
|
-
didReceiveUpdate ||
|
9112
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2412)
|
9117
9113
|
) {
|
9118
|
-
|
9114
|
+
JSCompiler_object_inline_digest_2412 = workInProgressRoot;
|
9119
9115
|
if (
|
9120
|
-
null !==
|
9121
|
-
((
|
9122
|
-
(
|
9123
|
-
0 !== (
|
9116
|
+
null !== JSCompiler_object_inline_digest_2412 &&
|
9117
|
+
((JSCompiler_object_inline_stack_2413 = renderLanes & -renderLanes),
|
9118
|
+
(JSCompiler_object_inline_stack_2413 =
|
9119
|
+
0 !== (JSCompiler_object_inline_stack_2413 & 42)
|
9124
9120
|
? 1
|
9125
9121
|
: getBumpedLaneForHydrationByLane(
|
9126
|
-
|
9122
|
+
JSCompiler_object_inline_stack_2413
|
9127
9123
|
)),
|
9128
|
-
(
|
9124
|
+
(JSCompiler_object_inline_stack_2413 =
|
9129
9125
|
0 !==
|
9130
|
-
(
|
9131
|
-
(
|
9126
|
+
(JSCompiler_object_inline_stack_2413 &
|
9127
|
+
(JSCompiler_object_inline_digest_2412.suspendedLanes |
|
9132
9128
|
renderLanes))
|
9133
9129
|
? 0
|
9134
|
-
:
|
9135
|
-
0 !==
|
9136
|
-
|
9130
|
+
: JSCompiler_object_inline_stack_2413),
|
9131
|
+
0 !== JSCompiler_object_inline_stack_2413 &&
|
9132
|
+
JSCompiler_object_inline_stack_2413 !== prevState.retryLane)
|
9137
9133
|
)
|
9138
9134
|
throw (
|
9139
|
-
((prevState.retryLane =
|
9135
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2413),
|
9140
9136
|
enqueueConcurrentRenderForLane(
|
9141
9137
|
current,
|
9142
|
-
|
9138
|
+
JSCompiler_object_inline_stack_2413
|
9143
9139
|
),
|
9144
9140
|
scheduleUpdateOnFiber(
|
9145
|
-
|
9141
|
+
JSCompiler_object_inline_digest_2412,
|
9146
9142
|
current,
|
9147
|
-
|
9143
|
+
JSCompiler_object_inline_stack_2413
|
9148
9144
|
),
|
9149
9145
|
SelectiveHydrationException)
|
9150
9146
|
);
|
9151
|
-
|
9147
|
+
JSCompiler_object_inline_message_2411.data ===
|
9152
9148
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
9153
9149
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
9154
9150
|
current,
|
@@ -9156,14 +9152,14 @@
|
|
9156
9152
|
renderLanes
|
9157
9153
|
);
|
9158
9154
|
} else
|
9159
|
-
|
9155
|
+
JSCompiler_object_inline_message_2411.data ===
|
9160
9156
|
SUSPENSE_PENDING_START_DATA
|
9161
9157
|
? ((workInProgress.flags |= 192),
|
9162
9158
|
(workInProgress.child = current.child),
|
9163
9159
|
(workInProgress = null))
|
9164
9160
|
: ((current = prevState.treeContext),
|
9165
9161
|
(nextHydratableInstance = getNextHydratable(
|
9166
|
-
|
9162
|
+
JSCompiler_object_inline_message_2411.nextSibling
|
9167
9163
|
)),
|
9168
9164
|
(hydrationParentFiber = workInProgress),
|
9169
9165
|
(isHydrating = !0),
|
@@ -9181,57 +9177,57 @@
|
|
9181
9177
|
(treeContextProvider = workInProgress)),
|
9182
9178
|
(workInProgress = mountSuspensePrimaryChildren(
|
9183
9179
|
workInProgress,
|
9184
|
-
|
9180
|
+
JSCompiler_object_inline_stack_2413.children
|
9185
9181
|
)),
|
9186
9182
|
(workInProgress.flags |= 4096));
|
9187
9183
|
return workInProgress;
|
9188
9184
|
}
|
9189
|
-
if (
|
9185
|
+
if (JSCompiler_object_inline_componentStack_2414)
|
9190
9186
|
return (
|
9191
9187
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9192
|
-
(
|
9193
|
-
|
9194
|
-
(
|
9188
|
+
(JSCompiler_object_inline_componentStack_2414 =
|
9189
|
+
JSCompiler_object_inline_stack_2413.fallback),
|
9190
|
+
(JSCompiler_object_inline_message_2411 = workInProgress.mode),
|
9195
9191
|
(JSCompiler_temp = current.child),
|
9196
9192
|
(instance = JSCompiler_temp.sibling),
|
9197
|
-
(
|
9193
|
+
(JSCompiler_object_inline_stack_2413 = createWorkInProgress(
|
9198
9194
|
JSCompiler_temp,
|
9199
9195
|
{
|
9200
9196
|
mode: "hidden",
|
9201
|
-
children:
|
9197
|
+
children: JSCompiler_object_inline_stack_2413.children
|
9202
9198
|
}
|
9203
9199
|
)),
|
9204
|
-
(
|
9200
|
+
(JSCompiler_object_inline_stack_2413.subtreeFlags =
|
9205
9201
|
JSCompiler_temp.subtreeFlags & 65011712),
|
9206
9202
|
null !== instance
|
9207
|
-
? (
|
9203
|
+
? (JSCompiler_object_inline_componentStack_2414 =
|
9208
9204
|
createWorkInProgress(
|
9209
9205
|
instance,
|
9210
|
-
|
9206
|
+
JSCompiler_object_inline_componentStack_2414
|
9211
9207
|
))
|
9212
|
-
: ((
|
9208
|
+
: ((JSCompiler_object_inline_componentStack_2414 =
|
9213
9209
|
createFiberFromFragment(
|
9214
|
-
|
9215
|
-
|
9210
|
+
JSCompiler_object_inline_componentStack_2414,
|
9211
|
+
JSCompiler_object_inline_message_2411,
|
9216
9212
|
renderLanes,
|
9217
9213
|
null
|
9218
9214
|
)),
|
9219
|
-
(
|
9220
|
-
(
|
9215
|
+
(JSCompiler_object_inline_componentStack_2414.flags |= 2)),
|
9216
|
+
(JSCompiler_object_inline_componentStack_2414.return =
|
9221
9217
|
workInProgress),
|
9222
|
-
(
|
9223
|
-
(
|
9224
|
-
|
9225
|
-
(workInProgress.child =
|
9226
|
-
(
|
9227
|
-
|
9228
|
-
(
|
9229
|
-
(
|
9230
|
-
null ===
|
9231
|
-
? (
|
9218
|
+
(JSCompiler_object_inline_stack_2413.return = workInProgress),
|
9219
|
+
(JSCompiler_object_inline_stack_2413.sibling =
|
9220
|
+
JSCompiler_object_inline_componentStack_2414),
|
9221
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2413),
|
9222
|
+
(JSCompiler_object_inline_stack_2413 =
|
9223
|
+
JSCompiler_object_inline_componentStack_2414),
|
9224
|
+
(JSCompiler_object_inline_componentStack_2414 = workInProgress.child),
|
9225
|
+
(JSCompiler_object_inline_message_2411 = current.child.memoizedState),
|
9226
|
+
null === JSCompiler_object_inline_message_2411
|
9227
|
+
? (JSCompiler_object_inline_message_2411 =
|
9232
9228
|
mountSuspenseOffscreenState(renderLanes))
|
9233
9229
|
: ((JSCompiler_temp =
|
9234
|
-
|
9230
|
+
JSCompiler_object_inline_message_2411.cachePool),
|
9235
9231
|
null !== JSCompiler_temp
|
9236
9232
|
? ((instance = CacheContext._currentValue),
|
9237
9233
|
(JSCompiler_temp =
|
@@ -9239,37 +9235,37 @@
|
|
9239
9235
|
? { parent: instance, pool: instance }
|
9240
9236
|
: JSCompiler_temp))
|
9241
9237
|
: (JSCompiler_temp = getSuspendedCache()),
|
9242
|
-
(
|
9238
|
+
(JSCompiler_object_inline_message_2411 = {
|
9243
9239
|
baseLanes:
|
9244
|
-
|
9240
|
+
JSCompiler_object_inline_message_2411.baseLanes | renderLanes,
|
9245
9241
|
cachePool: JSCompiler_temp
|
9246
9242
|
})),
|
9247
|
-
(
|
9248
|
-
|
9249
|
-
(
|
9243
|
+
(JSCompiler_object_inline_componentStack_2414.memoizedState =
|
9244
|
+
JSCompiler_object_inline_message_2411),
|
9245
|
+
(JSCompiler_object_inline_componentStack_2414.childLanes =
|
9250
9246
|
getRemainingWorkInPrimaryTree(
|
9251
9247
|
current,
|
9252
|
-
|
9248
|
+
JSCompiler_object_inline_digest_2412,
|
9253
9249
|
renderLanes
|
9254
9250
|
)),
|
9255
9251
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9256
|
-
|
9252
|
+
JSCompiler_object_inline_stack_2413
|
9257
9253
|
);
|
9258
9254
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9259
9255
|
renderLanes = current.child;
|
9260
9256
|
current = renderLanes.sibling;
|
9261
9257
|
renderLanes = createWorkInProgress(renderLanes, {
|
9262
9258
|
mode: "visible",
|
9263
|
-
children:
|
9259
|
+
children: JSCompiler_object_inline_stack_2413.children
|
9264
9260
|
});
|
9265
9261
|
renderLanes.return = workInProgress;
|
9266
9262
|
renderLanes.sibling = null;
|
9267
9263
|
null !== current &&
|
9268
|
-
((
|
9269
|
-
null ===
|
9264
|
+
((JSCompiler_object_inline_digest_2412 = workInProgress.deletions),
|
9265
|
+
null === JSCompiler_object_inline_digest_2412
|
9270
9266
|
? ((workInProgress.deletions = [current]),
|
9271
9267
|
(workInProgress.flags |= 16))
|
9272
|
-
:
|
9268
|
+
: JSCompiler_object_inline_digest_2412.push(current));
|
9273
9269
|
workInProgress.child = renderLanes;
|
9274
9270
|
workInProgress.memoizedState = null;
|
9275
9271
|
return renderLanes;
|
@@ -9809,10 +9805,10 @@
|
|
9809
9805
|
current.$$typeof === REACT_LAZY_TYPE &&
|
9810
9806
|
(workInProgress =
|
9811
9807
|
" Did you wrap a component in React.lazy() more than once?");
|
9812
|
-
|
9808
|
+
renderLanes = getComponentNameFromType(current) || current;
|
9813
9809
|
throw Error(
|
9814
9810
|
"Element type is invalid. Received a promise that resolves to: " +
|
9815
|
-
|
9811
|
+
renderLanes +
|
9816
9812
|
". Lazy element type must resolve to a class or function." +
|
9817
9813
|
workInProgress
|
9818
9814
|
);
|
@@ -9851,15 +9847,15 @@
|
|
9851
9847
|
throw Error(
|
9852
9848
|
"Should have a current fiber. This is a bug in React."
|
9853
9849
|
);
|
9854
|
-
|
9855
|
-
|
9856
|
-
|
9850
|
+
returnFiber = workInProgress.pendingProps;
|
9851
|
+
var prevState = workInProgress.memoizedState;
|
9852
|
+
prevSibling = prevState.element;
|
9857
9853
|
cloneUpdateQueue(current, workInProgress);
|
9858
|
-
processUpdateQueue(workInProgress,
|
9854
|
+
processUpdateQueue(workInProgress, returnFiber, null, renderLanes);
|
9859
9855
|
var nextState = workInProgress.memoizedState;
|
9860
|
-
|
9861
|
-
pushProvider(workInProgress, CacheContext,
|
9862
|
-
|
9856
|
+
returnFiber = nextState.cache;
|
9857
|
+
pushProvider(workInProgress, CacheContext, returnFiber);
|
9858
|
+
returnFiber !== prevState.cache &&
|
9863
9859
|
propagateContextChanges(
|
9864
9860
|
workInProgress,
|
9865
9861
|
[CacheContext],
|
@@ -9867,66 +9863,72 @@
|
|
9867
9863
|
!0
|
9868
9864
|
);
|
9869
9865
|
suspendIfUpdateReadFromEntangledAsyncAction();
|
9870
|
-
|
9871
|
-
if (
|
9866
|
+
returnFiber = nextState.element;
|
9867
|
+
if (prevState.isDehydrated)
|
9872
9868
|
if (
|
9873
|
-
((
|
9874
|
-
element:
|
9869
|
+
((prevState = {
|
9870
|
+
element: returnFiber,
|
9875
9871
|
isDehydrated: !1,
|
9876
9872
|
cache: nextState.cache
|
9877
9873
|
}),
|
9878
|
-
(workInProgress.updateQueue.baseState =
|
9879
|
-
(workInProgress.memoizedState =
|
9874
|
+
(workInProgress.updateQueue.baseState = prevState),
|
9875
|
+
(workInProgress.memoizedState = prevState),
|
9880
9876
|
workInProgress.flags & 256)
|
9881
9877
|
) {
|
9882
9878
|
workInProgress = mountHostRootWithoutHydrating(
|
9883
9879
|
current,
|
9884
9880
|
workInProgress,
|
9885
|
-
|
9881
|
+
returnFiber,
|
9886
9882
|
renderLanes
|
9887
9883
|
);
|
9888
9884
|
break a;
|
9889
|
-
} else if (
|
9890
|
-
|
9885
|
+
} else if (returnFiber !== prevSibling) {
|
9886
|
+
prevSibling = createCapturedValueAtFiber(
|
9891
9887
|
Error(
|
9892
9888
|
"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."
|
9893
9889
|
),
|
9894
9890
|
workInProgress
|
9895
9891
|
);
|
9896
|
-
queueHydrationError(
|
9892
|
+
queueHydrationError(prevSibling);
|
9897
9893
|
workInProgress = mountHostRootWithoutHydrating(
|
9898
9894
|
current,
|
9899
9895
|
workInProgress,
|
9900
|
-
|
9896
|
+
returnFiber,
|
9901
9897
|
renderLanes
|
9902
9898
|
);
|
9903
9899
|
break a;
|
9904
|
-
} else
|
9905
|
-
|
9906
|
-
|
9907
|
-
|
9908
|
-
|
9909
|
-
|
9910
|
-
|
9911
|
-
|
9912
|
-
|
9913
|
-
|
9914
|
-
|
9915
|
-
|
9916
|
-
|
9917
|
-
|
9918
|
-
|
9919
|
-
|
9920
|
-
|
9921
|
-
|
9922
|
-
|
9923
|
-
|
9924
|
-
|
9925
|
-
|
9926
|
-
|
9900
|
+
} else {
|
9901
|
+
current = workInProgress.stateNode.containerInfo;
|
9902
|
+
switch (current.nodeType) {
|
9903
|
+
case 9:
|
9904
|
+
current = current.body;
|
9905
|
+
break;
|
9906
|
+
default:
|
9907
|
+
current =
|
9908
|
+
"HTML" === current.nodeName
|
9909
|
+
? current.ownerDocument.body
|
9910
|
+
: current;
|
9911
|
+
}
|
9912
|
+
nextHydratableInstance = getNextHydratable(current.firstChild);
|
9913
|
+
hydrationParentFiber = workInProgress;
|
9914
|
+
isHydrating = !0;
|
9915
|
+
hydrationErrors = null;
|
9916
|
+
didSuspendOrErrorDEV = !1;
|
9917
|
+
hydrationDiffRootDEV = null;
|
9918
|
+
rootOrSingletonContext = !0;
|
9919
|
+
renderLanes = mountChildFibers(
|
9920
|
+
workInProgress,
|
9921
|
+
null,
|
9922
|
+
returnFiber,
|
9923
|
+
renderLanes
|
9924
|
+
);
|
9925
|
+
for (workInProgress.child = renderLanes; renderLanes; )
|
9926
|
+
(renderLanes.flags = (renderLanes.flags & -3) | 4096),
|
9927
|
+
(renderLanes = renderLanes.sibling);
|
9928
|
+
}
|
9927
9929
|
else {
|
9928
9930
|
resetHydrationState();
|
9929
|
-
if (
|
9931
|
+
if (returnFiber === prevSibling) {
|
9930
9932
|
workInProgress = bailoutOnAlreadyFinishedWork(
|
9931
9933
|
current,
|
9932
9934
|
workInProgress,
|
@@ -9937,7 +9939,7 @@
|
|
9937
9939
|
reconcileChildren(
|
9938
9940
|
current,
|
9939
9941
|
workInProgress,
|
9940
|
-
|
9942
|
+
returnFiber,
|
9941
9943
|
renderLanes
|
9942
9944
|
);
|
9943
9945
|
}
|
@@ -9948,26 +9950,26 @@
|
|
9948
9950
|
return (
|
9949
9951
|
markRef(current, workInProgress),
|
9950
9952
|
null === current
|
9951
|
-
? (
|
9953
|
+
? (renderLanes = getResource(
|
9952
9954
|
workInProgress.type,
|
9953
9955
|
null,
|
9954
9956
|
workInProgress.pendingProps,
|
9955
9957
|
null
|
9956
9958
|
))
|
9957
|
-
? (workInProgress.memoizedState =
|
9959
|
+
? (workInProgress.memoizedState = renderLanes)
|
9958
9960
|
: isHydrating ||
|
9959
|
-
((
|
9960
|
-
(
|
9961
|
+
((renderLanes = workInProgress.type),
|
9962
|
+
(current = workInProgress.pendingProps),
|
9961
9963
|
(returnFiber = requiredContext(
|
9962
9964
|
rootInstanceStackCursor.current
|
9963
9965
|
)),
|
9964
9966
|
(returnFiber =
|
9965
9967
|
getOwnerDocumentFromRootContainer(
|
9966
9968
|
returnFiber
|
9967
|
-
).createElement(
|
9969
|
+
).createElement(renderLanes)),
|
9968
9970
|
(returnFiber[internalInstanceKey] = workInProgress),
|
9969
|
-
(returnFiber[internalPropsKey] =
|
9970
|
-
setInitialProperties(returnFiber,
|
9971
|
+
(returnFiber[internalPropsKey] = current),
|
9972
|
+
setInitialProperties(returnFiber, renderLanes, current),
|
9971
9973
|
markNodeAsHoistable(returnFiber),
|
9972
9974
|
(workInProgress.stateNode = returnFiber))
|
9973
9975
|
: (workInProgress.memoizedState = getResource(
|
@@ -9983,31 +9985,35 @@
|
|
9983
9985
|
pushHostContext(workInProgress),
|
9984
9986
|
null === current &&
|
9985
9987
|
isHydrating &&
|
9986
|
-
((
|
9987
|
-
(
|
9988
|
-
(
|
9988
|
+
((returnFiber = requiredContext(rootInstanceStackCursor.current)),
|
9989
|
+
(prevSibling = getHostContext()),
|
9990
|
+
(returnFiber = workInProgress.stateNode =
|
9989
9991
|
resolveSingletonInstance(
|
9990
9992
|
workInProgress.type,
|
9991
9993
|
workInProgress.pendingProps,
|
9992
|
-
prevSibling,
|
9993
9994
|
returnFiber,
|
9995
|
+
prevSibling,
|
9994
9996
|
!1
|
9995
9997
|
)),
|
9996
9998
|
didSuspendOrErrorDEV ||
|
9997
|
-
((
|
9998
|
-
|
9999
|
+
((prevSibling = diffHydratedProperties(
|
10000
|
+
returnFiber,
|
9999
10001
|
workInProgress.type,
|
10000
10002
|
workInProgress.pendingProps,
|
10001
|
-
|
10003
|
+
prevSibling
|
10002
10004
|
)),
|
10003
|
-
null !==
|
10005
|
+
null !== prevSibling &&
|
10004
10006
|
(buildHydrationDiffNode(workInProgress, 0).serverProps =
|
10005
|
-
|
10007
|
+
prevSibling)),
|
10006
10008
|
(hydrationParentFiber = workInProgress),
|
10007
10009
|
(rootOrSingletonContext = !0),
|
10008
|
-
(
|
10009
|
-
|
10010
|
-
|
10010
|
+
(prevSibling = nextHydratableInstance),
|
10011
|
+
isSingletonScope(workInProgress.type)
|
10012
|
+
? ((previousHydratableOnEnteringScopedSingleton = prevSibling),
|
10013
|
+
(nextHydratableInstance = getNextHydratable(
|
10014
|
+
returnFiber.firstChild
|
10015
|
+
)))
|
10016
|
+
: (nextHydratableInstance = prevSibling)),
|
10011
10017
|
reconcileChildren(
|
10012
10018
|
current,
|
10013
10019
|
workInProgress,
|
@@ -10022,10 +10028,10 @@
|
|
10022
10028
|
return (
|
10023
10029
|
null === current &&
|
10024
10030
|
isHydrating &&
|
10025
|
-
((
|
10031
|
+
((prevState = getHostContext()),
|
10026
10032
|
(returnFiber = validateDOMNesting(
|
10027
10033
|
workInProgress.type,
|
10028
|
-
|
10034
|
+
prevState.ancestorInfo
|
10029
10035
|
)),
|
10030
10036
|
(prevSibling = nextHydratableInstance),
|
10031
10037
|
(nextState = !prevSibling) ||
|
@@ -10038,33 +10044,33 @@
|
|
10038
10044
|
null !== nextState
|
10039
10045
|
? ((workInProgress.stateNode = nextState),
|
10040
10046
|
didSuspendOrErrorDEV ||
|
10041
|
-
((
|
10047
|
+
((prevState = diffHydratedProperties(
|
10042
10048
|
nextState,
|
10043
10049
|
workInProgress.type,
|
10044
10050
|
workInProgress.pendingProps,
|
10045
|
-
|
10051
|
+
prevState
|
10046
10052
|
)),
|
10047
|
-
null !==
|
10053
|
+
null !== prevState &&
|
10048
10054
|
(buildHydrationDiffNode(workInProgress, 0).serverProps =
|
10049
|
-
|
10055
|
+
prevState)),
|
10050
10056
|
(hydrationParentFiber = workInProgress),
|
10051
10057
|
(nextHydratableInstance = getNextHydratable(
|
10052
10058
|
nextState.firstChild
|
10053
10059
|
)),
|
10054
10060
|
(rootOrSingletonContext = !1),
|
10055
|
-
(
|
10056
|
-
: (
|
10057
|
-
(nextState = !
|
10061
|
+
(prevState = !0))
|
10062
|
+
: (prevState = !1),
|
10063
|
+
(nextState = !prevState)),
|
10058
10064
|
nextState &&
|
10059
10065
|
(returnFiber &&
|
10060
10066
|
warnNonHydratedInstance(workInProgress, prevSibling),
|
10061
10067
|
throwOnHydrationMismatch(workInProgress))),
|
10062
10068
|
pushHostContext(workInProgress),
|
10063
10069
|
(prevSibling = workInProgress.type),
|
10064
|
-
(
|
10070
|
+
(prevState = workInProgress.pendingProps),
|
10065
10071
|
(nextState = null !== current ? current.memoizedProps : null),
|
10066
|
-
(returnFiber =
|
10067
|
-
shouldSetTextContent(prevSibling,
|
10072
|
+
(returnFiber = prevState.children),
|
10073
|
+
shouldSetTextContent(prevSibling, prevState)
|
10068
10074
|
? (returnFiber = null)
|
10069
10075
|
: null !== nextState &&
|
10070
10076
|
shouldSetTextContent(prevSibling, nextState) &&
|
@@ -10092,16 +10098,16 @@
|
|
10092
10098
|
return (
|
10093
10099
|
null === current &&
|
10094
10100
|
isHydrating &&
|
10095
|
-
((
|
10096
|
-
(
|
10097
|
-
(
|
10098
|
-
null !=
|
10099
|
-
? validateTextNesting(
|
10101
|
+
((renderLanes = workInProgress.pendingProps),
|
10102
|
+
(current = getHostContext().ancestorInfo.current),
|
10103
|
+
(renderLanes =
|
10104
|
+
null != current
|
10105
|
+
? validateTextNesting(renderLanes, current.tag)
|
10100
10106
|
: !0),
|
10101
|
-
(
|
10102
|
-
(returnFiber = !
|
10107
|
+
(current = nextHydratableInstance),
|
10108
|
+
(returnFiber = !current) ||
|
10103
10109
|
((returnFiber = canHydrateTextInstance(
|
10104
|
-
|
10110
|
+
current,
|
10105
10111
|
workInProgress.pendingProps,
|
10106
10112
|
rootOrSingletonContext
|
10107
10113
|
)),
|
@@ -10113,8 +10119,8 @@
|
|
10113
10119
|
: (returnFiber = !1),
|
10114
10120
|
(returnFiber = !returnFiber)),
|
10115
10121
|
returnFiber &&
|
10116
|
-
(
|
10117
|
-
warnNonHydratedInstance(workInProgress,
|
10122
|
+
(renderLanes &&
|
10123
|
+
warnNonHydratedInstance(workInProgress, current),
|
10118
10124
|
throwOnHydrationMismatch(workInProgress))),
|
10119
10125
|
null
|
10120
10126
|
);
|
@@ -10189,14 +10195,14 @@
|
|
10189
10195
|
return (
|
10190
10196
|
(returnFiber = workInProgress.type),
|
10191
10197
|
(prevSibling = workInProgress.pendingProps),
|
10192
|
-
(
|
10198
|
+
(prevState = prevSibling.value),
|
10193
10199
|
"value" in prevSibling ||
|
10194
10200
|
hasWarnedAboutUsingNoValuePropOnContextProvider ||
|
10195
10201
|
((hasWarnedAboutUsingNoValuePropOnContextProvider = !0),
|
10196
10202
|
console.error(
|
10197
10203
|
"The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"
|
10198
10204
|
)),
|
10199
|
-
pushProvider(workInProgress, returnFiber,
|
10205
|
+
pushProvider(workInProgress, returnFiber, prevState),
|
10200
10206
|
reconcileChildren(
|
10201
10207
|
current,
|
10202
10208
|
workInProgress,
|
@@ -10263,12 +10269,12 @@
|
|
10263
10269
|
? ((prevSibling = peekCacheFromPool()),
|
10264
10270
|
null === prevSibling &&
|
10265
10271
|
((prevSibling = workInProgressRoot),
|
10266
|
-
(
|
10267
|
-
(prevSibling.pooledCache =
|
10268
|
-
retainCache(
|
10269
|
-
null !==
|
10272
|
+
(prevState = createCache()),
|
10273
|
+
(prevSibling.pooledCache = prevState),
|
10274
|
+
retainCache(prevState),
|
10275
|
+
null !== prevState &&
|
10270
10276
|
(prevSibling.pooledCacheLanes |= renderLanes),
|
10271
|
-
(prevSibling =
|
10277
|
+
(prevSibling = prevState)),
|
10272
10278
|
(workInProgress.memoizedState = {
|
10273
10279
|
parent: returnFiber,
|
10274
10280
|
cache: prevSibling
|
@@ -10280,7 +10286,7 @@
|
|
10280
10286
|
processUpdateQueue(workInProgress, null, null, renderLanes),
|
10281
10287
|
suspendIfUpdateReadFromEntangledAsyncAction()),
|
10282
10288
|
(prevSibling = current.memoizedState),
|
10283
|
-
(
|
10289
|
+
(prevState = workInProgress.memoizedState),
|
10284
10290
|
prevSibling.parent !== returnFiber
|
10285
10291
|
? ((prevSibling = {
|
10286
10292
|
parent: returnFiber,
|
@@ -10292,7 +10298,7 @@
|
|
10292
10298
|
workInProgress.updateQueue.baseState =
|
10293
10299
|
prevSibling),
|
10294
10300
|
pushProvider(workInProgress, CacheContext, returnFiber))
|
10295
|
-
: ((returnFiber =
|
10301
|
+
: ((returnFiber = prevState.cache),
|
10296
10302
|
pushProvider(workInProgress, CacheContext, returnFiber),
|
10297
10303
|
returnFiber !== prevSibling.cache &&
|
10298
10304
|
propagateContextChanges(
|
@@ -10780,7 +10786,7 @@
|
|
10780
10786
|
5 === fiber.tag ||
|
10781
10787
|
3 === fiber.tag ||
|
10782
10788
|
26 === fiber.tag ||
|
10783
|
-
(27 === fiber.tag &&
|
10789
|
+
(27 === fiber.tag && isSingletonScope(fiber.type)) ||
|
10784
10790
|
4 === fiber.tag
|
10785
10791
|
);
|
10786
10792
|
}
|
@@ -10796,7 +10802,7 @@
|
|
10796
10802
|
5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;
|
10797
10803
|
|
10798
10804
|
) {
|
10799
|
-
if (27 === fiber.tag &&
|
10805
|
+
if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;
|
10800
10806
|
if (fiber.flags & 2) continue a;
|
10801
10807
|
if (null === fiber.child || 4 === fiber.tag) continue a;
|
10802
10808
|
else (fiber.child.return = fiber), (fiber = fiber.child);
|
@@ -10807,44 +10813,30 @@
|
|
10807
10813
|
function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
|
10808
10814
|
var tag = node.tag;
|
10809
10815
|
if (5 === tag || 6 === tag)
|
10810
|
-
|
10811
|
-
|
10812
|
-
|
10813
|
-
|
10814
|
-
|
10815
|
-
|
10816
|
-
|
10817
|
-
|
10818
|
-
|
10819
|
-
|
10820
|
-
|
10821
|
-
|
10822
|
-
parent.insertBefore(node, before);
|
10823
|
-
} else
|
10824
|
-
a: {
|
10825
|
-
switch (parent.nodeType) {
|
10826
|
-
case 8:
|
10827
|
-
before = parent.parentNode;
|
10828
|
-
before.insertBefore(node, parent);
|
10829
|
-
break a;
|
10830
|
-
case 9:
|
10831
|
-
before = parent.body;
|
10832
|
-
break;
|
10833
|
-
default:
|
10834
|
-
before =
|
10835
|
-
"HTML" === parent.nodeName
|
10816
|
+
(node = node.stateNode),
|
10817
|
+
before
|
10818
|
+
? (9 === parent.nodeType
|
10819
|
+
? parent.body
|
10820
|
+
: "HTML" === parent.nodeName
|
10821
|
+
? parent.ownerDocument.body
|
10822
|
+
: parent
|
10823
|
+
).insertBefore(node, before)
|
10824
|
+
: ((before =
|
10825
|
+
9 === parent.nodeType
|
10826
|
+
? parent.body
|
10827
|
+
: "HTML" === parent.nodeName
|
10836
10828
|
? parent.ownerDocument.body
|
10837
|
-
: parent
|
10838
|
-
|
10839
|
-
|
10840
|
-
|
10841
|
-
|
10842
|
-
|
10843
|
-
(before.onclick = noop$2);
|
10844
|
-
}
|
10829
|
+
: parent),
|
10830
|
+
before.appendChild(node),
|
10831
|
+
(parent = parent._reactRootContainer),
|
10832
|
+
(null !== parent && void 0 !== parent) ||
|
10833
|
+
null !== before.onclick ||
|
10834
|
+
(before.onclick = noop$2));
|
10845
10835
|
else if (
|
10846
10836
|
4 !== tag &&
|
10847
|
-
(27 === tag &&
|
10837
|
+
(27 === tag &&
|
10838
|
+
isSingletonScope(node.type) &&
|
10839
|
+
((parent = node.stateNode), (before = null)),
|
10848
10840
|
(node = node.child),
|
10849
10841
|
null !== node)
|
10850
10842
|
)
|
@@ -10864,7 +10856,7 @@
|
|
10864
10856
|
before ? parent.insertBefore(node, before) : parent.appendChild(node);
|
10865
10857
|
else if (
|
10866
10858
|
4 !== tag &&
|
10867
|
-
(27 === tag &&
|
10859
|
+
(27 === tag && isSingletonScope(node.type) && (parent = node.stateNode),
|
10868
10860
|
(node = node.child),
|
10869
10861
|
null !== node)
|
10870
10862
|
)
|
@@ -11336,7 +11328,7 @@
|
|
11336
11328
|
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
11337
11329
|
var prevHostParent = hostParent,
|
11338
11330
|
prevHostParentIsContainer = hostParentIsContainer;
|
11339
|
-
|
11331
|
+
isSingletonScope(deletedFiber.type) &&
|
11340
11332
|
((hostParent = deletedFiber.stateNode),
|
11341
11333
|
(hostParentIsContainer = !1));
|
11342
11334
|
recursivelyTraverseDeletionEffects(
|
@@ -11402,17 +11394,14 @@
|
|
11402
11394
|
null !== hostParent &&
|
11403
11395
|
(hostParentIsContainer
|
11404
11396
|
? ((finishedRoot = hostParent),
|
11405
|
-
(
|
11406
|
-
|
11407
|
-
|
11408
|
-
: 9 === finishedRoot.nodeType
|
11409
|
-
? clearSuspenseBoundary(finishedRoot.body, deletedFiber)
|
11397
|
+
clearSuspenseBoundary(
|
11398
|
+
9 === finishedRoot.nodeType
|
11399
|
+
? finishedRoot.body
|
11410
11400
|
: "HTML" === finishedRoot.nodeName
|
11411
|
-
?
|
11412
|
-
|
11413
|
-
|
11414
|
-
|
11415
|
-
: clearSuspenseBoundary(finishedRoot, deletedFiber),
|
11401
|
+
? finishedRoot.ownerDocument.body
|
11402
|
+
: finishedRoot,
|
11403
|
+
deletedFiber.stateNode
|
11404
|
+
),
|
11416
11405
|
retryIfBlockedOn(finishedRoot))
|
11417
11406
|
: clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
|
11418
11407
|
break;
|
@@ -11566,7 +11555,7 @@
|
|
11566
11555
|
a: for (; null !== parent; ) {
|
11567
11556
|
switch (parent.tag) {
|
11568
11557
|
case 27:
|
11569
|
-
if (
|
11558
|
+
if (isSingletonScope(parent.type)) {
|
11570
11559
|
hostParent = parent.stateNode;
|
11571
11560
|
hostParentIsContainer = !1;
|
11572
11561
|
break a;
|
@@ -13279,14 +13268,14 @@
|
|
13279
13268
|
function popToNextHostParent(fiber) {
|
13280
13269
|
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
|
13281
13270
|
switch (hydrationParentFiber.tag) {
|
13282
|
-
case 3:
|
13283
|
-
case 27:
|
13284
|
-
rootOrSingletonContext = !0;
|
13285
|
-
return;
|
13286
13271
|
case 5:
|
13287
13272
|
case 13:
|
13288
13273
|
rootOrSingletonContext = !1;
|
13289
13274
|
return;
|
13275
|
+
case 27:
|
13276
|
+
case 3:
|
13277
|
+
rootOrSingletonContext = !0;
|
13278
|
+
return;
|
13290
13279
|
default:
|
13291
13280
|
hydrationParentFiber = hydrationParentFiber.return;
|
13292
13281
|
}
|
@@ -13295,32 +13284,31 @@
|
|
13295
13284
|
if (fiber !== hydrationParentFiber) return !1;
|
13296
13285
|
if (!isHydrating)
|
13297
13286
|
return popToNextHostParent(fiber), (isHydrating = !0), !1;
|
13298
|
-
var
|
13287
|
+
var tag = fiber.tag,
|
13299
13288
|
JSCompiler_temp;
|
13300
|
-
if ((JSCompiler_temp = 3 !==
|
13301
|
-
if ((JSCompiler_temp = 5 ===
|
13289
|
+
if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {
|
13290
|
+
if ((JSCompiler_temp = 5 === tag))
|
13302
13291
|
(JSCompiler_temp = fiber.type),
|
13303
13292
|
(JSCompiler_temp =
|
13304
13293
|
!("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
|
13305
13294
|
shouldSetTextContent(fiber.type, fiber.memoizedProps));
|
13306
13295
|
JSCompiler_temp = !JSCompiler_temp;
|
13307
13296
|
}
|
13308
|
-
JSCompiler_temp &&
|
13309
|
-
|
13310
|
-
|
13311
|
-
|
13312
|
-
|
13313
|
-
|
13314
|
-
JSCompiler_temp
|
13315
|
-
shouldClear =
|
13297
|
+
if (JSCompiler_temp && nextHydratableInstance) {
|
13298
|
+
for (JSCompiler_temp = nextHydratableInstance; JSCompiler_temp; ) {
|
13299
|
+
var diffNode = buildHydrationDiffNode(fiber, 0),
|
13300
|
+
description =
|
13301
|
+
describeHydratableInstanceForDevWarnings(JSCompiler_temp);
|
13302
|
+
diffNode.serverTail.push(description);
|
13303
|
+
JSCompiler_temp =
|
13316
13304
|
"Suspense" === description.type
|
13317
|
-
? getNextHydratableInstanceAfterSuspenseInstance(
|
13318
|
-
: getNextHydratable(
|
13305
|
+
? getNextHydratableInstanceAfterSuspenseInstance(JSCompiler_temp)
|
13306
|
+
: getNextHydratable(JSCompiler_temp.nextSibling);
|
13319
13307
|
}
|
13320
13308
|
throwOnHydrationMismatch(fiber);
|
13321
13309
|
}
|
13322
13310
|
popToNextHostParent(fiber);
|
13323
|
-
if (13 ===
|
13311
|
+
if (13 === tag) {
|
13324
13312
|
fiber = fiber.memoizedState;
|
13325
13313
|
fiber = null !== fiber ? fiber.dehydrated : null;
|
13326
13314
|
if (!fiber)
|
@@ -13330,9 +13318,16 @@
|
|
13330
13318
|
nextHydratableInstance =
|
13331
13319
|
getNextHydratableInstanceAfterSuspenseInstance(fiber);
|
13332
13320
|
} else
|
13333
|
-
|
13334
|
-
?
|
13335
|
-
|
13321
|
+
27 === tag
|
13322
|
+
? ((tag = nextHydratableInstance),
|
13323
|
+
isSingletonScope(fiber.type)
|
13324
|
+
? ((fiber = previousHydratableOnEnteringScopedSingleton),
|
13325
|
+
(previousHydratableOnEnteringScopedSingleton = null),
|
13326
|
+
(nextHydratableInstance = fiber))
|
13327
|
+
: (nextHydratableInstance = tag))
|
13328
|
+
: (nextHydratableInstance = hydrationParentFiber
|
13329
|
+
? getNextHydratable(fiber.stateNode.nextSibling)
|
13330
|
+
: null);
|
13336
13331
|
return !0;
|
13337
13332
|
}
|
13338
13333
|
function resetHydrationState() {
|
@@ -16377,23 +16372,15 @@
|
|
16377
16372
|
var nodeTag = targetInst$jscomp$0.tag;
|
16378
16373
|
if (3 === nodeTag || 4 === nodeTag) {
|
16379
16374
|
var container = targetInst$jscomp$0.stateNode.containerInfo;
|
16380
|
-
if (
|
16381
|
-
container === targetContainer ||
|
16382
|
-
(8 === container.nodeType &&
|
16383
|
-
container.parentNode === targetContainer)
|
16384
|
-
)
|
16385
|
-
break;
|
16375
|
+
if (container === targetContainer) break;
|
16386
16376
|
if (4 === nodeTag)
|
16387
16377
|
for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
|
16388
16378
|
var grandTag = nodeTag.tag;
|
16389
|
-
if (
|
16390
|
-
|
16391
|
-
|
16392
|
-
|
16393
|
-
|
16394
|
-
grandTag.parentNode === targetContainer))
|
16395
|
-
)
|
16396
|
-
return;
|
16379
|
+
if (
|
16380
|
+
(3 === grandTag || 4 === grandTag) &&
|
16381
|
+
nodeTag.stateNode.containerInfo === targetContainer
|
16382
|
+
)
|
16383
|
+
return;
|
16397
16384
|
nodeTag = nodeTag.return;
|
16398
16385
|
}
|
16399
16386
|
for (; null !== container; ) {
|
@@ -19194,33 +19181,58 @@
|
|
19194
19181
|
function commitTextUpdate(textInstance, oldText, newText) {
|
19195
19182
|
textInstance.nodeValue = newText;
|
19196
19183
|
}
|
19184
|
+
function isSingletonScope(type) {
|
19185
|
+
return "head" === type;
|
19186
|
+
}
|
19197
19187
|
function removeChild(parentInstance, child) {
|
19198
19188
|
parentInstance.removeChild(child);
|
19199
19189
|
}
|
19200
19190
|
function removeChildFromContainer(container, child) {
|
19201
|
-
|
19202
|
-
|
19203
|
-
|
19204
|
-
|
19205
|
-
|
19206
|
-
|
19207
|
-
break;
|
19208
|
-
default:
|
19209
|
-
container =
|
19210
|
-
"HTML" === container.nodeName
|
19211
|
-
? container.ownerDocument.body
|
19212
|
-
: container;
|
19213
|
-
}
|
19214
|
-
container.removeChild(child);
|
19191
|
+
(9 === container.nodeType
|
19192
|
+
? container.body
|
19193
|
+
: "HTML" === container.nodeName
|
19194
|
+
? container.ownerDocument.body
|
19195
|
+
: container
|
19196
|
+
).removeChild(child);
|
19215
19197
|
}
|
19216
19198
|
function clearSuspenseBoundary(parentInstance, suspenseInstance) {
|
19217
19199
|
var node = suspenseInstance,
|
19200
|
+
possiblePreambleContribution = 0,
|
19218
19201
|
depth = 0;
|
19219
19202
|
do {
|
19220
19203
|
var nextNode = node.nextSibling;
|
19221
19204
|
parentInstance.removeChild(node);
|
19222
19205
|
if (nextNode && 8 === nextNode.nodeType)
|
19223
19206
|
if (((node = nextNode.data), node === SUSPENSE_END_DATA)) {
|
19207
|
+
if (
|
19208
|
+
0 < possiblePreambleContribution &&
|
19209
|
+
8 > possiblePreambleContribution
|
19210
|
+
) {
|
19211
|
+
node = possiblePreambleContribution;
|
19212
|
+
var ownerDocument = parentInstance.ownerDocument;
|
19213
|
+
node & PREAMBLE_CONTRIBUTION_HTML &&
|
19214
|
+
releaseSingletonInstance(ownerDocument.documentElement);
|
19215
|
+
node & PREAMBLE_CONTRIBUTION_BODY &&
|
19216
|
+
releaseSingletonInstance(ownerDocument.body);
|
19217
|
+
if (node & PREAMBLE_CONTRIBUTION_HEAD)
|
19218
|
+
for (
|
19219
|
+
node = ownerDocument.head,
|
19220
|
+
releaseSingletonInstance(node),
|
19221
|
+
ownerDocument = node.firstChild;
|
19222
|
+
ownerDocument;
|
19223
|
+
|
19224
|
+
) {
|
19225
|
+
var nextNode$jscomp$0 = ownerDocument.nextSibling,
|
19226
|
+
nodeName = ownerDocument.nodeName;
|
19227
|
+
ownerDocument[internalHoistableMarker] ||
|
19228
|
+
"SCRIPT" === nodeName ||
|
19229
|
+
"STYLE" === nodeName ||
|
19230
|
+
("LINK" === nodeName &&
|
19231
|
+
"stylesheet" === ownerDocument.rel.toLowerCase()) ||
|
19232
|
+
node.removeChild(ownerDocument);
|
19233
|
+
ownerDocument = nextNode$jscomp$0;
|
19234
|
+
}
|
19235
|
+
}
|
19224
19236
|
if (0 === depth) {
|
19225
19237
|
parentInstance.removeChild(nextNode);
|
19226
19238
|
retryIfBlockedOn(suspenseInstance);
|
@@ -19228,10 +19240,12 @@
|
|
19228
19240
|
}
|
19229
19241
|
depth--;
|
19230
19242
|
} else
|
19231
|
-
|
19232
|
-
|
19233
|
-
|
19234
|
-
depth
|
19243
|
+
node === SUSPENSE_START_DATA ||
|
19244
|
+
node === SUSPENSE_PENDING_START_DATA ||
|
19245
|
+
node === SUSPENSE_FALLBACK_START_DATA
|
19246
|
+
? depth++
|
19247
|
+
: (possiblePreambleContribution = node.charCodeAt(0) - 48);
|
19248
|
+
else possiblePreambleContribution = 0;
|
19235
19249
|
node = nextNode;
|
19236
19250
|
} while (node);
|
19237
19251
|
retryIfBlockedOn(suspenseInstance);
|
@@ -24219,6 +24233,9 @@
|
|
24219
24233
|
SUSPENSE_END_DATA = "/$",
|
24220
24234
|
SUSPENSE_PENDING_START_DATA = "$?",
|
24221
24235
|
SUSPENSE_FALLBACK_START_DATA = "$!",
|
24236
|
+
PREAMBLE_CONTRIBUTION_HTML = 1,
|
24237
|
+
PREAMBLE_CONTRIBUTION_BODY = 2,
|
24238
|
+
PREAMBLE_CONTRIBUTION_HEAD = 4,
|
24222
24239
|
FORM_STATE_IS_MATCHING = "F!",
|
24223
24240
|
FORM_STATE_IS_NOT_MATCHING = "F",
|
24224
24241
|
DOCUMENT_READY_STATE_COMPLETE = "complete",
|
@@ -24246,6 +24263,7 @@
|
|
24246
24263
|
.catch(handleErrorInNextTick);
|
24247
24264
|
}
|
24248
24265
|
: scheduleTimeout,
|
24266
|
+
previousHydratableOnEnteringScopedSingleton = null,
|
24249
24267
|
NotLoaded = 0,
|
24250
24268
|
Loaded = 1,
|
24251
24269
|
Errored = 2,
|
@@ -24661,11 +24679,11 @@
|
|
24661
24679
|
};
|
24662
24680
|
(function () {
|
24663
24681
|
var isomorphicReactPackageVersion = React.version;
|
24664
|
-
if ("19.1.0-canary-
|
24682
|
+
if ("19.1.0-canary-d85cf3e5-20250205" !== isomorphicReactPackageVersion)
|
24665
24683
|
throw Error(
|
24666
24684
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24667
24685
|
(isomorphicReactPackageVersion +
|
24668
|
-
"\n - react-dom: 19.1.0-canary-
|
24686
|
+
"\n - react-dom: 19.1.0-canary-d85cf3e5-20250205\nLearn more: https://react.dev/warnings/version-mismatch")
|
24669
24687
|
);
|
24670
24688
|
})();
|
24671
24689
|
("function" === typeof Map &&
|
@@ -24702,10 +24720,10 @@
|
|
24702
24720
|
!(function () {
|
24703
24721
|
var internals = {
|
24704
24722
|
bundleType: 1,
|
24705
|
-
version: "19.1.0-canary-
|
24723
|
+
version: "19.1.0-canary-d85cf3e5-20250205",
|
24706
24724
|
rendererPackageName: "react-dom",
|
24707
24725
|
currentDispatcherRef: ReactSharedInternals,
|
24708
|
-
reconcilerVersion: "19.1.0-canary-
|
24726
|
+
reconcilerVersion: "19.1.0-canary-d85cf3e5-20250205"
|
24709
24727
|
};
|
24710
24728
|
internals.overrideHookState = overrideHookState;
|
24711
24729
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -24826,9 +24844,7 @@
|
|
24826
24844
|
null
|
24827
24845
|
);
|
24828
24846
|
container[internalContainerInstanceKey] = options.current;
|
24829
|
-
listenToAllSupportedEvents(
|
24830
|
-
8 === container.nodeType ? container.parentNode : container
|
24831
|
-
);
|
24847
|
+
listenToAllSupportedEvents(container);
|
24832
24848
|
return new ReactDOMRoot(options);
|
24833
24849
|
};
|
24834
24850
|
exports.flushSync = function (fn) {
|
@@ -25181,7 +25197,7 @@
|
|
25181
25197
|
exports.useFormStatus = function () {
|
25182
25198
|
return resolveDispatcher().useHostTransitionStatus();
|
25183
25199
|
};
|
25184
|
-
exports.version = "19.1.0-canary-
|
25200
|
+
exports.version = "19.1.0-canary-d85cf3e5-20250205";
|
25185
25201
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25186
25202
|
"function" ===
|
25187
25203
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|