react-markup 0.0.0-experimental-a960b92c-20240819 → 0.0.0-experimental-1d989965-20240821

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.
@@ -648,8 +648,10 @@ function serializeThenable(request, task, thenable) {
648
648
  return (
649
649
  request.abortableTasks.delete(newTask),
650
650
  (newTask.status = 3),
651
- (task = stringify(serializeByValueID$1(request.fatalError))),
652
- emitModelChunk(request, newTask.id, task),
651
+ 21 === request.type
652
+ ? request.pendingChunks--
653
+ : ((task = stringify(serializeByValueID$1(request.fatalError))),
654
+ emitModelChunk(request, newTask.id, task)),
653
655
  newTask.id
654
656
  );
655
657
  "string" !== typeof thenable.status &&
@@ -1126,34 +1128,42 @@ function renderModel(request, task, parent, key, value) {
1126
1128
  null !== parent &&
1127
1129
  (parent.$$typeof === REACT_ELEMENT_TYPE ||
1128
1130
  parent.$$typeof === REACT_LAZY_TYPE);
1131
+ if (11 === request.status) {
1132
+ task.status = 3;
1133
+ if (21 === request.type)
1134
+ return (
1135
+ (task = request.nextChunkId++),
1136
+ (task = parent
1137
+ ? "$L" + task.toString(16)
1138
+ : serializeByValueID$1(task)),
1139
+ task
1140
+ );
1141
+ task = request.fatalError;
1142
+ return parent ? "$L" + task.toString(16) : serializeByValueID$1(task);
1143
+ }
1129
1144
  key =
1130
1145
  thrownValue === SuspenseException$1
1131
1146
  ? getSuspendedThenable$1()
1132
1147
  : thrownValue;
1133
1148
  if ("object" === typeof key && null !== key) {
1134
- if ("function" === typeof key.then) {
1135
- if (11 === request.status)
1136
- return (
1137
- (task.status = 3),
1138
- (task = request.fatalError),
1139
- parent ? "$L" + task.toString(16) : serializeByValueID$1(task)
1140
- );
1141
- request = createTask(
1142
- request,
1143
- task.model,
1144
- task.keyPath,
1145
- task.implicitSlot,
1146
- request.abortableTasks
1149
+ if ("function" === typeof key.then)
1150
+ return (
1151
+ (request = createTask(
1152
+ request,
1153
+ task.model,
1154
+ task.keyPath,
1155
+ task.implicitSlot,
1156
+ request.abortableTasks
1157
+ )),
1158
+ (value = request.ping),
1159
+ key.then(value, value),
1160
+ (request.thenableState = getThenableStateAfterSuspending$1()),
1161
+ (task.keyPath = prevKeyPath),
1162
+ (task.implicitSlot = prevImplicitSlot),
1163
+ parent
1164
+ ? "$L" + request.id.toString(16)
1165
+ : serializeByValueID$1(request.id)
1147
1166
  );
1148
- value = request.ping;
1149
- key.then(value, value);
1150
- request.thenableState = getThenableStateAfterSuspending$1();
1151
- task.keyPath = prevKeyPath;
1152
- task.implicitSlot = prevImplicitSlot;
1153
- return parent
1154
- ? "$L" + request.id.toString(16)
1155
- : serializeByValueID$1(request.id);
1156
- }
1157
1167
  if (key.$$typeof === REACT_POSTPONE_TYPE)
1158
1168
  return (
1159
1169
  request.pendingChunks++,
@@ -1165,12 +1175,6 @@ function renderModel(request, task, parent, key, value) {
1165
1175
  parent ? "$L" + value.toString(16) : serializeByValueID$1(value)
1166
1176
  );
1167
1177
  }
1168
- if (11 === request.status)
1169
- return (
1170
- (task.status = 3),
1171
- (task = request.fatalError),
1172
- parent ? "$L" + task.toString(16) : serializeByValueID$1(task)
1173
- );
1174
1178
  task.keyPath = prevKeyPath;
1175
1179
  task.implicitSlot = prevImplicitSlot;
1176
1180
  request.pendingChunks++;
@@ -1593,39 +1597,38 @@ function retryTask$1(request, task) {
1593
1597
  request.abortableTasks.delete(task);
1594
1598
  task.status = 1;
1595
1599
  } catch (thrownValue) {
1596
- var x =
1597
- thrownValue === SuspenseException$1
1598
- ? getSuspendedThenable$1()
1599
- : thrownValue;
1600
- if ("object" === typeof x && null !== x) {
1601
- if ("function" === typeof x.then) {
1602
- if (11 === request.status) {
1600
+ if (11 === request.status)
1601
+ if (
1602
+ (request.abortableTasks.delete(task),
1603
+ (task.status = 3),
1604
+ 21 === request.type)
1605
+ )
1606
+ request.pendingChunks--;
1607
+ else {
1608
+ var model = stringify(serializeByValueID$1(request.fatalError));
1609
+ emitModelChunk(request, task.id, model);
1610
+ }
1611
+ else {
1612
+ var x =
1613
+ thrownValue === SuspenseException$1
1614
+ ? getSuspendedThenable$1()
1615
+ : thrownValue;
1616
+ if ("object" === typeof x && null !== x) {
1617
+ if ("function" === typeof x.then) {
1618
+ task.status = 0;
1619
+ task.thenableState = getThenableStateAfterSuspending$1();
1620
+ var ping = task.ping;
1621
+ x.then(ping, ping);
1622
+ return;
1623
+ }
1624
+ if (x.$$typeof === REACT_POSTPONE_TYPE) {
1603
1625
  request.abortableTasks.delete(task);
1604
- task.status = 3;
1605
- var model = stringify(serializeByValueID$1(request.fatalError));
1606
- emitModelChunk(request, task.id, model);
1626
+ task.status = 4;
1627
+ logPostpone$1(request, x.message, task);
1628
+ emitPostponeChunk(request, task.id);
1607
1629
  return;
1608
1630
  }
1609
- task.status = 0;
1610
- task.thenableState = getThenableStateAfterSuspending$1();
1611
- var ping = task.ping;
1612
- x.then(ping, ping);
1613
- return;
1614
- }
1615
- if (x.$$typeof === REACT_POSTPONE_TYPE) {
1616
- request.abortableTasks.delete(task);
1617
- task.status = 4;
1618
- logPostpone$1(request, x.message, task);
1619
- emitPostponeChunk(request, task.id);
1620
- return;
1621
1631
  }
1622
- }
1623
- if (11 === request.status) {
1624
- request.abortableTasks.delete(task);
1625
- task.status = 3;
1626
- var model$25 = stringify(serializeByValueID$1(request.fatalError));
1627
- emitModelChunk(request, task.id, model$25);
1628
- } else {
1629
1632
  request.abortableTasks.delete(task);
1630
1633
  task.status = 4;
1631
1634
  var digest = logRecoverableError$1(request, x, task);
@@ -1660,6 +1663,13 @@ function performWork$1(request) {
1660
1663
  (currentRequest = prevRequest);
1661
1664
  }
1662
1665
  }
1666
+ function abortTask$1(task, request, errorId) {
1667
+ 5 !== task.status &&
1668
+ ((task.status = 3),
1669
+ (errorId = serializeByValueID$1(errorId)),
1670
+ (task = encodeReferenceChunk(request, task.id, errorId)),
1671
+ request.completedErrorChunks.push(task));
1672
+ }
1663
1673
  function flushCompletedChunks(request, destination) {
1664
1674
  try {
1665
1675
  for (
@@ -1722,17 +1732,24 @@ function abort$1(request, reason) {
1722
1732
  10 === request.status && (request.status = 11);
1723
1733
  var abortableTasks = request.abortableTasks;
1724
1734
  if (0 < abortableTasks.size) {
1725
- var errorId = request.nextChunkId++;
1726
- request.fatalError = errorId;
1727
1735
  if (
1728
1736
  "object" === typeof reason &&
1729
1737
  null !== reason &&
1730
1738
  reason.$$typeof === REACT_POSTPONE_TYPE
1731
1739
  )
1732
- logPostpone$1(request, reason.message, null),
1733
- 21 === request.type &&
1734
- (request.pendingChunks++,
1735
- emitPostponeChunk(request, errorId, reason));
1740
+ if ((logPostpone$1(request, reason.message, null), 21 === request.type))
1741
+ abortableTasks.forEach(function (task) {
1742
+ 5 !== task.status && ((task.status = 3), request.pendingChunks--);
1743
+ });
1744
+ else {
1745
+ var errorId = request.nextChunkId++;
1746
+ request.fatalError = errorId;
1747
+ request.pendingChunks++;
1748
+ emitPostponeChunk(request, errorId, reason);
1749
+ abortableTasks.forEach(function (task) {
1750
+ return abortTask$1(task, request, errorId);
1751
+ });
1752
+ }
1736
1753
  else {
1737
1754
  var error =
1738
1755
  void 0 === reason
@@ -1743,25 +1760,27 @@ function abort$1(request, reason) {
1743
1760
  ? Error("The render was aborted by the server with a promise.")
1744
1761
  : reason,
1745
1762
  digest = logRecoverableError$1(request, error, null);
1746
- 20 === request.type &&
1747
- (request.pendingChunks++,
1748
- emitErrorChunk(request, errorId, digest, error));
1749
- }
1750
- abortableTasks.forEach(function (task) {
1751
- if (5 !== task.status) {
1752
- task.status = 3;
1753
- var ref = serializeByValueID$1(errorId);
1754
- task = encodeReferenceChunk(request, task.id, ref);
1755
- request.completedErrorChunks.push(task);
1763
+ if (21 === request.type)
1764
+ abortableTasks.forEach(function (task) {
1765
+ 5 !== task.status && ((task.status = 3), request.pendingChunks--);
1766
+ });
1767
+ else {
1768
+ var errorId$29 = request.nextChunkId++;
1769
+ request.fatalError = errorId$29;
1770
+ request.pendingChunks++;
1771
+ emitErrorChunk(request, errorId$29, digest, error);
1772
+ abortableTasks.forEach(function (task) {
1773
+ return abortTask$1(task, request, errorId$29);
1774
+ });
1756
1775
  }
1757
- });
1776
+ }
1758
1777
  abortableTasks.clear();
1759
1778
  var onAllReady = request.onAllReady;
1760
1779
  onAllReady();
1761
1780
  }
1762
1781
  var abortListeners = request.abortListeners;
1763
1782
  if (0 < abortListeners.size) {
1764
- var error$32 =
1783
+ var error$30 =
1765
1784
  "object" === typeof reason &&
1766
1785
  null !== reason &&
1767
1786
  reason.$$typeof === REACT_POSTPONE_TYPE
@@ -1774,15 +1793,15 @@ function abort$1(request, reason) {
1774
1793
  ? Error("The render was aborted by the server with a promise.")
1775
1794
  : reason;
1776
1795
  abortListeners.forEach(function (callback) {
1777
- return callback(error$32);
1796
+ return callback(error$30);
1778
1797
  });
1779
1798
  abortListeners.clear();
1780
1799
  }
1781
1800
  null !== request.destination &&
1782
1801
  flushCompletedChunks(request, request.destination);
1783
- } catch (error$33) {
1784
- logRecoverableError$1(request, error$33, null),
1785
- fatalError$1(request, error$33);
1802
+ } catch (error$31) {
1803
+ logRecoverableError$1(request, error$31, null),
1804
+ fatalError$1(request, error$31);
1786
1805
  }
1787
1806
  }
1788
1807
  var bind$1 = Function.prototype.bind,
@@ -1889,11 +1908,11 @@ function processReply(
1889
1908
  0 === pendingParts && resolve(data);
1890
1909
  } else
1891
1910
  try {
1892
- var partJSON$34 = JSON.stringify(entry.value, resolveToJSON);
1893
- data.append(formFieldPrefix + streamId, partJSON$34);
1911
+ var partJSON$32 = JSON.stringify(entry.value, resolveToJSON);
1912
+ data.append(formFieldPrefix + streamId, partJSON$32);
1894
1913
  iterator.next().then(progress, reject);
1895
- } catch (x$35) {
1896
- reject(x$35);
1914
+ } catch (x$33) {
1915
+ reject(x$33);
1897
1916
  }
1898
1917
  }
1899
1918
  null === formData && (formData = new FormData());
@@ -1938,20 +1957,20 @@ function processReply(
1938
1957
  "function" === typeof x.then
1939
1958
  ) {
1940
1959
  pendingParts++;
1941
- var lazyId$36 = nextPartId++;
1960
+ var lazyId$34 = nextPartId++;
1942
1961
  parentReference = function () {
1943
1962
  try {
1944
- var partJSON$37 = serializeModel(value, lazyId$36),
1945
- data$38 = formData;
1946
- data$38.append(formFieldPrefix + lazyId$36, partJSON$37);
1963
+ var partJSON$35 = serializeModel(value, lazyId$34),
1964
+ data$36 = formData;
1965
+ data$36.append(formFieldPrefix + lazyId$34, partJSON$35);
1947
1966
  pendingParts--;
1948
- 0 === pendingParts && resolve(data$38);
1967
+ 0 === pendingParts && resolve(data$36);
1949
1968
  } catch (reason) {
1950
1969
  reject(reason);
1951
1970
  }
1952
1971
  };
1953
1972
  x.then(parentReference, parentReference);
1954
- return "$" + lazyId$36.toString(16);
1973
+ return "$" + lazyId$34.toString(16);
1955
1974
  }
1956
1975
  reject(x);
1957
1976
  return null;
@@ -1965,9 +1984,9 @@ function processReply(
1965
1984
  var promiseId = nextPartId++;
1966
1985
  value.then(function (partValue) {
1967
1986
  try {
1968
- var partJSON$40 = serializeModel(partValue, promiseId);
1987
+ var partJSON$38 = serializeModel(partValue, promiseId);
1969
1988
  partValue = formData;
1970
- partValue.append(formFieldPrefix + promiseId, partJSON$40);
1989
+ partValue.append(formFieldPrefix + promiseId, partJSON$38);
1971
1990
  pendingParts--;
1972
1991
  0 === pendingParts && resolve(partValue);
1973
1992
  } catch (reason) {
@@ -1991,11 +2010,11 @@ function processReply(
1991
2010
  if (isArrayImpl(value)) return value;
1992
2011
  if (value instanceof FormData) {
1993
2012
  null === formData && (formData = new FormData());
1994
- var data$44 = formData;
2013
+ var data$42 = formData;
1995
2014
  key = nextPartId++;
1996
- var prefix$45 = formFieldPrefix + key + "_";
2015
+ var prefix$43 = formFieldPrefix + key + "_";
1997
2016
  value.forEach(function (originalValue, originalKey) {
1998
- data$44.append(prefix$45 + originalKey, originalValue);
2017
+ data$42.append(prefix$43 + originalKey, originalValue);
1999
2018
  });
2000
2019
  return "$K" + key.toString(16);
2001
2020
  }
@@ -2837,8 +2856,8 @@ function startReadableStream(response, id, type) {
2837
2856
  (previousBlockedChunk = chunk));
2838
2857
  } else {
2839
2858
  chunk = previousBlockedChunk;
2840
- var chunk$65 = createPendingChunk(response);
2841
- chunk$65.then(
2859
+ var chunk$63 = createPendingChunk(response);
2860
+ chunk$63.then(
2842
2861
  function (v) {
2843
2862
  return controller.enqueue(v);
2844
2863
  },
@@ -2846,10 +2865,10 @@ function startReadableStream(response, id, type) {
2846
2865
  return controller.error(e);
2847
2866
  }
2848
2867
  );
2849
- previousBlockedChunk = chunk$65;
2868
+ previousBlockedChunk = chunk$63;
2850
2869
  chunk.then(function () {
2851
- previousBlockedChunk === chunk$65 && (previousBlockedChunk = null);
2852
- resolveModelChunk(chunk$65, json);
2870
+ previousBlockedChunk === chunk$63 && (previousBlockedChunk = null);
2871
+ resolveModelChunk(chunk$63, json);
2853
2872
  });
2854
2873
  }
2855
2874
  },
@@ -3727,8 +3746,8 @@ function pushAttribute(target, name, value) {
3727
3746
  case "symbol":
3728
3747
  return;
3729
3748
  case "boolean":
3730
- var prefix$75 = name.toLowerCase().slice(0, 5);
3731
- if ("data-" !== prefix$75 && "aria-" !== prefix$75) return;
3749
+ var prefix$73 = name.toLowerCase().slice(0, 5);
3750
+ if ("data-" !== prefix$73 && "aria-" !== prefix$73) return;
3732
3751
  }
3733
3752
  target.push(" ", name, '="', escapeTextForBrowser(value), '"');
3734
3753
  }
@@ -4463,10 +4482,10 @@ function pushStartInstance$1(
4463
4482
  styleQueue.sheets.set(href, resource);
4464
4483
  hoistableState && hoistableState.stylesheets.add(resource);
4465
4484
  } else if (styleQueue) {
4466
- var resource$76 = styleQueue.sheets.get(href);
4467
- resource$76 &&
4485
+ var resource$74 = styleQueue.sheets.get(href);
4486
+ resource$74 &&
4468
4487
  hoistableState &&
4469
- hoistableState.stylesheets.add(resource$76);
4488
+ hoistableState.stylesheets.add(resource$74);
4470
4489
  }
4471
4490
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
4472
4491
  JSCompiler_inline_result$jscomp$4 = null;
@@ -5696,10 +5715,10 @@ function useActionState(action, initialState, permalink) {
5696
5715
  var nextPostbackStateKey = null,
5697
5716
  componentKeyPath = currentlyRenderingKeyPath;
5698
5717
  request = request.formState;
5699
- var isSignatureEqual$79 = action.$$IS_SIGNATURE_EQUAL;
5700
- if (null !== request && "function" === typeof isSignatureEqual$79) {
5718
+ var isSignatureEqual$77 = action.$$IS_SIGNATURE_EQUAL;
5719
+ if (null !== request && "function" === typeof isSignatureEqual$77) {
5701
5720
  var postbackKey = request[1];
5702
- isSignatureEqual$79.call(action, request[2], request[3]) &&
5721
+ isSignatureEqual$77.call(action, request[2], request[3]) &&
5703
5722
  ((nextPostbackStateKey =
5704
5723
  void 0 !== permalink
5705
5724
  ? "p" + permalink
@@ -5741,11 +5760,11 @@ function useActionState(action, initialState, permalink) {
5741
5760
  });
5742
5761
  return [initialState, action, !1];
5743
5762
  }
5744
- var boundAction$80 = action.bind(null, initialState);
5763
+ var boundAction$78 = action.bind(null, initialState);
5745
5764
  return [
5746
5765
  initialState,
5747
5766
  function (payload) {
5748
- boundAction$80(payload);
5767
+ boundAction$78(payload);
5749
5768
  },
5750
5769
  !1
5751
5770
  ];
@@ -6261,9 +6280,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
6261
6280
  var defaultProps = type.defaultProps;
6262
6281
  if (defaultProps) {
6263
6282
  newProps === props && (newProps = assign({}, newProps, props));
6264
- for (var propName$89 in defaultProps)
6265
- void 0 === newProps[propName$89] &&
6266
- (newProps[propName$89] = defaultProps[propName$89]);
6283
+ for (var propName$87 in defaultProps)
6284
+ void 0 === newProps[propName$87] &&
6285
+ (newProps[propName$87] = defaultProps[propName$87]);
6267
6286
  }
6268
6287
  props = newProps;
6269
6288
  newProps = emptyContextObject;
@@ -6373,7 +6392,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6373
6392
  defaultProps = newProps.chunks;
6374
6393
  initialState = request.resumableState;
6375
6394
  ref = request.renderState;
6376
- propName$89 = task.hoistableState;
6395
+ propName$87 = task.hoistableState;
6377
6396
  propName = task.formatContext;
6378
6397
  var textEmbedded = newProps.lastPushedText,
6379
6398
  isFallback = task.isFallback;
@@ -6397,7 +6416,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6397
6416
  props,
6398
6417
  initialState,
6399
6418
  ref,
6400
- propName$89,
6419
+ propName$87,
6401
6420
  propName,
6402
6421
  textEmbedded,
6403
6422
  isFallback
@@ -6494,13 +6513,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
6494
6513
  ref = props.fallback;
6495
6514
  props = props.children;
6496
6515
  var fallbackAbortSet = new Set();
6497
- propName$89 = createSuspenseBoundary(request, fallbackAbortSet);
6516
+ propName$87 = createSuspenseBoundary(request, fallbackAbortSet);
6498
6517
  null !== request.trackedPostpones &&
6499
- (propName$89.trackedContentKeyPath = keyPath);
6518
+ (propName$87.trackedContentKeyPath = keyPath);
6500
6519
  propName = createPendingSegment(
6501
6520
  request,
6502
6521
  contextType.chunks.length,
6503
- propName$89,
6522
+ propName$87,
6504
6523
  task.formatContext,
6505
6524
  !1,
6506
6525
  !1
@@ -6520,7 +6539,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6520
6539
  newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
6521
6540
  defaultProps = [newProps[1], newProps[2], [], null];
6522
6541
  request.trackedPostpones.workingMap.set(newProps, defaultProps);
6523
- propName$89.trackedFallbackNode = defaultProps;
6542
+ propName$87.trackedFallbackNode = defaultProps;
6524
6543
  task.blockedSegment = propName;
6525
6544
  task.keyPath = newProps;
6526
6545
  propName.status = 6;
@@ -6538,9 +6557,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
6538
6557
  null,
6539
6558
  props,
6540
6559
  -1,
6541
- propName$89,
6560
+ propName$87,
6542
6561
  textEmbedded,
6543
- propName$89.contentState,
6562
+ propName$87.contentState,
6544
6563
  task.abortSet,
6545
6564
  keyPath,
6546
6565
  task.formatContext,
@@ -6552,8 +6571,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
6552
6571
  pushComponentStack(task);
6553
6572
  request.pingedTasks.push(task);
6554
6573
  } else {
6555
- task.blockedBoundary = propName$89;
6556
- task.hoistableState = propName$89.contentState;
6574
+ task.blockedBoundary = propName$87;
6575
+ task.hoistableState = propName$87.contentState;
6557
6576
  task.blockedSegment = textEmbedded;
6558
6577
  task.keyPath = keyPath;
6559
6578
  textEmbedded.status = 6;
@@ -6561,17 +6580,17 @@ function renderElement(request, task, keyPath, type, props, ref) {
6561
6580
  if (
6562
6581
  (renderNode(request, task, props, -1),
6563
6582
  (textEmbedded.status = 1),
6564
- queueCompletedSegment(propName$89, textEmbedded),
6565
- 0 === propName$89.pendingTasks && 0 === propName$89.status)
6583
+ queueCompletedSegment(propName$87, textEmbedded),
6584
+ 0 === propName$87.pendingTasks && 0 === propName$87.status)
6566
6585
  ) {
6567
- propName$89.status = 1;
6586
+ propName$87.status = 1;
6568
6587
  break a;
6569
6588
  }
6570
- } catch (thrownValue$84) {
6571
- (propName$89.status = 4),
6589
+ } catch (thrownValue$82) {
6590
+ (propName$87.status = 4),
6572
6591
  1 === request.status
6573
6592
  ? ((textEmbedded.status = 3), (newProps = request.fatalError))
6574
- : ((textEmbedded.status = 4), (newProps = thrownValue$84)),
6593
+ : ((textEmbedded.status = 4), (newProps = thrownValue$82)),
6575
6594
  (defaultProps = getThrownInfo(task.componentStack)),
6576
6595
  "object" === typeof newProps &&
6577
6596
  null !== newProps &&
@@ -6583,8 +6602,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
6583
6602
  newProps,
6584
6603
  defaultProps
6585
6604
  )),
6586
- (propName$89.errorDigest = initialState),
6587
- untrackBoundary(request, propName$89);
6605
+ (propName$87.errorDigest = initialState),
6606
+ untrackBoundary(request, propName$87);
6588
6607
  } finally {
6589
6608
  (task.blockedBoundary = isFallback),
6590
6609
  (task.hoistableState = propValue),
@@ -6598,7 +6617,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6598
6617
  -1,
6599
6618
  isFallback,
6600
6619
  propName,
6601
- propName$89.fallbackState,
6620
+ propName$87.fallbackState,
6602
6621
  fallbackAbortSet,
6603
6622
  [keyPath[0], "Suspense Fallback", keyPath[2]],
6604
6623
  task.formatContext,
@@ -7107,9 +7126,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7107
7126
  addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
7108
7127
  return;
7109
7128
  }
7110
- var boundaryNode$99 = trackedPostpones.workingMap.get(boundaryKeyPath);
7111
- void 0 === boundaryNode$99
7112
- ? ((boundaryNode$99 = [
7129
+ var boundaryNode$97 = trackedPostpones.workingMap.get(boundaryKeyPath);
7130
+ void 0 === boundaryNode$97
7131
+ ? ((boundaryNode$97 = [
7113
7132
  boundaryKeyPath[1],
7114
7133
  boundaryKeyPath[2],
7115
7134
  children,
@@ -7117,13 +7136,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7117
7136
  fallbackReplayNode,
7118
7137
  boundary.rootSegmentID
7119
7138
  ]),
7120
- trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$99),
7139
+ trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$97),
7121
7140
  addToReplayParent(
7122
- boundaryNode$99,
7141
+ boundaryNode$97,
7123
7142
  boundaryKeyPath[0],
7124
7143
  trackedPostpones
7125
7144
  ))
7126
- : ((boundaryKeyPath = boundaryNode$99),
7145
+ : ((boundaryKeyPath = boundaryNode$97),
7127
7146
  (boundaryKeyPath[4] = fallbackReplayNode),
7128
7147
  (boundaryKeyPath[5] = boundary.rootSegmentID));
7129
7148
  }
@@ -7232,15 +7251,15 @@ function renderNode(request, task, node, childIndex) {
7232
7251
  chunkLength = segment.chunks.length;
7233
7252
  try {
7234
7253
  return renderNodeDestructive(request, task, node, childIndex);
7235
- } catch (thrownValue$105) {
7254
+ } catch (thrownValue$103) {
7236
7255
  if (
7237
7256
  (resetHooksState(),
7238
7257
  (segment.children.length = childrenLength),
7239
7258
  (segment.chunks.length = chunkLength),
7240
7259
  (childIndex =
7241
- thrownValue$105 === SuspenseException
7260
+ thrownValue$103 === SuspenseException
7242
7261
  ? getSuspendedThenable()
7243
- : thrownValue$105),
7262
+ : thrownValue$103),
7244
7263
  "object" === typeof childIndex && null !== childIndex)
7245
7264
  ) {
7246
7265
  if ("function" === typeof childIndex.then) {
@@ -7418,8 +7437,13 @@ function abortTask(task, request, error) {
7418
7437
  )),
7419
7438
  logRecoverableError(request, task, boundary),
7420
7439
  fatalError(request, task)))
7421
- : (logRecoverableError(request, error, boundary),
7422
- fatalError(request, error));
7440
+ : null !== request.trackedPostpones && null !== segment
7441
+ ? ((replay = request.trackedPostpones),
7442
+ logRecoverableError(request, error, boundary),
7443
+ trackPostpone(request, replay, task, segment),
7444
+ finishedTask(request, null, segment))
7445
+ : (logRecoverableError(request, error, boundary),
7446
+ fatalError(request, error));
7423
7447
  return;
7424
7448
  }
7425
7449
  replay.pendingTasks--;
@@ -7441,24 +7465,53 @@ function abortTask(task, request, error) {
7441
7465
  request.pendingRootTasks--;
7442
7466
  0 === request.pendingRootTasks && completeShell(request);
7443
7467
  }
7444
- } else
7445
- boundary.pendingTasks--,
7446
- 4 !== boundary.status &&
7447
- ((boundary.status = 4),
7448
- (task = getThrownInfo(task.componentStack)),
7468
+ } else {
7469
+ boundary.pendingTasks--;
7470
+ replay = getThrownInfo(task.componentStack);
7471
+ var trackedPostpones$107 = request.trackedPostpones;
7472
+ if (4 !== boundary.status) {
7473
+ if (null !== trackedPostpones$107 && null !== segment)
7474
+ return (
7475
+ "object" === typeof error &&
7476
+ null !== error &&
7477
+ error.$$typeof === REACT_POSTPONE_TYPE
7478
+ ? logPostpone(request, error.message, replay)
7479
+ : logRecoverableError(request, error, replay),
7480
+ trackPostpone(request, trackedPostpones$107, task, segment),
7481
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7482
+ return abortTask(fallbackTask, request, error);
7483
+ }),
7484
+ boundary.fallbackAbortableTasks.clear(),
7485
+ finishedTask(request, boundary, segment)
7486
+ );
7487
+ boundary.status = 4;
7488
+ if (
7449
7489
  "object" === typeof error &&
7450
7490
  null !== error &&
7451
7491
  error.$$typeof === REACT_POSTPONE_TYPE
7452
- ? (logPostpone(request, error.message, task), (task = "POSTPONE"))
7453
- : (task = logRecoverableError(request, error, task)),
7454
- (boundary.errorDigest = task),
7455
- untrackBoundary(request, boundary),
7456
- boundary.parentFlushed &&
7457
- request.clientRenderedBoundaries.push(boundary)),
7458
- boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7459
- return abortTask(fallbackTask, request, error);
7460
- }),
7461
- boundary.fallbackAbortableTasks.clear();
7492
+ ) {
7493
+ logPostpone(request, error.message, replay);
7494
+ if (null !== request.trackedPostpones && null !== segment) {
7495
+ trackPostpone(request, request.trackedPostpones, task, segment);
7496
+ finishedTask(request, task.blockedBoundary, segment);
7497
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7498
+ return abortTask(fallbackTask, request, error);
7499
+ });
7500
+ boundary.fallbackAbortableTasks.clear();
7501
+ return;
7502
+ }
7503
+ task = "POSTPONE";
7504
+ } else task = logRecoverableError(request, error, replay);
7505
+ boundary.status = 4;
7506
+ boundary.errorDigest = task;
7507
+ untrackBoundary(request, boundary);
7508
+ boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
7509
+ }
7510
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7511
+ return abortTask(fallbackTask, request, error);
7512
+ });
7513
+ boundary.fallbackAbortableTasks.clear();
7514
+ }
7462
7515
  request.allPendingTasks--;
7463
7516
  0 === request.allPendingTasks && completeAll(request);
7464
7517
  }
@@ -7690,65 +7743,83 @@ function performWork(request$jscomp$1) {
7690
7743
  : 1 === request.status
7691
7744
  ? request.fatalError
7692
7745
  : thrownValue;
7693
- if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
7694
- if ("function" === typeof x$jscomp$0.then) {
7695
- segment$jscomp$0.status = 0;
7696
- task.thenableState = getThenableStateAfterSuspending();
7697
- var ping$jscomp$0 = task.ping;
7698
- x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
7699
- break a;
7700
- }
7701
- if (
7702
- null !== request.trackedPostpones &&
7703
- x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7704
- ) {
7705
- var trackedPostpones = request.trackedPostpones;
7706
- task.abortSet.delete(task);
7707
- var postponeInfo = getThrownInfo(task.componentStack);
7708
- logPostpone(request, x$jscomp$0.message, postponeInfo);
7709
- trackPostpone(
7710
- request,
7711
- trackedPostpones,
7712
- task,
7713
- segment$jscomp$0
7714
- );
7715
- finishedTask(
7716
- request,
7717
- task.blockedBoundary,
7718
- segment$jscomp$0
7719
- );
7720
- break a;
7746
+ if (1 === request.status && null !== request.trackedPostpones) {
7747
+ var trackedPostpones = request.trackedPostpones,
7748
+ thrownInfo = getThrownInfo(task.componentStack);
7749
+ task.abortSet.delete(task);
7750
+ "object" === typeof x$jscomp$0 &&
7751
+ null !== x$jscomp$0 &&
7752
+ x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7753
+ ? logPostpone(request, x$jscomp$0.message, thrownInfo)
7754
+ : logRecoverableError(request, x$jscomp$0, thrownInfo);
7755
+ trackPostpone(
7756
+ request,
7757
+ trackedPostpones,
7758
+ task,
7759
+ segment$jscomp$0
7760
+ );
7761
+ finishedTask(request, task.blockedBoundary, segment$jscomp$0);
7762
+ } else {
7763
+ if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
7764
+ if ("function" === typeof x$jscomp$0.then) {
7765
+ segment$jscomp$0.status = 0;
7766
+ task.thenableState = getThenableStateAfterSuspending();
7767
+ var ping$jscomp$0 = task.ping;
7768
+ x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
7769
+ break a;
7770
+ }
7771
+ if (
7772
+ null !== request.trackedPostpones &&
7773
+ x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7774
+ ) {
7775
+ var trackedPostpones$111 = request.trackedPostpones;
7776
+ task.abortSet.delete(task);
7777
+ var postponeInfo = getThrownInfo(task.componentStack);
7778
+ logPostpone(request, x$jscomp$0.message, postponeInfo);
7779
+ trackPostpone(
7780
+ request,
7781
+ trackedPostpones$111,
7782
+ task,
7783
+ segment$jscomp$0
7784
+ );
7785
+ finishedTask(
7786
+ request,
7787
+ task.blockedBoundary,
7788
+ segment$jscomp$0
7789
+ );
7790
+ break a;
7791
+ }
7721
7792
  }
7793
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
7794
+ task.abortSet.delete(task);
7795
+ segment$jscomp$0.status = 4;
7796
+ var boundary = task.blockedBoundary;
7797
+ "object" === typeof x$jscomp$0 &&
7798
+ null !== x$jscomp$0 &&
7799
+ x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7800
+ ? (logPostpone(
7801
+ request,
7802
+ x$jscomp$0.message,
7803
+ errorInfo$jscomp$0
7804
+ ),
7805
+ (request$jscomp$0 = "POSTPONE"))
7806
+ : (request$jscomp$0 = logRecoverableError(
7807
+ request,
7808
+ x$jscomp$0,
7809
+ errorInfo$jscomp$0
7810
+ ));
7811
+ null === boundary
7812
+ ? fatalError(request, x$jscomp$0)
7813
+ : (boundary.pendingTasks--,
7814
+ 4 !== boundary.status &&
7815
+ ((boundary.status = 4),
7816
+ (boundary.errorDigest = request$jscomp$0),
7817
+ untrackBoundary(request, boundary),
7818
+ boundary.parentFlushed &&
7819
+ request.clientRenderedBoundaries.push(boundary)));
7820
+ request.allPendingTasks--;
7821
+ 0 === request.allPendingTasks && completeAll(request);
7722
7822
  }
7723
- var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
7724
- task.abortSet.delete(task);
7725
- segment$jscomp$0.status = 4;
7726
- var boundary = task.blockedBoundary;
7727
- "object" === typeof x$jscomp$0 &&
7728
- null !== x$jscomp$0 &&
7729
- x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7730
- ? (logPostpone(
7731
- request,
7732
- x$jscomp$0.message,
7733
- errorInfo$jscomp$0
7734
- ),
7735
- (request$jscomp$0 = "POSTPONE"))
7736
- : (request$jscomp$0 = logRecoverableError(
7737
- request,
7738
- x$jscomp$0,
7739
- errorInfo$jscomp$0
7740
- ));
7741
- null === boundary
7742
- ? fatalError(request, x$jscomp$0)
7743
- : (boundary.pendingTasks--,
7744
- 4 !== boundary.status &&
7745
- ((boundary.status = 4),
7746
- (boundary.errorDigest = request$jscomp$0),
7747
- untrackBoundary(request, boundary),
7748
- boundary.parentFlushed &&
7749
- request.clientRenderedBoundaries.push(boundary)));
7750
- request.allPendingTasks--;
7751
- 0 === request.allPendingTasks && completeAll(request);
7752
7823
  } finally {
7753
7824
  }
7754
7825
  }
@@ -8139,11 +8210,11 @@ function flushCompletedQueues(request, destination) {
8139
8210
  completedBoundaries.splice(0, i);
8140
8211
  var partialBoundaries = request.partialBoundaries;
8141
8212
  for (i = 0; i < partialBoundaries.length; i++) {
8142
- var boundary$111 = partialBoundaries[i];
8213
+ var boundary$114 = partialBoundaries[i];
8143
8214
  a: {
8144
8215
  clientRenderedBoundaries = request;
8145
8216
  boundary = destination;
8146
- var completedSegments = boundary$111.completedSegments;
8217
+ var completedSegments = boundary$114.completedSegments;
8147
8218
  for (
8148
8219
  JSCompiler_inline_result = 0;
8149
8220
  JSCompiler_inline_result < completedSegments.length;
@@ -8153,7 +8224,7 @@ function flushCompletedQueues(request, destination) {
8153
8224
  !flushPartiallyCompletedSegment(
8154
8225
  clientRenderedBoundaries,
8155
8226
  boundary,
8156
- boundary$111,
8227
+ boundary$114,
8157
8228
  completedSegments[JSCompiler_inline_result]
8158
8229
  )
8159
8230
  ) {
@@ -8165,7 +8236,7 @@ function flushCompletedQueues(request, destination) {
8165
8236
  completedSegments.splice(0, JSCompiler_inline_result);
8166
8237
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8167
8238
  boundary,
8168
- boundary$111.contentState,
8239
+ boundary$114.contentState,
8169
8240
  clientRenderedBoundaries.renderState
8170
8241
  );
8171
8242
  }
@@ -8237,8 +8308,8 @@ function abort(request, reason) {
8237
8308
  }
8238
8309
  null !== request.destination &&
8239
8310
  flushCompletedQueues(request, request.destination);
8240
- } catch (error$113) {
8241
- logRecoverableError(request, error$113, {}), fatalError(request, error$113);
8311
+ } catch (error$116) {
8312
+ logRecoverableError(request, error$116, {}), fatalError(request, error$116);
8242
8313
  }
8243
8314
  }
8244
8315
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -8539,9 +8610,13 @@ exports.experimental_renderToHTML = function (children, options) {
8539
8610
  }
8540
8611
  }
8541
8612
  fizzRequest.flushScheduled = null !== fizzRequest.destination;
8542
- performWork(fizzRequest);
8543
- null === fizzRequest.trackedPostpones &&
8544
- safelyEmitEarlyPreloads(fizzRequest, 0 === fizzRequest.pendingRootTasks);
8613
+ null !== fizzRequest.trackedPostpones
8614
+ ? performWork(fizzRequest)
8615
+ : (performWork(fizzRequest),
8616
+ safelyEmitEarlyPreloads(
8617
+ fizzRequest,
8618
+ 0 === fizzRequest.pendingRootTasks
8619
+ ));
8545
8620
  startFlowing(fizzRequest, {
8546
8621
  push: function (chunk) {
8547
8622
  null !== chunk ? (buffer$jscomp$0 += chunk) : resolve(buffer$jscomp$0);
@@ -8554,4 +8629,4 @@ exports.experimental_renderToHTML = function (children, options) {
8554
8629
  });
8555
8630
  });
8556
8631
  };
8557
- exports.version = "19.0.0-experimental-a960b92c-20240819";
8632
+ exports.version = "19.0.0-experimental-1d989965-20240821";