react-markup 0.0.0-experimental-462d08f9-20250517 → 0.0.0-experimental-c4676e72-20250520

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.
@@ -6305,6 +6305,7 @@ function createRequest(
6305
6305
  rootFormatContext,
6306
6306
  null,
6307
6307
  emptyTreeContext,
6308
+ null,
6308
6309
  null
6309
6310
  );
6310
6311
  pushComponentStack(children);
@@ -6319,15 +6320,17 @@ function pingTask(request, task) {
6319
6320
  }
6320
6321
  function createSuspenseBoundary(
6321
6322
  request,
6323
+ row,
6322
6324
  fallbackAbortableTasks,
6323
6325
  contentPreamble,
6324
6326
  fallbackPreamble
6325
6327
  ) {
6326
- return {
6328
+ fallbackAbortableTasks = {
6327
6329
  status: 0,
6328
6330
  rootSegmentID: -1,
6329
6331
  parentFlushed: !1,
6330
6332
  pendingTasks: 0,
6333
+ row: row,
6331
6334
  completedSegments: [],
6332
6335
  byteSize: 0,
6333
6336
  fallbackAbortableTasks: fallbackAbortableTasks,
@@ -6339,6 +6342,14 @@ function createSuspenseBoundary(
6339
6342
  trackedContentKeyPath: null,
6340
6343
  trackedFallbackNode: null
6341
6344
  };
6345
+ null !== row &&
6346
+ (row.pendingTasks++,
6347
+ (row = row.boundaries),
6348
+ null !== row &&
6349
+ (request.allPendingTasks++,
6350
+ fallbackAbortableTasks.pendingTasks++,
6351
+ row.push(fallbackAbortableTasks)));
6352
+ return fallbackAbortableTasks;
6342
6353
  }
6343
6354
  function createRenderTask(
6344
6355
  request,
@@ -6354,12 +6365,14 @@ function createRenderTask(
6354
6365
  formatContext,
6355
6366
  context,
6356
6367
  treeContext,
6368
+ row,
6357
6369
  componentStack
6358
6370
  ) {
6359
6371
  request.allPendingTasks++;
6360
6372
  null === blockedBoundary
6361
6373
  ? request.pendingRootTasks++
6362
6374
  : blockedBoundary.pendingTasks++;
6375
+ null !== row && row.pendingTasks++;
6363
6376
  var task = {
6364
6377
  replay: null,
6365
6378
  node: node,
@@ -6376,6 +6389,7 @@ function createRenderTask(
6376
6389
  formatContext: formatContext,
6377
6390
  context: context,
6378
6391
  treeContext: treeContext,
6392
+ row: row,
6379
6393
  componentStack: componentStack,
6380
6394
  thenableState: thenableState
6381
6395
  };
@@ -6395,12 +6409,14 @@ function createReplayTask(
6395
6409
  formatContext,
6396
6410
  context,
6397
6411
  treeContext,
6412
+ row,
6398
6413
  componentStack
6399
6414
  ) {
6400
6415
  request.allPendingTasks++;
6401
6416
  null === blockedBoundary
6402
6417
  ? request.pendingRootTasks++
6403
6418
  : blockedBoundary.pendingTasks++;
6419
+ null !== row && row.pendingTasks++;
6404
6420
  replay.pendingTasks++;
6405
6421
  var task = {
6406
6422
  replay: replay,
@@ -6418,6 +6434,7 @@ function createReplayTask(
6418
6434
  formatContext: formatContext,
6419
6435
  context: context,
6420
6436
  treeContext: treeContext,
6437
+ row: row,
6421
6438
  componentStack: componentStack,
6422
6439
  thenableState: thenableState
6423
6440
  };
@@ -6499,6 +6516,125 @@ function fatalError(request, error) {
6499
6516
  ? ((request.status = 14), request.destination.destroy(error))
6500
6517
  : ((request.status = 13), (request.fatalError = error));
6501
6518
  }
6519
+ function finishSuspenseListRow(request, row) {
6520
+ for (row = row.next; null !== row; ) {
6521
+ var unblockedBoundaries = row.boundaries;
6522
+ if (null !== unblockedBoundaries) {
6523
+ row.boundaries = null;
6524
+ for (var i = 0; i < unblockedBoundaries.length; i++)
6525
+ finishedTask(request, unblockedBoundaries[i], null, null);
6526
+ }
6527
+ row.pendingTasks--;
6528
+ if (0 < row.pendingTasks) break;
6529
+ row = row.next;
6530
+ }
6531
+ }
6532
+ function createSuspenseListRow(previousRow) {
6533
+ var newRow = { pendingTasks: 1, boundaries: null, next: null };
6534
+ null !== previousRow &&
6535
+ 0 < previousRow.pendingTasks &&
6536
+ (newRow.pendingTasks++,
6537
+ (newRow.boundaries = []),
6538
+ (previousRow.next = newRow));
6539
+ return newRow;
6540
+ }
6541
+ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
6542
+ keyPath = task.keyPath;
6543
+ var prevTreeContext = task.treeContext,
6544
+ prevRow = task.row,
6545
+ totalChildren = rows.length,
6546
+ previousSuspenseListRow = null;
6547
+ if (null !== task.replay) {
6548
+ var resumeSlots = task.replay.slots;
6549
+ if (null !== resumeSlots && "object" === typeof resumeSlots)
6550
+ for (var n = 0; n < totalChildren; n++) {
6551
+ var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
6552
+ node = rows[i];
6553
+ task.row = previousSuspenseListRow = createSuspenseListRow(
6554
+ previousSuspenseListRow
6555
+ );
6556
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
6557
+ var resumeSegmentID = resumeSlots[i];
6558
+ "number" === typeof resumeSegmentID
6559
+ ? (resumeNode(request, task, resumeSegmentID, node, i),
6560
+ delete resumeSlots[i])
6561
+ : renderNode(request, task, node, i);
6562
+ 0 === --previousSuspenseListRow.pendingTasks &&
6563
+ finishSuspenseListRow(request, previousSuspenseListRow);
6564
+ }
6565
+ else
6566
+ for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
6567
+ (n =
6568
+ "backwards" !== revealOrder
6569
+ ? resumeSlots
6570
+ : totalChildren - 1 - resumeSlots),
6571
+ (i = rows[n]),
6572
+ (task.row = previousSuspenseListRow =
6573
+ createSuspenseListRow(previousSuspenseListRow)),
6574
+ (task.treeContext = pushTreeContext(
6575
+ prevTreeContext,
6576
+ totalChildren,
6577
+ n
6578
+ )),
6579
+ renderNode(request, task, i, n),
6580
+ 0 === --previousSuspenseListRow.pendingTasks &&
6581
+ finishSuspenseListRow(request, previousSuspenseListRow);
6582
+ } else if ("backwards" !== revealOrder)
6583
+ for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
6584
+ (resumeSlots = rows[revealOrder]),
6585
+ (task.row = previousSuspenseListRow =
6586
+ createSuspenseListRow(previousSuspenseListRow)),
6587
+ (task.treeContext = pushTreeContext(
6588
+ prevTreeContext,
6589
+ totalChildren,
6590
+ revealOrder
6591
+ )),
6592
+ renderNode(request, task, resumeSlots, revealOrder),
6593
+ 0 === --previousSuspenseListRow.pendingTasks &&
6594
+ finishSuspenseListRow(request, previousSuspenseListRow);
6595
+ else {
6596
+ revealOrder = task.blockedSegment;
6597
+ resumeSlots = revealOrder.children.length;
6598
+ n = revealOrder.chunks.length;
6599
+ for (i = totalChildren - 1; 0 <= i; i--) {
6600
+ node = rows[i];
6601
+ task.row = previousSuspenseListRow = createSuspenseListRow(
6602
+ previousSuspenseListRow
6603
+ );
6604
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
6605
+ resumeSegmentID = createPendingSegment(
6606
+ request,
6607
+ n,
6608
+ null,
6609
+ task.formatContext,
6610
+ 0 === i ? revealOrder.lastPushedText : !0,
6611
+ !0
6612
+ );
6613
+ revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
6614
+ task.blockedSegment = resumeSegmentID;
6615
+ try {
6616
+ renderNode(request, task, node, i),
6617
+ (resumeSegmentID.status = 1),
6618
+ 0 === --previousSuspenseListRow.pendingTasks &&
6619
+ finishSuspenseListRow(request, previousSuspenseListRow);
6620
+ } catch (thrownValue) {
6621
+ throw (
6622
+ ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
6623
+ thrownValue)
6624
+ );
6625
+ }
6626
+ }
6627
+ task.blockedSegment = revealOrder;
6628
+ revealOrder.lastPushedText = !1;
6629
+ }
6630
+ null !== prevRow &&
6631
+ null !== previousSuspenseListRow &&
6632
+ 0 < previousSuspenseListRow.pendingTasks &&
6633
+ (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
6634
+ task.treeContext = prevTreeContext;
6635
+ task.row = prevRow;
6636
+ task.keyPath = keyPath;
6637
+ }
6502
6638
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
6503
6639
  var prevThenableState = task.thenableState;
6504
6640
  task.thenableState = null;
@@ -6566,9 +6702,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
6566
6702
  var defaultProps = type.defaultProps;
6567
6703
  if (defaultProps) {
6568
6704
  newProps === props && (newProps = assign({}, newProps, props));
6569
- for (var propName$89 in defaultProps)
6570
- void 0 === newProps[propName$89] &&
6571
- (newProps[propName$89] = defaultProps[propName$89]);
6705
+ for (var propName$100 in defaultProps)
6706
+ void 0 === newProps[propName$100] &&
6707
+ (newProps[propName$100] = defaultProps[propName$100]);
6572
6708
  }
6573
6709
  var JSCompiler_inline_result = newProps;
6574
6710
  var context = emptyContextObject,
@@ -6735,13 +6871,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
6735
6871
  textEmbedded
6736
6872
  );
6737
6873
  segment.lastPushedText = !1;
6738
- var prevContext$87 = task.formatContext,
6739
- prevKeyPath$88 = task.keyPath;
6874
+ var prevContext$98 = task.formatContext,
6875
+ prevKeyPath$99 = task.keyPath;
6740
6876
  task.keyPath = keyPath;
6741
6877
  if (
6742
6878
  3 ===
6743
6879
  (task.formatContext = getChildFormatContext(
6744
- prevContext$87,
6880
+ prevContext$98,
6745
6881
  type,
6746
6882
  props
6747
6883
  )).insertionMode
@@ -6769,13 +6905,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
6769
6905
  task.formatContext,
6770
6906
  task.context,
6771
6907
  task.treeContext,
6908
+ task.row,
6772
6909
  task.componentStack
6773
6910
  );
6774
6911
  pushComponentStack(preambleTask);
6775
6912
  request.pingedTasks.push(preambleTask);
6776
6913
  } else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
6777
- task.formatContext = prevContext$87;
6778
- task.keyPath = prevKeyPath$88;
6914
+ task.formatContext = prevContext$98;
6915
+ task.keyPath = prevKeyPath$99;
6779
6916
  a: {
6780
6917
  var target$jscomp$0 = segment.chunks,
6781
6918
  resumableState$jscomp$0 = request.resumableState;
@@ -6800,19 +6937,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
6800
6937
  case "wbr":
6801
6938
  break a;
6802
6939
  case "body":
6803
- if (1 >= prevContext$87.insertionMode) {
6940
+ if (1 >= prevContext$98.insertionMode) {
6804
6941
  resumableState$jscomp$0.hasBody = !0;
6805
6942
  break a;
6806
6943
  }
6807
6944
  break;
6808
6945
  case "html":
6809
- if (0 === prevContext$87.insertionMode) {
6946
+ if (0 === prevContext$98.insertionMode) {
6810
6947
  resumableState$jscomp$0.hasHtml = !0;
6811
6948
  break a;
6812
6949
  }
6813
6950
  break;
6814
6951
  case "head":
6815
- if (1 >= prevContext$87.insertionMode) break a;
6952
+ if (1 >= prevContext$98.insertionMode) break a;
6816
6953
  }
6817
6954
  target$jscomp$0.push(endChunkForTag(type));
6818
6955
  }
@@ -6840,22 +6977,97 @@ function renderElement(request, task, keyPath, type, props, ref) {
6840
6977
  }
6841
6978
  } else if ("hidden" !== props.mode) {
6842
6979
  segment$jscomp$0.lastPushedText = !1;
6843
- var prevKeyPath$91 = task.keyPath;
6980
+ var prevKeyPath$102 = task.keyPath;
6844
6981
  task.keyPath = keyPath;
6845
6982
  renderNode(request, task, props.children, -1);
6846
- task.keyPath = prevKeyPath$91;
6983
+ task.keyPath = prevKeyPath$102;
6847
6984
  segment$jscomp$0.lastPushedText = !1;
6848
6985
  }
6849
6986
  return;
6850
6987
  case REACT_SUSPENSE_LIST_TYPE:
6851
- var prevKeyPath$92 = task.keyPath;
6852
- task.keyPath = keyPath;
6853
- renderNodeDestructive(request, task, props.children, -1);
6854
- task.keyPath = prevKeyPath$92;
6988
+ a: {
6989
+ var children$jscomp$0 = props.children,
6990
+ revealOrder = props.revealOrder;
6991
+ if ("forwards" === revealOrder || "backwards" === revealOrder) {
6992
+ if (isArrayImpl(children$jscomp$0)) {
6993
+ renderSuspenseListRows(
6994
+ request,
6995
+ task,
6996
+ keyPath,
6997
+ children$jscomp$0,
6998
+ revealOrder
6999
+ );
7000
+ break a;
7001
+ }
7002
+ var iteratorFn = getIteratorFn(children$jscomp$0);
7003
+ if (iteratorFn) {
7004
+ var iterator = iteratorFn.call(children$jscomp$0);
7005
+ if (iterator) {
7006
+ var step = iterator.next();
7007
+ if (!step.done) {
7008
+ do step = iterator.next();
7009
+ while (!step.done);
7010
+ renderSuspenseListRows(
7011
+ request,
7012
+ task,
7013
+ keyPath,
7014
+ children$jscomp$0,
7015
+ revealOrder
7016
+ );
7017
+ }
7018
+ break a;
7019
+ }
7020
+ }
7021
+ if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
7022
+ var iterator$94 = children$jscomp$0[ASYNC_ITERATOR]();
7023
+ if (iterator$94) {
7024
+ var prevThenableState = task.thenableState;
7025
+ task.thenableState = null;
7026
+ thenableIndexCounter = 0;
7027
+ thenableState = prevThenableState;
7028
+ var rows = [],
7029
+ done = !1;
7030
+ if (iterator$94 === children$jscomp$0)
7031
+ for (
7032
+ var step$95 = readPreviousThenableFromState();
7033
+ void 0 !== step$95;
7034
+
7035
+ ) {
7036
+ if (step$95.done) {
7037
+ done = !0;
7038
+ break;
7039
+ }
7040
+ rows.push(step$95.value);
7041
+ step$95 = readPreviousThenableFromState();
7042
+ }
7043
+ if (!done)
7044
+ for (
7045
+ var step$96 = unwrapThenable(iterator$94.next());
7046
+ !step$96.done;
7047
+
7048
+ )
7049
+ rows.push(step$96.value),
7050
+ (step$96 = unwrapThenable(iterator$94.next()));
7051
+ renderSuspenseListRows(
7052
+ request,
7053
+ task,
7054
+ keyPath,
7055
+ rows,
7056
+ revealOrder
7057
+ );
7058
+ break a;
7059
+ }
7060
+ }
7061
+ }
7062
+ var prevKeyPath$jscomp$3 = task.keyPath;
7063
+ task.keyPath = keyPath;
7064
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
7065
+ task.keyPath = prevKeyPath$jscomp$3;
7066
+ }
6855
7067
  return;
6856
7068
  case REACT_VIEW_TRANSITION_TYPE:
6857
7069
  var prevContext$jscomp$0 = task.formatContext,
6858
- prevKeyPath$jscomp$3 = task.keyPath;
7070
+ prevKeyPath$jscomp$4 = task.keyPath;
6859
7071
  var resumableState$jscomp$1 = request.resumableState;
6860
7072
  if (null == props.name || "auto" === props.name) {
6861
7073
  var treeId = getTreeId(task.treeContext);
@@ -6872,29 +7084,33 @@ function renderElement(request, task, keyPath, type, props, ref) {
6872
7084
  task.treeContext = prevTreeContext;
6873
7085
  }
6874
7086
  task.formatContext = prevContext$jscomp$0;
6875
- task.keyPath = prevKeyPath$jscomp$3;
7087
+ task.keyPath = prevKeyPath$jscomp$4;
6876
7088
  return;
6877
7089
  case REACT_SCOPE_TYPE:
6878
7090
  throw Error("ReactDOMServer does not yet support scope components.");
6879
7091
  case REACT_SUSPENSE_TYPE:
6880
7092
  a: if (null !== task.replay) {
6881
7093
  var prevKeyPath$81 = task.keyPath,
6882
- prevContext$82 = task.formatContext;
7094
+ prevContext$82 = task.formatContext,
7095
+ prevRow$83 = task.row;
6883
7096
  task.keyPath = keyPath;
6884
7097
  task.formatContext = getSuspenseContentFormatContext(
6885
7098
  request.resumableState,
6886
7099
  prevContext$82
6887
7100
  );
6888
- var content$83 = props.children;
7101
+ task.row = null;
7102
+ var content$84 = props.children;
6889
7103
  try {
6890
- renderNode(request, task, content$83, -1);
7104
+ renderNode(request, task, content$84, -1);
6891
7105
  } finally {
6892
7106
  (task.keyPath = prevKeyPath$81),
6893
- (task.formatContext = prevContext$82);
7107
+ (task.formatContext = prevContext$82),
7108
+ (task.row = prevRow$83);
6894
7109
  }
6895
7110
  } else {
6896
- var prevKeyPath$jscomp$4 = task.keyPath,
7111
+ var prevKeyPath$jscomp$5 = task.keyPath,
6897
7112
  prevContext$jscomp$1 = task.formatContext,
7113
+ prevRow = task.row,
6898
7114
  parentBoundary = task.blockedBoundary,
6899
7115
  parentPreamble = task.blockedPreamble,
6900
7116
  parentHoistableState = task.hoistableState,
@@ -6906,11 +7122,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
6906
7122
  2 > task.formatContext.insertionMode
6907
7123
  ? createSuspenseBoundary(
6908
7124
  request,
7125
+ task.row,
6909
7126
  fallbackAbortSet,
6910
7127
  createPreambleState(),
6911
7128
  createPreambleState()
6912
7129
  )
6913
- : createSuspenseBoundary(request, fallbackAbortSet, null, null);
7130
+ : createSuspenseBoundary(
7131
+ request,
7132
+ task.row,
7133
+ fallbackAbortSet,
7134
+ null,
7135
+ null
7136
+ );
6914
7137
  null !== request.trackedPostpones &&
6915
7138
  (newBoundary.trackedContentKeyPath = keyPath);
6916
7139
  var boundarySegment = createPendingSegment(
@@ -6964,7 +7187,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6964
7187
  } finally {
6965
7188
  (task.blockedSegment = parentSegment),
6966
7189
  (task.blockedPreamble = parentPreamble),
6967
- (task.keyPath = prevKeyPath$jscomp$4),
7190
+ (task.keyPath = prevKeyPath$jscomp$5),
6968
7191
  (task.formatContext = prevContext$jscomp$1);
6969
7192
  }
6970
7193
  var suspendedPrimaryTask = createRenderTask(
@@ -6984,6 +7207,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6984
7207
  ),
6985
7208
  task.context,
6986
7209
  task.treeContext,
7210
+ null,
6987
7211
  task.componentStack
6988
7212
  );
6989
7213
  pushComponentStack(suspendedPrimaryTask);
@@ -6998,6 +7222,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6998
7222
  request.resumableState,
6999
7223
  prevContext$jscomp$1
7000
7224
  );
7225
+ task.row = null;
7001
7226
  contentRootSegment.status = 6;
7002
7227
  try {
7003
7228
  if (
@@ -7008,17 +7233,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
7008
7233
  0 === newBoundary.status &&
7009
7234
  ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
7010
7235
  ) {
7236
+ null !== prevRow &&
7237
+ 0 === --prevRow.pendingTasks &&
7238
+ finishSuspenseListRow(request, prevRow);
7011
7239
  0 === request.pendingRootTasks &&
7012
7240
  task.blockedPreamble &&
7013
7241
  preparePreamble(request);
7014
7242
  break a;
7015
7243
  }
7016
- } catch (thrownValue$84) {
7244
+ } catch (thrownValue$85) {
7017
7245
  newBoundary.status = 4;
7018
7246
  if (12 === request.status) {
7019
7247
  contentRootSegment.status = 3;
7020
7248
  var error = request.fatalError;
7021
- } else (contentRootSegment.status = 4), (error = thrownValue$84);
7249
+ } else (contentRootSegment.status = 4), (error = thrownValue$85);
7022
7250
  var thrownInfo = getThrownInfo(task.componentStack);
7023
7251
  if (
7024
7252
  "object" === typeof error &&
@@ -7036,8 +7264,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
7036
7264
  (task.blockedPreamble = parentPreamble),
7037
7265
  (task.hoistableState = parentHoistableState),
7038
7266
  (task.blockedSegment = parentSegment),
7039
- (task.keyPath = prevKeyPath$jscomp$4),
7040
- (task.formatContext = prevContext$jscomp$1);
7267
+ (task.keyPath = prevKeyPath$jscomp$5),
7268
+ (task.formatContext = prevContext$jscomp$1),
7269
+ (task.row = prevRow);
7041
7270
  }
7042
7271
  var suspendedFallbackTask = createRenderTask(
7043
7272
  request,
@@ -7056,6 +7285,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
7056
7285
  ),
7057
7286
  task.context,
7058
7287
  task.treeContext,
7288
+ task.row,
7059
7289
  task.componentStack
7060
7290
  );
7061
7291
  pushComponentStack(suspendedFallbackTask);
@@ -7072,7 +7302,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
7072
7302
  for (var key in props)
7073
7303
  "ref" !== key && (propsWithoutRef[key] = props[key]);
7074
7304
  } else propsWithoutRef = props;
7075
- var children$jscomp$0 = renderWithHooks(
7305
+ var children$jscomp$1 = renderWithHooks(
7076
7306
  request,
7077
7307
  task,
7078
7308
  keyPath,
@@ -7084,7 +7314,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
7084
7314
  request,
7085
7315
  task,
7086
7316
  keyPath,
7087
- children$jscomp$0,
7317
+ children$jscomp$1,
7088
7318
  0 !== localIdCounter,
7089
7319
  actionStateCounter,
7090
7320
  actionStateMatchingIndex
@@ -7095,8 +7325,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
7095
7325
  return;
7096
7326
  case REACT_PROVIDER_TYPE:
7097
7327
  case REACT_CONTEXT_TYPE:
7098
- var children$jscomp$1 = props.children,
7099
- prevKeyPath$jscomp$5 = task.keyPath,
7328
+ var children$jscomp$2 = props.children,
7329
+ prevKeyPath$jscomp$6 = task.keyPath,
7100
7330
  nextValue = props.value;
7101
7331
  var prevValue = type._currentValue2;
7102
7332
  type._currentValue2 = nextValue;
@@ -7111,7 +7341,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
7111
7341
  currentActiveSnapshot = newNode;
7112
7342
  task.context = newNode;
7113
7343
  task.keyPath = keyPath;
7114
- renderNodeDestructive(request, task, children$jscomp$1, -1);
7344
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
7115
7345
  var prevSnapshot = currentActiveSnapshot;
7116
7346
  if (null === prevSnapshot)
7117
7347
  throw Error(
@@ -7121,15 +7351,15 @@ function renderElement(request, task, keyPath, type, props, ref) {
7121
7351
  var JSCompiler_inline_result$jscomp$3 = (currentActiveSnapshot =
7122
7352
  prevSnapshot.parent);
7123
7353
  task.context = JSCompiler_inline_result$jscomp$3;
7124
- task.keyPath = prevKeyPath$jscomp$5;
7354
+ task.keyPath = prevKeyPath$jscomp$6;
7125
7355
  return;
7126
7356
  case REACT_CONSUMER_TYPE:
7127
7357
  var render = props.children,
7128
7358
  newChildren = render(type._context._currentValue2),
7129
- prevKeyPath$jscomp$6 = task.keyPath;
7359
+ prevKeyPath$jscomp$7 = task.keyPath;
7130
7360
  task.keyPath = keyPath;
7131
7361
  renderNodeDestructive(request, task, newChildren, -1);
7132
- task.keyPath = prevKeyPath$jscomp$6;
7362
+ task.keyPath = prevKeyPath$jscomp$7;
7133
7363
  return;
7134
7364
  case REACT_LAZY_TYPE:
7135
7365
  var init = type._init;
@@ -7272,6 +7502,7 @@ function retryNode(request, task) {
7272
7502
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
7273
7503
  var prevKeyPath = task.keyPath,
7274
7504
  prevContext = task.formatContext,
7505
+ prevRow = task.row,
7275
7506
  previousReplaySet = task.replay,
7276
7507
  parentBoundary = task.blockedBoundary,
7277
7508
  parentHoistableState = task.hoistableState,
@@ -7282,12 +7513,14 @@ function retryNode(request, task) {
7282
7513
  2 > task.formatContext.insertionMode
7283
7514
  ? createSuspenseBoundary(
7284
7515
  request,
7516
+ task.row,
7285
7517
  fallbackAbortSet,
7286
7518
  createPreambleState(),
7287
7519
  createPreambleState()
7288
7520
  )
7289
7521
  : createSuspenseBoundary(
7290
7522
  request,
7523
+ task.row,
7291
7524
  fallbackAbortSet,
7292
7525
  null,
7293
7526
  null
@@ -7301,6 +7534,7 @@ function retryNode(request, task) {
7301
7534
  request.resumableState,
7302
7535
  prevContext
7303
7536
  );
7537
+ task.row = null;
7304
7538
  task.replay = {
7305
7539
  nodes: replay,
7306
7540
  slots: name,
@@ -7342,7 +7576,8 @@ function retryNode(request, task) {
7342
7576
  (task.hoistableState = parentHoistableState),
7343
7577
  (task.replay = previousReplaySet),
7344
7578
  (task.keyPath = prevKeyPath),
7345
- (task.formatContext = prevContext);
7579
+ (task.formatContext = prevContext),
7580
+ (task.row = prevRow);
7346
7581
  }
7347
7582
  task = createReplayTask(
7348
7583
  request,
@@ -7364,6 +7599,7 @@ function retryNode(request, task) {
7364
7599
  ),
7365
7600
  task.context,
7366
7601
  task.treeContext,
7602
+ task.row,
7367
7603
  task.componentStack
7368
7604
  );
7369
7605
  pushComponentStack(task);
@@ -7440,25 +7676,25 @@ function retryNode(request, task) {
7440
7676
  node._currentValue2,
7441
7677
  childIndex
7442
7678
  );
7443
- task = Object.prototype.toString.call(node);
7679
+ childIndex = Object.prototype.toString.call(node);
7444
7680
  throw Error(
7445
7681
  "Objects are not valid as a React child (found: " +
7446
- ("[object Object]" === task
7682
+ ("[object Object]" === childIndex
7447
7683
  ? "object with keys {" + Object.keys(node).join(", ") + "}"
7448
- : task) +
7684
+ : childIndex) +
7449
7685
  "). If you meant to render a collection of children, use an array instead."
7450
7686
  );
7451
7687
  }
7452
7688
  if ("string" === typeof node)
7453
- (task = task.blockedSegment),
7454
- null !== task &&
7455
- (task.chunks.push(escapeTextForBrowser(node)),
7456
- (task.lastPushedText = !1));
7689
+ (childIndex = task.blockedSegment),
7690
+ null !== childIndex &&
7691
+ (childIndex.chunks.push(escapeTextForBrowser(node)),
7692
+ (childIndex.lastPushedText = !1));
7457
7693
  else if ("number" === typeof node || "bigint" === typeof node)
7458
- (task = task.blockedSegment),
7459
- null !== task &&
7460
- (task.chunks.push(escapeTextForBrowser("" + node)),
7461
- (task.lastPushedText = !1));
7694
+ (childIndex = task.blockedSegment),
7695
+ null !== childIndex &&
7696
+ (childIndex.chunks.push(escapeTextForBrowser("" + node)),
7697
+ (childIndex.lastPushedText = !1));
7462
7698
  }
7463
7699
  }
7464
7700
  function renderChildrenArray(request, task, children, childIndex) {
@@ -7574,9 +7810,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7574
7810
  addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
7575
7811
  return;
7576
7812
  }
7577
- var boundaryNode$101 = trackedPostpones.workingMap.get(boundaryKeyPath);
7578
- void 0 === boundaryNode$101
7579
- ? ((boundaryNode$101 = [
7813
+ var boundaryNode$111 = trackedPostpones.workingMap.get(boundaryKeyPath);
7814
+ void 0 === boundaryNode$111
7815
+ ? ((boundaryNode$111 = [
7580
7816
  boundaryKeyPath[1],
7581
7817
  boundaryKeyPath[2],
7582
7818
  children,
@@ -7584,13 +7820,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7584
7820
  fallbackReplayNode,
7585
7821
  boundary.rootSegmentID
7586
7822
  ]),
7587
- trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$101),
7823
+ trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$111),
7588
7824
  addToReplayParent(
7589
- boundaryNode$101,
7825
+ boundaryNode$111,
7590
7826
  boundaryKeyPath[0],
7591
7827
  trackedPostpones
7592
7828
  ))
7593
- : ((boundaryKeyPath = boundaryNode$101),
7829
+ : ((boundaryKeyPath = boundaryNode$111),
7594
7830
  (boundaryKeyPath[4] = fallbackReplayNode),
7595
7831
  (boundaryKeyPath[5] = boundary.rootSegmentID));
7596
7832
  }
@@ -7659,6 +7895,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
7659
7895
  task.formatContext,
7660
7896
  task.context,
7661
7897
  task.treeContext,
7898
+ task.row,
7662
7899
  task.componentStack
7663
7900
  );
7664
7901
  }
@@ -7688,6 +7925,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
7688
7925
  task.formatContext,
7689
7926
  task.context,
7690
7927
  task.treeContext,
7928
+ task.row,
7691
7929
  task.componentStack
7692
7930
  );
7693
7931
  }
@@ -7742,15 +7980,15 @@ function renderNode(request, task, node, childIndex) {
7742
7980
  chunkLength = segment.chunks.length;
7743
7981
  try {
7744
7982
  return renderNodeDestructive(request, task, node, childIndex);
7745
- } catch (thrownValue$113) {
7983
+ } catch (thrownValue$123) {
7746
7984
  if (
7747
7985
  (resetHooksState(),
7748
7986
  (segment.children.length = childrenLength),
7749
7987
  (segment.chunks.length = chunkLength),
7750
7988
  (childIndex =
7751
- thrownValue$113 === SuspenseException
7989
+ thrownValue$123 === SuspenseException
7752
7990
  ? getSuspendedThenable()
7753
- : thrownValue$113),
7991
+ : thrownValue$123),
7754
7992
  "object" === typeof childIndex && null !== childIndex)
7755
7993
  ) {
7756
7994
  if ("function" === typeof childIndex.then) {
@@ -7839,9 +8077,10 @@ function erroredReplay(
7839
8077
  );
7840
8078
  }
7841
8079
  function abortTaskSoft(task) {
7842
- var boundary = task.blockedBoundary;
7843
- task = task.blockedSegment;
7844
- null !== task && ((task.status = 3), finishedTask(this, boundary, task));
8080
+ var boundary = task.blockedBoundary,
8081
+ segment = task.blockedSegment;
8082
+ null !== segment &&
8083
+ ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
7845
8084
  }
7846
8085
  function abortRemainingReplayNodes(
7847
8086
  request$jscomp$0,
@@ -7868,6 +8107,7 @@ function abortRemainingReplayNodes(
7868
8107
  errorDigest = errorDigest$jscomp$0,
7869
8108
  resumedBoundary = createSuspenseBoundary(
7870
8109
  request,
8110
+ null,
7871
8111
  new Set(),
7872
8112
  null,
7873
8113
  null
@@ -7901,6 +8141,10 @@ function abortTask(task, request, error) {
7901
8141
  if (6 === segment.status) return;
7902
8142
  segment.status = 3;
7903
8143
  }
8144
+ var row = task.row;
8145
+ null !== row &&
8146
+ 0 === --row.pendingTasks &&
8147
+ finishSuspenseListRow(request, row);
7904
8148
  var errorInfo = getThrownInfo(task.componentStack);
7905
8149
  if (null === boundary) {
7906
8150
  if (13 !== request.status && 14 !== request.status) {
@@ -7913,7 +8157,7 @@ function abortTask(task, request, error) {
7913
8157
  null !== boundary && null !== segment
7914
8158
  ? (logPostpone(request, error.message, errorInfo),
7915
8159
  trackPostpone(request, boundary, task, segment),
7916
- finishedTask(request, null, segment))
8160
+ finishedTask(request, null, row, segment))
7917
8161
  : ((task = Error(
7918
8162
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
7919
8163
  error.message
@@ -7924,7 +8168,7 @@ function abortTask(task, request, error) {
7924
8168
  ? ((boundary = request.trackedPostpones),
7925
8169
  logRecoverableError(request, error, errorInfo),
7926
8170
  trackPostpone(request, boundary, task, segment),
7927
- finishedTask(request, null, segment))
8171
+ finishedTask(request, null, row, segment))
7928
8172
  : (logRecoverableError(request, error, errorInfo),
7929
8173
  fatalError(request, error));
7930
8174
  return;
@@ -7951,21 +8195,21 @@ function abortTask(task, request, error) {
7951
8195
  }
7952
8196
  } else {
7953
8197
  boundary.pendingTasks--;
7954
- var trackedPostpones$116 = request.trackedPostpones;
8198
+ var trackedPostpones$126 = request.trackedPostpones;
7955
8199
  if (4 !== boundary.status) {
7956
- if (null !== trackedPostpones$116 && null !== segment)
8200
+ if (null !== trackedPostpones$126 && null !== segment)
7957
8201
  return (
7958
8202
  "object" === typeof error &&
7959
8203
  null !== error &&
7960
8204
  error.$$typeof === REACT_POSTPONE_TYPE
7961
8205
  ? logPostpone(request, error.message, errorInfo)
7962
8206
  : logRecoverableError(request, error, errorInfo),
7963
- trackPostpone(request, trackedPostpones$116, task, segment),
8207
+ trackPostpone(request, trackedPostpones$126, task, segment),
7964
8208
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7965
8209
  return abortTask(fallbackTask, request, error);
7966
8210
  }),
7967
8211
  boundary.fallbackAbortableTasks.clear(),
7968
- finishedTask(request, boundary, segment)
8212
+ finishedTask(request, boundary, row, segment)
7969
8213
  );
7970
8214
  boundary.status = 4;
7971
8215
  if (
@@ -7976,7 +8220,7 @@ function abortTask(task, request, error) {
7976
8220
  logPostpone(request, error.message, errorInfo);
7977
8221
  if (null !== request.trackedPostpones && null !== segment) {
7978
8222
  trackPostpone(request, request.trackedPostpones, task, segment);
7979
- finishedTask(request, task.blockedBoundary, segment);
8223
+ finishedTask(request, task.blockedBoundary, row, segment);
7980
8224
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7981
8225
  return abortTask(fallbackTask, request, error);
7982
8226
  });
@@ -8091,7 +8335,10 @@ function queueCompletedSegment(boundary, segment) {
8091
8335
  1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
8092
8336
  } else boundary.completedSegments.push(segment);
8093
8337
  }
8094
- function finishedTask(request, boundary, segment) {
8338
+ function finishedTask(request, boundary, row, segment) {
8339
+ null !== row &&
8340
+ 0 === --row.pendingTasks &&
8341
+ finishSuspenseListRow(request, row);
8095
8342
  request.allPendingTasks--;
8096
8343
  if (null === boundary) {
8097
8344
  if (null !== segment && segment.parentFlushed) {
@@ -8120,7 +8367,11 @@ function finishedTask(request, boundary, segment) {
8120
8367
  abortTaskSoft,
8121
8368
  request
8122
8369
  ),
8123
- boundary.fallbackAbortableTasks.clear()),
8370
+ boundary.fallbackAbortableTasks.clear(),
8371
+ (row = boundary.row),
8372
+ null !== row &&
8373
+ 0 === --row.pendingTasks &&
8374
+ finishSuspenseListRow(request, row)),
8124
8375
  0 === request.pendingRootTasks &&
8125
8376
  null === request.trackedPostpones &&
8126
8377
  null !== boundary.contentPreamble &&
@@ -8173,7 +8424,12 @@ function performWork(request$jscomp$1) {
8173
8424
  );
8174
8425
  task.replay.pendingTasks--;
8175
8426
  task.abortSet.delete(task);
8176
- finishedTask(request$jscomp$0, task.blockedBoundary, null);
8427
+ finishedTask(
8428
+ request$jscomp$0,
8429
+ task.blockedBoundary,
8430
+ task.row,
8431
+ null
8432
+ );
8177
8433
  } catch (thrownValue) {
8178
8434
  resetHooksState();
8179
8435
  var x =
@@ -8225,7 +8481,12 @@ function performWork(request$jscomp$1) {
8225
8481
  retryNode(request, task),
8226
8482
  task.abortSet.delete(task),
8227
8483
  (segment$jscomp$0.status = 1),
8228
- finishedTask(request, task.blockedBoundary, segment$jscomp$0);
8484
+ finishedTask(
8485
+ request,
8486
+ task.blockedBoundary,
8487
+ task.row,
8488
+ segment$jscomp$0
8489
+ );
8229
8490
  } catch (thrownValue) {
8230
8491
  resetHooksState();
8231
8492
  segment$jscomp$0.children.length = childrenLength;
@@ -8254,7 +8515,12 @@ function performWork(request$jscomp$1) {
8254
8515
  task,
8255
8516
  segment$jscomp$0
8256
8517
  );
8257
- finishedTask(request, task.blockedBoundary, segment$jscomp$0);
8518
+ finishedTask(
8519
+ request,
8520
+ task.blockedBoundary,
8521
+ task.row,
8522
+ segment$jscomp$0
8523
+ );
8258
8524
  } else {
8259
8525
  if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
8260
8526
  if ("function" === typeof x$jscomp$0.then) {
@@ -8268,19 +8534,20 @@ function performWork(request$jscomp$1) {
8268
8534
  null !== request.trackedPostpones &&
8269
8535
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
8270
8536
  ) {
8271
- var trackedPostpones$120 = request.trackedPostpones;
8537
+ var trackedPostpones$130 = request.trackedPostpones;
8272
8538
  task.abortSet.delete(task);
8273
8539
  var postponeInfo = getThrownInfo(task.componentStack);
8274
8540
  logPostpone(request, x$jscomp$0.message, postponeInfo);
8275
8541
  trackPostpone(
8276
8542
  request,
8277
- trackedPostpones$120,
8543
+ trackedPostpones$130,
8278
8544
  task,
8279
8545
  segment$jscomp$0
8280
8546
  );
8281
8547
  finishedTask(
8282
8548
  request,
8283
8549
  task.blockedBoundary,
8550
+ task.row,
8284
8551
  segment$jscomp$0
8285
8552
  );
8286
8553
  break a;
@@ -8289,7 +8556,12 @@ function performWork(request$jscomp$1) {
8289
8556
  var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
8290
8557
  task.abortSet.delete(task);
8291
8558
  segment$jscomp$0.status = 4;
8292
- var boundary = task.blockedBoundary;
8559
+ var boundary = task.blockedBoundary,
8560
+ row = task.row;
8561
+ null !== row &&
8562
+ 0 === --row.pendingTasks &&
8563
+ finishSuspenseListRow(request, row);
8564
+ request.allPendingTasks--;
8293
8565
  "object" === typeof x$jscomp$0 &&
8294
8566
  null !== x$jscomp$0 &&
8295
8567
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
@@ -8317,7 +8589,6 @@ function performWork(request$jscomp$1) {
8317
8589
  null === request.trackedPostpones &&
8318
8590
  null !== boundary.contentPreamble &&
8319
8591
  preparePreamble(request)));
8320
- request.allPendingTasks--;
8321
8592
  0 === request.allPendingTasks && completeAll(request);
8322
8593
  }
8323
8594
  } finally {
@@ -8463,7 +8734,14 @@ function flushSegment(request, destination, segment, hoistableState) {
8463
8734
  return flushSubtree(request, destination, segment, hoistableState);
8464
8735
  boundary.parentFlushed = !0;
8465
8736
  if (4 === boundary.status)
8466
- return flushSubtree(request, destination, segment, hoistableState), !0;
8737
+ return (
8738
+ (boundary = boundary.row),
8739
+ null !== boundary &&
8740
+ 0 === --boundary.pendingTasks &&
8741
+ finishSuspenseListRow(request, boundary),
8742
+ flushSubtree(request, destination, segment, hoistableState),
8743
+ !0
8744
+ );
8467
8745
  if (1 !== boundary.status)
8468
8746
  return (
8469
8747
  0 === boundary.status &&
@@ -8505,6 +8783,11 @@ function flushSegment(request, destination, segment, hoistableState) {
8505
8783
  ((segment = boundary.contentState),
8506
8784
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
8507
8785
  segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
8786
+ segment = boundary.row;
8787
+ null !== segment &&
8788
+ 500 < boundary.byteSize &&
8789
+ 0 === --segment.pendingTasks &&
8790
+ finishSuspenseListRow(request, segment);
8508
8791
  segment = boundary.completedSegments;
8509
8792
  if (1 !== segment.length)
8510
8793
  throw Error(
@@ -8537,6 +8820,11 @@ function flushCompletedBoundary(request, destination, boundary) {
8537
8820
  completedSegments[i]
8538
8821
  );
8539
8822
  completedSegments.length = 0;
8823
+ completedSegments = boundary.row;
8824
+ null !== completedSegments &&
8825
+ 500 < boundary.byteSize &&
8826
+ 0 === --completedSegments.pendingTasks &&
8827
+ finishSuspenseListRow(request, completedSegments);
8540
8828
  writeHoistablesForBoundary(
8541
8829
  destination,
8542
8830
  boundary.contentState,
@@ -8608,11 +8896,12 @@ function flushCompletedBoundary(request, destination, boundary) {
8608
8896
  ? destination.push(")\x3c/script>")
8609
8897
  : destination.push('"></template>');
8610
8898
  request = request.bootstrapChunks;
8611
- for (i = 0; i < request.length - 1; i++) destination.push(request[i]);
8612
- i < request.length
8613
- ? ((i = request[i]),
8899
+ for (boundary = 0; boundary < request.length - 1; boundary++)
8900
+ destination.push(request[boundary]);
8901
+ boundary < request.length
8902
+ ? ((boundary = request[boundary]),
8614
8903
  (request.length = 0),
8615
- (destination = destination.push(i)))
8904
+ (destination = destination.push(boundary)))
8616
8905
  : (destination = !0);
8617
8906
  return destination && completedSegments;
8618
8907
  }
@@ -8840,12 +9129,12 @@ function flushCompletedQueues(request, destination) {
8840
9129
  completedBoundaries.splice(0, i);
8841
9130
  var partialBoundaries = request.partialBoundaries;
8842
9131
  for (i = 0; i < partialBoundaries.length; i++) {
8843
- var boundary$123 = partialBoundaries[i];
9132
+ var boundary$134 = partialBoundaries[i];
8844
9133
  a: {
8845
9134
  clientRenderedBoundaries = request;
8846
9135
  boundary = destination;
8847
- flushedByteSize = boundary$123.byteSize;
8848
- var completedSegments = boundary$123.completedSegments;
9136
+ flushedByteSize = boundary$134.byteSize;
9137
+ var completedSegments = boundary$134.completedSegments;
8849
9138
  for (
8850
9139
  JSCompiler_inline_result = 0;
8851
9140
  JSCompiler_inline_result < completedSegments.length;
@@ -8855,7 +9144,7 @@ function flushCompletedQueues(request, destination) {
8855
9144
  !flushPartiallyCompletedSegment(
8856
9145
  clientRenderedBoundaries,
8857
9146
  boundary,
8858
- boundary$123,
9147
+ boundary$134,
8859
9148
  completedSegments[JSCompiler_inline_result]
8860
9149
  )
8861
9150
  ) {
@@ -8867,7 +9156,7 @@ function flushCompletedQueues(request, destination) {
8867
9156
  completedSegments.splice(0, JSCompiler_inline_result);
8868
9157
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8869
9158
  boundary,
8870
- boundary$123.contentState,
9159
+ boundary$134.contentState,
8871
9160
  clientRenderedBoundaries.renderState
8872
9161
  );
8873
9162
  }
@@ -8938,8 +9227,8 @@ function abort(request, reason) {
8938
9227
  }
8939
9228
  null !== request.destination &&
8940
9229
  flushCompletedQueues(request, request.destination);
8941
- } catch (error$125) {
8942
- logRecoverableError(request, error$125, {}), fatalError(request, error$125);
9230
+ } catch (error$136) {
9231
+ logRecoverableError(request, error$136, {}), fatalError(request, error$136);
8943
9232
  }
8944
9233
  }
8945
9234
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -9250,4 +9539,4 @@ exports.experimental_renderToHTML = function (children, options) {
9250
9539
  });
9251
9540
  });
9252
9541
  };
9253
- exports.version = "19.2.0-experimental-462d08f9-20250517";
9542
+ exports.version = "19.2.0-experimental-c4676e72-20250520";