openplanr 3.1.1 → 3.2.0

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 (363) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/cli/commands/groups/delivery.d.ts.map +1 -1
  3. package/dist/cli/commands/groups/delivery.js +2 -0
  4. package/dist/cli/commands/groups/delivery.js.map +1 -1
  5. package/dist/cli/commands/planning-artifacts.d.ts.map +1 -1
  6. package/dist/cli/commands/planning-artifacts.js +22 -12
  7. package/dist/cli/commands/planning-artifacts.js.map +1 -1
  8. package/dist/cli/commands/ship.d.ts +3 -0
  9. package/dist/cli/commands/ship.d.ts.map +1 -0
  10. package/dist/cli/commands/ship.js +65 -0
  11. package/dist/cli/commands/ship.js.map +1 -0
  12. package/dist/dashboard/.vite/manifest.json +1 -1
  13. package/dist/dashboard/assets/{index-G7ygVDGg.js → index-L8qtwqv6.js} +2 -2
  14. package/dist/dashboard/assets/{index-G7ygVDGg.js.map → index-L8qtwqv6.js.map} +1 -1
  15. package/dist/dashboard/dashboard-manifest.json +8 -8
  16. package/dist/dashboard/index.html +1 -1
  17. package/dist/models/schema.d.ts +39 -23
  18. package/dist/models/schema.d.ts.map +1 -1
  19. package/dist/models/schema.js +19 -12
  20. package/dist/models/schema.js.map +1 -1
  21. package/dist/models/types.d.ts +6 -0
  22. package/dist/models/types.d.ts.map +1 -1
  23. package/dist/services/id-service.d.ts +1 -5
  24. package/dist/services/id-service.d.ts.map +1 -1
  25. package/dist/services/id-service.js +1 -34
  26. package/dist/services/id-service.js.map +1 -1
  27. package/dist/services/ship-checks/changes.d.ts +24 -0
  28. package/dist/services/ship-checks/changes.d.ts.map +1 -0
  29. package/dist/services/ship-checks/changes.js +135 -0
  30. package/dist/services/ship-checks/changes.js.map +1 -0
  31. package/dist/services/ship-checks/contract.d.ts +81 -0
  32. package/dist/services/ship-checks/contract.d.ts.map +1 -0
  33. package/dist/services/ship-checks/contract.js +7 -0
  34. package/dist/services/ship-checks/contract.js.map +1 -0
  35. package/dist/services/ship-checks/discover.d.ts +10 -0
  36. package/dist/services/ship-checks/discover.d.ts.map +1 -0
  37. package/dist/services/ship-checks/discover.js +250 -0
  38. package/dist/services/ship-checks/discover.js.map +1 -0
  39. package/dist/services/ship-checks/glob.d.ts +5 -0
  40. package/dist/services/ship-checks/glob.d.ts.map +1 -0
  41. package/dist/services/ship-checks/glob.js +39 -0
  42. package/dist/services/ship-checks/glob.js.map +1 -0
  43. package/dist/services/ship-checks/hooks.d.ts +7 -0
  44. package/dist/services/ship-checks/hooks.d.ts.map +1 -0
  45. package/dist/services/ship-checks/hooks.js +65 -0
  46. package/dist/services/ship-checks/hooks.js.map +1 -0
  47. package/dist/services/ship-checks/packages.d.ts +29 -0
  48. package/dist/services/ship-checks/packages.d.ts.map +1 -0
  49. package/dist/services/ship-checks/packages.js +197 -0
  50. package/dist/services/ship-checks/packages.js.map +1 -0
  51. package/dist/services/ship-checks/related-tests.d.ts +13 -0
  52. package/dist/services/ship-checks/related-tests.d.ts.map +1 -0
  53. package/dist/services/ship-checks/related-tests.js +73 -0
  54. package/dist/services/ship-checks/related-tests.js.map +1 -0
  55. package/dist/services/ship-checks/scope.d.ts +8 -0
  56. package/dist/services/ship-checks/scope.d.ts.map +1 -0
  57. package/dist/services/ship-checks/scope.js +66 -0
  58. package/dist/services/ship-checks/scope.js.map +1 -0
  59. package/dist/services/ship-checks/task-requirements.d.ts +14 -0
  60. package/dist/services/ship-checks/task-requirements.d.ts.map +1 -0
  61. package/dist/services/ship-checks/task-requirements.js +145 -0
  62. package/dist/services/ship-checks/task-requirements.js.map +1 -0
  63. package/dist/services/ship-checks/workflows.d.ts +21 -0
  64. package/dist/services/ship-checks/workflows.d.ts.map +1 -0
  65. package/dist/services/ship-checks/workflows.js +208 -0
  66. package/dist/services/ship-checks/workflows.js.map +1 -0
  67. package/dist/services/template-service.d.ts +2 -0
  68. package/dist/services/template-service.d.ts.map +1 -1
  69. package/dist/services/template-service.js +4 -0
  70. package/dist/services/template-service.js.map +1 -1
  71. package/dist/utils/slugify.d.ts +1 -8
  72. package/dist/utils/slugify.d.ts.map +1 -1
  73. package/dist/utils/slugify.js +1 -25
  74. package/dist/utils/slugify.js.map +1 -1
  75. package/docs/CLI.md +48 -1
  76. package/lib/backlog-item.d.mts +49 -0
  77. package/lib/backlog-item.mjs +339 -0
  78. package/lib/host-packages/adapter-registry.json +5 -5
  79. package/lib/host-packages/capability-map.json +1 -1
  80. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  81. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  82. package/lib/host-packages/claude/openplanr/.openplanr-content.json +126 -90
  83. package/lib/host-packages/claude/openplanr/CONNECTORS.md +4 -6
  84. package/lib/host-packages/claude/openplanr/README.md +1 -1
  85. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
  86. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
  87. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +385 -79
  88. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
  89. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
  90. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +45 -4
  91. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → claude/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
  92. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +8 -5
  93. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
  94. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
  95. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-shared-protocol-contracts-31a760fc.mjs → design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
  96. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
  97. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +215 -55
  98. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
  99. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
  100. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
  101. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
  102. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
  103. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
  104. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
  105. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
  106. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
  107. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
  108. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
  109. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
  110. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
  111. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
  112. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
  113. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
  114. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
  115. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
  116. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
  117. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
  118. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
  119. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
  120. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
  121. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
  122. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
  123. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
  124. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
  125. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
  126. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
  127. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  128. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
  129. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
  130. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +45 -12
  131. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  132. package/lib/host-packages/claude/openplanr/skills/connect/references/connectors.md +4 -6
  133. package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +12 -0
  134. package/lib/host-packages/claude/openplanr/skills/design/references/craft.md +14 -3
  135. package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +33 -1
  136. package/lib/host-packages/claude/openplanr/skills/design/references/discovery.md +18 -4
  137. package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +74 -1
  138. package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +62 -0
  139. package/lib/host-packages/claude/openplanr/skills/design/references/review.md +46 -1
  140. package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +6 -0
  141. package/lib/host-packages/claude/openplanr/skills/design/schemas/design-document.schema.json +78 -5
  142. package/lib/host-packages/claude/openplanr/skills/design-loop/references/craft.md +14 -3
  143. package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +33 -1
  144. package/lib/host-packages/claude/openplanr/skills/design-loop/references/discovery.md +18 -4
  145. package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +74 -1
  146. package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +46 -1
  147. package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +6 -0
  148. package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
  149. package/lib/host-packages/claude/openplanr/skills/design-review/references/craft.md +14 -3
  150. package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +33 -1
  151. package/lib/host-packages/claude/openplanr/skills/design-review/references/discovery.md +18 -4
  152. package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +74 -1
  153. package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +46 -1
  154. package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +6 -0
  155. package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
  156. package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +10 -1
  157. package/lib/host-packages/claude/openplanr/skills/investigate/references/findings.md +92 -0
  158. package/lib/host-packages/claude/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
  159. package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +3 -0
  160. package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
  161. package/lib/host-packages/claude/openplanr/skills/share/references/connectors.md +4 -6
  162. package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +15 -4
  163. package/lib/host-packages/claude/openplanr/skills/ship/references/findings.md +92 -0
  164. package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +3 -1
  165. package/lib/host-packages/claude/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
  166. package/lib/host-packages/claude/openplanr/skills/sprint/references/connectors.md +4 -6
  167. package/lib/host-packages/claude/openplanr/skills/status/references/connectors.md +4 -6
  168. package/lib/host-packages/claude/openplanr/skills/sync/references/connectors.md +4 -6
  169. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +125 -89
  170. package/lib/host-packages/cursor/openplanr/CONNECTORS.md +4 -6
  171. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  172. package/lib/host-packages/cursor/openplanr/rules/planr-connect/references/connectors.md +4 -6
  173. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/craft.md +14 -3
  174. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +33 -1
  175. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/discovery.md +18 -4
  176. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +74 -1
  177. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +62 -0
  178. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +46 -1
  179. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +6 -0
  180. package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-document.schema.json +78 -5
  181. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/craft.md +14 -3
  182. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +33 -1
  183. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/discovery.md +18 -4
  184. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +74 -1
  185. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +46 -1
  186. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +6 -0
  187. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-document.schema.json +78 -5
  188. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/craft.md +14 -3
  189. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +33 -1
  190. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/discovery.md +18 -4
  191. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +74 -1
  192. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +46 -1
  193. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +6 -0
  194. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-document.schema.json +78 -5
  195. package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +12 -0
  196. package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/findings.md +92 -0
  197. package/lib/host-packages/cursor/openplanr/rules/planr-investigate/scripts/backlog-item.mjs +339 -0
  198. package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +10 -1
  199. package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-document.schema.json +78 -5
  200. package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +3 -0
  201. package/lib/host-packages/cursor/openplanr/rules/planr-share/references/connectors.md +4 -6
  202. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/findings.md +92 -0
  203. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +3 -1
  204. package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/backlog-item.mjs +339 -0
  205. package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +15 -4
  206. package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/connectors.md +4 -6
  207. package/lib/host-packages/cursor/openplanr/rules/planr-status/references/connectors.md +4 -6
  208. package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/connectors.md +4 -6
  209. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
  210. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
  211. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +385 -79
  212. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
  213. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
  214. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +45 -4
  215. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → cursor/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
  216. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +8 -5
  217. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
  218. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
  219. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
  220. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
  221. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +215 -55
  222. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
  223. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
  224. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
  225. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
  226. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
  227. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
  228. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
  229. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
  230. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
  231. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
  232. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
  233. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
  234. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
  235. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
  236. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
  237. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
  238. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
  239. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
  240. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
  241. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
  242. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
  243. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
  244. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
  245. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
  246. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
  247. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
  248. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
  249. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
  250. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
  251. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  252. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
  253. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
  254. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +45 -12
  255. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  256. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  257. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  258. package/lib/host-packages/openai/openplanr/.openplanr-content.json +128 -92
  259. package/lib/host-packages/openai/openplanr/CONNECTORS.md +4 -6
  260. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
  261. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
  262. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +385 -79
  263. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
  264. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
  265. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +45 -4
  266. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → openai/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
  267. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +8 -5
  268. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
  269. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
  270. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
  271. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
  272. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +215 -55
  273. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
  274. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
  275. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
  276. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
  277. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
  278. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
  279. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
  280. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
  281. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
  282. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
  283. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
  284. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
  285. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
  286. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +259 -522
  287. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +585 -937
  288. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
  289. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
  290. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
  291. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
  292. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
  293. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
  294. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
  295. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
  296. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
  297. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
  298. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
  299. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
  300. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
  301. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
  302. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  303. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
  304. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
  305. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +45 -12
  306. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  307. package/lib/host-packages/openai/openplanr/skills/connect/references/connectors.md +4 -6
  308. package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +12 -0
  309. package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +11 -0
  310. package/lib/host-packages/openai/openplanr/skills/design/references/craft.md +14 -3
  311. package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +33 -1
  312. package/lib/host-packages/openai/openplanr/skills/design/references/discovery.md +18 -4
  313. package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +74 -1
  314. package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +62 -0
  315. package/lib/host-packages/openai/openplanr/skills/design/references/review.md +46 -1
  316. package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +6 -0
  317. package/lib/host-packages/openai/openplanr/skills/design/schemas/design-document.schema.json +78 -5
  318. package/lib/host-packages/openai/openplanr/skills/design-loop/references/craft.md +14 -3
  319. package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +33 -1
  320. package/lib/host-packages/openai/openplanr/skills/design-loop/references/discovery.md +18 -4
  321. package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +74 -1
  322. package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +46 -1
  323. package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +6 -0
  324. package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
  325. package/lib/host-packages/openai/openplanr/skills/design-review/references/craft.md +14 -3
  326. package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +33 -1
  327. package/lib/host-packages/openai/openplanr/skills/design-review/references/discovery.md +18 -4
  328. package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +74 -1
  329. package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +46 -1
  330. package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +6 -0
  331. package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
  332. package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +10 -1
  333. package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +22 -0
  334. package/lib/host-packages/openai/openplanr/skills/investigate/references/findings.md +92 -0
  335. package/lib/host-packages/openai/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
  336. package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +3 -0
  337. package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
  338. package/lib/host-packages/openai/openplanr/skills/share/references/connectors.md +4 -6
  339. package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +15 -4
  340. package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +22 -0
  341. package/lib/host-packages/openai/openplanr/skills/ship/references/findings.md +92 -0
  342. package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +3 -1
  343. package/lib/host-packages/openai/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
  344. package/lib/host-packages/openai/openplanr/skills/sprint/references/connectors.md +4 -6
  345. package/lib/host-packages/openai/openplanr/skills/status/references/connectors.md +4 -6
  346. package/lib/host-packages/openai/openplanr/skills/sync/references/connectors.md +4 -6
  347. package/package.json +3 -3
  348. package/dist/templates/backlog/backlog-item.md.hbs +0 -40
  349. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
  350. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
  351. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
  352. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
  353. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
  354. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
  355. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
  356. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
  357. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
  358. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
  359. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
  360. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
  361. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
  362. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
  363. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
@@ -3,50 +3,36 @@
3
3
  enqueueSetState: function(inst, payload, callback) {
4
4
  inst = inst._reactInternals;
5
5
  var lane = requestUpdateLane(), update = createUpdate(lane);
6
- update.payload = payload;
7
- void 0 !== callback && null !== callback && (update.callback = callback);
8
- payload = enqueueUpdate(inst, update, lane);
9
- null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
6
+ update.payload = payload, callback != null && (update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
10
7
  },
11
8
  enqueueReplaceState: function(inst, payload, callback) {
12
9
  inst = inst._reactInternals;
13
10
  var lane = requestUpdateLane(), update = createUpdate(lane);
14
- update.tag = 1;
15
- update.payload = payload;
16
- void 0 !== callback && null !== callback && (update.callback = callback);
17
- payload = enqueueUpdate(inst, update, lane);
18
- null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
11
+ update.tag = 1, update.payload = payload, callback != null && (update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
19
12
  },
20
13
  enqueueForceUpdate: function(inst, callback) {
21
14
  inst = inst._reactInternals;
22
15
  var lane = requestUpdateLane(), update = createUpdate(lane);
23
- update.tag = 2;
24
- void 0 !== callback && null !== callback && (update.callback = callback);
25
- callback = enqueueUpdate(inst, update, lane);
26
- null !== callback && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
16
+ update.tag = 2, callback != null && (update.callback = callback), callback = enqueueUpdate(inst, update, lane), callback !== null && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
27
17
  }
28
18
  };
29
19
  function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
30
- workInProgress2 = workInProgress2.stateNode;
31
- return "function" === typeof workInProgress2.shouldComponentUpdate ? workInProgress2.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual2(oldProps, newProps) || !shallowEqual2(oldState, newState) : true;
20
+ return workInProgress2 = workInProgress2.stateNode, typeof workInProgress2.shouldComponentUpdate == "function" ? workInProgress2.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual2(oldProps, newProps) || !shallowEqual2(oldState, newState) : !0;
32
21
  }
33
22
  function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
34
- workInProgress2 = instance.state;
35
- "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext);
36
- "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
37
- instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
23
+ workInProgress2 = instance.state, typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps == "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
38
24
  }
39
25
  function resolveClassComponentProps(Component, baseProps) {
40
26
  var newProps = baseProps;
41
27
  if ("ref" in baseProps) {
42
28
  newProps = {};
43
29
  for (var propName in baseProps)
44
- "ref" !== propName && (newProps[propName] = baseProps[propName]);
30
+ propName !== "ref" && (newProps[propName] = baseProps[propName]);
45
31
  }
46
32
  if (Component = Component.defaultProps) {
47
33
  newProps === baseProps && (newProps = assign({}, newProps));
48
34
  for (var propName$77 in Component)
49
- void 0 === newProps[propName$77] && (newProps[propName$77] = Component[propName$77]);
35
+ newProps[propName$77] === void 0 && (newProps[propName$77] = Component[propName$77]);
50
36
  }
51
37
  return newProps;
52
38
  }
