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.
@@ -53,8 +53,15 @@ var React = require("react"),
53
53
  REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
54
54
  REACT_POSTPONE_TYPE = Symbol.for("react.postpone"),
55
55
  REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
56
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
57
- ASYNC_ITERATOR = Symbol.asyncIterator,
56
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
57
+ function getIteratorFn(maybeIterable) {
58
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
59
+ maybeIterable =
60
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
61
+ maybeIterable["@@iterator"];
62
+ return "function" === typeof maybeIterable ? maybeIterable : null;
63
+ }
64
+ var ASYNC_ITERATOR = Symbol.asyncIterator,
58
65
  isArrayImpl = Array.isArray;
59
66
  function murmurhash3_32_gc(key, seed) {
60
67
  var remainder = key.length & 3;
@@ -610,7 +617,8 @@ function getSuspenseViewTransition(parentViewTransition) {
610
617
  nameIdx: 0
611
618
  };
612
619
  }
613
- function getSuspenseFallbackFormatContext(parentContext) {
620
+ function getSuspenseFallbackFormatContext(resumableState, parentContext) {
621
+ parentContext.tagScope & 32 && (resumableState.instructions |= 128);
614
622
  return createFormatContext(
615
623
  parentContext.insertionMode,
616
624
  parentContext.selectedValue,
@@ -618,7 +626,7 @@ function getSuspenseFallbackFormatContext(parentContext) {
618
626
  getSuspenseViewTransition(parentContext.viewTransition)
619
627
  );
620
628
  }
621
- function getSuspenseContentFormatContext(parentContext) {
629
+ function getSuspenseContentFormatContext(resumableState, parentContext) {
622
630
  return createFormatContext(
623
631
  parentContext.insertionMode,
624
632
  parentContext.selectedValue,
@@ -3568,6 +3576,7 @@ function createRequest(
3568
3576
  rootFormatContext,
3569
3577
  null,
3570
3578
  emptyTreeContext,
3579
+ null,
3571
3580
  null
3572
3581
  );
3573
3582
  pushComponentStack(children);
@@ -3582,15 +3591,17 @@ function pingTask(request, task) {
3582
3591
  }
3583
3592
  function createSuspenseBoundary(
3584
3593
  request,
3594
+ row,
3585
3595
  fallbackAbortableTasks,
3586
3596
  contentPreamble,
3587
3597
  fallbackPreamble
3588
3598
  ) {
3589
- return {
3599
+ fallbackAbortableTasks = {
3590
3600
  status: 0,
3591
3601
  rootSegmentID: -1,
3592
3602
  parentFlushed: !1,
3593
3603
  pendingTasks: 0,
3604
+ row: row,
3594
3605
  completedSegments: [],
3595
3606
  byteSize: 0,
3596
3607
  fallbackAbortableTasks: fallbackAbortableTasks,
@@ -3602,6 +3613,14 @@ function createSuspenseBoundary(
3602
3613
  trackedContentKeyPath: null,
3603
3614
  trackedFallbackNode: null
3604
3615
  };
3616
+ null !== row &&
3617
+ (row.pendingTasks++,
3618
+ (row = row.boundaries),
3619
+ null !== row &&
3620
+ (request.allPendingTasks++,
3621
+ fallbackAbortableTasks.pendingTasks++,
3622
+ row.push(fallbackAbortableTasks)));
3623
+ return fallbackAbortableTasks;
3605
3624
  }
3606
3625
  function createRenderTask(
3607
3626
  request,
@@ -3617,12 +3636,14 @@ function createRenderTask(
3617
3636
  formatContext,
3618
3637
  context,
3619
3638
  treeContext,
3639
+ row,
3620
3640
  componentStack
3621
3641
  ) {
3622
3642
  request.allPendingTasks++;
3623
3643
  null === blockedBoundary
3624
3644
  ? request.pendingRootTasks++
3625
3645
  : blockedBoundary.pendingTasks++;
3646
+ null !== row && row.pendingTasks++;
3626
3647
  var task = {
3627
3648
  replay: null,
3628
3649
  node: node,
@@ -3639,6 +3660,7 @@ function createRenderTask(
3639
3660
  formatContext: formatContext,
3640
3661
  context: context,
3641
3662
  treeContext: treeContext,
3663
+ row: row,
3642
3664
  componentStack: componentStack,
3643
3665
  thenableState: thenableState
3644
3666
  };
@@ -3658,12 +3680,14 @@ function createReplayTask(
3658
3680
  formatContext,
3659
3681
  context,
3660
3682
  treeContext,
3683
+ row,
3661
3684
  componentStack
3662
3685
  ) {
3663
3686
  request.allPendingTasks++;
3664
3687
  null === blockedBoundary
3665
3688
  ? request.pendingRootTasks++
3666
3689
  : blockedBoundary.pendingTasks++;
3690
+ null !== row && row.pendingTasks++;
3667
3691
  replay.pendingTasks++;
3668
3692
  var task = {
3669
3693
  replay: replay,
@@ -3681,6 +3705,7 @@ function createReplayTask(
3681
3705
  formatContext: formatContext,
3682
3706
  context: context,
3683
3707
  treeContext: treeContext,
3708
+ row: row,
3684
3709
  componentStack: componentStack,
3685
3710
  thenableState: thenableState
3686
3711
  };
@@ -3762,6 +3787,125 @@ function fatalError(request, error) {
3762
3787
  ? ((request.status = 14), request.destination.destroy(error))
3763
3788
  : ((request.status = 13), (request.fatalError = error));
3764
3789
  }
3790
+ function finishSuspenseListRow(request, row) {
3791
+ for (row = row.next; null !== row; ) {
3792
+ var unblockedBoundaries = row.boundaries;
3793
+ if (null !== unblockedBoundaries) {
3794
+ row.boundaries = null;
3795
+ for (var i = 0; i < unblockedBoundaries.length; i++)
3796
+ finishedTask(request, unblockedBoundaries[i], null, null);
3797
+ }
3798
+ row.pendingTasks--;
3799
+ if (0 < row.pendingTasks) break;
3800
+ row = row.next;
3801
+ }
3802
+ }
3803
+ function createSuspenseListRow(previousRow) {
3804
+ var newRow = { pendingTasks: 1, boundaries: null, next: null };
3805
+ null !== previousRow &&
3806
+ 0 < previousRow.pendingTasks &&
3807
+ (newRow.pendingTasks++,
3808
+ (newRow.boundaries = []),
3809
+ (previousRow.next = newRow));
3810
+ return newRow;
3811
+ }
3812
+ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
3813
+ keyPath = task.keyPath;
3814
+ var prevTreeContext = task.treeContext,
3815
+ prevRow = task.row,
3816
+ totalChildren = rows.length,
3817
+ previousSuspenseListRow = null;
3818
+ if (null !== task.replay) {
3819
+ var resumeSlots = task.replay.slots;
3820
+ if (null !== resumeSlots && "object" === typeof resumeSlots)
3821
+ for (var n = 0; n < totalChildren; n++) {
3822
+ var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
3823
+ node = rows[i];
3824
+ task.row = previousSuspenseListRow = createSuspenseListRow(
3825
+ previousSuspenseListRow
3826
+ );
3827
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
3828
+ var resumeSegmentID = resumeSlots[i];
3829
+ "number" === typeof resumeSegmentID
3830
+ ? (resumeNode(request, task, resumeSegmentID, node, i),
3831
+ delete resumeSlots[i])
3832
+ : renderNode(request, task, node, i);
3833
+ 0 === --previousSuspenseListRow.pendingTasks &&
3834
+ finishSuspenseListRow(request, previousSuspenseListRow);
3835
+ }
3836
+ else
3837
+ for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
3838
+ (n =
3839
+ "backwards" !== revealOrder
3840
+ ? resumeSlots
3841
+ : totalChildren - 1 - resumeSlots),
3842
+ (i = rows[n]),
3843
+ (task.row = previousSuspenseListRow =
3844
+ createSuspenseListRow(previousSuspenseListRow)),
3845
+ (task.treeContext = pushTreeContext(
3846
+ prevTreeContext,
3847
+ totalChildren,
3848
+ n
3849
+ )),
3850
+ renderNode(request, task, i, n),
3851
+ 0 === --previousSuspenseListRow.pendingTasks &&
3852
+ finishSuspenseListRow(request, previousSuspenseListRow);
3853
+ } else if ("backwards" !== revealOrder)
3854
+ for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
3855
+ (resumeSlots = rows[revealOrder]),
3856
+ (task.row = previousSuspenseListRow =
3857
+ createSuspenseListRow(previousSuspenseListRow)),
3858
+ (task.treeContext = pushTreeContext(
3859
+ prevTreeContext,
3860
+ totalChildren,
3861
+ revealOrder
3862
+ )),
3863
+ renderNode(request, task, resumeSlots, revealOrder),
3864
+ 0 === --previousSuspenseListRow.pendingTasks &&
3865
+ finishSuspenseListRow(request, previousSuspenseListRow);
3866
+ else {
3867
+ revealOrder = task.blockedSegment;
3868
+ resumeSlots = revealOrder.children.length;
3869
+ n = revealOrder.chunks.length;
3870
+ for (i = totalChildren - 1; 0 <= i; i--) {
3871
+ node = rows[i];
3872
+ task.row = previousSuspenseListRow = createSuspenseListRow(
3873
+ previousSuspenseListRow
3874
+ );
3875
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
3876
+ resumeSegmentID = createPendingSegment(
3877
+ request,
3878
+ n,
3879
+ null,
3880
+ task.formatContext,
3881
+ 0 === i ? revealOrder.lastPushedText : !0,
3882
+ !0
3883
+ );
3884
+ revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
3885
+ task.blockedSegment = resumeSegmentID;
3886
+ try {
3887
+ renderNode(request, task, node, i),
3888
+ (resumeSegmentID.status = 1),
3889
+ 0 === --previousSuspenseListRow.pendingTasks &&
3890
+ finishSuspenseListRow(request, previousSuspenseListRow);
3891
+ } catch (thrownValue) {
3892
+ throw (
3893
+ ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
3894
+ thrownValue)
3895
+ );
3896
+ }
3897
+ }
3898
+ task.blockedSegment = revealOrder;
3899
+ revealOrder.lastPushedText = !1;
3900
+ }
3901
+ null !== prevRow &&
3902
+ null !== previousSuspenseListRow &&
3903
+ 0 < previousSuspenseListRow.pendingTasks &&
3904
+ (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
3905
+ task.treeContext = prevTreeContext;
3906
+ task.row = prevRow;
3907
+ task.keyPath = keyPath;
3908
+ }
3765
3909
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
3766
3910
  var prevThenableState = task.thenableState;
3767
3911
  task.thenableState = null;
@@ -3829,9 +3973,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
3829
3973
  var defaultProps = type.defaultProps;
3830
3974
  if (defaultProps) {
3831
3975
  newProps === props && (newProps = assign({}, newProps, props));
3832
- for (var propName$24 in defaultProps)
3833
- void 0 === newProps[propName$24] &&
3834
- (newProps[propName$24] = defaultProps[propName$24]);
3976
+ for (var propName$35 in defaultProps)
3977
+ void 0 === newProps[propName$35] &&
3978
+ (newProps[propName$35] = defaultProps[propName$35]);
3835
3979
  }
3836
3980
  var JSCompiler_inline_result = newProps;
3837
3981
  var context = emptyContextObject,
@@ -3998,13 +4142,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
3998
4142
  textEmbedded
3999
4143
  );
4000
4144
  segment.lastPushedText = !1;
4001
- var prevContext$22 = task.formatContext,
4002
- prevKeyPath$23 = task.keyPath;
4145
+ var prevContext$33 = task.formatContext,
4146
+ prevKeyPath$34 = task.keyPath;
4003
4147
  task.keyPath = keyPath;
4004
4148
  if (
4005
4149
  3 ===
4006
4150
  (task.formatContext = getChildFormatContext(
4007
- prevContext$22,
4151
+ prevContext$33,
4008
4152
  type,
4009
4153
  props
4010
4154
  )).insertionMode
@@ -4032,13 +4176,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
4032
4176
  task.formatContext,
4033
4177
  task.context,
4034
4178
  task.treeContext,
4179
+ task.row,
4035
4180
  task.componentStack
4036
4181
  );
4037
4182
  pushComponentStack(preambleTask);
4038
4183
  request.pingedTasks.push(preambleTask);
4039
4184
  } else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
4040
- task.formatContext = prevContext$22;
4041
- task.keyPath = prevKeyPath$23;
4185
+ task.formatContext = prevContext$33;
4186
+ task.keyPath = prevKeyPath$34;
4042
4187
  a: {
4043
4188
  var target$jscomp$0 = segment.chunks,
4044
4189
  resumableState$jscomp$0 = request.resumableState;
@@ -4063,19 +4208,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
4063
4208
  case "wbr":
4064
4209
  break a;
4065
4210
  case "body":
4066
- if (1 >= prevContext$22.insertionMode) {
4211
+ if (1 >= prevContext$33.insertionMode) {
4067
4212
  resumableState$jscomp$0.hasBody = !0;
4068
4213
  break a;
4069
4214
  }
4070
4215
  break;
4071
4216
  case "html":
4072
- if (0 === prevContext$22.insertionMode) {
4217
+ if (0 === prevContext$33.insertionMode) {
4073
4218
  resumableState$jscomp$0.hasHtml = !0;
4074
4219
  break a;
4075
4220
  }
4076
4221
  break;
4077
4222
  case "head":
4078
- if (1 >= prevContext$22.insertionMode) break a;
4223
+ if (1 >= prevContext$33.insertionMode) break a;
4079
4224
  }
4080
4225
  target$jscomp$0.push(endChunkForTag(type));
4081
4226
  }
@@ -4103,22 +4248,97 @@ function renderElement(request, task, keyPath, type, props, ref) {
4103
4248
  }
4104
4249
  } else if ("hidden" !== props.mode) {
4105
4250
  segment$jscomp$0.lastPushedText = !1;
4106
- var prevKeyPath$26 = task.keyPath;
4251
+ var prevKeyPath$37 = task.keyPath;
4107
4252
  task.keyPath = keyPath;
4108
4253
  renderNode(request, task, props.children, -1);
4109
- task.keyPath = prevKeyPath$26;
4254
+ task.keyPath = prevKeyPath$37;
4110
4255
  segment$jscomp$0.lastPushedText = !1;
4111
4256
  }
4112
4257
  return;
4113
4258
  case REACT_SUSPENSE_LIST_TYPE:
4114
- var prevKeyPath$27 = task.keyPath;
4115
- task.keyPath = keyPath;
4116
- renderNodeDestructive(request, task, props.children, -1);
4117
- task.keyPath = prevKeyPath$27;
4259
+ a: {
4260
+ var children$jscomp$0 = props.children,
4261
+ revealOrder = props.revealOrder;
4262
+ if ("forwards" === revealOrder || "backwards" === revealOrder) {
4263
+ if (isArrayImpl(children$jscomp$0)) {
4264
+ renderSuspenseListRows(
4265
+ request,
4266
+ task,
4267
+ keyPath,
4268
+ children$jscomp$0,
4269
+ revealOrder
4270
+ );
4271
+ break a;
4272
+ }
4273
+ var iteratorFn = getIteratorFn(children$jscomp$0);
4274
+ if (iteratorFn) {
4275
+ var iterator = iteratorFn.call(children$jscomp$0);
4276
+ if (iterator) {
4277
+ var step = iterator.next();
4278
+ if (!step.done) {
4279
+ do step = iterator.next();
4280
+ while (!step.done);
4281
+ renderSuspenseListRows(
4282
+ request,
4283
+ task,
4284
+ keyPath,
4285
+ children$jscomp$0,
4286
+ revealOrder
4287
+ );
4288
+ }
4289
+ break a;
4290
+ }
4291
+ }
4292
+ if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
4293
+ var iterator$29 = children$jscomp$0[ASYNC_ITERATOR]();
4294
+ if (iterator$29) {
4295
+ var prevThenableState = task.thenableState;
4296
+ task.thenableState = null;
4297
+ thenableIndexCounter = 0;
4298
+ thenableState = prevThenableState;
4299
+ var rows = [],
4300
+ done = !1;
4301
+ if (iterator$29 === children$jscomp$0)
4302
+ for (
4303
+ var step$30 = readPreviousThenableFromState();
4304
+ void 0 !== step$30;
4305
+
4306
+ ) {
4307
+ if (step$30.done) {
4308
+ done = !0;
4309
+ break;
4310
+ }
4311
+ rows.push(step$30.value);
4312
+ step$30 = readPreviousThenableFromState();
4313
+ }
4314
+ if (!done)
4315
+ for (
4316
+ var step$31 = unwrapThenable(iterator$29.next());
4317
+ !step$31.done;
4318
+
4319
+ )
4320
+ rows.push(step$31.value),
4321
+ (step$31 = unwrapThenable(iterator$29.next()));
4322
+ renderSuspenseListRows(
4323
+ request,
4324
+ task,
4325
+ keyPath,
4326
+ rows,
4327
+ revealOrder
4328
+ );
4329
+ break a;
4330
+ }
4331
+ }
4332
+ }
4333
+ var prevKeyPath$jscomp$3 = task.keyPath;
4334
+ task.keyPath = keyPath;
4335
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4336
+ task.keyPath = prevKeyPath$jscomp$3;
4337
+ }
4118
4338
  return;
4119
4339
  case REACT_VIEW_TRANSITION_TYPE:
4120
4340
  var prevContext$jscomp$0 = task.formatContext,
4121
- prevKeyPath$jscomp$3 = task.keyPath;
4341
+ prevKeyPath$jscomp$4 = task.keyPath;
4122
4342
  var resumableState$jscomp$1 = request.resumableState;
4123
4343
  if (null == props.name || "auto" === props.name) {
4124
4344
  var treeId = getTreeId(task.treeContext);
@@ -4135,26 +4355,33 @@ function renderElement(request, task, keyPath, type, props, ref) {
4135
4355
  task.treeContext = prevTreeContext;
4136
4356
  }
4137
4357
  task.formatContext = prevContext$jscomp$0;
4138
- task.keyPath = prevKeyPath$jscomp$3;
4358
+ task.keyPath = prevKeyPath$jscomp$4;
4139
4359
  return;
4140
4360
  case REACT_SCOPE_TYPE:
4141
4361
  throw Error("ReactDOMServer does not yet support scope components.");
4142
4362
  case REACT_SUSPENSE_TYPE:
4143
4363
  a: if (null !== task.replay) {
4144
4364
  var prevKeyPath$16 = task.keyPath,
4145
- prevContext$17 = task.formatContext;
4365
+ prevContext$17 = task.formatContext,
4366
+ prevRow$18 = task.row;
4146
4367
  task.keyPath = keyPath;
4147
- task.formatContext = getSuspenseContentFormatContext(prevContext$17);
4148
- var content$18 = props.children;
4368
+ task.formatContext = getSuspenseContentFormatContext(
4369
+ request.resumableState,
4370
+ prevContext$17
4371
+ );
4372
+ task.row = null;
4373
+ var content$19 = props.children;
4149
4374
  try {
4150
- renderNode(request, task, content$18, -1);
4375
+ renderNode(request, task, content$19, -1);
4151
4376
  } finally {
4152
4377
  (task.keyPath = prevKeyPath$16),
4153
- (task.formatContext = prevContext$17);
4378
+ (task.formatContext = prevContext$17),
4379
+ (task.row = prevRow$18);
4154
4380
  }
4155
4381
  } else {
4156
- var prevKeyPath$jscomp$4 = task.keyPath,
4382
+ var prevKeyPath$jscomp$5 = task.keyPath,
4157
4383
  prevContext$jscomp$1 = task.formatContext,
4384
+ prevRow = task.row,
4158
4385
  parentBoundary = task.blockedBoundary,
4159
4386
  parentPreamble = task.blockedPreamble,
4160
4387
  parentHoistableState = task.hoistableState,
@@ -4166,11 +4393,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
4166
4393
  2 > task.formatContext.insertionMode
4167
4394
  ? createSuspenseBoundary(
4168
4395
  request,
4396
+ task.row,
4169
4397
  fallbackAbortSet,
4170
4398
  createPreambleState(),
4171
4399
  createPreambleState()
4172
4400
  )
4173
- : createSuspenseBoundary(request, fallbackAbortSet, null, null);
4401
+ : createSuspenseBoundary(
4402
+ request,
4403
+ task.row,
4404
+ fallbackAbortSet,
4405
+ null,
4406
+ null
4407
+ );
4174
4408
  null !== request.trackedPostpones &&
4175
4409
  (newBoundary.trackedContentKeyPath = keyPath);
4176
4410
  var boundarySegment = createPendingSegment(
@@ -4208,8 +4442,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4208
4442
  task.blockedSegment = boundarySegment;
4209
4443
  task.blockedPreamble = newBoundary.fallbackPreamble;
4210
4444
  task.keyPath = fallbackKeyPath;
4211
- task.formatContext =
4212
- getSuspenseFallbackFormatContext(prevContext$jscomp$1);
4445
+ task.formatContext = getSuspenseFallbackFormatContext(
4446
+ request.resumableState,
4447
+ prevContext$jscomp$1
4448
+ );
4213
4449
  boundarySegment.status = 6;
4214
4450
  try {
4215
4451
  renderNode(request, task, fallback, -1),
@@ -4222,7 +4458,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4222
4458
  } finally {
4223
4459
  (task.blockedSegment = parentSegment),
4224
4460
  (task.blockedPreamble = parentPreamble),
4225
- (task.keyPath = prevKeyPath$jscomp$4),
4461
+ (task.keyPath = prevKeyPath$jscomp$5),
4226
4462
  (task.formatContext = prevContext$jscomp$1);
4227
4463
  }
4228
4464
  var suspendedPrimaryTask = createRenderTask(
@@ -4236,9 +4472,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
4236
4472
  newBoundary.contentState,
4237
4473
  task.abortSet,
4238
4474
  keyPath,
4239
- getSuspenseContentFormatContext(task.formatContext),
4475
+ getSuspenseContentFormatContext(
4476
+ request.resumableState,
4477
+ task.formatContext
4478
+ ),
4240
4479
  task.context,
4241
4480
  task.treeContext,
4481
+ null,
4242
4482
  task.componentStack
4243
4483
  );
4244
4484
  pushComponentStack(suspendedPrimaryTask);
@@ -4249,8 +4489,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
4249
4489
  task.hoistableState = newBoundary.contentState;
4250
4490
  task.blockedSegment = contentRootSegment;
4251
4491
  task.keyPath = keyPath;
4252
- task.formatContext =
4253
- getSuspenseContentFormatContext(prevContext$jscomp$1);
4492
+ task.formatContext = getSuspenseContentFormatContext(
4493
+ request.resumableState,
4494
+ prevContext$jscomp$1
4495
+ );
4496
+ task.row = null;
4254
4497
  contentRootSegment.status = 6;
4255
4498
  try {
4256
4499
  if (
@@ -4261,17 +4504,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
4261
4504
  0 === newBoundary.status &&
4262
4505
  ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
4263
4506
  ) {
4507
+ null !== prevRow &&
4508
+ 0 === --prevRow.pendingTasks &&
4509
+ finishSuspenseListRow(request, prevRow);
4264
4510
  0 === request.pendingRootTasks &&
4265
4511
  task.blockedPreamble &&
4266
4512
  preparePreamble(request);
4267
4513
  break a;
4268
4514
  }
4269
- } catch (thrownValue$19) {
4515
+ } catch (thrownValue$20) {
4270
4516
  newBoundary.status = 4;
4271
4517
  if (12 === request.status) {
4272
4518
  contentRootSegment.status = 3;
4273
4519
  var error = request.fatalError;
4274
- } else (contentRootSegment.status = 4), (error = thrownValue$19);
4520
+ } else (contentRootSegment.status = 4), (error = thrownValue$20);
4275
4521
  var thrownInfo = getThrownInfo(task.componentStack);
4276
4522
  if (
4277
4523
  "object" === typeof error &&
@@ -4289,8 +4535,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
4289
4535
  (task.blockedPreamble = parentPreamble),
4290
4536
  (task.hoistableState = parentHoistableState),
4291
4537
  (task.blockedSegment = parentSegment),
4292
- (task.keyPath = prevKeyPath$jscomp$4),
4293
- (task.formatContext = prevContext$jscomp$1);
4538
+ (task.keyPath = prevKeyPath$jscomp$5),
4539
+ (task.formatContext = prevContext$jscomp$1),
4540
+ (task.row = prevRow);
4294
4541
  }
4295
4542
  var suspendedFallbackTask = createRenderTask(
4296
4543
  request,
@@ -4303,9 +4550,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
4303
4550
  newBoundary.fallbackState,
4304
4551
  fallbackAbortSet,
4305
4552
  [keyPath[0], "Suspense Fallback", keyPath[2]],
4306
- getSuspenseFallbackFormatContext(task.formatContext),
4553
+ getSuspenseFallbackFormatContext(
4554
+ request.resumableState,
4555
+ task.formatContext
4556
+ ),
4307
4557
  task.context,
4308
4558
  task.treeContext,
4559
+ task.row,
4309
4560
  task.componentStack
4310
4561
  );
4311
4562
  pushComponentStack(suspendedFallbackTask);
@@ -4322,7 +4573,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4322
4573
  for (var key in props)
4323
4574
  "ref" !== key && (propsWithoutRef[key] = props[key]);
4324
4575
  } else propsWithoutRef = props;
4325
- var children$jscomp$0 = renderWithHooks(
4576
+ var children$jscomp$1 = renderWithHooks(
4326
4577
  request,
4327
4578
  task,
4328
4579
  keyPath,
@@ -4334,7 +4585,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4334
4585
  request,
4335
4586
  task,
4336
4587
  keyPath,
4337
- children$jscomp$0,
4588
+ children$jscomp$1,
4338
4589
  0 !== localIdCounter,
4339
4590
  actionStateCounter,
4340
4591
  actionStateMatchingIndex
@@ -4345,8 +4596,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4345
4596
  return;
4346
4597
  case REACT_PROVIDER_TYPE:
4347
4598
  case REACT_CONTEXT_TYPE:
4348
- var children$jscomp$1 = props.children,
4349
- prevKeyPath$jscomp$5 = task.keyPath,
4599
+ var children$jscomp$2 = props.children,
4600
+ prevKeyPath$jscomp$6 = task.keyPath,
4350
4601
  nextValue = props.value;
4351
4602
  var prevValue = type._currentValue2;
4352
4603
  type._currentValue2 = nextValue;
@@ -4361,7 +4612,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4361
4612
  currentActiveSnapshot = newNode;
4362
4613
  task.context = newNode;
4363
4614
  task.keyPath = keyPath;
4364
- renderNodeDestructive(request, task, children$jscomp$1, -1);
4615
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
4365
4616
  var prevSnapshot = currentActiveSnapshot;
4366
4617
  if (null === prevSnapshot)
4367
4618
  throw Error(
@@ -4371,15 +4622,15 @@ function renderElement(request, task, keyPath, type, props, ref) {
4371
4622
  var JSCompiler_inline_result$jscomp$3 = (currentActiveSnapshot =
4372
4623
  prevSnapshot.parent);
4373
4624
  task.context = JSCompiler_inline_result$jscomp$3;
4374
- task.keyPath = prevKeyPath$jscomp$5;
4625
+ task.keyPath = prevKeyPath$jscomp$6;
4375
4626
  return;
4376
4627
  case REACT_CONSUMER_TYPE:
4377
4628
  var render = props.children,
4378
4629
  newChildren = render(type._context._currentValue2),
4379
- prevKeyPath$jscomp$6 = task.keyPath;
4630
+ prevKeyPath$jscomp$7 = task.keyPath;
4380
4631
  task.keyPath = keyPath;
4381
4632
  renderNodeDestructive(request, task, newChildren, -1);
4382
- task.keyPath = prevKeyPath$jscomp$6;
4633
+ task.keyPath = prevKeyPath$jscomp$7;
4383
4634
  return;
4384
4635
  case REACT_LAZY_TYPE:
4385
4636
  var init = type._init;
@@ -4522,6 +4773,7 @@ function retryNode(request, task) {
4522
4773
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4523
4774
  var prevKeyPath = task.keyPath,
4524
4775
  prevContext = task.formatContext,
4776
+ prevRow = task.row,
4525
4777
  previousReplaySet = task.replay,
4526
4778
  parentBoundary = task.blockedBoundary,
4527
4779
  parentHoistableState = task.hoistableState,
@@ -4532,12 +4784,14 @@ function retryNode(request, task) {
4532
4784
  2 > task.formatContext.insertionMode
4533
4785
  ? createSuspenseBoundary(
4534
4786
  request,
4787
+ task.row,
4535
4788
  fallbackAbortSet,
4536
4789
  createPreambleState(),
4537
4790
  createPreambleState()
4538
4791
  )
4539
4792
  : createSuspenseBoundary(
4540
4793
  request,
4794
+ task.row,
4541
4795
  fallbackAbortSet,
4542
4796
  null,
4543
4797
  null
@@ -4547,8 +4801,11 @@ function retryNode(request, task) {
4547
4801
  task.blockedBoundary = props;
4548
4802
  task.hoistableState = props.contentState;
4549
4803
  task.keyPath = key;
4550
- task.formatContext =
4551
- getSuspenseContentFormatContext(prevContext);
4804
+ task.formatContext = getSuspenseContentFormatContext(
4805
+ request.resumableState,
4806
+ prevContext
4807
+ );
4808
+ task.row = null;
4552
4809
  task.replay = {
4553
4810
  nodes: replay,
4554
4811
  slots: name,
@@ -4590,7 +4847,8 @@ function retryNode(request, task) {
4590
4847
  (task.hoistableState = parentHoistableState),
4591
4848
  (task.replay = previousReplaySet),
4592
4849
  (task.keyPath = prevKeyPath),
4593
- (task.formatContext = prevContext);
4850
+ (task.formatContext = prevContext),
4851
+ (task.row = prevRow);
4594
4852
  }
4595
4853
  task = createReplayTask(
4596
4854
  request,
@@ -4606,9 +4864,13 @@ function retryNode(request, task) {
4606
4864
  props.fallbackState,
4607
4865
  fallbackAbortSet,
4608
4866
  [key[0], "Suspense Fallback", key[2]],
4609
- getSuspenseFallbackFormatContext(task.formatContext),
4867
+ getSuspenseFallbackFormatContext(
4868
+ request.resumableState,
4869
+ task.formatContext
4870
+ ),
4610
4871
  task.context,
4611
4872
  task.treeContext,
4873
+ task.row,
4612
4874
  task.componentStack
4613
4875
  );
4614
4876
  pushComponentStack(task);
@@ -4637,22 +4899,17 @@ function retryNode(request, task) {
4637
4899
  renderChildrenArray(request, task, node, childIndex);
4638
4900
  return;
4639
4901
  }
4640
- null === node || "object" !== typeof node
4641
- ? (childNodes = null)
4642
- : ((childNodes =
4643
- (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
4644
- node["@@iterator"]),
4645
- (childNodes = "function" === typeof childNodes ? childNodes : null));
4646
- if (childNodes && (childNodes = childNodes.call(node))) {
4647
- node = childNodes.next();
4648
- if (!node.done) {
4649
- props = [];
4650
- do props.push(node.value), (node = childNodes.next());
4651
- while (!node.done);
4652
- renderChildrenArray(request, task, props, childIndex);
4902
+ if ((childNodes = getIteratorFn(node)))
4903
+ if ((childNodes = childNodes.call(node))) {
4904
+ node = childNodes.next();
4905
+ if (!node.done) {
4906
+ props = [];
4907
+ do props.push(node.value), (node = childNodes.next());
4908
+ while (!node.done);
4909
+ renderChildrenArray(request, task, props, childIndex);
4910
+ }
4911
+ return;
4653
4912
  }
4654
- return;
4655
- }
4656
4913
  if (
4657
4914
  "function" === typeof node[ASYNC_ITERATOR] &&
4658
4915
  (childNodes = node[ASYNC_ITERATOR]())
@@ -4690,25 +4947,25 @@ function retryNode(request, task) {
4690
4947
  node._currentValue2,
4691
4948
  childIndex
4692
4949
  );
4693
- task = Object.prototype.toString.call(node);
4950
+ childIndex = Object.prototype.toString.call(node);
4694
4951
  throw Error(
4695
4952
  "Objects are not valid as a React child (found: " +
4696
- ("[object Object]" === task
4953
+ ("[object Object]" === childIndex
4697
4954
  ? "object with keys {" + Object.keys(node).join(", ") + "}"
4698
- : task) +
4955
+ : childIndex) +
4699
4956
  "). If you meant to render a collection of children, use an array instead."
4700
4957
  );
4701
4958
  }
4702
4959
  if ("string" === typeof node)
4703
- (task = task.blockedSegment),
4704
- null !== task &&
4705
- (task.chunks.push(escapeTextForBrowser(node)),
4706
- (task.lastPushedText = !1));
4960
+ (childIndex = task.blockedSegment),
4961
+ null !== childIndex &&
4962
+ (childIndex.chunks.push(escapeTextForBrowser(node)),
4963
+ (childIndex.lastPushedText = !1));
4707
4964
  else if ("number" === typeof node || "bigint" === typeof node)
4708
- (task = task.blockedSegment),
4709
- null !== task &&
4710
- (task.chunks.push(escapeTextForBrowser("" + node)),
4711
- (task.lastPushedText = !1));
4965
+ (childIndex = task.blockedSegment),
4966
+ null !== childIndex &&
4967
+ (childIndex.chunks.push(escapeTextForBrowser("" + node)),
4968
+ (childIndex.lastPushedText = !1));
4712
4969
  }
4713
4970
  }
4714
4971
  function renderChildrenArray(request, task, children, childIndex) {
@@ -4824,9 +5081,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
4824
5081
  addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
4825
5082
  return;
4826
5083
  }
4827
- var boundaryNode$36 = trackedPostpones.workingMap.get(boundaryKeyPath);
4828
- void 0 === boundaryNode$36
4829
- ? ((boundaryNode$36 = [
5084
+ var boundaryNode$46 = trackedPostpones.workingMap.get(boundaryKeyPath);
5085
+ void 0 === boundaryNode$46
5086
+ ? ((boundaryNode$46 = [
4830
5087
  boundaryKeyPath[1],
4831
5088
  boundaryKeyPath[2],
4832
5089
  children,
@@ -4834,13 +5091,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
4834
5091
  fallbackReplayNode,
4835
5092
  boundary.rootSegmentID
4836
5093
  ]),
4837
- trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$36),
5094
+ trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$46),
4838
5095
  addToReplayParent(
4839
- boundaryNode$36,
5096
+ boundaryNode$46,
4840
5097
  boundaryKeyPath[0],
4841
5098
  trackedPostpones
4842
5099
  ))
4843
- : ((boundaryKeyPath = boundaryNode$36),
5100
+ : ((boundaryKeyPath = boundaryNode$46),
4844
5101
  (boundaryKeyPath[4] = fallbackReplayNode),
4845
5102
  (boundaryKeyPath[5] = boundary.rootSegmentID));
4846
5103
  }
@@ -4909,6 +5166,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
4909
5166
  task.formatContext,
4910
5167
  task.context,
4911
5168
  task.treeContext,
5169
+ task.row,
4912
5170
  task.componentStack
4913
5171
  );
4914
5172
  }
@@ -4938,6 +5196,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
4938
5196
  task.formatContext,
4939
5197
  task.context,
4940
5198
  task.treeContext,
5199
+ task.row,
4941
5200
  task.componentStack
4942
5201
  );
4943
5202
  }
@@ -4992,15 +5251,15 @@ function renderNode(request, task, node, childIndex) {
4992
5251
  chunkLength = segment.chunks.length;
4993
5252
  try {
4994
5253
  return renderNodeDestructive(request, task, node, childIndex);
4995
- } catch (thrownValue$48) {
5254
+ } catch (thrownValue$58) {
4996
5255
  if (
4997
5256
  (resetHooksState(),
4998
5257
  (segment.children.length = childrenLength),
4999
5258
  (segment.chunks.length = chunkLength),
5000
5259
  (childIndex =
5001
- thrownValue$48 === SuspenseException
5260
+ thrownValue$58 === SuspenseException
5002
5261
  ? getSuspendedThenable()
5003
- : thrownValue$48),
5262
+ : thrownValue$58),
5004
5263
  "object" === typeof childIndex && null !== childIndex)
5005
5264
  ) {
5006
5265
  if ("function" === typeof childIndex.then) {
@@ -5089,9 +5348,10 @@ function erroredReplay(
5089
5348
  );
5090
5349
  }
5091
5350
  function abortTaskSoft(task) {
5092
- var boundary = task.blockedBoundary;
5093
- task = task.blockedSegment;
5094
- null !== task && ((task.status = 3), finishedTask(this, boundary, task));
5351
+ var boundary = task.blockedBoundary,
5352
+ segment = task.blockedSegment;
5353
+ null !== segment &&
5354
+ ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
5095
5355
  }
5096
5356
  function abortRemainingReplayNodes(
5097
5357
  request$jscomp$0,
@@ -5118,6 +5378,7 @@ function abortRemainingReplayNodes(
5118
5378
  errorDigest = errorDigest$jscomp$0,
5119
5379
  resumedBoundary = createSuspenseBoundary(
5120
5380
  request,
5381
+ null,
5121
5382
  new Set(),
5122
5383
  null,
5123
5384
  null
@@ -5151,6 +5412,10 @@ function abortTask(task, request, error) {
5151
5412
  if (6 === segment.status) return;
5152
5413
  segment.status = 3;
5153
5414
  }
5415
+ var row = task.row;
5416
+ null !== row &&
5417
+ 0 === --row.pendingTasks &&
5418
+ finishSuspenseListRow(request, row);
5154
5419
  var errorInfo = getThrownInfo(task.componentStack);
5155
5420
  if (null === boundary) {
5156
5421
  if (13 !== request.status && 14 !== request.status) {
@@ -5163,7 +5428,7 @@ function abortTask(task, request, error) {
5163
5428
  null !== boundary && null !== segment
5164
5429
  ? (logPostpone(request, error.message, errorInfo),
5165
5430
  trackPostpone(request, boundary, task, segment),
5166
- finishedTask(request, null, segment))
5431
+ finishedTask(request, null, row, segment))
5167
5432
  : ((task = Error(
5168
5433
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
5169
5434
  error.message
@@ -5174,7 +5439,7 @@ function abortTask(task, request, error) {
5174
5439
  ? ((boundary = request.trackedPostpones),
5175
5440
  logRecoverableError(request, error, errorInfo),
5176
5441
  trackPostpone(request, boundary, task, segment),
5177
- finishedTask(request, null, segment))
5442
+ finishedTask(request, null, row, segment))
5178
5443
  : (logRecoverableError(request, error, errorInfo),
5179
5444
  fatalError(request, error));
5180
5445
  return;
@@ -5201,21 +5466,21 @@ function abortTask(task, request, error) {
5201
5466
  }
5202
5467
  } else {
5203
5468
  boundary.pendingTasks--;
5204
- var trackedPostpones$51 = request.trackedPostpones;
5469
+ var trackedPostpones$61 = request.trackedPostpones;
5205
5470
  if (4 !== boundary.status) {
5206
- if (null !== trackedPostpones$51 && null !== segment)
5471
+ if (null !== trackedPostpones$61 && null !== segment)
5207
5472
  return (
5208
5473
  "object" === typeof error &&
5209
5474
  null !== error &&
5210
5475
  error.$$typeof === REACT_POSTPONE_TYPE
5211
5476
  ? logPostpone(request, error.message, errorInfo)
5212
5477
  : logRecoverableError(request, error, errorInfo),
5213
- trackPostpone(request, trackedPostpones$51, task, segment),
5478
+ trackPostpone(request, trackedPostpones$61, task, segment),
5214
5479
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5215
5480
  return abortTask(fallbackTask, request, error);
5216
5481
  }),
5217
5482
  boundary.fallbackAbortableTasks.clear(),
5218
- finishedTask(request, boundary, segment)
5483
+ finishedTask(request, boundary, row, segment)
5219
5484
  );
5220
5485
  boundary.status = 4;
5221
5486
  if (
@@ -5226,7 +5491,7 @@ function abortTask(task, request, error) {
5226
5491
  logPostpone(request, error.message, errorInfo);
5227
5492
  if (null !== request.trackedPostpones && null !== segment) {
5228
5493
  trackPostpone(request, request.trackedPostpones, task, segment);
5229
- finishedTask(request, task.blockedBoundary, segment);
5494
+ finishedTask(request, task.blockedBoundary, row, segment);
5230
5495
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5231
5496
  return abortTask(fallbackTask, request, error);
5232
5497
  });
@@ -5341,7 +5606,11 @@ function queueCompletedSegment(boundary, segment) {
5341
5606
  1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
5342
5607
  } else boundary.completedSegments.push(segment);
5343
5608
  }
5344
- function finishedTask(request, boundary, segment) {
5609
+ function finishedTask(request, boundary, row, segment) {
5610
+ null !== row &&
5611
+ 0 === --row.pendingTasks &&
5612
+ finishSuspenseListRow(request, row);
5613
+ request.allPendingTasks--;
5345
5614
  if (null === boundary) {
5346
5615
  if (null !== segment && segment.parentFlushed) {
5347
5616
  if (null !== request.completedRootSegment)
@@ -5369,7 +5638,11 @@ function finishedTask(request, boundary, segment) {
5369
5638
  abortTaskSoft,
5370
5639
  request
5371
5640
  ),
5372
- boundary.fallbackAbortableTasks.clear()),
5641
+ boundary.fallbackAbortableTasks.clear(),
5642
+ (row = boundary.row),
5643
+ null !== row &&
5644
+ 0 === --row.pendingTasks &&
5645
+ finishSuspenseListRow(request, row)),
5373
5646
  0 === request.pendingRootTasks &&
5374
5647
  null === request.trackedPostpones &&
5375
5648
  null !== boundary.contentPreamble &&
@@ -5381,7 +5654,6 @@ function finishedTask(request, boundary, segment) {
5381
5654
  1 === boundary.completedSegments.length &&
5382
5655
  boundary.parentFlushed &&
5383
5656
  request.partialBoundaries.push(boundary)));
5384
- request.allPendingTasks--;
5385
5657
  0 === request.allPendingTasks && completeAll(request);
5386
5658
  }
5387
5659
  function performWork(request$jscomp$1) {
@@ -5423,7 +5695,12 @@ function performWork(request$jscomp$1) {
5423
5695
  );
5424
5696
  task.replay.pendingTasks--;
5425
5697
  task.abortSet.delete(task);
5426
- finishedTask(request$jscomp$0, task.blockedBoundary, null);
5698
+ finishedTask(
5699
+ request$jscomp$0,
5700
+ task.blockedBoundary,
5701
+ task.row,
5702
+ null
5703
+ );
5427
5704
  } catch (thrownValue) {
5428
5705
  resetHooksState();
5429
5706
  var x =
@@ -5475,7 +5752,12 @@ function performWork(request$jscomp$1) {
5475
5752
  retryNode(request, task),
5476
5753
  task.abortSet.delete(task),
5477
5754
  (segment$jscomp$0.status = 1),
5478
- finishedTask(request, task.blockedBoundary, segment$jscomp$0);
5755
+ finishedTask(
5756
+ request,
5757
+ task.blockedBoundary,
5758
+ task.row,
5759
+ segment$jscomp$0
5760
+ );
5479
5761
  } catch (thrownValue) {
5480
5762
  resetHooksState();
5481
5763
  segment$jscomp$0.children.length = childrenLength;
@@ -5504,7 +5786,12 @@ function performWork(request$jscomp$1) {
5504
5786
  task,
5505
5787
  segment$jscomp$0
5506
5788
  );
5507
- finishedTask(request, task.blockedBoundary, segment$jscomp$0);
5789
+ finishedTask(
5790
+ request,
5791
+ task.blockedBoundary,
5792
+ task.row,
5793
+ segment$jscomp$0
5794
+ );
5508
5795
  } else {
5509
5796
  if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
5510
5797
  if ("function" === typeof x$jscomp$0.then) {
@@ -5518,19 +5805,20 @@ function performWork(request$jscomp$1) {
5518
5805
  null !== request.trackedPostpones &&
5519
5806
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
5520
5807
  ) {
5521
- var trackedPostpones$55 = request.trackedPostpones;
5808
+ var trackedPostpones$65 = request.trackedPostpones;
5522
5809
  task.abortSet.delete(task);
5523
5810
  var postponeInfo = getThrownInfo(task.componentStack);
5524
5811
  logPostpone(request, x$jscomp$0.message, postponeInfo);
5525
5812
  trackPostpone(
5526
5813
  request,
5527
- trackedPostpones$55,
5814
+ trackedPostpones$65,
5528
5815
  task,
5529
5816
  segment$jscomp$0
5530
5817
  );
5531
5818
  finishedTask(
5532
5819
  request,
5533
5820
  task.blockedBoundary,
5821
+ task.row,
5534
5822
  segment$jscomp$0
5535
5823
  );
5536
5824
  break a;
@@ -5539,7 +5827,12 @@ function performWork(request$jscomp$1) {
5539
5827
  var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5540
5828
  task.abortSet.delete(task);
5541
5829
  segment$jscomp$0.status = 4;
5542
- var boundary = task.blockedBoundary;
5830
+ var boundary = task.blockedBoundary,
5831
+ row = task.row;
5832
+ null !== row &&
5833
+ 0 === --row.pendingTasks &&
5834
+ finishSuspenseListRow(request, row);
5835
+ request.allPendingTasks--;
5543
5836
  "object" === typeof x$jscomp$0 &&
5544
5837
  null !== x$jscomp$0 &&
5545
5838
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
@@ -5567,7 +5860,6 @@ function performWork(request$jscomp$1) {
5567
5860
  null === request.trackedPostpones &&
5568
5861
  null !== boundary.contentPreamble &&
5569
5862
  preparePreamble(request)));
5570
- request.allPendingTasks--;
5571
5863
  0 === request.allPendingTasks && completeAll(request);
5572
5864
  }
5573
5865
  } finally {
@@ -5713,7 +6005,14 @@ function flushSegment(request, destination, segment, hoistableState) {
5713
6005
  return flushSubtree(request, destination, segment, hoistableState);
5714
6006
  boundary.parentFlushed = !0;
5715
6007
  if (4 === boundary.status)
5716
- return flushSubtree(request, destination, segment, hoistableState), !0;
6008
+ return (
6009
+ (boundary = boundary.row),
6010
+ null !== boundary &&
6011
+ 0 === --boundary.pendingTasks &&
6012
+ finishSuspenseListRow(request, boundary),
6013
+ flushSubtree(request, destination, segment, hoistableState),
6014
+ !0
6015
+ );
5717
6016
  if (1 !== boundary.status)
5718
6017
  return (
5719
6018
  0 === boundary.status &&
@@ -5755,6 +6054,11 @@ function flushSegment(request, destination, segment, hoistableState) {
5755
6054
  ((segment = boundary.contentState),
5756
6055
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
5757
6056
  segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
6057
+ segment = boundary.row;
6058
+ null !== segment &&
6059
+ 500 < boundary.byteSize &&
6060
+ 0 === --segment.pendingTasks &&
6061
+ finishSuspenseListRow(request, segment);
5758
6062
  segment = boundary.completedSegments;
5759
6063
  if (1 !== segment.length)
5760
6064
  throw Error(
@@ -5787,6 +6091,11 @@ function flushCompletedBoundary(request, destination, boundary) {
5787
6091
  completedSegments[i]
5788
6092
  );
5789
6093
  completedSegments.length = 0;
6094
+ completedSegments = boundary.row;
6095
+ null !== completedSegments &&
6096
+ 500 < boundary.byteSize &&
6097
+ 0 === --completedSegments.pendingTasks &&
6098
+ finishSuspenseListRow(request, completedSegments);
5790
6099
  writeHoistablesForBoundary(
5791
6100
  destination,
5792
6101
  boundary.contentState,
@@ -5796,7 +6105,8 @@ function flushCompletedBoundary(request, destination, boundary) {
5796
6105
  request = request.renderState;
5797
6106
  i = boundary.rootSegmentID;
5798
6107
  boundary = boundary.contentState;
5799
- var requiresStyleInsertion = request.stylesToHoist;
6108
+ var requiresStyleInsertion = request.stylesToHoist,
6109
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
5800
6110
  request.stylesToHoist = !1;
5801
6111
  var scriptFormat = 0 === completedSegments.streamingFormat;
5802
6112
  scriptFormat
@@ -5811,7 +6121,13 @@ function flushCompletedBoundary(request, destination, boundary) {
5811
6121
  0 === (completedSegments.instructions & 2) &&
5812
6122
  ((completedSegments.instructions |= 2),
5813
6123
  destination.push(
5814
- '$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())};'
6124
+ '$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())};'
6125
+ )),
6126
+ requiresViewTransitions &&
6127
+ 0 === (completedSegments.instructions & 256) &&
6128
+ ((completedSegments.instructions |= 256),
6129
+ destination.push(
6130
+ "$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);"
5815
6131
  )),
5816
6132
  0 === (completedSegments.instructions & 8)
5817
6133
  ? ((completedSegments.instructions |= 8),
@@ -5819,12 +6135,18 @@ function flushCompletedBoundary(request, destination, boundary) {
5819
6135
  '$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("'
5820
6136
  ))
5821
6137
  : destination.push('$RR("'))
5822
- : 0 === (completedSegments.instructions & 2)
5823
- ? ((completedSegments.instructions |= 2),
6138
+ : (0 === (completedSegments.instructions & 2) &&
6139
+ ((completedSegments.instructions |= 2),
5824
6140
  destination.push(
5825
- '$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("'
5826
- ))
5827
- : destination.push('$RC("'))
6141
+ '$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())};'
6142
+ )),
6143
+ requiresViewTransitions &&
6144
+ 0 === (completedSegments.instructions & 256) &&
6145
+ ((completedSegments.instructions |= 256),
6146
+ destination.push(
6147
+ "$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);"
6148
+ )),
6149
+ destination.push('$RC("')))
5828
6150
  : requiresStyleInsertion
5829
6151
  ? destination.push('<template data-rri="" data-bid="')
5830
6152
  : destination.push('<template data-rci="" data-bid="');
@@ -6078,12 +6400,12 @@ function flushCompletedQueues(request, destination) {
6078
6400
  completedBoundaries.splice(0, i);
6079
6401
  var partialBoundaries = request.partialBoundaries;
6080
6402
  for (i = 0; i < partialBoundaries.length; i++) {
6081
- var boundary$58 = partialBoundaries[i];
6403
+ var boundary$69 = partialBoundaries[i];
6082
6404
  a: {
6083
6405
  clientRenderedBoundaries = request;
6084
6406
  boundary = destination;
6085
- flushedByteSize = boundary$58.byteSize;
6086
- var completedSegments = boundary$58.completedSegments;
6407
+ flushedByteSize = boundary$69.byteSize;
6408
+ var completedSegments = boundary$69.completedSegments;
6087
6409
  for (
6088
6410
  JSCompiler_inline_result = 0;
6089
6411
  JSCompiler_inline_result < completedSegments.length;
@@ -6093,7 +6415,7 @@ function flushCompletedQueues(request, destination) {
6093
6415
  !flushPartiallyCompletedSegment(
6094
6416
  clientRenderedBoundaries,
6095
6417
  boundary,
6096
- boundary$58,
6418
+ boundary$69,
6097
6419
  completedSegments[JSCompiler_inline_result]
6098
6420
  )
6099
6421
  ) {
@@ -6105,7 +6427,7 @@ function flushCompletedQueues(request, destination) {
6105
6427
  completedSegments.splice(0, JSCompiler_inline_result);
6106
6428
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
6107
6429
  boundary,
6108
- boundary$58.contentState,
6430
+ boundary$69.contentState,
6109
6431
  clientRenderedBoundaries.renderState
6110
6432
  );
6111
6433
  }
@@ -6176,8 +6498,8 @@ function abort(request, reason) {
6176
6498
  }
6177
6499
  null !== request.destination &&
6178
6500
  flushCompletedQueues(request, request.destination);
6179
- } catch (error$60) {
6180
- logRecoverableError(request, error$60, {}), fatalError(request, error$60);
6501
+ } catch (error$71) {
6502
+ logRecoverableError(request, error$71, {}), fatalError(request, error$71);
6181
6503
  }
6182
6504
  }
6183
6505
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -6251,4 +6573,4 @@ exports.experimental_renderToHTML = function (children, options) {
6251
6573
  });
6252
6574
  });
6253
6575
  };
6254
- exports.version = "19.2.0-experimental-4448b187-20250515";
6576
+ exports.version = "19.2.0-experimental-c4676e72-20250520";