@expo/cli 1.0.0-canary-20250404-3c3b5fd → 1.0.0-canary-20250701-6a945c5

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 (182) hide show
  1. package/README.md +33 -24
  2. package/build/bin/cli +1 -1
  3. package/build/metro-require/require.js +6 -4
  4. package/build/src/api/user/actions.js +25 -11
  5. package/build/src/api/user/actions.js.map +1 -1
  6. package/build/src/customize/templates.js +15 -1
  7. package/build/src/customize/templates.js.map +1 -1
  8. package/build/src/export/exportApp.js +26 -14
  9. package/build/src/export/exportApp.js.map +1 -1
  10. package/build/src/export/exportAsync.js +6 -0
  11. package/build/src/export/exportAsync.js.map +1 -1
  12. package/build/src/export/exportHermes.js +2 -2
  13. package/build/src/export/exportHermes.js.map +1 -1
  14. package/build/src/export/persistMetroAssets.js.map +1 -1
  15. package/build/src/install/checkPackages.js +22 -4
  16. package/build/src/install/checkPackages.js.map +1 -1
  17. package/build/src/install/index.js +3 -1
  18. package/build/src/install/index.js.map +1 -1
  19. package/build/src/install/resolveOptions.js +7 -2
  20. package/build/src/install/resolveOptions.js.map +1 -1
  21. package/build/src/install/utils/checkPackagesCompatibility.js +1 -1
  22. package/build/src/install/utils/checkPackagesCompatibility.js.map +1 -1
  23. package/build/src/lint/ESlintPrerequisite.js +32 -48
  24. package/build/src/lint/ESlintPrerequisite.js.map +1 -1
  25. package/build/src/lint/index.js +45 -47
  26. package/build/src/lint/index.js.map +1 -1
  27. package/build/src/lint/lintAsync.js +150 -4
  28. package/build/src/lint/lintAsync.js.map +1 -1
  29. package/build/src/lint/resolveOptions.js +115 -0
  30. package/build/src/lint/resolveOptions.js.map +1 -0
  31. package/build/src/prebuild/renameTemplateAppName.js +4 -1
  32. package/build/src/prebuild/renameTemplateAppName.js.map +1 -1
  33. package/build/src/prebuild/resolveTemplate.js +4 -4
  34. package/build/src/prebuild/resolveTemplate.js.map +1 -1
  35. package/build/src/prebuild/updatePackageJson.js +19 -9
  36. package/build/src/prebuild/updatePackageJson.js.map +1 -1
  37. package/build/src/run/android/resolveOptions.js +13 -1
  38. package/build/src/run/android/resolveOptions.js.map +1 -1
  39. package/build/src/run/android/runAndroidAsync.js +39 -17
  40. package/build/src/run/android/runAndroidAsync.js.map +1 -1
  41. package/build/src/run/ios/XcodeBuild.js +3 -3
  42. package/build/src/run/ios/XcodeBuild.js.map +1 -1
  43. package/build/src/run/ios/options/resolveOptions.js +13 -1
  44. package/build/src/run/ios/options/resolveOptions.js.map +1 -1
  45. package/build/src/run/ios/runIosAsync.js +38 -7
  46. package/build/src/run/ios/runIosAsync.js.map +1 -1
  47. package/build/src/start/doctor/SecurityBinPrerequisite.js +1 -1
  48. package/build/src/start/doctor/SecurityBinPrerequisite.js.map +1 -1
  49. package/build/src/start/doctor/apple/XcodePrerequisite.js +1 -1
  50. package/build/src/start/doctor/apple/XcodePrerequisite.js.map +1 -1
  51. package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js +1 -1
  52. package/build/src/start/doctor/dependencies/ensureDependenciesAsync.js.map +1 -1
  53. package/build/src/start/doctor/dependencies/resolvePackages.js +1 -1
  54. package/build/src/start/doctor/dependencies/resolvePackages.js.map +1 -1
  55. package/build/src/start/doctor/ngrok/ExternalModule.js +1 -1
  56. package/build/src/start/doctor/ngrok/ExternalModule.js.map +1 -1
  57. package/build/src/start/index.js +1 -1
  58. package/build/src/start/index.js.map +1 -1
  59. package/build/src/start/platforms/PlatformManager.js +1 -1
  60. package/build/src/start/platforms/PlatformManager.js.map +1 -1
  61. package/build/src/start/platforms/android/AndroidPlatformManager.js +1 -1
  62. package/build/src/start/platforms/android/AndroidPlatformManager.js.map +1 -1
  63. package/build/src/start/platforms/android/getDevices.js +1 -1
  64. package/build/src/start/platforms/android/getDevices.js.map +1 -1
  65. package/build/src/start/platforms/ios/AppleDeviceManager.js +1 -1
  66. package/build/src/start/platforms/ios/AppleDeviceManager.js.map +1 -1
  67. package/build/src/start/platforms/ios/xcrun.js +1 -1
  68. package/build/src/start/platforms/ios/xcrun.js.map +1 -1
  69. package/build/src/start/project/dotExpo.js +5 -0
  70. package/build/src/start/project/dotExpo.js.map +1 -1
  71. package/build/src/start/resolveOptions.js +3 -0
  72. package/build/src/start/resolveOptions.js.map +1 -1
  73. package/build/src/start/server/metro/MetroBundlerDevServer.js +38 -26
  74. package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
  75. package/build/src/start/server/metro/MetroTerminalReporter.js +29 -2
  76. package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
  77. package/build/src/start/server/metro/createExpoFallbackResolver.js +6 -4
  78. package/build/src/start/server/metro/createExpoFallbackResolver.js.map +1 -1
  79. package/build/src/start/server/metro/createJResolver.js +2 -2
  80. package/build/src/start/server/metro/createJResolver.js.map +1 -1
  81. package/build/src/start/server/metro/createServerComponentsMiddleware.js +16 -5
  82. package/build/src/start/server/metro/createServerComponentsMiddleware.js.map +1 -1
  83. package/build/src/start/server/metro/debugging/createDebugMiddleware.js +19 -19
  84. package/build/src/start/server/metro/debugging/createDebugMiddleware.js.map +1 -1
  85. package/build/src/start/server/metro/externals.js +1 -1
  86. package/build/src/start/server/metro/externals.js.map +1 -1
  87. package/build/src/start/server/metro/instantiateMetro.js +13 -8
  88. package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
  89. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js +21 -2
  90. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
  91. package/build/src/start/server/metro/log-box/formatProjectFilePath.js +15 -12
  92. package/build/src/start/server/metro/log-box/formatProjectFilePath.js.map +1 -1
  93. package/build/src/start/server/metro/metroErrorInterface.js +19 -8
  94. package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
  95. package/build/src/start/server/metro/runServer-fork.js +1 -1
  96. package/build/src/start/server/metro/runServer-fork.js.map +1 -1
  97. package/build/src/start/server/metro/withMetroMultiPlatform.js +7 -12
  98. package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
  99. package/build/src/start/server/middleware/CorsMiddleware.js +1 -1
  100. package/build/src/start/server/middleware/CorsMiddleware.js.map +1 -1
  101. package/build/src/start/server/middleware/ManifestMiddleware.js +4 -8
  102. package/build/src/start/server/middleware/ManifestMiddleware.js.map +1 -1
  103. package/build/src/start/server/middleware/inspector/JsInspector.js +2 -25
  104. package/build/src/start/server/middleware/inspector/JsInspector.js.map +1 -1
  105. package/build/src/start/server/middleware/metroOptions.js +2 -26
  106. package/build/src/start/server/middleware/metroOptions.js.map +1 -1
  107. package/build/src/utils/build-cache-providers/helpers.js +61 -0
  108. package/build/src/utils/build-cache-providers/helpers.js.map +1 -0
  109. package/build/src/utils/build-cache-providers/index.js +283 -0
  110. package/build/src/utils/build-cache-providers/index.js.map +1 -0
  111. package/build/src/utils/codesigning.js +14 -2
  112. package/build/src/utils/codesigning.js.map +1 -1
  113. package/build/src/utils/exit.js +0 -1
  114. package/build/src/utils/exit.js.map +1 -1
  115. package/build/src/utils/ip.js +7 -104
  116. package/build/src/utils/ip.js.map +1 -1
  117. package/build/src/utils/modifyConfigAsync.js +1 -1
  118. package/build/src/utils/modifyConfigAsync.js.map +1 -1
  119. package/build/src/utils/resolveArgs.js +8 -0
  120. package/build/src/utils/resolveArgs.js.map +1 -1
  121. package/build/src/utils/scheme.js +1 -1
  122. package/build/src/utils/scheme.js.map +1 -1
  123. package/build/src/utils/telemetry/clients/FetchClient.js +2 -2
  124. package/build/src/utils/telemetry/clients/FetchClient.js.map +1 -1
  125. package/build/src/utils/telemetry/utils/context.js +1 -1
  126. package/build/src/utils/tsconfig/evaluateTsConfig.js +7 -2
  127. package/build/src/utils/tsconfig/evaluateTsConfig.js.map +1 -1
  128. package/build/src/utils/variadic.js +63 -6
  129. package/build/src/utils/variadic.js.map +1 -1
  130. package/package.json +20 -20
  131. package/static/canary/react-is/cjs/react-is.development.js +118 -185
  132. package/static/canary/react-is/cjs/react-is.production.js +2 -2
  133. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +16582 -26565
  134. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +3495 -3357
  135. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +3929 -3801
  136. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +16869 -27032
  137. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3535 -3428
  138. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4198 -4095
  139. package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +387 -684
  140. package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -9
  141. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +137 -195
  142. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -5
  143. package/static/canary/scheduler/cjs/scheduler.development.js +339 -600
  144. package/static/canary/scheduler/cjs/scheduler.native.development.js +324 -512
  145. package/static/canary/scheduler/cjs/scheduler.native.production.js +6 -5
  146. package/static/canary/scheduler/cjs/scheduler.production.js +16 -17
  147. package/static/canary-full/react/cjs/react-compiler-runtime.development.js +13 -68
  148. package/static/canary-full/react/cjs/react-jsx-dev-runtime.development.js +317 -1251
  149. package/static/canary-full/react/cjs/react-jsx-dev-runtime.react-server.development.js +353 -1286
  150. package/static/canary-full/react/cjs/react-jsx-runtime.development.js +326 -1279
  151. package/static/canary-full/react/cjs/react-jsx-runtime.react-server.development.js +353 -1286
  152. package/static/canary-full/react/cjs/react.development.js +1204 -2771
  153. package/static/canary-full/react/cjs/react.production.js +25 -20
  154. package/static/canary-full/react/cjs/react.react-server.development.js +783 -2162
  155. package/static/canary-full/react/cjs/react.react-server.production.js +13 -63
  156. package/static/canary-full/react/package.json +1 -1
  157. package/static/canary-full/react-dom/cjs/react-dom-client.development.js +24847 -37099
  158. package/static/canary-full/react-dom/cjs/react-dom-client.production.js +8261 -7475
  159. package/static/canary-full/react-dom/cjs/react-dom-profiling.development.js +25252 -37571
  160. package/static/canary-full/react-dom/cjs/react-dom-profiling.profiling.js +9442 -8662
  161. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.development.js +8944 -11568
  162. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.browser.production.js +1378 -944
  163. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.development.js +8944 -11568
  164. package/static/canary-full/react-dom/cjs/react-dom-server-legacy.node.production.js +1386 -954
  165. package/static/canary-full/react-dom/cjs/react-dom-server.browser.development.js +9344 -11600
  166. package/static/canary-full/react-dom/cjs/react-dom-server.browser.production.js +1545 -954
  167. package/static/canary-full/react-dom/cjs/react-dom-server.bun.development.js +8286 -11064
  168. package/static/canary-full/react-dom/cjs/react-dom-server.bun.production.js +1437 -976
  169. package/static/canary-full/react-dom/cjs/react-dom-server.edge.development.js +9356 -11609
  170. package/static/canary-full/react-dom/cjs/react-dom-server.edge.production.js +1542 -970
  171. package/static/canary-full/react-dom/cjs/react-dom-server.node.development.js +9227 -11571
  172. package/static/canary-full/react-dom/cjs/react-dom-server.node.production.js +1787 -1183
  173. package/static/canary-full/react-dom/cjs/react-dom-test-utils.development.js +13 -59
  174. package/static/canary-full/react-dom/cjs/react-dom.development.js +402 -604
  175. package/static/canary-full/react-dom/cjs/react-dom.production.js +4 -3
  176. package/static/canary-full/react-dom/cjs/react-dom.react-server.development.js +322 -382
  177. package/static/canary-full/react-dom/cjs/react-dom.react-server.production.js +6 -7
  178. package/static/canary-full/react-dom/package.json +5 -5
  179. package/static/canary-full/react-dom/static.browser.js +1 -0
  180. package/static/canary-full/react-dom/static.edge.js +1 -0
  181. package/static/canary-full/react-dom/static.node.js +1 -0
  182. package/static/template/eslint.config.js +10 -0
@@ -64,9 +64,10 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
64
64
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
65
65
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
66
66
  REACT_SCOPE_TYPE = Symbol.for("react.scope"),
67
- REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
68
- REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
67
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
69
68
  REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
69
+ REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
70
+ REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
70
71
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
71
72
  isArrayImpl = Array.isArray;
72
73
  function murmurhash3_32_gc(key, seed) {
@@ -328,6 +329,14 @@ function createResumableState(
328
329
  moduleScriptResources: {}
329
330
  };
330
331
  }
332
+ function createPreambleState() {
333
+ return {
334
+ htmlChunks: null,
335
+ headChunks: null,
336
+ bodyChunks: null,
337
+ contribution: 0
338
+ };
339
+ }
331
340
  function createFormatContext(insertionMode, selectedValue, tagScope) {
332
341
  return {
333
342
  insertionMode: insertionMode,
@@ -346,31 +355,32 @@ function getChildFormatContext(parentContext, type, props) {
346
355
  parentContext.tagScope
347
356
  );
348
357
  case "svg":
349
- return createFormatContext(3, null, parentContext.tagScope);
358
+ return createFormatContext(4, null, parentContext.tagScope);
350
359
  case "picture":
351
360
  return createFormatContext(2, null, parentContext.tagScope | 2);
352
361
  case "math":
353
- return createFormatContext(4, null, parentContext.tagScope);
362
+ return createFormatContext(5, null, parentContext.tagScope);
354
363
  case "foreignObject":
355
364
  return createFormatContext(2, null, parentContext.tagScope);
356
365
  case "table":
357
- return createFormatContext(5, null, parentContext.tagScope);
366
+ return createFormatContext(6, null, parentContext.tagScope);
358
367
  case "thead":
359
368
  case "tbody":
360
369
  case "tfoot":
361
- return createFormatContext(6, null, parentContext.tagScope);
370
+ return createFormatContext(7, null, parentContext.tagScope);
362
371
  case "colgroup":
363
- return createFormatContext(8, null, parentContext.tagScope);
372
+ return createFormatContext(9, null, parentContext.tagScope);
364
373
  case "tr":
365
- return createFormatContext(7, null, parentContext.tagScope);
374
+ return createFormatContext(8, null, parentContext.tagScope);
375
+ case "head":
376
+ if (2 > parentContext.insertionMode)
377
+ return createFormatContext(3, null, parentContext.tagScope);
378
+ break;
379
+ case "html":
380
+ if (0 === parentContext.insertionMode)
381
+ return createFormatContext(1, null, parentContext.tagScope);
366
382
  }
367
- return 5 <= parentContext.insertionMode
368
- ? createFormatContext(2, null, parentContext.tagScope)
369
- : 0 === parentContext.insertionMode
370
- ? "html" === type
371
- ? createFormatContext(1, null, parentContext.tagScope)
372
- : createFormatContext(2, null, parentContext.tagScope)
373
- : 1 === parentContext.insertionMode
383
+ return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
374
384
  ? createFormatContext(2, null, parentContext.tagScope)
375
385
  : parentContext;
376
386
  }
@@ -431,17 +441,25 @@ var actionJavaScriptURL = escapeTextForBrowser(
431
441
  );
432
442
  function pushAdditionalFormField(value, key) {
433
443
  this.push('<input type="hidden"');
434
- if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
444
+ validateAdditionalFormField(value);
435
445
  pushStringAttribute(this, "name", key);
436
446
  pushStringAttribute(this, "value", value);
437
447
  this.push("/>");
438
448
  }