@@ -74,7 +60,7 @@
74
60
  var onCaughtError = root2.onCaughtError;
75
61
  onCaughtError(errorInfo.value, {
76
62
  componentStack: errorInfo.stack,
77
- errorBoundary: 1 === boundary.tag ? boundary.stateNode : null
63
+ errorBoundary: boundary.tag === 1 ? boundary.stateNode : null
78
64
  });
79
65
  } catch (e$79) {
80
66
  setTimeout(function() {
@@ -83,72 +69,58 @@
83
69
  }
84
70
  }
85
71
  function createRootErrorUpdate(root2, errorInfo, lane) {
86
- lane = createUpdate(lane);
87
- lane.tag = 3;
88
- lane.payload = { element: null };
89
- lane.callback = function() {
72
+ return lane = createUpdate(lane), lane.tag = 3, lane.payload = { element: null }, lane.callback = function() {
90
73
  logUncaughtError(root2, errorInfo);
91
- };
92
- return lane;
74
+ }, lane;
93
75
  }
94
76
  function createClassErrorUpdate(lane) {
95
- lane = createUpdate(lane);
96
- lane.tag = 3;
97
- return lane;
77
+ return lane = createUpdate(lane), lane.tag = 3, lane;
98
78
  }
99
79
  function initializeClassErrorUpdate(update, root2, fiber, errorInfo) {
100
80
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
101
- if ("function" === typeof getDerivedStateFromError) {
81
+ if (typeof getDerivedStateFromError == "function") {
102
82
  var error = errorInfo.value;
103
83
  update.payload = function() {
104
84
  return getDerivedStateFromError(error);
105
- };
106
- update.callback = function() {
85
+ }, update.callback = function() {
107
86
  logCaughtError(root2, fiber, errorInfo);
108
87
  };
109
88
  }
110
89
  var inst = fiber.stateNode;
111
- null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() {
112
- logCaughtError(root2, fiber, errorInfo);
113
- "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
90
+ inst !== null && typeof inst.componentDidCatch == "function" && (update.callback = function() {
91
+ logCaughtError(root2, fiber, errorInfo), typeof getDerivedStateFromError != "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
114
92
  var stack = errorInfo.stack;
115
93
  this.componentDidCatch(errorInfo.value, {
116
- componentStack: null !== stack ? stack : ""
94
+ componentStack: stack !== null ? stack : ""
117
95
  });
118
96
  });
119
97
  }
120
98
  function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes) {
121
- sourceFiber.flags |= 32768;
122
- if (null !== value && "object" === typeof value && "function" === typeof value.then) {
123
- returnFiber = sourceFiber.alternate;
124
- null !== returnFiber && propagateParentContextChanges(
99
+ if (sourceFiber.flags |= 32768, value !== null && typeof value == "object" && typeof value.then == "function") {
100
+ if (returnFiber = sourceFiber.alternate, returnFiber !== null && propagateParentContextChanges(
125
101
  returnFiber,
126
102
  sourceFiber,
127
103
  rootRenderLanes,
128
- true
129
- );
130
- sourceFiber = suspenseHandlerStackCursor.current;
131
- if (null !== sourceFiber) {
104
+ !0
105
+ ), sourceFiber = suspenseHandlerStackCursor.current, sourceFiber !== null) {
132
106
  switch (sourceFiber.tag) {
133
107
  case 31:
134
108
  case 13:
135
109
  case 19:
136
- return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root2, value, rootRenderLanes)), false;
110
+ return shellBoundary === null ? renderDidSuspendDelayIfPossible() : sourceFiber.alternate === null && workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root2, value, rootRenderLanes)), !1;
137
111
  case 22:
138
- return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = {
112
+ return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? (returnFiber = {
139
113
  transitions: null,
140
114
  markerInstances: null,
141
115
  retryQueue: /* @__PURE__ */ new Set([value])
142
- }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root2, value, rootRenderLanes)), false;
116
+ }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, sourceFiber === null ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root2, value, rootRenderLanes)), !1;
143
117
  }
144
118
  throw Error(formatProdErrorMessage(435, sourceFiber.tag));
145
119
  }
146
- attachPingListener(root2, value, rootRenderLanes);
147
- renderDidSuspendDelayIfPossible();
148
- return false;
120
+ return attachPingListener(root2, value, rootRenderLanes), renderDidSuspendDelayIfPossible(), !1;
149
121
  }
150
122
  if (isHydrating)
151
- return returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root2 = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(createCapturedValueAtFiber(root2, sourceFiber)))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), {
123
+ return returnFiber = suspenseHandlerStackCursor.current, returnFiber !== null ? ((returnFiber.flags & 65536) === 0 && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root2 = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(createCapturedValueAtFiber(root2, sourceFiber)))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), {
152
124
  cause: value
153
125
  }), queueHydrationError(
154
126
  createCapturedValueAtFiber(returnFiber, sourceFiber)
@@ -156,41 +128,34 @@
156
128
  root2.stateNode,
157
129
  value,
158
130
  rootRenderLanes
159
- ), enqueueCapturedUpdate(root2, rootRenderLanes), 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2)), false;
131
+ ), enqueueCapturedUpdate(root2, rootRenderLanes), workInProgressRootExitStatus !== 4 && (workInProgressRootExitStatus = 2)), !1;
160
132
  var wrapperError = Error(formatProdErrorMessage(520), { cause: value });
161
- wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);
162
- null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError);
163
- 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);
164
- if (null === returnFiber) return true;
165
- value = createCapturedValueAtFiber(value, sourceFiber);
166
- sourceFiber = returnFiber;
133
+ if (wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber), workInProgressRootConcurrentErrors === null ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError), workInProgressRootExitStatus !== 4 && (workInProgressRootExitStatus = 2), returnFiber === null) return !0;
134
+ value = createCapturedValueAtFiber(value, sourceFiber), sourceFiber = returnFiber;
167
135
  do {
168
136
  switch (sourceFiber.tag) {
169
137
  case 3:
170
- return sourceFiber.flags |= 65536, root2 = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root2, root2 = createRootErrorUpdate(sourceFiber.stateNode, value, root2), enqueueCapturedUpdate(sourceFiber, root2), false;
138
+ return sourceFiber.flags |= 65536, root2 = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root2, root2 = createRootErrorUpdate(sourceFiber.stateNode, value, root2), enqueueCapturedUpdate(sourceFiber, root2), !1;
171
139
  case 1:
172
- returnFiber = sourceFiber.type;
173
- wrapperError = sourceFiber.stateNode;
174
- if (0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== wrapperError && "function" === typeof wrapperError.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))
140
+ if (returnFiber = sourceFiber.type, wrapperError = sourceFiber.stateNode, (sourceFiber.flags & 128) === 0 && (typeof returnFiber.getDerivedStateFromError == "function" || wrapperError !== null && typeof wrapperError.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))
175
141
  return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(
176
142
  rootRenderLanes,
177
143
  root2,
178
144
  sourceFiber,
179
145
  value
180
- ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), false;
146
+ ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1;
181
147
  break;
182
148
  case 22:
183
- if (null !== sourceFiber.memoizedState)
184
- return sourceFiber.flags |= 65536, false;
149
+ if (sourceFiber.memoizedState !== null)
150
+ return sourceFiber.flags |= 65536, !1;
185
151
  }
186
152
  sourceFiber = sourceFiber.return;
187
- } while (null !== sourceFiber);
188
- return false;
153
+ } while (sourceFiber !== null);
154
+ return !1;
189
155
  }
190
- var SelectiveHydrationException = Error(formatProdErrorMessage(461));
191
- var didReceiveUpdate = false;
156
+ var SelectiveHydrationException = Error(formatProdErrorMessage(461)), didReceiveUpdate = !1;
192
157
  function reconcileChildren(current, workInProgress2, nextChildren, renderLanes2) {
193
- workInProgress2.child = null === current ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(
158
+ workInProgress2.child = current === null ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(
194
159
  workInProgress2,
195
160
  current.child,
196
161
  nextChildren,
@@ -203,68 +168,48 @@
203
168
  if ("ref" in nextProps) {
204
169
  var propsWithoutRef = {};
205
170
  for (var key in nextProps)
206
- "ref" !== key && (propsWithoutRef[key] = nextProps[key]);
171
+ key !== "ref" && (propsWithoutRef[key] = nextProps[key]);
207
172
  } else propsWithoutRef = nextProps;
208
- prepareToReadContext(workInProgress2);
209
- nextProps = renderWithHooks(
173
+ return prepareToReadContext(workInProgress2), nextProps = renderWithHooks(
210
174
  current,
211
175
  workInProgress2,
212
176
  Component,
213
177
  propsWithoutRef,
214
178
  ref,
215
179
  renderLanes2
216
- );
217
- key = checkDidRenderIdHook();
218
- if (null !== current && !didReceiveUpdate)
219
- return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
220
- isHydrating && key && pushMaterializedTreeId(workInProgress2);
221
- workInProgress2.flags |= 1;
222
- reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
223
- return workInProgress2.child;
180
+ ), key = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && key && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
224
181
  }
225
182
  function updateMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
226
- if (null === current) {
183
+ if (current === null) {
227
184
  var type = Component.type;
228
- if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare)
229
- return workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(
230
- current,
231
- workInProgress2,
232
- type,
233
- nextProps,
234
- renderLanes2
235
- );
236
- current = createFiberFromTypeAndProps(
185
+ return typeof type == "function" && !shouldConstruct(type) && type.defaultProps === void 0 && Component.compare === null ? (workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(
186
+ current,
187
+ workInProgress2,
188
+ type,
189
+ nextProps,
190
+ renderLanes2
191
+ )) : (current = createFiberFromTypeAndProps(
237
192
  Component.type,
238
193
  null,
239
194
  nextProps,
240
195
  workInProgress2,
241
196
  workInProgress2.mode,
242
197
  renderLanes2
243
- );
244
- current.ref = workInProgress2.ref;
245
- current.return = workInProgress2;
246
- return workInProgress2.child = current;
198
+ ), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current);
247
199
  }
248
- type = current.child;
249
- if (!checkScheduledUpdateOrContext(current, renderLanes2)) {
200
+ if (type = current.child, !checkScheduledUpdateOrContext(current, renderLanes2)) {
250
201
  var prevProps = type.memoizedProps;
251
- Component = Component.compare;
252
- Component = null !== Component ? Component : shallowEqual2;
253
- if (Component(prevProps, nextProps) && current.ref === workInProgress2.ref)
202
+ if (Component = Component.compare, Component = Component !== null ? Component : shallowEqual2, Component(prevProps, nextProps) && current.ref === workInProgress2.ref)
254
203
  return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
255
204
  }
256
- workInProgress2.flags |= 1;
257
- current = createWorkInProgress(type, nextProps);
258
- current.ref = workInProgress2.ref;
259
- current.return = workInProgress2;
260
- return workInProgress2.child = current;
205
+ return workInProgress2.flags |= 1, current = createWorkInProgress(type, nextProps), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current;
261
206
  }
262
207
  function updateSimpleMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
263
- if (null !== current) {
208
+ if (current !== null) {
264
209
  var prevProps = current.memoizedProps;
265
210
  if (shallowEqual2(prevProps, nextProps) && current.ref === workInProgress2.ref)
266
- if (didReceiveUpdate = false, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes2))
267
- 0 !== (current.flags & 131072) && (didReceiveUpdate = true);
211
+ if (didReceiveUpdate = !1, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes2))
212
+ (current.flags & 131072) !== 0 && (didReceiveUpdate = !0);
268
213
  else
269
214
  return workInProgress2.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
270
215
  }
@@ -277,19 +222,16 @@
277
222
  );
278
223
  }
279
224
  function updateOffscreenComponent(current, workInProgress2, renderLanes2, nextProps) {
280
- var nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
281
- null === current && null === workInProgress2.stateNode && (workInProgress2.stateNode = {
225
+ var nextChildren = nextProps.children, prevState = current !== null ? current.memoizedState : null;
226
+ if (current === null && workInProgress2.stateNode === null && (workInProgress2.stateNode = {
282
227
  _visibility: 1,
283
228
  _pendingMarkers: null,
284
229
  _retryCache: null,
285
230
  _transitions: null
286
- });
287
- if ("hidden" === nextProps.mode) {
288
- if (0 !== (workInProgress2.flags & 128)) {
289
- prevState = null !== prevState ? prevState.baseLanes | renderLanes2 : renderLanes2;
290
- if (null !== current) {
291
- nextProps = workInProgress2.child = current.child;
292
- for (nextChildren = 0; null !== nextProps; )
231
+ }), nextProps.mode === "hidden") {
232
+ if ((workInProgress2.flags & 128) !== 0) {
233
+ if (prevState = prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2, current !== null) {
234
+ for (nextProps = workInProgress2.child = current.child, nextChildren = 0; nextProps !== null; )
293
235
  nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling;
294
236
  nextProps = nextChildren & ~prevState;
295
237
  } else nextProps = 0, workInProgress2.child = null;
@@ -301,106 +243,82 @@
301
243
  nextProps
302
244
  );
303
245
  }
304
- if (0 !== (renderLanes2 & 536870912))
305
- workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, null !== current && pushTransition(
246
+ if ((renderLanes2 & 536870912) !== 0)
247
+ workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, current !== null && pushTransition(
306
248
  workInProgress2,
307
- null !== prevState ? prevState.cachePool : null
308
- ), null !== prevState ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2);
249
+ prevState !== null ? prevState.cachePool : null
250
+ ), prevState !== null ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2);
309
251
  else
310
252
  return nextProps = workInProgress2.lanes = 536870912, deferHiddenOffscreenComponent(
311
253
  current,
312
254
  workInProgress2,
313
- null !== prevState ? prevState.baseLanes | renderLanes2 : renderLanes2,
255
+ prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2,
314
256
  renderLanes2,
315
257
  nextProps
316
258
  );
317
259
  } else
318
- null !== prevState ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(), workInProgress2.memoizedState = null) : (null !== current && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack());
319
- reconcileChildren(current, workInProgress2, nextChildren, renderLanes2);
320
- return workInProgress2.child;
260
+ prevState !== null ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(), workInProgress2.memoizedState = null) : (current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack());
261
+ return reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
321
262
  }
322
263
  function bailoutOffscreenComponent(current, workInProgress2) {
323
- null !== current && 22 === current.tag || null !== workInProgress2.stateNode || (workInProgress2.stateNode = {
264
+ return current !== null && current.tag === 22 || workInProgress2.stateNode !== null || (workInProgress2.stateNode = {
324
265
  _visibility: 1,
325
266
  _pendingMarkers: null,
326
267
  _retryCache: null,
327
268
  _transitions: null
328
- });
329
- return workInProgress2.sibling;
269
+ }), workInProgress2.sibling;
330
270
  }
331
271
  function deferHiddenOffscreenComponent(current, workInProgress2, nextBaseLanes, renderLanes2, remainingChildLanes) {
332
272
  var JSCompiler_inline_result = peekCacheFromPool();
333
- JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };
334
- workInProgress2.memoizedState = {
273
+ return JSCompiler_inline_result = JSCompiler_inline_result === null ? null : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result }, workInProgress2.memoizedState = {
335
274
  baseLanes: nextBaseLanes,
336
275
  cachePool: JSCompiler_inline_result
337
- };
338
- null !== current && pushTransition(workInProgress2, null);
339
- reuseHiddenContextOnStack();
340
- pushOffscreenSuspenseHandler(workInProgress2);
341
- null !== current && propagateParentContextChanges(current, workInProgress2, renderLanes2, true);
342
- workInProgress2.childLanes = remainingChildLanes;
343
- return null;
276
+ }, current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2), current !== null && propagateParentContextChanges(current, workInProgress2, renderLanes2, !0), workInProgress2.childLanes = remainingChildLanes, null;
344
277
  }
345
278
  function mountActivityChildren(workInProgress2, nextProps) {
346
- nextProps = mountWorkInProgressOffscreenFiber(
279
+ return nextProps = mountWorkInProgressOffscreenFiber(
347
280
  { mode: nextProps.mode, children: nextProps.children },
348
281
  workInProgress2.mode
349
- );
350
- nextProps.ref = workInProgress2.ref;
351
- workInProgress2.child = nextProps;
352
- nextProps.return = workInProgress2;
353
- return nextProps;
282
+ ), nextProps.ref = workInProgress2.ref, workInProgress2.child = nextProps, nextProps.return = workInProgress2, nextProps;
354
283
  }
