@vxrn/vendor 1.1.345 → 1.1.347

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.
Files changed (36) hide show
  1. package/package.json +2 -1
  2. package/react/cjs/react-compiler-runtime.development.js +1 -18
  3. package/react/cjs/react-jsx-dev-runtime.development.js +127 -144
  4. package/react/cjs/react-jsx-dev-runtime.react-server.development.js +128 -145
  5. package/react/cjs/react-jsx-runtime.development.js +127 -144
  6. package/react/cjs/react-jsx-runtime.react-server.development.js +128 -145
  7. package/react/cjs/react.development.js +204 -230
  8. package/react/cjs/react.production.js +9 -10
  9. package/react/cjs/react.react-server.development.js +172 -199
  10. package/react/cjs/react.react-server.production.js +6 -7
  11. package/react/package.json +2 -2
  12. package/react-dom/cjs/react-dom-client.development.js +6107 -5750
  13. package/react-dom/cjs/react-dom-client.production.js +2295 -1924
  14. package/react-dom/cjs/react-dom-profiling.development.js +6134 -5777
  15. package/react-dom/cjs/react-dom-profiling.profiling.js +2572 -2247
  16. package/react-dom/cjs/react-dom-server-legacy.browser.development.js +1244 -1040
  17. package/react-dom/cjs/react-dom-server-legacy.browser.production.js +891 -761
  18. package/react-dom/cjs/react-dom-server-legacy.node.development.js +1244 -1040
  19. package/react-dom/cjs/react-dom-server-legacy.node.production.js +887 -761
  20. package/react-dom/cjs/react-dom-server.browser.development.js +1380 -1060
  21. package/react-dom/cjs/react-dom-server.browser.production.js +999 -749
  22. package/react-dom/cjs/react-dom-server.bun.development.js +1241 -1032
  23. package/react-dom/cjs/react-dom-server.bun.production.js +886 -754
  24. package/react-dom/cjs/react-dom-server.edge.development.js +1393 -1069
  25. package/react-dom/cjs/react-dom-server.edge.production.js +1007 -758
  26. package/react-dom/cjs/react-dom-server.node.development.js +1624 -1254
  27. package/react-dom/cjs/react-dom-server.node.production.js +1242 -953
  28. package/react-dom/cjs/react-dom-test-utils.development.js +1 -20
  29. package/react-dom/cjs/react-dom.development.js +34 -50
  30. package/react-dom/cjs/react-dom.production.js +4 -3
  31. package/react-dom/cjs/react-dom.react-server.development.js +48 -66
  32. package/react-dom/cjs/react-dom.react-server.production.js +6 -8
  33. package/react-dom/package.json +3 -3
  34. package/react-dom/static.browser.js +1 -0
  35. package/react-dom/static.edge.js +1 -0
  36. package/react-dom/static.node.js +1 -0
@@ -133,7 +133,21 @@ function scheduleWork(callback) {
133
133
  taskQueue.push(callback);
134
134
  channel.port2.postMessage(null);
135
135
  }
136
- var currentView = null,
136
+ function handleErrorInNextTick(error) {
137
+ setTimeout(function () {
138
+ throw error;
139
+ });
140
+ }
141
+ var LocalPromise = Promise,
142
+ scheduleMicrotask =
143
+ "function" === typeof queueMicrotask
144
+ ? queueMicrotask
145
+ : function (callback) {
146
+ LocalPromise.resolve(null)
147
+ .then(callback)
148
+ .catch(handleErrorInNextTick);
149
+ },
150
+ currentView = null,
137
151
  writtenBytes = 0;
138
152
  function writeChunk(destination, chunk) {
139
153
  if (0 !== chunk.byteLength)
@@ -416,7 +430,7 @@ function createRenderState(
416
430
  fontPreloads: "",
417
431
  highImagePreloads: "",
418
432
  remainingCapacity:
419
- "number" === typeof maxHeadersLength ? maxHeadersLength : 2e3
433
+ 2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
420
434
  }
421
435
  : null;
422
436
  onHeaders = {
@@ -479,8 +493,8 @@ function createRenderState(
479
493
  "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
480
494
  ? void 0
481
495
  : "use-credentials" === scriptConfig.crossOrigin
482
- ? "use-credentials"
483
- : ""));
496
+ ? "use-credentials"
497
+ : ""));
484
498
  scriptConfig = resumableState;
485
499
  var href = maxHeadersLength;
486
500
  scriptConfig.scriptResources[href] = null;
@@ -534,8 +548,8 @@ function createRenderState(
534
548
  null == bootstrapScriptContent.crossOrigin
535
549
  ? void 0
536
550
  : "use-credentials" === bootstrapScriptContent.crossOrigin
537
- ? "use-credentials"
538
- : "")),
551
+ ? "use-credentials"
552
+ : "")),
539
553
  (bootstrapScriptContent = resumableState),
540
554
  (scriptConfig = importMap),
541
555
  (bootstrapScriptContent.scriptResources[scriptConfig] = null),
@@ -604,8 +618,8 @@ function createRootFormatContext(namespaceURI) {
604
618
  "http://www.w3.org/2000/svg" === namespaceURI
605
619
  ? 3
606
620
  : "http://www.w3.org/1998/Math/MathML" === namespaceURI
607
- ? 4
608
- : 0,
621
+ ? 4
622
+ : 0,
609
623
  null,
610
624
  0
611
625
  );
@@ -642,12 +656,12 @@ function getChildFormatContext(parentContext, type, props) {
642
656
  return 5 <= parentContext.insertionMode
643
657
  ? createFormatContext(2, null, parentContext.tagScope)
644
658
  : 0 === parentContext.insertionMode
645
- ? "html" === type
646
- ? createFormatContext(1, null, parentContext.tagScope)
647
- : createFormatContext(2, null, parentContext.tagScope)
648
- : 1 === parentContext.insertionMode
649
- ? createFormatContext(2, null, parentContext.tagScope)
650
- : parentContext;
659
+ ? "html" === type
660
+ ? createFormatContext(1, null, parentContext.tagScope)
661
+ : createFormatContext(2, null, parentContext.tagScope)
662
+ : 1 === parentContext.insertionMode
663
+ ? createFormatContext(2, null, parentContext.tagScope)
664
+ : parentContext;
651
665
  }
652
666
  var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
653
667
  function pushTextInstance(target, text, renderState, textEmbedded) {
@@ -1634,22 +1648,66 @@ function pushStartInstance(
1634
1648
  }
1635
1649
  target$jscomp$0.push(endOfStartTag);
1636
1650
  return null;
1651
+ case "object":
1652
+ target$jscomp$0.push(startChunkForTag("object"));
1653
+ var children$jscomp$5 = null,
1654
+ innerHTML$jscomp$4 = null,
1655
+ propKey$jscomp$7;
1656
+ for (propKey$jscomp$7 in props)
1657
+ if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1658
+ var propValue$jscomp$7 = props[propKey$jscomp$7];
1659
+ if (null != propValue$jscomp$7)
1660
+ switch (propKey$jscomp$7) {
1661
+ case "children":
1662
+ children$jscomp$5 = propValue$jscomp$7;
1663
+ break;
1664
+ case "dangerouslySetInnerHTML":
1665
+ innerHTML$jscomp$4 = propValue$jscomp$7;
1666
+ break;
1667
+ case "data":
1668
+ var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
1669
+ if ("" === sanitizedValue) break;
1670
+ target$jscomp$0.push(
1671
+ attributeSeparator,
1672
+ stringToChunk("data"),
1673
+ attributeAssign,
1674
+ stringToChunk(escapeTextForBrowser(sanitizedValue)),
1675
+ attributeEnd
1676
+ );
1677
+ break;
1678
+ default:
1679
+ pushAttribute(
1680
+ target$jscomp$0,
1681
+ propKey$jscomp$7,
1682
+ propValue$jscomp$7
1683
+ );
1684
+ }
1685
+ }
1686
+ target$jscomp$0.push(endOfStartTag);
1687
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1688
+ if ("string" === typeof children$jscomp$5) {
1689
+ target$jscomp$0.push(
1690
+ stringToChunk(escapeTextForBrowser(children$jscomp$5))
1691
+ );
1692
+ var JSCompiler_inline_result$jscomp$2 = null;
1693
+ } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
1694
+ return JSCompiler_inline_result$jscomp$2;
1637
1695
  case "title":
1638
1696
  if (
1639
1697
  3 === formatContext.insertionMode ||
1640
1698
  formatContext.tagScope & 1 ||
1641
1699
  null != props.itemProp
1642
1700
  )
1643
- var JSCompiler_inline_result$jscomp$2 = pushTitleImpl(
1701
+ var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
1644
1702
  target$jscomp$0,
1645
1703
  props
1646
1704
  );
1647
1705
  else
1648
1706
  isFallback
1649
- ? (JSCompiler_inline_result$jscomp$2 = null)
1707
+ ? (JSCompiler_inline_result$jscomp$3 = null)
1650
1708
  : (pushTitleImpl(renderState.hoistableChunks, props),
1651
- (JSCompiler_inline_result$jscomp$2 = void 0));
1652
- return JSCompiler_inline_result$jscomp$2;
1709
+ (JSCompiler_inline_result$jscomp$3 = void 0));
1710
+ return JSCompiler_inline_result$jscomp$3;
1653
1711
  case "link":
1654
1712
  var rel = props.rel,
1655
1713
  href = props.href,
@@ -1663,7 +1721,7 @@ function pushStartInstance(
1663
1721
  "" === href
1664
1722
  ) {
1665
1723
  pushLinkImpl(target$jscomp$0, props);
1666
- var JSCompiler_inline_result$jscomp$3 = null;
1724
+ var JSCompiler_inline_result$jscomp$4 = null;
1667
1725
  } else if ("stylesheet" === props.rel)
1668
1726
  if (
1669
1727
  "string" !== typeof precedence ||
@@ -1671,7 +1729,7 @@ function pushStartInstance(
1671
1729
  props.onLoad ||
1672
1730
  props.onError
1673
1731
  )
1674
- JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1732
+ JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1675
1733
  target$jscomp$0,
1676
1734
  props
1677
1735
  );
@@ -1714,19 +1772,19 @@ function pushStartInstance(
1714
1772
  hoistableState.stylesheets.add(resource$9);
1715
1773
  }
1716
1774
  textEmbedded && target$jscomp$0.push(textSeparator);
1717
- JSCompiler_inline_result$jscomp$3 = null;
1775
+ JSCompiler_inline_result$jscomp$4 = null;
1718
1776
  }
1719
1777
  else
1720
1778
  props.onLoad || props.onError
1721
- ? (JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1779
+ ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1722
1780
  target$jscomp$0,
1723
1781
  props
1724
1782
  ))
1725
1783
  : (textEmbedded && target$jscomp$0.push(textSeparator),
1726
- (JSCompiler_inline_result$jscomp$3 = isFallback
1784
+ (JSCompiler_inline_result$jscomp$4 = isFallback
1727
1785
  ? null
1728
1786
  : pushLinkImpl(renderState.hoistableChunks, props)));
1729
- return JSCompiler_inline_result$jscomp$3;
1787
+ return JSCompiler_inline_result$jscomp$4;
1730
1788
  case "script":
1731
1789
  var asyncProp = props.async;
1732
1790
  if (
@@ -1741,7 +1799,7 @@ function pushStartInstance(
1741
1799
  formatContext.tagScope & 1 ||
1742
1800
  null != props.itemProp
1743
1801
  )
1744
- var JSCompiler_inline_result$jscomp$4 = pushScriptImpl(
1802
+ var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
1745
1803
  target$jscomp$0,
1746
1804
  props
1747
1805
  );
@@ -1771,9 +1829,9 @@ function pushStartInstance(
1771
1829
  pushScriptImpl(resource$jscomp$0, scriptProps);
1772
1830
  }
1773
1831
  textEmbedded && target$jscomp$0.push(textSeparator);
1774
- JSCompiler_inline_result$jscomp$4 = null;
1832
+ JSCompiler_inline_result$jscomp$5 = null;
1775
1833
  }
1776
- return JSCompiler_inline_result$jscomp$4;
1834
+ return JSCompiler_inline_result$jscomp$5;
1777
1835
  case "style":
1778
1836
  var precedence$jscomp$0 = props.precedence,
1779
1837
  href$jscomp$0 = props.href;
@@ -1786,34 +1844,34 @@ function pushStartInstance(
1786
1844
  "" === href$jscomp$0
1787
1845
  ) {
1788
1846
  target$jscomp$0.push(startChunkForTag("style"));
1789
- var children$jscomp$5 = null,
1790
- innerHTML$jscomp$4 = null,
1791
- propKey$jscomp$7;
1792
- for (propKey$jscomp$7 in props)
1793
- if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1794
- var propValue$jscomp$7 = props[propKey$jscomp$7];
1795
- if (null != propValue$jscomp$7)
1796
- switch (propKey$jscomp$7) {
1847
+ var children$jscomp$6 = null,
1848
+ innerHTML$jscomp$5 = null,
1849
+ propKey$jscomp$8;
1850
+ for (propKey$jscomp$8 in props)
1851
+ if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1852
+ var propValue$jscomp$8 = props[propKey$jscomp$8];
1853
+ if (null != propValue$jscomp$8)
1854
+ switch (propKey$jscomp$8) {
1797
1855
  case "children":
1798
- children$jscomp$5 = propValue$jscomp$7;
1856
+ children$jscomp$6 = propValue$jscomp$8;
1799
1857
  break;
1800
1858
  case "dangerouslySetInnerHTML":
1801
- innerHTML$jscomp$4 = propValue$jscomp$7;
1859
+ innerHTML$jscomp$5 = propValue$jscomp$8;
1802
1860
  break;
1803
1861
  default:
1804
1862
  pushAttribute(
1805
1863
  target$jscomp$0,
1806
- propKey$jscomp$7,
1807
- propValue$jscomp$7
1864
+ propKey$jscomp$8,
1865
+ propValue$jscomp$8
1808
1866
  );
1809
1867
  }
1810
1868
  }
1811
1869
  target$jscomp$0.push(endOfStartTag);
1812
- var child = Array.isArray(children$jscomp$5)
1813
- ? 2 > children$jscomp$5.length
1814
- ? children$jscomp$5[0]
1870
+ var child = Array.isArray(children$jscomp$6)
1871
+ ? 2 > children$jscomp$6.length
1872
+ ? children$jscomp$6[0]
1815
1873
  : null
1816
- : children$jscomp$5;
1874
+ : children$jscomp$6;
1817
1875
  "function" !== typeof child &&
1818
1876
  "symbol" !== typeof child &&
1819
1877
  null !== child &&
@@ -1821,9 +1879,9 @@ function pushStartInstance(
1821
1879
  target$jscomp$0.push(
1822
1880
  stringToChunk(("" + child).replace(styleRegex, styleReplacer))
1823
1881
  );
1824
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1882
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
1825
1883
  target$jscomp$0.push(endChunkForTag("style"));
1826
- var JSCompiler_inline_result$jscomp$5 = null;
1884
+ var JSCompiler_inline_result$jscomp$6 = null;
1827
1885
  } else {
1828
1886
  var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
1829
1887
  if (
@@ -1847,26 +1905,26 @@ function pushStartInstance(
1847
1905
  }),
1848
1906
  renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
1849
1907
  var target = styleQueue$jscomp$0.rules,
1850
- children$jscomp$6 = null,
1851
- innerHTML$jscomp$5 = null,
1852
- propKey$jscomp$8;
1853
- for (propKey$jscomp$8 in props)
1854
- if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1855
- var propValue$jscomp$8 = props[propKey$jscomp$8];
1856
- if (null != propValue$jscomp$8)
1857
- switch (propKey$jscomp$8) {
1908
+ children$jscomp$7 = null,
1909
+ innerHTML$jscomp$6 = null,
1910
+ propKey$jscomp$9;
1911
+ for (propKey$jscomp$9 in props)
1912
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1913
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
1914
+ if (null != propValue$jscomp$9)
1915
+ switch (propKey$jscomp$9) {
1858
1916
  case "children":
1859
- children$jscomp$6 = propValue$jscomp$8;
1917
+ children$jscomp$7 = propValue$jscomp$9;
1860
1918
  break;
1861
1919
  case "dangerouslySetInnerHTML":
1862
- innerHTML$jscomp$5 = propValue$jscomp$8;
1920
+ innerHTML$jscomp$6 = propValue$jscomp$9;
1863
1921
  }
1864
1922
  }
1865
- var child$jscomp$0 = Array.isArray(children$jscomp$6)
1866
- ? 2 > children$jscomp$6.length
1867
- ? children$jscomp$6[0]
1923
+ var child$jscomp$0 = Array.isArray(children$jscomp$7)
1924
+ ? 2 > children$jscomp$7.length
1925
+ ? children$jscomp$7[0]
1868
1926
  : null
1869
- : children$jscomp$6;
1927
+ : children$jscomp$7;
1870
1928
  "function" !== typeof child$jscomp$0 &&
1871
1929
  "symbol" !== typeof child$jscomp$0 &&
1872
1930
  null !== child$jscomp$0 &&
@@ -1876,80 +1934,80 @@ function pushStartInstance(
1876
1934
  ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
1877
1935
  )
1878
1936
  );
1879
- pushInnerHTML(target, innerHTML$jscomp$5, children$jscomp$6);
1937
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
1880
1938
  }
1881
1939
  styleQueue$jscomp$0 &&
1882
1940
  hoistableState &&
1883
1941
  hoistableState.styles.add(styleQueue$jscomp$0);
1884
1942
  textEmbedded && target$jscomp$0.push(textSeparator);
1885
- JSCompiler_inline_result$jscomp$5 = void 0;
1943
+ JSCompiler_inline_result$jscomp$6 = void 0;
1886
1944
  }
