react-dom 19.2.0-canary-ea05b750-20250408 → 19.2.0-canary-c44e4a25-20250409

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.
@@ -2100,14 +2100,14 @@ var isInputEventSupported = !1;
2100
2100
  if (canUseDOM) {
2101
2101
  var JSCompiler_inline_result$jscomp$300;
2102
2102
  if (canUseDOM) {
2103
- var isSupported$jscomp$inline_437 = "oninput" in document;
2104
- if (!isSupported$jscomp$inline_437) {
2105
- var element$jscomp$inline_438 = document.createElement("div");
2106
- element$jscomp$inline_438.setAttribute("oninput", "return;");
2107
- isSupported$jscomp$inline_437 =
2108
- "function" === typeof element$jscomp$inline_438.oninput;
2103
+ var isSupported$jscomp$inline_438 = "oninput" in document;
2104
+ if (!isSupported$jscomp$inline_438) {
2105
+ var element$jscomp$inline_439 = document.createElement("div");
2106
+ element$jscomp$inline_439.setAttribute("oninput", "return;");
2107
+ isSupported$jscomp$inline_438 =
2108
+ "function" === typeof element$jscomp$inline_439.oninput;
2109
2109
  }
2110
- JSCompiler_inline_result$jscomp$300 = isSupported$jscomp$inline_437;
2110
+ JSCompiler_inline_result$jscomp$300 = isSupported$jscomp$inline_438;
2111
2111
  } else JSCompiler_inline_result$jscomp$300 = !1;
2112
2112
  isInputEventSupported =
2113
2113
  JSCompiler_inline_result$jscomp$300 &&
@@ -6324,9 +6324,13 @@ function updateSimpleMemoComponent(
6324
6324
  renderLanes
6325
6325
  );
6326
6326
  }
6327
- function updateOffscreenComponent(current, workInProgress, renderLanes) {
6328
- var nextProps = workInProgress.pendingProps,
6329
- nextChildren = nextProps.children,
6327
+ function updateOffscreenComponent(
6328
+ current,
6329
+ workInProgress,
6330
+ renderLanes,
6331
+ nextProps
6332
+ ) {
6333
+ var nextChildren = nextProps.children,
6330
6334
  prevState = null !== current ? current.memoizedState : null;
6331
6335
  if ("hidden" === nextProps.mode) {
6332
6336
  if (0 !== (workInProgress.flags & 128)) {
@@ -7347,10 +7351,14 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
7347
7351
  if (stateNode) break;
7348
7352
  else return null;
7349
7353
  case 22:
7350
- case 23:
7351
7354
  return (
7352
7355
  (workInProgress.lanes = 0),
7353
- updateOffscreenComponent(current, workInProgress, renderLanes)
7356
+ updateOffscreenComponent(
7357
+ current,
7358
+ workInProgress,
7359
+ renderLanes,
7360
+ workInProgress.pendingProps
7361
+ )
7354
7362
  );
7355
7363
  case 24:
7356
7364
  pushProvider(workInProgress, CacheContext, current.memoizedState.cache);
@@ -7820,7 +7828,12 @@ function beginWork(current, workInProgress, renderLanes) {
7820
7828
  workInProgress
7821
7829
  );
7822
7830
  case 22:
7823
- return updateOffscreenComponent(current, workInProgress, renderLanes);
7831
+ return updateOffscreenComponent(
7832
+ current,
7833
+ workInProgress,
7834
+ renderLanes,
7835
+ workInProgress.pendingProps
7836
+ );
7824
7837
  case 24:
7825
7838
  return (
7826
7839
  prepareToReadContext(workInProgress),
@@ -7879,27 +7892,38 @@ function beginWork(current, workInProgress, renderLanes) {
7879
7892
  function markUpdate(workInProgress) {
7880
7893
  workInProgress.flags |= 4;
7881
7894
  }
7895
+ function preloadInstanceAndSuspendIfNeeded(
7896
+ workInProgress,
7897
+ type,
7898
+ oldProps,
7899
+ newProps,
7900
+ renderLanes
7901
+ ) {
7902
+ if ((type = 0 !== (workInProgress.mode & 32))) type = !1;
7903
+ if (type) {
7904
+ if (
7905
+ ((workInProgress.flags |= 16777216),
7906
+ (renderLanes & 335544128) === renderLanes)
7907
+ )
7908
+ if (workInProgress.stateNode.complete) workInProgress.flags |= 8192;
7909
+ else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;
7910
+ else
7911
+ throw (
7912
+ ((suspendedThenable = noopSuspenseyCommitThenable),
7913
+ SuspenseyCommitException)
7914
+ );
7915
+ } else workInProgress.flags &= -16777217;
7916
+ }
7882
7917
  function preloadResourceAndSuspendIfNeeded(workInProgress, resource) {
7883
7918
  if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4))
7884
7919
  workInProgress.flags &= -16777217;
7885
- else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) {
7886
- resource = suspenseHandlerStackCursor.current;
7887
- if (
7888
- null !== resource &&
7889
- ((workInProgressRootRenderLanes & 4194048) ===
7890
- workInProgressRootRenderLanes
7891
- ? null !== shellBoundary
7892
- : ((workInProgressRootRenderLanes & 62914560) !==
7893
- workInProgressRootRenderLanes &&
7894
- 0 === (workInProgressRootRenderLanes & 536870912)) ||
7895
- resource !== shellBoundary)
7896
- )
7920
+ else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))
7921
+ if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;
7922
+ else
7897
7923
  throw (
7898
7924
  ((suspendedThenable = noopSuspenseyCommitThenable),
7899
7925
  SuspenseyCommitException)
7900
7926
  );
7901
- workInProgress.flags |= 8192;
7902
- }
7903
7927
  }
7904
7928
  function scheduleRetryEffect(workInProgress, retryQueue) {
7905
7929
  null !== retryQueue && (workInProgress.flags |= 4);
@@ -8033,31 +8057,43 @@ function completeWork(current, workInProgress, renderLanes) {
8033
8057
  bubbleProperties(workInProgress);
8034
8058
  return null;
8035
8059
  case 26:
8036
- return (
8037
- (renderLanes = workInProgress.memoizedState),
8038
- null === current
8039
- ? (markUpdate(workInProgress),
8040
- null !== renderLanes
8041
- ? (bubbleProperties(workInProgress),
8042
- preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes))
8043
- : (bubbleProperties(workInProgress),
8044
- (workInProgress.flags &= -16777217)))
8045
- : renderLanes
8046
- ? renderLanes !== current.memoizedState
8047
- ? (markUpdate(workInProgress),
8048
- bubbleProperties(workInProgress),
8049
- preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes))
8050
- : (bubbleProperties(workInProgress),
8051
- (workInProgress.flags &= -16777217))
8052
- : (current.memoizedProps !== newProps && markUpdate(workInProgress),
8060
+ var type = workInProgress.type,
8061
+ nextResource = workInProgress.memoizedState;
8062
+ null === current
8063
+ ? (markUpdate(workInProgress),
8064
+ null !== nextResource
8065
+ ? (bubbleProperties(workInProgress),
8066
+ preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))
8067
+ : (bubbleProperties(workInProgress),
8068
+ preloadInstanceAndSuspendIfNeeded(
8069
+ workInProgress,
8070
+ type,
8071
+ null,
8072
+ newProps,
8073
+ renderLanes
8074
+ )))
8075
+ : nextResource
8076
+ ? nextResource !== current.memoizedState
8077
+ ? (markUpdate(workInProgress),
8053
8078
  bubbleProperties(workInProgress),
8054
- (workInProgress.flags &= -16777217)),
8055
- null
8056
- );
8079
+ preloadResourceAndSuspendIfNeeded(workInProgress, nextResource))
8080
+ : (bubbleProperties(workInProgress),
8081
+ (workInProgress.flags &= -16777217))
8082
+ : ((current = current.memoizedProps),
8083
+ current !== newProps && markUpdate(workInProgress),
8084
+ bubbleProperties(workInProgress),
8085
+ preloadInstanceAndSuspendIfNeeded(
8086
+ workInProgress,
8087
+ type,
8088
+ current,
8089
+ newProps,
8090
+ renderLanes
8091
+ ));
8092
+ return null;
8057
8093
  case 27:
8058
8094
  popHostContext(workInProgress);
8059
8095
  renderLanes = rootInstanceStackCursor.current;
8060
- var type$124 = workInProgress.type;
8096
+ type = workInProgress.type;
8061
8097
  if (null !== current && null != workInProgress.stateNode)
8062
8098
  current.memoizedProps !== newProps && markUpdate(workInProgress);
8063
8099
  else {
@@ -8070,11 +8106,7 @@ function completeWork(current, workInProgress, renderLanes) {
8070
8106
  current = contextStackCursor.current;
8071
8107
  popHydrationState(workInProgress)
8072
8108
  ? prepareToHydrateHostInstance(workInProgress, current)
8073
- : ((current = resolveSingletonInstance(
8074
- type$124,
8075
- newProps,
8076
- renderLanes
8077
- )),
8109
+ : ((current = resolveSingletonInstance(type, newProps, renderLanes)),
8078
8110
  (workInProgress.stateNode = current),
8079
8111
  markUpdate(workInProgress));
8080
8112
  }
@@ -8082,7 +8114,7 @@ function completeWork(current, workInProgress, renderLanes) {
8082
8114
  return null;
8083
8115
  case 5:
8084
8116
  popHostContext(workInProgress);
8085
- renderLanes = workInProgress.type;
8117
+ type = workInProgress.type;
8086
8118
  if (null !== current && null != workInProgress.stateNode)
8087
8119
  current.memoizedProps !== newProps && markUpdate(workInProgress);
8088
8120
  else {
@@ -8092,108 +8124,122 @@ function completeWork(current, workInProgress, renderLanes) {
8092
8124
  bubbleProperties(workInProgress);
8093
8125
  return null;
8094
8126
  }
8095
- current = contextStackCursor.current;
8127
+ nextResource = contextStackCursor.current;
8096
8128
  if (popHydrationState(workInProgress))
8097
- prepareToHydrateHostInstance(workInProgress, current);
8129
+ prepareToHydrateHostInstance(workInProgress, nextResource);
8098
8130
  else {
8099
- type$124 = getOwnerDocumentFromRootContainer(
8131
+ var ownerDocument = getOwnerDocumentFromRootContainer(
8100
8132
  rootInstanceStackCursor.current
8101
8133
  );
8102
- switch (current) {
8134
+ switch (nextResource) {
8103
8135
  case 1:
8104
- current = type$124.createElementNS(
8136
+ nextResource = ownerDocument.createElementNS(
8105
8137
  "http://www.w3.org/2000/svg",
8106
- renderLanes
8138
+ type
8107
8139
  );
8108
8140
  break;
8109
8141
  case 2:
8110
- current = type$124.createElementNS(
8142
+ nextResource = ownerDocument.createElementNS(
8111
8143
  "http://www.w3.org/1998/Math/MathML",
8112
- renderLanes
8144
+ type
8113
8145
  );
8114
8146
  break;
8115
8147
  default:
8116
- switch (renderLanes) {
8148
+ switch (type) {
8117
8149
  case "svg":
8118
- current = type$124.createElementNS(
8150
+ nextResource = ownerDocument.createElementNS(
8119
8151
  "http://www.w3.org/2000/svg",
8120
- renderLanes
8152
+ type
8121
8153
  );
8122
8154
  break;
8123
8155
  case "math":
8124
- current = type$124.createElementNS(
8156
+ nextResource = ownerDocument.createElementNS(
8125
8157
  "http://www.w3.org/1998/Math/MathML",
8126
- renderLanes
8158
+ type
8127
8159
  );
8128
8160
  break;
8129
8161
  case "script":
8130
- current = type$124.createElement("div");
8131
- current.innerHTML = "<script>\x3c/script>";
8132
- current = current.removeChild(current.firstChild);
8162
+ nextResource = ownerDocument.createElement("div");
8163
+ nextResource.innerHTML = "<script>\x3c/script>";
8164
+ nextResource = nextResource.removeChild(
8165
+ nextResource.firstChild
8166
+ );
8133
8167
  break;
8134
8168
  case "select":
8135
- current =
8169
+ nextResource =
8136
8170
  "string" === typeof newProps.is
8137
- ? type$124.createElement("select", { is: newProps.is })
8138
- : type$124.createElement("select");
8171
+ ? ownerDocument.createElement("select", {
8172
+ is: newProps.is
8173
+ })
8174
+ : ownerDocument.createElement("select");
8139
8175
  newProps.multiple
8140
- ? (current.multiple = !0)
8141
- : newProps.size && (current.size = newProps.size);
8176
+ ? (nextResource.multiple = !0)
8177
+ : newProps.size && (nextResource.size = newProps.size);
8142
8178
  break;
8143
8179
  default:
8144
- current =
8180
+ nextResource =
8145
8181
  "string" === typeof newProps.is
8146
- ? type$124.createElement(renderLanes, { is: newProps.is })
8147
- : type$124.createElement(renderLanes);
8182
+ ? ownerDocument.createElement(type, { is: newProps.is })
8183
+ : ownerDocument.createElement(type);
8148
8184
  }
8149
8185
  }
8150
- current[internalInstanceKey] = workInProgress;
8151
- current[internalPropsKey] = newProps;
8152
- a: for (type$124 = workInProgress.child; null !== type$124; ) {
8153
- if (5 === type$124.tag || 6 === type$124.tag)
8154
- current.appendChild(type$124.stateNode);
8186
+ nextResource[internalInstanceKey] = workInProgress;
8187
+ nextResource[internalPropsKey] = newProps;
8188
+ a: for (
8189
+ ownerDocument = workInProgress.child;
8190
+ null !== ownerDocument;
8191
+
8192
+ ) {
8193
+ if (5 === ownerDocument.tag || 6 === ownerDocument.tag)
8194
+ nextResource.appendChild(ownerDocument.stateNode);
8155
8195
  else if (
8156
- 4 !== type$124.tag &&
8157
- 27 !== type$124.tag &&
8158
- null !== type$124.child
8196
+ 4 !== ownerDocument.tag &&
8197
+ 27 !== ownerDocument.tag &&
8198
+ null !== ownerDocument.child
8159
8199
  ) {
8160
- type$124.child.return = type$124;
8161
- type$124 = type$124.child;
8200
+ ownerDocument.child.return = ownerDocument;
8201
+ ownerDocument = ownerDocument.child;
8162
8202
  continue;
8163
8203
  }
8164
- if (type$124 === workInProgress) break a;
8165
- for (; null === type$124.sibling; ) {
8204
+ if (ownerDocument === workInProgress) break a;
8205
+ for (; null === ownerDocument.sibling; ) {
8166
8206
  if (
8167
- null === type$124.return ||
8168
- type$124.return === workInProgress
8207
+ null === ownerDocument.return ||
8208
+ ownerDocument.return === workInProgress
8169
8209
  )
8170
8210
  break a;
8171
- type$124 = type$124.return;
8211
+ ownerDocument = ownerDocument.return;
8172
8212
  }
8173
- type$124.sibling.return = type$124.return;
8174
- type$124 = type$124.sibling;
8213
+ ownerDocument.sibling.return = ownerDocument.return;
8214
+ ownerDocument = ownerDocument.sibling;
8175
8215
  }
8176
- workInProgress.stateNode = current;
8216
+ workInProgress.stateNode = nextResource;
8177
8217
  a: switch (
8178
- (setInitialProperties(current, renderLanes, newProps), renderLanes)
8218
+ (setInitialProperties(nextResource, type, newProps), type)
8179
8219
  ) {
8180
8220
  case "button":
8181
8221
  case "input":
8182
8222
  case "select":
8183
8223
  case "textarea":
8184
- current = !!newProps.autoFocus;
8224
+ newProps = !!newProps.autoFocus;
8185
8225
  break a;
8186
8226
  case "img":
8187
- current = !0;
8227
+ newProps = !0;
8188
8228
  break a;
8189
8229
  default:
8190
- current = !1;
8230
+ newProps = !1;
8191
8231
  }
8192
- current && markUpdate(workInProgress);
8232
+ newProps && markUpdate(workInProgress);
8193
8233
  }
8194
8234
  }
8195
8235
  bubbleProperties(workInProgress);
8196
- workInProgress.flags &= -16777217;
8236
+ preloadInstanceAndSuspendIfNeeded(
8237
+ workInProgress,
8238
+ workInProgress.type,
8239
+ null === current ? null : current.memoizedProps,
8240
+ workInProgress.pendingProps,
8241
+ renderLanes
8242
+ );
8197
8243
  return null;
8198
8244
  case 6:
8199
8245
  if (current && null != workInProgress.stateNode)
@@ -8206,12 +8252,12 @@ function completeWork(current, workInProgress, renderLanes) {
8206
8252
  current = workInProgress.stateNode;
8207
8253
  renderLanes = workInProgress.memoizedProps;
8208
8254
  newProps = null;
8209
- type$124 = hydrationParentFiber;
8210
- if (null !== type$124)
8211
- switch (type$124.tag) {
8255
+ type = hydrationParentFiber;
8256
+ if (null !== type)
8257
+ switch (type.tag) {
8212
8258
  case 27:
8213
8259
  case 5:
8214
- newProps = type$124.memoizedProps;
8260
+ newProps = type.memoizedProps;
8215
8261
  }
8216
8262
  current[internalInstanceKey] = workInProgress;
8217
8263
  current =
@@ -8238,20 +8284,20 @@ function completeWork(current, workInProgress, renderLanes) {
8238
8284
  (null !== current.memoizedState &&
8239
8285
  null !== current.memoizedState.dehydrated)
8240
8286
  ) {
8241
- type$124 = popHydrationState(workInProgress);
8287
+ type = popHydrationState(workInProgress);
8242
8288
  if (null !== newProps && null !== newProps.dehydrated) {
8243
8289
  if (null === current) {
8244
- if (!type$124) throw Error(formatProdErrorMessage(318));
8245
- type$124 = workInProgress.memoizedState;
8246
- type$124 = null !== type$124 ? type$124.dehydrated : null;
8247
- if (!type$124) throw Error(formatProdErrorMessage(317));
8248
- type$124[internalInstanceKey] = workInProgress;
8290
+ if (!type) throw Error(formatProdErrorMessage(318));
8291
+ type = workInProgress.memoizedState;
8292
+ type = null !== type ? type.dehydrated : null;
8293
+ if (!type) throw Error(formatProdErrorMessage(317));
8294
+ type[internalInstanceKey] = workInProgress;
8249
8295
  bubbleProperties(workInProgress);
8250
8296
  0 !== (workInProgress.mode & 2) &&
8251
8297
  null !== newProps &&
8252
- ((type$124 = workInProgress.child),
8253
- null !== type$124 &&
8254
- (workInProgress.treeBaseDuration -= type$124.treeBaseDuration));
8298
+ ((type = workInProgress.child),
8299
+ null !== type &&
8300
+ (workInProgress.treeBaseDuration -= type.treeBaseDuration));
8255
8301
  } else
8256
8302
  resetHydrationState(),
8257
8303
  0 === (workInProgress.flags & 128) &&
@@ -8260,18 +8306,17 @@ function completeWork(current, workInProgress, renderLanes) {
8260
8306
  bubbleProperties(workInProgress),
8261
8307
  0 !== (workInProgress.mode & 2) &&
8262
8308
  null !== newProps &&
8263
- ((type$124 = workInProgress.child),
8264
- null !== type$124 &&
8265
- (workInProgress.treeBaseDuration -=
8266
- type$124.treeBaseDuration));
8267
- type$124 = !1;
8309
+ ((type = workInProgress.child),
8310
+ null !== type &&
8311
+ (workInProgress.treeBaseDuration -= type.treeBaseDuration));
8312
+ type = !1;
8268
8313
  } else
8269
- (type$124 = upgradeHydrationErrorsToRecoverable()),
8314
+ (type = upgradeHydrationErrorsToRecoverable()),
8270
8315
  null !== current &&
8271
8316
  null !== current.memoizedState &&
8272
- (current.memoizedState.hydrationErrors = type$124),
8273
- (type$124 = !0);
8274
- if (!type$124) {
8317
+ (current.memoizedState.hydrationErrors = type),
8318
+ (type = !0);
8319
+ if (!type) {
8275
8320
  if (workInProgress.flags & 256)
8276
8321
  return popSuspenseHandler(workInProgress), workInProgress;
8277
8322
  popSuspenseHandler(workInProgress);
@@ -8288,19 +8333,18 @@ function completeWork(current, workInProgress, renderLanes) {
8288
8333
  );
8289
8334
  renderLanes = null !== newProps;
8290
8335
  current = null !== current && null !== current.memoizedState;
8291
- if (renderLanes) {
8292
- newProps = workInProgress.child;
8293
- type$124 = null;
8336
+ renderLanes &&
8337
+ ((newProps = workInProgress.child),
8338
+ (type = null),
8294
8339
  null !== newProps.alternate &&
8295
8340
  null !== newProps.alternate.memoizedState &&
8296
8341
  null !== newProps.alternate.memoizedState.cachePool &&
8297
- (type$124 = newProps.alternate.memoizedState.cachePool.pool);
8298
- var cache$136 = null;
8342
+ (type = newProps.alternate.memoizedState.cachePool.pool),
8343
+ (nextResource = null),
8299
8344
  null !== newProps.memoizedState &&
8300
8345
  null !== newProps.memoizedState.cachePool &&
8301
- (cache$136 = newProps.memoizedState.cachePool.pool);
8302
- cache$136 !== type$124 && (newProps.flags |= 2048);
8303
- }
8346
+ (nextResource = newProps.memoizedState.cachePool.pool),
8347
+ nextResource !== type && (newProps.flags |= 2048));
8304
8348
  renderLanes !== current &&
8305
8349
  renderLanes &&
8306
8350
  (workInProgress.child.flags |= 8192);
@@ -8326,23 +8370,23 @@ function completeWork(current, workInProgress, renderLanes) {
8326
8370
  );
8327
8371
  case 19:
8328
8372
  pop(suspenseStackCursor);
8329
- type$124 = workInProgress.memoizedState;
8330
- if (null === type$124) return bubbleProperties(workInProgress), null;
8373
+ type = workInProgress.memoizedState;
8374
+ if (null === type) return bubbleProperties(workInProgress), null;
8331
8375
  newProps = 0 !== (workInProgress.flags & 128);
8332
- cache$136 = type$124.rendering;
8333
- if (null === cache$136)
8334
- if (newProps) cutOffTailIfNeeded(type$124, !1);
8376
+ nextResource = type.rendering;
8377
+ if (null === nextResource)
8378
+ if (newProps) cutOffTailIfNeeded(type, !1);
8335
8379
  else {
8336
8380
  if (
8337
8381
  0 !== workInProgressRootExitStatus ||
8338
8382
  (null !== current && 0 !== (current.flags & 128))
8339
8383
  )
8340
8384
  for (current = workInProgress.child; null !== current; ) {
8341
- cache$136 = findFirstSuspended(current);
8342
- if (null !== cache$136) {
8385
+ nextResource = findFirstSuspended(current);
8386
+ if (null !== nextResource) {
8343
8387
  workInProgress.flags |= 128;
8344
- cutOffTailIfNeeded(type$124, !1);
8345
- current = cache$136.updateQueue;
8388
+ cutOffTailIfNeeded(type, !1);
8389
+ current = nextResource.updateQueue;
8346
8390
  workInProgress.updateQueue = current;
8347
8391
  scheduleRetryEffect(workInProgress, current);
8348
8392
  workInProgress.subtreeFlags = 0;
@@ -8358,52 +8402,54 @@ function completeWork(current, workInProgress, renderLanes) {
8358
8402
  }
8359
8403
  current = current.sibling;
8360
8404
  }
8361
- null !== type$124.tail &&
8405
+ null !== type.tail &&
8362
8406
  now$1() > workInProgressRootRenderTargetTime &&
8363
8407
  ((workInProgress.flags |= 128),
8364
8408
  (newProps = !0),
8365
- cutOffTailIfNeeded(type$124, !1),
8409
+ cutOffTailIfNeeded(type, !1),
8366
8410
  (workInProgress.lanes = 4194304));
8367
8411
  }
8368
8412
  else {
8369
8413
  if (!newProps)
8370
- if (((current = findFirstSuspended(cache$136)), null !== current)) {
8414
+ if (
8415
+ ((current = findFirstSuspended(nextResource)), null !== current)
8416
+ ) {
8371
8417
  if (
8372
8418
  ((workInProgress.flags |= 128),
8373
8419
  (newProps = !0),
8374
8420
  (current = current.updateQueue),
8375
8421
  (workInProgress.updateQueue = current),
8376
8422
  scheduleRetryEffect(workInProgress, current),
8377
- cutOffTailIfNeeded(type$124, !0),
8378
- null === type$124.tail &&
8379
- "hidden" === type$124.tailMode &&
8380
- !cache$136.alternate &&
8423
+ cutOffTailIfNeeded(type, !0),
8424
+ null === type.tail &&
8425
+ "hidden" === type.tailMode &&
8426
+ !nextResource.alternate &&
8381
8427
  !isHydrating)
8382
8428
  )
8383
8429
  return bubbleProperties(workInProgress), null;
8384
8430
  } else
8385
- 2 * now$1() - type$124.renderingStartTime >
8431
+ 2 * now$1() - type.renderingStartTime >
8386
8432
  workInProgressRootRenderTargetTime &&
8387
8433
  536870912 !== renderLanes &&
8388
8434
  ((workInProgress.flags |= 128),
8389
8435
  (newProps = !0),
8390
- cutOffTailIfNeeded(type$124, !1),
8436
+ cutOffTailIfNeeded(type, !1),
8391
8437
  (workInProgress.lanes = 4194304));
8392
- type$124.isBackwards
8393
- ? ((cache$136.sibling = workInProgress.child),
8394
- (workInProgress.child = cache$136))
8395
- : ((current = type$124.last),
8438
+ type.isBackwards
8439
+ ? ((nextResource.sibling = workInProgress.child),
8440
+ (workInProgress.child = nextResource))
8441
+ : ((current = type.last),
8396
8442
  null !== current
8397
- ? (current.sibling = cache$136)
8398
- : (workInProgress.child = cache$136),
8399
- (type$124.last = cache$136));
8443
+ ? (current.sibling = nextResource)
8444
+ : (workInProgress.child = nextResource),
8445
+ (type.last = nextResource));
8400
8446
  }
8401
- if (null !== type$124.tail)
8447
+ if (null !== type.tail)
8402
8448
  return (
8403
- (workInProgress = type$124.tail),
8404
- (type$124.rendering = workInProgress),
8405
- (type$124.tail = workInProgress.sibling),
8406
- (type$124.renderingStartTime = now$1()),
8449
+ (workInProgress = type.tail),
8450
+ (type.rendering = workInProgress),
8451
+ (type.tail = workInProgress.sibling),
8452
+ (type.renderingStartTime = now$1()),
8407
8453
  (workInProgress.sibling = null),
8408
8454
  (current = suspenseStackCursor.current),
8409
8455
  push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
@@ -8849,12 +8895,7 @@ function commitProfilerUpdate(
8849
8895
  commitStartTime
8850
8896
  );
8851
8897
  "function" === typeof onCommit &&
8852
- onCommit(
8853
- finishedWork.memoizedProps.id,
8854
- current,
8855
- effectDuration,
8856
- commitStartTime
8857
- );
8898
+ onCommit(id, current, effectDuration, commitStartTime);
8858
8899
  } catch (error) {
8859
8900
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
8860
8901
  }
@@ -11233,6 +11274,21 @@ function handleThrow(root, thrownValue) {
11233
11274
  );
11234
11275
  }
11235
11276
  }
11277
+ function shouldRemainOnPreviousScreen() {
11278
+ var handler = suspenseHandlerStackCursor.current;
11279
+ return null === handler
11280
+ ? !0
11281
+ : (workInProgressRootRenderLanes & 4194048) ===
11282
+ workInProgressRootRenderLanes
11283
+ ? null === shellBoundary
11284
+ ? !0
11285
+ : !1
11286
+ : (workInProgressRootRenderLanes & 62914560) ===
11287
+ workInProgressRootRenderLanes ||
11288
+ 0 !== (workInProgressRootRenderLanes & 536870912)
11289
+ ? handler === shellBoundary
11290
+ : !1;
11291
+ }
11236
11292
  function pushDispatcher() {
11237
11293
  var prevDispatcher = ReactSharedInternals.H;
11238
11294
  ReactSharedInternals.H = ContextOnlyDispatcher;
@@ -12447,20 +12503,20 @@ function extractEvents$1(
12447
12503
  }
12448
12504
  }
12449
12505
  for (
12450
- var i$jscomp$inline_1621 = 0;
12451
- i$jscomp$inline_1621 < simpleEventPluginEvents.length;
12452
- i$jscomp$inline_1621++
12506
+ var i$jscomp$inline_1623 = 0;
12507
+ i$jscomp$inline_1623 < simpleEventPluginEvents.length;
12508
+ i$jscomp$inline_1623++
12453
12509
  ) {
12454
- var eventName$jscomp$inline_1622 =
12455
- simpleEventPluginEvents[i$jscomp$inline_1621],
12456
- domEventName$jscomp$inline_1623 =
12457
- eventName$jscomp$inline_1622.toLowerCase(),
12458
- capitalizedEvent$jscomp$inline_1624 =
12459
- eventName$jscomp$inline_1622[0].toUpperCase() +
12460
- eventName$jscomp$inline_1622.slice(1);
12510
+ var eventName$jscomp$inline_1624 =
12511
+ simpleEventPluginEvents[i$jscomp$inline_1623],
12512
+ domEventName$jscomp$inline_1625 =
12513
+ eventName$jscomp$inline_1624.toLowerCase(),
12514
+ capitalizedEvent$jscomp$inline_1626 =
12515
+ eventName$jscomp$inline_1624[0].toUpperCase() +
12516
+ eventName$jscomp$inline_1624.slice(1);
12461
12517
  registerSimpleEvent(
12462
- domEventName$jscomp$inline_1623,
12463
- "on" + capitalizedEvent$jscomp$inline_1624
12518
+ domEventName$jscomp$inline_1625,
12519
+ "on" + capitalizedEvent$jscomp$inline_1626
12464
12520
  );
12465
12521
  }
12466
12522
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15975,16 +16031,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15975
16031
  0 === i && attemptExplicitHydrationTarget(target);
15976
16032
  }
15977
16033
  };
15978
- var isomorphicReactPackageVersion$jscomp$inline_1880 = React.version;
16034
+ var isomorphicReactPackageVersion$jscomp$inline_1882 = React.version;
15979
16035
  if (
15980
- "19.2.0-canary-ea05b750-20250408" !==
15981
- isomorphicReactPackageVersion$jscomp$inline_1880
16036
+ "19.2.0-canary-c44e4a25-20250409" !==
16037
+ isomorphicReactPackageVersion$jscomp$inline_1882
15982
16038
  )
15983
16039
  throw Error(
15984
16040
  formatProdErrorMessage(
15985
16041
  527,
15986
- isomorphicReactPackageVersion$jscomp$inline_1880,
15987
- "19.2.0-canary-ea05b750-20250408"
16042
+ isomorphicReactPackageVersion$jscomp$inline_1882,
16043
+ "19.2.0-canary-c44e4a25-20250409"
15988
16044
  )
15989
16045
  );
15990
16046
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16004,12 +16060,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
16004
16060
  null === componentOrElement ? null : componentOrElement.stateNode;
16005
16061
  return componentOrElement;
16006
16062
  };
16007
- var internals$jscomp$inline_1887 = {
16063
+ var internals$jscomp$inline_1889 = {
16008
16064
  bundleType: 0,
16009
- version: "19.2.0-canary-ea05b750-20250408",
16065
+ version: "19.2.0-canary-c44e4a25-20250409",
16010
16066
  rendererPackageName: "react-dom",
16011
16067
  currentDispatcherRef: ReactSharedInternals,
16012
- reconcilerVersion: "19.2.0-canary-ea05b750-20250408",
16068
+ reconcilerVersion: "19.2.0-canary-c44e4a25-20250409",
16013
16069
  getLaneLabelMap: function () {
16014
16070
  for (
16015
16071
  var map = new Map(), lane = 1, index$284 = 0;
@@ -16027,16 +16083,16 @@ var internals$jscomp$inline_1887 = {
16027
16083
  }
16028
16084
  };
16029
16085
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
16030
- var hook$jscomp$inline_2322 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16086
+ var hook$jscomp$inline_2324 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16031
16087
  if (
16032
- !hook$jscomp$inline_2322.isDisabled &&
16033
- hook$jscomp$inline_2322.supportsFiber
16088
+ !hook$jscomp$inline_2324.isDisabled &&
16089
+ hook$jscomp$inline_2324.supportsFiber
16034
16090
  )
16035
16091
  try {
16036
- (rendererID = hook$jscomp$inline_2322.inject(
16037
- internals$jscomp$inline_1887
16092
+ (rendererID = hook$jscomp$inline_2324.inject(
16093
+ internals$jscomp$inline_1889
16038
16094
  )),
16039
- (injectedHook = hook$jscomp$inline_2322);
16095
+ (injectedHook = hook$jscomp$inline_2324);
16040
16096
  } catch (err) {}
16041
16097
  }
16042
16098
  function noop() {}
@@ -16289,7 +16345,7 @@ exports.useFormState = function (action, initialState, permalink) {
16289
16345
  exports.useFormStatus = function () {
16290
16346
  return ReactSharedInternals.H.useHostTransitionStatus();
16291
16347
  };
16292
- exports.version = "19.2.0-canary-ea05b750-20250408";
16348
+ exports.version = "19.2.0-canary-c44e4a25-20250409";
16293
16349
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
16294
16350
  "function" ===
16295
16351
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&