355
284
  function retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
356
- reconcileChildFibers(workInProgress2, current.child, null, renderLanes2);
357
- current = mountActivityChildren(workInProgress2, workInProgress2.pendingProps);
358
- current.flags |= 2;
359
- popSuspenseHandler(workInProgress2);
360
- workInProgress2.memoizedState = null;
361
- return current;
285
+ return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountActivityChildren(workInProgress2, workInProgress2.pendingProps), current.flags |= 2, popSuspenseHandler(workInProgress2), workInProgress2.memoizedState = null, current;
362
286
  }
363
287
  function updateActivityComponent(current, workInProgress2, renderLanes2) {
364
- var nextProps = workInProgress2.pendingProps, didSuspend = 0 !== (workInProgress2.flags & 128);
365
- workInProgress2.flags &= -129;
366
- if (null === current) {
288
+ var nextProps = workInProgress2.pendingProps, didSuspend = (workInProgress2.flags & 128) !== 0;
289
+ if (workInProgress2.flags &= -129, current === null) {
367
290
  if (isHydrating) {
368
- if ("hidden" === nextProps.mode)
291
+ if (nextProps.mode === "hidden")
369
292
  return current = mountActivityChildren(workInProgress2, nextProps), workInProgress2.lanes = 536870912, current.memoizedState = { baseLanes: 0, cachePool: null }, bailoutOffscreenComponent(null, current);
370
- pushDehydratedActivitySuspenseHandler(workInProgress2);
371
- (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
293
+ if (pushDehydratedActivitySuspenseHandler(workInProgress2), (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
372
294
  current,
373
295
  rootOrSingletonContext
374
- ), current = null !== current && "&" === current.data ? current : null, null !== current && (workInProgress2.memoizedState = {
296
+ ), current = current !== null && current.data === "&" ? current : null, current !== null && (workInProgress2.memoizedState = {
375
297
  dehydrated: current,
376
- treeContext: null !== treeContextProvider ? { id: treeContextId, overflow: treeContextOverflow } : null,
298
+ treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
377
299
  retryLane: 536870912,
378
300
  hydrationErrors: null
379
- }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null;
380
- if (null === current) throw throwOnHydrationMismatch(workInProgress2);
381
- workInProgress2.lanes = 536870912;
382
- return null;
301
+ }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null) throw throwOnHydrationMismatch(workInProgress2);
302
+ return workInProgress2.lanes = 536870912, null;
383
303
  }
384
304
  return mountActivityChildren(workInProgress2, nextProps);
385
305
  }
386
306
  var prevState = current.memoizedState;
387
- if (null !== prevState) {
307
+ if (prevState !== null) {
388
308
  var dehydrated = prevState.dehydrated;
389
- pushDehydratedActivitySuspenseHandler(workInProgress2);
390
- if (didSuspend)
309
+ if (pushDehydratedActivitySuspenseHandler(workInProgress2), didSuspend)
391
310
  if (workInProgress2.flags & 256)
392
311
  workInProgress2.flags &= -257, workInProgress2 = retryActivityComponentWithoutHydrating(
393
312
  current,
394
313
  workInProgress2,
395
314
  renderLanes2
396
315
  );
397
- else if (null !== workInProgress2.memoizedState)
316
+ else if (workInProgress2.memoizedState !== null)
398
317
  workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null;
399
318
  else throw Error(formatProdErrorMessage(558));
400
- else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, false), didSuspend = 0 !== (renderLanes2 & current.childLanes), didReceiveUpdate || didSuspend) {
401
- if (null === currentTreeHiddenStackCursor.current) {
402
- nextProps = workInProgressRoot;
403
- if (null !== nextProps && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes2), 0 !== dehydrated && dehydrated !== prevState.retryLane))
319
+ else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), didSuspend = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || didSuspend) {
320
+ if (currentTreeHiddenStackCursor.current === null) {
321
+ if (nextProps = workInProgressRoot, nextProps !== null && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes2), dehydrated !== 0 && dehydrated !== prevState.retryLane))
404
322
  throw prevState.retryLane = dehydrated, enqueueConcurrentRenderForLane(current, dehydrated), scheduleUpdateOnFiber(nextProps, current, dehydrated), SelectiveHydrationException;
405
323
  renderDidSuspendDelayIfPossible();
406
324
  }
@@ -410,116 +328,66 @@
410
328
  renderLanes2
411
329
  );
412
330
  } else
413
- current = prevState.treeContext, nextHydratableInstance = getNextHydratable(dehydrated.nextSibling), hydrationParentFiber = workInProgress2, isHydrating = true, hydrationErrors = null, rootOrSingletonContext = false, null !== current && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 134221824;
331
+ current = prevState.treeContext, nextHydratableInstance = getNextHydratable(dehydrated.nextSibling), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 134221824;
414
332
  return workInProgress2;
415
333
  }
416
- current = createWorkInProgress(current.child, {
334
+ return current = createWorkInProgress(current.child, {
417
335
  mode: nextProps.mode,
418
336
  children: nextProps.children
419
- });
420
- current.ref = workInProgress2.ref;
421
- workInProgress2.child = current;
422
- current.return = workInProgress2;
423
- return current;
337
+ }), current.ref = workInProgress2.ref, workInProgress2.child = current, current.return = workInProgress2, current;
424
338
  }
425
339
  function markRef(current, workInProgress2) {
426
340
  var ref = workInProgress2.ref;
427
- if (null === ref)
428
- null !== current && null !== current.ref && (workInProgress2.flags |= 4194816);
341
+ if (ref === null)
342
+ current !== null && current.ref !== null && (workInProgress2.flags |= 4194816);
429
343
  else {
430
- if ("function" !== typeof ref && "object" !== typeof ref)
344
+ if (typeof ref != "function" && typeof ref != "object")
431
345
  throw Error(formatProdErrorMessage(284));
432
- if (null === current || current.ref !== ref)
433
- workInProgress2.flags |= 4194816;
346
+ (current === null || current.ref !== ref) && (workInProgress2.flags |= 4194816);
434
347
  }
435
348
  }
436
349
  function updateFunctionComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
437
- prepareToReadContext(workInProgress2);
438
- Component = renderWithHooks(
350
+ return prepareToReadContext(workInProgress2), Component = renderWithHooks(
439
351
  current,
440
352
  workInProgress2,
441
353
  Component,
442
354
  nextProps,
443
355
  void 0,
444
356
  renderLanes2
445
- );
446
- nextProps = checkDidRenderIdHook();
447
- if (null !== current && !didReceiveUpdate)
448
- return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
449
- isHydrating && nextProps && pushMaterializedTreeId(workInProgress2);
450
- workInProgress2.flags |= 1;
451
- reconcileChildren(current, workInProgress2, Component, renderLanes2);
452
- return workInProgress2.child;
357
+ ), nextProps = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && nextProps && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.child);
453
358
  }
454
359
  function replayFunctionComponent(current, workInProgress2, nextProps, Component, secondArg, renderLanes2) {
455
- prepareToReadContext(workInProgress2);
456
- workInProgress2.updateQueue = null;
457
- nextProps = renderWithHooksAgain(
360
+ return prepareToReadContext(workInProgress2), workInProgress2.updateQueue = null, nextProps = renderWithHooksAgain(
458
361
  workInProgress2,
459
362
  Component,
460
363
  nextProps,
461
364
  secondArg
462
- );
463
- finishRenderingHooks(current);
464
- Component = checkDidRenderIdHook();
465
- if (null !== current && !didReceiveUpdate)
466
- return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
467
- isHydrating && Component && pushMaterializedTreeId(workInProgress2);
468
- workInProgress2.flags |= 1;
469
- reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
470
- return workInProgress2.child;
365
+ ), finishRenderingHooks(current), Component = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && Component && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
471
366
  }
472
367
  function updateClassComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
473
- prepareToReadContext(workInProgress2);
474
- if (null === workInProgress2.stateNode) {
368
+ if (prepareToReadContext(workInProgress2), workInProgress2.stateNode === null) {
475
369
  var context = emptyContextObject, contextType = Component.contextType;
476
- "object" === typeof contextType && null !== contextType && (context = readContext(contextType));
477
- context = new Component(nextProps, context);
478
- workInProgress2.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null;
479
- context.updater = classComponentUpdater;
480
- workInProgress2.stateNode = context;
481
- context._reactInternals = workInProgress2;
482
- context = workInProgress2.stateNode;
483
- context.props = nextProps;
484
- context.state = workInProgress2.memoizedState;
485
- context.refs = {};
486
- initializeUpdateQueue(workInProgress2);
487
- contextType = Component.contextType;
488
- context.context = "object" === typeof contextType && null !== contextType ? readContext(contextType) : emptyContextObject;
489
- context.state = workInProgress2.memoizedState;
490
- contextType = Component.getDerivedStateFromProps;
491
- "function" === typeof contextType && (applyDerivedStateFromProps(
370
+ typeof contextType == "object" && contextType !== null && (context = readContext(contextType)), context = new Component(nextProps, context), workInProgress2.memoizedState = context.state !== null && context.state !== void 0 ? context.state : null, context.updater = classComponentUpdater, workInProgress2.stateNode = context, context._reactInternals = workInProgress2, context = workInProgress2.stateNode, context.props = nextProps, context.state = workInProgress2.memoizedState, context.refs = {}, initializeUpdateQueue(workInProgress2), contextType = Component.contextType, context.context = typeof contextType == "object" && contextType !== null ? readContext(contextType) : emptyContextObject, context.state = workInProgress2.memoizedState, contextType = Component.getDerivedStateFromProps, typeof contextType == "function" && (applyDerivedStateFromProps(
492
371
  workInProgress2,
493
372
  Component,
494
373
  contextType,
495
374
  nextProps
496
- ), context.state = workInProgress2.memoizedState);
497
- "function" === typeof Component.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || (contextType = context.state, "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState);
498
- "function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308);
499
- nextProps = true;
500
- } else if (null === current) {
375
+ ), context.state = workInProgress2.memoizedState), typeof Component.getDerivedStateFromProps == "function" || typeof context.getSnapshotBeforeUpdate == "function" || typeof context.UNSAFE_componentWillMount != "function" && typeof context.componentWillMount != "function" || (contextType = context.state, typeof context.componentWillMount == "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount == "function" && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState), typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), nextProps = !0;
376
+ } else if (current === null) {
501
377
  context = workInProgress2.stateNode;
502
378
  var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
503
379
  context.props = oldProps;
504
380
  var oldContext = context.context, contextType$jscomp$0 = Component.contextType;
505
- contextType = emptyContextObject;
506
- "object" === typeof contextType$jscomp$0 && null !== contextType$jscomp$0 && (contextType = readContext(contextType$jscomp$0));
381
+ contextType = emptyContextObject, typeof contextType$jscomp$0 == "object" && contextType$jscomp$0 !== null && (contextType = readContext(contextType$jscomp$0));
507
382
  var getDerivedStateFromProps = Component.getDerivedStateFromProps;
508
- contextType$jscomp$0 = "function" === typeof getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate;
509
- unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps;
510
- contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(
383
+ contextType$jscomp$0 = typeof getDerivedStateFromProps == "function" || typeof context.getSnapshotBeforeUpdate == "function", unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps, contextType$jscomp$0 || typeof context.UNSAFE_componentWillReceiveProps != "function" && typeof context.componentWillReceiveProps != "function" || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(
511
384
  workInProgress2,
512
385
  context,
513
386
  nextProps,
514
387
  contextType
515
- );
516
- hasForceUpdate = false;
388
+ ), hasForceUpdate = !1;
517
389
  var oldState = workInProgress2.memoizedState;
518
- context.state = oldState;
519
- processUpdateQueue(workInProgress2, nextProps, context, renderLanes2);
520
- suspendIfUpdateReadFromEntangledAsyncAction();
521
- oldContext = workInProgress2.memoizedState;
522
- unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(
390
+ context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), oldContext = workInProgress2.memoizedState, unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? (typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(
523
391
  workInProgress2,
524
392
  Component,
525
393
  getDerivedStateFromProps,
@@ -532,32 +400,16 @@
532
400
  oldState,
533
401
  oldContext,
534
402
  contextType
535
- )) ? (contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || ("function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount()), "function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308)) : ("function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : ("function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308), nextProps = false);
403
+ )) ? (contextType$jscomp$0 || typeof context.UNSAFE_componentWillMount != "function" && typeof context.componentWillMount != "function" || (typeof context.componentWillMount == "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount == "function" && context.UNSAFE_componentWillMount()), typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308)) : (typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : (typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), nextProps = !1);
536
404
  } else {
537
- context = workInProgress2.stateNode;
538
- cloneUpdateQueue(current, workInProgress2);
539
- contextType = workInProgress2.memoizedProps;
540
- contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);
541
- context.props = contextType$jscomp$0;
542
- getDerivedStateFromProps = workInProgress2.pendingProps;
543
- oldState = context.context;
544
- oldContext = Component.contextType;
545
- oldProps = emptyContextObject;
546
- "object" === typeof oldContext && null !== oldContext && (oldProps = readContext(oldContext));
547
- unresolvedOldProps = Component.getDerivedStateFromProps;
548
- (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof context.getSnapshotBeforeUpdate) || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(
405
+ context = workInProgress2.stateNode, cloneUpdateQueue(current, workInProgress2), contextType = workInProgress2.memoizedProps, contextType$jscomp$0 = resolveClassComponentProps(Component, contextType), context.props = contextType$jscomp$0, getDerivedStateFromProps = workInProgress2.pendingProps, oldState = context.context, oldContext = Component.contextType, oldProps = emptyContextObject, typeof oldContext == "object" && oldContext !== null && (oldProps = readContext(oldContext)), unresolvedOldProps = Component.getDerivedStateFromProps, (oldContext = typeof unresolvedOldProps == "function" || typeof context.getSnapshotBeforeUpdate == "function") || typeof context.UNSAFE_componentWillReceiveProps != "function" && typeof context.componentWillReceiveProps != "function" || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(
549
406
  workInProgress2,
550
407
  context,
551
408
  nextProps,
552
409
  oldProps
553
- );
554
- hasForceUpdate = false;
555
- oldState = workInProgress2.memoizedState;
556
- context.state = oldState;
557
- processUpdateQueue(workInProgress2, nextProps, context, renderLanes2);
558
- suspendIfUpdateReadFromEntangledAsyncAction();
410
+ ), hasForceUpdate = !1, oldState = workInProgress2.memoizedState, context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction();
559
411
  var newState = workInProgress2.memoizedState;
560
- contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(
412
+ contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies) ? (typeof unresolvedOldProps == "function" && (applyDerivedStateFromProps(
561
413
  workInProgress2,
562
414
  Component,
563
415
  unresolvedOldProps,
@@ -570,16 +422,13 @@
570
422
  oldState,
571
423
  newState,
572
424
  oldProps
573
- ) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof context.UNSAFE_componentWillUpdate && "function" !== typeof context.componentWillUpdate || ("function" === typeof context.componentWillUpdate && context.componentWillUpdate(nextProps, newState, oldProps), "function" === typeof context.UNSAFE_componentWillUpdate && context.UNSAFE_componentWillUpdate(
425
+ ) || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies)) ? (oldContext || typeof context.UNSAFE_componentWillUpdate != "function" && typeof context.componentWillUpdate != "function" || (typeof context.componentWillUpdate == "function" && context.componentWillUpdate(nextProps, newState, oldProps), typeof context.UNSAFE_componentWillUpdate == "function" && context.UNSAFE_componentWillUpdate(
574
426
  nextProps,
575
427
  newState,
576
428
  oldProps
577
- )), "function" === typeof context.componentDidUpdate && (workInProgress2.flags |= 4), "function" === typeof context.getSnapshotBeforeUpdate && (workInProgress2.flags |= 1024)) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), nextProps = false);
429
+ )), typeof context.componentDidUpdate == "function" && (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate == "function" && (workInProgress2.flags |= 1024)) : (typeof context.componentDidUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : (typeof context.componentDidUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), nextProps = !1);
578
430
  }
