react-markup 0.0.0-experimental-4448b187-20250515 → 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.
@@ -41,6 +41,14 @@
41
41
  function scriptReplacer(match, prefix, s, suffix) {
42
42
  return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
43
43
  }
44
+ function getIteratorFn(maybeIterable) {
45
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
46
+ return null;
47
+ maybeIterable =
48
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
49
+ maybeIterable["@@iterator"];
50
+ return "function" === typeof maybeIterable ? maybeIterable : null;
51
+ }
44
52
  function objectName(object) {
45
53
  return Object.prototype.toString
46
54
  .call(object)
@@ -1087,7 +1095,8 @@
1087
1095
  nameIdx: 0
1088
1096
  };
1089
1097
  }
1090
- function getSuspenseFallbackFormatContext(parentContext) {
1098
+ function getSuspenseFallbackFormatContext(resumableState, parentContext) {
1099
+ parentContext.tagScope & 32 && (resumableState.instructions |= 128);
1091
1100
  return createFormatContext(
1092
1101
  parentContext.insertionMode,
1093
1102
  parentContext.selectedValue,
@@ -1095,7 +1104,7 @@
1095
1104
  getSuspenseViewTransition(parentContext.viewTransition)
1096
1105
  );
1097
1106
  }
1098
- function getSuspenseContentFormatContext(parentContext) {
1107
+ function getSuspenseContentFormatContext(resumableState, parentContext) {
1099
1108
  return createFormatContext(
1100
1109
  parentContext.insertionMode,
1101
1110
  parentContext.selectedValue,
@@ -4608,6 +4617,7 @@
4608
4617
  null,
4609
4618
  emptyTreeContext,
4610
4619
  null,
4620
+ null,
4611
4621
  emptyContextObject,
4612
4622
  null
4613
4623
  );
@@ -4623,15 +4633,17 @@
4623
4633
  }
4624
4634
  function createSuspenseBoundary(
4625
4635
  request,
4636
+ row,
4626
4637
  fallbackAbortableTasks,
4627
4638
  contentPreamble,
4628
4639
  fallbackPreamble
4629
4640
  ) {
4630
- return {
4641
+ fallbackAbortableTasks = {
4631
4642
  status: 0,
4632
4643
  rootSegmentID: -1,
4633
4644
  parentFlushed: !1,
4634
4645
  pendingTasks: 0,
4646
+ row: row,
4635
4647
  completedSegments: [],
4636
4648
  byteSize: 0,
4637
4649
  fallbackAbortableTasks: fallbackAbortableTasks,
@@ -4646,6 +4658,14 @@
4646
4658
  errorStack: null,
4647
4659
  errorComponentStack: null
4648
4660
  };
4661
+ null !== row &&
4662
+ (row.pendingTasks++,
4663
+ (row = row.boundaries),
4664
+ null !== row &&
4665
+ (request.allPendingTasks++,
4666
+ fallbackAbortableTasks.pendingTasks++,
4667
+ row.push(fallbackAbortableTasks)));
4668
+ return fallbackAbortableTasks;
4649
4669
  }
4650
4670
  function createRenderTask(
4651
4671
  request,
@@ -4661,6 +4681,7 @@
4661
4681
  formatContext,
4662
4682
  context,
4663
4683
  treeContext,
4684
+ row,
4664
4685
  componentStack,
4665
4686
  legacyContext,
4666
4687
  debugTask
@@ -4669,6 +4690,7 @@
4669
4690
  null === blockedBoundary
4670
4691
  ? request.pendingRootTasks++
4671
4692
  : blockedBoundary.pendingTasks++;
4693
+ null !== row && row.pendingTasks++;
4672
4694
  var task = {
4673
4695
  replay: null,
4674
4696
  node: node,
@@ -4685,6 +4707,7 @@
4685
4707
  formatContext: formatContext,
4686
4708
  context: context,
4687
4709
  treeContext: treeContext,
4710
+ row: row,
4688
4711
  componentStack: componentStack,
4689
4712
  thenableState: thenableState
4690
4713
  };
@@ -4705,6 +4728,7 @@
4705
4728
  formatContext,
4706
4729
  context,
4707
4730
  treeContext,
4731
+ row,
4708
4732
  componentStack,
4709
4733
  legacyContext,
4710
4734
  debugTask
@@ -4713,6 +4737,7 @@
4713
4737
  null === blockedBoundary
4714
4738
  ? request.pendingRootTasks++
4715
4739
  : blockedBoundary.pendingTasks++;
4740
+ null !== row && row.pendingTasks++;
4716
4741
  replay.pendingTasks++;
4717
4742
  var task = {
4718
4743
  replay: replay,
@@ -4730,6 +4755,7 @@
4730
4755
  formatContext: formatContext,
4731
4756
  context: context,
4732
4757
  treeContext: treeContext,
4758
+ row: row,
4733
4759
  componentStack: componentStack,
4734
4760
  thenableState: thenableState
4735
4761
  };
@@ -4921,6 +4947,137 @@
4921
4947
  ? ((request.status = 14), request.destination.destroy(error))
4922
4948
  : ((request.status = 13), (request.fatalError = error));
4923
4949
  }
4950
+ function finishSuspenseListRow(request, row) {
4951
+ for (row = row.next; null !== row; ) {
4952
+ var unblockedBoundaries = row.boundaries;
4953
+ if (null !== unblockedBoundaries) {
4954
+ row.boundaries = null;
4955
+ for (var i = 0; i < unblockedBoundaries.length; i++)
4956
+ finishedTask(request, unblockedBoundaries[i], null, null);
4957
+ }
4958
+ row.pendingTasks--;
4959
+ if (0 < row.pendingTasks) break;
4960
+ row = row.next;
4961
+ }
4962
+ }
4963
+ function createSuspenseListRow(previousRow) {
4964
+ var newRow = { pendingTasks: 1, boundaries: null, next: null };
4965
+ null !== previousRow &&
4966
+ 0 < previousRow.pendingTasks &&
4967
+ (newRow.pendingTasks++,
4968
+ (newRow.boundaries = []),
4969
+ (previousRow.next = newRow));
4970
+ return newRow;
4971
+ }
4972
+ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
4973
+ keyPath = task.keyPath;
4974
+ var previousComponentStack = task.componentStack;
4975
+ var previousDebugTask = task.debugTask;
4976
+ pushServerComponentStack(task, task.node.props.children._debugInfo);
4977
+ var prevTreeContext = task.treeContext,
4978
+ prevRow = task.row,
4979
+ totalChildren = rows.length,
4980
+ previousSuspenseListRow = null;
4981
+ if (null !== task.replay) {
4982
+ var resumeSlots = task.replay.slots;
4983
+ if (null !== resumeSlots && "object" === typeof resumeSlots)
4984
+ for (var n = 0; n < totalChildren; n++) {
4985
+ var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
4986
+ node = rows[i];
4987
+ task.row = previousSuspenseListRow = createSuspenseListRow(
4988
+ previousSuspenseListRow
4989
+ );
4990
+ task.treeContext = pushTreeContext(
4991
+ prevTreeContext,
4992
+ totalChildren,
4993
+ i
4994
+ );
4995
+ var resumeSegmentID = resumeSlots[i];
4996
+ "number" === typeof resumeSegmentID
4997
+ ? (resumeNode(request, task, resumeSegmentID, node, i),
4998
+ delete resumeSlots[i])
4999
+ : renderNode(request, task, node, i);
5000
+ 0 === --previousSuspenseListRow.pendingTasks &&
5001
+ finishSuspenseListRow(request, previousSuspenseListRow);
5002
+ }
5003
+ else
5004
+ for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
5005
+ (n =
5006
+ "backwards" !== revealOrder
5007
+ ? resumeSlots
5008
+ : totalChildren - 1 - resumeSlots),
5009
+ (i = rows[n]),
5010
+ warnForMissingKey(request, task, i),
5011
+ (task.row = previousSuspenseListRow =
5012
+ createSuspenseListRow(previousSuspenseListRow)),
5013
+ (task.treeContext = pushTreeContext(
5014
+ prevTreeContext,
5015
+ totalChildren,
5016
+ n
5017
+ )),
5018
+ renderNode(request, task, i, n),
5019
+ 0 === --previousSuspenseListRow.pendingTasks &&
5020
+ finishSuspenseListRow(request, previousSuspenseListRow);
5021
+ } else if ("backwards" !== revealOrder)
5022
+ for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
5023
+ (resumeSlots = rows[revealOrder]),
5024
+ warnForMissingKey(request, task, resumeSlots),
5025
+ (task.row = previousSuspenseListRow =
5026
+ createSuspenseListRow(previousSuspenseListRow)),
5027
+ (task.treeContext = pushTreeContext(
5028
+ prevTreeContext,
5029
+ totalChildren,
5030
+ revealOrder
5031
+ )),
5032
+ renderNode(request, task, resumeSlots, revealOrder),
5033
+ 0 === --previousSuspenseListRow.pendingTasks &&
5034
+ finishSuspenseListRow(request, previousSuspenseListRow);
5035
+ else {
5036
+ revealOrder = task.blockedSegment;
5037
+ resumeSlots = revealOrder.children.length;
5038
+ n = revealOrder.chunks.length;
5039
+ for (i = totalChildren - 1; 0 <= i; i--) {
5040
+ node = rows[i];
5041
+ task.row = previousSuspenseListRow = createSuspenseListRow(
5042
+ previousSuspenseListRow
5043
+ );
5044
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
5045
+ resumeSegmentID = createPendingSegment(
5046
+ request,
5047
+ n,
5048
+ null,
5049
+ task.formatContext,
5050
+ 0 === i ? revealOrder.lastPushedText : !0,
5051
+ !0
5052
+ );
5053
+ revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
5054
+ task.blockedSegment = resumeSegmentID;
5055
+ warnForMissingKey(request, task, node);
5056
+ try {
5057
+ renderNode(request, task, node, i),
5058
+ (resumeSegmentID.status = 1),
5059
+ 0 === --previousSuspenseListRow.pendingTasks &&
5060
+ finishSuspenseListRow(request, previousSuspenseListRow);
5061
+ } catch (thrownValue) {
5062
+ throw (
5063
+ ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
5064
+ thrownValue)
5065
+ );
5066
+ }
5067
+ }
5068
+ task.blockedSegment = revealOrder;
5069
+ revealOrder.lastPushedText = !1;
5070
+ }
5071
+ null !== prevRow &&
5072
+ null !== previousSuspenseListRow &&
5073
+ 0 < previousSuspenseListRow.pendingTasks &&
5074
+ (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
5075
+ task.treeContext = prevTreeContext;
5076
+ task.row = prevRow;
5077
+ task.keyPath = keyPath;
5078
+ task.componentStack = previousComponentStack;
5079
+ task.debugTask = previousDebugTask;
5080
+ }
4924
5081
  function renderWithHooks(
4925
5082
  request,
4926
5083
  task,
@@ -5517,6 +5674,7 @@
5517
5674
  task.formatContext,
5518
5675
  task.context,
5519
5676
  task.treeContext,
5677
+ task.row,
5520
5678
  task.componentStack,
5521
5679
  emptyContextObject,
5522
5680
  task.debugTask
@@ -5598,14 +5756,103 @@
5598
5756
  }
5599
5757
  return;
5600
5758
  case REACT_SUSPENSE_LIST_TYPE:
5601
- var _prevKeyPath4 = task.keyPath;
5602
- task.keyPath = keyPath;
5603
- renderNodeDestructive(request, task, props.children, -1);
5604
- task.keyPath = _prevKeyPath4;
5759
+ a: {
5760
+ var children$jscomp$0 = props.children,
5761
+ revealOrder = props.revealOrder;
5762
+ if ("forwards" === revealOrder || "backwards" === revealOrder) {
5763
+ if (isArrayImpl(children$jscomp$0)) {
5764
+ renderSuspenseListRows(
5765
+ request,
5766
+ task,
5767
+ keyPath,
5768
+ children$jscomp$0,
5769
+ revealOrder
5770
+ );
5771
+ break a;
5772
+ }
5773
+ var iteratorFn = getIteratorFn(children$jscomp$0);
5774
+ if (iteratorFn) {
5775
+ var iterator = iteratorFn.call(children$jscomp$0);
5776
+ if (iterator) {
5777
+ validateIterable(
5778
+ task,
5779
+ children$jscomp$0,
5780
+ -1,
5781
+ iterator,
5782
+ iteratorFn
5783
+ );
5784
+ var step = iterator.next();
5785
+ if (!step.done) {
5786
+ var rows = [];
5787
+ do rows.push(step.value), (step = iterator.next());
5788
+ while (!step.done);
5789
+ renderSuspenseListRows(
5790
+ request,
5791
+ task,
5792
+ keyPath,
5793
+ children$jscomp$0,
5794
+ revealOrder
5795
+ );
5796
+ }
5797
+ break a;
5798
+ }
5799
+ }
5800
+ if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
5801
+ var _iterator = children$jscomp$0[ASYNC_ITERATOR]();
5802
+ if (_iterator) {
5803
+ validateAsyncIterable(
5804
+ task,
5805
+ children$jscomp$0,
5806
+ -1,
5807
+ _iterator
5808
+ );
5809
+ var prevThenableState = task.thenableState;
5810
+ task.thenableState = null;
5811
+ thenableIndexCounter = 0;
5812
+ thenableState = prevThenableState;
5813
+ var _rows = [],
5814
+ done = !1;
5815
+ if (_iterator === children$jscomp$0)
5816
+ for (
5817
+ var _step = readPreviousThenableFromState();
5818
+ void 0 !== _step;
5819
+
5820
+ ) {
5821
+ if (_step.done) {
5822
+ done = !0;
5823
+ break;
5824
+ }
5825
+ _rows.push(_step.value);
5826
+ _step = readPreviousThenableFromState();
5827
+ }
5828
+ if (!done)
5829
+ for (
5830
+ var _step2 = unwrapThenable(_iterator.next());
5831
+ !_step2.done;
5832
+
5833
+ )
5834
+ _rows.push(_step2.value),
5835
+ (_step2 = unwrapThenable(_iterator.next()));
5836
+ renderSuspenseListRows(
5837
+ request,
5838
+ task,
5839
+ keyPath,
5840
+ _rows,
5841
+ revealOrder
5842
+ );
5843
+ break a;
5844
+ }
5845
+ }
5846
+ }
5847
+ var prevKeyPath$jscomp$3 = task.keyPath;
5848
+ task.keyPath = keyPath;
5849
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5850
+ task.keyPath = prevKeyPath$jscomp$3;
5851
+ }
5605
5852
  return;
5606
5853
  case REACT_VIEW_TRANSITION_TYPE:
5607
5854
  var prevContext$jscomp$0 = task.formatContext,
5608
- prevKeyPath$jscomp$3 = task.keyPath;
5855
+ prevKeyPath$jscomp$4 = task.keyPath;
5609
5856
  var resumableState$jscomp$1 = request.resumableState;
5610
5857
  if (null == props.name || "auto" === props.name) {
5611
5858
  var treeId = getTreeId(task.treeContext);
@@ -5622,7 +5869,7 @@
5622
5869
  task.treeContext = prevTreeContext;
5623
5870
  }
5624
5871
  task.formatContext = prevContext$jscomp$0;
5625
- task.keyPath = prevKeyPath$jscomp$3;
5872
+ task.keyPath = prevKeyPath$jscomp$4;
5626
5873
  return;
5627
5874
  case REACT_SCOPE_TYPE:
5628
5875
  throw Error(
@@ -5631,20 +5878,26 @@
5631
5878
  case REACT_SUSPENSE_TYPE:
5632
5879
  a: if (null !== task.replay) {
5633
5880
  var _prevKeyPath = task.keyPath,
5634
- _prevContext = task.formatContext;
5881
+ _prevContext = task.formatContext,
5882
+ _prevRow = task.row;
5635
5883
  task.keyPath = keyPath;
5636
- task.formatContext =
5637
- getSuspenseContentFormatContext(_prevContext);
5884
+ task.formatContext = getSuspenseContentFormatContext(
5885
+ request.resumableState,
5886
+ _prevContext
5887
+ );
5888
+ task.row = null;
5638
5889
  var _content = props.children;
5639
5890
  try {
5640
5891
  renderNode(request, task, _content, -1);
5641
5892
  } finally {
5642
5893
  (task.keyPath = _prevKeyPath),
5643
- (task.formatContext = _prevContext);
5894
+ (task.formatContext = _prevContext),
5895
+ (task.row = _prevRow);
5644
5896
  }
5645
5897
  } else {
5646
- var prevKeyPath$jscomp$4 = task.keyPath,
5898
+ var prevKeyPath$jscomp$5 = task.keyPath,
5647
5899
  prevContext$jscomp$1 = task.formatContext,
5900
+ prevRow = task.row,
5648
5901
  parentBoundary = task.blockedBoundary,
5649
5902
  parentPreamble = task.blockedPreamble,
5650
5903
  parentHoistableState = task.hoistableState,
@@ -5656,12 +5909,14 @@
5656
5909
  2 > task.formatContext.insertionMode
5657
5910
  ? createSuspenseBoundary(
5658
5911
  request,
5912
+ task.row,
5659
5913
  fallbackAbortSet,
5660
5914
  createPreambleState(),
5661
5915
  createPreambleState()
5662
5916
  )
5663
5917
  : createSuspenseBoundary(
5664
5918
  request,
5919
+ task.row,
5665
5920
  fallbackAbortSet,
5666
5921
  null,
5667
5922
  null
@@ -5707,8 +5962,10 @@
5707
5962
  task.blockedSegment = boundarySegment;
5708
5963
  task.blockedPreamble = newBoundary.fallbackPreamble;
5709
5964
  task.keyPath = fallbackKeyPath;
5710
- task.formatContext =
5711
- getSuspenseFallbackFormatContext(prevContext$jscomp$1);
5965
+ task.formatContext = getSuspenseFallbackFormatContext(
5966
+ request.resumableState,
5967
+ prevContext$jscomp$1
5968
+ );
5712
5969
  boundarySegment.status = 6;
5713
5970
  try {
5714
5971
  renderNode(request, task, fallback, -1),
@@ -5721,7 +5978,7 @@
5721
5978
  } finally {
5722
5979
  (task.blockedSegment = parentSegment),
5723
5980
  (task.blockedPreamble = parentPreamble),
5724
- (task.keyPath = prevKeyPath$jscomp$4),
5981
+ (task.keyPath = prevKeyPath$jscomp$5),
5725
5982
  (task.formatContext = prevContext$jscomp$1);
5726
5983
  }
5727
5984
  var suspendedPrimaryTask = createRenderTask(
@@ -5735,9 +5992,13 @@
5735
5992
  newBoundary.contentState,
5736
5993
  task.abortSet,
5737
5994
  keyPath,
5738
- getSuspenseContentFormatContext(task.formatContext),
5995
+ getSuspenseContentFormatContext(
5996
+ request.resumableState,
5997
+ task.formatContext
5998
+ ),
5739
5999
  task.context,
5740
6000
  task.treeContext,
6001
+ null,
5741
6002
  task.componentStack,
5742
6003
  emptyContextObject,
5743
6004
  task.debugTask
@@ -5750,8 +6011,11 @@
5750
6011
  task.hoistableState = newBoundary.contentState;
5751
6012
  task.blockedSegment = contentRootSegment;
5752
6013
  task.keyPath = keyPath;
5753
- task.formatContext =
5754
- getSuspenseContentFormatContext(prevContext$jscomp$1);
6014
+ task.formatContext = getSuspenseContentFormatContext(
6015
+ request.resumableState,
6016
+ prevContext$jscomp$1
6017
+ );
6018
+ task.row = null;
5755
6019
  contentRootSegment.status = 6;
5756
6020
  try {
5757
6021
  if (
@@ -5762,6 +6026,9 @@
5762
6026
  0 === newBoundary.status &&
5763
6027
  ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
5764
6028
  ) {
6029
+ null !== prevRow &&
6030
+ 0 === --prevRow.pendingTasks &&
6031
+ finishSuspenseListRow(request, prevRow);
5765
6032
  0 === request.pendingRootTasks &&
5766
6033
  task.blockedPreamble &&
5767
6034
  preparePreamble(request);
@@ -5807,8 +6074,9 @@
5807
6074
  (task.blockedPreamble = parentPreamble),
5808
6075
  (task.hoistableState = parentHoistableState),
5809
6076
  (task.blockedSegment = parentSegment),
5810
- (task.keyPath = prevKeyPath$jscomp$4),
5811
- (task.formatContext = prevContext$jscomp$1);
6077
+ (task.keyPath = prevKeyPath$jscomp$5),
6078
+ (task.formatContext = prevContext$jscomp$1),
6079
+ (task.row = prevRow);
5812
6080
  }
5813
6081
  var suspendedFallbackTask = createRenderTask(
5814
6082
  request,
@@ -5821,9 +6089,13 @@
5821
6089
  newBoundary.fallbackState,
5822
6090
  fallbackAbortSet,
5823
6091
  [keyPath[0], "Suspense Fallback", keyPath[2]],
5824
- getSuspenseFallbackFormatContext(task.formatContext),
6092
+ getSuspenseFallbackFormatContext(
6093
+ request.resumableState,
6094
+ task.formatContext
6095
+ ),
5825
6096
  task.context,
5826
6097
  task.treeContext,
6098
+ task.row,
5827
6099
  task.componentStack,
5828
6100
  emptyContextObject,
5829
6101
  task.debugTask
@@ -5842,7 +6114,7 @@
5842
6114
  for (var key in props)
5843
6115
  "ref" !== key && (propsWithoutRef[key] = props[key]);
5844
6116
  } else propsWithoutRef = props;
5845
- var children$jscomp$0 = renderWithHooks(
6117
+ var children$jscomp$1 = renderWithHooks(
5846
6118
  request,
5847
6119
  task,
5848
6120
  keyPath,
@@ -5854,7 +6126,7 @@
5854
6126
  request,
5855
6127
  task,
5856
6128
  keyPath,
5857
- children$jscomp$0,
6129
+ children$jscomp$1,
5858
6130
  0 !== localIdCounter,
5859
6131
  actionStateCounter,
5860
6132
  actionStateMatchingIndex
@@ -5866,9 +6138,9 @@
5866
6138
  case REACT_PROVIDER_TYPE:
5867
6139
  case REACT_CONTEXT_TYPE:
5868
6140
  var value$jscomp$0 = props.value,
5869
- children$jscomp$1 = props.children;
6141
+ children$jscomp$2 = props.children;
5870
6142
  var prevSnapshot = task.context;
5871
- var prevKeyPath$jscomp$5 = task.keyPath;
6143
+ var prevKeyPath$jscomp$6 = task.keyPath;
5872
6144
  var prevValue = type._currentValue2;
5873
6145
  type._currentValue2 = value$jscomp$0;
5874
6146
  void 0 !== type._currentRenderer2 &&
@@ -5889,7 +6161,7 @@
5889
6161
  currentActiveSnapshot = newNode;
5890
6162
  task.context = newNode;
5891
6163
  task.keyPath = keyPath;
5892
- renderNodeDestructive(request, task, children$jscomp$1, -1);
6164
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
5893
6165
  var prevSnapshot$jscomp$0 = currentActiveSnapshot;
5894
6166
  if (null === prevSnapshot$jscomp$0)
5895
6167
  throw Error(
@@ -5911,7 +6183,7 @@
5911
6183
  var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
5912
6184
  prevSnapshot$jscomp$0.parent);
5913
6185
  task.context = JSCompiler_inline_result$jscomp$0;
5914
- task.keyPath = prevKeyPath$jscomp$5;
6186
+ task.keyPath = prevKeyPath$jscomp$6;
5915
6187
  prevSnapshot !== task.context &&
5916
6188
  console.error(
5917
6189
  "Popping the context provider did not return back to the original snapshot. This is a bug in React."
@@ -5925,10 +6197,10 @@
5925
6197
  "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
5926
6198
  );
5927
6199
  var newChildren = render(context$jscomp$0._currentValue2),
5928
- prevKeyPath$jscomp$6 = task.keyPath;
6200
+ prevKeyPath$jscomp$7 = task.keyPath;
5929
6201
  task.keyPath = keyPath;
5930
6202
  renderNodeDestructive(request, task, newChildren, -1);
5931
- task.keyPath = prevKeyPath$jscomp$6;
6203
+ task.keyPath = prevKeyPath$jscomp$7;
5932
6204
  return;
5933
6205
  case REACT_LAZY_TYPE:
5934
6206
  var Component = callLazyInitInDEV(type);
@@ -6053,6 +6325,7 @@
6053
6325
  node = null === node[4] ? null : node[4][3];
6054
6326
  var prevKeyPath = task.keyPath,
6055
6327
  prevContext = task.formatContext,
6328
+ prevRow = task.row,
6056
6329
  previousReplaySet = task.replay,
6057
6330
  parentBoundary = task.blockedBoundary,
6058
6331
  parentHoistableState = task.hoistableState,
@@ -6063,12 +6336,14 @@
6063
6336
  2 > task.formatContext.insertionMode
6064
6337
  ? createSuspenseBoundary(
6065
6338
  request,
6339
+ task.row,
6066
6340
  fallbackAbortSet,
6067
6341
  createPreambleState(),
6068
6342
  createPreambleState()
6069
6343
  )
6070
6344
  : createSuspenseBoundary(
6071
6345
  request,
6346
+ task.row,
6072
6347
  fallbackAbortSet,
6073
6348
  null,
6074
6349
  null
@@ -6078,7 +6353,11 @@
6078
6353
  task.blockedBoundary = props;
6079
6354
  task.hoistableState = props.contentState;
6080
6355
  task.keyPath = keyPath;
6081
- task.formatContext = getSuspenseContentFormatContext(prevContext);
6356
+ task.formatContext = getSuspenseContentFormatContext(
6357
+ request.resumableState,
6358
+ prevContext
6359
+ );
6360
+ task.row = null;
6082
6361
  task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
6083
6362
  try {
6084
6363
  renderNode(request, task, content, -1);
@@ -6122,7 +6401,8 @@
6122
6401
  (task.hoistableState = parentHoistableState),
6123
6402
  (task.replay = previousReplaySet),
6124
6403
  (task.keyPath = prevKeyPath),
6125
- (task.formatContext = prevContext);
6404
+ (task.formatContext = prevContext),
6405
+ (task.row = prevRow);
6126
6406
  }
6127
6407
  props = createReplayTask(
6128
6408
  request,
@@ -6134,9 +6414,13 @@
6134
6414
  props.fallbackState,
6135
6415
  fallbackAbortSet,
6136
6416
  [keyPath[0], "Suspense Fallback", keyPath[2]],
6137
- getSuspenseFallbackFormatContext(task.formatContext),
6417
+ getSuspenseFallbackFormatContext(
6418
+ request.resumableState,
6419
+ task.formatContext
6420
+ ),
6138
6421
  task.context,
6139
6422
  task.treeContext,
6423
+ task.row,
6140
6424
  task.componentStack,
6141
6425
  emptyContextObject,
6142
6426
  task.debugTask
@@ -6150,6 +6434,50 @@
6150
6434
  }
6151
6435
  }
6152
6436
  }
6437
+ function validateIterable(
6438
+ task,
6439
+ iterable,
6440
+ childIndex,
6441
+ iterator,
6442
+ iteratorFn
6443
+ ) {
6444
+ if (iterator === iterable) {
6445
+ if (
6446
+ -1 !== childIndex ||
6447
+ null === task.componentStack ||
6448
+ "function" !== typeof task.componentStack.type ||
6449
+ "[object GeneratorFunction]" !==
6450
+ Object.prototype.toString.call(task.componentStack.type) ||
6451
+ "[object Generator]" !== Object.prototype.toString.call(iterator)
6452
+ )
6453
+ didWarnAboutGenerators ||
6454
+ console.error(
6455
+ "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
6456
+ ),
6457
+ (didWarnAboutGenerators = !0);
6458
+ } else
6459
+ iterable.entries !== iteratorFn ||
6460
+ didWarnAboutMaps ||
6461
+ (console.error(
6462
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
6463
+ ),
6464
+ (didWarnAboutMaps = !0));
6465
+ }
6466
+ function validateAsyncIterable(task, iterable, childIndex, iterator) {
6467
+ iterator !== iterable ||
6468
+ (-1 === childIndex &&
6469
+ null !== task.componentStack &&
6470
+ "function" === typeof task.componentStack.type &&
6471
+ "[object AsyncGeneratorFunction]" ===
6472
+ Object.prototype.toString.call(task.componentStack.type) &&
6473
+ "[object AsyncGenerator]" ===
6474
+ Object.prototype.toString.call(iterator)) ||
6475
+ (didWarnAboutGenerators ||
6476
+ console.error(
6477
+ "Using AsyncIterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You can use an AsyncIterable that can iterate multiple times over the same items."
6478
+ ),
6479
+ (didWarnAboutGenerators = !0));
6480
+ }
6153
6481
  function renderNodeDestructive(request, task, node, childIndex) {
6154
6482
  null !== task.replay && "number" === typeof task.replay.slots
6155
6483
  ? resumeNode(request, task, task.replay.slots, node, childIndex)
@@ -6235,60 +6563,23 @@
6235
6563
  renderChildrenArray(request, task, node, childIndex);
6236
6564
  return;
6237
6565
  }
6238
- null === node || "object" !== typeof node
6239
- ? (key = null)
6240
- : ((type =
6241
- (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
6242
- node["@@iterator"]),
6243
- (key = "function" === typeof type ? type : null));
6244
- if (key && (type = key.call(node))) {
6245
- if (type === node) {
6246
- if (
6247
- -1 !== childIndex ||
6248
- null === task.componentStack ||
6249
- "function" !== typeof task.componentStack.type ||
6250
- "[object GeneratorFunction]" !==
6251
- Object.prototype.toString.call(task.componentStack.type) ||
6252
- "[object Generator]" !== Object.prototype.toString.call(type)
6253
- )
6254
- didWarnAboutGenerators ||
6255
- console.error(
6256
- "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
6257
- ),
6258
- (didWarnAboutGenerators = !0);
6259
- } else
6260
- node.entries !== key ||
6261
- didWarnAboutMaps ||
6262
- (console.error(
6263
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
6264
- ),
6265
- (didWarnAboutMaps = !0));
6266
- node = type.next();
6267
- if (!node.done) {
6268
- key = [];
6269
- do key.push(node.value), (node = type.next());
6270
- while (!node.done);
6271
- renderChildrenArray(request, task, key, childIndex);
6566
+ if ((key = getIteratorFn(node)))
6567
+ if ((type = key.call(node))) {
6568
+ validateIterable(task, node, childIndex, type, key);
6569
+ node = type.next();
6570
+ if (!node.done) {
6571
+ key = [];
6572
+ do key.push(node.value), (node = type.next());
6573
+ while (!node.done);
6574
+ renderChildrenArray(request, task, key, childIndex);
6575
+ }
6576
+ return;
6272
6577
  }
6273
- return;
6274
- }
6275
6578
  if (
6276
6579
  "function" === typeof node[ASYNC_ITERATOR] &&
6277
6580
  (type = node[ASYNC_ITERATOR]())
6278
6581
  ) {
6279
- type !== node ||
6280
- (-1 === childIndex &&
6281
- null !== task.componentStack &&
6282
- "function" === typeof task.componentStack.type &&
6283
- "[object AsyncGeneratorFunction]" ===
6284
- Object.prototype.toString.call(task.componentStack.type) &&
6285
- "[object AsyncGenerator]" ===
6286
- Object.prototype.toString.call(type)) ||
6287
- (didWarnAboutGenerators ||
6288
- console.error(
6289
- "Using AsyncIterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You can use an AsyncIterable that can iterate multiple times over the same items."
6290
- ),
6291
- (didWarnAboutGenerators = !0));
6582
+ validateAsyncIterable(task, node, childIndex, type);
6292
6583
  key = task.thenableState;
6293
6584
  task.thenableState = null;
6294
6585
  thenableIndexCounter = 0;
@@ -6360,7 +6651,70 @@
6360
6651
  ));
6361
6652
  }
6362
6653
  }
6363
- function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6654
+ function warnForMissingKey(request, task, child) {
6655
+ if (
6656
+ null !== child &&
6657
+ "object" === typeof child &&
6658
+ (child.$$typeof === REACT_ELEMENT_TYPE ||
6659
+ child.$$typeof === REACT_PORTAL_TYPE) &&
6660
+ child._store &&
6661
+ ((!child._store.validated && null == child.key) ||
6662
+ 2 === child._store.validated)
6663
+ ) {
6664
+ if ("object" !== typeof child._store)
6665
+ throw Error(
6666
+ "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
6667
+ );
6668
+ child._store.validated = 1;
6669
+ var didWarnForKey = request.didWarnForKey;
6670
+ null == didWarnForKey &&
6671
+ (didWarnForKey = request.didWarnForKey = new WeakSet());
6672
+ request = task.componentStack;
6673
+ if (null !== request && !didWarnForKey.has(request)) {
6674
+ didWarnForKey.add(request);
6675
+ var componentName = getComponentNameFromType(child.type);
6676
+ didWarnForKey = child._owner;
6677
+ var parentOwner = request.owner;
6678
+ request = "";
6679
+ if (parentOwner && "undefined" !== typeof parentOwner.type) {
6680
+ var name = getComponentNameFromType(parentOwner.type);
6681
+ name &&
6682
+ (request = "\n\nCheck the render method of `" + name + "`.");
6683
+ }
6684
+ request ||
6685
+ (componentName &&
6686
+ (request =
6687
+ "\n\nCheck the top-level render call using <" +
6688
+ componentName +
6689
+ ">."));
6690
+ componentName = "";
6691
+ null != didWarnForKey &&
6692
+ parentOwner !== didWarnForKey &&
6693
+ ((parentOwner = null),
6694
+ "undefined" !== typeof didWarnForKey.type
6695
+ ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
6696
+ : "string" === typeof didWarnForKey.name &&
6697
+ (parentOwner = didWarnForKey.name),
6698
+ parentOwner &&
6699
+ (componentName =
6700
+ " It was passed a child from " + parentOwner + "."));
6701
+ didWarnForKey = task.componentStack;
6702
+ task.componentStack = {
6703
+ parent: task.componentStack,
6704
+ type: child.type,
6705
+ owner: child._owner,
6706
+ stack: child._debugStack
6707
+ };
6708
+ console.error(
6709
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6710
+ request,
6711
+ componentName
6712
+ );
6713
+ task.componentStack = didWarnForKey;
6714
+ }
6715
+ }
6716
+ }
6717
+ function renderChildrenArray(request, task, children, childIndex) {
6364
6718
  var prevKeyPath = task.keyPath,
6365
6719
  previousComponentStack = task.componentStack;
6366
6720
  var previousDebugTask = task.debugTask;
@@ -6381,7 +6735,7 @@
6381
6735
  node = node[3];
6382
6736
  task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
6383
6737
  try {
6384
- renderChildrenArray(request$jscomp$0, task, children, -1);
6738
+ renderChildrenArray(request, task, children, -1);
6385
6739
  if (
6386
6740
  1 === task.replay.pendingTasks &&
6387
6741
  0 < task.replay.nodes.length
@@ -6400,7 +6754,7 @@
6400
6754
  task.replay.pendingTasks--;
6401
6755
  children = getThrownInfo(task.componentStack);
6402
6756
  erroredReplay(
6403
- request$jscomp$0,
6757
+ request,
6404
6758
  task.blockedBoundary,
6405
6759
  x,
6406
6760
  children,
@@ -6430,15 +6784,9 @@
6430
6784
  task.treeContext = pushTreeContext(replay, replayNodes, childIndex);
6431
6785
  var resumeSegmentID = j[childIndex];
6432
6786
  "number" === typeof resumeSegmentID
6433
- ? (resumeNode(
6434
- request$jscomp$0,
6435
- task,
6436
- resumeSegmentID,
6437
- node,
6438
- childIndex
6439
- ),
6787
+ ? (resumeNode(request, task, resumeSegmentID, node, childIndex),
6440
6788
  delete j[childIndex])
6441
- : renderNode(request$jscomp$0, task, node, childIndex);
6789
+ : renderNode(request, task, node, childIndex);
6442
6790
  }
6443
6791
  task.treeContext = replay;
6444
6792
  task.keyPath = prevKeyPath;
@@ -6446,75 +6794,11 @@
6446
6794
  task.debugTask = previousDebugTask;
6447
6795
  return;
6448
6796
  }
6449
- for (j = 0; j < replayNodes; j++) {
6450
- childIndex = children[j];
6451
- var request = request$jscomp$0;
6452
- node = task;
6453
- resumeSegmentID = childIndex;
6454
- if (
6455
- null !== resumeSegmentID &&
6456
- "object" === typeof resumeSegmentID &&
6457
- (resumeSegmentID.$$typeof === REACT_ELEMENT_TYPE ||
6458
- resumeSegmentID.$$typeof === REACT_PORTAL_TYPE) &&
6459
- resumeSegmentID._store &&
6460
- ((!resumeSegmentID._store.validated && null == resumeSegmentID.key) ||
6461
- 2 === resumeSegmentID._store.validated)
6462
- ) {
6463
- if ("object" !== typeof resumeSegmentID._store)
6464
- throw Error(
6465
- "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
6466
- );
6467
- resumeSegmentID._store.validated = 1;
6468
- var didWarnForKey = request.didWarnForKey;
6469
- null == didWarnForKey &&
6470
- (didWarnForKey = request.didWarnForKey = new WeakSet());
6471
- request = node.componentStack;
6472
- if (null !== request && !didWarnForKey.has(request)) {
6473
- didWarnForKey.add(request);
6474
- var componentName = getComponentNameFromType(resumeSegmentID.type);
6475
- didWarnForKey = resumeSegmentID._owner;
6476
- var parentOwner = request.owner;
6477
- request = "";
6478
- if (parentOwner && "undefined" !== typeof parentOwner.type) {
6479
- var name = getComponentNameFromType(parentOwner.type);
6480
- name &&
6481
- (request = "\n\nCheck the render method of `" + name + "`.");
6482
- }
6483
- request ||
6484
- (componentName &&
6485
- (request =
6486
- "\n\nCheck the top-level render call using <" +
6487
- componentName +
6488
- ">."));
6489
- componentName = "";
6490
- null != didWarnForKey &&
6491
- parentOwner !== didWarnForKey &&
6492
- ((parentOwner = null),
6493
- "undefined" !== typeof didWarnForKey.type
6494
- ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
6495
- : "string" === typeof didWarnForKey.name &&
6496
- (parentOwner = didWarnForKey.name),
6497
- parentOwner &&
6498
- (componentName =
6499
- " It was passed a child from " + parentOwner + "."));
6500
- didWarnForKey = node.componentStack;
6501
- node.componentStack = {
6502
- parent: node.componentStack,
6503
- type: resumeSegmentID.type,
6504
- owner: resumeSegmentID._owner,
6505
- stack: resumeSegmentID._debugStack
6506
- };
6507
- console.error(
6508
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6509
- request,
6510
- componentName
6511
- );
6512
- node.componentStack = didWarnForKey;
6513
- }
6514
- }
6515
- task.treeContext = pushTreeContext(replay, replayNodes, j);
6516
- renderNode(request$jscomp$0, task, childIndex, j);
6517
- }
6797
+ for (j = 0; j < replayNodes; j++)
6798
+ (childIndex = children[j]),
6799
+ warnForMissingKey(request, task, childIndex),
6800
+ (task.treeContext = pushTreeContext(replay, replayNodes, j)),
6801
+ renderNode(request, task, childIndex, j);
6518
6802
  task.treeContext = replay;
6519
6803
  task.keyPath = prevKeyPath;
6520
6804
  task.componentStack = previousComponentStack;
@@ -6642,6 +6926,7 @@
6642
6926
  task.formatContext,
6643
6927
  task.context,
6644
6928
  task.treeContext,
6929
+ task.row,
6645
6930
  task.componentStack,
6646
6931
  emptyContextObject,
6647
6932
  task.debugTask
@@ -6673,6 +6958,7 @@
6673
6958
  task.formatContext,
6674
6959
  task.context,
6675
6960
  task.treeContext,
6961
+ task.row,
6676
6962
  task.componentStack,
6677
6963
  emptyContextObject,
6678
6964
  task.debugTask
@@ -6849,9 +7135,10 @@
6849
7135
  );
6850
7136
  }
6851
7137
  function abortTaskSoft(task) {
6852
- var boundary = task.blockedBoundary;
6853
- task = task.blockedSegment;
6854
- null !== task && ((task.status = 3), finishedTask(this, boundary, task));
7138
+ var boundary = task.blockedBoundary,
7139
+ segment = task.blockedSegment;
7140
+ null !== segment &&
7141
+ ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
6855
7142
  }
6856
7143
  function abortRemainingReplayNodes(
6857
7144
  request$jscomp$0,
@@ -6885,6 +7172,7 @@
6885
7172
  wasAborted = aborted,
6886
7173
  resumedBoundary = createSuspenseBoundary(
6887
7174
  request,
7175
+ null,
6888
7176
  new Set(),
6889
7177
  null,
6890
7178
  null
@@ -6931,6 +7219,10 @@
6931
7219
  if (6 === segment.status) return;
6932
7220
  segment.status = 3;
6933
7221
  }
7222
+ var row = task.row;
7223
+ null !== row &&
7224
+ 0 === --row.pendingTasks &&
7225
+ finishSuspenseListRow(request, row);
6934
7226
  var errorInfo = getThrownInfo(task.componentStack);
6935
7227
  if (null === boundary) {
6936
7228
  if (13 !== request.status && 14 !== request.status) {
@@ -6943,7 +7235,7 @@
6943
7235
  null !== boundary && null !== segment
6944
7236
  ? (logPostpone(request, error.message, errorInfo, null),
6945
7237
  trackPostpone(request, boundary, task, segment),
6946
- finishedTask(request, null, segment))
7238
+ finishedTask(request, null, row, segment))
6947
7239
  : ((task = Error(
6948
7240
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
6949
7241
  error.message
@@ -6954,7 +7246,7 @@
6954
7246
  ? ((boundary = request.trackedPostpones),
6955
7247
  logRecoverableError(request, error, errorInfo, null),
6956
7248
  trackPostpone(request, boundary, task, segment),
6957
- finishedTask(request, null, segment))
7249
+ finishedTask(request, null, row, segment))
6958
7250
  : (logRecoverableError(request, error, errorInfo, null),
6959
7251
  fatalError(request, error, errorInfo, null));
6960
7252
  return;
@@ -6997,7 +7289,7 @@
6997
7289
  return abortTask(fallbackTask, request, error);
6998
7290
  }),
6999
7291
  boundary.fallbackAbortableTasks.clear(),
7000
- finishedTask(request, boundary, segment)
7292
+ finishedTask(request, boundary, row, segment)
7001
7293
  );
7002
7294
  boundary.status = 4;
7003
7295
  if (
@@ -7008,7 +7300,7 @@
7008
7300
  logPostpone(request, error.message, errorInfo, null);
7009
7301
  if (null !== request.trackedPostpones && null !== segment) {
7010
7302
  trackPostpone(request, request.trackedPostpones, task, segment);
7011
- finishedTask(request, task.blockedBoundary, segment);
7303
+ finishedTask(request, task.blockedBoundary, row, segment);
7012
7304
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7013
7305
  return abortTask(fallbackTask, request, error);
7014
7306
  });
@@ -7129,7 +7421,11 @@
7129
7421
  queueCompletedSegment(boundary, childSegment);
7130
7422
  } else boundary.completedSegments.push(segment);
7131
7423
  }
7132
- function finishedTask(request, boundary, segment) {
7424
+ function finishedTask(request, boundary, row, segment) {
7425
+ null !== row &&
7426
+ 0 === --row.pendingTasks &&
7427
+ finishSuspenseListRow(request, row);
7428
+ request.allPendingTasks--;
7133
7429
  if (null === boundary) {
7134
7430
  if (null !== segment && segment.parentFlushed) {
7135
7431
  if (null !== request.completedRootSegment)
@@ -7157,7 +7453,11 @@
7157
7453
  abortTaskSoft,
7158
7454
  request
7159
7455
  ),
7160
- boundary.fallbackAbortableTasks.clear()),
7456
+ boundary.fallbackAbortableTasks.clear(),
7457
+ (row = boundary.row),
7458
+ null !== row &&
7459
+ 0 === --row.pendingTasks &&
7460
+ finishSuspenseListRow(request, row)),
7161
7461
  0 === request.pendingRootTasks &&
7162
7462
  null === request.trackedPostpones &&
7163
7463
  null !== boundary.contentPreamble &&
@@ -7169,7 +7469,6 @@
7169
7469
  1 === boundary.completedSegments.length &&
7170
7470
  boundary.parentFlushed &&
7171
7471
  request.partialBoundaries.push(boundary)));
7172
- request.allPendingTasks--;
7173
7472
  0 === request.allPendingTasks && completeAll(request);
7174
7473
  }
7175
7474
  function performWork(request$jscomp$1) {
@@ -7217,7 +7516,12 @@
7217
7516
  );
7218
7517
  request.replay.pendingTasks--;
7219
7518
  request.abortSet.delete(request);
7220
- finishedTask(request$jscomp$0, request.blockedBoundary, null);
7519
+ finishedTask(
7520
+ request$jscomp$0,
7521
+ request.blockedBoundary,
7522
+ request.row,
7523
+ null
7524
+ );
7221
7525
  } catch (thrownValue) {
7222
7526
  resetHooksState();
7223
7527
  var x =
@@ -7277,6 +7581,7 @@
7277
7581
  finishedTask(
7278
7582
  request,
7279
7583
  task$jscomp$0.blockedBoundary,
7584
+ task$jscomp$0.row,
7280
7585
  segment$jscomp$0
7281
7586
  );
7282
7587
  } catch (thrownValue) {
@@ -7322,6 +7627,7 @@
7322
7627
  finishedTask(
7323
7628
  request,
7324
7629
  task$jscomp$0.blockedBoundary,
7630
+ task$jscomp$0.row,
7325
7631
  segment$jscomp$0
7326
7632
  );
7327
7633
  } else {
@@ -7361,6 +7667,7 @@
7361
7667
  finishedTask(
7362
7668
  request,
7363
7669
  task$jscomp$0.blockedBoundary,
7670
+ task$jscomp$0.row,
7364
7671
  segment$jscomp$0
7365
7672
  );
7366
7673
  break a;
@@ -7372,7 +7679,12 @@
7372
7679
  task$jscomp$0.abortSet.delete(task$jscomp$0);
7373
7680
  segment$jscomp$0.status = 4;
7374
7681
  var boundary = task$jscomp$0.blockedBoundary,
7682
+ row = task$jscomp$0.row,
7375
7683
  debugTask = task$jscomp$0.debugTask;
7684
+ null !== row &&
7685
+ 0 === --row.pendingTasks &&
7686
+ finishSuspenseListRow(request, row);
7687
+ request.allPendingTasks--;
7376
7688
  "object" === typeof x$jscomp$0 &&
7377
7689
  null !== x$jscomp$0 &&
7378
7690
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
@@ -7413,7 +7725,6 @@
7413
7725
  null === request.trackedPostpones &&
7414
7726
  null !== boundary.contentPreamble &&
7415
7727
  preparePreamble(request)));
7416
- request.allPendingTasks--;
7417
7728
  0 === request.allPendingTasks && completeAll(request);
7418
7729
  }
7419
7730
  } finally {
@@ -7564,7 +7875,14 @@
7564
7875
  return flushSubtree(request, destination, segment, hoistableState);
7565
7876
  boundary.parentFlushed = !0;
7566
7877
  if (4 === boundary.status)
7567
- return flushSubtree(request, destination, segment, hoistableState), !0;
7878
+ return (
7879
+ (boundary = boundary.row),
7880
+ null !== boundary &&
7881
+ 0 === --boundary.pendingTasks &&
7882
+ finishSuspenseListRow(request, boundary),
7883
+ flushSubtree(request, destination, segment, hoistableState),
7884
+ !0
7885
+ );
7568
7886
  if (1 !== boundary.status)
7569
7887
  return (
7570
7888
  0 === boundary.status &&
@@ -7606,6 +7924,11 @@
7606
7924
  ((segment = boundary.contentState),
7607
7925
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
7608
7926
  segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
7927
+ segment = boundary.row;
7928
+ null !== segment &&
7929
+ 500 < boundary.byteSize &&
7930
+ 0 === --segment.pendingTasks &&
7931
+ finishSuspenseListRow(request, segment);
7609
7932
  segment = boundary.completedSegments;
7610
7933
  if (1 !== segment.length)
7611
7934
  throw Error(
@@ -7643,6 +7966,11 @@
7643
7966
  completedSegments[i]
7644
7967
  );
7645
7968
  completedSegments.length = 0;
7969
+ completedSegments = boundary.row;
7970
+ null !== completedSegments &&
7971
+ 500 < boundary.byteSize &&
7972
+ 0 === --completedSegments.pendingTasks &&
7973
+ finishSuspenseListRow(request, completedSegments);
7646
7974
  writeHoistablesForBoundary(
7647
7975
  destination,
7648
7976
  boundary.contentState,
@@ -7652,7 +7980,8 @@
7652
7980
  request = request.renderState;
7653
7981
  i = boundary.rootSegmentID;
7654
7982
  boundary = boundary.contentState;
7655
- var requiresStyleInsertion = request.stylesToHoist;
7983
+ var requiresStyleInsertion = request.stylesToHoist,
7984
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
7656
7985
  request.stylesToHoist = !1;
7657
7986
  var scriptFormat = 0 === completedSegments.streamingFormat;
7658
7987
  scriptFormat
@@ -7665,7 +7994,13 @@
7665
7994
  0 === (completedSegments.instructions & 2) &&
7666
7995
  ((completedSegments.instructions |= 2),
7667
7996
  destination.push(
7668
- '$RB=[];$RC=function(d,c){function m(){$RT=performance.now();var f=$RB;$RB=[];for(var e=0;e<f.length;e+=2){var a=f[e],l=f[e+1],g=a.parentNode;if(g){var h=a.previousSibling,k=0;do{if(a&&8===a.nodeType){var b=a.data;if("/$"===b||"/&"===b)if(0===k)break;else k--;else"$"!==b&&"$?"!==b&&"$~"!==b&&"$!"!==b&&"&"!==b||k++}b=a.nextSibling;g.removeChild(a);a=b}while(a);for(;l.firstChild;)g.insertBefore(l.firstChild,a);h.data="$";h._reactRetry&&h._reactRetry()}}}if(c=document.getElementById(c))if(c.parentNode.removeChild(c),d=\ndocument.getElementById(d))d.previousSibling.data="$~",$RB.push(d,c),2===$RB.length&&setTimeout(m,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
7997
+ '$RB=[];$RV=function(){$RT=performance.now();var d=$RB;$RB=[];for(var a=0;a<d.length;a+=2){var b=d[a],h=d[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var c=b.data;if("/$"===c||"/&"===c)if(0===g)break;else g--;else"$"!==c&&"$?"!==c&&"$~"!==c&&"$!"!==c&&"&"!==c||g++}c=b.nextSibling;e.removeChild(b);b=c}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}};$RC=function(d,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),d=document.getElementById(d))d.previousSibling.data="$~",$RB.push(d,a),2===$RB.length&&setTimeout($RV,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
7998
+ )),
7999
+ requiresViewTransitions &&
8000
+ 0 === (completedSegments.instructions & 256) &&
8001
+ ((completedSegments.instructions |= 256),
8002
+ destination.push(
8003
+ "$RV=function(a){try{var b=document.__reactViewTransition;if(b){b.finished.then($RV,$RV);return}if(window._useVT){var c=document.__reactViewTransition=document.startViewTransition({update:a,types:[]});c.finished.finally(function(){document.__reactViewTransition===c&&(document.__reactViewTransition=null)});return}}catch(d){}a()}.bind(null,$RV);"
7669
8004
  )),
7670
8005
  0 === (completedSegments.instructions & 8)
7671
8006
  ? ((completedSegments.instructions |= 8),
@@ -7673,12 +8008,18 @@
7673
8008
  '$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
7674
8009
  ))
7675
8010
  : destination.push('$RR("'))
7676
- : 0 === (completedSegments.instructions & 2)
7677
- ? ((completedSegments.instructions |= 2),
8011
+ : (0 === (completedSegments.instructions & 2) &&
8012
+ ((completedSegments.instructions |= 2),
7678
8013
  destination.push(
7679
- '$RB=[];$RC=function(d,c){function m(){$RT=performance.now();var f=$RB;$RB=[];for(var e=0;e<f.length;e+=2){var a=f[e],l=f[e+1],g=a.parentNode;if(g){var h=a.previousSibling,k=0;do{if(a&&8===a.nodeType){var b=a.data;if("/$"===b||"/&"===b)if(0===k)break;else k--;else"$"!==b&&"$?"!==b&&"$~"!==b&&"$!"!==b&&"&"!==b||k++}b=a.nextSibling;g.removeChild(a);a=b}while(a);for(;l.firstChild;)g.insertBefore(l.firstChild,a);h.data="$";h._reactRetry&&h._reactRetry()}}}if(c=document.getElementById(c))if(c.parentNode.removeChild(c),d=\ndocument.getElementById(d))d.previousSibling.data="$~",$RB.push(d,c),2===$RB.length&&setTimeout(m,("number"!==typeof $RT?0:$RT)+300-performance.now())};$RC("'
7680
- ))
7681
- : destination.push('$RC("'))
8014
+ '$RB=[];$RV=function(){$RT=performance.now();var d=$RB;$RB=[];for(var a=0;a<d.length;a+=2){var b=d[a],h=d[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var c=b.data;if("/$"===c||"/&"===c)if(0===g)break;else g--;else"$"!==c&&"$?"!==c&&"$~"!==c&&"$!"!==c&&"&"!==c||g++}c=b.nextSibling;e.removeChild(b);b=c}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}};$RC=function(d,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),d=document.getElementById(d))d.previousSibling.data="$~",$RB.push(d,a),2===$RB.length&&setTimeout($RV,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
8015
+ )),
8016
+ requiresViewTransitions &&
8017
+ 0 === (completedSegments.instructions & 256) &&
8018
+ ((completedSegments.instructions |= 256),
8019
+ destination.push(
8020
+ "$RV=function(a){try{var b=document.__reactViewTransition;if(b){b.finished.then($RV,$RV);return}if(window._useVT){var c=document.__reactViewTransition=document.startViewTransition({update:a,types:[]});c.finished.finally(function(){document.__reactViewTransition===c&&(document.__reactViewTransition=null)});return}}catch(d){}a()}.bind(null,$RV);"
8021
+ )),
8022
+ destination.push('$RC("')))
7682
8023
  : requiresStyleInsertion
7683
8024
  ? destination.push('<template data-rri="" data-bid="')
7684
8025
  : destination.push('<template data-rci="" data-bid="');
@@ -9172,5 +9513,5 @@
9172
9513
  });
9173
9514
  });
9174
9515
  };
9175
- exports.version = "19.2.0-experimental-4448b187-20250515";
9516
+ exports.version = "19.2.0-experimental-c4676e72-20250520";
9176
9517
  })();