449
+ function validateAdditionalFormField(value) {
450
+ if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
451
+ }
439
452
  function getCustomFormFields(resumableState, formAction) {
440
453
  if ("function" === typeof formAction.$$FORM_ACTION) {
441
454
  var id = resumableState.nextFormID++;
442
455
  resumableState = resumableState.idPrefix + id;
443
456
  try {
444
- return formAction.$$FORM_ACTION(resumableState);
457
+ var customFields = formAction.$$FORM_ACTION(resumableState);
458
+ if (customFields) {
459
+ var formData = customFields.data;
460
+ null != formData && formData.forEach(validateAdditionalFormField);
461
+ }
462
+ return customFields;
445
463
  } catch (x) {
446
464
  if ("object" === typeof x && null !== x && "function" === typeof x.then)
447
465
  throw x;
@@ -772,6 +790,29 @@ function pushScriptImpl(target, props) {
772
790
  target.push(endChunkForTag("script"));
773
791
  return null;
774
792
  }
793
+ function pushStartSingletonElement(target, props, tag) {
794
+ target.push(startChunkForTag(tag));
795
+ var innerHTML = (tag = null),
796
+ propKey;
797
+ for (propKey in props)
798
+ if (hasOwnProperty.call(props, propKey)) {
799
+ var propValue = props[propKey];
800
+ if (null != propValue)
801
+ switch (propKey) {
802
+ case "children":
803
+ tag = propValue;
804
+ break;
805
+ case "dangerouslySetInnerHTML":
806
+ innerHTML = propValue;
807
+ break;
808
+ default:
809
+ pushAttribute(target, propKey, propValue);
810
+ }
811
+ }
812
+ target.push(">");
813
+ pushInnerHTML(target, innerHTML, tag);
814
+ return tag;
815
+ }
775
816
  function pushStartGenericElement(target, props, tag) {
776
817
  target.push(startChunkForTag(tag));
777
818
  var innerHTML = (tag = null),
@@ -815,6 +856,7 @@ function pushStartInstance(
815
856
  props,
816
857
  resumableState,
817
858
  renderState,
859
+ preambleState,
818
860
  hoistableState,
819
861
  formatContext,
820
862
  textEmbedded,
@@ -1241,28 +1283,70 @@ function pushStartInstance(
1241
1283
  }
1242
1284
  target$jscomp$0.push(">");
1243
1285
  return null;
1286
+ case "object":
1287
+ target$jscomp$0.push(startChunkForTag("object"));
1288
+ var children$jscomp$5 = null,
1289
+ innerHTML$jscomp$4 = null,
1290
+ propKey$jscomp$7;
1291
+ for (propKey$jscomp$7 in props)
1292
+ if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1293
+ var propValue$jscomp$7 = props[propKey$jscomp$7];
1294
+ if (null != propValue$jscomp$7)
1295
+ switch (propKey$jscomp$7) {
1296
+ case "children":
1297
+ children$jscomp$5 = propValue$jscomp$7;
1298
+ break;
1299
+ case "dangerouslySetInnerHTML":
1300
+ innerHTML$jscomp$4 = propValue$jscomp$7;
1301
+ break;
1302
+ case "data":
1303
+ var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
1304
+ if ("" === sanitizedValue) break;
1305
+ target$jscomp$0.push(
1306
+ " ",
1307
+ "data",
1308
+ '="',
1309
+ escapeTextForBrowser(sanitizedValue),
1310
+ '"'
1311
+ );
1312
+ break;
1313
+ default:
1314
+ pushAttribute(
1315
+ target$jscomp$0,
1316
+ propKey$jscomp$7,
1317
+ propValue$jscomp$7
1318
+ );
1319
+ }
1320
+ }
1321
+ target$jscomp$0.push(">");
1322
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1323
+ if ("string" === typeof children$jscomp$5) {
1324
+ target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
1325
+ var JSCompiler_inline_result$jscomp$2 = null;
1326
+ } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
1327
+ return JSCompiler_inline_result$jscomp$2;
1244
1328
  case "title":
1245
1329
  if (
1246
- 3 === formatContext.insertionMode ||
1330
+ 4 === formatContext.insertionMode ||
1247
1331
  formatContext.tagScope & 1 ||
1248
1332
  null != props.itemProp
1249
1333
  )
1250
- var JSCompiler_inline_result$jscomp$2 = pushTitleImpl(
1334
+ var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
1251
1335
  target$jscomp$0,
1252
1336
  props
1253
1337
  );
1254
1338
  else
1255
1339
  isFallback
1256
- ? (JSCompiler_inline_result$jscomp$2 = null)
1340
+ ? (JSCompiler_inline_result$jscomp$3 = null)
1257
1341
  : (pushTitleImpl(renderState.hoistableChunks, props),
1258
- (JSCompiler_inline_result$jscomp$2 = void 0));
1259
- return JSCompiler_inline_result$jscomp$2;
1342
+ (JSCompiler_inline_result$jscomp$3 = void 0));
1343
+ return JSCompiler_inline_result$jscomp$3;
1260
1344
  case "link":
1261
1345
  var rel = props.rel,
1262
1346
  href = props.href,
1263
1347
  precedence = props.precedence;
1264
1348
  if (
1265
- 3 === formatContext.insertionMode ||
1349
+ 4 === formatContext.insertionMode ||
1266
1350
  formatContext.tagScope & 1 ||
1267
1351
  null != props.itemProp ||
1268
1352
  "string" !== typeof rel ||
@@ -1270,7 +1354,7 @@ function pushStartInstance(
1270
1354
  "" === href
1271
1355
  ) {
1272
1356
  pushLinkImpl(target$jscomp$0, props);
1273
- var JSCompiler_inline_result$jscomp$3 = null;
1357
+ var JSCompiler_inline_result$jscomp$4 = null;
1274
1358
  } else if ("stylesheet" === props.rel)
1275
1359
  if (
1276
1360
  "string" !== typeof precedence ||
@@ -1278,7 +1362,7 @@ function pushStartInstance(
1278
1362
  props.onLoad ||
1279
1363
  props.onError
1280
1364
  )
1281
- JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1365
+ JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1282
1366
  target$jscomp$0,
1283
1367
  props
1284
1368
  );
@@ -1321,19 +1405,19 @@ function pushStartInstance(
1321
1405
  hoistableState.stylesheets.add(resource$9);
1322
1406
  }
1323
1407
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1324
- JSCompiler_inline_result$jscomp$3 = null;
1408
+ JSCompiler_inline_result$jscomp$4 = null;
1325
1409
  }
1326
1410
  else
1327
1411
  props.onLoad || props.onError
1328
- ? (JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1412
+ ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1329
1413
  target$jscomp$0,
1330
1414
  props
1331
1415
  ))
1332
1416
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1333
- (JSCompiler_inline_result$jscomp$3 = isFallback
1417
+ (JSCompiler_inline_result$jscomp$4 = isFallback
1334
1418
  ? null
1335
1419
  : pushLinkImpl(renderState.hoistableChunks, props)));
1336
- return JSCompiler_inline_result$jscomp$3;
1420
+ return JSCompiler_inline_result$jscomp$4;
1337
1421
  case "script":
1338
1422
  var asyncProp = props.async;
1339
1423
  if (
@@ -1344,11 +1428,11 @@ function pushStartInstance(
1344
1428
  "symbol" === typeof asyncProp ||
1345
1429
  props.onLoad ||
1346
1430
  props.onError ||
1347
- 3 === formatContext.insertionMode ||
1431
+ 4 === formatContext.insertionMode ||
1348
1432
  formatContext.tagScope & 1 ||
1349
1433
  null != props.itemProp
1350
1434
  )
1351
- var JSCompiler_inline_result$jscomp$4 = pushScriptImpl(
1435
+ var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
1352
1436
  target$jscomp$0,
1353
1437
  props
1354
1438
  );
@@ -1378,14 +1462,14 @@ function pushStartInstance(
1378
1462
  pushScriptImpl(resource$jscomp$0, scriptProps);
1379
1463
  }
1380
1464
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1381
- JSCompiler_inline_result$jscomp$4 = null;
1465
+ JSCompiler_inline_result$jscomp$5 = null;
1382
1466
  }
1383
- return JSCompiler_inline_result$jscomp$4;
1467
+ return JSCompiler_inline_result$jscomp$5;
1384
1468
  case "style":
1385
1469
  var precedence$jscomp$0 = props.precedence,
1386
1470
  href$jscomp$0 = props.href;
1387
1471
  if (
1388
- 3 === formatContext.insertionMode ||
1472
+ 4 === formatContext.insertionMode ||
1389
1473
  formatContext.tagScope & 1 ||
1390
1474
  null != props.itemProp ||
1391
1475
  "string" !== typeof precedence$jscomp$0 ||
@@ -1393,42 +1477,42 @@ function pushStartInstance(
1393
1477
  "" === href$jscomp$0
1394
1478
  ) {
1395
1479
  target$jscomp$0.push(startChunkForTag("style"));
1396
- var children$jscomp$5 = null,
1397
- innerHTML$jscomp$4 = null,
1398
- propKey$jscomp$7;
1399
- for (propKey$jscomp$7 in props)
1400
- if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1401
- var propValue$jscomp$7 = props[propKey$jscomp$7];
1402
- if (null != propValue$jscomp$7)
1403
- switch (propKey$jscomp$7) {
1480
+ var children$jscomp$6 = null,
1481
+ innerHTML$jscomp$5 = null,
1482
+ propKey$jscomp$8;
1483
+ for (propKey$jscomp$8 in props)
1484
+ if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1485
+ var propValue$jscomp$8 = props[propKey$jscomp$8];
1486
+ if (null != propValue$jscomp$8)
1487
+ switch (propKey$jscomp$8) {
1404
1488
  case "children":
1405
- children$jscomp$5 = propValue$jscomp$7;
1489
+ children$jscomp$6 = propValue$jscomp$8;
1406
1490
  break;
1407
1491
  case "dangerouslySetInnerHTML":
1408
- innerHTML$jscomp$4 = propValue$jscomp$7;
1492
+ innerHTML$jscomp$5 = propValue$jscomp$8;
1409
1493
  break;
1410
1494
  default:
1411
1495
  pushAttribute(
1412
1496
  target$jscomp$0,
1413
- propKey$jscomp$7,
1414
- propValue$jscomp$7
1497
+ propKey$jscomp$8,
1498
+ propValue$jscomp$8
1415
1499
  );
1416
1500
  }
1417
1501
  }
1418
1502
  target$jscomp$0.push(">");
1419
- var child = Array.isArray(children$jscomp$5)
1420
- ? 2 > children$jscomp$5.length
1421
- ? children$jscomp$5[0]
1503
+ var child = Array.isArray(children$jscomp$6)
1504
+ ? 2 > children$jscomp$6.length
1505
+ ? children$jscomp$6[0]
1422
1506
  : null
1423
- : children$jscomp$5;
1507
+ : children$jscomp$6;
1424
1508
  "function" !== typeof child &&
1425
1509
  "symbol" !== typeof child &&
1426
1510
  null !== child &&
1427
1511
  void 0 !== child &&
1428
1512
  target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
1429
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1513
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
1430
1514
  target$jscomp$0.push(endChunkForTag("style"));
1431
- var JSCompiler_inline_result$jscomp$5 = null;
1515
+ var JSCompiler_inline_result$jscomp$6 = null;
1432
1516
  } else {
1433
1517
  var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
1434
1518
  if (
@@ -1450,26 +1534,26 @@ function pushStartInstance(
1450
1534
  }),
1451
1535
  renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
1452
1536
  var target = styleQueue$jscomp$0.rules,
1453
- children$jscomp$6 = null,
1454
- innerHTML$jscomp$5 = null,
1455
- propKey$jscomp$8;
1456
- for (propKey$jscomp$8 in props)
1457
- if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1458
- var propValue$jscomp$8 = props[propKey$jscomp$8];
1459
- if (null != propValue$jscomp$8)
1460
- switch (propKey$jscomp$8) {
1537
+ children$jscomp$7 = null,
1538
+ innerHTML$jscomp$6 = null,
1539
+ propKey$jscomp$9;
1540
+ for (propKey$jscomp$9 in props)
1541
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1542
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
1543
+ if (null != propValue$jscomp$9)
1544
+ switch (propKey$jscomp$9) {
1461
1545
  case "children":
1462
- children$jscomp$6 = propValue$jscomp$8;
1546
+ children$jscomp$7 = propValue$jscomp$9;
1463
1547
  break;
1464
1548
  case "dangerouslySetInnerHTML":
1465
- innerHTML$jscomp$5 = propValue$jscomp$8;
1549
+ innerHTML$jscomp$6 = propValue$jscomp$9;
1466
1550
  }
1467
1551
  }
1468
- var child$jscomp$0 = Array.isArray(children$jscomp$6)
1469
- ? 2 > children$jscomp$6.length
1470
- ? children$jscomp$6[0]
1552
+ var child$jscomp$0 = Array.isArray(children$jscomp$7)
1553
+ ? 2 > children$jscomp$7.length
1554
+ ? children$jscomp$7[0]
1471
1555
  : null
1472
- : children$jscomp$6;
1556
+ : children$jscomp$7;
1473
1557
  "function" !== typeof child$jscomp$0 &&
1474
1558
  "symbol" !== typeof child$jscomp$0 &&
1475
1559
  null !== child$jscomp$0 &&
@@ -1477,80 +1561,80 @@ function pushStartInstance(
1477
1561
  target.push(
1478
1562
  ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
1479
1563
  );
1480
- pushInnerHTML(target, innerHTML$jscomp$5, children$jscomp$6);
1564
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
1481
1565
  }
1482
1566
  styleQueue$jscomp$0 &&
1483
1567
  hoistableState &&
1484
1568
  hoistableState.styles.add(styleQueue$jscomp$0);
1485
1569
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1486
- JSCompiler_inline_result$jscomp$5 = void 0;
1570
+ JSCompiler_inline_result$jscomp$6 = void 0;
1487
1571
  }
1488
- return JSCompiler_inline_result$jscomp$5;
1572
+ return JSCompiler_inline_result$jscomp$6;
1489
1573
  case "meta":
1490
1574
  if (
1491
- 3 === formatContext.insertionMode ||
1575
+ 4 === formatContext.insertionMode ||
1492
1576
  formatContext.tagScope & 1 ||
1493
1577
  null != props.itemProp
1494
1578
  )
1495
- var JSCompiler_inline_result$jscomp$6 = pushSelfClosing(
1579
+ var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1496
1580
  target$jscomp$0,
1497
1581
  props,
1498
1582
  "meta"
1499
1583
  );
1500
1584
  else
1501
1585
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1502
- (JSCompiler_inline_result$jscomp$6 = isFallback
1586
+ (JSCompiler_inline_result$jscomp$7 = isFallback
1503
1587
  ? null
1504
1588
  : "string" === typeof props.charSet
1505
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1506
- : "viewport" === props.name
1507
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1508
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1509
- return JSCompiler_inline_result$jscomp$6;
1589
+ ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1590
+ : "viewport" === props.name
1591
+ ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1592
+ : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1593
+ return JSCompiler_inline_result$jscomp$7;
1510
1594
  case "listing":
1511
1595
  case "pre":
1512
1596
  target$jscomp$0.push(startChunkForTag(type));
1513
- var children$jscomp$7 = null,
1514
- innerHTML$jscomp$6 = null,
1515
- propKey$jscomp$9;
1516
- for (propKey$jscomp$9 in props)
1517
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1518
- var propValue$jscomp$9 = props[propKey$jscomp$9];
1519
- if (null != propValue$jscomp$9)
1520
- switch (propKey$jscomp$9) {
1597
+ var children$jscomp$8 = null,
1598
+ innerHTML$jscomp$7 = null,
1599
+ propKey$jscomp$10;
1600
+ for (propKey$jscomp$10 in props)
1601
+ if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1602
+ var propValue$jscomp$10 = props[propKey$jscomp$10];
1603
+ if (null != propValue$jscomp$10)
1604
+ switch (propKey$jscomp$10) {
1521
1605
  case "children":
1522
- children$jscomp$7 = propValue$jscomp$9;
1606
+ children$jscomp$8 = propValue$jscomp$10;
1523
1607
  break;
1524
1608
  case "dangerouslySetInnerHTML":
1525
- innerHTML$jscomp$6 = propValue$jscomp$9;
1609
+ innerHTML$jscomp$7 = propValue$jscomp$10;
1526
1610
  break;
1527
1611
  default:
1528
1612
  pushAttribute(
1529
1613
  target$jscomp$0,
1530
- propKey$jscomp$9,
1531
- propValue$jscomp$9
1614
+ propKey$jscomp$10,
1615
+ propValue$jscomp$10
1532
1616
  );
1533
1617
  }
1534
1618
  }
1535
1619
  target$jscomp$0.push(">");
1536
- if (null != innerHTML$jscomp$6) {
1537
- if (null != children$jscomp$7) throw Error(formatProdErrorMessage(60));
1620
+ if (null != innerHTML$jscomp$7) {
1621
+ if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
1538
1622
  if (
1539
- "object" !== typeof innerHTML$jscomp$6 ||
1540
- !("__html" in innerHTML$jscomp$6)
1623
+ "object" !== typeof innerHTML$jscomp$7 ||
1624
+ !("__html" in innerHTML$jscomp$7)
1541
1625
  )
1542
1626
  throw Error(formatProdErrorMessage(61));
1543
- var html = innerHTML$jscomp$6.__html;
1627
+ var html = innerHTML$jscomp$7.__html;
1544
1628
  null !== html &&
1545
1629
  void 0 !== html &&
1546
1630
  ("string" === typeof html && 0 < html.length && "\n" === html[0]
1547
1631
  ? target$jscomp$0.push("\n", html)
1548
1632
  : target$jscomp$0.push("" + html));
1549
1633
  }
1550
- "string" === typeof children$jscomp$7 &&
1551
- "\n" === children$jscomp$7[0] &&
1634
+ "string" === typeof children$jscomp$8 &&
1635
+ "\n" === children$jscomp$8[0] &&
1552
1636
  target$jscomp$0.push("\n");
1553
- return children$jscomp$7;
1637
+ return children$jscomp$8;
1554
1638
  case "img":
1555
1639
  var src = props.src,
1556
1640
  srcSet = props.srcSet;
@@ -1592,7 +1676,7 @@ function pushStartInstance(
1592
1676
  ) {
1593
1677
  resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
1594
1678
  var input = props.crossOrigin;
1595
- var JSCompiler_inline_result$jscomp$7 =
1679
+ var JSCompiler_inline_result$jscomp$8 =
1596
1680
  "string" === typeof input
1597
1681
  ? "use-credentials" === input
1598
1682
  ? input
@@ -1602,19 +1686,20 @@ function pushStartInstance(
1602
1686
  header;
1603
1687
  headers &&
1604
1688
  0 < headers.remainingCapacity &&
1689
+ "string" !== typeof props.srcSet &&
1605
1690
  ("high" === props.fetchPriority ||
1606
1691
  500 > headers.highImagePreloads.length) &&
1607
1692
  ((header = getPreloadAsHeader(src, "image", {
1608
1693
  imageSrcSet: props.srcSet,
1609
1694
  imageSizes: props.sizes,
1610
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1695
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1611
1696
  integrity: props.integrity,
1612
1697
  nonce: props.nonce,
1613
1698
  type: props.type,
1614
1699
  fetchPriority: props.fetchPriority,
1615
1700
  referrerPolicy: props.refererPolicy
1616
1701
  })),
1617
- 2 <= (headers.remainingCapacity -= header.length))
1702
+ 0 <= (headers.remainingCapacity -= header.length + 2))
1618
1703
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
1619
1704
  headers.highImagePreloads && (headers.highImagePreloads += ", "),
1620
1705
  (headers.highImagePreloads += header))
@@ -1625,7 +1710,7 @@ function pushStartInstance(
1625
1710
  href: srcSet ? void 0 : src,
1626
1711
  imageSrcSet: srcSet,
1627
1712
  imageSizes: sizes,
1628
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1713
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1629
1714
  integrity: props.integrity,
1630
1715
  type: props.type,
1631
1716
  fetchPriority: props.fetchPriority,
@@ -1661,58 +1746,79 @@ function pushStartInstance(
1661
1746
  case "missing-glyph":
1662
1747
  break;
1663
1748
  case "head":
1664
- if (2 > formatContext.insertionMode && null === renderState.headChunks) {
1665
- renderState.headChunks = [];
1666
- var JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1667
- renderState.headChunks,
1749
+ if (2 > formatContext.insertionMode) {
1750
+ var preamble = preambleState || renderState.preamble;
1751
+ if (preamble.headChunks)
1752
+ throw Error(formatProdErrorMessage(545, "`<head>`"));
1753
+ preamble.headChunks = [];
1754
+ var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1755
+ preamble.headChunks,
1668
1756
  props,
1669
1757
  "head"
1670
1758
  );
1671
1759
  } else
1672
- JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1760
+ JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1673
1761
  target$jscomp$0,
1674
1762
  props,
1675
1763
  "head"
1676
1764
  );
1677
- return JSCompiler_inline_result$jscomp$8;
1765
+ return JSCompiler_inline_result$jscomp$9;
1766
+ case "body":
1767
+ if (2 > formatContext.insertionMode) {
1768
+ var preamble$jscomp$0 = preambleState || renderState.preamble;
1769
+ if (preamble$jscomp$0.bodyChunks)
1770
+ throw Error(formatProdErrorMessage(545, "`<body>`"));
1771
+ preamble$jscomp$0.bodyChunks = [];
1772
+ var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1773
+ preamble$jscomp$0.bodyChunks,
1774
+ props,
1775
+ "body"
1776
+ );
1777
+ } else
1778
+ JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1779
+ target$jscomp$0,
1780
+ props,
1781
+ "body"
1782
+ );
1783
+ return JSCompiler_inline_result$jscomp$10;
1678
1784
  case "html":
1679
- if (
1680
- 0 === formatContext.insertionMode &&
1681
- null === renderState.htmlChunks
1682
- ) {
1683
- renderState.htmlChunks = [""];
1684
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1685
- renderState.htmlChunks,
1785
+ if (0 === formatContext.insertionMode) {
1786
+ var preamble$jscomp$1 = preambleState || renderState.preamble;
1787
+ if (preamble$jscomp$1.htmlChunks)
1788
+ throw Error(formatProdErrorMessage(545, "`<html>`"));
1789
+ preamble$jscomp$1.htmlChunks = [""];
1790
+ var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1791
+ preamble$jscomp$1.htmlChunks,
1686
1792
  props,
1687
1793
  "html"
1688
1794
  );
1689
1795
  } else
1690
- JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1796
+ JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
1691
1797
  target$jscomp$0,
1692
1798
  props,
1693
1799
  "html"
1694
1800
  );
1695
- return JSCompiler_inline_result$jscomp$9;
1801
+ return JSCompiler_inline_result$jscomp$11;
1696
1802
  default:
1697
1803
  if (-1 !== type.indexOf("-")) {
1698
1804
  target$jscomp$0.push(startChunkForTag(type));
1699
- var children$jscomp$8 = null,
1700
- innerHTML$jscomp$7 = null,
1701
- propKey$jscomp$10;
1702
- for (propKey$jscomp$10 in props)
1703
- if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1704
- var propValue$jscomp$10 = props[propKey$jscomp$10];
1705
- if (null != propValue$jscomp$10) {
1706
- var attributeName = propKey$jscomp$10;
1707
- switch (propKey$jscomp$10) {
1805
+ var children$jscomp$9 = null,
1806
+ innerHTML$jscomp$8 = null,
1807
+ propKey$jscomp$11;
1808
+ for (propKey$jscomp$11 in props)
1809
+ if (hasOwnProperty.call(props, propKey$jscomp$11)) {
1810
+ var propValue$jscomp$11 = props[propKey$jscomp$11];
1811
+ if (null != propValue$jscomp$11) {
1812
+ var attributeName = propKey$jscomp$11;
1813
+ switch (propKey$jscomp$11) {
1708
1814
  case "children":
1709
- children$jscomp$8 = propValue$jscomp$10;
1815
+ children$jscomp$9 = propValue$jscomp$11;
1710
1816
  break;
1711
1817
  case "dangerouslySetInnerHTML":
1712
- innerHTML$jscomp$7 = propValue$jscomp$10;
1818
+ innerHTML$jscomp$8 = propValue$jscomp$11;
1713
1819
  break;
1714
1820
  case "style":
1715
- pushStyleAttribute(target$jscomp$0, propValue$jscomp$10);
1821
+ pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
1716
1822
  break;
1717
1823
  case "suppressContentEditableWarning":
1718
1824
  case "suppressHydrationWarning":
@@ -1722,18 +1828,18 @@ function pushStartInstance(
1722
1828
  attributeName = "class";
1723
1829
  default:
1724
1830
  if (
1725
- isAttributeNameSafe(propKey$jscomp$10) &&
1726
- "function" !== typeof propValue$jscomp$10 &&
1727
- "symbol" !== typeof propValue$jscomp$10 &&
1728
- !1 !== propValue$jscomp$10
1831
+ isAttributeNameSafe(propKey$jscomp$11) &&
1832
+ "function" !== typeof propValue$jscomp$11 &&
1833
+ "symbol" !== typeof propValue$jscomp$11 &&
1834
+ !1 !== propValue$jscomp$11
1729
1835
  ) {
1730
- if (!0 === propValue$jscomp$10) propValue$jscomp$10 = "";
1731
- else if ("object" === typeof propValue$jscomp$10) continue;
1836
+ if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
1837
+ else if ("object" === typeof propValue$jscomp$11) continue;
1732
1838
  target$jscomp$0.push(
1733
1839
  " ",
1734
1840
  attributeName,
1735
1841
  '="',
1736
- escapeTextForBrowser(propValue$jscomp$10),
1842
+ escapeTextForBrowser(propValue$jscomp$11),
1737
1843
  '"'
1738
1844
  );
1739
1845
  }
@@ -1741,8 +1847,8 @@ function pushStartInstance(
1741
1847
  }
1742
1848
  }
1743
1849
  target$jscomp$0.push(">");
1744
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$7, children$jscomp$8);
1745
- return children$jscomp$8;
1850
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1851
+ return children$jscomp$9;
1746
1852
  }
1747
1853
  }
1748
1854
  return pushStartGenericElement(target$jscomp$0, props, type);
@@ -1753,6 +1859,21 @@ function endChunkForTag(tag) {
1753
1859
  void 0 === chunk && ((chunk = "</" + tag + ">"), endTagCache.set(tag, chunk));
1754
1860
  return chunk;
1755
1861
  }
1862
+ function hoistPreambleState(renderState, preambleState) {
1863
+ renderState = renderState.preamble;
1864
+ null === renderState.htmlChunks &&
1865
+ preambleState.htmlChunks &&
1866
+ ((renderState.htmlChunks = preambleState.htmlChunks),
1867
+ (preambleState.contribution |= 1));
1868
+ null === renderState.headChunks &&
1869
+ preambleState.headChunks &&
1870
+ ((renderState.headChunks = preambleState.headChunks),
1871
+ (preambleState.contribution |= 4));
1872
+ null === renderState.bodyChunks &&
1873
+ preambleState.bodyChunks &&
1874
+ ((renderState.bodyChunks = preambleState.bodyChunks),
1875
+ (preambleState.contribution |= 2));
1876
+ }
1756
1877
  function writeBootstrap(destination, renderState) {
1757
1878
  renderState = renderState.bootstrapChunks;
1758
1879
  for (var i = 0; i < renderState.length - 1; i++)
@@ -1769,10 +1890,18 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
1769
1890
  destination.push(renderState);
1770
1891
  return destination.push('"></template>');
1771
1892
  }
1893
+ function writePreambleContribution(destination, preambleState) {
1894
+ preambleState = preambleState.contribution;
1895
+ 0 !== preambleState &&
1896
+ (destination.push("\x3c!--"),
1897
+ destination.push("" + preambleState),
1898
+ destination.push("--\x3e"));
1899
+ }
1772
1900
  function writeStartSegment(destination, renderState, formatContext, id) {
1773
1901
  switch (formatContext.insertionMode) {
1774
1902
  case 0:
1775
1903
  case 1:
1904
+ case 3:
1776
1905
  case 2:
1777
1906
  return (
1778
1907
  destination.push('<div hidden id="'),
@@ -1781,7 +1910,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
1781
1910
  destination.push(renderState),
1782
1911
  destination.push('">')
1783
1912
  );
1784
- case 3:
1913
+ case 4:
1785
1914
  return (
1786
1915
  destination.push('<svg aria-hidden="true" style="display:none" id="'),
1787
1916
  destination.push(renderState.segmentPrefix),
@@ -1789,7 +1918,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
1789
1918
  destination.push(renderState),
1790
1919
  destination.push('">')
1791
1920
  );
1792
- case 4:
1921
+ case 5:
1793
1922
  return (
1794
1923
  destination.push('<math aria-hidden="true" style="display:none" id="'),
1795
1924
  destination.push(renderState.segmentPrefix),
@@ -1797,7 +1926,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
1797
1926
  destination.push(renderState),
1798
1927
  destination.push('">')
1799
1928
  );
1800
- case 5:
1929
+ case 6:
1801
1930
  return (
1802
1931
  destination.push('<table hidden id="'),
1803
1932
  destination.push(renderState.segmentPrefix),
@@ -1805,7 +1934,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
1805
1934
  destination.push(renderState),
1806
1935
  destination.push('">')
1807
1936
  );
1808
- case 6:
1937
+ case 7:
1809
1938
  return (
1810
1939
  destination.push('<table hidden><tbody id="'),
1811
1940
  destination.push(renderState.segmentPrefix),
@@ -1813,7 +1942,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
1813
1942
  destination.push(renderState),
1814
1943
  destination.push('">')
1815
1944
  );
1816
- case 7:
1945
+ case 8:
1817
1946
  return (
1818
1947
  destination.push('<table hidden><tr id="'),
1819
1948
  destination.push(renderState.segmentPrefix),
@@ -1821,7 +1950,7 @@ function writeStartSegment(destination, renderState, formatContext, id) {
1821
1950
  destination.push(renderState),
1822
1951
  destination.push('">')
1823
1952
  );
1824
- case 8:
1953
+ case 9:
1825
1954
  return (
1826
1955
  destination.push('<table hidden><colgroup id="'),
1827
1956
  destination.push(renderState.segmentPrefix),
@@ -1837,19 +1966,20 @@ function writeEndSegment(destination, formatContext) {
1837
1966
  switch (formatContext.insertionMode) {
1838
1967
  case 0:
1839
1968
  case 1:
1969
+ case 3:
1840
1970
  case 2:
1841
1971
  return destination.push("</div>");
1842
- case 3:
1843
- return destination.push("</svg>");
1844
1972
  case 4:
1845
- return destination.push("</math>");
1973
+ return destination.push("</svg>");
1846
1974
  case 5:
1847
- return destination.push("</table>");
1975
+ return destination.push("</math>");
1848
1976
  case 6:
1849
- return destination.push("</tbody></table>");
1977
+ return destination.push("</table>");
1850
1978
  case 7:
1851
- return destination.push("</tr></table>");
1979
+ return destination.push("</tbody></table>");
1852
1980
  case 8:
1981
+ return destination.push("</tr></table>");
1982
+ case 9:
1853
1983
  return destination.push("</colgroup></table>");
1854
1984
  default:
1855
1985
  throw Error(formatProdErrorMessage(397));
@@ -2122,7 +2252,7 @@ function prefetchDNS(href) {
2122
2252
  escapeHrefForLinkHeaderURLContextReplacer
2123
2253
  ) +
2124
2254
  ">; rel=dns-prefetch"),
2125
- 2 <= (resumableState.remainingCapacity -= header.length));
2255
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2126
2256
  JSCompiler_temp
2127
2257
  ? ((renderState.resets.dns[href] = null),
2128
2258
  resumableState.preconnects && (resumableState.preconnects += ", "),
@@ -2145,8 +2275,8 @@ function preconnect(href, crossOrigin) {
2145
2275
  "use-credentials" === crossOrigin
2146
2276
  ? "credentials"
2147
2277
  : "string" === typeof crossOrigin
2148
- ? "anonymous"
2149
- : "default";
2278
+ ? "anonymous"
2279
+ : "default";
2150
2280
  if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
2151
2281
  resumableState.connectResources[bucket][href] = null;
2152
2282
  resumableState = renderState.headers;
@@ -2171,7 +2301,7 @@ function preconnect(href, crossOrigin) {
2171
2301
  }
2172
2302
  JSCompiler_temp =
2173
2303
  ((header = JSCompiler_temp),
2174
- 2 <= (resumableState.remainingCapacity -= header.length));
2304
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2175
2305
  }
2176
2306
  JSCompiler_temp
2177
2307
  ? ((renderState.resets.connect[bucket][href] = null),
@@ -2211,9 +2341,10 @@ function preload(href, as, options) {
2211
2341
  var header;
2212
2342
  resumableState &&
2213
2343
  0 < resumableState.remainingCapacity &&
2344
+ "string" !== typeof imageSrcSet &&
2214
2345
  "high" === fetchPriority &&
2215
2346
  ((header = getPreloadAsHeader(href, as, options)),
2216
- 2 <= (resumableState.remainingCapacity -= header.length))
2347
+ 0 <= (resumableState.remainingCapacity -= header.length + 2))
2217
2348
  ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
2218
2349
  resumableState.highImagePreloads &&
2219
2350
  (resumableState.highImagePreloads += ", "),
@@ -2279,7 +2410,7 @@ function preload(href, as, options) {
2279
2410
  0 < resumableState.remainingCapacity &&
2280
2411
  "font" === as &&
2281
2412
  ((key = getPreloadAsHeader(href, as, options)),
2282
- 2 <= (resumableState.remainingCapacity -= key.length))
2413
+ 0 <= (resumableState.remainingCapacity -= key.length + 2))
2283
2414
  )
2284
2415
  (renderState.resets.font[href] = PRELOAD_NO_CREDS),
2285
2416
  resumableState.fontPreloads &&
@@ -2515,16 +2646,17 @@ function createRenderState(resumableState, generateStaticMarkup) {
2515
2646
  "\x3c/script>"
2516
2647
  );
2517
2648
  bootstrapScriptContent = idPrefix + "P:";
2518
- var JSCompiler_object_inline_segmentPrefix_1483 = idPrefix + "S:";
2649
+ var JSCompiler_object_inline_segmentPrefix_1542 = idPrefix + "S:";
2519
2650
  idPrefix += "B:";
2520
- var JSCompiler_object_inline_preconnects_1497 = new Set(),
2521
- JSCompiler_object_inline_fontPreloads_1498 = new Set(),
2522
- JSCompiler_object_inline_highImagePreloads_1499 = new Set(),
2523
- JSCompiler_object_inline_styles_1500 = new Map(),
2524
- JSCompiler_object_inline_bootstrapScripts_1501 = new Set(),
2525
- JSCompiler_object_inline_scripts_1502 = new Set(),
2526
- JSCompiler_object_inline_bulkPreloads_1503 = new Set(),
2527
- JSCompiler_object_inline_preloads_1504 = {
2651
+ var JSCompiler_object_inline_preamble_1545 = createPreambleState(),
2652
+ JSCompiler_object_inline_preconnects_1555 = new Set(),
2653
+ JSCompiler_object_inline_fontPreloads_1556 = new Set(),
2654
+ JSCompiler_object_inline_highImagePreloads_1557 = new Set(),
2655
+ JSCompiler_object_inline_styles_1558 = new Map(),
2656
+ JSCompiler_object_inline_bootstrapScripts_1559 = new Set(),
2657
+ JSCompiler_object_inline_scripts_1560 = new Set(),
2658
+ JSCompiler_object_inline_bulkPreloads_1561 = new Set(),
2659
+ JSCompiler_object_inline_preloads_1562 = {
2528
2660
  images: new Map(),
2529
2661
  stylesheets: new Map(),
2530
2662
  scripts: new Map(),
@@ -2553,15 +2685,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2553
2685
  "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
2554
2686
  ? void 0
2555
2687
  : "use-credentials" === scriptConfig.crossOrigin
2556
- ? "use-credentials"
2557
- : ""));
2688
+ ? "use-credentials"
2689
+ : ""));
2558
2690
  scriptConfig = resumableState;
2559
2691
  var href = src;
2560
2692
  scriptConfig.scriptResources[href] = null;
2561
2693
  scriptConfig.moduleScriptResources[href] = null;
2562
2694
  scriptConfig = [];
2563
2695
  pushLinkImpl(scriptConfig, props);
2564
- JSCompiler_object_inline_bootstrapScripts_1501.add(scriptConfig);
2696
+ JSCompiler_object_inline_bootstrapScripts_1559.add(scriptConfig);
2565
2697
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
2566
2698
  "string" === typeof integrity &&
2567
2699
  bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2594,15 +2726,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2594
2726
  "string" === typeof props || null == props.crossOrigin
2595
2727
  ? void 0
2596
2728
  : "use-credentials" === props.crossOrigin
2597
- ? "use-credentials"
2598
- : "")),
2729
+ ? "use-credentials"
2730
+ : "")),
2599
2731
  (props = resumableState),
2600
2732
  (scriptConfig = i),
2601
2733
  (props.scriptResources[scriptConfig] = null),
2602
2734
  (props.moduleScriptResources[scriptConfig] = null),
2603
2735
  (props = []),
2604
2736
  pushLinkImpl(props, integrity),
2605
- JSCompiler_object_inline_bootstrapScripts_1501.add(props),
2737
+ JSCompiler_object_inline_bootstrapScripts_1559.add(props),
2606
2738
  bootstrapChunks.push(
2607
2739
  '<script type="module" src="',
2608
2740
  escapeTextForBrowser(i)
@@ -2617,11 +2749,10 @@ function createRenderState(resumableState, generateStaticMarkup) {
2617
2749
  bootstrapChunks.push('" async="">\x3c/script>');
2618
2750
  return {
2619
2751
  placeholderPrefix: bootstrapScriptContent,
2620
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1483,
2752
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1542,
2621
2753
  boundaryPrefix: idPrefix,
2622
2754
  startInlineScript: "<script>",
2623
- htmlChunks: null,
2624
- headChunks: null,
2755
+ preamble: JSCompiler_object_inline_preamble_1545,
2625
2756
  externalRuntimeScript: null,
2626
2757
  bootstrapChunks: bootstrapChunks,
2627
2758
  importMapChunks: [],
@@ -2637,14 +2768,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2637
2768
  charsetChunks: [],
2638
2769
  viewportChunks: [],
2639
2770
  hoistableChunks: [],
2640
- preconnects: JSCompiler_object_inline_preconnects_1497,
2641
- fontPreloads: JSCompiler_object_inline_fontPreloads_1498,
2642
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1499,
2643
- styles: JSCompiler_object_inline_styles_1500,
2644
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1501,
2645
- scripts: JSCompiler_object_inline_scripts_1502,
2646
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1503,
2647
- preloads: JSCompiler_object_inline_preloads_1504,
2771
+ preconnects: JSCompiler_object_inline_preconnects_1555,
2772
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1556,
2773
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1557,
2774
+ styles: JSCompiler_object_inline_styles_1558,
2775
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1559,
2776
+ scripts: JSCompiler_object_inline_scripts_1560,
2777
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1561,
2778
+ preloads: JSCompiler_object_inline_preloads_1562,
2648
2779
  stylesToHoist: !1,
2649
2780
  generateStaticMarkup: generateStaticMarkup
2650
2781
  };
@@ -2659,7 +2790,12 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
2659
2790
  (target = !0));
2660
2791
  return target;
2661
2792
  }
2662
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2793
+ function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
2794
+ renderState.generateStaticMarkup ||
2795
+ (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
2796
+ }
2797
+ var bind = Function.prototype.bind,
2798
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2663
2799
  function getComponentNameFromType(type) {
2664
2800
  if (null == type) return null;
2665
2801
  if ("function" === typeof type)
@@ -2670,8 +2806,6 @@ function getComponentNameFromType(type) {
2670
2806
  switch (type) {
2671
2807
  case REACT_FRAGMENT_TYPE:
2672
2808
  return "Fragment";
2673
- case REACT_PORTAL_TYPE:
2674
- return "Portal";
2675
2809
  case REACT_PROFILER_TYPE:
2676
2810
  return "Profiler";
2677
2811
  case REACT_STRICT_MODE_TYPE:
@@ -2680,9 +2814,13 @@ function getComponentNameFromType(type) {
2680
2814
  return "Suspense";
2681
2815
  case REACT_SUSPENSE_LIST_TYPE:
2682
2816
  return "SuspenseList";
2817
+ case REACT_ACTIVITY_TYPE:
2818
+ return "Activity";
2683
2819
  }
2684
2820
  if ("object" === typeof type)
2685
2821
  switch (type.$$typeof) {
2822
+ case REACT_PORTAL_TYPE:
2823
+ return "Portal";
2686
2824
  case REACT_CONTEXT_TYPE:
2687
2825
  return (type.displayName || "Context") + ".Provider";
2688
2826
  case REACT_CONSUMER_TYPE:
@@ -2758,18 +2896,15 @@ function switchContext(newSnapshot) {
2758
2896
  (null === prev
2759
2897
  ? pushAllNext(newSnapshot)
2760
2898
  : null === newSnapshot
2761
- ? popAllPrevious(prev)
2762
- : prev.depth === newSnapshot.depth
2763
- ? popToNearestCommonAncestor(prev, newSnapshot)
2764
- : prev.depth > newSnapshot.depth
2765
- ? popPreviousToCommonLevel(prev, newSnapshot)
2766
- : popNextToCommonLevel(prev, newSnapshot),
2899
+ ? popAllPrevious(prev)
2900
+ : prev.depth === newSnapshot.depth
2901
+ ? popToNearestCommonAncestor(prev, newSnapshot)
2902
+ : prev.depth > newSnapshot.depth
2903
+ ? popPreviousToCommonLevel(prev, newSnapshot)
2904
+ : popNextToCommonLevel(prev, newSnapshot),
2767
2905
  (currentActiveSnapshot = newSnapshot));
2768
2906
  }
2769
2907
  var classComponentUpdater = {
2770
- isMounted: function () {
2771
- return !1;
2772
- },
2773
2908
  enqueueSetState: function (inst, payload) {
2774
2909
  inst = inst._reactInternals;
2775
2910
  null !== inst.queue && inst.queue.push(payload);
@@ -2902,9 +3037,9 @@ function createWorkInProgressHook() {
2902
3037
  (firstWorkInProgressHook = workInProgressHook = createHook()))
2903
3038
  : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
2904
3039
  : null === workInProgressHook.next
2905
- ? ((isReRender = !1),
2906
- (workInProgressHook = workInProgressHook.next = createHook()))
2907
- : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
3040
+ ? ((isReRender = !1),
3041
+ (workInProgressHook = workInProgressHook.next = createHook()))
3042
+ : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
2908
3043
  return workInProgressHook;
2909
3044
  }
2910
3045
  function getThenableStateAfterSuspending() {
@@ -2951,8 +3086,8 @@ function useReducer(reducer, initialArg, init) {
2951
3086
  ? initialArg()
2952
3087
  : initialArg
2953
3088
  : void 0 !== init
2954
- ? init(initialArg)
2955
- : initialArg;
3089
+ ? init(initialArg)
3090
+ : initialArg;
2956
3091
  workInProgressHook.memoizedState = reducer;
2957
3092
  reducer = workInProgressHook.queue = { last: null, dispatch: null };
2958
3093
  reducer = reducer.dispatch = dispatchAction.bind(
@@ -3081,94 +3216,102 @@ function unsupportedRefresh() {
3081
3216
  }
3082
3217
  function noop$1() {}
3083
3218
  var HooksDispatcher = {
3084
- readContext: function (context) {
3085
- return context._currentValue2;
3086
- },
3087
- use: function (usable) {
3088
- if (null !== usable && "object" === typeof usable) {
3089
- if ("function" === typeof usable.then) return unwrapThenable(usable);
3090
- if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
3219
+ readContext: function (context) {
3220
+ return context._currentValue2;
3221
+ },
3222
+ use: function (usable) {
3223
+ if (null !== usable && "object" === typeof usable) {
3224
+ if ("function" === typeof usable.then) return unwrapThenable(usable);
3225
+ if (usable.$$typeof === REACT_CONTEXT_TYPE)
3226
+ return usable._currentValue2;
3227
+ }
3228
+ throw Error(formatProdErrorMessage(438, String(usable)));
3229
+ },
3230
+ useContext: function (context) {
3231
+ resolveCurrentlyRenderingComponent();
3232
+ return context._currentValue2;
3233
+ },
3234
+ useMemo: useMemo,
3235
+ useReducer: useReducer,
3236
+ useRef: function (initialValue) {
3237
+ currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3238
+ workInProgressHook = createWorkInProgressHook();
3239
+ var previousRef = workInProgressHook.memoizedState;
3240
+ return null === previousRef
3241
+ ? ((initialValue = { current: initialValue }),
3242
+ (workInProgressHook.memoizedState = initialValue))
3243
+ : previousRef;
3244
+ },
3245
+ useState: function (initialState) {
3246
+ return useReducer(basicStateReducer, initialState);
3247
+ },
3248
+ useInsertionEffect: noop$1,
3249
+ useLayoutEffect: noop$1,
3250
+ useCallback: function (callback, deps) {
3251
+ return useMemo(function () {
3252
+ return callback;
3253
+ }, deps);
3254
+ },
3255
+ useImperativeHandle: noop$1,
3256
+ useEffect: noop$1,
3257
+ useDebugValue: noop$1,
3258
+ useDeferredValue: function (value, initialValue) {
3259
+ resolveCurrentlyRenderingComponent();
3260
+ return void 0 !== initialValue ? initialValue : value;
3261
+ },
3262
+ useTransition: function () {
3263
+ resolveCurrentlyRenderingComponent();
3264
+ return [!1, unsupportedStartTransition];
3265
+ },
3266
+ useId: function () {
3267
+ var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3268
+ var overflow = JSCompiler_inline_result.overflow;
3269
+ JSCompiler_inline_result = JSCompiler_inline_result.id;
3270
+ JSCompiler_inline_result =
3271
+ (
3272
+ JSCompiler_inline_result &
3273
+ ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3274
+ ).toString(32) + overflow;
3275
+ var resumableState = currentResumableState;
3276
+ if (null === resumableState) throw Error(formatProdErrorMessage(404));
3277
+ overflow = localIdCounter++;
3278
+ JSCompiler_inline_result =
3279
+ "\u00ab" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3280
+ 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3281
+ return JSCompiler_inline_result + "\u00bb";
3282
+ },
3283
+ useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3284
+ if (void 0 === getServerSnapshot)
3285
+ throw Error(formatProdErrorMessage(407));
3286
+ return getServerSnapshot();
3287
+ },
3288
+ useOptimistic: function (passthrough) {
3289
+ resolveCurrentlyRenderingComponent();
3290
+ return [passthrough, unsupportedSetOptimisticState];
3291
+ },
3292
+ useActionState: useActionState,
3293
+ useFormState: useActionState,
3294
+ useHostTransitionStatus: function () {
3295
+ resolveCurrentlyRenderingComponent();
3296
+ return sharedNotPendingObject;
3297
+ },
3298
+ useMemoCache: function (size) {
3299
+ for (var data = Array(size), i = 0; i < size; i++)
3300
+ data[i] = REACT_MEMO_CACHE_SENTINEL;
3301
+ return data;
3302
+ },
3303
+ useCacheRefresh: function () {
3304
+ return unsupportedRefresh;
3091
3305
  }
3092
- throw Error(formatProdErrorMessage(438, String(usable)));
3093
- },
3094
- useContext: function (context) {
3095
- resolveCurrentlyRenderingComponent();
3096
- return context._currentValue2;
3097
- },
3098
- useMemo: useMemo,
3099
- useReducer: useReducer,
3100
- useRef: function (initialValue) {
3101
- currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
3102
- workInProgressHook = createWorkInProgressHook();
3103
- var previousRef = workInProgressHook.memoizedState;
3104
- return null === previousRef
3105
- ? ((initialValue = { current: initialValue }),
3106
- (workInProgressHook.memoizedState = initialValue))
3107
- : previousRef;
3108
- },
3109
- useState: function (initialState) {
3110
- return useReducer(basicStateReducer, initialState);
3111
- },
3112
- useInsertionEffect: noop$1,
3113
- useLayoutEffect: noop$1,
3114
- useCallback: function (callback, deps) {
3115
- return useMemo(function () {
3116
- return callback;
3117
- }, deps);
3118
- },
3119
- useImperativeHandle: noop$1,
3120
- useEffect: noop$1,
3121
- useDebugValue: noop$1,
3122
- useDeferredValue: function (value, initialValue) {
3123
- resolveCurrentlyRenderingComponent();
3124
- return void 0 !== initialValue ? initialValue : value;
3125
- },
3126
- useTransition: function () {
3127
- resolveCurrentlyRenderingComponent();
3128
- return [!1, unsupportedStartTransition];
3129
- },
3130
- useId: function () {
3131
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3132
- var overflow = JSCompiler_inline_result.overflow;
3133
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3134
- JSCompiler_inline_result =
3135
- (
3136
- JSCompiler_inline_result &
3137
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3138
- ).toString(32) + overflow;
3139
- var resumableState = currentResumableState;
3140
- if (null === resumableState) throw Error(formatProdErrorMessage(404));
3141
- overflow = localIdCounter++;
3142
- JSCompiler_inline_result =
3143
- ":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
3144
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3145
- return JSCompiler_inline_result + ":";
3146
- },
3147
- useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3148
- if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
3149
- return getServerSnapshot();
3150
3306
  },
3151
- useCacheRefresh: function () {
3152
- return unsupportedRefresh;
3153
- },
3154
- useHostTransitionStatus: function () {
3155
- resolveCurrentlyRenderingComponent();
3156
- return sharedNotPendingObject;
3157
- },
3158
- useOptimistic: function (passthrough) {
3159
- resolveCurrentlyRenderingComponent();
3160
- return [passthrough, unsupportedSetOptimisticState];
3161
- }
3162
- };
3163
- HooksDispatcher.useFormState = useActionState;
3164
- HooksDispatcher.useActionState = useActionState;
3165
- var currentResumableState = null,
3307
+ currentResumableState = null,
3166
3308
  DefaultAsyncDispatcher = {
3167
3309
  getCacheForType: function () {
3168
3310
  throw Error(formatProdErrorMessage(248));
3169
3311
  }
3170
3312
  },
3171
- prefix;
3313
+ prefix,
3314
+ suffix;
3172
3315
  function describeBuiltInComponentFrame(name) {
3173
3316
  if (void 0 === prefix)
3174
3317
  try {
@@ -3176,8 +3319,14 @@ function describeBuiltInComponentFrame(name) {
3176
3319
  } catch (x) {
3177
3320
  var match = x.stack.trim().match(/\n( *(at )?)/);
3178
3321
  prefix = (match && match[1]) || "";
3322
+ suffix =
3323
+ -1 < x.stack.indexOf("\n at")
3324
+ ? " (<anonymous>)"
3325
+ : -1 < x.stack.indexOf("@")
3326
+ ? "@unknown:0:0"
3327
+ : "";
3179
3328
  }
3180
- return "\n" + prefix + name;
3329
+ return "\n" + prefix + name + suffix;
3181
3330
  }
3182
3331
  var reentry = !1;
3183
3332
  function describeNativeComponentFrame(fn, construct) {
@@ -3185,62 +3334,64 @@ function describeNativeComponentFrame(fn, construct) {
3185
3334
  reentry = !0;
3186
3335
  var previousPrepareStackTrace = Error.prepareStackTrace;
3187
3336
  Error.prepareStackTrace = void 0;
3188
- var RunInRootFrame = {
3189
- DetermineComponentFrameRoot: function () {
3190
- try {
3191
- if (construct) {
3192
- var Fake = function () {
3193
- throw Error();
3194
- };
3195
- Object.defineProperty(Fake.prototype, "props", {
3196
- set: function () {
3337
+ try {
3338
+ var RunInRootFrame = {
3339
+ DetermineComponentFrameRoot: function () {
3340
+ try {
3341
+ if (construct) {
3342
+ var Fake = function () {
3197
3343
  throw Error();
3344
+ };
3345
+ Object.defineProperty(Fake.prototype, "props", {
3346
+ set: function () {
3347
+ throw Error();
3348
+ }
3349
+ });
3350
+ if ("object" === typeof Reflect && Reflect.construct) {
3351
+ try {
3352
+ Reflect.construct(Fake, []);
3353
+ } catch (x) {
3354
+ var control = x;
3355
+ }
3356
+ Reflect.construct(fn, [], Fake);
3357
+ } else {
3358
+ try {
3359
+ Fake.call();
3360
+ } catch (x$24) {
3361
+ control = x$24;
3362
+ }
3363
+ fn.call(Fake.prototype);
3198
3364
  }
3199
- });
3200
- if ("object" === typeof Reflect && Reflect.construct) {
3201
- try {
3202
- Reflect.construct(Fake, []);
3203
- } catch (x) {
3204
- var control = x;
3205
- }
3206
- Reflect.construct(fn, [], Fake);
3207
3365
  } else {
3208
3366
  try {
3209
- Fake.call();
3210
- } catch (x$24) {
3211
- control = x$24;
3367
+ throw Error();
3368
+ } catch (x$25) {
3369
+ control = x$25;
3212
3370
  }
3213
- fn.call(Fake.prototype);
3214
- }
3215
- } else {
3216
- try {
3217
- throw Error();
3218
- } catch (x$25) {
3219
- control = x$25;
3371
+ (Fake = fn()) &&
3372
+ "function" === typeof Fake.catch &&
3373
+ Fake.catch(function () {});
3220
3374
  }
3221
- (Fake = fn()) &&
3222
- "function" === typeof Fake.catch &&
3223
- Fake.catch(function () {});
3375
+ } catch (sample) {
3376
+ if (sample && control && "string" === typeof sample.stack)
3377
+ return [sample.stack, control.stack];
3224
3378
  }
3225
- } catch (sample) {
3226
- if (sample && control && "string" === typeof sample.stack)
3227
- return [sample.stack, control.stack];
3379
+ return [null, null];
3228
3380
  }
3229
- return [null, null];
3230
- }
3231
- };
3232
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
3233
- "DetermineComponentFrameRoot";
3234
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
3235
- RunInRootFrame.DetermineComponentFrameRoot,
3236
- "name"
3237
- );
3238
- namePropDescriptor &&
3239
- namePropDescriptor.configurable &&
3240
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", {
3241
- value: "DetermineComponentFrameRoot"
3242
- });
3243
- try {
3381
+ };
3382
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
3383
+ "DetermineComponentFrameRoot";
3384
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
3385
+ RunInRootFrame.DetermineComponentFrameRoot,
3386
+ "name"
3387
+ );
3388
+ namePropDescriptor &&
3389
+ namePropDescriptor.configurable &&
3390
+ Object.defineProperty(
3391
+ RunInRootFrame.DetermineComponentFrameRoot,
3392
+ "name",
3393
+ { value: "DetermineComponentFrameRoot" }
3394
+ );
3244
3395
  var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
3245
3396
  sampleStack = _RunInRootFrame$Deter[0],
3246
3397
  controlStack = _RunInRootFrame$Deter[1];
@@ -3311,11 +3462,107 @@ function describeNativeComponentFrame(fn, construct) {
3311
3462
  ? describeBuiltInComponentFrame(previousPrepareStackTrace)
3312
3463
  : "";
3313
3464
  }
3465
+ function describeComponentStackByType(type) {
3466
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3467
+ if ("function" === typeof type)
3468
+ return type.prototype && type.prototype.isReactComponent
3469
+ ? describeNativeComponentFrame(type, !0)
3470
+ : describeNativeComponentFrame(type, !1);
3471
+ if ("object" === typeof type && null !== type) {
3472
+ switch (type.$$typeof) {
3473
+ case REACT_FORWARD_REF_TYPE:
3474
+ return describeNativeComponentFrame(type.render, !1);
3475
+ case REACT_MEMO_TYPE:
3476
+ return describeNativeComponentFrame(type.type, !1);
3477
+ case REACT_LAZY_TYPE:
3478
+ var lazyComponent = type,
3479
+ payload = lazyComponent._payload;
3480
+ lazyComponent = lazyComponent._init;
3481
+ try {
3482
+ type = lazyComponent(payload);
3483
+ } catch (x) {
3484
+ return describeBuiltInComponentFrame("Lazy");
3485
+ }
3486
+ return describeComponentStackByType(type);
3487
+ }
3488
+ if ("string" === typeof type.name)
3489
+ return (
3490
+ (payload = type.env),
3491
+ describeBuiltInComponentFrame(
3492
+ type.name + (payload ? " [" + payload + "]" : "")
3493
+ )
3494
+ );
3495
+ }
3496
+ switch (type) {
3497
+ case REACT_SUSPENSE_LIST_TYPE:
3498
+ return describeBuiltInComponentFrame("SuspenseList");
3499
+ case REACT_SUSPENSE_TYPE:
3500
+ return describeBuiltInComponentFrame("Suspense");
3501
+ }
3502
+ return "";
3503
+ }
3314
3504
  function defaultErrorHandler(error) {
3315
- console.error(error);
3505
+ if (
3506
+ "object" === typeof error &&
3507
+ null !== error &&
3508
+ "string" === typeof error.environmentName
3509
+ ) {
3510
+ var JSCompiler_inline_result = error.environmentName;
3511
+ error = [error].slice(0);
3512
+ "string" === typeof error[0]
3513
+ ? error.splice(
3514
+ 0,
3515
+ 1,
3516
+ "[%s] " + error[0],
3517
+ " " + JSCompiler_inline_result + " "
3518
+ )
3519
+ : error.splice(0, 0, "[%s] ", " " + JSCompiler_inline_result + " ");
3520
+ error.unshift(console);
3521
+ JSCompiler_inline_result = bind.apply(console.error, error);
3522
+ JSCompiler_inline_result();
3523
+ } else console.error(error);
3316
3524
  return null;
3317
3525
  }
3318
3526
  function noop() {}
3527
+ function RequestInstance(
3528
+ resumableState,
3529
+ renderState,
3530
+ rootFormatContext,
3531
+ progressiveChunkSize,
3532
+ onError,
3533
+ onAllReady,
3534
+ onShellReady,
3535
+ onShellError,
3536
+ onFatalError,
3537
+ onPostpone,
3538
+ formState
3539
+ ) {
3540
+ var abortSet = new Set();
3541
+ this.destination = null;
3542
+ this.flushScheduled = !1;
3543
+ this.resumableState = resumableState;
3544
+ this.renderState = renderState;
3545
+ this.rootFormatContext = rootFormatContext;
3546
+ this.progressiveChunkSize =
3547
+ void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3548
+ this.status = 10;
3549
+ this.fatalError = null;
3550
+ this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3551
+ this.completedPreambleSegments = this.completedRootSegment = null;
3552
+ this.abortableTasks = abortSet;
3553
+ this.pingedTasks = [];
3554
+ this.clientRenderedBoundaries = [];
3555
+ this.completedBoundaries = [];
3556
+ this.partialBoundaries = [];
3557
+ this.trackedPostpones = null;
3558
+ this.onError = void 0 === onError ? defaultErrorHandler : onError;
3559
+ this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3560
+ this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3561
+ this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3562
+ this.onShellError = void 0 === onShellError ? noop : onShellError;
3563
+ this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3564
+ this.formState = void 0 === formState ? null : formState;
3565
+ }
3319
3566
  function createRequest(
3320
3567
  children,
3321
3568
  resumableState,
@@ -3330,36 +3577,19 @@ function createRequest(
3330
3577
  onPostpone,
3331
3578
  formState
3332
3579
  ) {
3333
- var pingedTasks = [],
3334
- abortSet = new Set();
3335
- resumableState = {
3336
- destination: null,
3337
- flushScheduled: !1,
3338
- resumableState: resumableState,
3339
- renderState: renderState,
3340
- rootFormatContext: rootFormatContext,
3341
- progressiveChunkSize:
3342
- void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize,
3343
- status: 0,
3344
- fatalError: null,
3345
- nextSegmentId: 0,
3346
- allPendingTasks: 0,
3347
- pendingRootTasks: 0,
3348
- completedRootSegment: null,
3349
- abortableTasks: abortSet,
3350
- pingedTasks: pingedTasks,
3351
- clientRenderedBoundaries: [],
3352
- completedBoundaries: [],
3353
- partialBoundaries: [],
3354
- trackedPostpones: null,
3355
- onError: void 0 === onError ? defaultErrorHandler : onError,
3356
- onPostpone: void 0 === onPostpone ? noop : onPostpone,
3357
- onAllReady: void 0 === onAllReady ? noop : onAllReady,
3358
- onShellReady: void 0 === onShellReady ? noop : onShellReady,
3359
- onShellError: void 0 === onShellError ? noop : onShellError,
3360
- onFatalError: void 0 === onFatalError ? noop : onFatalError,
3361
- formState: void 0 === formState ? null : formState
3362
- };
3580
+ resumableState = new RequestInstance(
3581
+ resumableState,
3582
+ renderState,
3583
+ rootFormatContext,
3584
+ progressiveChunkSize,
3585
+ onError,
3586
+ onAllReady,
3587
+ onShellReady,
3588
+ onShellError,
3589
+ onFatalError,
3590
+ onPostpone,
3591
+ formState
3592
+ );
3363
3593
  renderState = createPendingSegment(
3364
3594
  resumableState,
3365
3595
  0,
@@ -3377,16 +3607,17 @@ function createRequest(
3377
3607
  null,
3378
3608
  renderState,
3379
3609
  null,
3380
- abortSet,
3610
+ null,
3611
+ resumableState.abortableTasks,
3381
3612
  null,
3382
3613
  rootFormatContext,
3383
- emptyContextObject,
3384
3614
  null,
3385
3615
  emptyTreeContext,
3386
3616
  null,
3387
3617
  !1
3388
3618
  );
3389
- pingedTasks.push(children);
3619
+ pushComponentStack(children);
3620
+ resumableState.pingedTasks.push(children);
3390
3621
  return resumableState;
3391
3622
  }
3392
3623
  var currentRequest = null;
@@ -3396,7 +3627,12 @@ function pingTask(request, task) {
3396
3627
  ((request.flushScheduled = null !== request.destination),
3397
3628
  performWork(request));
3398
3629
  }
3399
- function createSuspenseBoundary(request, fallbackAbortableTasks) {
3630
+ function createSuspenseBoundary(
3631
+ request,
3632
+ fallbackAbortableTasks,
3633
+ contentPreamble,
3634
+ fallbackPreamble
3635
+ ) {
3400
3636
  return {
3401
3637
  status: 0,
3402
3638
  rootSegmentID: -1,
@@ -3408,6 +3644,8 @@ function createSuspenseBoundary(request, fallbackAbortableTasks) {
3408
3644
  errorDigest: null,
3409
3645
  contentState: createHoistableState(),
3410
3646
  fallbackState: createHoistableState(),
3647
+ contentPreamble: contentPreamble,
3648
+ fallbackPreamble: fallbackPreamble,
3411
3649
  trackedContentKeyPath: null,
3412
3650
  trackedFallbackNode: null
3413
3651
  };
@@ -3419,11 +3657,11 @@ function createRenderTask(
3419
3657
  childIndex,
3420
3658
  blockedBoundary,
3421
3659
  blockedSegment,
3660
+ blockedPreamble,
3422
3661
  hoistableState,
3423
3662
  abortSet,
3424
3663
  keyPath,
3425
3664
  formatContext,
3426
- legacyContext,
3427
3665
  context,
3428
3666
  treeContext,
3429
3667
  componentStack,
@@ -3442,11 +3680,11 @@ function createRenderTask(
3442
3680
  },
3443
3681
  blockedBoundary: blockedBoundary,
3444
3682
  blockedSegment: blockedSegment,
3683
+ blockedPreamble: blockedPreamble,
3445
3684
  hoistableState: hoistableState,
3446
3685
  abortSet: abortSet,
3447
3686
  keyPath: keyPath,
3448
3687
  formatContext: formatContext,
3449
- legacyContext: legacyContext,
3450
3688
  context: context,
3451
3689
  treeContext: treeContext,
3452
3690
  componentStack: componentStack,
@@ -3467,7 +3705,6 @@ function createReplayTask(
3467
3705
  abortSet,
3468
3706
  keyPath,
3469
3707
  formatContext,
3470
- legacyContext,
3471
3708
  context,
3472
3709
  treeContext,
3473
3710
  componentStack,
@@ -3487,11 +3724,11 @@ function createReplayTask(
3487
3724
  },
3488
3725
  blockedBoundary: blockedBoundary,
3489
3726
  blockedSegment: null,
3727
+ blockedPreamble: null,
3490
3728
  hoistableState: hoistableState,
3491
3729
  abortSet: abortSet,
3492
3730
  keyPath: keyPath,
3493
3731
  formatContext: formatContext,
3494
- legacyContext: legacyContext,
3495
3732
  context: context,
3496
3733
  treeContext: treeContext,
3497
3734
  componentStack: componentStack,
@@ -3511,58 +3748,66 @@ function createPendingSegment(
3511
3748
  ) {
3512
3749
  return {
3513
3750
  status: 0,
3751
+ parentFlushed: !1,
3514
3752
  id: -1,
3515
3753
  index: index,
3516
- parentFlushed: !1,
3517
3754
  chunks: [],
3518
3755
  children: [],
3756
+ preambleChildren: [],
3519
3757
  parentFormatContext: parentFormatContext,
3520
3758
  boundary: boundary,
3521
3759
  lastPushedText: lastPushedText,
3522
3760
  textEmbedded: textEmbedded
3523
3761
  };
3524
3762
  }
3525
- function createBuiltInComponentStack(task, type) {
3526
- return { tag: 0, parent: task.componentStack, type: type };
3763
+ function pushComponentStack(task) {
3764
+ var node = task.node;
3765
+ if ("object" === typeof node && null !== node)
3766
+ switch (node.$$typeof) {
3767
+ case REACT_ELEMENT_TYPE:
3768
+ task.componentStack = { parent: task.componentStack, type: node.type };
3769
+ }
3527
3770
  }
3528
- function getThrownInfo(request, node) {
3529
- if (node && null !== request.trackedPostpones) {
3530
- try {
3531
- request = "";
3532
- do {
3533
- switch (node.tag) {
3534
- case 0:
3535
- request += describeBuiltInComponentFrame(node.type);
3536
- break;
3537
- case 1:
3538
- request += describeNativeComponentFrame(node.type, !1);
3539
- break;
3540
- case 2:
3541
- request += describeNativeComponentFrame(node.type, !0);
3771
+ function getThrownInfo(node$jscomp$0) {
3772
+ var errorInfo = {};
3773
+ node$jscomp$0 &&
3774
+ Object.defineProperty(errorInfo, "componentStack", {
3775
+ configurable: !0,
3776
+ enumerable: !0,
3777
+ get: function () {
3778
+ try {
3779
+ var info = "",
3780
+ node = node$jscomp$0;
3781
+ do
3782
+ (info += describeComponentStackByType(node.type)),
3783
+ (node = node.parent);
3784
+ while (node);
3785
+ var JSCompiler_inline_result = info;
3786
+ } catch (x) {
3787
+ JSCompiler_inline_result =
3788
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3542
3789
  }
3543
- node = node.parent;
3544
- } while (node);
3545
- var JSCompiler_temp = request;
3546
- } catch (x) {
3547
- JSCompiler_temp =
3548
- "\nError generating stack: " + x.message + "\n" + x.stack;
3549
- }
3550
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3551
- } else JSCompiler_temp = {};
3552
- return JSCompiler_temp;
3790
+ Object.defineProperty(errorInfo, "componentStack", {
3791
+ value: JSCompiler_inline_result
3792
+ });
3793
+ return JSCompiler_inline_result;
3794
+ }
3795
+ });
3796
+ return errorInfo;
3553
3797
  }
3554
3798
  function logRecoverableError(request, error, errorInfo) {
3555
- request = request.onError(error, errorInfo);
3556
- if (null == request || "string" === typeof request) return request;
3799
+ request = request.onError;
3800
+ error = request(error, errorInfo);
3801
+ if (null == error || "string" === typeof error) return error;
3557
3802
  }
3558
3803
  function fatalError(request, error) {
3559
- var onShellError = request.onShellError;
3560
- onShellError(error);
3561
- onShellError = request.onFatalError;
3804
+ var onShellError = request.onShellError,
3805
+ onFatalError = request.onFatalError;
3562
3806
  onShellError(error);
3807
+ onFatalError(error);
3563
3808
  null !== request.destination
3564
- ? ((request.status = 2), request.destination.destroy(error))
3565
- : ((request.status = 1), (request.fatalError = error));
3809
+ ? ((request.status = 14), request.destination.destroy(error))
3810
+ : ((request.status = 13), (request.fatalError = error));
3566
3811
  }
3567
3812
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
3568
3813
  var prevThenableState = task.thenableState;
@@ -3615,171 +3860,179 @@ function finishFunctionComponent(
3615
3860
  renderNode(request, task, children, -1),
3616
3861
  (task.treeContext = keyPath))
3617
3862
  : didEmitActionStateMarkers
3618
- ? renderNode(request, task, children, -1)
3619
- : renderNodeDestructive(request, task, children, -1);
3863
+ ? renderNode(request, task, children, -1)
3864
+ : renderNodeDestructive(request, task, children, -1);
3620
3865
  task.keyPath = actionStateCount;
3621
3866
  }
3622
3867
  function renderElement(request, task, keyPath, type, props, ref) {
3623
3868
  if ("function" === typeof type)
3624
3869
  if (type.prototype && type.prototype.isReactComponent) {
3625
- var JSCompiler_inline_result = props;
3870
+ var newProps = props;
3626
3871
  if ("ref" in props) {
3627
- JSCompiler_inline_result = {};
3872
+ newProps = {};
3628
3873
  for (var propName in props)
3629
- "ref" !== propName &&
3630
- (JSCompiler_inline_result[propName] = props[propName]);
3874
+ "ref" !== propName && (newProps[propName] = props[propName]);
3631
3875
  }
3632
3876
  var defaultProps = type.defaultProps;
3633
3877
  if (defaultProps) {
3634
- JSCompiler_inline_result === props &&
3635
- (JSCompiler_inline_result = assign(
3636
- {},
3637
- JSCompiler_inline_result,
3638
- props
3639
- ));
3640
- for (var propName$31 in defaultProps)
3641
- void 0 === JSCompiler_inline_result[propName$31] &&
3642
- (JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
3878
+ newProps === props && (newProps = assign({}, newProps, props));
3879
+ for (var propName$33 in defaultProps)
3880
+ void 0 === newProps[propName$33] &&
3881
+ (newProps[propName$33] = defaultProps[propName$33]);
3643
3882
  }
3644
- props = task.componentStack;
3645
- task.componentStack = { tag: 2, parent: task.componentStack, type: type };
3646
- defaultProps = emptyContextObject;
3883
+ props = newProps;
3884
+ newProps = emptyContextObject;
3885
+ defaultProps = type.contextType;
3886
+ "object" === typeof defaultProps &&
3887
+ null !== defaultProps &&
3888
+ (newProps = defaultProps._currentValue2);
3889
+ newProps = new type(props, newProps);
3890
+ var initialState = void 0 !== newProps.state ? newProps.state : null;
3891
+ newProps.updater = classComponentUpdater;
3892
+ newProps.props = props;
3893
+ newProps.state = initialState;
3894
+ defaultProps = { queue: [], replace: !1 };
3895
+ newProps._reactInternals = defaultProps;
3647
3896
  ref = type.contextType;
3648
- "object" === typeof ref &&
3649
- null !== ref &&
3650
- (defaultProps = ref._currentValue2);
3651
- defaultProps = new type(JSCompiler_inline_result, defaultProps);
3652
- propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
3653
- defaultProps.updater = classComponentUpdater;
3654
- defaultProps.props = JSCompiler_inline_result;
3655
- defaultProps.state = propName$31;
3656
- ref = { queue: [], replace: !1 };
3657
- defaultProps._reactInternals = ref;
3658
- var contextType = type.contextType;
3659
- defaultProps.context =
3660
- "object" === typeof contextType && null !== contextType
3661
- ? contextType._currentValue2
3897
+ newProps.context =
3898
+ "object" === typeof ref && null !== ref
3899
+ ? ref._currentValue2
3662
3900
  : emptyContextObject;
3663
- contextType = type.getDerivedStateFromProps;
3664
- "function" === typeof contextType &&
3665
- ((contextType = contextType(JSCompiler_inline_result, propName$31)),
3666
- (propName$31 =
3667
- null === contextType || void 0 === contextType
3668
- ? propName$31
3669
- : assign({}, propName$31, contextType)),
3670
- (defaultProps.state = propName$31));
3901
+ ref = type.getDerivedStateFromProps;
3902
+ "function" === typeof ref &&
3903
+ ((ref = ref(props, initialState)),
3904
+ (initialState =
3905
+ null === ref || void 0 === ref
3906
+ ? initialState
3907
+ : assign({}, initialState, ref)),
3908
+ (newProps.state = initialState));
3671
3909
  if (
3672
3910
  "function" !== typeof type.getDerivedStateFromProps &&
3673
- "function" !== typeof defaultProps.getSnapshotBeforeUpdate &&
3674
- ("function" === typeof defaultProps.UNSAFE_componentWillMount ||
3675
- "function" === typeof defaultProps.componentWillMount)
3911
+ "function" !== typeof newProps.getSnapshotBeforeUpdate &&
3912
+ ("function" === typeof newProps.UNSAFE_componentWillMount ||
3913
+ "function" === typeof newProps.componentWillMount)
3676
3914
  )
3677
3915
  if (
3678
- ((type = defaultProps.state),
3679
- "function" === typeof defaultProps.componentWillMount &&
3680
- defaultProps.componentWillMount(),
3681
- "function" === typeof defaultProps.UNSAFE_componentWillMount &&
3682
- defaultProps.UNSAFE_componentWillMount(),
3683
- type !== defaultProps.state &&
3916
+ ((type = newProps.state),
3917
+ "function" === typeof newProps.componentWillMount &&
3918
+ newProps.componentWillMount(),
3919
+ "function" === typeof newProps.UNSAFE_componentWillMount &&
3920
+ newProps.UNSAFE_componentWillMount(),
3921
+ type !== newProps.state &&
3684
3922
  classComponentUpdater.enqueueReplaceState(
3685
- defaultProps,
3686
- defaultProps.state,
3923
+ newProps,
3924
+ newProps.state,
3687
3925
  null
3688
3926
  ),
3689
- null !== ref.queue && 0 < ref.queue.length)
3927
+ null !== defaultProps.queue && 0 < defaultProps.queue.length)
3690
3928
  )
3691
3929
  if (
3692
- ((type = ref.queue),
3693
- (contextType = ref.replace),
3694
- (ref.queue = null),
3695
- (ref.replace = !1),
3696
- contextType && 1 === type.length)
3930
+ ((type = defaultProps.queue),
3931
+ (ref = defaultProps.replace),
3932
+ (defaultProps.queue = null),
3933
+ (defaultProps.replace = !1),
3934
+ ref && 1 === type.length)
3697
3935
  )
3698
- defaultProps.state = type[0];
3936
+ newProps.state = type[0];
3699
3937
  else {
3700
- ref = contextType ? type[0] : defaultProps.state;
3701
- propName$31 = !0;
3702
- for (
3703
- contextType = contextType ? 1 : 0;
3704
- contextType < type.length;
3705
- contextType++
3706
- )
3707
- (propName = type[contextType]),
3708
- (propName =
3709
- "function" === typeof propName
3710
- ? propName.call(
3711
- defaultProps,
3712
- ref,
3713
- JSCompiler_inline_result,
3714
- void 0
3715
- )
3716
- : propName),
3717
- null != propName &&
3718
- (propName$31
3719
- ? ((propName$31 = !1), (ref = assign({}, ref, propName)))
3720
- : assign(ref, propName));
3721
- defaultProps.state = ref;
3938
+ defaultProps = ref ? type[0] : newProps.state;
3939
+ initialState = !0;
3940
+ for (ref = ref ? 1 : 0; ref < type.length; ref++)
3941
+ (propName$33 = type[ref]),
3942
+ (propName$33 =
3943
+ "function" === typeof propName$33
3944
+ ? propName$33.call(newProps, defaultProps, props, void 0)
3945
+ : propName$33),
3946
+ null != propName$33 &&
3947
+ (initialState
3948
+ ? ((initialState = !1),
3949
+ (defaultProps = assign({}, defaultProps, propName$33)))
3950
+ : assign(defaultProps, propName$33));
3951
+ newProps.state = defaultProps;
3722
3952
  }
3723
- else ref.queue = null;
3724
- type = defaultProps.render();
3725
- JSCompiler_inline_result = task.keyPath;
3953
+ else defaultProps.queue = null;
3954
+ type = newProps.render();
3955
+ if (12 === request.status) throw null;
3956
+ props = task.keyPath;
3726
3957
  task.keyPath = keyPath;
3727
3958
  renderNodeDestructive(request, task, type, -1);
3728
- task.keyPath = JSCompiler_inline_result;
3729
- task.componentStack = props;
3730
- } else
3731
- (JSCompiler_inline_result = task.componentStack),
3732
- (task.componentStack = {
3733
- tag: 1,
3734
- parent: task.componentStack,
3735
- type: type
3736
- }),
3737
- (type = renderWithHooks(request, task, keyPath, type, props, void 0)),
3738
- finishFunctionComponent(
3739
- request,
3740
- task,
3741
- keyPath,
3742
- type,
3743
- 0 !== localIdCounter,
3744
- actionStateCounter,
3745
- actionStateMatchingIndex
3746
- ),
3747
- (task.componentStack = JSCompiler_inline_result);
3748
- else if ("string" === typeof type) {
3749
- JSCompiler_inline_result = task.componentStack;
3750
- task.componentStack = createBuiltInComponentStack(task, type);
3751
- defaultProps = task.blockedSegment;
3752
- if (null === defaultProps)
3753
- (defaultProps = props.children),
3754
- (ref = task.formatContext),
3755
- (propName$31 = task.keyPath),
3756
- (task.formatContext = getChildFormatContext(ref, type, props)),
3959
+ task.keyPath = props;
3960
+ } else {
3961
+ type = renderWithHooks(request, task, keyPath, type, props, void 0);
3962
+ if (12 === request.status) throw null;
3963
+ finishFunctionComponent(
3964
+ request,
3965
+ task,
3966
+ keyPath,
3967
+ type,
3968
+ 0 !== localIdCounter,
3969
+ actionStateCounter,
3970
+ actionStateMatchingIndex
3971
+ );
3972
+ }
3973
+ else if ("string" === typeof type)
3974
+ if (((newProps = task.blockedSegment), null === newProps))
3975
+ (newProps = props.children),
3976
+ (defaultProps = task.formatContext),
3977
+ (initialState = task.keyPath),
3978
+ (task.formatContext = getChildFormatContext(defaultProps, type, props)),
3757
3979
  (task.keyPath = keyPath),
3758
- renderNode(request, task, defaultProps, -1),
3759
- (task.formatContext = ref),
3760
- (task.keyPath = propName$31);
3980
+ renderNode(request, task, newProps, -1),
3981
+ (task.formatContext = defaultProps),
3982
+ (task.keyPath = initialState);
3761
3983
  else {
3762
- propName$31 = pushStartInstance(
3763
- defaultProps.chunks,
3984
+ ref = pushStartInstance(
3985
+ newProps.chunks,
3764
3986
  type,
3765
3987
  props,
3766
3988
  request.resumableState,
3767
3989
  request.renderState,
3990
+ task.blockedPreamble,
3768
3991
  task.hoistableState,
3769
3992
  task.formatContext,
3770
- defaultProps.lastPushedText,
3993
+ newProps.lastPushedText,
3771
3994
  task.isFallback
3772
3995
  );
3773
- defaultProps.lastPushedText = !1;
3774
- ref = task.formatContext;
3775
- contextType = task.keyPath;
3776
- task.formatContext = getChildFormatContext(ref, type, props);
3996
+ newProps.lastPushedText = !1;
3997
+ defaultProps = task.formatContext;
3998
+ initialState = task.keyPath;
3777
3999
  task.keyPath = keyPath;
3778
- renderNode(request, task, propName$31, -1);
3779
- task.formatContext = ref;
3780
- task.keyPath = contextType;
4000
+ 3 ===
4001
+ (task.formatContext = getChildFormatContext(defaultProps, type, props))
4002
+ .insertionMode
4003
+ ? ((keyPath = createPendingSegment(
4004
+ request,
4005
+ 0,
4006
+ null,
4007
+ task.formatContext,
4008
+ !1,
4009
+ !1
4010
+ )),
4011
+ newProps.preambleChildren.push(keyPath),
4012
+ (keyPath = createRenderTask(
4013
+ request,
4014
+ null,
4015
+ ref,
4016
+ -1,
4017
+ task.blockedBoundary,
4018
+ keyPath,
4019
+ task.blockedPreamble,
4020
+ task.hoistableState,
4021
+ request.abortableTasks,
4022
+ task.keyPath,
4023
+ task.formatContext,
4024
+ task.context,
4025
+ task.treeContext,
4026
+ task.componentStack,
4027
+ task.isFallback
4028
+ )),
4029
+ pushComponentStack(keyPath),
4030
+ request.pingedTasks.push(keyPath))
4031
+ : renderNode(request, task, ref, -1);
4032
+ task.formatContext = defaultProps;
4033
+ task.keyPath = initialState;
3781
4034
  a: {
3782
- keyPath = defaultProps.chunks;
4035
+ task = newProps.chunks;
3783
4036
  request = request.resumableState;
3784
4037
  switch (type) {
3785
4038
  case "title":
@@ -3802,26 +4055,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
3802
4055
  case "wbr":
3803
4056
  break a;
3804
4057
  case "body":
3805
- if (1 >= ref.insertionMode) {
4058
+ if (1 >= defaultProps.insertionMode) {
3806
4059
  request.hasBody = !0;
3807
4060
  break a;
3808
4061
  }
3809
4062
  break;
3810
4063
  case "html":
3811
- if (0 === ref.insertionMode) {
4064
+ if (0 === defaultProps.insertionMode) {
3812
4065
  request.hasHtml = !0;
3813
4066
  break a;
3814
4067
  }
4068
+ break;
4069
+ case "head":
4070
+ if (1 >= defaultProps.insertionMode) break a;
3815
4071
  }
3816
- keyPath.push(endChunkForTag(type));
4072
+ task.push(endChunkForTag(type));
3817
4073
  }
3818
- defaultProps.lastPushedText = !1;
4074
+ newProps.lastPushedText = !1;
3819
4075
  }
3820
- task.componentStack = JSCompiler_inline_result;
3821
- } else {
4076
+ else {
3822
4077
  switch (type) {
3823
4078
  case REACT_LEGACY_HIDDEN_TYPE:
3824
- case REACT_DEBUG_TRACING_MODE_TYPE:
3825
4079
  case REACT_STRICT_MODE_TYPE:
3826
4080
  case REACT_PROFILER_TYPE:
3827
4081
  case REACT_FRAGMENT_TYPE:
@@ -3830,7 +4084,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
3830
4084
  renderNodeDestructive(request, task, props.children, -1);
3831
4085
  task.keyPath = type;
3832
4086
  return;
3833
- case REACT_OFFSCREEN_TYPE:
4087
+ case REACT_ACTIVITY_TYPE:
3834
4088
  "hidden" !== props.mode &&
3835
4089
  ((type = task.keyPath),
3836
4090
  (task.keyPath = keyPath),
@@ -3838,14 +4092,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
3838
4092
  (task.keyPath = type));
3839
4093
  return;
3840
4094
  case REACT_SUSPENSE_LIST_TYPE:
3841
- type = task.componentStack;
3842
- task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
3843
- JSCompiler_inline_result = task.keyPath;
4095
+ type = task.keyPath;
3844
4096
  task.keyPath = keyPath;
3845
4097
  renderNodeDestructive(request, task, props.children, -1);
3846
- task.keyPath = JSCompiler_inline_result;
3847
- task.componentStack = type;
4098
+ task.keyPath = type;
3848
4099
  return;
4100
+ case REACT_VIEW_TRANSITION_TYPE:
3849
4101
  case REACT_SCOPE_TYPE:
3850
4102
  throw Error(formatProdErrorMessage(343));
3851
4103
  case REACT_SUSPENSE_TYPE:
@@ -3859,31 +4111,35 @@ function renderElement(request, task, keyPath, type, props, ref) {
3859
4111
  task.keyPath = type;
3860
4112
  }
3861
4113
  } else {
3862
- var previousComponentStack = task.componentStack;
3863
- type = task.componentStack = createBuiltInComponentStack(
3864
- task,
3865
- "Suspense"
3866
- );
3867
- var prevKeyPath = task.keyPath;
3868
- ref = task.blockedBoundary;
3869
- var parentHoistableState = task.hoistableState,
3870
- parentSegment = task.blockedSegment;
3871
- propName$31 = props.fallback;
3872
- var content = props.children;
3873
- props = new Set();
3874
- contextType = createSuspenseBoundary(request, props);
4114
+ type = task.keyPath;
4115
+ var parentBoundary = task.blockedBoundary;
4116
+ ref = task.blockedPreamble;
4117
+ var parentHoistableState = task.hoistableState;
4118
+ propName$33 = task.blockedSegment;
4119
+ propName = props.fallback;
4120
+ props = props.children;
4121
+ var fallbackAbortSet = new Set();
4122
+ var newBoundary =
4123
+ 2 > task.formatContext.insertionMode
4124
+ ? createSuspenseBoundary(
4125
+ request,
4126
+ fallbackAbortSet,
4127
+ createPreambleState(),
4128
+ createPreambleState()
4129
+ )
4130
+ : createSuspenseBoundary(request, fallbackAbortSet, null, null);
3875
4131
  null !== request.trackedPostpones &&
3876
- (contextType.trackedContentKeyPath = keyPath);
3877
- propName = createPendingSegment(
4132
+ (newBoundary.trackedContentKeyPath = keyPath);
4133
+ var boundarySegment = createPendingSegment(
3878
4134
  request,
3879
- parentSegment.chunks.length,
3880
- contextType,
4135
+ propName$33.chunks.length,
4136
+ newBoundary,
3881
4137
  task.formatContext,
3882
4138
  !1,
3883
4139
  !1
3884
4140
  );
3885
- parentSegment.children.push(propName);
3886
- parentSegment.lastPushedText = !1;
4141
+ propName$33.children.push(boundarySegment);
4142
+ propName$33.lastPushedText = !1;
3887
4143
  var contentRootSegment = createPendingSegment(
3888
4144
  request,
3889
4145
  0,
@@ -3893,108 +4149,138 @@ function renderElement(request, task, keyPath, type, props, ref) {
3893
4149
  !1
3894
4150
  );
3895
4151
  contentRootSegment.parentFlushed = !0;
3896
- task.blockedBoundary = contextType;
3897
- task.hoistableState = contextType.contentState;
3898
- task.blockedSegment = contentRootSegment;
3899
- task.keyPath = keyPath;
3900
- try {
3901
- if (
3902
- (renderNode(request, task, content, -1),
3903
- request.renderState.generateStaticMarkup ||
3904
- (contentRootSegment.lastPushedText &&
3905
- contentRootSegment.textEmbedded &&
3906
- contentRootSegment.chunks.push("\x3c!-- --\x3e")),
3907
- (contentRootSegment.status = 1),
3908
- queueCompletedSegment(contextType, contentRootSegment),
3909
- 0 === contextType.pendingTasks && 0 === contextType.status)
3910
- ) {
3911
- contextType.status = 1;
3912
- task.componentStack = previousComponentStack;
3913
- break a;
4152
+ if (null !== request.trackedPostpones) {
4153
+ newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4154
+ defaultProps = [newProps[1], newProps[2], [], null];
4155
+ request.trackedPostpones.workingMap.set(newProps, defaultProps);
4156
+ newBoundary.trackedFallbackNode = defaultProps;
4157
+ task.blockedSegment = boundarySegment;
4158
+ task.blockedPreamble = newBoundary.fallbackPreamble;
4159
+ task.keyPath = newProps;
4160
+ boundarySegment.status = 6;
4161
+ try {
4162
+ renderNode(request, task, propName, -1),
4163
+ pushSegmentFinale(
4164
+ boundarySegment.chunks,
4165
+ request.renderState,
4166
+ boundarySegment.lastPushedText,
4167
+ boundarySegment.textEmbedded
4168
+ ),
4169
+ (boundarySegment.status = 1);
4170
+ } catch (thrownValue) {
4171
+ throw (
4172
+ ((boundarySegment.status = 12 === request.status ? 3 : 4),
4173
+ thrownValue)
4174
+ );
4175
+ } finally {
4176
+ (task.blockedSegment = propName$33),
4177
+ (task.blockedPreamble = ref),
4178
+ (task.keyPath = type);
3914
4179
  }
3915
- } catch (error) {
3916
- (contentRootSegment.status = 4),
3917
- (contextType.status = 4),
3918
- (JSCompiler_inline_result = getThrownInfo(
3919
- request,
3920
- task.componentStack
3921
- )),
3922
- (defaultProps = logRecoverableError(
3923
- request,
3924
- error,
3925
- JSCompiler_inline_result
3926
- )),
3927
- (contextType.errorDigest = defaultProps),
3928
- untrackBoundary(request, contextType);
3929
- } finally {
3930
- (task.blockedBoundary = ref),
3931
- (task.hoistableState = parentHoistableState),
3932
- (task.blockedSegment = parentSegment),
3933
- (task.keyPath = prevKeyPath),
3934
- (task.componentStack = previousComponentStack);
4180
+ task = createRenderTask(
4181
+ request,
4182
+ null,
4183
+ props,
4184
+ -1,
4185
+ newBoundary,
4186
+ contentRootSegment,
4187
+ newBoundary.contentPreamble,
4188
+ newBoundary.contentState,
4189
+ task.abortSet,
4190
+ keyPath,
4191
+ task.formatContext,
4192
+ task.context,
4193
+ task.treeContext,
4194
+ task.componentStack,
4195
+ task.isFallback
4196
+ );
4197
+ pushComponentStack(task);
4198
+ request.pingedTasks.push(task);
4199
+ } else {
4200
+ task.blockedBoundary = newBoundary;
4201
+ task.blockedPreamble = newBoundary.contentPreamble;
4202
+ task.hoistableState = newBoundary.contentState;
4203
+ task.blockedSegment = contentRootSegment;
4204
+ task.keyPath = keyPath;
4205
+ contentRootSegment.status = 6;
4206
+ try {
4207
+ if (
4208
+ (renderNode(request, task, props, -1),
4209
+ pushSegmentFinale(
4210
+ contentRootSegment.chunks,
4211
+ request.renderState,
4212
+ contentRootSegment.lastPushedText,
4213
+ contentRootSegment.textEmbedded
4214
+ ),
4215
+ (contentRootSegment.status = 1),
4216
+ queueCompletedSegment(newBoundary, contentRootSegment),
4217
+ 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
4218
+ ) {
4219
+ newBoundary.status = 1;
4220
+ 0 === request.pendingRootTasks &&
4221
+ task.blockedPreamble &&
4222
+ preparePreamble(request);
4223
+ break a;
4224
+ }
4225
+ } catch (thrownValue$28) {
4226
+ (newBoundary.status = 4),
4227
+ 12 === request.status
4228
+ ? ((contentRootSegment.status = 3),
4229
+ (newProps = request.fatalError))
4230
+ : ((contentRootSegment.status = 4),
4231
+ (newProps = thrownValue$28)),
4232
+ (defaultProps = getThrownInfo(task.componentStack)),
4233
+ (initialState = logRecoverableError(
4234
+ request,
4235
+ newProps,
4236
+ defaultProps
4237
+ )),
4238
+ (newBoundary.errorDigest = initialState),
4239
+ untrackBoundary(request, newBoundary);
4240
+ } finally {
4241
+ (task.blockedBoundary = parentBoundary),
4242
+ (task.blockedPreamble = ref),
4243
+ (task.hoistableState = parentHoistableState),
4244
+ (task.blockedSegment = propName$33),
4245
+ (task.keyPath = type);
4246
+ }
4247
+ task = createRenderTask(
4248
+ request,
4249
+ null,
4250
+ propName,
4251
+ -1,
4252
+ parentBoundary,
4253
+ boundarySegment,
4254
+ newBoundary.fallbackPreamble,
4255
+ newBoundary.fallbackState,
4256
+ fallbackAbortSet,
4257
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
4258
+ task.formatContext,
4259
+ task.context,
4260
+ task.treeContext,
4261
+ task.componentStack,
4262
+ !0
4263
+ );
4264
+ pushComponentStack(task);
4265
+ request.pingedTasks.push(task);
3935
4266
  }
3936
- JSCompiler_inline_result = [
3937
- keyPath[0],
3938
- "Suspense Fallback",
3939
- keyPath[2]
3940
- ];
3941
- defaultProps = request.trackedPostpones;
3942
- null !== defaultProps &&
3943
- ((previousComponentStack = [
3944
- JSCompiler_inline_result[1],
3945
- JSCompiler_inline_result[2],
3946
- [],
3947
- null
3948
- ]),
3949
- defaultProps.workingMap.set(
3950
- JSCompiler_inline_result,
3951
- previousComponentStack
3952
- ),
3953
- 5 === contextType.status
3954
- ? (defaultProps.workingMap.get(keyPath)[4] =
3955
- previousComponentStack)
3956
- : (contextType.trackedFallbackNode = previousComponentStack));
3957
- task = createRenderTask(
3958
- request,
3959
- null,
3960
- propName$31,
3961
- -1,
3962
- ref,
3963
- propName,
3964
- contextType.fallbackState,
3965
- props,
3966
- JSCompiler_inline_result,
3967
- task.formatContext,
3968
- task.legacyContext,
3969
- task.context,
3970
- task.treeContext,
3971
- type,
3972
- !0
3973
- );
3974
- request.pingedTasks.push(task);
3975
4267
  }
3976
4268
  return;
3977
4269
  }
3978
4270
  if ("object" === typeof type && null !== type)
3979
4271
  switch (type.$$typeof) {
3980
4272
  case REACT_FORWARD_REF_TYPE:
3981
- JSCompiler_inline_result = task.componentStack;
3982
- task.componentStack = {
3983
- tag: 1,
3984
- parent: task.componentStack,
3985
- type: type.render
3986
- };
3987
4273
  if ("ref" in props)
3988
- for (contextType in ((defaultProps = {}), props))
3989
- "ref" !== contextType &&
3990
- (defaultProps[contextType] = props[contextType]);
3991
- else defaultProps = props;
4274
+ for (newBoundary in ((newProps = {}), props))
4275
+ "ref" !== newBoundary &&
4276
+ (newProps[newBoundary] = props[newBoundary]);
4277
+ else newProps = props;
3992
4278
  type = renderWithHooks(
3993
4279
  request,
3994
4280
  task,
3995
4281
  keyPath,
3996
4282
  type.render,
3997
- defaultProps,
4283
+ newProps,
3998
4284
  ref
3999
4285
  );
4000
4286
  finishFunctionComponent(
@@ -4006,7 +4292,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4006
4292
  actionStateCounter,
4007
4293
  actionStateMatchingIndex
4008
4294
  );
4009
- task.componentStack = JSCompiler_inline_result;
4010
4295
  return;
4011
4296
  case REACT_MEMO_TYPE:
4012
4297
  renderElement(request, task, keyPath, type.type, props, ref);
@@ -4014,16 +4299,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
4014
4299
  case REACT_PROVIDER_TYPE:
4015
4300
  case REACT_CONTEXT_TYPE:
4016
4301
  defaultProps = props.children;
4017
- JSCompiler_inline_result = task.keyPath;
4302
+ newProps = task.keyPath;
4018
4303
  props = props.value;
4019
- ref = type._currentValue2;
4304
+ initialState = type._currentValue2;
4020
4305
  type._currentValue2 = props;
4021
- propName$31 = currentActiveSnapshot;
4306
+ ref = currentActiveSnapshot;
4022
4307
  currentActiveSnapshot = type = {
4023
- parent: propName$31,
4024
- depth: null === propName$31 ? 0 : propName$31.depth + 1,
4308
+ parent: ref,
4309
+ depth: null === ref ? 0 : ref.depth + 1,
4025
4310
  context: type,
4026
- parentValue: ref,
4311
+ parentValue: initialState,
4027
4312
  value: props
4028
4313
  };
4029
4314
  task.context = type;
@@ -4034,7 +4319,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4034
4319
  request.context._currentValue2 = request.parentValue;
4035
4320
  request = currentActiveSnapshot = request.parent;
4036
4321
  task.context = request;
4037
- task.keyPath = JSCompiler_inline_result;
4322
+ task.keyPath = newProps;
4038
4323
  return;
4039
4324
  case REACT_CONSUMER_TYPE:
4040
4325
  props = props.children;
@@ -4045,12 +4330,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4045
4330
  task.keyPath = props;
4046
4331
  return;
4047
4332
  case REACT_LAZY_TYPE:
4048
- JSCompiler_inline_result = task.componentStack;
4049
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4050
- defaultProps = type._init;
4051
- type = defaultProps(type._payload);
4052
- renderElement(request, task, keyPath, type, props, void 0);
4053
- task.componentStack = JSCompiler_inline_result;
4333
+ newProps = type._init;
4334
+ type = newProps(type._payload);
4335
+ if (12 === request.status) throw null;
4336
+ renderElement(request, task, keyPath, type, props, ref);
4054
4337
  return;
4055
4338
  }
4056
4339
  throw Error(
@@ -4085,23 +4368,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
4085
4368
  (task.replay = prevReplay), (task.blockedSegment = null);
4086
4369
  }
4087
4370
  }
4088
- function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4089
- if (null !== task.replay && "number" === typeof task.replay.slots)
4090
- resumeNode(request, task, task.replay.slots, node$jscomp$0, childIndex);
4091
- else if (
4092
- ((task.node = node$jscomp$0),
4093
- (task.childIndex = childIndex),
4094
- null !== node$jscomp$0)
4095
- ) {
4096
- if ("object" === typeof node$jscomp$0) {
4097
- switch (node$jscomp$0.$$typeof) {
4371
+ function renderNodeDestructive(request, task, node, childIndex) {
4372
+ null !== task.replay && "number" === typeof task.replay.slots
4373
+ ? resumeNode(request, task, task.replay.slots, node, childIndex)
4374
+ : ((task.node = node),
4375
+ (task.childIndex = childIndex),
4376
+ (node = task.componentStack),
4377
+ pushComponentStack(task),
4378
+ retryNode(request, task),
4379
+ (task.componentStack = node));
4380
+ }
4381
+ function retryNode(request, task) {
4382
+ var node = task.node,
4383
+ childIndex = task.childIndex;
4384
+ if (null !== node) {
4385
+ if ("object" === typeof node) {
4386
+ switch (node.$$typeof) {
4098
4387
  case REACT_ELEMENT_TYPE:
4099
- var type = node$jscomp$0.type,
4100
- key = node$jscomp$0.key,
4101
- props = node$jscomp$0.props;
4102
- node$jscomp$0 = props.ref;
4103
- var ref = void 0 !== node$jscomp$0 ? node$jscomp$0 : null;
4104
- var name = getComponentNameFromType(type),
4388
+ var type = node.type,
4389
+ key = node.key,
4390
+ props = node.props;
4391
+ node = props.ref;
4392
+ var ref = void 0 !== node ? node : null,
4393
+ name = getComponentNameFromType(type),
4105
4394
  keyOrIndex =
4106
4395
  null == key ? (-1 === childIndex ? 0 : childIndex) : key;
4107
4396
  key = [task.keyPath, name, keyOrIndex];
@@ -4109,18 +4398,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4109
4398
  a: {
4110
4399
  var replay = task.replay;
4111
4400
  childIndex = replay.nodes;
4112
- for (
4113
- node$jscomp$0 = 0;
4114
- node$jscomp$0 < childIndex.length;
4115
- node$jscomp$0++
4116
- ) {
4117
- var node = childIndex[node$jscomp$0];
4118
- if (keyOrIndex === node[1]) {
4119
- if (4 === node.length) {
4120
- if (null !== name && name !== node[0])
4121
- throw Error(formatProdErrorMessage(490, node[0], name));
4122
- var childNodes = node[2];
4123
- name = node[3];
4401
+ for (node = 0; node < childIndex.length; node++) {
4402
+ var node$jscomp$0 = childIndex[node];
4403
+ if (keyOrIndex === node$jscomp$0[1]) {
4404
+ if (4 === node$jscomp$0.length) {
4405
+ if (null !== name && name !== node$jscomp$0[0])
4406
+ throw Error(
4407
+ formatProdErrorMessage(490, node$jscomp$0[0], name)
4408
+ );
4409
+ var childNodes = node$jscomp$0[2];
4410
+ name = node$jscomp$0[3];
4124
4411
  keyOrIndex = task.node;
4125
4412
  task.replay = {
4126
4413
  nodes: childNodes,
@@ -4147,14 +4434,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4147
4434
  x)
4148
4435
  );
4149
4436
  task.replay.pendingTasks--;
4150
- props = getThrownInfo(request, task.componentStack);
4151
- key = request;
4152
- request = task.blockedBoundary;
4437
+ props = getThrownInfo(task.componentStack);
4438
+ key = task.blockedBoundary;
4153
4439
  type = x;
4154
- props = logRecoverableError(key, type, props);
4440
+ props = logRecoverableError(request, type, props);
4155
4441
  abortRemainingReplayNodes(
4156
- key,
4157
4442
  request,
4443
+ key,
4158
4444
  childNodes,
4159
4445
  name,
4160
4446
  type,
@@ -4173,29 +4459,39 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4173
4459
  );
4174
4460
  b: {
4175
4461
  replay = void 0;
4176
- type = node[5];
4177
- ref = node[2];
4178
- name = node[3];
4179
- keyOrIndex = null === node[4] ? [] : node[4][2];
4180
- node = null === node[4] ? null : node[4][3];
4181
- var previousComponentStack = task.componentStack,
4182
- suspenseComponentStack = (task.componentStack =
4183
- createBuiltInComponentStack(task, "Suspense")),
4184
- prevKeyPath = task.keyPath,
4462
+ type = node$jscomp$0[5];
4463
+ ref = node$jscomp$0[2];
4464
+ name = node$jscomp$0[3];
4465
+ keyOrIndex =
4466
+ null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4467
+ node$jscomp$0 =
4468
+ null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4469
+ var prevKeyPath = task.keyPath,
4185
4470
  previousReplaySet = task.replay,
4186
4471
  parentBoundary = task.blockedBoundary,
4187
4472
  parentHoistableState = task.hoistableState,
4188
- content = props.children;
4189
- props = props.fallback;
4190
- var fallbackAbortSet = new Set(),
4191
- resumedBoundary = createSuspenseBoundary(
4192
- request,
4193
- fallbackAbortSet
4194
- );
4195
- resumedBoundary.parentFlushed = !0;
4196
- resumedBoundary.rootSegmentID = type;
4197
- task.blockedBoundary = resumedBoundary;
4198
- task.hoistableState = resumedBoundary.contentState;
4473
+ content = props.children,
4474
+ fallback = props.fallback,
4475
+ fallbackAbortSet = new Set();
4476
+ props =
4477
+ 2 > task.formatContext.insertionMode
4478
+ ? createSuspenseBoundary(
4479
+ request,
4480
+ fallbackAbortSet,
4481
+ createPreambleState(),
4482
+ createPreambleState()
4483
+ )
4484
+ : createSuspenseBoundary(
4485
+ request,
4486
+ fallbackAbortSet,
4487
+ null,
4488
+ null
4489
+ );
4490
+ props.parentFlushed = !0;
4491
+ props.rootSegmentID = type;
4492
+ task.blockedBoundary = props;
4493
+ task.hoistableState = props.contentState;
4494
+ task.keyPath = key;
4199
4495
  task.replay = {
4200
4496
  nodes: ref,
4201
4497
  slots: name,
@@ -4209,58 +4505,53 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4209
4505
  )
4210
4506
  throw Error(formatProdErrorMessage(488));
4211
4507
  task.replay.pendingTasks--;
4212
- if (
4213
- 0 === resumedBoundary.pendingTasks &&
4214
- 0 === resumedBoundary.status
4215
- ) {
4216
- resumedBoundary.status = 1;
4217
- request.completedBoundaries.push(resumedBoundary);
4508
+ if (0 === props.pendingTasks && 0 === props.status) {
4509
+ props.status = 1;
4510
+ request.completedBoundaries.push(props);
4218
4511
  break b;
4219
4512
  }
4220
4513
  } catch (error) {
4221
- (resumedBoundary.status = 4),
4222
- (childNodes = getThrownInfo(
4223
- request,
4224
- task.componentStack
4225
- )),
4514
+ (props.status = 4),
4515
+ (childNodes = getThrownInfo(task.componentStack)),
4226
4516
  (replay = logRecoverableError(
4227
4517
  request,
4228
4518
  error,
4229
4519
  childNodes
4230
4520
  )),
4231
- (resumedBoundary.errorDigest = replay),
4521
+ (props.errorDigest = replay),
4232
4522
  task.replay.pendingTasks--,
4233
- request.clientRenderedBoundaries.push(
4234
- resumedBoundary
4235
- );
4523
+ request.clientRenderedBoundaries.push(props);
4236
4524
  } finally {
4237
4525
  (task.blockedBoundary = parentBoundary),
4238
4526
  (task.hoistableState = parentHoistableState),
4239
4527
  (task.replay = previousReplaySet),
4240
- (task.keyPath = prevKeyPath),
4241
- (task.componentStack = previousComponentStack);
4528
+ (task.keyPath = prevKeyPath);
4242
4529
  }
4243
4530
  task = createReplayTask(
4244
4531
  request,
4245
4532
  null,
4246
- { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
4247
- props,
4533
+ {
4534
+ nodes: keyOrIndex,
4535
+ slots: node$jscomp$0,
4536
+ pendingTasks: 0
4537
+ },
4538
+ fallback,
4248
4539
  -1,
4249
4540
  parentBoundary,
4250
- resumedBoundary.fallbackState,
4541
+ props.fallbackState,
4251
4542
  fallbackAbortSet,
4252
4543
  [key[0], "Suspense Fallback", key[2]],
4253
4544
  task.formatContext,
4254
- task.legacyContext,
4255
4545
  task.context,
4256
4546
  task.treeContext,
4257
- suspenseComponentStack,
4547
+ task.componentStack,
4258
4548
  !0
4259
4549
  );
4550
+ pushComponentStack(task);
4260
4551
  request.pingedTasks.push(task);
4261
4552
  }
4262
4553
  }
4263
- childIndex.splice(node$jscomp$0, 1);
4554
+ childIndex.splice(node, 1);
4264
4555
  break a;
4265
4556
  }
4266
4557
  }
@@ -4270,81 +4561,69 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4270
4561
  case REACT_PORTAL_TYPE:
4271
4562
  throw Error(formatProdErrorMessage(257));
4272
4563
  case REACT_LAZY_TYPE:
4273
- childNodes = task.componentStack;
4274
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4275
- props = node$jscomp$0._init;
4276
- node$jscomp$0 = props(node$jscomp$0._payload);
4277
- task.componentStack = childNodes;
4278
- renderNodeDestructive(request, task, node$jscomp$0, childIndex);
4564
+ childNodes = node._init;
4565
+ node = childNodes(node._payload);
4566
+ if (12 === request.status) throw null;
4567
+ renderNodeDestructive(request, task, node, childIndex);
4279
4568
  return;
4280
4569
  }
4281
- if (isArrayImpl(node$jscomp$0)) {
4282
- renderChildrenArray(request, task, node$jscomp$0, childIndex);
4570
+ if (isArrayImpl(node)) {
4571
+ renderChildrenArray(request, task, node, childIndex);
4283
4572
  return;
4284
4573
  }
4285
- null === node$jscomp$0 || "object" !== typeof node$jscomp$0
4574
+ null === node || "object" !== typeof node
4286
4575
  ? (childNodes = null)
4287
4576
  : ((childNodes =
4288
- (MAYBE_ITERATOR_SYMBOL && node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
4289
- node$jscomp$0["@@iterator"]),
4577
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
4578
+ node["@@iterator"]),
4290
4579
  (childNodes = "function" === typeof childNodes ? childNodes : null));
4291
- if (childNodes && (childNodes = childNodes.call(node$jscomp$0))) {
4292
- node$jscomp$0 = childNodes.next();
4293
- if (!node$jscomp$0.done) {
4580
+ if (childNodes && (childNodes = childNodes.call(node))) {
4581
+ node = childNodes.next();
4582
+ if (!node.done) {
4294
4583
  props = [];
4295
- do
4296
- props.push(node$jscomp$0.value),
4297
- (node$jscomp$0 = childNodes.next());
4298
- while (!node$jscomp$0.done);
4584
+ do props.push(node.value), (node = childNodes.next());
4585
+ while (!node.done);
4299
4586
  renderChildrenArray(request, task, props, childIndex);
4300
4587
  }
4301
4588
  return;
4302
4589
  }
4303
- if ("function" === typeof node$jscomp$0.then)
4590
+ if ("function" === typeof node.then)
4304
4591
  return (
4305
4592
  (task.thenableState = null),
4306
- renderNodeDestructive(
4307
- request,
4308
- task,
4309
- unwrapThenable(node$jscomp$0),
4310
- childIndex
4311
- )
4593
+ renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
4312
4594
  );
4313
- if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
4595
+ if (node.$$typeof === REACT_CONTEXT_TYPE)
4314
4596
  return renderNodeDestructive(
4315
4597
  request,
4316
4598
  task,
4317
- node$jscomp$0._currentValue2,
4599
+ node._currentValue2,
4318
4600
  childIndex
4319
4601
  );
4320
- childIndex = Object.prototype.toString.call(node$jscomp$0);
4602
+ childIndex = Object.prototype.toString.call(node);
4321
4603
  throw Error(
4322
4604
  formatProdErrorMessage(
4323
4605
  31,
4324
4606
  "[object Object]" === childIndex
4325
- ? "object with keys {" + Object.keys(node$jscomp$0).join(", ") + "}"
4607
+ ? "object with keys {" + Object.keys(node).join(", ") + "}"
4326
4608
  : childIndex
4327
4609
  )
4328
4610
  );
4329
4611
  }
4330
- if ("string" === typeof node$jscomp$0)
4612
+ if ("string" === typeof node)
4331
4613
  (childIndex = task.blockedSegment),
4332
4614
  null !== childIndex &&
4333
4615
  (childIndex.lastPushedText = pushTextInstance(
4334
4616
  childIndex.chunks,
4335
- node$jscomp$0,
4617
+ node,
4336
4618
  request.renderState,
4337
4619
  childIndex.lastPushedText
4338
4620
  ));
4339
- else if (
4340
- "number" === typeof node$jscomp$0 ||
4341
- "bigint" === typeof node$jscomp$0
4342
- )
4621
+ else if ("number" === typeof node || "bigint" === typeof node)
4343
4622
  (childIndex = task.blockedSegment),
4344
4623
  null !== childIndex &&
4345
4624
  (childIndex.lastPushedText = pushTextInstance(
4346
4625
  childIndex.chunks,
4347
- "" + node$jscomp$0,
4626
+ "" + node,
4348
4627
  request.renderState,
4349
4628
  childIndex.lastPushedText
4350
4629
  ));
@@ -4380,7 +4659,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4380
4659
  )
4381
4660
  throw x;
4382
4661
  task.replay.pendingTasks--;
4383
- children = getThrownInfo(request, task.componentStack);
4662
+ children = getThrownInfo(task.componentStack);
4384
4663
  var boundary = task.blockedBoundary,
4385
4664
  error = x;
4386
4665
  children = logRecoverableError(request, error, children);
@@ -4435,9 +4714,56 @@ function untrackBoundary(request, boundary) {
4435
4714
  void 0 !== boundary &&
4436
4715
  ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
4437
4716
  }
4717
+ function spawnNewSuspendedReplayTask(request, task, thenableState) {
4718
+ return createReplayTask(
4719
+ request,
4720
+ thenableState,
4721
+ task.replay,
4722
+ task.node,
4723
+ task.childIndex,
4724
+ task.blockedBoundary,
4725
+ task.hoistableState,
4726
+ task.abortSet,
4727
+ task.keyPath,
4728
+ task.formatContext,
4729
+ task.context,
4730
+ task.treeContext,
4731
+ task.componentStack,
4732
+ task.isFallback
4733
+ );
4734
+ }
4735
+ function spawnNewSuspendedRenderTask(request, task, thenableState) {
4736
+ var segment = task.blockedSegment,
4737
+ newSegment = createPendingSegment(
4738
+ request,
4739
+ segment.chunks.length,
4740
+ null,
4741
+ task.formatContext,
4742
+ segment.lastPushedText,
4743
+ !0
4744
+ );
4745
+ segment.children.push(newSegment);
4746
+ segment.lastPushedText = !1;
4747
+ return createRenderTask(
4748
+ request,
4749
+ thenableState,
4750
+ task.node,
4751
+ task.childIndex,
4752
+ task.blockedBoundary,
4753
+ newSegment,
4754
+ task.blockedPreamble,
4755
+ task.hoistableState,
4756
+ task.abortSet,
4757
+ task.keyPath,
4758
+ task.formatContext,
4759
+ task.context,
4760
+ task.treeContext,
4761
+ task.componentStack,
4762
+ task.isFallback
4763
+ );
4764
+ }
4438
4765
  function renderNode(request, task, node, childIndex) {
4439
4766
  var previousFormatContext = task.formatContext,
4440
- previousLegacyContext = task.legacyContext,
4441
4767
  previousContext = task.context,
4442
4768
  previousKeyPath = task.keyPath,
4443
4769
  previousTreeContext = task.treeContext,
@@ -4453,37 +4779,32 @@ function renderNode(request, task, node, childIndex) {
4453
4779
  thrownValue === SuspenseException
4454
4780
  ? getSuspendedThenable()
4455
4781
  : thrownValue),
4456
- "object" === typeof node &&
4457
- null !== node &&
4458
- "function" === typeof node.then)
4782
+ "object" === typeof node && null !== node)
4459
4783
  ) {
4460
- childIndex = getThenableStateAfterSuspending();
4461
- request = createReplayTask(
4462
- request,
4463
- childIndex,
4464
- task.replay,
4465
- task.node,
4466
- task.childIndex,
4467
- task.blockedBoundary,
4468
- task.hoistableState,
4469
- task.abortSet,
4470
- task.keyPath,
4471
- task.formatContext,
4472
- task.legacyContext,
4473
- task.context,
4474
- task.treeContext,
4475
- null !== task.componentStack ? task.componentStack.parent : null,
4476
- task.isFallback
4477
- ).ping;
4478
- node.then(request, request);
4479
- task.formatContext = previousFormatContext;
4480
- task.legacyContext = previousLegacyContext;
4481
- task.context = previousContext;
4482
- task.keyPath = previousKeyPath;
4483
- task.treeContext = previousTreeContext;
4484
- task.componentStack = previousComponentStack;
4485
- switchContext(previousContext);
4486
- return;
4784
+ if ("function" === typeof node.then) {
4785
+ childIndex = getThenableStateAfterSuspending();
4786
+ request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
4787
+ node.then(request, request);
4788
+ task.formatContext = previousFormatContext;
4789
+ task.context = previousContext;
4790
+ task.keyPath = previousKeyPath;
4791
+ task.treeContext = previousTreeContext;
4792
+ task.componentStack = previousComponentStack;
4793
+ switchContext(previousContext);
4794
+ return;
4795
+ }
4796
+ if ("Maximum call stack size exceeded" === node.message) {
4797
+ node = getThenableStateAfterSuspending();
4798
+ node = spawnNewSuspendedReplayTask(request, task, node);
4799
+ request.pingedTasks.push(node);
4800
+ task.formatContext = previousFormatContext;
4801
+ task.context = previousContext;
4802
+ task.keyPath = previousKeyPath;
4803
+ task.treeContext = previousTreeContext;
4804
+ task.componentStack = previousComponentStack;
4805
+ switchContext(previousContext);
4806
+ return;
4807
+ }
4487
4808
  }
4488
4809
  }
4489
4810
  else {
@@ -4491,62 +4812,45 @@ function renderNode(request, task, node, childIndex) {
4491
4812
  chunkLength = segment.chunks.length;
4492
4813
  try {
4493
4814
  return renderNodeDestructive(request, task, node, childIndex);
4494
- } catch (thrownValue$40) {
4815
+ } catch (thrownValue$48) {
4495
4816
  if (
4496
4817
  (resetHooksState(),
4497
4818
  (segment.children.length = childrenLength),
4498
4819
  (segment.chunks.length = chunkLength),
4499
4820
  (node =
4500
- thrownValue$40 === SuspenseException
4821
+ thrownValue$48 === SuspenseException
4501
4822
  ? getSuspendedThenable()
4502
- : thrownValue$40),
4503
- "object" === typeof node &&
4504
- null !== node &&
4505
- "function" === typeof node.then)
4823
+ : thrownValue$48),
4824
+ "object" === typeof node && null !== node)
4506
4825
  ) {
4507
- childIndex = getThenableStateAfterSuspending();
4508
- segment = task.blockedSegment;
4509
- childrenLength = createPendingSegment(
4510
- request,
4511
- segment.chunks.length,
4512
- null,
4513
- task.formatContext,
4514
- segment.lastPushedText,
4515
- !0
4516
- );
4517
- segment.children.push(childrenLength);
4518
- segment.lastPushedText = !1;
4519
- request = createRenderTask(
4520
- request,
4521
- childIndex,
4522
- task.node,
4523
- task.childIndex,
4524
- task.blockedBoundary,
4525
- childrenLength,
4526
- task.hoistableState,
4527
- task.abortSet,
4528
- task.keyPath,
4529
- task.formatContext,
4530
- task.legacyContext,
4531
- task.context,
4532
- task.treeContext,
4533
- null !== task.componentStack ? task.componentStack.parent : null,
4534
- task.isFallback
4535
- ).ping;
4536
- node.then(request, request);
4537
- task.formatContext = previousFormatContext;
4538
- task.legacyContext = previousLegacyContext;
4539
- task.context = previousContext;
4540
- task.keyPath = previousKeyPath;
4541
- task.treeContext = previousTreeContext;
4542
- task.componentStack = previousComponentStack;
4543
- switchContext(previousContext);
4544
- return;
4826
+ if ("function" === typeof node.then) {
4827
+ childIndex = getThenableStateAfterSuspending();
4828
+ request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
4829
+ node.then(request, request);
4830
+ task.formatContext = previousFormatContext;
4831
+ task.context = previousContext;
4832
+ task.keyPath = previousKeyPath;
4833
+ task.treeContext = previousTreeContext;
4834
+ task.componentStack = previousComponentStack;
4835
+ switchContext(previousContext);
4836
+ return;
4837
+ }
4838
+ if ("Maximum call stack size exceeded" === node.message) {
4839
+ node = getThenableStateAfterSuspending();
4840
+ node = spawnNewSuspendedRenderTask(request, task, node);
4841
+ request.pingedTasks.push(node);
4842
+ task.formatContext = previousFormatContext;
4843
+ task.context = previousContext;
4844
+ task.keyPath = previousKeyPath;
4845
+ task.treeContext = previousTreeContext;
4846
+ task.componentStack = previousComponentStack;
4847
+ switchContext(previousContext);
4848
+ return;
4849
+ }
4545
4850
  }
4546
4851
  }
4547
4852
  }
4548
4853
  task.formatContext = previousFormatContext;
4549
- task.legacyContext = previousLegacyContext;
4550
4854
  task.context = previousContext;
4551
4855
  task.keyPath = previousKeyPath;
4552
4856
  task.treeContext = previousTreeContext;
@@ -4581,7 +4885,12 @@ function abortRemainingReplayNodes(
4581
4885
  node = node[5];
4582
4886
  var request = request$jscomp$0,
4583
4887
  errorDigest = errorDigest$jscomp$0,
4584
- resumedBoundary = createSuspenseBoundary(request, new Set());
4888
+ resumedBoundary = createSuspenseBoundary(
4889
+ request,
4890
+ new Set(),
4891
+ null,
4892
+ null
4893
+ );
4585
4894
  resumedBoundary.parentFlushed = !0;
4586
4895
  resumedBoundary.rootSegmentID = node;
4587
4896
  resumedBoundary.status = 4;
@@ -4604,26 +4913,30 @@ function abortRemainingReplayNodes(
4604
4913
  function abortTask(task, request, error) {
4605
4914
  var boundary = task.blockedBoundary,
4606
4915
  segment = task.blockedSegment;
4607
- null !== segment && (segment.status = 3);
4916
+ if (null !== segment) {
4917
+ if (6 === segment.status) return;
4918
+ segment.status = 3;
4919
+ }
4920
+ segment = getThrownInfo(task.componentStack);
4608
4921
  if (null === boundary) {
4609
- if (((boundary = {}), 1 !== request.status && 2 !== request.status)) {
4610
- task = task.replay;
4611
- if (null === task) {
4612
- logRecoverableError(request, error, boundary);
4922
+ if (13 !== request.status && 14 !== request.status) {
4923
+ boundary = task.replay;
4924
+ if (null === boundary) {
4925
+ logRecoverableError(request, error, segment);
4613
4926
  fatalError(request, error);
4614
4927
  return;
4615
4928
  }
4616
- task.pendingTasks--;
4617
- 0 === task.pendingTasks &&
4618
- 0 < task.nodes.length &&
4619
- ((boundary = logRecoverableError(request, error, boundary)),
4929
+ boundary.pendingTasks--;
4930
+ 0 === boundary.pendingTasks &&
4931
+ 0 < boundary.nodes.length &&
4932
+ ((task = logRecoverableError(request, error, segment)),
4620
4933
  abortRemainingReplayNodes(
4621
4934
  request,
4622
4935
  null,
4623
- task.nodes,
4624
- task.slots,
4936
+ boundary.nodes,
4937
+ boundary.slots,
4625
4938
  error,
4626
- boundary
4939
+ task
4627
4940
  ));
4628
4941
  request.pendingRootTasks--;
4629
4942
  0 === request.pendingRootTasks && completeShell(request);
@@ -4632,8 +4945,8 @@ function abortTask(task, request, error) {
4632
4945
  boundary.pendingTasks--,
4633
4946
  4 !== boundary.status &&
4634
4947
  ((boundary.status = 4),
4635
- (task = getThrownInfo(request, task.componentStack)),
4636
- (task = logRecoverableError(request, error, task)),
4948
+ (task = logRecoverableError(request, error, segment)),
4949
+ (boundary.status = 4),
4637
4950
  (boundary.errorDigest = task),
4638
4951
  untrackBoundary(request, boundary),
4639
4952
  boundary.parentFlushed &&
@@ -4687,7 +5000,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
4687
5000
  referrerPolicy: props$jscomp$0.referrerPolicy,
4688
5001
  media: props$jscomp$0.media
4689
5002
  });
4690
- if (2 <= (headers.remainingCapacity -= header.length))
5003
+ if (0 <= (headers.remainingCapacity -= header.length + 2))
4691
5004
  (renderState.resets.style[key] = PRELOAD_NO_CREDS),
4692
5005
  linkHeader && (linkHeader += ", "),
4693
5006
  (linkHeader += header),
@@ -4708,6 +5021,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
4708
5021
  }
4709
5022
  function completeShell(request) {
4710
5023
  null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
5024
+ null === request.trackedPostpones && preparePreamble(request);
4711
5025
  request.onShellError = noop;
4712
5026
  request = request.onShellReady;
4713
5027
  request();
@@ -4720,6 +5034,7 @@ function completeAll(request) {
4720
5034
  : null === request.completedRootSegment ||
4721
5035
  5 !== request.completedRootSegment.status
4722
5036
  );
5037
+ preparePreamble(request);
4723
5038
  request = request.onAllReady;
4724
5039
  request();
4725
5040
  }
@@ -4758,7 +5073,11 @@ function finishedTask(request, boundary, segment) {
4758
5073
  request.completedBoundaries.push(boundary),
4759
5074
  1 === boundary.status &&
4760
5075
  (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
4761
- boundary.fallbackAbortableTasks.clear()))
5076
+ boundary.fallbackAbortableTasks.clear(),
5077
+ 0 === request.pendingRootTasks &&
5078
+ null === request.trackedPostpones &&
5079
+ null !== boundary.contentPreamble &&
5080
+ preparePreamble(request)))
4762
5081
  : null !== segment &&
4763
5082
  segment.parentFlushed &&
4764
5083
  1 === segment.status &&
@@ -4770,7 +5089,7 @@ function finishedTask(request, boundary, segment) {
4770
5089
  0 === request.allPendingTasks && completeAll(request);
4771
5090
  }
4772
5091
  function performWork(request$jscomp$2) {
4773
- if (2 !== request$jscomp$2.status) {
5092
+ if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
4774
5093
  var prevContext = currentActiveSnapshot,
4775
5094
  prevDispatcher = ReactSharedInternals.H;
4776
5095
  ReactSharedInternals.H = HooksDispatcher;
@@ -4792,12 +5111,15 @@ function performWork(request$jscomp$2) {
4792
5111
  if (0 !== task.replay.pendingTasks) {
4793
5112
  switchContext(task.context);
4794
5113
  try {
4795
- renderNodeDestructive(
4796
- request$jscomp$0,
4797
- task,
4798
- task.node,
4799
- task.childIndex
4800
- );
5114
+ "number" === typeof task.replay.slots
5115
+ ? resumeNode(
5116
+ request$jscomp$0,
5117
+ task,
5118
+ task.replay.slots,
5119
+ task.node,
5120
+ task.childIndex
5121
+ )
5122
+ : retryNode(request$jscomp$0, task);
4801
5123
  if (
4802
5124
  1 === task.replay.pendingTasks &&
4803
5125
  0 < task.replay.nodes.length
@@ -4820,19 +5142,17 @@ function performWork(request$jscomp$2) {
4820
5142
  var ping = task.ping;
4821
5143
  x.then(ping, ping);
4822
5144
  task.thenableState = getThenableStateAfterSuspending();
4823
- null !== task.componentStack &&
4824
- (task.componentStack = task.componentStack.parent);
4825
5145
  } else {
4826
5146
  task.replay.pendingTasks--;
4827
5147
  task.abortSet.delete(task);
4828
- var errorInfo = getThrownInfo(
4829
- request$jscomp$0,
4830
- task.componentStack
4831
- );
5148
+ var errorInfo = getThrownInfo(task.componentStack);
4832
5149
  request = void 0;
4833
5150
  var request$jscomp$1 = request$jscomp$0,
4834
5151
  boundary = task.blockedBoundary,
4835
- error$jscomp$0 = x,
5152
+ error$jscomp$0 =
5153
+ 12 === request$jscomp$0.status
5154
+ ? request$jscomp$0.fatalError
5155
+ : x,
4836
5156
  replayNodes = task.replay.nodes,
4837
5157
  resumeSlots = task.replay.slots;
4838
5158
  request = logRecoverableError(
@@ -4863,15 +5183,18 @@ function performWork(request$jscomp$2) {
4863
5183
  (request$jscomp$1 = segment),
4864
5184
  0 === request$jscomp$1.status)
4865
5185
  ) {
5186
+ request$jscomp$1.status = 6;
4866
5187
  switchContext(task.context);
4867
5188
  var childrenLength = request$jscomp$1.children.length,
4868
5189
  chunkLength = request$jscomp$1.chunks.length;
4869
5190
  try {
4870
- renderNodeDestructive(request, task, task.node, task.childIndex),
4871
- request.renderState.generateStaticMarkup ||
4872
- (request$jscomp$1.lastPushedText &&
4873
- request$jscomp$1.textEmbedded &&
4874
- request$jscomp$1.chunks.push("\x3c!-- --\x3e")),
5191
+ retryNode(request, task),
5192
+ pushSegmentFinale(
5193
+ request$jscomp$1.chunks,
5194
+ request.renderState,
5195
+ request$jscomp$1.lastPushedText,
5196
+ request$jscomp$1.textEmbedded
5197
+ ),
4875
5198
  task.abortSet.delete(task),
4876
5199
  (request$jscomp$1.status = 1),
4877
5200
  finishedTask(request, task.blockedBoundary, request$jscomp$1);
@@ -4882,22 +5205,20 @@ function performWork(request$jscomp$2) {
4882
5205
  var x$jscomp$0 =
4883
5206
  thrownValue === SuspenseException
4884
5207
  ? getSuspendedThenable()
4885
- : thrownValue;
5208
+ : 12 === request.status
5209
+ ? request.fatalError
5210
+ : thrownValue;
4886
5211
  if (
4887
5212
  "object" === typeof x$jscomp$0 &&
4888
5213
  null !== x$jscomp$0 &&
4889
5214
  "function" === typeof x$jscomp$0.then
4890
5215
  ) {
5216
+ request$jscomp$1.status = 0;
5217
+ task.thenableState = getThenableStateAfterSuspending();
4891
5218
  var ping$jscomp$0 = task.ping;
4892
5219
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
4893
- task.thenableState = getThenableStateAfterSuspending();
4894
- null !== task.componentStack &&
4895
- (task.componentStack = task.componentStack.parent);
4896
5220
  } else {
4897
- var errorInfo$jscomp$0 = getThrownInfo(
4898
- request,
4899
- task.componentStack
4900
- );
5221
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
4901
5222
  task.abortSet.delete(task);
4902
5223
  request$jscomp$1.status = 4;
4903
5224
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -4914,9 +5235,11 @@ function performWork(request$jscomp$2) {
4914
5235
  (boundary$jscomp$0.errorDigest = request$jscomp$0),
4915
5236
  untrackBoundary(request, boundary$jscomp$0),
4916
5237
  boundary$jscomp$0.parentFlushed &&
4917
- request.clientRenderedBoundaries.push(
4918
- boundary$jscomp$0
4919
- )));
5238
+ request.clientRenderedBoundaries.push(boundary$jscomp$0),
5239
+ 0 === request.pendingRootTasks &&
5240
+ null === request.trackedPostpones &&
5241
+ null !== boundary$jscomp$0.contentPreamble &&
5242
+ preparePreamble(request)));
4920
5243
  request.allPendingTasks--;
4921
5244
  0 === request.allPendingTasks && completeAll(request);
4922
5245
  }
@@ -4939,6 +5262,82 @@ function performWork(request$jscomp$2) {
4939
5262
  }
4940
5263
  }
4941
5264
  }
5265
+ function preparePreambleFromSubtree(
5266
+ request,
5267
+ segment,
5268
+ collectedPreambleSegments
5269
+ ) {
5270
+ segment.preambleChildren.length &&
5271
+ collectedPreambleSegments.push(segment.preambleChildren);
5272
+ for (var pendingPreambles = !1, i = 0; i < segment.children.length; i++)
5273
+ pendingPreambles =
5274
+ preparePreambleFromSegment(
5275
+ request,
5276
+ segment.children[i],
5277
+ collectedPreambleSegments
5278
+ ) || pendingPreambles;
5279
+ return pendingPreambles;
5280
+ }
5281
+ function preparePreambleFromSegment(
5282
+ request,
5283
+ segment,
5284
+ collectedPreambleSegments
5285
+ ) {
5286
+ var boundary = segment.boundary;
5287
+ if (null === boundary)
5288
+ return preparePreambleFromSubtree(
5289
+ request,
5290
+ segment,
5291
+ collectedPreambleSegments
5292
+ );
5293
+ var preamble = boundary.contentPreamble,
5294
+ fallbackPreamble = boundary.fallbackPreamble;
5295
+ if (null === preamble || null === fallbackPreamble) return !1;
5296
+ switch (boundary.status) {
5297
+ case 1:
5298
+ hoistPreambleState(request.renderState, preamble);
5299
+ segment = boundary.completedSegments[0];
5300
+ if (!segment) throw Error(formatProdErrorMessage(391));
5301
+ return preparePreambleFromSubtree(
5302
+ request,
5303
+ segment,
5304
+ collectedPreambleSegments
5305
+ );
5306
+ case 5:
5307
+ if (null !== request.trackedPostpones) return !0;
5308
+ case 4:
5309
+ if (1 === segment.status)
5310
+ return (
5311
+ hoistPreambleState(request.renderState, fallbackPreamble),
5312
+ preparePreambleFromSubtree(
5313
+ request,
5314
+ segment,
5315
+ collectedPreambleSegments
5316
+ )
5317
+ );
5318
+ default:
5319
+ return !0;
5320
+ }
5321
+ }
5322
+ function preparePreamble(request) {
5323
+ if (
5324
+ request.completedRootSegment &&
5325
+ null === request.completedPreambleSegments
5326
+ ) {
5327
+ var collectedPreambleSegments = [],
5328
+ hasPendingPreambles = preparePreambleFromSegment(
5329
+ request,
5330
+ request.completedRootSegment,
5331
+ collectedPreambleSegments
5332
+ ),
5333
+ preamble = request.renderState.preamble;
5334
+ if (
5335
+ !1 === hasPendingPreambles ||
5336
+ (preamble.headChunks && preamble.bodyChunks)
5337
+ )
5338
+ request.completedPreambleSegments = collectedPreambleSegments;
5339
+ }
5340
+ }
4942
5341
  function flushSubtree(request, destination, segment, hoistableState) {
4943
5342
  segment.parentFlushed = !0;
4944
5343
  switch (segment.status) {
@@ -4980,24 +5379,26 @@ function flushSegment(request, destination, segment, hoistableState) {
4980
5379
  if (null === boundary)
4981
5380
  return flushSubtree(request, destination, segment, hoistableState);
4982
5381
  boundary.parentFlushed = !0;
4983
- if (4 === boundary.status)
4984
- return (
4985
- request.renderState.generateStaticMarkup ||
4986
- ((boundary = boundary.errorDigest),
4987
- destination.push("\x3c!--$!--\x3e"),
4988
- destination.push("<template"),
4989
- boundary &&
4990
- (destination.push(' data-dgst="'),
4991
- (boundary = escapeTextForBrowser(boundary)),
4992
- destination.push(boundary),
4993
- destination.push('"')),
4994
- destination.push("></template>")),
4995
- flushSubtree(request, destination, segment, hoistableState),
4996
- (request = request.renderState.generateStaticMarkup
4997
- ? !0
4998
- : destination.push("\x3c!--/$--\x3e")),
4999
- request
5000
- );
5382
+ if (4 === boundary.status) {
5383
+ if (!request.renderState.generateStaticMarkup) {
5384
+ var errorDigest = boundary.errorDigest;
5385
+ destination.push("\x3c!--$!--\x3e");
5386
+ destination.push("<template");
5387
+ errorDigest &&
5388
+ (destination.push(' data-dgst="'),
5389
+ (errorDigest = escapeTextForBrowser(errorDigest)),
5390
+ destination.push(errorDigest),
5391
+ destination.push('"'));
5392
+ destination.push("></template>");
5393
+ }
5394
+ flushSubtree(request, destination, segment, hoistableState);
5395
+ request.renderState.generateStaticMarkup
5396
+ ? (destination = !0)
5397
+ : ((request = boundary.fallbackPreamble) &&
5398
+ writePreambleContribution(destination, request),
5399
+ (destination = destination.push("\x3c!--/$--\x3e")));
5400
+ return destination;
5401
+ }
5001
5402
  if (1 !== boundary.status)
5002
5403
  return (
5003
5404
  0 === boundary.status &&
@@ -5040,10 +5441,12 @@ function flushSegment(request, destination, segment, hoistableState) {
5040
5441
  segment = boundary.completedSegments;
5041
5442
  if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
5042
5443
  flushSegment(request, destination, segment[0], hoistableState);
5043
- request = request.renderState.generateStaticMarkup
5044
- ? !0
5045
- : destination.push("\x3c!--/$--\x3e");
5046
- return request;
5444
+ request.renderState.generateStaticMarkup
5445
+ ? (destination = !0)
5446
+ : ((request = boundary.contentPreamble) &&
5447
+ writePreambleContribution(destination, request),
5448
+ (destination = destination.push("\x3c!--/$--\x3e")));
5449
+ return destination;
5047
5450
  }
5048
5451
  function flushSegmentContainer(request, destination, segment, hoistableState) {
5049
5452
  writeStartSegment(
@@ -5084,20 +5487,20 @@ function flushCompletedBoundary(request, destination, boundary) {
5084
5487
  ? 0 === (completedSegments.instructions & 2)
5085
5488
  ? ((completedSegments.instructions |= 10),
5086
5489
  destination.push(
5087
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'
5490
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5088
5491
  ))
5089
5492
  : 0 === (completedSegments.instructions & 8)
5090
- ? ((completedSegments.instructions |= 8),
5493
+ ? ((completedSegments.instructions |= 8),
5494
+ destination.push(
5495
+ '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5496
+ ))
5497
+ : destination.push('$RR("')
5498
+ : 0 === (completedSegments.instructions & 2)
5499
+ ? ((completedSegments.instructions |= 2),
5091
5500
  destination.push(
5092
- '$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'
5501
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5093
5502
  ))
5094
- : destination.push('$RR("')
5095
- : 0 === (completedSegments.instructions & 2)
5096
- ? ((completedSegments.instructions |= 2),
5097
- destination.push(
5098
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5099
- ))
5100
- : destination.push('$RC("');
5503
+ : destination.push('$RC("');
5101
5504
  completedSegments = i.toString(16);
5102
5505
  destination.push(request.boundaryPrefix);
5103
5506
  destination.push(completedSegments);
@@ -5153,9 +5556,12 @@ function flushCompletedQueues(request, destination) {
5153
5556
  completedRootSegment = request.completedRootSegment;
5154
5557
  if (null !== completedRootSegment) {
5155
5558
  if (5 === completedRootSegment.status) return;
5559
+ var completedPreambleSegments = request.completedPreambleSegments;
5560
+ if (null === completedPreambleSegments) return;
5156
5561
  var renderState = request.renderState,
5157
- htmlChunks = renderState.htmlChunks,
5158
- headChunks = renderState.headChunks,
5562
+ preamble = renderState.preamble,
5563
+ htmlChunks = preamble.htmlChunks,
5564
+ headChunks = preamble.headChunks,
5159
5565
  i$jscomp$0;
5160
5566
  if (htmlChunks) {
5161
5567
  for (i$jscomp$0 = 0; i$jscomp$0 < htmlChunks.length; i$jscomp$0++)
@@ -5198,11 +5604,29 @@ function flushCompletedQueues(request, destination) {
5198
5604
  var hoistableChunks = renderState.hoistableChunks;
5199
5605
  for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
5200
5606
  destination.push(hoistableChunks[i$jscomp$0]);
5201
- hoistableChunks.length = 0;
5202
- if (htmlChunks && null === headChunks) {
5607
+ for (
5608
+ renderState = hoistableChunks.length = 0;
5609
+ renderState < completedPreambleSegments.length;
5610
+ renderState++
5611
+ ) {
5612
+ var segments = completedPreambleSegments[renderState];
5613
+ for (preamble = 0; preamble < segments.length; preamble++)
5614
+ flushSegment(request, destination, segments[preamble], null);
5615
+ }
5616
+ var preamble$jscomp$0 = request.renderState.preamble,
5617
+ headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
5618
+ if (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) {
5203
5619
  var chunk$jscomp$0 = endChunkForTag("head");
5204
5620
  destination.push(chunk$jscomp$0);
5205
5621
  }
5622
+ var bodyChunks = preamble$jscomp$0.bodyChunks;
5623
+ if (bodyChunks)
5624
+ for (
5625
+ completedPreambleSegments = 0;
5626
+ completedPreambleSegments < bodyChunks.length;
5627
+ completedPreambleSegments++
5628
+ )
5629
+ destination.push(bodyChunks[completedPreambleSegments]);
5206
5630
  flushSegment(request, destination, completedRootSegment, null);
5207
5631
  request.completedRootSegment = null;
5208
5632
  writeBootstrap(destination, request.renderState);
@@ -5288,11 +5712,11 @@ function flushCompletedQueues(request, destination) {
5288
5712
  completedBoundaries.splice(0, i);
5289
5713
  var partialBoundaries = request.partialBoundaries;
5290
5714
  for (i = 0; i < partialBoundaries.length; i++) {
5291
- var boundary$44 = partialBoundaries[i];
5715
+ var boundary$51 = partialBoundaries[i];
5292
5716
  a: {
5293
5717
  clientRenderedBoundaries = request;
5294
5718
  boundary = destination;
5295
- var completedSegments = boundary$44.completedSegments;
5719
+ var completedSegments = boundary$51.completedSegments;
5296
5720
  for (
5297
5721
  JSCompiler_inline_result = 0;
5298
5722
  JSCompiler_inline_result < completedSegments.length;
@@ -5302,7 +5726,7 @@ function flushCompletedQueues(request, destination) {
5302
5726
  !flushPartiallyCompletedSegment(
5303
5727
  clientRenderedBoundaries,
5304
5728
  boundary,
5305
- boundary$44,
5729
+ boundary$51,
5306
5730
  completedSegments[JSCompiler_inline_result]
5307
5731
  )
5308
5732
  ) {
@@ -5314,7 +5738,7 @@ function flushCompletedQueues(request, destination) {
5314
5738
  completedSegments.splice(0, JSCompiler_inline_result);
5315
5739
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
5316
5740
  boundary,
5317
- boundary$44.contentState,
5741
+ boundary$51.contentState,
5318
5742
  clientRenderedBoundaries.renderState
5319
5743
  );
5320
5744
  }
@@ -5347,6 +5771,7 @@ function flushCompletedQueues(request, destination) {
5347
5771
  ((partialBoundaries = endChunkForTag("body")),
5348
5772
  destination.push(partialBoundaries)),
5349
5773
  i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
5774
+ (request.status = 14),
5350
5775
  destination.push(null),
5351
5776
  (request.destination = null));
5352
5777
  }
@@ -5365,9 +5790,9 @@ function enqueueFlush(request) {
5365
5790
  }
5366
5791
  }
5367
5792
  function startFlowing(request, destination) {
5368
- if (1 === request.status)
5369
- (request.status = 2), destination.destroy(request.fatalError);
5370
- else if (2 !== request.status && null === request.destination) {
5793
+ if (13 === request.status)
5794
+ (request.status = 14), destination.destroy(request.fatalError);
5795
+ else if (14 !== request.status && null === request.destination) {
5371
5796
  request.destination = destination;
5372
5797
  try {
5373
5798
  flushCompletedQueues(request, destination);
@@ -5377,11 +5802,19 @@ function startFlowing(request, destination) {
5377
5802
  }
5378
5803
  }
5379
5804
  function abort(request, reason) {
5805
+ if (11 === request.status || 10 === request.status) request.status = 12;
5380
5806
  try {
5381
5807
  var abortableTasks = request.abortableTasks;
5382
5808
  if (0 < abortableTasks.size) {
5383
5809
  var error =
5384
- void 0 === reason ? Error(formatProdErrorMessage(432)) : reason;
5810
+ void 0 === reason
5811
+ ? Error(formatProdErrorMessage(432))
5812
+ : "object" === typeof reason &&
5813
+ null !== reason &&
5814
+ "function" === typeof reason.then
5815
+ ? Error(formatProdErrorMessage(530))
5816
+ : reason;
5817
+ request.fatalError = error;
5385
5818
  abortableTasks.forEach(function (task) {
5386
5819
  return abortTask(task, request, error);
5387
5820
  });
@@ -5389,8 +5822,8 @@ function abort(request, reason) {
5389
5822
  }
5390
5823
  null !== request.destination &&
5391
5824
  flushCompletedQueues(request, request.destination);
5392
- } catch (error$46) {
5393
- logRecoverableError(request, error$46, {}), fatalError(request, error$46);
5825
+ } catch (error$53) {
5826
+ logRecoverableError(request, error$53, {}), fatalError(request, error$53);
5394
5827
  }
5395
5828
  }
5396
5829
  function onError() {}
@@ -5422,6 +5855,7 @@ function renderToStringImpl(
5422
5855
  );
5423
5856
  children.flushScheduled = null !== children.destination;
5424
5857
  performWork(children);
5858
+ 10 === children.status && (children.status = 11);
5425
5859
  null === children.trackedPostpones &&
5426
5860
  safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
5427
5861
  abort(children, abortReason);
@@ -5455,4 +5889,4 @@ exports.renderToString = function (children, options) {
5455
5889
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
5456
5890
  );
5457
5891
  };
5458
- exports.version = "19.0.0-beta-4508873393-20240430";
5892
+ exports.version = "19.2.0-canary-5252281c-20250408";