579
- context = nextProps;
580
- markRef(current, workInProgress2);
581
- nextProps = 0 !== (workInProgress2.flags & 128);
582
- context || nextProps ? (context = workInProgress2.stateNode, Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null : context.render(), workInProgress2.flags |= 1, null !== current && nextProps ? (workInProgress2.child = reconcileChildFibers(
431
+ return context = nextProps, markRef(current, workInProgress2), nextProps = (workInProgress2.flags & 128) !== 0, context || nextProps ? (context = workInProgress2.stateNode, Component = nextProps && typeof Component.getDerivedStateFromError != "function" ? null : context.render(), workInProgress2.flags |= 1, current !== null && nextProps ? (workInProgress2.child = reconcileChildFibers(
583
432
  workInProgress2,
584
433
  current.child,
585
434
  null,
@@ -593,14 +442,10 @@
593
442
  current,
594
443
  workInProgress2,
595
444
  renderLanes2
596
- );
597
- return current;
445
+ ), current;
598
446
  }
599
447
  function mountHostRootWithoutHydrating(current, workInProgress2, nextChildren, renderLanes2) {
600
- resetHydrationState();
601
- workInProgress2.flags |= 256;
602
- reconcileChildren(current, workInProgress2, nextChildren, renderLanes2);
603
- return workInProgress2.child;
448
+ return resetHydrationState(), workInProgress2.flags |= 256, reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
604
449
  }
605
450
  var SUSPENDED_MARKER = {
606
451
  dehydrated: null,
@@ -612,55 +457,41 @@
612
457
  return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
613
458
  }
614
459
  function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes2) {
615
- current = null !== current ? current.childLanes & ~renderLanes2 : 0;
616
- primaryTreeDidDefer && (current |= workInProgressDeferredLane);
617
- return current;
460
+ return current = current !== null ? current.childLanes & ~renderLanes2 : 0, primaryTreeDidDefer && (current |= workInProgressDeferredLane), current;
618
461
  }
619
462
  function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
620
- var nextProps = workInProgress2.pendingProps, showFallback = false, didSuspend = 0 !== (workInProgress2.flags & 128), JSCompiler_temp;
621
- (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? false : 0 !== (suspenseStackCursor.current & 2));
622
- JSCompiler_temp && (showFallback = true, workInProgress2.flags &= -129);
623
- JSCompiler_temp = 0 !== (workInProgress2.flags & 32);
624
- workInProgress2.flags &= -33;
625
- if (null === current) {
463
+ var nextProps = workInProgress2.pendingProps, showFallback = !1, didSuspend = (workInProgress2.flags & 128) !== 0, JSCompiler_temp;
464
+ if ((JSCompiler_temp = didSuspend) || (JSCompiler_temp = current !== null && current.memoizedState === null ? !1 : (suspenseStackCursor.current & 2) !== 0), JSCompiler_temp && (showFallback = !0, workInProgress2.flags &= -129), JSCompiler_temp = (workInProgress2.flags & 32) !== 0, workInProgress2.flags &= -33, current === null) {
626
465
  if (isHydrating) {
627
- showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack();
628
- (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
466
+ if (showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(), (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
629
467
  current,
630
468
  rootOrSingletonContext
631
- ), current = null !== current && "&" !== current.data ? current : null, null !== current && (workInProgress2.memoizedState = {
469
+ ), current = current !== null && current.data !== "&" ? current : null, current !== null && (workInProgress2.memoizedState = {
632
470
  dehydrated: current,
633
- treeContext: null !== treeContextProvider ? { id: treeContextId, overflow: treeContextOverflow } : null,
471
+ treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
634
472
  retryLane: 536870912,
635
473
  hydrationErrors: null
636
- }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null;
637
- if (null === current) throw throwOnHydrationMismatch(workInProgress2);
638
- isSuspenseInstanceFallback(current) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912;
639
- return null;
474
+ }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null) throw throwOnHydrationMismatch(workInProgress2);
475
+ return isSuspenseInstanceFallback(current) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912, null;
640
476
  }
641
- didSuspend = nextProps.children;
642
- nextProps = nextProps.fallback;
643
- if (showFallback)
644
- return reuseSuspenseHandlerOnStack(), showFallback = workInProgress2.mode, didSuspend = mountWorkInProgressOffscreenFiber(
645
- { mode: "hidden", children: didSuspend },
646
- showFallback
647
- ), nextProps = createFiberFromFragment(
648
- nextProps,
649
- showFallback,
650
- renderLanes2,
651
- null
652
- ), didSuspend.return = workInProgress2, nextProps.return = workInProgress2, didSuspend.sibling = nextProps, workInProgress2.child = didSuspend, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
653
- current,
654
- JSCompiler_temp,
655
- renderLanes2
656
- ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps);
657
- pushPrimaryTreeSuspenseHandler(workInProgress2);
658
- return mountSuspensePrimaryChildren(workInProgress2, didSuspend);
477
+ return didSuspend = nextProps.children, nextProps = nextProps.fallback, showFallback ? (reuseSuspenseHandlerOnStack(), showFallback = workInProgress2.mode, didSuspend = mountWorkInProgressOffscreenFiber(
478
+ { mode: "hidden", children: didSuspend },
479
+ showFallback
480
+ ), nextProps = createFiberFromFragment(
481
+ nextProps,
482
+ showFallback,
483
+ renderLanes2,
484
+ null
485
+ ), didSuspend.return = workInProgress2, nextProps.return = workInProgress2, didSuspend.sibling = nextProps, workInProgress2.child = didSuspend, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
486
+ current,
487
+ JSCompiler_temp,
488
+ renderLanes2
489
+ ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), mountSuspensePrimaryChildren(workInProgress2, didSuspend));
659
490
  }
660
491
  var prevState = current.memoizedState;
661
- if (null !== prevState) {
492
+ if (prevState !== null) {
662
493
  var dehydrated$96 = prevState.dehydrated;
663
- if (null !== dehydrated$96)
494
+ if (dehydrated$96 !== null)
664
495
  return updateDehydratedSuspenseComponent(
665
496
  current,
666
497
  workInProgress2,
@@ -672,166 +503,106 @@
672
503
  renderLanes2
673
504
  );
674
505
  }
675
- if (showFallback)
676
- return reuseSuspenseHandlerOnStack(), showFallback = nextProps.fallback, didSuspend = workInProgress2.mode, prevState = current.child, dehydrated$96 = prevState.sibling, nextProps = createWorkInProgress(prevState, {
677
- mode: "hidden",
678
- children: nextProps.children
679
- }), nextProps.subtreeFlags = prevState.subtreeFlags & 1206910976, null !== dehydrated$96 ? showFallback = createWorkInProgress(dehydrated$96, showFallback) : (showFallback = createFiberFromFragment(
680
- showFallback,
681
- didSuspend,
682
- renderLanes2,
683
- null
684
- ), showFallback.flags |= 2), showFallback.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = showFallback, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, showFallback = current.child.memoizedState, null === showFallback ? showFallback = mountSuspenseOffscreenState(renderLanes2) : (didSuspend = showFallback.cachePool, null !== didSuspend ? (prevState = CacheContext._currentValue, didSuspend = didSuspend.parent !== prevState ? { parent: prevState, pool: prevState } : didSuspend) : didSuspend = getSuspendedCache(), showFallback = {
685
- baseLanes: showFallback.baseLanes | renderLanes2,
686
- cachePool: didSuspend
687
- }), nextProps.memoizedState = showFallback, nextProps.childLanes = getRemainingWorkInPrimaryTree(
688
- current,
689
- JSCompiler_temp,
690
- renderLanes2
691
- ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps);
692
- pushPrimaryTreeSuspenseHandler(workInProgress2);
693
- renderLanes2 = current.child;
694
- current = renderLanes2.sibling;
695
- renderLanes2 = createWorkInProgress(renderLanes2, {
506
+ return showFallback ? (reuseSuspenseHandlerOnStack(), showFallback = nextProps.fallback, didSuspend = workInProgress2.mode, prevState = current.child, dehydrated$96 = prevState.sibling, nextProps = createWorkInProgress(prevState, {
507
+ mode: "hidden",
508
+ children: nextProps.children
509
+ }), nextProps.subtreeFlags = prevState.subtreeFlags & 1206910976, dehydrated$96 !== null ? showFallback = createWorkInProgress(dehydrated$96, showFallback) : (showFallback = createFiberFromFragment(
510
+ showFallback,
511
+ didSuspend,
512
+ renderLanes2,
513
+ null
514
+ ), showFallback.flags |= 2), showFallback.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = showFallback, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, showFallback = current.child.memoizedState, showFallback === null ? showFallback = mountSuspenseOffscreenState(renderLanes2) : (didSuspend = showFallback.cachePool, didSuspend !== null ? (prevState = CacheContext._currentValue, didSuspend = didSuspend.parent !== prevState ? { parent: prevState, pool: prevState } : didSuspend) : didSuspend = getSuspendedCache(), showFallback = {
515
+ baseLanes: showFallback.baseLanes | renderLanes2,
516
+ cachePool: didSuspend
517
+ }), nextProps.memoizedState = showFallback, nextProps.childLanes = getRemainingWorkInPrimaryTree(
518
+ current,
519
+ JSCompiler_temp,
520
+ renderLanes2
521
+ ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), renderLanes2 = current.child, current = renderLanes2.sibling, renderLanes2 = createWorkInProgress(renderLanes2, {
696
522
  mode: "visible",
697
523
  children: nextProps.children
698
- });
699
- renderLanes2.return = workInProgress2;
700
- renderLanes2.sibling = null;
701
- null !== current && (JSCompiler_temp = workInProgress2.deletions, null === JSCompiler_temp ? (workInProgress2.deletions = [current], workInProgress2.flags |= 16) : JSCompiler_temp.push(current));
702
- workInProgress2.child = renderLanes2;
703
- workInProgress2.memoizedState = null;
704
- return renderLanes2;
524
+ }), renderLanes2.return = workInProgress2, renderLanes2.sibling = null, current !== null && (JSCompiler_temp = workInProgress2.deletions, JSCompiler_temp === null ? (workInProgress2.deletions = [current], workInProgress2.flags |= 16) : JSCompiler_temp.push(current)), workInProgress2.child = renderLanes2, workInProgress2.memoizedState = null, renderLanes2);
705
525
  }
706
526
  function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) {
707
- primaryChildren = mountWorkInProgressOffscreenFiber(
527
+ return primaryChildren = mountWorkInProgressOffscreenFiber(
708
528
  { mode: "visible", children: primaryChildren },
709
529
  workInProgress2.mode
710
- );
711
- primaryChildren.return = workInProgress2;
712
- return workInProgress2.child = primaryChildren;
530
+ ), primaryChildren.return = workInProgress2, workInProgress2.child = primaryChildren;
713
531
  }
714
532
  function mountWorkInProgressOffscreenFiber(offscreenProps, mode) {
715
- offscreenProps = createFiberImplClass(22, offscreenProps, null, mode);
716
- offscreenProps.lanes = 0;
717
- return offscreenProps;
533
+ return offscreenProps = createFiberImplClass(22, offscreenProps, null, mode), offscreenProps.lanes = 0, offscreenProps;
718
534
  }
719
535
  function retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
720
- reconcileChildFibers(workInProgress2, current.child, null, renderLanes2);
721
- current = mountSuspensePrimaryChildren(
536
+ return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountSuspensePrimaryChildren(
722
537
  workInProgress2,
723
538
  workInProgress2.pendingProps.children
724
- );
725
- current.flags |= 2;
726
- workInProgress2.memoizedState = null;
727
- return current;
539
+ ), current.flags |= 2, workInProgress2.memoizedState = null, current;
728
540
  }
729
541
  function updateDehydratedSuspenseComponent(current, workInProgress2, didSuspend, didPrimaryChildrenDefer, nextProps, suspenseInstance, suspenseState, renderLanes2) {
730
- if (didSuspend) {
731
- if (workInProgress2.flags & 256)
732
- return pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, retrySuspenseComponentWithoutHydrating(
733
- current,
734
- workInProgress2,
735
- renderLanes2
736
- );
737
- if (null !== workInProgress2.memoizedState)
738
- return reuseSuspenseHandlerOnStack(), workInProgress2.child = current.child, workInProgress2.flags |= 128, null;
739
- reuseSuspenseHandlerOnStack();
740
- suspenseInstance = nextProps.fallback;
741
- suspenseState = workInProgress2.mode;
742
- nextProps = mountWorkInProgressOffscreenFiber(
542
+ if (didSuspend)
543
+ return workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, retrySuspenseComponentWithoutHydrating(
544
+ current,
545
+ workInProgress2,
546
+ renderLanes2
547
+ )) : workInProgress2.memoizedState !== null ? (reuseSuspenseHandlerOnStack(), workInProgress2.child = current.child, workInProgress2.flags |= 128, null) : (reuseSuspenseHandlerOnStack(), suspenseInstance = nextProps.fallback, suspenseState = workInProgress2.mode, nextProps = mountWorkInProgressOffscreenFiber(
743
548
  { mode: "visible", children: nextProps.children },
744
549
  suspenseState
745
- );
746
- suspenseInstance = createFiberFromFragment(
550
+ ), suspenseInstance = createFiberFromFragment(
747
551
  suspenseInstance,
748
552
  suspenseState,
749
553
  renderLanes2,
750
554
  null
751
- );
752
- suspenseInstance.flags |= 2;
753
- nextProps.return = workInProgress2;
754
- suspenseInstance.return = workInProgress2;
755
- nextProps.sibling = suspenseInstance;
756
- workInProgress2.child = nextProps;
757
- reconcileChildFibers(workInProgress2, current.child, null, renderLanes2);
758
- nextProps = workInProgress2.child;
759
- nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2);
760
- nextProps.childLanes = getRemainingWorkInPrimaryTree(
555
+ ), suspenseInstance.flags |= 2, nextProps.return = workInProgress2, suspenseInstance.return = workInProgress2, nextProps.sibling = suspenseInstance, workInProgress2.child = nextProps, reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
761
556
  current,
762
557
  didPrimaryChildrenDefer,
763
558
  renderLanes2
764
- );
765
- workInProgress2.memoizedState = SUSPENDED_MARKER;
766
- return bailoutOffscreenComponent(null, nextProps);
767
- }
768
- pushPrimaryTreeSuspenseHandler(workInProgress2);
769
- if (isSuspenseInstanceFallback(suspenseInstance)) {
770
- didPrimaryChildrenDefer = suspenseInstance.nextSibling && suspenseInstance.nextSibling.dataset;
771
- if (didPrimaryChildrenDefer) var digest = didPrimaryChildrenDefer.dgst;
772
- didPrimaryChildrenDefer = digest;
773
- "" !== didPrimaryChildrenDefer && (nextProps = Error(formatProdErrorMessage(419)), nextProps.stack = "", nextProps.digest = didPrimaryChildrenDefer, queueHydrationError({ value: nextProps, source: null, stack: null }));
774
- return retrySuspenseComponentWithoutHydrating(
559
+ ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps));
560
+ if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(suspenseInstance)) {
561
+ if (didPrimaryChildrenDefer = suspenseInstance.nextSibling && suspenseInstance.nextSibling.dataset, didPrimaryChildrenDefer) var digest = didPrimaryChildrenDefer.dgst;
562
+ return didPrimaryChildrenDefer = digest, didPrimaryChildrenDefer !== "" && (nextProps = Error(formatProdErrorMessage(419)), nextProps.stack = "", nextProps.digest = didPrimaryChildrenDefer, queueHydrationError({ value: nextProps, source: null, stack: null })), retrySuspenseComponentWithoutHydrating(
775
563
  current,
776
564
  workInProgress2,
777
565
  renderLanes2
778
566
  );
779
567
  }