1887
- return JSCompiler_inline_result$jscomp$5;
1945
+ return JSCompiler_inline_result$jscomp$6;
1888
1946
  case "meta":
1889
1947
  if (
1890
1948
  3 === formatContext.insertionMode ||
1891
1949
  formatContext.tagScope & 1 ||
1892
1950
  null != props.itemProp
1893
1951
  )
1894
- var JSCompiler_inline_result$jscomp$6 = pushSelfClosing(
1952
+ var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1895
1953
  target$jscomp$0,
1896
1954
  props,
1897
1955
  "meta"
1898
1956
  );
1899
1957
  else
1900
1958
  textEmbedded && target$jscomp$0.push(textSeparator),
1901
- (JSCompiler_inline_result$jscomp$6 = isFallback
1959
+ (JSCompiler_inline_result$jscomp$7 = isFallback
1902
1960
  ? null
1903
1961
  : "string" === typeof props.charSet
1904
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1905
- : "viewport" === props.name
1906
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1907
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1908
- return JSCompiler_inline_result$jscomp$6;
1962
+ ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1963
+ : "viewport" === props.name
1964
+ ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1965
+ : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1966
+ return JSCompiler_inline_result$jscomp$7;
1909
1967
  case "listing":
1910
1968
  case "pre":
1911
1969
  target$jscomp$0.push(startChunkForTag(type));
1912
- var children$jscomp$7 = null,
1913
- innerHTML$jscomp$6 = null,
1914
- propKey$jscomp$9;
1915
- for (propKey$jscomp$9 in props)
1916
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1917
- var propValue$jscomp$9 = props[propKey$jscomp$9];
1918
- if (null != propValue$jscomp$9)
1919
- switch (propKey$jscomp$9) {
1970
+ var children$jscomp$8 = null,
1971
+ innerHTML$jscomp$7 = null,
1972
+ propKey$jscomp$10;
1973
+ for (propKey$jscomp$10 in props)
1974
+ if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1975
+ var propValue$jscomp$10 = props[propKey$jscomp$10];
1976
+ if (null != propValue$jscomp$10)
1977
+ switch (propKey$jscomp$10) {
1920
1978
  case "children":
1921
- children$jscomp$7 = propValue$jscomp$9;
1979
+ children$jscomp$8 = propValue$jscomp$10;
1922
1980
  break;
1923
1981
  case "dangerouslySetInnerHTML":
1924
- innerHTML$jscomp$6 = propValue$jscomp$9;
1982
+ innerHTML$jscomp$7 = propValue$jscomp$10;
1925
1983
  break;
1926
1984
  default:
1927
1985
  pushAttribute(
1928
1986
  target$jscomp$0,
1929
- propKey$jscomp$9,
1930
- propValue$jscomp$9
1987
+ propKey$jscomp$10,
1988
+ propValue$jscomp$10
1931
1989
  );
1932
1990
  }
1933
1991
  }
1934
1992
  target$jscomp$0.push(endOfStartTag);
1935
- if (null != innerHTML$jscomp$6) {
1936
- if (null != children$jscomp$7) throw Error(formatProdErrorMessage(60));
1993
+ if (null != innerHTML$jscomp$7) {
1994
+ if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
1937
1995
  if (
1938
- "object" !== typeof innerHTML$jscomp$6 ||
1939
- !("__html" in innerHTML$jscomp$6)
1996
+ "object" !== typeof innerHTML$jscomp$7 ||
1997
+ !("__html" in innerHTML$jscomp$7)
1940
1998
  )
1941
1999
  throw Error(formatProdErrorMessage(61));
1942
- var html = innerHTML$jscomp$6.__html;
2000
+ var html = innerHTML$jscomp$7.__html;
1943
2001
  null !== html &&
1944
2002
  void 0 !== html &&
1945
2003
  ("string" === typeof html && 0 < html.length && "\n" === html[0]
1946
2004
  ? target$jscomp$0.push(leadingNewline, stringToChunk(html))
1947
2005
  : target$jscomp$0.push(stringToChunk("" + html)));
1948
2006
  }
1949
- "string" === typeof children$jscomp$7 &&
1950
- "\n" === children$jscomp$7[0] &&
2007
+ "string" === typeof children$jscomp$8 &&
2008
+ "\n" === children$jscomp$8[0] &&
1951
2009
  target$jscomp$0.push(leadingNewline);
1952
- return children$jscomp$7;
2010
+ return children$jscomp$8;
1953
2011
  case "img":
1954
2012
  var src = props.src,
1955
2013
  srcSet = props.srcSet;
@@ -1991,7 +2049,7 @@ function pushStartInstance(
1991
2049
  ) {
1992
2050
  resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
1993
2051
  var input = props.crossOrigin;
1994
- var JSCompiler_inline_result$jscomp$7 =
2052
+ var JSCompiler_inline_result$jscomp$8 =
1995
2053
  "string" === typeof input
1996
2054
  ? "use-credentials" === input
1997
2055
  ? input
@@ -2006,14 +2064,14 @@ function pushStartInstance(
2006
2064
  ((header = getPreloadAsHeader(src, "image", {
2007
2065
  imageSrcSet: props.srcSet,
2008
2066
  imageSizes: props.sizes,
2009
- crossOrigin: JSCompiler_inline_result$jscomp$7,
2067
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
2010
2068
  integrity: props.integrity,
2011
2069
  nonce: props.nonce,
2012
2070
  type: props.type,
2013
2071
  fetchPriority: props.fetchPriority,
2014
2072
  referrerPolicy: props.refererPolicy
2015
2073
  })),
2016
- 2 <= (headers.remainingCapacity -= header.length))
2074
+ 0 <= (headers.remainingCapacity -= header.length + 2))
2017
2075
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
2018
2076
  headers.highImagePreloads && (headers.highImagePreloads += ", "),
2019
2077
  (headers.highImagePreloads += header))
@@ -2024,7 +2082,7 @@ function pushStartInstance(
2024
2082
  href: srcSet ? void 0 : src,
2025
2083
  imageSrcSet: srcSet,
2026
2084
  imageSizes: sizes,
2027
- crossOrigin: JSCompiler_inline_result$jscomp$7,
2085
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
2028
2086
  integrity: props.integrity,
2029
2087
  type: props.type,
2030
2088
  fetchPriority: props.fetchPriority,
@@ -2062,56 +2120,56 @@ function pushStartInstance(
2062
2120
  case "head":
2063
2121
  if (2 > formatContext.insertionMode && null === renderState.headChunks) {
2064
2122
  renderState.headChunks = [];
2065
- var JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
2123
+ var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2066
2124
  renderState.headChunks,
2067
2125
  props,
2068
2126
  "head"
2069
2127
  );
2070
2128
  } else
2071
- JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
2129
+ JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2072
2130
  target$jscomp$0,
2073
2131
  props,
2074
2132
  "head"
2075
2133
  );
2076
- return JSCompiler_inline_result$jscomp$8;
2134
+ return JSCompiler_inline_result$jscomp$9;
2077
2135
  case "html":
2078
2136
  if (
2079
2137
  0 === formatContext.insertionMode &&
2080
2138
  null === renderState.htmlChunks
2081
2139
  ) {
2082
2140
  renderState.htmlChunks = [doctypeChunk];
2083
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2141
+ var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2084
2142
  renderState.htmlChunks,
2085
2143
  props,
2086
2144
  "html"
2087
2145
  );
2088
2146
  } else
2089
- JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2147
+ JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2090
2148
  target$jscomp$0,
2091
2149
  props,
2092
2150
  "html"
2093
2151
  );
2094
- return JSCompiler_inline_result$jscomp$9;
2152
+ return JSCompiler_inline_result$jscomp$10;
2095
2153
  default:
2096
2154
  if (-1 !== type.indexOf("-")) {
2097
2155
  target$jscomp$0.push(startChunkForTag(type));
2098
- var children$jscomp$8 = null,
2099
- innerHTML$jscomp$7 = null,
2100
- propKey$jscomp$10;
2101
- for (propKey$jscomp$10 in props)
2102
- if (hasOwnProperty.call(props, propKey$jscomp$10)) {
2103
- var propValue$jscomp$10 = props[propKey$jscomp$10];
2104
- if (null != propValue$jscomp$10) {
2105
- var attributeName = propKey$jscomp$10;
2106
- switch (propKey$jscomp$10) {
2156
+ var children$jscomp$9 = null,
2157
+ innerHTML$jscomp$8 = null,
2158
+ propKey$jscomp$11;
2159
+ for (propKey$jscomp$11 in props)
2160
+ if (hasOwnProperty.call(props, propKey$jscomp$11)) {
2161
+ var propValue$jscomp$11 = props[propKey$jscomp$11];
2162
+ if (null != propValue$jscomp$11) {
2163
+ var attributeName = propKey$jscomp$11;
2164
+ switch (propKey$jscomp$11) {
2107
2165
  case "children":
2108
- children$jscomp$8 = propValue$jscomp$10;
2166
+ children$jscomp$9 = propValue$jscomp$11;
2109
2167
  break;
2110
2168
  case "dangerouslySetInnerHTML":
2111
- innerHTML$jscomp$7 = propValue$jscomp$10;
2169
+ innerHTML$jscomp$8 = propValue$jscomp$11;
2112
2170
  break;
2113
2171
  case "style":
2114
- pushStyleAttribute(target$jscomp$0, propValue$jscomp$10);
2172
+ pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
2115
2173
  break;
2116
2174
  case "suppressContentEditableWarning":
2117
2175
  case "suppressHydrationWarning":
@@ -2121,18 +2179,18 @@ function pushStartInstance(
2121
2179
  attributeName = "class";
2122
2180
  default:
2123
2181
  if (
2124
- isAttributeNameSafe(propKey$jscomp$10) &&
2125
- "function" !== typeof propValue$jscomp$10 &&
2126
- "symbol" !== typeof propValue$jscomp$10 &&
2127
- !1 !== propValue$jscomp$10
2182
+ isAttributeNameSafe(propKey$jscomp$11) &&
2183
+ "function" !== typeof propValue$jscomp$11 &&
2184
+ "symbol" !== typeof propValue$jscomp$11 &&
2185
+ !1 !== propValue$jscomp$11
2128
2186
  ) {
2129
- if (!0 === propValue$jscomp$10) propValue$jscomp$10 = "";
2130
- else if ("object" === typeof propValue$jscomp$10) continue;
2187
+ if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
2188
+ else if ("object" === typeof propValue$jscomp$11) continue;
2131
2189
  target$jscomp$0.push(
2132
2190
  attributeSeparator,
2133
2191
  stringToChunk(attributeName),
2134
2192
  attributeAssign,
2135
- stringToChunk(escapeTextForBrowser(propValue$jscomp$10)),
2193
+ stringToChunk(escapeTextForBrowser(propValue$jscomp$11)),
2136
2194
  attributeEnd
2137
2195
  );
2138
2196
  }
@@ -2140,8 +2198,8 @@ function pushStartInstance(
2140
2198
  }
2141
2199
  }
2142
2200
  target$jscomp$0.push(endOfStartTag);
2143
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$7, children$jscomp$8);
2144
- return children$jscomp$8;
2201
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
2202
+ return children$jscomp$9;
2145
2203
  }
2146
2204
  }
2147
2205
  return pushStartGenericElement(target$jscomp$0, props, type);
@@ -2633,7 +2691,7 @@ function prefetchDNS(href) {
2633
2691
  escapeHrefForLinkHeaderURLContextReplacer
2634
2692
  ) +
2635
2693
  ">; rel=dns-prefetch"),
2636
- 2 <= (resumableState.remainingCapacity -= header.length));
2694
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2637
2695
  JSCompiler_temp
2638
2696
  ? ((renderState.resets.dns[href] = null),
2639
2697
  resumableState.preconnects && (resumableState.preconnects += ", "),
@@ -2656,8 +2714,8 @@ function preconnect(href, crossOrigin) {
2656
2714
  "use-credentials" === crossOrigin
2657
2715
  ? "credentials"
2658
2716
  : "string" === typeof crossOrigin
2659
- ? "anonymous"
2660
- : "default";
2717
+ ? "anonymous"
2718
+ : "default";
2661
2719
  if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
2662
2720
  resumableState.connectResources[bucket][href] = null;
2663
2721
  resumableState = renderState.headers;
@@ -2682,7 +2740,7 @@ function preconnect(href, crossOrigin) {
2682
2740
  }
2683
2741
  JSCompiler_temp =
2684
2742
  ((header = JSCompiler_temp),
2685
- 2 <= (resumableState.remainingCapacity -= header.length));
2743
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2686
2744
  }
2687
2745
  JSCompiler_temp
2688
2746
  ? ((renderState.resets.connect[bucket][href] = null),
@@ -2724,7 +2782,7 @@ function preload(href, as, options) {
2724
2782
  0 < resumableState.remainingCapacity &&
2725
2783
  "high" === fetchPriority &&
2726
2784
  ((header = getPreloadAsHeader(href, as, options)),
2727
- 2 <= (resumableState.remainingCapacity -= header.length))
2785
+ 0 <= (resumableState.remainingCapacity -= header.length + 2))
2728
2786
  ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
2729
2787
  resumableState.highImagePreloads &&
2730
2788
  (resumableState.highImagePreloads += ", "),
@@ -2790,7 +2848,7 @@ function preload(href, as, options) {
2790
2848
  0 < resumableState.remainingCapacity &&
2791
2849
  "font" === as &&
2792
2850
  ((key = getPreloadAsHeader(href, as, options)),
2793
- 2 <= (resumableState.remainingCapacity -= key.length))
2851
+ 0 <= (resumableState.remainingCapacity -= key.length + 2))
2794
2852
  )
2795
2853
  (renderState.resets.font[href] = PRELOAD_NO_CREDS),
2796
2854
  resumableState.fontPreloads &&
@@ -3013,7 +3071,8 @@ function hoistStyleQueueDependency(styleQueue) {
3013
3071
  function hoistStylesheetDependency(stylesheet) {
3014
3072
  this.stylesheets.add(stylesheet);
3015
3073
  }
3016
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
3074
+ var bind = Function.prototype.bind,
3075
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
3017
3076
  function getComponentNameFromType(type) {
3018
3077
  if (null == type) return null;
3019
3078
  if ("function" === typeof type)
@@ -3112,12 +3171,12 @@ function switchContext(newSnapshot) {
3112
3171
  (null === prev
3113
3172
  ? pushAllNext(newSnapshot)
3114
3173
  : null === newSnapshot
3115
- ? popAllPrevious(prev)
3116
- : prev.depth === newSnapshot.depth
3117
- ? popToNearestCommonAncestor(prev, newSnapshot)
3118
- : prev.depth > newSnapshot.depth
3119
- ? popPreviousToCommonLevel(prev, newSnapshot)
3120
- : popNextToCommonLevel(prev, newSnapshot),
3174
+ ? popAllPrevious(prev)
3175
+ : prev.depth === newSnapshot.depth
3176
+ ? popToNearestCommonAncestor(prev, newSnapshot)
3177
+ : prev.depth > newSnapshot.depth
3178
+ ? popPreviousToCommonLevel(prev, newSnapshot)
3179
+ : popNextToCommonLevel(prev, newSnapshot),
3121
3180
  (currentActiveSnapshot = newSnapshot));
3122
3181
  }
3123
3182
  var classComponentUpdater = {
@@ -3256,9 +3315,9 @@ function createWorkInProgressHook() {
3256
3315
  (firstWorkInProgressHook = workInProgressHook = createHook()))
3257
3316
  : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
3258
3317
  : null === workInProgressHook.next
3259
- ? ((isReRender = !1),
3260
- (workInProgressHook = workInProgressHook.next = createHook()))
3261
- : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
3318
+ ? ((isReRender = !1),
3319
+ (workInProgressHook = workInProgressHook.next = createHook()))
3320
+ : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
3262
3321
  return workInProgressHook;
3263
3322
  }
3264
3323
  function getThenableStateAfterSuspending() {
@@ -3305,8 +3364,8 @@ function useReducer(reducer, initialArg, init) {
3305
3364
  ? initialArg()
3306
3365
  : initialArg
3307
3366
  : void 0 !== init
3308
- ? init(initialArg)
3309
- : initialArg;
3367
+ ? init(initialArg)
3368
+ : initialArg;
3310
3369
  workInProgressHook.memoizedState = reducer;
3311
3370
  reducer = workInProgressHook.queue = { last: null, dispatch: null };
3312
3371
  reducer = reducer.dispatch = dispatchAction.bind(
@@ -3527,7 +3586,8 @@ var currentResumableState = null,
3527
3586
  throw Error(formatProdErrorMessage(248));
3528
3587
  }
3529
3588
  },
3530
- prefix;
3589
+ prefix,
3590
+ suffix;
3531
3591
  function describeBuiltInComponentFrame(name) {
3532
3592
  if (void 0 === prefix)
3533
3593
  try {
@@ -3535,8 +3595,14 @@ function describeBuiltInComponentFrame(name) {
3535
3595
  } catch (x) {
3536
3596
  var match = x.stack.trim().match(/\n( *(at )?)/);
3537
3597
  prefix = (match && match[1]) || "";
3598
+ suffix =
3599
+ -1 < x.stack.indexOf("\n at")
3600
+ ? " (<anonymous>)"
3601
+ : -1 < x.stack.indexOf("@")
3602
+ ? "@unknown:0:0"
3603
+ : "";
3538
3604
  }
3539
- return "\n" + prefix + name;
3605
+ return "\n" + prefix + name + suffix;
3540
3606
  }
3541
3607
  var reentry = !1;
3542
3608
  function describeNativeComponentFrame(fn, construct) {
@@ -3544,62 +3610,64 @@ function describeNativeComponentFrame(fn, construct) {
3544
3610
  reentry = !0;
3545
3611
  var previousPrepareStackTrace = Error.prepareStackTrace;
3546
3612
  Error.prepareStackTrace = void 0;
3547
- var RunInRootFrame = {
3548
- DetermineComponentFrameRoot: function () {
3549
- try {
3550
- if (construct) {
3551
- var Fake = function () {
3552
- throw Error();
3553
- };
3554
- Object.defineProperty(Fake.prototype, "props", {
3555
- set: function () {
3613
+ try {
3614
+ var RunInRootFrame = {
3615
+ DetermineComponentFrameRoot: function () {
3616
+ try {
3617
+ if (construct) {
3618
+ var Fake = function () {
3556
3619
  throw Error();
3620
+ };
3621
+ Object.defineProperty(Fake.prototype, "props", {
3622
+ set: function () {
3623
+ throw Error();
3624
+ }
3625
+ });
3626
+ if ("object" === typeof Reflect && Reflect.construct) {
3627
+ try {
3628
+ Reflect.construct(Fake, []);
3629
+ } catch (x) {
3630
+ var control = x;
3631
+ }
3632
+ Reflect.construct(fn, [], Fake);
3633
+ } else {
3634
+ try {
3635
+ Fake.call();
3636
+ } catch (x$24) {
3637
+ control = x$24;
3638
+ }
3639
+ fn.call(Fake.prototype);
3557
3640
  }
3558
- });
3559
- if ("object" === typeof Reflect && Reflect.construct) {
3560
- try {
3561
- Reflect.construct(Fake, []);
3562
- } catch (x) {
3563
- var control = x;
3564
- }
3565
- Reflect.construct(fn, [], Fake);
3566
3641
  } else {
3567
3642
  try {
3568
- Fake.call();
3569
- } catch (x$24) {
3570
- control = x$24;
3643
+ throw Error();
3644
+ } catch (x$25) {
3645
+ control = x$25;
3571
3646
  }
3572
- fn.call(Fake.prototype);
3573
- }
3574
- } else {
3575
- try {
3576
- throw Error();
3577
- } catch (x$25) {
3578
- control = x$25;
3647
+ (Fake = fn()) &&
3648
+ "function" === typeof Fake.catch &&
3649
+ Fake.catch(function () {});
3579
3650
  }
3580
- (Fake = fn()) &&
3581
- "function" === typeof Fake.catch &&
3582
- Fake.catch(function () {});
3651
+ } catch (sample) {
3652
+ if (sample && control && "string" === typeof sample.stack)
3653
+ return [sample.stack, control.stack];
3583
3654
  }
3584
- } catch (sample) {
3585
- if (sample && control && "string" === typeof sample.stack)
3586
- return [sample.stack, control.stack];
3655
+ return [null, null];
3587
3656
  }
3588
- return [null, null];
3589
- }
3590
- };
3591
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
3592
- "DetermineComponentFrameRoot";
3593
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
3594
- RunInRootFrame.DetermineComponentFrameRoot,
3595
- "name"
3596
- );
3597
- namePropDescriptor &&
3598
- namePropDescriptor.configurable &&
3599
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", {
3600
- value: "DetermineComponentFrameRoot"
3601
- });
3602
- try {
3657
+ };
3658
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
3659
+ "DetermineComponentFrameRoot";
3660
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
3661
+ RunInRootFrame.DetermineComponentFrameRoot,
3662
+ "name"
3663
+ );
3664
+ namePropDescriptor &&
3665
+ namePropDescriptor.configurable &&
3666
+ Object.defineProperty(
3667
+ RunInRootFrame.DetermineComponentFrameRoot,
3668
+ "name",
3669
+ { value: "DetermineComponentFrameRoot" }
3670
+ );
3603
3671
  var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
3604
3672
  sampleStack = _RunInRootFrame$Deter[0],
3605
3673
  controlStack = _RunInRootFrame$Deter[1];
@@ -3670,13 +3738,78 @@ function describeNativeComponentFrame(fn, construct) {
3670
3738
  ? describeBuiltInComponentFrame(previousPrepareStackTrace)
3671
3739
  : "";
3672
3740
  }
3741
+ function describeComponentStackByType(type) {
3742
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3743
+ if ("function" === typeof type)
3744
+ return type.prototype && type.prototype.isReactComponent
3745
+ ? ((type = describeNativeComponentFrame(type, !0)), type)
3746
+ : describeNativeComponentFrame(type, !1);
3747
+ if ("object" === typeof type && null !== type) {
3748
+ switch (type.$$typeof) {
3749
+ case REACT_FORWARD_REF_TYPE:
3750
+ return describeNativeComponentFrame(type.render, !1);
3751
+ case REACT_MEMO_TYPE:
3752
+ return describeNativeComponentFrame(type.type, !1);
3753
+ case REACT_LAZY_TYPE:
3754
+ var lazyComponent = type,
3755
+ payload = lazyComponent._payload;
3756
+ lazyComponent = lazyComponent._init;
3757
+ try {
3758
+ type = lazyComponent(payload);
3759
+ } catch (x) {
3760
+ return describeBuiltInComponentFrame("Lazy");
3761
+ }
3762
+ return describeComponentStackByType(type);
3763
+ }
3764
+ if ("string" === typeof type.name)
3765
+ return (
3766
+ (payload = type.env),
3767
+ describeBuiltInComponentFrame(
3768
+ type.name + (payload ? " [" + payload + "]" : "")
3769
+ )
3770
+ );
3771
+ }
3772
+ switch (type) {
3773
+ case REACT_SUSPENSE_LIST_TYPE:
3774
+ return describeBuiltInComponentFrame("SuspenseList");
3775
+ case REACT_SUSPENSE_TYPE:
3776
+ return describeBuiltInComponentFrame("Suspense");
3777
+ }
3778
+ return "";
3779
+ }
3673
3780
  function defaultErrorHandler(error) {
3674
- console.error(error);
3781
+ if (
3782
+ "object" === typeof error &&
3783
+ null !== error &&
3784
+ "string" === typeof error.environmentName
3785
+ ) {
3786
+ var JSCompiler_inline_result = error.environmentName;
3787
+ error = [error].slice(0);
3788
+ "string" === typeof error[0]
3789
+ ? error.splice(
3790
+ 0,
3791
+ 1,
3792
+ "%c%s%c " + error[0],
3793
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
3794
+ " " + JSCompiler_inline_result + " ",
3795
+ ""
3796
+ )
3797
+ : error.splice(
3798
+ 0,
3799
+ 0,
3800
+ "%c%s%c ",
3801
+ "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
3802
+ " " + JSCompiler_inline_result + " ",
3803
+ ""
3804
+ );
3805
+ error.unshift(console);
3806
+ JSCompiler_inline_result = bind.apply(console.error, error);
3807
+ JSCompiler_inline_result();
3808
+ } else console.error(error);
3675
3809
  return null;
3676
3810
  }
3677
3811
  function noop() {}
3678
3812
  function RequestInstance(
3679
- children,
3680
3813
  resumableState,
3681
3814
  renderState,
3682
3815
  rootFormatContext,
@@ -3689,8 +3822,7 @@ function RequestInstance(
3689
3822
  onPostpone,
3690
3823
  formState
3691
3824
  ) {
3692
- var pingedTasks = [],
3693
- abortSet = new Set();
3825
+ var abortSet = new Set();
3694
3826
  this.destination = null;
3695
3827
  this.flushScheduled = !1;
3696
3828
  this.resumableState = resumableState;
@@ -3698,12 +3830,12 @@ function RequestInstance(
3698
3830
  this.rootFormatContext = rootFormatContext;
3699
3831
  this.progressiveChunkSize =
3700
3832
  void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3701
- this.status = 0;
3833
+ this.status = 10;
3702
3834
  this.fatalError = null;
3703
3835
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3704
3836
  this.completedRootSegment = null;
3705
3837
  this.abortableTasks = abortSet;
3706
- this.pingedTasks = pingedTasks;
3838
+ this.pingedTasks = [];
3707
3839
  this.clientRenderedBoundaries = [];
3708
3840
  this.completedBoundaries = [];
3709
3841
  this.partialBoundaries = [];
@@ -3715,35 +3847,64 @@ function RequestInstance(
3715
3847
  this.onShellError = void 0 === onShellError ? noop : onShellError;
3716
3848
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3717
3849
  this.formState = void 0 === formState ? null : formState;
3718
- resumableState = createPendingSegment(
3719
- this,
3850
+ }
3851
+ function createRequest(
3852
+ children,
3853
+ resumableState,
3854
+ renderState,
3855
+ rootFormatContext,
3856
+ progressiveChunkSize,
3857
+ onError,
3858
+ onAllReady,
3859
+ onShellReady,
3860
+ onShellError,
3861
+ onFatalError,
3862
+ onPostpone,
3863
+ formState
3864
+ ) {
3865
+ resumableState = new RequestInstance(
3866
+ resumableState,
3867
+ renderState,
3868
+ rootFormatContext,
3869
+ progressiveChunkSize,
3870
+ onError,
3871
+ onAllReady,
3872
+ onShellReady,
3873
+ onShellError,
3874
+ onFatalError,
3875
+ onPostpone,
3876
+ formState
3877
+ );
3878
+ renderState = createPendingSegment(
3879
+ resumableState,
3720
3880
  0,
3721
3881
  null,
3722
3882
  rootFormatContext,
3723
3883
  !1,
3724
3884
  !1
3725
3885
  );
3726
- resumableState.parentFlushed = !0;
3886
+ renderState.parentFlushed = !0;
3727
3887
  children = createRenderTask(
3728
- this,
3888
+ resumableState,
3729
3889
  null,
3730
3890
  children,
3731
3891
  -1,
3732
3892
  null,
3733
- resumableState,
3893
+ renderState,
3734
3894
  null,
3735
- abortSet,
3895
+ resumableState.abortableTasks,
3736
3896
  null,
3737
3897
  rootFormatContext,
3738
- emptyContextObject,
3739
3898
  null,
3740
3899
  emptyTreeContext,
3741
3900
  null,
3742
3901
  !1
3743
3902
  );
3744
- pingedTasks.push(children);
3903
+ pushComponentStack(children);
3904
+ resumableState.pingedTasks.push(children);
3905
+ return resumableState;
3745
3906
  }
3746
- function createRequest(
3907
+ function createPrerenderRequest(
3747
3908
  children,
3748
3909
  resumableState,
3749
3910
  renderState,
@@ -3754,10 +3915,9 @@ function createRequest(
3754
3915
  onShellReady,
3755
3916
  onShellError,
3756
3917
  onFatalError,
3757
- onPostpone,
3758
- formState
3918
+ onPostpone
3759
3919
  ) {
3760
- return new RequestInstance(
3920
+ children = createRequest(
3761
3921
  children,
3762
3922
  resumableState,
3763
3923
  renderState,
@@ -3769,17 +3929,27 @@ function createRequest(
3769
3929
  onShellError,
3770
3930
  onFatalError,
3771
3931
  onPostpone,
3772
- formState
3932
+ void 0
3773
3933
  );
3934
+ children.trackedPostpones = {
3935
+ workingMap: new Map(),
3936
+ rootNodes: [],
3937
+ rootSlots: null
3938
+ };
3939
+ return children;
3774
3940
  }
3775
3941
  var currentRequest = null;
3776
3942
  function pingTask(request, task) {
3777
3943
  request.pingedTasks.push(task);
3778
3944
  1 === request.pingedTasks.length &&
3779
3945
  ((request.flushScheduled = null !== request.destination),
3780
- scheduleWork(function () {
3781
- return performWork(request);
3782
- }));
3946
+ null !== request.trackedPostpones || 10 === request.status
3947
+ ? scheduleMicrotask(function () {
3948
+ return performWork(request);
3949
+ })
3950
+ : scheduleWork(function () {
3951
+ return performWork(request);
3952
+ }));
3783
3953
  }
3784
3954
  function createSuspenseBoundary(request, fallbackAbortableTasks) {
3785
3955
  return {
@@ -3808,7 +3978,6 @@ function createRenderTask(
3808
3978
  abortSet,
3809
3979
  keyPath,
3810
3980
  formatContext,
3811
- legacyContext,
3812
3981
  context,
3813
3982
  treeContext,
3814
3983
  componentStack,
@@ -3831,7 +4000,6 @@ function createRenderTask(
3831
4000
  abortSet: abortSet,
3832
4001
  keyPath: keyPath,
3833
4002
  formatContext: formatContext,
3834
- legacyContext: legacyContext,
3835
4003
  context: context,
3836
4004
  treeContext: treeContext,
3837
4005
  componentStack: componentStack,
@@ -3852,7 +4020,6 @@ function createReplayTask(
3852
4020
  abortSet,
3853
4021
  keyPath,
3854
4022
  formatContext,
3855
- legacyContext,
3856
4023
  context,
3857
4024
  treeContext,
3858
4025
  componentStack,
@@ -3876,7 +4043,6 @@ function createReplayTask(
3876
4043
  abortSet: abortSet,
3877
4044
  keyPath: keyPath,
3878
4045
  formatContext: formatContext,
3879
- legacyContext: legacyContext,
3880
4046
  context: context,
3881
4047
  treeContext: treeContext,
3882
4048
  componentStack: componentStack,
@@ -3907,47 +4073,54 @@ function createPendingSegment(
3907
4073
  textEmbedded: textEmbedded
3908
4074
  };
3909
4075
  }
3910
- function createBuiltInComponentStack(task, type) {
3911
- return { tag: 0, parent: task.componentStack, type: type };
4076
+ function pushComponentStack(task) {
4077
+ var node = task.node;
4078
+ if ("object" === typeof node && null !== node)
4079
+ switch (node.$$typeof) {
4080
+ case REACT_ELEMENT_TYPE:
4081
+ task.componentStack = { parent: task.componentStack, type: node.type };
4082
+ }
3912
4083
  }
3913
- function getThrownInfo(request, node) {
3914
- if (node && null !== request.trackedPostpones) {
3915
- try {
3916
- request = "";
3917
- do {
3918
- switch (node.tag) {
3919
- case 0:
3920
- request += describeBuiltInComponentFrame(node.type);
3921
- break;
3922
- case 1:
3923
- request += describeNativeComponentFrame(node.type, !1);
3924
- break;
3925
- case 2:
3926
- request += describeNativeComponentFrame(node.type, !0);
4084
+ function getThrownInfo(node$jscomp$0) {
4085
+ var errorInfo = {};
4086
+ node$jscomp$0 &&
4087
+ Object.defineProperty(errorInfo, "componentStack", {
4088
+ configurable: !0,
4089
+ enumerable: !0,
4090
+ get: function () {
4091
+ try {
4092
+ var info = "",
4093
+ node = node$jscomp$0;
4094
+ do
4095
+ (info += describeComponentStackByType(node.type)),
4096
+ (node = node.parent);
4097
+ while (node);
4098
+ var JSCompiler_inline_result = info;
4099
+ } catch (x) {
4100
+ JSCompiler_inline_result =
4101
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3927
4102
  }
3928
- node = node.parent;
3929
- } while (node);
3930
- var JSCompiler_temp = request;
3931
- } catch (x) {
3932
- JSCompiler_temp =
3933
- "\nError generating stack: " + x.message + "\n" + x.stack;
3934
- }
3935
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3936
- } else JSCompiler_temp = {};
3937
- return JSCompiler_temp;
4103
+ Object.defineProperty(errorInfo, "componentStack", {
4104
+ value: JSCompiler_inline_result
4105
+ });
4106
+ return JSCompiler_inline_result;
4107
+ }
4108
+ });
4109
+ return errorInfo;
3938
4110
  }
3939
4111
  function logRecoverableError(request, error, errorInfo) {
3940
- request = request.onError(error, errorInfo);
3941
- if (null == request || "string" === typeof request) return request;
4112
+ request = request.onError;
4113
+ error = request(error, errorInfo);
4114
+ if (null == error || "string" === typeof error) return error;
3942
4115
  }
3943
4116
  function fatalError(request, error) {
3944
- var onShellError = request.onShellError;
3945
- onShellError(error);
3946
- onShellError = request.onFatalError;
4117
+ var onShellError = request.onShellError,
4118
+ onFatalError = request.onFatalError;
3947
4119
  onShellError(error);
4120
+ onFatalError(error);
3948
4121
  null !== request.destination
3949
- ? ((request.status = 2), closeWithError(request.destination, error))
3950
- : ((request.status = 1), (request.fatalError = error));
4122
+ ? ((request.status = 14), closeWithError(request.destination, error))
4123
+ : ((request.status = 13), (request.fatalError = error));
3951
4124
  }
3952
4125
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
3953
4126
  var prevThenableState = task.thenableState;
@@ -4000,171 +4173,148 @@ function finishFunctionComponent(
4000
4173
  renderNode(request, task, children, -1),
4001
4174
  (task.treeContext = keyPath))
4002
4175
  : didEmitActionStateMarkers
4003
- ? renderNode(request, task, children, -1)
4004
- : renderNodeDestructive(request, task, children, -1);
4176
+ ? renderNode(request, task, children, -1)
4177
+ : renderNodeDestructive(request, task, children, -1);
4005
4178
  task.keyPath = actionStateCount;
4006
4179
  }
4007
4180
  function renderElement(request, task, keyPath, type, props, ref) {
4008
4181
  if ("function" === typeof type)
4009
4182
  if (type.prototype && type.prototype.isReactComponent) {
4010
- var JSCompiler_inline_result = props;
4183
+ var newProps = props;
4011
4184
  if ("ref" in props) {
4012
- JSCompiler_inline_result = {};
4185
+ newProps = {};
4013
4186
  for (var propName in props)
4014
- "ref" !== propName &&
4015
- (JSCompiler_inline_result[propName] = props[propName]);
4187
+ "ref" !== propName && (newProps[propName] = props[propName]);
4016
4188
  }
4017
4189
  var defaultProps = type.defaultProps;
4018
4190
  if (defaultProps) {
4019
- JSCompiler_inline_result === props &&
4020
- (JSCompiler_inline_result = assign(
4021
- {},
4022
- JSCompiler_inline_result,
4023
- props
4024
- ));
4025
- for (var propName$31 in defaultProps)
4026
- void 0 === JSCompiler_inline_result[propName$31] &&
4027
- (JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
4191
+ newProps === props && (newProps = assign({}, newProps, props));
4192
+ for (var propName$33 in defaultProps)
4193
+ void 0 === newProps[propName$33] &&
4194
+ (newProps[propName$33] = defaultProps[propName$33]);
4028
4195
  }
4029
- props = task.componentStack;
4030
- task.componentStack = { tag: 2, parent: task.componentStack, type: type };
4031
- defaultProps = emptyContextObject;
4196
+ props = newProps;
4197
+ newProps = emptyContextObject;
4198
+ defaultProps = type.contextType;
4199
+ "object" === typeof defaultProps &&
4200
+ null !== defaultProps &&
4201
+ (newProps = defaultProps._currentValue);
4202
+ newProps = new type(props, newProps);
4203
+ var initialState = void 0 !== newProps.state ? newProps.state : null;
4204
+ newProps.updater = classComponentUpdater;
4205
+ newProps.props = props;
4206
+ newProps.state = initialState;
4207
+ defaultProps = { queue: [], replace: !1 };
4208
+ newProps._reactInternals = defaultProps;
4032
4209
  ref = type.contextType;
4033
- "object" === typeof ref &&
4034
- null !== ref &&
4035
- (defaultProps = ref._currentValue);
4036
- defaultProps = new type(JSCompiler_inline_result, defaultProps);
4037
- propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
4038
- defaultProps.updater = classComponentUpdater;
4039
- defaultProps.props = JSCompiler_inline_result;
4040
- defaultProps.state = propName$31;
4041
- ref = { queue: [], replace: !1 };
4042
- defaultProps._reactInternals = ref;
4043
- var contextType = type.contextType;
4044
- defaultProps.context =
4045
- "object" === typeof contextType && null !== contextType
4046
- ? contextType._currentValue
4210
+ newProps.context =
4211
+ "object" === typeof ref && null !== ref
4212
+ ? ref._currentValue
4047
4213
  : emptyContextObject;
4048
- contextType = type.getDerivedStateFromProps;
4049
- "function" === typeof contextType &&
4050
- ((contextType = contextType(JSCompiler_inline_result, propName$31)),
4051
- (propName$31 =
4052
- null === contextType || void 0 === contextType
4053
- ? propName$31
4054
- : assign({}, propName$31, contextType)),
4055
- (defaultProps.state = propName$31));
4214
+ ref = type.getDerivedStateFromProps;
4215
+ "function" === typeof ref &&
4216
+ ((ref = ref(props, initialState)),
4217
+ (initialState =
4218
+ null === ref || void 0 === ref
4219
+ ? initialState
4220
+ : assign({}, initialState, ref)),
4221
+ (newProps.state = initialState));
4056
4222
  if (
4057
4223
  "function" !== typeof type.getDerivedStateFromProps &&
4058
- "function" !== typeof defaultProps.getSnapshotBeforeUpdate &&
4059
- ("function" === typeof defaultProps.UNSAFE_componentWillMount ||
4060
- "function" === typeof defaultProps.componentWillMount)
4224
+ "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4225
+ ("function" === typeof newProps.UNSAFE_componentWillMount ||
4226
+ "function" === typeof newProps.componentWillMount)
4061
4227
  )
4062
4228
  if (
4063
- ((type = defaultProps.state),
4064
- "function" === typeof defaultProps.componentWillMount &&
4065
- defaultProps.componentWillMount(),
4066
- "function" === typeof defaultProps.UNSAFE_componentWillMount &&
4067
- defaultProps.UNSAFE_componentWillMount(),
4068
- type !== defaultProps.state &&
4229
+ ((type = newProps.state),
4230
+ "function" === typeof newProps.componentWillMount &&
4231
+ newProps.componentWillMount(),
4232
+ "function" === typeof newProps.UNSAFE_componentWillMount &&
4233
+ newProps.UNSAFE_componentWillMount(),
4234
+ type !== newProps.state &&
4069
4235
  classComponentUpdater.enqueueReplaceState(
4070
- defaultProps,
4071
- defaultProps.state,
4236
+ newProps,
4237
+ newProps.state,
4072
4238
  null
4073
4239
  ),
4074
- null !== ref.queue && 0 < ref.queue.length)
4240
+ null !== defaultProps.queue && 0 < defaultProps.queue.length)
4075
4241
  )
4076
4242
  if (
4077
- ((type = ref.queue),
4078
- (contextType = ref.replace),
4079
- (ref.queue = null),
4080
- (ref.replace = !1),
4081
- contextType && 1 === type.length)
4243
+ ((type = defaultProps.queue),
4244
+ (ref = defaultProps.replace),
4245
+ (defaultProps.queue = null),
4246
+ (defaultProps.replace = !1),
4247
+ ref && 1 === type.length)
4082
4248
  )
4083
- defaultProps.state = type[0];
4249
+ newProps.state = type[0];
4084
4250
  else {
4085
- ref = contextType ? type[0] : defaultProps.state;
4086
- propName$31 = !0;
4087
- for (
4088
- contextType = contextType ? 1 : 0;
4089
- contextType < type.length;
4090
- contextType++
4091
- )
4092
- (propName = type[contextType]),
4093
- (propName =
4094
- "function" === typeof propName
4095
- ? propName.call(
4096
- defaultProps,
4097
- ref,
4098
- JSCompiler_inline_result,
4099
- void 0
4100
- )
4101
- : propName),
4102
- null != propName &&
4103
- (propName$31
4104
- ? ((propName$31 = !1), (ref = assign({}, ref, propName)))
4105
- : assign(ref, propName));
4106
- defaultProps.state = ref;
4251
+ defaultProps = ref ? type[0] : newProps.state;
4252
+ initialState = !0;
4253
+ for (ref = ref ? 1 : 0; ref < type.length; ref++)
4254
+ (propName$33 = type[ref]),
4255
+ (propName$33 =
4256
+ "function" === typeof propName$33
4257
+ ? propName$33.call(newProps, defaultProps, props, void 0)
4258
+ : propName$33),
4259
+ null != propName$33 &&
4260
+ (initialState
4261
+ ? ((initialState = !1),
4262
+ (defaultProps = assign({}, defaultProps, propName$33)))
4263
+ : assign(defaultProps, propName$33));
4264
+ newProps.state = defaultProps;
4107
4265
  }
4108
- else ref.queue = null;
4109
- type = defaultProps.render();
4110
- JSCompiler_inline_result = task.keyPath;
4266
+ else defaultProps.queue = null;
4267
+ type = newProps.render();
4268
+ if (12 === request.status) throw null;
4269
+ props = task.keyPath;
4111
4270
  task.keyPath = keyPath;
4112
4271
  renderNodeDestructive(request, task, type, -1);
4113
- task.keyPath = JSCompiler_inline_result;
4114
- task.componentStack = props;
4115
- } else
4116
- (JSCompiler_inline_result = task.componentStack),
4117
- (task.componentStack = {
4118
- tag: 1,
4119
- parent: task.componentStack,
4120
- type: type
4121
- }),
4122
- (type = renderWithHooks(request, task, keyPath, type, props, void 0)),
4123
- finishFunctionComponent(
4124
- request,
4125
- task,
4126
- keyPath,
4127
- type,
4128
- 0 !== localIdCounter,
4129
- actionStateCounter,
4130
- actionStateMatchingIndex
4131
- ),
4132
- (task.componentStack = JSCompiler_inline_result);
4133
- else if ("string" === typeof type) {
4134
- JSCompiler_inline_result = task.componentStack;
4135
- task.componentStack = createBuiltInComponentStack(task, type);
4136
- defaultProps = task.blockedSegment;
4137
- if (null === defaultProps)
4138
- (defaultProps = props.children),
4139
- (ref = task.formatContext),
4140
- (propName$31 = task.keyPath),
4141
- (task.formatContext = getChildFormatContext(ref, type, props)),
4272
+ task.keyPath = props;
4273
+ } else {
4274
+ type = renderWithHooks(request, task, keyPath, type, props, void 0);
4275
+ if (12 === request.status) throw null;
4276
+ finishFunctionComponent(
4277
+ request,
4278
+ task,
4279
+ keyPath,
4280
+ type,
4281
+ 0 !== localIdCounter,
4282
+ actionStateCounter,
4283
+ actionStateMatchingIndex
4284
+ );
4285
+ }
4286
+ else if ("string" === typeof type)
4287
+ if (((newProps = task.blockedSegment), null === newProps))
4288
+ (newProps = props.children),
4289
+ (defaultProps = task.formatContext),
4290
+ (initialState = task.keyPath),
4291
+ (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4142
4292
  (task.keyPath = keyPath),
4143
- renderNode(request, task, defaultProps, -1),
4144
- (task.formatContext = ref),
4145
- (task.keyPath = propName$31);
4293
+ renderNode(request, task, newProps, -1),
4294
+ (task.formatContext = defaultProps),
4295
+ (task.keyPath = initialState);
4146
4296
  else {
4147
- propName$31 = pushStartInstance(
4148
- defaultProps.chunks,
4297
+ initialState = pushStartInstance(
4298
+ newProps.chunks,
4149
4299
  type,
4150
4300
  props,
4151
4301
  request.resumableState,
4152
4302
  request.renderState,
4153
4303
  task.hoistableState,
4154
4304
  task.formatContext,
4155
- defaultProps.lastPushedText,
4305
+ newProps.lastPushedText,
4156
4306
  task.isFallback
4157
4307
  );
4158
- defaultProps.lastPushedText = !1;
4159
- ref = task.formatContext;
4160
- contextType = task.keyPath;
4161
- task.formatContext = getChildFormatContext(ref, type, props);
4308
+ newProps.lastPushedText = !1;
4309
+ defaultProps = task.formatContext;
4310
+ ref = task.keyPath;
4311
+ task.formatContext = getChildFormatContext(defaultProps, type, props);
4162
4312
  task.keyPath = keyPath;
4163
- renderNode(request, task, propName$31, -1);
4164
- task.formatContext = ref;
4165
- task.keyPath = contextType;
4313
+ renderNode(request, task, initialState, -1);
4314
+ task.formatContext = defaultProps;
4315
+ task.keyPath = ref;
4166
4316
  a: {
4167
- keyPath = defaultProps.chunks;
4317
+ task = newProps.chunks;
4168
4318
  request = request.resumableState;
4169
4319
  switch (type) {
4170
4320
  case "title":
@@ -4187,23 +4337,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
4187
4337
  case "wbr":
4188
4338
  break a;
4189
4339
  case "body":
4190
- if (1 >= ref.insertionMode) {
4340
+ if (1 >= defaultProps.insertionMode) {
4191
4341
  request.hasBody = !0;
4192
4342
  break a;
4193
4343
  }
4194
4344
  break;
4195
4345
  case "html":
4196
- if (0 === ref.insertionMode) {
4346
+ if (0 === defaultProps.insertionMode) {
4197
4347
  request.hasHtml = !0;
4198
4348
  break a;
4199
4349
  }
4200
4350
  }
4201
- keyPath.push(endChunkForTag(type));
4351
+ task.push(endChunkForTag(type));
4202
4352
  }
4203
- defaultProps.lastPushedText = !1;
4353
+ newProps.lastPushedText = !1;
4204
4354
  }
4205
- task.componentStack = JSCompiler_inline_result;
4206
- } else {
4355
+ else {
4207
4356
  switch (type) {
4208
4357
  case REACT_LEGACY_HIDDEN_TYPE:
4209
4358
  case REACT_DEBUG_TRACING_MODE_TYPE:
@@ -4223,13 +4372,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4223
4372
  (task.keyPath = type));
4224
4373
  return;
4225
4374
  case REACT_SUSPENSE_LIST_TYPE:
4226
- type = task.componentStack;
4227
- task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
4228
- JSCompiler_inline_result = task.keyPath;
4375
+ type = task.keyPath;
4229
4376
  task.keyPath = keyPath;
4230
4377
  renderNodeDestructive(request, task, props.children, -1);
4231
- task.keyPath = JSCompiler_inline_result;
4232
- task.componentStack = type;
4378
+ task.keyPath = type;
4233
4379
  return;
4234
4380
  case REACT_SCOPE_TYPE:
4235
4381
  throw Error(formatProdErrorMessage(343));
@@ -4244,31 +4390,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
4244
4390
  task.keyPath = type;
4245
4391
  }
4246
4392
  } else {
4247
- var previousComponentStack = task.componentStack;
4248
- type = task.componentStack = createBuiltInComponentStack(
4249
- task,
4250
- "Suspense"
4251
- );
4252
- var prevKeyPath = task.keyPath;
4253
- ref = task.blockedBoundary;
4254
- var parentHoistableState = task.hoistableState,
4255
- parentSegment = task.blockedSegment;
4256
- propName$31 = props.fallback;
4257
- var content = props.children;
4258
- props = new Set();
4259
- contextType = createSuspenseBoundary(request, props);
4393
+ type = task.keyPath;
4394
+ var parentBoundary = task.blockedBoundary,
4395
+ parentHoistableState = task.hoistableState;
4396
+ ref = task.blockedSegment;
4397
+ propName$33 = props.fallback;
4398
+ props = props.children;
4399
+ var fallbackAbortSet = new Set();
4400
+ propName = createSuspenseBoundary(request, fallbackAbortSet);
4260
4401
  null !== request.trackedPostpones &&
4261
- (contextType.trackedContentKeyPath = keyPath);
4262
- propName = createPendingSegment(
4402
+ (propName.trackedContentKeyPath = keyPath);
4403
+ var boundarySegment = createPendingSegment(
4263
4404
  request,
4264
- parentSegment.chunks.length,
4265
- contextType,
4405
+ ref.chunks.length,
4406
+ propName,
4266
4407
  task.formatContext,
4267
4408
  !1,
4268
4409
  !1
4269
4410
  );
4270
- parentSegment.children.push(propName);
4271
- parentSegment.lastPushedText = !1;
4411
+ ref.children.push(boundarySegment);
4412
+ ref.lastPushedText = !1;
4272
4413
  var contentRootSegment = createPendingSegment(
4273
4414
  request,
4274
4415
  0,
@@ -4278,107 +4419,122 @@ function renderElement(request, task, keyPath, type, props, ref) {
4278
4419
  !1
4279
4420
  );
4280
4421
  contentRootSegment.parentFlushed = !0;
4281
- task.blockedBoundary = contextType;
4282
- task.hoistableState = contextType.contentState;
4283
- task.blockedSegment = contentRootSegment;
4284
- task.keyPath = keyPath;
4285
- try {
4286
- if (
4287
- (renderNode(request, task, content, -1),
4288
- contentRootSegment.lastPushedText &&
4289
- contentRootSegment.textEmbedded &&
4290
- contentRootSegment.chunks.push(textSeparator),
4291
- (contentRootSegment.status = 1),
4292
- queueCompletedSegment(contextType, contentRootSegment),
4293
- 0 === contextType.pendingTasks && 0 === contextType.status)
4294
- ) {
4295
- contextType.status = 1;
4296
- task.componentStack = previousComponentStack;
4297
- break a;
4422
+ if (null !== request.trackedPostpones) {
4423
+ newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4424
+ defaultProps = [newProps[1], newProps[2], [], null];
4425
+ request.trackedPostpones.workingMap.set(newProps, defaultProps);
4426
+ propName.trackedFallbackNode = defaultProps;
4427
+ task.blockedSegment = boundarySegment;
4428
+ task.keyPath = newProps;
4429
+ boundarySegment.status = 6;
4430
+ try {
4431
+ renderNode(request, task, propName$33, -1),
4432
+ boundarySegment.lastPushedText &&
4433
+ boundarySegment.textEmbedded &&
4434
+ boundarySegment.chunks.push(textSeparator),
4435
+ (boundarySegment.status = 1);
4436
+ } catch (thrownValue) {
4437
+ throw (
4438
+ ((boundarySegment.status = 12 === request.status ? 3 : 4),
4439
+ thrownValue)
4440
+ );
4441
+ } finally {
4442
+ (task.blockedSegment = ref), (task.keyPath = type);
4298
4443
  }
4299
- } catch (error) {
4300
- (contentRootSegment.status = 4),
4301
- (contextType.status = 4),
4302
- (JSCompiler_inline_result = getThrownInfo(
4303
- request,
4304
- task.componentStack
4305
- )),
4306
- (defaultProps = logRecoverableError(
4307
- request,
4308
- error,
4309
- JSCompiler_inline_result
4310
- )),
4311
- (contextType.errorDigest = defaultProps),
4312
- untrackBoundary(request, contextType);
4313
- } finally {
4314
- (task.blockedBoundary = ref),
4315
- (task.hoistableState = parentHoistableState),
4316
- (task.blockedSegment = parentSegment),
4317
- (task.keyPath = prevKeyPath),
4318
- (task.componentStack = previousComponentStack);
4444
+ task = createRenderTask(
4445
+ request,
4446
+ null,
4447
+ props,
4448
+ -1,
4449
+ propName,
4450
+ contentRootSegment,
4451
+ propName.contentState,
4452
+ task.abortSet,
4453
+ keyPath,
4454
+ task.formatContext,
4455
+ task.context,
4456
+ task.treeContext,
4457
+ task.componentStack,
4458
+ task.isFallback
4459
+ );
4460
+ pushComponentStack(task);
4461
+ request.pingedTasks.push(task);
4462
+ } else {
4463
+ task.blockedBoundary = propName;
4464
+ task.hoistableState = propName.contentState;
4465
+ task.blockedSegment = contentRootSegment;
4466
+ task.keyPath = keyPath;
4467
+ contentRootSegment.status = 6;
4468
+ try {
4469
+ if (
4470
+ (renderNode(request, task, props, -1),
4471
+ contentRootSegment.lastPushedText &&
4472
+ contentRootSegment.textEmbedded &&
4473
+ contentRootSegment.chunks.push(textSeparator),
4474
+ (contentRootSegment.status = 1),
4475
+ queueCompletedSegment(propName, contentRootSegment),
4476
+ 0 === propName.pendingTasks && 0 === propName.status)
4477
+ ) {
4478
+ propName.status = 1;
4479
+ break a;
4480
+ }
4481
+ } catch (thrownValue$28) {
4482
+ (propName.status = 4),
4483
+ 12 === request.status
4484
+ ? ((contentRootSegment.status = 3),
4485
+ (newProps = request.fatalError))
4486
+ : ((contentRootSegment.status = 4),
4487
+ (newProps = thrownValue$28)),
4488
+ (defaultProps = getThrownInfo(task.componentStack)),
4489
+ (initialState = logRecoverableError(
4490
+ request,
4491
+ newProps,
4492
+ defaultProps
4493
+ )),
4494
+ (propName.errorDigest = initialState),
4495
+ untrackBoundary(request, propName);
4496
+ } finally {
4497
+ (task.blockedBoundary = parentBoundary),
4498
+ (task.hoistableState = parentHoistableState),
4499
+ (task.blockedSegment = ref),
4500
+ (task.keyPath = type);
4501
+ }
4502
+ task = createRenderTask(
4503
+ request,
4504
+ null,
4505
+ propName$33,
4506
+ -1,
4507
+ parentBoundary,
4508
+ boundarySegment,
4509
+ propName.fallbackState,
4510
+ fallbackAbortSet,
4511
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
4512
+ task.formatContext,
4513
+ task.context,
4514
+ task.treeContext,
4515
+ task.componentStack,
4516
+ !0
4517
+ );
4518
+ pushComponentStack(task);
4519
+ request.pingedTasks.push(task);
4319
4520
  }
4320
- JSCompiler_inline_result = [
4321
- keyPath[0],
4322
- "Suspense Fallback",
4323
- keyPath[2]
4324
- ];
4325
- defaultProps = request.trackedPostpones;
4326
- null !== defaultProps &&
4327
- ((previousComponentStack = [
4328
- JSCompiler_inline_result[1],
4329
- JSCompiler_inline_result[2],
4330
- [],
4331
- null
4332
- ]),
4333
- defaultProps.workingMap.set(
4334
- JSCompiler_inline_result,
4335
- previousComponentStack
4336
- ),
4337
- 5 === contextType.status
4338
- ? (defaultProps.workingMap.get(keyPath)[4] =
4339
- previousComponentStack)
4340
- : (contextType.trackedFallbackNode = previousComponentStack));
4341
- task = createRenderTask(
4342
- request,
4343
- null,
4344
- propName$31,
4345
- -1,
4346
- ref,
4347
- propName,
4348
- contextType.fallbackState,
4349
- props,
4350
- JSCompiler_inline_result,
4351
- task.formatContext,
4352
- task.legacyContext,
4353
- task.context,
4354
- task.treeContext,
4355
- type,
4356
- !0
4357
- );
4358
- request.pingedTasks.push(task);
4359
4521
  }
4360
4522
  return;
4361
4523
  }
4362
4524
  if ("object" === typeof type && null !== type)
4363
4525
  switch (type.$$typeof) {
4364
4526
  case REACT_FORWARD_REF_TYPE:
4365
- JSCompiler_inline_result = task.componentStack;
4366
- task.componentStack = {
4367
- tag: 1,
4368
- parent: task.componentStack,
4369
- type: type.render
4370
- };
4371
4527
  if ("ref" in props)
4372
- for (contextType in ((defaultProps = {}), props))
4373
- "ref" !== contextType &&
4374
- (defaultProps[contextType] = props[contextType]);
4375
- else defaultProps = props;
4528
+ for (boundarySegment in ((newProps = {}), props))
4529
+ "ref" !== boundarySegment &&
4530
+ (newProps[boundarySegment] = props[boundarySegment]);
4531
+ else newProps = props;
4376
4532
  type = renderWithHooks(
4377
4533
  request,
4378
4534
  task,
4379
4535
  keyPath,
4380
4536
  type.render,
4381
- defaultProps,
4537
+ newProps,
4382
4538
  ref
4383
4539
  );
4384
4540
  finishFunctionComponent(
@@ -4390,7 +4546,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4390
4546
  actionStateCounter,
4391
4547
  actionStateMatchingIndex
4392
4548
  );
4393
- task.componentStack = JSCompiler_inline_result;
4394
4549
  return;
4395
4550
  case REACT_MEMO_TYPE:
4396
4551
  renderElement(request, task, keyPath, type.type, props, ref);
@@ -4398,16 +4553,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
4398
4553
  case REACT_PROVIDER_TYPE:
4399
4554
  case REACT_CONTEXT_TYPE:
4400
4555
  defaultProps = props.children;
4401
- JSCompiler_inline_result = task.keyPath;
4556
+ newProps = task.keyPath;
4402
4557
  props = props.value;
4403
- ref = type._currentValue;
4558
+ initialState = type._currentValue;
4404
4559
  type._currentValue = props;
4405
- propName$31 = currentActiveSnapshot;
4560
+ ref = currentActiveSnapshot;
4406
4561
  currentActiveSnapshot = type = {
4407
- parent: propName$31,
4408
- depth: null === propName$31 ? 0 : propName$31.depth + 1,
4562
+ parent: ref,
4563
+ depth: null === ref ? 0 : ref.depth + 1,
4409
4564
  context: type,
4410
- parentValue: ref,
4565
+ parentValue: initialState,
4411
4566
  value: props
4412
4567
  };
4413
4568
  task.context = type;
@@ -4418,7 +4573,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4418
4573
  request.context._currentValue = request.parentValue;
4419
4574
  request = currentActiveSnapshot = request.parent;
4420
4575
  task.context = request;
4421
- task.keyPath = JSCompiler_inline_result;
4576
+ task.keyPath = newProps;
4422
4577
  return;
4423
4578
  case REACT_CONSUMER_TYPE:
4424
4579
  props = props.children;
@@ -4429,12 +4584,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4429
4584
  task.keyPath = props;
4430
4585
  return;
4431
4586
  case REACT_LAZY_TYPE:
4432
- JSCompiler_inline_result = task.componentStack;
4433
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4434
- defaultProps = type._init;
4435
- type = defaultProps(type._payload);
4436
- renderElement(request, task, keyPath, type, props, void 0);
4437
- task.componentStack = JSCompiler_inline_result;
4587
+ newProps = type._init;
4588
+ type = newProps(type._payload);
4589
+ if (12 === request.status) throw null;
4590
+ renderElement(request, task, keyPath, type, props, ref);
4438
4591
  return;
4439
4592
  }
4440
4593
  throw Error(
@@ -4469,23 +4622,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
4469
4622
  (task.replay = prevReplay), (task.blockedSegment = null);
4470
4623
  }
4471
4624
  }
4472
- function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4473
- if (null !== task.replay && "number" === typeof task.replay.slots)
4474
- resumeNode(request, task, task.replay.slots, node$jscomp$0, childIndex);
4475
- else if (
4476
- ((task.node = node$jscomp$0),
4477
- (task.childIndex = childIndex),
4478
- null !== node$jscomp$0)
4479
- ) {
4480
- if ("object" === typeof node$jscomp$0) {
4481
- switch (node$jscomp$0.$$typeof) {
4625
+ function renderNodeDestructive(request, task, node, childIndex) {
4626
+ null !== task.replay && "number" === typeof task.replay.slots
4627
+ ? resumeNode(request, task, task.replay.slots, node, childIndex)
4628
+ : ((task.node = node),
4629
+ (task.childIndex = childIndex),
4630
+ (node = task.componentStack),
4631
+ pushComponentStack(task),
4632
+ retryNode(request, task),
4633
+ (task.componentStack = node));
4634
+ }
4635
+ function retryNode(request, task) {
4636
+ var node = task.node,
4637
+ childIndex = task.childIndex;
4638
+ if (null !== node) {
4639
+ if ("object" === typeof node) {
4640
+ switch (node.$$typeof) {
4482
4641
  case REACT_ELEMENT_TYPE:
4483
- var type = node$jscomp$0.type,
4484
- key = node$jscomp$0.key,
4485
- props = node$jscomp$0.props;
4486
- node$jscomp$0 = props.ref;
4487
- var ref = void 0 !== node$jscomp$0 ? node$jscomp$0 : null;
4488
- var name = getComponentNameFromType(type),
4642
+ var type = node.type,
4643
+ key = node.key,
4644
+ props = node.props;
4645
+ node = props.ref;
4646
+ var ref = void 0 !== node ? node : null,
4647
+ name = getComponentNameFromType(type),
4489
4648
  keyOrIndex =
4490
4649
  null == key ? (-1 === childIndex ? 0 : childIndex) : key;
4491
4650
  key = [task.keyPath, name, keyOrIndex];
@@ -4493,18 +4652,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4493
4652
  a: {
4494
4653
  var replay = task.replay;
4495
4654
  childIndex = replay.nodes;
4496
- for (
4497
- node$jscomp$0 = 0;
4498
- node$jscomp$0 < childIndex.length;
4499
- node$jscomp$0++
4500
- ) {
4501
- var node = childIndex[node$jscomp$0];
4502
- if (keyOrIndex === node[1]) {
4503
- if (4 === node.length) {
4504
- if (null !== name && name !== node[0])
4505
- throw Error(formatProdErrorMessage(490, node[0], name));
4506
- var childNodes = node[2];
4507
- name = node[3];
4655
+ for (node = 0; node < childIndex.length; node++) {
4656
+ var node$jscomp$0 = childIndex[node];
4657
+ if (keyOrIndex === node$jscomp$0[1]) {
4658
+ if (4 === node$jscomp$0.length) {
4659
+ if (null !== name && name !== node$jscomp$0[0])
4660
+ throw Error(
4661
+ formatProdErrorMessage(490, node$jscomp$0[0], name)
4662
+ );
4663
+ var childNodes = node$jscomp$0[2];
4664
+ name = node$jscomp$0[3];
4508
4665
  keyOrIndex = task.node;
4509
4666
  task.replay = {
4510
4667
  nodes: childNodes,
@@ -4531,14 +4688,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4531
4688
  x)
4532
4689
  );
4533
4690
  task.replay.pendingTasks--;
4534
- props = getThrownInfo(request, task.componentStack);
4535
- key = request;
4536
- request = task.blockedBoundary;
4691
+ props = getThrownInfo(task.componentStack);
4692
+ key = task.blockedBoundary;
4537
4693
  type = x;
4538
- props = logRecoverableError(key, type, props);
4694
+ props = logRecoverableError(request, type, props);
4539
4695
  abortRemainingReplayNodes(
4540
- key,
4541
4696
  request,
4697
+ key,
4542
4698
  childNodes,
4543
4699
  name,
4544
4700
  type,
@@ -4557,15 +4713,14 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4557
4713
  );
4558
4714
  b: {
4559
4715
  replay = void 0;
4560
- type = node[5];
4561
- ref = node[2];
4562
- name = node[3];
4563
- keyOrIndex = null === node[4] ? [] : node[4][2];
4564
- node = null === node[4] ? null : node[4][3];
4565
- var previousComponentStack = task.componentStack,
4566
- suspenseComponentStack = (task.componentStack =
4567
- createBuiltInComponentStack(task, "Suspense")),
4568
- prevKeyPath = task.keyPath,
4716
+ type = node$jscomp$0[5];
4717
+ ref = node$jscomp$0[2];
4718
+ name = node$jscomp$0[3];
4719
+ keyOrIndex =
4720
+ null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4721
+ node$jscomp$0 =
4722
+ null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4723
+ var prevKeyPath = task.keyPath,
4569
4724
  previousReplaySet = task.replay,
4570
4725
  parentBoundary = task.blockedBoundary,
4571
4726
  parentHoistableState = task.hoistableState,
@@ -4580,6 +4735,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4580
4735
  resumedBoundary.rootSegmentID = type;
4581
4736
  task.blockedBoundary = resumedBoundary;
4582
4737
  task.hoistableState = resumedBoundary.contentState;
4738
+ task.keyPath = key;
4583
4739
  task.replay = {
4584
4740
  nodes: ref,
4585
4741
  slots: name,
@@ -4603,10 +4759,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4603
4759
  }
4604
4760
  } catch (error) {
4605
4761
  (resumedBoundary.status = 4),
4606
- (childNodes = getThrownInfo(
4607
- request,
4608
- task.componentStack
4609
- )),
4762
+ (childNodes = getThrownInfo(task.componentStack)),
4610
4763
  (replay = logRecoverableError(
4611
4764
  request,
4612
4765
  error,
@@ -4621,13 +4774,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4621
4774
  (task.blockedBoundary = parentBoundary),
4622
4775
  (task.hoistableState = parentHoistableState),
4623
4776
  (task.replay = previousReplaySet),
4624
- (task.keyPath = prevKeyPath),
4625
- (task.componentStack = previousComponentStack);
4777
+ (task.keyPath = prevKeyPath);
4626
4778
  }
4627
4779
  task = createReplayTask(
4628
4780
  request,
4629
4781
  null,
4630
- { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
4782
+ {
4783
+ nodes: keyOrIndex,
4784
+ slots: node$jscomp$0,
4785
+ pendingTasks: 0
4786
+ },
4631
4787
  props,
4632
4788
  -1,
4633
4789
  parentBoundary,
@@ -4635,16 +4791,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4635
4791
  fallbackAbortSet,
4636
4792
  [key[0], "Suspense Fallback", key[2]],
4637
4793
  task.formatContext,
4638
- task.legacyContext,
4639
4794
  task.context,
4640
4795
  task.treeContext,
4641
- suspenseComponentStack,
4796
+ task.componentStack,
4642
4797
  !0
4643
4798
  );
4799
+ pushComponentStack(task);
4644
4800
  request.pingedTasks.push(task);
4645
4801
  }
4646
4802
  }
4647
- childIndex.splice(node$jscomp$0, 1);
4803
+ childIndex.splice(node, 1);
4648
4804
  break a;
4649
4805
  }
4650
4806
  }
@@ -4654,81 +4810,69 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4654
4810
  case REACT_PORTAL_TYPE:
4655
4811
  throw Error(formatProdErrorMessage(257));
4656
4812
  case REACT_LAZY_TYPE:
4657
- childNodes = task.componentStack;
4658
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4659
- props = node$jscomp$0._init;
4660
- node$jscomp$0 = props(node$jscomp$0._payload);
4661
- task.componentStack = childNodes;
4662
- renderNodeDestructive(request, task, node$jscomp$0, childIndex);
4813
+ childNodes = node._init;
4814
+ node = childNodes(node._payload);
4815
+ if (12 === request.status) throw null;
4816
+ renderNodeDestructive(request, task, node, childIndex);
4663
4817
  return;
4664
4818
  }
4665
- if (isArrayImpl(node$jscomp$0)) {
4666
- renderChildrenArray(request, task, node$jscomp$0, childIndex);
4819
+ if (isArrayImpl(node)) {
4820
+ renderChildrenArray(request, task, node, childIndex);
4667
4821
  return;
4668
4822
  }
4669
- null === node$jscomp$0 || "object" !== typeof node$jscomp$0
4823
+ null === node || "object" !== typeof node
4670
4824
  ? (childNodes = null)
4671
4825
  : ((childNodes =
4672
- (MAYBE_ITERATOR_SYMBOL && node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
4673
- node$jscomp$0["@@iterator"]),
4826
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
4827
+ node["@@iterator"]),
4674
4828
  (childNodes = "function" === typeof childNodes ? childNodes : null));
4675
- if (childNodes && (childNodes = childNodes.call(node$jscomp$0))) {
4676
- node$jscomp$0 = childNodes.next();
4677
- if (!node$jscomp$0.done) {
4829
+ if (childNodes && (childNodes = childNodes.call(node))) {
4830
+ node = childNodes.next();
4831
+ if (!node.done) {
4678
4832
  props = [];
4679
- do
4680
- props.push(node$jscomp$0.value),
4681
- (node$jscomp$0 = childNodes.next());
4682
- while (!node$jscomp$0.done);
4833
+ do props.push(node.value), (node = childNodes.next());
4834
+ while (!node.done);
4683
4835
  renderChildrenArray(request, task, props, childIndex);
4684
4836
  }
4685
4837
  return;
4686
4838
  }
4687
- if ("function" === typeof node$jscomp$0.then)
4839
+ if ("function" === typeof node.then)
4688
4840
  return (
4689
4841
  (task.thenableState = null),
4690
- renderNodeDestructive(
4691
- request,
4692
- task,
4693
- unwrapThenable(node$jscomp$0),
4694
- childIndex
4695
- )
4842
+ renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
4696
4843
  );
4697
- if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
4844
+ if (node.$$typeof === REACT_CONTEXT_TYPE)
4698
4845
  return renderNodeDestructive(
4699
4846
  request,
4700
4847
  task,
4701
- node$jscomp$0._currentValue,
4848
+ node._currentValue,
4702
4849
  childIndex
4703
4850
  );
4704
- childIndex = Object.prototype.toString.call(node$jscomp$0);
4851
+ childIndex = Object.prototype.toString.call(node);
4705
4852
  throw Error(
4706
4853
  formatProdErrorMessage(
4707
4854
  31,
4708
4855
  "[object Object]" === childIndex
4709
- ? "object with keys {" + Object.keys(node$jscomp$0).join(", ") + "}"
4856
+ ? "object with keys {" + Object.keys(node).join(", ") + "}"
4710
4857
  : childIndex
4711
4858
  )
4712
4859
  );
4713
4860
  }
4714
- if ("string" === typeof node$jscomp$0)
4861
+ if ("string" === typeof node)
4715
4862
  (childIndex = task.blockedSegment),
4716
4863
  null !== childIndex &&
4717
4864
  (childIndex.lastPushedText = pushTextInstance(
4718
4865
  childIndex.chunks,
4719
- node$jscomp$0,
4866
+ node,
4720
4867
  request.renderState,
4721
4868
  childIndex.lastPushedText
4722
4869
  ));
4723
- else if (
4724
- "number" === typeof node$jscomp$0 ||
4725
- "bigint" === typeof node$jscomp$0
4726
- )
4870
+ else if ("number" === typeof node || "bigint" === typeof node)
4727
4871
  (childIndex = task.blockedSegment),
4728
4872
  null !== childIndex &&
4729
4873
  (childIndex.lastPushedText = pushTextInstance(
4730
4874
  childIndex.chunks,
4731
- "" + node$jscomp$0,
4875
+ "" + node,
4732
4876
  request.renderState,
4733
4877
  childIndex.lastPushedText
4734
4878
  ));
@@ -4764,7 +4908,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4764
4908
  )
4765
4909
  throw x;
4766
4910
  task.replay.pendingTasks--;
4767
- children = getThrownInfo(request, task.componentStack);
4911
+ children = getThrownInfo(task.componentStack);
4768
4912
  var boundary = task.blockedBoundary,
4769
4913
  error = x;
4770
4914
  children = logRecoverableError(request, error, children);
@@ -4819,9 +4963,55 @@ function untrackBoundary(request, boundary) {
4819
4963
  void 0 !== boundary &&
4820
4964
  ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
4821
4965
  }
4966
+ function spawnNewSuspendedReplayTask(request, task, thenableState) {
4967
+ return createReplayTask(
4968
+ request,
4969
+ thenableState,
4970
+ task.replay,
4971
+ task.node,
4972
+ task.childIndex,
4973
+ task.blockedBoundary,
4974
+ task.hoistableState,
4975
+ task.abortSet,
4976
+ task.keyPath,
4977
+ task.formatContext,
4978
+ task.context,
4979
+ task.treeContext,
4980
+ task.componentStack,
4981
+ task.isFallback
4982
+ );
4983
+ }
4984
+ function spawnNewSuspendedRenderTask(request, task, thenableState) {
4985
+ var segment = task.blockedSegment,
4986
+ newSegment = createPendingSegment(
4987
+ request,
4988
+ segment.chunks.length,
4989
+ null,
4990
+ task.formatContext,
4991
+ segment.lastPushedText,
4992
+ !0
4993
+ );
4994
+ segment.children.push(newSegment);
4995
+ segment.lastPushedText = !1;
4996
+ return createRenderTask(
4997
+ request,
4998
+ thenableState,
4999
+ task.node,
5000
+ task.childIndex,
5001
+ task.blockedBoundary,
5002
+ newSegment,
5003
+ task.hoistableState,
5004
+ task.abortSet,
5005
+ task.keyPath,
5006
+ task.formatContext,
5007
+ task.context,
5008
+ task.treeContext,
5009
+ task.componentStack,
5010
+ task.isFallback
5011
+ );
5012
+ }
4822
5013
  function renderNode(request, task, node, childIndex) {
4823
5014
  var previousFormatContext = task.formatContext,
4824
- previousLegacyContext = task.legacyContext,
4825
5015
  previousContext = task.context,
4826
5016
  previousKeyPath = task.keyPath,
4827
5017
  previousTreeContext = task.treeContext,
@@ -4837,37 +5027,32 @@ function renderNode(request, task, node, childIndex) {
4837
5027
  thrownValue === SuspenseException
4838
5028
  ? getSuspendedThenable()
4839
5029
  : thrownValue),
4840
- "object" === typeof node &&
4841
- null !== node &&
4842
- "function" === typeof node.then)
5030
+ "object" === typeof node && null !== node)
4843
5031
  ) {
4844
- childIndex = getThenableStateAfterSuspending();
4845
- request = createReplayTask(
4846
- request,
4847
- childIndex,
4848
- task.replay,
4849
- task.node,
4850
- task.childIndex,
4851
- task.blockedBoundary,
4852
- task.hoistableState,
4853
- task.abortSet,
4854
- task.keyPath,
4855
- task.formatContext,
4856
- task.legacyContext,
4857
- task.context,
4858
- task.treeContext,
4859
- null !== task.componentStack ? task.componentStack.parent : null,
4860
- task.isFallback
4861
- ).ping;
4862
- node.then(request, request);
4863
- task.formatContext = previousFormatContext;
4864
- task.legacyContext = previousLegacyContext;
4865
- task.context = previousContext;
4866
- task.keyPath = previousKeyPath;
4867
- task.treeContext = previousTreeContext;
4868
- task.componentStack = previousComponentStack;
4869
- switchContext(previousContext);
4870
- return;
5032
+ if ("function" === typeof node.then) {
5033
+ childIndex = getThenableStateAfterSuspending();
5034
+ request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
5035
+ node.then(request, request);
5036
+ task.formatContext = previousFormatContext;
5037
+ task.context = previousContext;
5038
+ task.keyPath = previousKeyPath;
5039
+ task.treeContext = previousTreeContext;
5040
+ task.componentStack = previousComponentStack;
5041
+ switchContext(previousContext);
5042
+ return;
5043
+ }
5044
+ if ("Maximum call stack size exceeded" === node.message) {
5045
+ node = getThenableStateAfterSuspending();
5046
+ node = spawnNewSuspendedReplayTask(request, task, node);
5047
+ request.pingedTasks.push(node);
5048
+ task.formatContext = previousFormatContext;
5049
+ task.context = previousContext;
5050
+ task.keyPath = previousKeyPath;
5051
+ task.treeContext = previousTreeContext;
5052
+ task.componentStack = previousComponentStack;
5053
+ switchContext(previousContext);
5054
+ return;
5055
+ }
4871
5056
  }
4872
5057
  }
4873
5058
  else {
@@ -4875,62 +5060,45 @@ function renderNode(request, task, node, childIndex) {
4875
5060
  chunkLength = segment.chunks.length;
4876
5061
  try {
4877
5062
  return renderNodeDestructive(request, task, node, childIndex);
4878
- } catch (thrownValue$40) {
5063
+ } catch (thrownValue$48) {
4879
5064
  if (
4880
5065
  (resetHooksState(),
4881
5066
  (segment.children.length = childrenLength),
4882
5067
  (segment.chunks.length = chunkLength),
4883
5068
  (node =
4884
- thrownValue$40 === SuspenseException
5069
+ thrownValue$48 === SuspenseException
4885
5070
  ? getSuspendedThenable()
4886
- : thrownValue$40),
4887
- "object" === typeof node &&
4888
- null !== node &&
4889
- "function" === typeof node.then)
5071
+ : thrownValue$48),
5072
+ "object" === typeof node && null !== node)
4890
5073
  ) {
4891
- childIndex = getThenableStateAfterSuspending();
4892
- segment = task.blockedSegment;
4893
- childrenLength = createPendingSegment(
4894
- request,
4895
- segment.chunks.length,
4896
- null,
4897
- task.formatContext,
4898
- segment.lastPushedText,
4899
- !0
4900
- );
4901
- segment.children.push(childrenLength);
4902
- segment.lastPushedText = !1;
4903
- request = createRenderTask(
4904
- request,
4905
- childIndex,
4906
- task.node,
4907
- task.childIndex,
4908
- task.blockedBoundary,
4909
- childrenLength,
4910
- task.hoistableState,
4911
- task.abortSet,
4912
- task.keyPath,
4913
- task.formatContext,
4914
- task.legacyContext,
4915
- task.context,
4916
- task.treeContext,
4917
- null !== task.componentStack ? task.componentStack.parent : null,
4918
- task.isFallback
4919
- ).ping;
4920
- node.then(request, request);
4921
- task.formatContext = previousFormatContext;
4922
- task.legacyContext = previousLegacyContext;
4923
- task.context = previousContext;
4924
- task.keyPath = previousKeyPath;
4925
- task.treeContext = previousTreeContext;
4926
- task.componentStack = previousComponentStack;
4927
- switchContext(previousContext);
4928
- return;
5074
+ if ("function" === typeof node.then) {
5075
+ childIndex = getThenableStateAfterSuspending();
5076
+ request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
5077
+ node.then(request, request);
5078
+ task.formatContext = previousFormatContext;
5079
+ task.context = previousContext;
5080
+ task.keyPath = previousKeyPath;
5081
+ task.treeContext = previousTreeContext;
5082
+ task.componentStack = previousComponentStack;
5083
+ switchContext(previousContext);
5084
+ return;
5085
+ }
5086
+ if ("Maximum call stack size exceeded" === node.message) {
5087
+ node = getThenableStateAfterSuspending();
5088
+ node = spawnNewSuspendedRenderTask(request, task, node);
5089
+ request.pingedTasks.push(node);
5090
+ task.formatContext = previousFormatContext;
5091
+ task.context = previousContext;
5092
+ task.keyPath = previousKeyPath;
5093
+ task.treeContext = previousTreeContext;
5094
+ task.componentStack = previousComponentStack;
5095
+ switchContext(previousContext);
5096
+ return;
5097
+ }
4929
5098
  }
4930
5099
  }
4931
5100
  }
4932
5101
  task.formatContext = previousFormatContext;
4933
- task.legacyContext = previousLegacyContext;
4934
5102
  task.context = previousContext;
4935
5103
  task.keyPath = previousKeyPath;
4936
5104
  task.treeContext = previousTreeContext;
@@ -4988,26 +5156,30 @@ function abortRemainingReplayNodes(
4988
5156
  function abortTask(task, request, error) {
4989
5157
  var boundary = task.blockedBoundary,
4990
5158
  segment = task.blockedSegment;
4991
- null !== segment && (segment.status = 3);
5159
+ if (null !== segment) {
5160
+ if (6 === segment.status) return;
5161
+ segment.status = 3;
5162
+ }
5163
+ segment = getThrownInfo(task.componentStack);
4992
5164
  if (null === boundary) {
4993
- if (((boundary = {}), 1 !== request.status && 2 !== request.status)) {
4994
- task = task.replay;
4995
- if (null === task) {
4996
- logRecoverableError(request, error, boundary);
5165
+ if (13 !== request.status && 14 !== request.status) {
5166
+ boundary = task.replay;
5167
+ if (null === boundary) {
5168
+ logRecoverableError(request, error, segment);
4997
5169
  fatalError(request, error);
4998
5170
  return;
4999
5171
  }
5000
- task.pendingTasks--;
5001
- 0 === task.pendingTasks &&
5002
- 0 < task.nodes.length &&
5003
- ((boundary = logRecoverableError(request, error, boundary)),
5172
+ boundary.pendingTasks--;
5173
+ 0 === boundary.pendingTasks &&
5174
+ 0 < boundary.nodes.length &&
5175
+ ((task = logRecoverableError(request, error, segment)),
5004
5176
  abortRemainingReplayNodes(
5005
5177
  request,
5006
5178
  null,
5007
- task.nodes,
5008
- task.slots,
5179
+ boundary.nodes,
5180
+ boundary.slots,
5009
5181
  error,
5010
- boundary
5182
+ task
5011
5183
  ));
5012
5184
  request.pendingRootTasks--;
5013
5185
  0 === request.pendingRootTasks && completeShell(request);
@@ -5016,8 +5188,8 @@ function abortTask(task, request, error) {
5016
5188
  boundary.pendingTasks--,
5017
5189
  4 !== boundary.status &&
5018
5190
  ((boundary.status = 4),
5019
- (task = getThrownInfo(request, task.componentStack)),
5020
- (task = logRecoverableError(request, error, task)),
5191
+ (task = logRecoverableError(request, error, segment)),
5192
+ (boundary.status = 4),
5021
5193
  (boundary.errorDigest = task),
5022
5194
  untrackBoundary(request, boundary),
5023
5195
  boundary.parentFlushed &&
@@ -5071,7 +5243,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
5071
5243
  referrerPolicy: props$jscomp$0.referrerPolicy,
5072
5244
  media: props$jscomp$0.media
5073
5245
  });
5074
- if (2 <= (headers.remainingCapacity -= header.length))
5246
+ if (0 <= (headers.remainingCapacity -= header.length + 2))
5075
5247
  (renderState.resets.style[key] = PRELOAD_NO_CREDS),
5076
5248
  linkHeader && (linkHeader += ", "),
5077
5249
  (linkHeader += header),
@@ -5154,7 +5326,7 @@ function finishedTask(request, boundary, segment) {
5154
5326
  0 === request.allPendingTasks && completeAll(request);
5155
5327
  }
5156
5328
  function performWork(request$jscomp$2) {
5157
- if (2 !== request$jscomp$2.status) {
5329
+ if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
5158
5330
  var prevContext = currentActiveSnapshot,
5159
5331
  prevDispatcher = ReactSharedInternals.H;
5160
5332
  ReactSharedInternals.H = HooksDispatcher;
@@ -5176,12 +5348,15 @@ function performWork(request$jscomp$2) {
5176
5348
  if (0 !== task.replay.pendingTasks) {
5177
5349
  switchContext(task.context);
5178
5350
  try {
5179
- renderNodeDestructive(
5180
- request$jscomp$0,
5181
- task,
5182
- task.node,
5183
- task.childIndex
5184
- );
5351
+ "number" === typeof task.replay.slots
5352
+ ? resumeNode(
5353
+ request$jscomp$0,
5354
+ task,
5355
+ task.replay.slots,
5356
+ task.node,
5357
+ task.childIndex
5358
+ )
5359
+ : retryNode(request$jscomp$0, task);
5185
5360
  if (
5186
5361
  1 === task.replay.pendingTasks &&
5187
5362
  0 < task.replay.nodes.length
@@ -5204,19 +5379,17 @@ function performWork(request$jscomp$2) {
5204
5379
  var ping = task.ping;
5205
5380
  x.then(ping, ping);
5206
5381
  task.thenableState = getThenableStateAfterSuspending();
5207
- null !== task.componentStack &&
5208
- (task.componentStack = task.componentStack.parent);
5209
5382
  } else {
5210
5383
  task.replay.pendingTasks--;
5211
5384
  task.abortSet.delete(task);
5212
- var errorInfo = getThrownInfo(
5213
- request$jscomp$0,
5214
- task.componentStack
5215
- );
5385
+ var errorInfo = getThrownInfo(task.componentStack);
5216
5386
  request = void 0;
5217
5387
  var request$jscomp$1 = request$jscomp$0,
5218
5388
  boundary = task.blockedBoundary,
5219
- error$jscomp$0 = x,
5389
+ error$jscomp$0 =
5390
+ 12 === request$jscomp$0.status
5391
+ ? request$jscomp$0.fatalError
5392
+ : x,
5220
5393
  replayNodes = task.replay.nodes,
5221
5394
  resumeSlots = task.replay.slots;
5222
5395
  request = logRecoverableError(
@@ -5247,11 +5420,12 @@ function performWork(request$jscomp$2) {
5247
5420
  (request$jscomp$1 = segment),
5248
5421
  0 === request$jscomp$1.status)
5249
5422
  ) {
5423
+ request$jscomp$1.status = 6;
5250
5424
  switchContext(task.context);
5251
5425
  var childrenLength = request$jscomp$1.children.length,
5252
5426
  chunkLength = request$jscomp$1.chunks.length;
5253
5427
  try {
5254
- renderNodeDestructive(request, task, task.node, task.childIndex),
5428
+ retryNode(request, task),
5255
5429
  request$jscomp$1.lastPushedText &&
5256
5430
  request$jscomp$1.textEmbedded &&
5257
5431
  request$jscomp$1.chunks.push(textSeparator),
@@ -5265,22 +5439,20 @@ function performWork(request$jscomp$2) {
5265
5439
  var x$jscomp$0 =
5266
5440
  thrownValue === SuspenseException
5267
5441
  ? getSuspendedThenable()
5268
- : thrownValue;
5442
+ : 12 === request.status
5443
+ ? request.fatalError
5444
+ : thrownValue;
5269
5445
  if (
5270
5446
  "object" === typeof x$jscomp$0 &&
5271
5447
  null !== x$jscomp$0 &&
5272
5448
  "function" === typeof x$jscomp$0.then
5273
5449
  ) {
5450
+ request$jscomp$1.status = 0;
5451
+ task.thenableState = getThenableStateAfterSuspending();
5274
5452
  var ping$jscomp$0 = task.ping;
5275
5453
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
5276
- task.thenableState = getThenableStateAfterSuspending();
5277
- null !== task.componentStack &&
5278
- (task.componentStack = task.componentStack.parent);
5279
5454
  } else {
5280
- var errorInfo$jscomp$0 = getThrownInfo(
5281
- request,
5282
- task.componentStack
5283
- );
5455
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5284
5456
  task.abortSet.delete(task);
5285
5457
  request$jscomp$1.status = 4;
5286
5458
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5455,13 +5627,13 @@ function flushCompletedBoundary(request, destination, boundary) {
5455
5627
  ? ((completedSegments.instructions |= 10),
5456
5628
  writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
5457
5629
  : 0 === (completedSegments.instructions & 8)
5458
- ? ((completedSegments.instructions |= 8),
5459
- writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
5460
- : writeChunk(destination, completeBoundaryWithStylesScript1Partial)
5630
+ ? ((completedSegments.instructions |= 8),
5631
+ writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
5632
+ : writeChunk(destination, completeBoundaryWithStylesScript1Partial)
5461
5633
  : 0 === (completedSegments.instructions & 2)
5462
- ? ((completedSegments.instructions |= 2),
5463
- writeChunk(destination, completeBoundaryScript1Full))
5464
- : writeChunk(destination, completeBoundaryScript1Partial);
5634
+ ? ((completedSegments.instructions |= 2),
5635
+ writeChunk(destination, completeBoundaryScript1Full))
5636
+ : writeChunk(destination, completeBoundaryScript1Partial);
5465
5637
  completedSegments = stringToChunk(i.toString(16));
5466
5638
  writeChunk(destination, request.boundaryPrefix);
5467
5639
  writeChunk(destination, completedSegments);
@@ -5658,11 +5830,11 @@ function flushCompletedQueues(request, destination) {
5658
5830
  writtenBytes = 0;
5659
5831
  var partialBoundaries = request.partialBoundaries;
5660
5832
  for (i = 0; i < partialBoundaries.length; i++) {
5661
- var boundary$44 = partialBoundaries[i];
5833
+ var boundary$51 = partialBoundaries[i];
5662
5834
  a: {
5663
5835
  clientRenderedBoundaries = request;
5664
5836
  boundary = destination;
5665
- var completedSegments = boundary$44.completedSegments;
5837
+ var completedSegments = boundary$51.completedSegments;
5666
5838
  for (
5667
5839
  JSCompiler_inline_result = 0;
5668
5840
  JSCompiler_inline_result < completedSegments.length;
@@ -5672,7 +5844,7 @@ function flushCompletedQueues(request, destination) {
5672
5844
  !flushPartiallyCompletedSegment(
5673
5845
  clientRenderedBoundaries,
5674
5846
  boundary,
5675
- boundary$44,
5847
+ boundary$51,
5676
5848
  completedSegments[JSCompiler_inline_result]
5677
5849
  )
5678
5850
  ) {
@@ -5684,7 +5856,7 @@ function flushCompletedQueues(request, destination) {
5684
5856
  completedSegments.splice(0, JSCompiler_inline_result);
5685
5857
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
5686
5858
  boundary,
5687
- boundary$44.contentState,
5859
+ boundary$51.contentState,
5688
5860
  clientRenderedBoundaries.renderState
5689
5861
  );
5690
5862
  }
@@ -5716,6 +5888,7 @@ function flushCompletedQueues(request, destination) {
5716
5888
  i.hasBody && writeChunk(destination, endChunkForTag("body")),
5717
5889
  i.hasHtml && writeChunk(destination, endChunkForTag("html")),
5718
5890
  completeWriting(destination),
5891
+ (request.status = 14),
5719
5892
  destination.close(),
5720
5893
  (request.destination = null))
5721
5894
  : completeWriting(destination);
@@ -5723,13 +5896,14 @@ function flushCompletedQueues(request, destination) {
5723
5896
  }
5724
5897
  function startWork(request) {
5725
5898
  request.flushScheduled = null !== request.destination;
5726
- scheduleWork(function () {
5899
+ scheduleMicrotask(function () {
5727
5900
  return performWork(request);
5728
5901
  });
5729
- null === request.trackedPostpones &&
5730
- scheduleWork(function () {
5902
+ scheduleWork(function () {
5903
+ 10 === request.status && (request.status = 11);
5904
+ null === request.trackedPostpones &&
5731
5905
  safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
5732
- });
5906
+ });
5733
5907
  }
5734
5908
  function enqueueFlush(request) {
5735
5909
  !1 === request.flushScheduled &&
@@ -5743,12 +5917,32 @@ function enqueueFlush(request) {
5743
5917
  : (request.flushScheduled = !1);
5744
5918
  }));
5745
5919
  }
5920
+ function startFlowing(request, destination) {
5921
+ if (13 === request.status)
5922
+ (request.status = 14), closeWithError(destination, request.fatalError);
5923
+ else if (14 !== request.status && null === request.destination) {
5924
+ request.destination = destination;
5925
+ try {
5926
+ flushCompletedQueues(request, destination);
5927
+ } catch (error) {
5928
+ logRecoverableError(request, error, {}), fatalError(request, error);
5929
+ }
5930
+ }
5931
+ }
5746
5932
  function abort(request, reason) {
5933
+ if (11 === request.status || 10 === request.status) request.status = 12;
5747
5934
  try {
5748
5935
  var abortableTasks = request.abortableTasks;
5749
5936
  if (0 < abortableTasks.size) {
5750
5937
  var error =
5751
- void 0 === reason ? Error(formatProdErrorMessage(432)) : reason;
5938
+ void 0 === reason
5939
+ ? Error(formatProdErrorMessage(432))
5940
+ : "object" === typeof reason &&
5941
+ null !== reason &&
5942
+ "function" === typeof reason.then
5943
+ ? Error(formatProdErrorMessage(530))
5944
+ : reason;
5945
+ request.fatalError = error;
5752
5946
  abortableTasks.forEach(function (task) {
5753
5947
  return abortTask(task, request, error);
5754
5948
  });
@@ -5756,22 +5950,89 @@ function abort(request, reason) {
5756
5950
  }
5757
5951
  null !== request.destination &&
5758
5952
  flushCompletedQueues(request, request.destination);
5759
- } catch (error$46) {
5760
- logRecoverableError(request, error$46, {}), fatalError(request, error$46);
5953
+ } catch (error$53) {
5954
+ logRecoverableError(request, error$53, {}), fatalError(request, error$53);
5761
5955
  }
5762
5956
  }
5763
- var isomorphicReactPackageVersion$jscomp$inline_720 = React.version;
5764
- if (
5765
- "19.0.0-rc-fb9a90fa48-20240614" !==
5766
- isomorphicReactPackageVersion$jscomp$inline_720
5767
- )
5768
- throw Error(
5769
- formatProdErrorMessage(
5770
- 527,
5771
- isomorphicReactPackageVersion$jscomp$inline_720,
5772
- "19.0.0-rc-fb9a90fa48-20240614"
5773
- )
5774
- );
5957
+ function ensureCorrectIsomorphicReactVersion() {
5958
+ var isomorphicReactPackageVersion = React.version;
5959
+ if ("19.0.0" !== isomorphicReactPackageVersion)
5960
+ throw Error(
5961
+ formatProdErrorMessage(
5962
+ 527,
5963
+ isomorphicReactPackageVersion,
5964
+ "19.0.0"
5965
+ )
5966
+ );
5967
+ }
5968
+ ensureCorrectIsomorphicReactVersion();
5969
+ ensureCorrectIsomorphicReactVersion();
5970
+ exports.prerender = function (children, options) {
5971
+ return new Promise(function (resolve, reject) {
5972
+ var onHeaders = options ? options.onHeaders : void 0,
5973
+ onHeadersImpl;
5974
+ onHeaders &&
5975
+ (onHeadersImpl = function (headersDescriptor) {
5976
+ onHeaders(new Headers(headersDescriptor));
5977
+ });
5978
+ var resources = createResumableState(
5979
+ options ? options.identifierPrefix : void 0,
5980
+ options ? options.unstable_externalRuntimeSrc : void 0,
5981
+ options ? options.bootstrapScriptContent : void 0,
5982
+ options ? options.bootstrapScripts : void 0,
5983
+ options ? options.bootstrapModules : void 0
5984
+ ),
5985
+ request = createPrerenderRequest(
5986
+ children,
5987
+ resources,
5988
+ createRenderState(
5989
+ resources,
5990
+ void 0,
5991
+ options ? options.unstable_externalRuntimeSrc : void 0,
5992
+ options ? options.importMap : void 0,
5993
+ onHeadersImpl,
5994
+ options ? options.maxHeadersLength : void 0
5995
+ ),
5996
+ createRootFormatContext(options ? options.namespaceURI : void 0),
5997
+ options ? options.progressiveChunkSize : void 0,
5998
+ options ? options.onError : void 0,
5999
+ function () {
6000
+ var result = {
6001
+ prelude: new ReadableStream(
6002
+ {
6003
+ type: "bytes",
6004
+ pull: function (controller) {
6005
+ startFlowing(request, controller);
6006
+ },
6007
+ cancel: function (reason) {
6008
+ request.destination = null;
6009
+ abort(request, reason);
6010
+ }
6011
+ },
6012
+ { highWaterMark: 0 }
6013
+ )
6014
+ };
6015
+ resolve(result);
6016
+ },
6017
+ void 0,
6018
+ void 0,
6019
+ reject,
6020
+ options ? options.onPostpone : void 0
6021
+ );
6022
+ if (options && options.signal) {
6023
+ var signal = options.signal;
6024
+ if (signal.aborted) abort(request, signal.reason);
6025
+ else {
6026
+ var listener = function () {
6027
+ abort(request, signal.reason);
6028
+ signal.removeEventListener("abort", listener);
6029
+ };
6030
+ signal.addEventListener("abort", listener);
6031
+ }
6032
+ }
6033
+ startWork(request);
6034
+ });
6035
+ };
5775
6036
  exports.renderToReadableStream = function (children, options) {
5776
6037
  return new Promise(function (resolve, reject) {
5777
6038
  var onFatalError,
@@ -5813,18 +6074,7 @@ exports.renderToReadableStream = function (children, options) {
5813
6074
  {
5814
6075
  type: "bytes",
5815
6076
  pull: function (controller) {
5816
- if (1 === request.status)
5817
- (request.status = 2),
5818
- closeWithError(controller, request.fatalError);
5819
- else if (2 !== request.status && null === request.destination) {
5820
- request.destination = controller;
5821
- try {
5822
- flushCompletedQueues(request, controller);
5823
- } catch (error) {
5824
- logRecoverableError(request, error, {}),
5825
- fatalError(request, error);
5826
- }
5827
- }
6077
+ startFlowing(request, controller);
5828
6078
  },
5829
6079
  cancel: function (reason) {
5830
6080
  request.destination = null;
@@ -5858,4 +6108,4 @@ exports.renderToReadableStream = function (children, options) {
5858
6108
  startWork(request);
5859
6109
  });
5860
6110
  };
5861
- exports.version = "19.0.0-rc-fb9a90fa48-20240614";
6111
+ exports.version = "19.0.0";