780
- didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, false);
781
- didPrimaryChildrenDefer = 0 !== (renderLanes2 & current.childLanes);
782
- if (didReceiveUpdate || didPrimaryChildrenDefer) {
783
- if (null !== currentTreeHiddenStackCursor.current)
568
+ if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), didPrimaryChildrenDefer = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || didPrimaryChildrenDefer) {
569
+ if (currentTreeHiddenStackCursor.current !== null)
784
570
  return retrySuspenseComponentWithoutHydrating(
785
571
  current,
786
572
  workInProgress2,
787
573
  renderLanes2
788
574
  );
789
- didPrimaryChildrenDefer = workInProgressRoot;
790
- if (null !== didPrimaryChildrenDefer && (nextProps = getBumpedLaneForHydration(
575
+ if (didPrimaryChildrenDefer = workInProgressRoot, didPrimaryChildrenDefer !== null && (nextProps = getBumpedLaneForHydration(
791
576
  didPrimaryChildrenDefer,
792
577
  renderLanes2
793
- ), 0 !== nextProps && nextProps !== suspenseState.retryLane))
578
+ ), nextProps !== 0 && nextProps !== suspenseState.retryLane))
794
579
  throw suspenseState.retryLane = nextProps, enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(didPrimaryChildrenDefer, current, nextProps), SelectiveHydrationException;
795
- isSuspenseInstancePending(suspenseInstance) || renderDidSuspendDelayIfPossible();
796
- return retrySuspenseComponentWithoutHydrating(
580
+ return isSuspenseInstancePending(suspenseInstance) || renderDidSuspendDelayIfPossible(), retrySuspenseComponentWithoutHydrating(
797
581
  current,
798
582
  workInProgress2,
799
583
  renderLanes2
800
584
  );
801
585
  }
802
- if (isSuspenseInstancePending(suspenseInstance))
803
- return workInProgress2.flags |= 192, workInProgress2.child = current.child, null;
804
- current = suspenseState.treeContext;
805
- nextHydratableInstance = getNextHydratable(suspenseInstance.nextSibling);
806
- hydrationParentFiber = workInProgress2;
807
- isHydrating = true;
808
- hydrationErrors = null;
809
- rootOrSingletonContext = false;
810
- null !== current && restoreSuspendedTreeContext(workInProgress2, current);
811
- workInProgress2 = mountSuspensePrimaryChildren(
586
+ return isSuspenseInstancePending(suspenseInstance) ? (workInProgress2.flags |= 192, workInProgress2.child = current.child, null) : (current = suspenseState.treeContext, nextHydratableInstance = getNextHydratable(suspenseInstance.nextSibling), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountSuspensePrimaryChildren(
812
587
  workInProgress2,
813
588
  nextProps.children
814
- );
815
- workInProgress2.flags |= 134221824;
816
- return workInProgress2;
589
+ ), workInProgress2.flags |= 134221824, workInProgress2);
817
590
  }
818
591
  function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) {
819
592
  fiber.lanes |= renderLanes2;
820
593
  var alternate = fiber.alternate;
821
- null !== alternate && (alternate.lanes |= renderLanes2);
822
- scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
594
+ alternate !== null && (alternate.lanes |= renderLanes2), scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
823
595
  }
824
596
  function findLastContentRow(firstChild) {
825
- for (var lastContentRow = null; null !== firstChild; ) {
597
+ for (var lastContentRow = null; firstChild !== null; ) {
826
598
  var currentRow = firstChild.alternate;
827
- null !== currentRow && null === findFirstSuspended(currentRow) && (lastContentRow = firstChild);
828
- firstChild = firstChild.sibling;
599
+ currentRow !== null && findFirstSuspended(currentRow) === null && (lastContentRow = firstChild), firstChild = firstChild.sibling;
829
600
  }
830
601
  return lastContentRow;
831
602
  }
832
603
  function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
833
604
  var renderState = workInProgress2.memoizedState;
834
- null === renderState ? workInProgress2.memoizedState = {
605
+ renderState === null ? workInProgress2.memoizedState = {
835
606
  isBackwards,
836
607
  rendering: null,
837
608
  renderingStartTime: 0,
@@ -843,11 +614,9 @@
843
614
  }
844
615
  function reverseChildren(fiber) {
845
616
  var row = fiber.child;
846
- for (fiber.child = null; null !== row; ) {
617
+ for (fiber.child = null; row !== null; ) {
847
618
  var nextRow = row.sibling;
848
- row.sibling = fiber.child;
849
- fiber.child = row;
850
- row = nextRow;
619
+ row.sibling = fiber.child, fiber.child = row, row = nextRow;
851
620
  }
852
621
  }
853
622
  function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
@@ -856,38 +625,30 @@
856
625
  var suspenseContext = suspenseStackCursor.current;
857
626
  if (workInProgress2.flags & 128)
858
627
  return pushSuspenseListContext(workInProgress2, suspenseContext), null;
859
- var shouldForceFallback = 0 !== (suspenseContext & 2);
860
- shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress2.flags |= 128) : suspenseContext &= 1;
861
- pushSuspenseListContext(workInProgress2, suspenseContext);
862
- "backwards" === revealOrder && null !== current ? (reverseChildren(current), reconcileChildren(current, workInProgress2, nextProps, renderLanes2), reverseChildren(current)) : reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
863
- nextProps = isHydrating ? treeForkCount : 0;
864
- if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
865
- a: for (current = workInProgress2.child; null !== current; ) {
866
- if (13 === current.tag)
867
- null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
868
- else if (19 === current.tag)
628
+ var shouldForceFallback = (suspenseContext & 2) !== 0;
629
+ if (shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress2.flags |= 128) : suspenseContext &= 1, pushSuspenseListContext(workInProgress2, suspenseContext), revealOrder === "backwards" && current !== null ? (reverseChildren(current), reconcileChildren(current, workInProgress2, nextProps, renderLanes2), reverseChildren(current)) : reconcileChildren(current, workInProgress2, nextProps, renderLanes2), nextProps = isHydrating ? treeForkCount : 0, !shouldForceFallback && current !== null && (current.flags & 128) !== 0)
630
+ a: for (current = workInProgress2.child; current !== null; ) {
631
+ if (current.tag === 13)
632
+ current.memoizedState !== null && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
633
+ else if (current.tag === 19)
869
634
  scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
870
- else if (null !== current.child) {
871
- current.child.return = current;
872
- current = current.child;
635
+ else if (current.child !== null) {
636
+ current.child.return = current, current = current.child;
873
637
  continue;
874
638
  }
875
639
  if (current === workInProgress2) break a;
876
- for (; null === current.sibling; ) {
877
- if (null === current.return || current.return === workInProgress2)
640
+ for (; current.sibling === null; ) {
641
+ if (current.return === null || current.return === workInProgress2)
878
642
  break a;
879
643
  current = current.return;
880
644
  }
881
- current.sibling.return = current.return;
882
- current = current.sibling;
645
+ current.sibling.return = current.return, current = current.sibling;
883
646
  }
884
647
  switch (revealOrder) {
885
648
  case "backwards":
886
- renderLanes2 = findLastContentRow(workInProgress2.child);
887
- null === renderLanes2 ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null, reverseChildren(workInProgress2));
888
- initSuspenseListRenderState(
649
+ renderLanes2 = findLastContentRow(workInProgress2.child), renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null, reverseChildren(workInProgress2)), initSuspenseListRenderState(
889
650
  workInProgress2,
890
- true,
651
+ !0,
891
652
  revealOrder,
892
653
  null,
893
654
  tailMode,
@@ -895,22 +656,16 @@
895
656
  );
896
657
  break;
897
658
  case "unstable_legacy-backwards":
898
- renderLanes2 = null;
899
- revealOrder = workInProgress2.child;
900
- for (workInProgress2.child = null; null !== revealOrder; ) {
901
- current = revealOrder.alternate;
902
- if (null !== current && null === findFirstSuspended(current)) {
659
+ for (renderLanes2 = null, revealOrder = workInProgress2.child, workInProgress2.child = null; revealOrder !== null; ) {
660
+ if (current = revealOrder.alternate, current !== null && findFirstSuspended(current) === null) {
903
661
  workInProgress2.child = revealOrder;
904
662
  break;
905
663
  }
906
- current = revealOrder.sibling;
907
- revealOrder.sibling = renderLanes2;
908
- renderLanes2 = revealOrder;
909
- revealOrder = current;
664
+ current = revealOrder.sibling, revealOrder.sibling = renderLanes2, renderLanes2 = revealOrder, revealOrder = current;
910
665
  }
911
666
  initSuspenseListRenderState(
912
667
  workInProgress2,
913
- true,
668
+ !0,
914
669
  renderLanes2,
915
670
  null,
916
671
  tailMode,
@@ -920,7 +675,7 @@
920
675
  case "together":
921
676
  initSuspenseListRenderState(
922
677
  workInProgress2,
923
- false,
678
+ !1,
924
679
  null,
925
680
  null,
926
681
  void 0,
@@ -931,9 +686,9 @@
931
686
  workInProgress2.memoizedState = null;
932
687
  break;
933
688
  default:
934
- renderLanes2 = findLastContentRow(workInProgress2.child), null === renderLanes2 ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null), initSuspenseListRenderState(
689
+ renderLanes2 = findLastContentRow(workInProgress2.child), renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null), initSuspenseListRenderState(
935
690
  workInProgress2,
936
- false,
691
+ !1,
937
692
  revealOrder,
938
693
  renderLanes2,
939
694
  tailMode,
@@ -944,46 +699,35 @@
944
699
  }
945
700
  function updateContextProvider(current, workInProgress2, renderLanes2) {
946
701
  var newProps = workInProgress2.pendingProps;
947
- pushProvider(workInProgress2, workInProgress2.type, newProps.value);
948
- reconcileChildren(current, workInProgress2, newProps.children, renderLanes2);
949
- return workInProgress2.child;
702
+ return pushProvider(workInProgress2, workInProgress2.type, newProps.value), reconcileChildren(current, workInProgress2, newProps.children, renderLanes2), workInProgress2.child;
950
703
  }
951
704
  function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
952
- null !== current && (workInProgress2.dependencies = current.dependencies);
953
- workInProgressRootSkippedLanes |= workInProgress2.lanes;
954
- if (0 === (renderLanes2 & workInProgress2.childLanes))
955
- if (null !== current) {
705
+ if (current !== null && (workInProgress2.dependencies = current.dependencies), workInProgressRootSkippedLanes |= workInProgress2.lanes, (renderLanes2 & workInProgress2.childLanes) === 0)
706
+ if (current !== null) {
956
707
  if (propagateParentContextChanges(
957
708
  current,
958
709
  workInProgress2,
959
710
  renderLanes2,
960
- false
961
- ), 0 === (renderLanes2 & workInProgress2.childLanes))
711
+ !1
712
+ ), (renderLanes2 & workInProgress2.childLanes) === 0)
962
713
  return null;
963
714
  } else return null;
964
- if (null !== current && workInProgress2.child !== current.child)
715
+ if (current !== null && workInProgress2.child !== current.child)
965
716
  throw Error(formatProdErrorMessage(153));
966
- if (null !== workInProgress2.child) {
967
- current = workInProgress2.child;
968
- renderLanes2 = createWorkInProgress(current, current.pendingProps);
969
- workInProgress2.child = renderLanes2;
970
- for (renderLanes2.return = workInProgress2; null !== current.sibling; )
717
+ if (workInProgress2.child !== null) {
718
+ for (current = workInProgress2.child, renderLanes2 = createWorkInProgress(current, current.pendingProps), workInProgress2.child = renderLanes2, renderLanes2.return = workInProgress2; current.sibling !== null; )
971
719
  current = current.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current, current.pendingProps), renderLanes2.return = workInProgress2;
972
720
  renderLanes2.sibling = null;
973
721
  }
974
722
  return workInProgress2.child;
975
723
  }
976
724
  function checkScheduledUpdateOrContext(current, renderLanes2) {
977
- if (0 !== (current.lanes & renderLanes2)) return true;
978
- current = current.dependencies;
979
- return null !== current && checkIfContextChanged(current) ? true : false;
725
+ return (current.lanes & renderLanes2) !== 0 ? !0 : (current = current.dependencies, !!(current !== null && checkIfContextChanged(current)));
980
726
  }
981
727
  function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, renderLanes2) {
982
728
  switch (workInProgress2.tag) {
983
729
  case 3:
984
- pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo);
985
- pushProvider(workInProgress2, CacheContext, current.memoizedState.cache);
986
- resetHydrationState();
730
+ pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo), pushProvider(workInProgress2, CacheContext, current.memoizedState.cache), resetHydrationState();
987
731
  break;
988
732
  case 27:
989
733
  case 5:
@@ -1000,30 +744,26 @@
1000
744
  );
1001
745
  break;
1002
746
  case 31:
1003
- if (null !== workInProgress2.memoizedState)
747
+ if (workInProgress2.memoizedState !== null)
1004
748
  return workInProgress2.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress2), null;
1005
749
  break;
1006
750
  case 13:
1007
751
  var state$108 = workInProgress2.memoizedState;
1008
- if (null !== state$108) {
1009
- if (null !== state$108.dehydrated)
752
+ if (state$108 !== null) {
753
+ if (state$108.dehydrated !== null)
1010
754
  return pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null;
1011
755
  state$108 = propagateParentContextChanges(
1012
756
  current,
1013
757
  workInProgress2,
1014
758
  renderLanes2,
1015
- false
759
+ !1
1016
760
  );
1017
761
  var primaryChildLanes = workInProgress2.child.childLanes;
1018
- if (state$108 || 0 !== (renderLanes2 & primaryChildLanes))
1019
- return updateSuspenseComponent(current, workInProgress2, renderLanes2);
1020
- pushPrimaryTreeSuspenseHandler(workInProgress2);
1021
- current = bailoutOnAlreadyFinishedWork(
762
+ return state$108 || (renderLanes2 & primaryChildLanes) !== 0 ? updateSuspenseComponent(current, workInProgress2, renderLanes2) : (pushPrimaryTreeSuspenseHandler(workInProgress2), current = bailoutOnAlreadyFinishedWork(
1022
763
  current,
1023
764
  workInProgress2,
1024
765
  renderLanes2
1025
- );
1026
- return null !== current ? current.sibling : null;
766
+ ), current !== null ? current.sibling : null);
1027
767
  }
1028
768
  pushPrimaryTreeSuspenseHandler(workInProgress2);
1029
769
  break;
@@ -1034,15 +774,12 @@
1034
774
  workInProgress2,
1035
775
  renderLanes2
1036
776
  );
1037
- primaryChildLanes = 0 !== (current.flags & 128);
1038
- state$108 = 0 !== (renderLanes2 & workInProgress2.childLanes);
1039
- state$108 || (propagateParentContextChanges(
777
+ if (primaryChildLanes = (current.flags & 128) !== 0, state$108 = (renderLanes2 & workInProgress2.childLanes) !== 0, state$108 || (propagateParentContextChanges(
1040
778
  current,
1041
779
  workInProgress2,
1042
780
  renderLanes2,
1043
- false
1044
- ), state$108 = 0 !== (renderLanes2 & workInProgress2.childLanes));
1045
- if (primaryChildLanes) {
781
+ !1
782
+ ), state$108 = (renderLanes2 & workInProgress2.childLanes) !== 0), primaryChildLanes) {
1046
783
  if (state$108)
1047
784
  return updateSuspenseListComponent(
1048
785
  current,
@@ -1051,11 +788,8 @@
1051
788
  );
1052
789
  workInProgress2.flags |= 128;
1053
790
  }
1054
- primaryChildLanes = workInProgress2.memoizedState;
1055
- null !== primaryChildLanes && (primaryChildLanes.rendering = null, primaryChildLanes.tail = null, primaryChildLanes.lastEffect = null);
1056
- pushSuspenseListContext(workInProgress2, suspenseStackCursor.current);
1057
- if (state$108) break;
1058
- else return null;
791
+ if (primaryChildLanes = workInProgress2.memoizedState, primaryChildLanes !== null && (primaryChildLanes.rendering = null, primaryChildLanes.tail = null, primaryChildLanes.lastEffect = null), pushSuspenseListContext(workInProgress2, suspenseStackCursor.current), state$108) break;
792
+ return null;
1059
793
  case 22:
1060
794
  return workInProgress2.lanes = 0, updateOffscreenComponent(
1061
795
  current,
@@ -1069,28 +803,25 @@
1069
803
  return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
1070
804
  }
1071
805
  function beginWork(current, workInProgress2, renderLanes2) {
1072
- if (null !== current)
806
+ if (current !== null)
1073
807
  if (current.memoizedProps !== workInProgress2.pendingProps)
1074
- didReceiveUpdate = true;
808
+ didReceiveUpdate = !0;
1075
809
  else {
1076
- if (!checkScheduledUpdateOrContext(current, renderLanes2) && 0 === (workInProgress2.flags & 128))
1077
- return didReceiveUpdate = false, attemptEarlyBailoutIfNoScheduledUpdate(
810
+ if (!checkScheduledUpdateOrContext(current, renderLanes2) && (workInProgress2.flags & 128) === 0)
811
+ return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(
1078
812
  current,
1079
813
  workInProgress2,
1080
814
  renderLanes2
1081
815
  );
1082
- didReceiveUpdate = 0 !== (current.flags & 131072) ? true : false;
816
+ didReceiveUpdate = (current.flags & 131072) !== 0;
1083
817
  }
1084
818
  else
1085
- didReceiveUpdate = false, isHydrating && 0 !== (workInProgress2.flags & 1048576) && pushTreeId(workInProgress2, treeForkCount, workInProgress2.index);
1086
- workInProgress2.lanes = 0;
1087
- switch (workInProgress2.tag) {
819
+ didReceiveUpdate = !1, isHydrating && (workInProgress2.flags & 1048576) !== 0 && pushTreeId(workInProgress2, treeForkCount, workInProgress2.index);
820
+ switch (workInProgress2.lanes = 0, workInProgress2.tag) {
1088
821
  case 16:
1089
822
  a: {
1090
823
  var props = workInProgress2.pendingProps;
1091
- current = resolveLazy(workInProgress2.elementType);
1092
- workInProgress2.type = current;
1093
- if ("function" === typeof current)
824
+ if (current = resolveLazy(workInProgress2.elementType), workInProgress2.type = current, typeof current == "function")
1094
825
  shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress2.tag = 1, workInProgress2 = updateClassComponent(
1095
826
  null,
1096
827
  workInProgress2,
@@ -1105,11 +836,10 @@
1105
836
  renderLanes2
1106
837
  ));
1107
838
  else {
1108
- if (void 0 !== current && null !== current) {
839
+ if (current != null) {
1109
840
  var $$typeof = current.$$typeof;
1110
841
  if ($$typeof === REACT_FORWARD_REF_TYPE) {
1111
- workInProgress2.tag = 11;
1112
- workInProgress2 = updateForwardRef(
842
+ workInProgress2.tag = 11, workInProgress2 = updateForwardRef(
1113
843
  null,
1114
844
  workInProgress2,
1115
845
  current,
@@ -1118,8 +848,7 @@
1118
848
  );
1119
849
  break a;
1120
850
  } else if ($$typeof === REACT_MEMO_TYPE) {
1121
- workInProgress2.tag = 14;
1122
- workInProgress2 = updateMemoComponent(
851
+ workInProgress2.tag = 14, workInProgress2 = updateMemoComponent(
1123
852
  null,
1124
853
  workInProgress2,
1125
854
  current,
@@ -1128,9 +857,7 @@
1128
857
  );
1129
858
  break a;
1130
859
  } else if ($$typeof === REACT_CONTEXT_TYPE) {
1131
- workInProgress2.tag = 10;
1132
- workInProgress2.type = current;
1133
- workInProgress2 = updateContextProvider(
860
+ workInProgress2.tag = 10, workInProgress2.type = current, workInProgress2 = updateContextProvider(
1134
861
  null,
1135
862
  workInProgress2,
1136
863
  renderLanes2
@@ -1138,8 +865,7 @@
1138
865
  break a;
1139
866
  }
1140
867
  }
1141
- workInProgress2 = getComponentNameFromType(current) || current;
1142
- throw Error(formatProdErrorMessage(306, workInProgress2, ""));
868
+ throw workInProgress2 = getComponentNameFromType(current) || current, Error(formatProdErrorMessage(306, workInProgress2, ""));
1143
869
  }
1144
870
  }
1145
871
  return workInProgress2;
@@ -1164,31 +890,23 @@
1164
890
  );
1165
891
  case 3:
1166
892
  a: {
1167
- pushHostContainer(
893
+ if (pushHostContainer(
1168
894
  workInProgress2,
1169
895
  workInProgress2.stateNode.containerInfo
1170
- );
1171
- if (null === current) throw Error(formatProdErrorMessage(387));
896
+ ), current === null) throw Error(formatProdErrorMessage(387));
1172
897
  props = workInProgress2.pendingProps;
1173
898
  var prevState = workInProgress2.memoizedState;
1174
- $$typeof = prevState.element;
1175
- cloneUpdateQueue(current, workInProgress2);
1176
- processUpdateQueue(workInProgress2, props, null, renderLanes2);
899
+ $$typeof = prevState.element, cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, props, null, renderLanes2);
1177
900
  var nextState = workInProgress2.memoizedState;
1178
- props = nextState.cache;
1179
- pushProvider(workInProgress2, CacheContext, props);
1180
- props !== prevState.cache && propagateContextChanges(
901
+ if (props = nextState.cache, pushProvider(workInProgress2, CacheContext, props), props !== prevState.cache && propagateContextChanges(
1181
902
  workInProgress2,
1182
903
  [CacheContext],
1183
904
  renderLanes2,
1184
- true
1185
- );
1186
- suspendIfUpdateReadFromEntangledAsyncAction();
1187
- props = nextState.element;
1188
- if (prevState.isDehydrated)
905
+ !0
906
+ ), suspendIfUpdateReadFromEntangledAsyncAction(), props = nextState.element, prevState.isDehydrated)
1189
907
  if (prevState = {
1190
908
  element: props,
1191
- isDehydrated: false,
909
+ isDehydrated: !1,
1192
910
  cache: nextState.cache
1193
911
  }, workInProgress2.updateQueue.baseState = prevState, workInProgress2.memoizedState = prevState, workInProgress2.flags & 256) {
1194
912
  workInProgress2 = mountHostRootWithoutHydrating(
@@ -1202,41 +920,23 @@
1202
920
  $$typeof = createCapturedValueAtFiber(
1203
921
  Error(formatProdErrorMessage(424)),
1204
922
  workInProgress2
1205
- );
1206
- queueHydrationError($$typeof);
1207
- workInProgress2 = mountHostRootWithoutHydrating(
923
+ ), queueHydrationError($$typeof), workInProgress2 = mountHostRootWithoutHydrating(
1208
924
  current,
1209
925
  workInProgress2,
1210
926
  props,
1211
927
  renderLanes2
1212
928
  );
1213
929
  break a;
1214
- } else {
1215
- current = workInProgress2.stateNode.containerInfo;
1216
- switch (current.nodeType) {
1217
- case 9:
1218
- current = current.body;
1219
- break;
1220
- default:
1221
- current = "HTML" === current.nodeName ? current.ownerDocument.body : current;
1222
- }
1223
- nextHydratableInstance = getNextHydratable(current.firstChild);
1224
- hydrationParentFiber = workInProgress2;
1225
- isHydrating = true;
1226
- hydrationErrors = null;
1227
- rootOrSingletonContext = true;
1228
- renderLanes2 = mountChildFibers(
930
+ } else
931
+ for (current = workInProgress2.stateNode.containerInfo, current.nodeType === 9 ? current = current.body : current = current.nodeName === "HTML" ? current.ownerDocument.body : current, nextHydratableInstance = getNextHydratable(current.firstChild), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !0, renderLanes2 = mountChildFibers(
1229
932
  workInProgress2,
1230
933
  null,
1231
934
  props,
1232
935
  renderLanes2
1233
- );
1234
- for (workInProgress2.child = renderLanes2; renderLanes2; )
936
+ ), workInProgress2.child = renderLanes2; renderLanes2; )
1235
937
  renderLanes2.flags = renderLanes2.flags & -3 | 134221824, renderLanes2 = renderLanes2.sibling;
1236
- }
1237
938
  else {
1238
- resetHydrationState();
1239
- if (props === $$typeof) {
939
+ if (resetHydrationState(), props === $$typeof) {
1240
940
  workInProgress2 = bailoutOnAlreadyFinishedWork(
1241
941
  current,
1242
942
  workInProgress2,
@@ -1250,7 +950,7 @@
1250
950
  }
1251
951
  return workInProgress2;
1252
952
  case 26:
1253
- return markRef(current, workInProgress2), null === current ? (renderLanes2 = getResource(
953
+ return markRef(current, workInProgress2), current === null ? (renderLanes2 = getResource(
1254
954
  workInProgress2.type,
1255
955
  null,
1256
956
  workInProgress2.pendingProps,
@@ -1267,62 +967,43 @@
1267
967
  current.memoizedState
1268
968
  ), null;
1269
969
  case 27:
1270
- return pushHostContext(workInProgress2), null === current && isHydrating && (props = workInProgress2.stateNode = resolveSingletonInstance(
970
+ return pushHostContext(workInProgress2), current === null && isHydrating && (props = workInProgress2.stateNode = resolveSingletonInstance(
1271
971
  workInProgress2.type,
1272
972
  workInProgress2.pendingProps,
1273
973
  rootInstanceStackCursor.current
1274
- ), hydrationParentFiber = workInProgress2, rootOrSingletonContext = true, $$typeof = nextHydratableInstance, isSingletonScope(workInProgress2.type) ? (previousHydratableOnEnteringScopedSingleton = $$typeof, nextHydratableInstance = getNextHydratable(props.firstChild)) : nextHydratableInstance = $$typeof), reconcileChildren(
974
+ ), hydrationParentFiber = workInProgress2, rootOrSingletonContext = !0, $$typeof = nextHydratableInstance, isSingletonScope(workInProgress2.type) ? (previousHydratableOnEnteringScopedSingleton = $$typeof, nextHydratableInstance = getNextHydratable(props.firstChild)) : nextHydratableInstance = $$typeof), reconcileChildren(
1275
975
  current,
1276
976
  workInProgress2,
1277
977
  workInProgress2.pendingProps.children,
1278
978
  renderLanes2
1279
- ), markRef(current, workInProgress2), null === current && (workInProgress2.flags |= 4194304), workInProgress2.child;
979
+ ), markRef(current, workInProgress2), current === null && (workInProgress2.flags |= 4194304), workInProgress2.child;
1280
980
  case 5:
1281
- if (null === current && isHydrating) {
1282
- if ($$typeof = props = nextHydratableInstance)
1283
- props = canHydrateInstance(
1284
- props,
1285
- workInProgress2.type,
1286
- workInProgress2.pendingProps,
1287
- rootOrSingletonContext
1288
- ), null !== props ? (workInProgress2.stateNode = props, hydrationParentFiber = workInProgress2, nextHydratableInstance = getNextHydratable(props.firstChild), rootOrSingletonContext = false, $$typeof = true) : $$typeof = false;
1289
- $$typeof || throwOnHydrationMismatch(workInProgress2);
1290
- }
1291
- pushHostContext(workInProgress2);
1292
- $$typeof = workInProgress2.type;
1293
- prevState = workInProgress2.pendingProps;
1294
- nextState = null !== current ? current.memoizedProps : null;
1295
- props = prevState.children;
1296
- shouldSetTextContent($$typeof, prevState) ? props = null : null !== nextState && shouldSetTextContent($$typeof, nextState) && (workInProgress2.flags |= 32);
1297
- null !== workInProgress2.memoizedState && ($$typeof = renderWithHooks(
981
+ return current === null && isHydrating && (($$typeof = props = nextHydratableInstance) && (props = canHydrateInstance(
982
+ props,
983
+ workInProgress2.type,
984
+ workInProgress2.pendingProps,
985
+ rootOrSingletonContext
986
+ ), props !== null ? (workInProgress2.stateNode = props, hydrationParentFiber = workInProgress2, nextHydratableInstance = getNextHydratable(props.firstChild), rootOrSingletonContext = !1, $$typeof = !0) : $$typeof = !1), $$typeof || throwOnHydrationMismatch(workInProgress2)), pushHostContext(workInProgress2), $$typeof = workInProgress2.type, prevState = workInProgress2.pendingProps, nextState = current !== null ? current.memoizedProps : null, props = prevState.children, shouldSetTextContent($$typeof, prevState) ? props = null : nextState !== null && shouldSetTextContent($$typeof, nextState) && (workInProgress2.flags |= 32), workInProgress2.memoizedState !== null && ($$typeof = renderWithHooks(
1298
987
  current,
1299
988
  workInProgress2,
1300
989
  TransitionAwareHostComponent,
1301
990
  null,
1302
991
  null,
1303
992
  renderLanes2
1304
- ), HostTransitionContext._currentValue = $$typeof);
1305
- markRef(current, workInProgress2);
1306
- reconcileChildren(current, workInProgress2, props, renderLanes2);
1307
- return workInProgress2.child;
993
+ ), HostTransitionContext._currentValue = $$typeof), markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
1308
994
  case 6:
1309
- if (null === current && isHydrating) {
1310
- if (current = renderLanes2 = nextHydratableInstance)
1311
- renderLanes2 = canHydrateTextInstance(
1312
- renderLanes2,
1313
- workInProgress2.pendingProps,
1314
- rootOrSingletonContext
1315
- ), null !== renderLanes2 ? (workInProgress2.stateNode = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, current = true) : current = false;
1316
- current || throwOnHydrationMismatch(workInProgress2);
1317
- }
1318
- return null;
995
+ return current === null && isHydrating && ((current = renderLanes2 = nextHydratableInstance) && (renderLanes2 = canHydrateTextInstance(
996
+ renderLanes2,
997
+ workInProgress2.pendingProps,
998
+ rootOrSingletonContext
999
+ ), renderLanes2 !== null ? (workInProgress2.stateNode = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, current = !0) : current = !1), current || throwOnHydrationMismatch(workInProgress2)), null;
1319
1000
  case 13:
1320
1001
  return updateSuspenseComponent(current, workInProgress2, renderLanes2);
1321
1002
  case 4:
1322
1003
  return pushHostContainer(
1323
1004
  workInProgress2,
1324
1005
  workInProgress2.stateNode.containerInfo
1325
- ), props = workInProgress2.pendingProps, null === current ? workInProgress2.child = reconcileChildFibers(
1006
+ ), props = workInProgress2.pendingProps, current === null ? workInProgress2.child = reconcileChildFibers(
1326
1007
  workInProgress2,
1327
1008
  null,
1328
1009
  props,
@@ -1384,11 +1065,11 @@
1384
1065
  workInProgress2.pendingProps
1385
1066
  );
1386
1067
  case 24:
1387
- return prepareToReadContext(workInProgress2), props = readContext(CacheContext), null === current ? ($$typeof = peekCacheFromPool(), null === $$typeof && ($$typeof = workInProgressRoot, prevState = createCache(), $$typeof.pooledCache = prevState, prevState.refCount++, null !== prevState && ($$typeof.pooledCacheLanes |= renderLanes2), $$typeof = prevState), workInProgress2.memoizedState = { parent: props, cache: $$typeof }, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, $$typeof)) : (0 !== (current.lanes & renderLanes2) && (cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, prevState = workInProgress2.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress2.memoizedState = $$typeof, 0 === workInProgress2.lanes && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = $$typeof), pushProvider(workInProgress2, CacheContext, props)) : (props = prevState.cache, pushProvider(workInProgress2, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(
1068
+ return prepareToReadContext(workInProgress2), props = readContext(CacheContext), current === null ? ($$typeof = peekCacheFromPool(), $$typeof === null && ($$typeof = workInProgressRoot, prevState = createCache(), $$typeof.pooledCache = prevState, prevState.refCount++, prevState !== null && ($$typeof.pooledCacheLanes |= renderLanes2), $$typeof = prevState), workInProgress2.memoizedState = { parent: props, cache: $$typeof }, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, $$typeof)) : ((current.lanes & renderLanes2) !== 0 && (cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, prevState = workInProgress2.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress2.memoizedState = $$typeof, workInProgress2.lanes === 0 && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = $$typeof), pushProvider(workInProgress2, CacheContext, props)) : (props = prevState.cache, pushProvider(workInProgress2, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(
1388
1069
  workInProgress2,
1389
1070
  [CacheContext],
1390
1071
  renderLanes2,
1391
- true
1072
+ !0
1392
1073
  ))), reconcileChildren(
1393
1074
  current,
1394
1075
  workInProgress2,
@@ -1396,12 +1077,12 @@
1396
1077
  renderLanes2
1397
1078
  ), workInProgress2.child;
1398
1079
  case 30:
1399
- return null === workInProgress2.stateNode && (workInProgress2.stateNode = {
1080
+ return workInProgress2.stateNode === null && (workInProgress2.stateNode = {
1400
1081
  autoName: null,
1401
1082
  paired: null,
1402
1083
  clones: null,
1403
1084
  ref: null
1404
- }), props = workInProgress2.pendingProps, null != props.name && "auto" !== props.name ? workInProgress2.flags |= null === current ? 18882560 : 18874368 : isHydrating && pushMaterializedTreeId(workInProgress2), null !== current && current.memoizedProps.name !== props.name ? workInProgress2.flags |= 4194816 : markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props.children, renderLanes2), workInProgress2.child;
1085
+ }), props = workInProgress2.pendingProps, props.name != null && props.name !== "auto" ? workInProgress2.flags |= current === null ? 18882560 : 18874368 : isHydrating && pushMaterializedTreeId(workInProgress2), current !== null && current.memoizedProps.name !== props.name ? workInProgress2.flags |= 4194816 : markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props.children, renderLanes2), workInProgress2.child;
1405
1086
  case 29:
1406
1087
  throw workInProgress2.pendingProps;
1407
1088
  }
@@ -1412,9 +1093,7 @@
1412
1093
  }
1413
1094
  function preloadInstanceAndSuspendIfNeeded(workInProgress2, type, oldProps, newProps, renderLanes2) {
1414
1095
  var JSCompiler_temp;
1415
- if (JSCompiler_temp = 0 !== (workInProgress2.mode & 32))
1416
- JSCompiler_temp = null === oldProps ? maySuspendCommit(type, newProps) : maySuspendCommit(type, newProps) && (newProps.src !== oldProps.src || newProps.srcSet !== oldProps.srcSet);
1417
- if (JSCompiler_temp) {
1096
+ if ((JSCompiler_temp = (workInProgress2.mode & 32) !== 0) && (JSCompiler_temp = oldProps === null ? maySuspendCommit(type, newProps) : maySuspendCommit(type, newProps) && (newProps.src !== oldProps.src || newProps.srcSet !== oldProps.srcSet)), JSCompiler_temp) {
1418
1097
  if (workInProgress2.flags |= 16777216, (renderLanes2 & 335544128) === renderLanes2)
1419
1098
  if (workInProgress2.stateNode.complete) workInProgress2.flags |= 8192;
1420
1099
  else if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
@@ -1423,7 +1102,7 @@
1423
1102
  } else workInProgress2.flags &= -16777217;
1424
1103
  }
1425
1104
  function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) {
1426
- if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4))
1105
+ if (resource.type !== "stylesheet" || (resource.state.loading & 4) !== 0)
1427
1106
  workInProgress2.flags &= -16777217;
1428
1107
  else if (workInProgress2.flags |= 16777216, !preloadResource(resource))
1429
1108
  if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
@@ -1431,8 +1110,7 @@
1431
1110
  throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
1432
1111
  }
1433
1112
  function scheduleRetryEffect(workInProgress2, retryQueue) {
1434
- null !== retryQueue && (workInProgress2.flags |= 4);
1435
- workInProgress2.flags & 16384 && (retryQueue = 22 !== workInProgress2.tag ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
1113
+ retryQueue !== null && (workInProgress2.flags |= 4), workInProgress2.flags & 16384 && (retryQueue = workInProgress2.tag !== 22 ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
1436
1114
  }
1437
1115
  function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
1438
1116
  if (!isHydrating)
@@ -1440,33 +1118,29 @@
1440
1118
  case "visible":
1441
1119
  break;
1442
1120
  case "collapsed":
1443
- for (var tailNode = renderState.tail, lastTailNode = null; null !== tailNode; )
1444
- null !== tailNode.alternate && (lastTailNode = tailNode), tailNode = tailNode.sibling;
1445
- null === lastTailNode ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode.sibling = null;
1121
+ for (var tailNode = renderState.tail, lastTailNode = null; tailNode !== null; )
1122
+ tailNode.alternate !== null && (lastTailNode = tailNode), tailNode = tailNode.sibling;
1123
+ lastTailNode === null ? hasRenderedATailFallback || renderState.tail === null ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode.sibling = null;
1446
1124
  break;
1447
1125
  default:
1448
- hasRenderedATailFallback = renderState.tail;
1449
- for (tailNode = null; null !== hasRenderedATailFallback; )
1450
- null !== hasRenderedATailFallback.alternate && (tailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
1451
- null === tailNode ? renderState.tail = null : tailNode.sibling = null;
1126
+ for (hasRenderedATailFallback = renderState.tail, tailNode = null; hasRenderedATailFallback !== null; )
1127
+ hasRenderedATailFallback.alternate !== null && (tailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
1128
+ tailNode === null ? renderState.tail = null : tailNode.sibling = null;
1452
1129
  }
1453
1130
  }
1454
1131
  function bubbleProperties(completedWork) {
1455
- var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0;
1132
+ var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0;
1456
1133
  if (didBailout)
1457
- for (var child$113 = completedWork.child; null !== child$113; )
1134
+ for (var child$113 = completedWork.child; child$113 !== null; )
1458
1135
  newChildLanes |= child$113.lanes | child$113.childLanes, subtreeFlags |= child$113.subtreeFlags & 1206910976, subtreeFlags |= child$113.flags & 1206910976, child$113.return = completedWork, child$113 = child$113.sibling;
1459
1136
  else
1460
- for (child$113 = completedWork.child; null !== child$113; )
1137
+ for (child$113 = completedWork.child; child$113 !== null; )
1461
1138
  newChildLanes |= child$113.lanes | child$113.childLanes, subtreeFlags |= child$113.subtreeFlags, subtreeFlags |= child$113.flags, child$113.return = completedWork, child$113 = child$113.sibling;
1462
- completedWork.subtreeFlags |= subtreeFlags;
1463
- completedWork.childLanes = newChildLanes;
1464
- return didBailout;
1139
+ return completedWork.subtreeFlags |= subtreeFlags, completedWork.childLanes = newChildLanes, didBailout;
1465
1140
  }
1466
1141
  function completeWork(current, workInProgress2, renderLanes2) {
1467
1142
  var newProps = workInProgress2.pendingProps;
1468
- popTreeContext(workInProgress2);
1469
- switch (workInProgress2.tag) {
1143
+ switch (popTreeContext(workInProgress2), workInProgress2.tag) {
1470
1144
  case 16:
1471
1145
  case 15:
1472
1146
  case 0:
@@ -1480,20 +1154,10 @@
1480
1154
  case 1:
1481
1155
  return bubbleProperties(workInProgress2), null;
1482
1156
  case 3:
1483
- renderLanes2 = workInProgress2.stateNode;
1484
- newProps = null;
1485
- null !== current && (newProps = current.memoizedState.cache);
1486
- workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048);
1487
- popProvider(CacheContext);
1488
- popHostContainer();
1489
- renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null);
1490
- if (null === current || null === current.child)
1491
- popHydrationState(workInProgress2) ? markUpdate(workInProgress2) : null === current || current.memoizedState.isDehydrated && 0 === (workInProgress2.flags & 256) || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable());
1492
- bubbleProperties(workInProgress2);
1493
- return null;
1157
+ return renderLanes2 = workInProgress2.stateNode, newProps = null, current !== null && (newProps = current.memoizedState.cache), workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048), popProvider(CacheContext), popHostContainer(), renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null), (current === null || current.child === null) && (popHydrationState(workInProgress2) ? markUpdate(workInProgress2) : current === null || current.memoizedState.isDehydrated && (workInProgress2.flags & 256) === 0 || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable())), bubbleProperties(workInProgress2), null;
1494
1158
  case 26:
1495
1159
  var type = workInProgress2.type, nextResource = workInProgress2.memoizedState;
1496
- null === current ? (markUpdate(workInProgress2), null !== nextResource ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
1160
+ return current === null ? (markUpdate(workInProgress2), nextResource !== null ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
1497
1161
  workInProgress2,
1498
1162
  type,
1499
1163
  null,
@@ -1505,43 +1169,29 @@
1505
1169
  current,
1506
1170
  newProps,
1507
1171
  renderLanes2
1508
- ));
1509
- return null;
1172
+ )), null;
1510
1173
  case 27:
1511
- popHostContext(workInProgress2);
1512
- renderLanes2 = rootInstanceStackCursor.current;
1513
- type = workInProgress2.type;
1514
- if (null !== current && null != workInProgress2.stateNode)
1174
+ if (popHostContext(workInProgress2), renderLanes2 = rootInstanceStackCursor.current, type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
1515
1175
  current.memoizedProps !== newProps && markUpdate(workInProgress2);
1516
1176
  else {
1517
1177
  if (!newProps) {
1518
- if (null === workInProgress2.stateNode)
1178
+ if (workInProgress2.stateNode === null)
1519
1179
  throw Error(formatProdErrorMessage(166));
1520
- bubbleProperties(workInProgress2);
1521
- workInProgress2.subtreeFlags &= -33554433;
1522
- return null;
1180
+ return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, null;
1523
1181
  }
1524
- current = contextStackCursor.current;
1525
- popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current) : (current = resolveSingletonInstance(type, newProps, renderLanes2), workInProgress2.stateNode = current, markUpdate(workInProgress2));
1182
+ current = contextStackCursor.current, popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current) : (current = resolveSingletonInstance(type, newProps, renderLanes2), workInProgress2.stateNode = current, markUpdate(workInProgress2));
1526
1183
  }
1527
- bubbleProperties(workInProgress2);
1528
- workInProgress2.subtreeFlags &= -33554433;
1529
- return null;
1184
+ return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, null;
1530
1185
  case 5:
1531
- popHostContext(workInProgress2);
1532
- type = workInProgress2.type;
1533
- if (null !== current && null != workInProgress2.stateNode)
1186
+ if (popHostContext(workInProgress2), type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
1534
1187
  current.memoizedProps !== newProps && markUpdate(workInProgress2);
1535
1188
  else {
1536
1189
  if (!newProps) {
1537
- if (null === workInProgress2.stateNode)
1190
+ if (workInProgress2.stateNode === null)
1538
1191
  throw Error(formatProdErrorMessage(166));
1539
- bubbleProperties(workInProgress2);
1540
- workInProgress2.subtreeFlags &= -33554433;
1541
- return null;
1192
+ return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, null;
1542
1193
  }
1543
- nextResource = contextStackCursor.current;
1544
- if (popHydrationState(workInProgress2))
1194
+ if (nextResource = contextStackCursor.current, popHydrationState(workInProgress2))
1545
1195
  prepareToHydrateHostInstance(workInProgress2, nextResource);
1546
1196
  else {
1547
1197
  var ownerDocument = getOwnerDocumentFromRootContainer(
@@ -1575,40 +1225,34 @@
1575
1225
  );
1576
1226
  break;
1577
1227
  case "script":
1578
- nextResource = ownerDocument.createElement("div");
1579
- nextResource.innerHTML = "<script><\/script>";
1580
- nextResource = nextResource.removeChild(
1228
+ nextResource = ownerDocument.createElement("div"), nextResource.innerHTML = "<script><\/script>", nextResource = nextResource.removeChild(
1581
1229
  nextResource.firstChild
1582
1230
  );
1583
1231
  break;
1584
1232
  case "select":
1585
- nextResource = "string" === typeof newProps.is ? ownerDocument.createElement("select", {
1233
+ nextResource = typeof newProps.is == "string" ? ownerDocument.createElement("select", {
1586
1234
  is: newProps.is
1587
- }) : ownerDocument.createElement("select");
1588
- newProps.multiple ? nextResource.multiple = true : newProps.size && (nextResource.size = newProps.size);
1235
+ }) : ownerDocument.createElement("select"), newProps.multiple ? nextResource.multiple = !0 : newProps.size && (nextResource.size = newProps.size);
1589
1236
  break;
1590
1237
  default:
1591
- nextResource = "string" === typeof newProps.is ? ownerDocument.createElement(type, { is: newProps.is }) : ownerDocument.createElement(type);
1238
+ nextResource = typeof newProps.is == "string" ? ownerDocument.createElement(type, { is: newProps.is }) : ownerDocument.createElement(type);
1592
1239
  }
1593
1240
  }
1594
- nextResource[internalInstanceKey] = workInProgress2;
1595
- nextResource[internalPropsKey] = newProps;
1596
- a: for (ownerDocument = workInProgress2.child; null !== ownerDocument; ) {
1597
- if (5 === ownerDocument.tag || 6 === ownerDocument.tag)
1241
+ nextResource[internalInstanceKey] = workInProgress2, nextResource[internalPropsKey] = newProps;
1242
+ a: for (ownerDocument = workInProgress2.child; ownerDocument !== null; ) {
1243
+ if (ownerDocument.tag === 5 || ownerDocument.tag === 6)
1598
1244
  nextResource.appendChild(ownerDocument.stateNode);
1599
- else if (4 !== ownerDocument.tag && 27 !== ownerDocument.tag && null !== ownerDocument.child) {
1600
- ownerDocument.child.return = ownerDocument;
1601
- ownerDocument = ownerDocument.child;
1245
+ else if (ownerDocument.tag !== 4 && ownerDocument.tag !== 27 && ownerDocument.child !== null) {
1246
+ ownerDocument.child.return = ownerDocument, ownerDocument = ownerDocument.child;
1602
1247
  continue;
1603
1248
  }
1604
1249
  if (ownerDocument === workInProgress2) break a;
1605
- for (; null === ownerDocument.sibling; ) {
1606
- if (null === ownerDocument.return || ownerDocument.return === workInProgress2)
1250
+ for (; ownerDocument.sibling === null; ) {
1251
+ if (ownerDocument.return === null || ownerDocument.return === workInProgress2)
1607
1252
  break a;
1608
1253
  ownerDocument = ownerDocument.return;
1609
1254
  }
1610
- ownerDocument.sibling.return = ownerDocument.return;
1611
- ownerDocument = ownerDocument.sibling;
1255
+ ownerDocument.sibling.return = ownerDocument.return, ownerDocument = ownerDocument.sibling;
1612
1256
  }
1613
1257
  workInProgress2.stateNode = nextResource;
1614
1258
  a: switch (setInitialProperties(nextResource, type, newProps), type) {
@@ -1619,189 +1263,127 @@
1619
1263
  newProps = !!newProps.autoFocus;
1620
1264
  break a;
1621
1265
  case "img":
1622
- newProps = true;
1266
+ newProps = !0;
1623
1267
  break a;
1624
1268
  default:
1625
- newProps = false;
1269
+ newProps = !1;
1626
1270
  }
1627
1271
  newProps && markUpdate(workInProgress2);
1628
1272
  }
1629
1273
  }
1630
- bubbleProperties(workInProgress2);
1631
- workInProgress2.subtreeFlags &= -33554433;
1632
- preloadInstanceAndSuspendIfNeeded(
1274
+ return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, preloadInstanceAndSuspendIfNeeded(
1633
1275
  workInProgress2,
1634
1276
  workInProgress2.type,
1635
- null === current ? null : current.memoizedProps,
1277
+ current === null ? null : current.memoizedProps,
1636
1278
  workInProgress2.pendingProps,
1637
1279
  renderLanes2
1638
- );
1639
- return null;
1280
+ ), null;
1640
1281
  case 6:
1641
- if (current && null != workInProgress2.stateNode)
1282
+ if (current && workInProgress2.stateNode != null)
1642
1283
  current.memoizedProps !== newProps && markUpdate(workInProgress2);
1643
1284
  else {
1644
- if ("string" !== typeof newProps && null === workInProgress2.stateNode)
1285
+ if (typeof newProps != "string" && workInProgress2.stateNode === null)
1645
1286
  throw Error(formatProdErrorMessage(166));
1646
- current = rootInstanceStackCursor.current;
1647
- if (popHydrationState(workInProgress2)) {
1648
- current = workInProgress2.stateNode;
1649
- renderLanes2 = workInProgress2.memoizedProps;
1650
- newProps = null;
1651
- type = hydrationParentFiber;
1652
- if (null !== type)
1287
+ if (current = rootInstanceStackCursor.current, popHydrationState(workInProgress2)) {
1288
+ if (current = workInProgress2.stateNode, renderLanes2 = workInProgress2.memoizedProps, newProps = null, type = hydrationParentFiber, type !== null)
1653
1289
  switch (type.tag) {
1654
1290
  case 27:
1655
1291
  case 5:
1656
1292
  newProps = type.memoizedProps;
1657
1293
  }
1658
- current[internalInstanceKey] = workInProgress2;
1659
- current = current.nodeValue === renderLanes2 || null !== newProps && true === newProps.suppressHydrationWarning || checkForUnmatchedText(current.nodeValue, renderLanes2) ? true : false;
1660
- current || throwOnHydrationMismatch(workInProgress2, true);
1294
+ current[internalInstanceKey] = workInProgress2, current = !!(current.nodeValue === renderLanes2 || newProps !== null && newProps.suppressHydrationWarning === !0 || checkForUnmatchedText(current.nodeValue, renderLanes2)), current || throwOnHydrationMismatch(workInProgress2, !0);
1661
1295
  } else
1662
1296
  current = getOwnerDocumentFromRootContainer(current).createTextNode(
1663
1297
  newProps
1664
1298
  ), current[internalInstanceKey] = workInProgress2, workInProgress2.stateNode = current;
1665
1299
  }
1666
- bubbleProperties(workInProgress2);
1667
- return null;
1300
+ return bubbleProperties(workInProgress2), null;
1668
1301
  case 31:
1669
- renderLanes2 = workInProgress2.memoizedState;
1670
- if (null === current || null !== current.memoizedState) {
1671
- newProps = popHydrationState(workInProgress2);
1672
- if (null !== renderLanes2) {
1673
- if (null === current) {
1302
+ if (renderLanes2 = workInProgress2.memoizedState, current === null || current.memoizedState !== null) {
1303
+ if (newProps = popHydrationState(workInProgress2), renderLanes2 !== null) {
1304
+ if (current === null) {
1674
1305
  if (!newProps) throw Error(formatProdErrorMessage(318));
1675
- current = workInProgress2.memoizedState;
1676
- current = null !== current ? current.dehydrated : null;
1677
- if (!current) throw Error(formatProdErrorMessage(557));
1306
+ if (current = workInProgress2.memoizedState, current = current !== null ? current.dehydrated : null, !current) throw Error(formatProdErrorMessage(557));
1678
1307
  current[internalInstanceKey] = workInProgress2;
1679
1308
  } else
1680
- resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1681
- bubbleProperties(workInProgress2);
1682
- current = false;
1309
+ resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1310
+ bubbleProperties(workInProgress2), current = !1;
1683
1311
  } else
1684
- renderLanes2 = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = renderLanes2), current = true;
1685
- if (!current) {
1686
- if (workInProgress2.flags & 256)
1687
- return popSuspenseHandler(workInProgress2), workInProgress2;
1688
- popSuspenseHandler(workInProgress2);
1689
- return null;
1690
- }
1691
- if (0 !== (workInProgress2.flags & 128))
1312
+ renderLanes2 = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = renderLanes2), current = !0;
1313
+ if (!current)
1314
+ return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
1315
+ if ((workInProgress2.flags & 128) !== 0)
1692
1316
  throw Error(formatProdErrorMessage(558));
1693
1317
  }
1694
- bubbleProperties(workInProgress2);
1695
- return null;
1318
+ return bubbleProperties(workInProgress2), null;
1696
1319
  case 13:
1697
- newProps = workInProgress2.memoizedState;
1698
- if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) {
1699
- type = popHydrationState(workInProgress2);
1700
- if (null !== newProps && null !== newProps.dehydrated) {
1701
- if (null === current) {
1320
+ if (newProps = workInProgress2.memoizedState, current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
1321
+ if (type = popHydrationState(workInProgress2), newProps !== null && newProps.dehydrated !== null) {
1322
+ if (current === null) {
1702
1323
  if (!type) throw Error(formatProdErrorMessage(318));
1703
- type = workInProgress2.memoizedState;
1704
- type = null !== type ? type.dehydrated : null;
1705
- if (!type) throw Error(formatProdErrorMessage(317));
1324
+ if (type = workInProgress2.memoizedState, type = type !== null ? type.dehydrated : null, !type) throw Error(formatProdErrorMessage(317));
1706
1325
  type[internalInstanceKey] = workInProgress2;
1707
1326
  } else
1708
- resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1709
- bubbleProperties(workInProgress2);
1710
- type = false;
1327
+ resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1328
+ bubbleProperties(workInProgress2), type = !1;
1711
1329
  } else
1712
- type = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = type), type = true;
1713
- if (!type) {
1714
- if (workInProgress2.flags & 256)
1715
- return popSuspenseHandler(workInProgress2), workInProgress2;
1716
- popSuspenseHandler(workInProgress2);
1717
- return null;
1718
- }
1330
+ type = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = type), type = !0;
1331
+ if (!type)
1332
+ return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
1719
1333
  }
1720
- popSuspenseHandler(workInProgress2);
1721
- if (0 !== (workInProgress2.flags & 128))
1722
- return workInProgress2.lanes = renderLanes2, workInProgress2;
1723
- renderLanes2 = null !== newProps;
1724
- current = null !== current && null !== current.memoizedState;
1725
- renderLanes2 && (newProps = workInProgress2.child, type = null, null !== newProps.alternate && null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048));
1726
- renderLanes2 !== current && renderLanes2 && (workInProgress2.child.flags |= 8192);
1727
- scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue);
1728
- bubbleProperties(workInProgress2);
1729
- return null;
1334
+ return popSuspenseHandler(workInProgress2), (workInProgress2.flags & 128) !== 0 ? (workInProgress2.lanes = renderLanes2, workInProgress2) : (renderLanes2 = newProps !== null, current = current !== null && current.memoizedState !== null, renderLanes2 && (newProps = workInProgress2.child, type = null, newProps.alternate !== null && newProps.alternate.memoizedState !== null && newProps.alternate.memoizedState.cachePool !== null && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, newProps.memoizedState !== null && newProps.memoizedState.cachePool !== null && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)), renderLanes2 !== current && renderLanes2 && (workInProgress2.child.flags |= 8192), scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue), bubbleProperties(workInProgress2), null);
1730
1335
  case 4:
1731
- return popHostContainer(), null === current && listenToAllSupportedEvents(workInProgress2.stateNode.containerInfo), workInProgress2.flags |= 67108864, bubbleProperties(workInProgress2), null;
1336
+ return popHostContainer(), current === null && listenToAllSupportedEvents(workInProgress2.stateNode.containerInfo), workInProgress2.flags |= 67108864, bubbleProperties(workInProgress2), null;
1732
1337
  case 10:
1733
1338
  return popProvider(workInProgress2.type), bubbleProperties(workInProgress2), null;
1734
1339
  case 19:
1735
- popSuspenseListContext(workInProgress2);
1736
- newProps = workInProgress2.memoizedState;
1737
- if (null === newProps) return bubbleProperties(workInProgress2), null;
1738
- type = 0 !== (workInProgress2.flags & 128);
1739
- nextResource = newProps.rendering;
1740
- if (null === nextResource)
1741
- if (type) cutOffTailIfNeeded(newProps, false);
1340
+ if (popSuspenseListContext(workInProgress2), newProps = workInProgress2.memoizedState, newProps === null) return bubbleProperties(workInProgress2), null;
1341
+ if (type = (workInProgress2.flags & 128) !== 0, nextResource = newProps.rendering, nextResource === null)
1342
+ if (type) cutOffTailIfNeeded(newProps, !1);
1742
1343
  else {
1743
- if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128))
1744
- for (current = workInProgress2.child; null !== current; ) {
1745
- nextResource = findFirstSuspended(current);
1746
- if (null !== nextResource) {
1747
- workInProgress2.flags |= 128;
1748
- cutOffTailIfNeeded(newProps, false);
1749
- current = nextResource.updateQueue;
1750
- workInProgress2.updateQueue = current;
1751
- scheduleRetryEffect(workInProgress2, current);
1752
- workInProgress2.subtreeFlags = 0;
1753
- current = renderLanes2;
1754
- for (renderLanes2 = workInProgress2.child; null !== renderLanes2; )
1344
+ if (workInProgressRootExitStatus !== 0 || current !== null && (current.flags & 128) !== 0)
1345
+ for (current = workInProgress2.child; current !== null; ) {
1346
+ if (nextResource = findFirstSuspended(current), nextResource !== null) {
1347
+ for (workInProgress2.flags |= 128, cutOffTailIfNeeded(newProps, !1), current = nextResource.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), workInProgress2.subtreeFlags = 0, current = renderLanes2, renderLanes2 = workInProgress2.child; renderLanes2 !== null; )
1755
1348
  resetWorkInProgress(renderLanes2, current), renderLanes2 = renderLanes2.sibling;
1756
- pushSuspenseListContext(
1349
+ return pushSuspenseListContext(
1757
1350
  workInProgress2,
1758
1351
  suspenseStackCursor.current & 1 | 2
1759
- );
1760
- isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount);
1761
- return workInProgress2.child;
1352
+ ), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), workInProgress2.child;
1762
1353
  }
1763
1354
  current = current.sibling;
1764
1355
  }
1765
- null !== newProps.tail && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
1356
+ newProps.tail !== null && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
1766
1357
  }
1767
1358
  else {
1768
1359
  if (!type)
1769
- if (current = findFirstSuspended(nextResource), null !== current) {
1770
- if (workInProgress2.flags |= 128, type = true, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, true), null === newProps.tail && "collapsed" !== newProps.tailMode && "visible" !== newProps.tailMode && !nextResource.alternate && !isHydrating)
1360
+ if (current = findFirstSuspended(nextResource), current !== null) {
1361
+ if (workInProgress2.flags |= 128, type = !0, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, !0), newProps.tail === null && newProps.tailMode !== "collapsed" && newProps.tailMode !== "visible" && !nextResource.alternate && !isHydrating)
1771
1362
  return bubbleProperties(workInProgress2), null;
1772
1363
  } else
1773
- 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes2 && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
1774
- newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, null !== current ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
1364
+ 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && renderLanes2 !== 536870912 && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
1365
+ newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, current !== null ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
1775
1366
  }
1776
- if (null !== newProps.tail) {
1367
+ if (newProps.tail !== null) {
1777
1368
  current = newProps.tail;
1778
1369
  a: {
1779
- for (renderLanes2 = current; null !== renderLanes2; ) {
1780
- if (null !== renderLanes2.alternate) {
1781
- renderLanes2 = false;
1370
+ for (renderLanes2 = current; renderLanes2 !== null; ) {
1371
+ if (renderLanes2.alternate !== null) {
1372
+ renderLanes2 = !1;
1782
1373
  break a;
1783
1374
  }
1784
1375
  renderLanes2 = renderLanes2.sibling;
1785
1376
  }
1786
- renderLanes2 = true;
1377
+ renderLanes2 = !0;
1787
1378
  }
1788
- newProps.rendering = current;
1789
- newProps.tail = current.sibling;
1790
- newProps.renderingStartTime = now();
1791
- current.sibling = null;
1792
- nextResource = suspenseStackCursor.current;
1793
- nextResource = type ? nextResource & 1 | 2 : nextResource & 1;
1794
- "visible" === newProps.tailMode || "collapsed" === newProps.tailMode || !renderLanes2 || isHydrating ? pushSuspenseListContext(workInProgress2, nextResource) : (renderLanes2 = nextResource, push(suspenseHandlerStackCursor, workInProgress2), push(suspenseStackCursor, renderLanes2), null === shellBoundary && (shellBoundary = workInProgress2));
1795
- isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount);
1796
- return current;
1379
+ return newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, nextResource = suspenseStackCursor.current, nextResource = type ? nextResource & 1 | 2 : nextResource & 1, newProps.tailMode === "visible" || newProps.tailMode === "collapsed" || !renderLanes2 || isHydrating ? pushSuspenseListContext(workInProgress2, nextResource) : (renderLanes2 = nextResource, push(suspenseHandlerStackCursor, workInProgress2), push(suspenseStackCursor, renderLanes2), shellBoundary === null && (shellBoundary = workInProgress2)), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current;
1797
1380
  }
1798
- bubbleProperties(workInProgress2);
1799
- return null;
1381
+ return bubbleProperties(workInProgress2), null;
1800
1382
  case 22:
1801
1383
  case 23:
1802
- return popSuspenseHandler(workInProgress2), popHiddenContext(), newProps = null !== workInProgress2.memoizedState, null !== current ? null !== current.memoizedState !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? 0 !== (renderLanes2 & 536870912) && 0 === (workInProgress2.flags & 128) && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, null !== renderLanes2 && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (renderLanes2 = current.memoizedState.cachePool.pool), newProps = null, null !== workInProgress2.memoizedState && null !== workInProgress2.memoizedState.cachePool && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), null !== current && pop(resumedCache), null;
1384
+ return popSuspenseHandler(workInProgress2), popHiddenContext(), newProps = workInProgress2.memoizedState !== null, current !== null ? current.memoizedState !== null !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? (renderLanes2 & 536870912) !== 0 && (workInProgress2.flags & 128) === 0 && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, renderLanes2 !== null && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, current !== null && current.memoizedState !== null && current.memoizedState.cachePool !== null && (renderLanes2 = current.memoizedState.cachePool.pool), newProps = null, workInProgress2.memoizedState !== null && workInProgress2.memoizedState.cachePool !== null && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), current !== null && pop(resumedCache), null;
1803
1385
  case 24:
1804
- return renderLanes2 = null, null !== current && (renderLanes2 = current.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress2), null;
1386
+ return renderLanes2 = null, current !== null && (renderLanes2 = current.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress2), null;
1805
1387
  case 25:
1806
1388
  return null;
1807
1389
  case 30:
@@ -1810,44 +1392,38 @@
1810
1392
  throw Error(formatProdErrorMessage(156, workInProgress2.tag));
1811
1393
  }
1812
1394
  function unwindWork(current, workInProgress2) {
1813
- popTreeContext(workInProgress2);
1814
- switch (workInProgress2.tag) {
1395
+ switch (popTreeContext(workInProgress2), workInProgress2.tag) {
1815
1396
  case 1:
1816
1397
  return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1817
1398
  case 3:
1818
- return popProvider(CacheContext), popHostContainer(), current = workInProgress2.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1399
+ return popProvider(CacheContext), popHostContainer(), current = workInProgress2.flags, (current & 65536) !== 0 && (current & 128) === 0 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1819
1400
  case 26:
1820
1401
  case 27:
1821
1402
  case 5:
1822
1403
  return popHostContext(workInProgress2), null;
1823
1404
  case 31:
1824
- if (null !== workInProgress2.memoizedState) {
1825
- popSuspenseHandler(workInProgress2);
1826
- if (null === workInProgress2.alternate)
1405
+ if (workInProgress2.memoizedState !== null) {
1406
+ if (popSuspenseHandler(workInProgress2), workInProgress2.alternate === null)
1827
1407
  throw Error(formatProdErrorMessage(340));
1828
1408
  resetHydrationState();
1829
1409
  }
1830
- current = workInProgress2.flags;
1831
- return current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1410
+ return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1832
1411
  case 13:
1833
- popSuspenseHandler(workInProgress2);
1834
- current = workInProgress2.memoizedState;
1835
- if (null !== current && null !== current.dehydrated) {
1836
- if (null === workInProgress2.alternate)
1412
+ if (popSuspenseHandler(workInProgress2), current = workInProgress2.memoizedState, current !== null && current.dehydrated !== null) {
1413
+ if (workInProgress2.alternate === null)
1837
1414
  throw Error(formatProdErrorMessage(340));
1838
1415
  resetHydrationState();
1839
1416
  }
1840
- current = workInProgress2.flags;
1841
- return current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1417
+ return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1842
1418
  case 19:
1843
- return popSuspenseListContext(workInProgress2), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, current = workInProgress2.memoizedState, null !== current && (current.rendering = null, current.tail = null), workInProgress2.flags |= 4, workInProgress2) : null;
1419
+ return popSuspenseListContext(workInProgress2), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, current = workInProgress2.memoizedState, current !== null && (current.rendering = null, current.tail = null), workInProgress2.flags |= 4, workInProgress2) : null;
1844
1420
  case 4:
1845
1421
  return popHostContainer(), null;
1846
1422
  case 10:
1847
1423
  return popProvider(workInProgress2.type), null;
1848
1424
  case 22:
1849
1425
  case 23:
1850
- return popSuspenseHandler(workInProgress2), popHiddenContext(), null !== current && pop(resumedCache), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1426
+ return popSuspenseHandler(workInProgress2), popHiddenContext(), current !== null && pop(resumedCache), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1851
1427
  case 24:
1852
1428
  return popProvider(CacheContext), null;
1853
1429
  case 25:
@@ -1857,11 +1433,9 @@
1857
1433
  }
1858
1434
  }
1859
1435
  function unwindInterruptedWork(current, interruptedWork) {
1860
- popTreeContext(interruptedWork);
1861
- switch (interruptedWork.tag) {
1436
+ switch (popTreeContext(interruptedWork), interruptedWork.tag) {
1862
1437
  case 3:
1863
- popProvider(CacheContext);
1864
- popHostContainer();
1438
+ popProvider(CacheContext), popHostContainer();
1865
1439
  break;
1866
1440
  case 26:
1867
1441
  case 27:
@@ -1872,7 +1446,7 @@
1872
1446
  popHostContainer();
1873
1447
  break;
1874
1448
  case 31:
1875
- null !== interruptedWork.memoizedState && popSuspenseHandler(interruptedWork);
1449
+ interruptedWork.memoizedState !== null && popSuspenseHandler(interruptedWork);
1876
1450
  break;
1877
1451
  case 13:
1878
1452
  popSuspenseHandler(interruptedWork);
@@ -1885,9 +1459,7 @@
1885
1459
  break;
1886
1460
  case 22:
1887
1461
  case 23:
1888
- popSuspenseHandler(interruptedWork);
1889
- popHiddenContext();
1890
- null !== current && pop(resumedCache);
1462
+ popSuspenseHandler(interruptedWork), popHiddenContext(), current !== null && pop(resumedCache);
1891
1463
  break;
1892
1464
  case 24:
1893
1465
  popProvider(CacheContext);