@taskmark/ui 0.2.1 → 0.2.4

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 (1347) hide show
  1. package/README.md +7 -2
  2. package/app/globals.css +17 -1
  3. package/bin/lib/static-preview.mjs +110 -0
  4. package/bin/taskmark.js +78 -4
  5. package/components/board/markdown-content.tsx +1 -2
  6. package/dist/standalone/.next/BUILD_ID +1 -1
  7. package/dist/standalone/.next/app-path-routes-manifest.json +2 -2
  8. package/dist/standalone/.next/build-manifest.json +13 -15
  9. package/dist/standalone/.next/prerender-manifest.json +3 -3
  10. package/dist/standalone/.next/react-loadable-manifest.json +8 -0
  11. package/dist/standalone/.next/required-server-files.json +5 -1
  12. package/dist/standalone/.next/server/app/_global-error/page.js +32 -12
  13. package/dist/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  14. package/dist/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -3
  15. package/dist/standalone/.next/server/app/_global-error.html +1 -1
  16. package/dist/standalone/.next/server/app/_global-error.meta +2 -1
  17. package/dist/standalone/.next/server/app/_global-error.rsc +8 -9
  18. package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +8 -9
  19. package/dist/standalone/.next/server/app/_global-error.segments/{__PAGE__.segment.rsc → _global-error/__PAGE__.segment.rsc} +2 -2
  20. package/dist/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  21. package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -4
  22. package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  23. package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  24. package/dist/standalone/.next/server/app/_not-found/page.js +2 -15
  25. package/dist/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  26. package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -3
  27. package/dist/standalone/.next/server/app/_not-found.html +1 -1
  28. package/dist/standalone/.next/server/app/_not-found.rsc +14 -12
  29. package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -12
  30. package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  31. package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
  32. package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  33. package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  34. package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +5 -3
  35. package/dist/standalone/.next/server/app/board/page.js +50 -22
  36. package/dist/standalone/.next/server/app/board/page.js.nft.json +1 -1
  37. package/dist/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -3
  38. package/dist/standalone/.next/server/app/favicon.ico/route.js +1 -6
  39. package/dist/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  40. package/dist/standalone/.next/server/app/page.js +2 -18
  41. package/dist/standalone/.next/server/app/page.js.nft.json +1 -1
  42. package/dist/standalone/.next/server/app/page_client-reference-manifest.js +1 -3
  43. package/dist/standalone/.next/server/app/setup/page.js +2 -20
  44. package/dist/standalone/.next/server/app/setup/page.js.nft.json +1 -1
  45. package/dist/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -3
  46. package/dist/standalone/.next/server/app-paths-manifest.json +2 -2
  47. package/dist/standalone/.next/server/chunks/164.js +1 -0
  48. package/dist/standalone/.next/server/chunks/318.js +1 -0
  49. package/dist/standalone/.next/server/chunks/319.js +45 -0
  50. package/dist/standalone/.next/server/chunks/445.js +18 -0
  51. package/dist/standalone/.next/server/chunks/490.js +8 -0
  52. package/dist/standalone/.next/server/chunks/57.js +19 -0
  53. package/dist/standalone/.next/server/chunks/570.js +1 -0
  54. package/dist/standalone/.next/server/chunks/666.js +1 -0
  55. package/dist/standalone/.next/server/middleware-build-manifest.js +1 -22
  56. package/dist/standalone/.next/server/middleware-manifest.json +2 -2
  57. package/dist/standalone/.next/server/middleware-react-loadable-manifest.js +1 -0
  58. package/dist/standalone/.next/server/next-font-manifest.js +1 -1
  59. package/dist/standalone/.next/server/next-font-manifest.json +1 -23
  60. package/dist/standalone/.next/server/pages/404.html +1 -1
  61. package/dist/standalone/.next/server/pages/500.html +1 -1
  62. package/dist/standalone/.next/server/server-reference-manifest.js +1 -1
  63. package/dist/standalone/.next/server/server-reference-manifest.json +1 -90
  64. package/dist/standalone/.next/server/webpack-runtime.js +1 -0
  65. package/dist/standalone/.next/static/chunks/211.a43663747d668728.js +1 -0
  66. package/dist/standalone/.next/static/chunks/4bd1b696-deb4a0a1da1923b0.js +1 -0
  67. package/dist/standalone/.next/static/chunks/669-8103441c67b185da.js +1 -0
  68. package/dist/standalone/.next/static/chunks/701-df3ee5f1cf837b1a.js +1 -0
  69. package/dist/standalone/.next/static/chunks/781-f9f201ddc8c8591a.js +1 -0
  70. package/dist/standalone/.next/static/chunks/794-25668765560cb197.js +32 -0
  71. package/dist/standalone/.next/static/chunks/app/_global-error/page-82d456ade9f47021.js +1 -0
  72. package/dist/standalone/.next/static/chunks/app/_not-found/page-0b3785af737e7968.js +1 -0
  73. package/dist/standalone/.next/static/chunks/app/board/page-6db8dec814516c28.js +1 -0
  74. package/dist/standalone/.next/static/chunks/app/layout-3745e06d87691845.js +1 -0
  75. package/dist/standalone/.next/static/chunks/app/page-82d456ade9f47021.js +1 -0
  76. package/dist/standalone/.next/static/chunks/app/setup/page-8a54c6f26633bdca.js +1 -0
  77. package/dist/standalone/.next/static/chunks/framework-b29f9083d3cda3b2.js +1 -0
  78. package/dist/standalone/.next/static/chunks/main-app-bfb36455d24b3e5a.js +1 -0
  79. package/dist/standalone/.next/static/chunks/main-bb33c46a9c25dee8.js +5 -0
  80. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-82d456ade9f47021.js +1 -0
  81. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-82d456ade9f47021.js +1 -0
  82. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/global-error-dc53ab29e0491fe4.js +1 -0
  83. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-82d456ade9f47021.js +1 -0
  84. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-82d456ade9f47021.js +1 -0
  85. package/dist/standalone/.next/static/chunks/webpack-b59eaf276b7fb38f.js +1 -0
  86. package/dist/standalone/.next/static/css/2e6ec4c80894e3c0.css +1 -0
  87. package/dist/standalone/.next/static/css/c593627ceef17a4b.css +1 -0
  88. package/dist/standalone/.next/static/jm3kxf8c6qGe0cYKCktaO/_buildManifest.js +1 -0
  89. package/dist/standalone/node_modules/next/dist/compiled/jest-worker/processChild.js +1 -0
  90. package/dist/standalone/node_modules/next/dist/compiled/jest-worker/threadChild.js +1 -0
  91. package/dist/standalone/package.json +10 -7
  92. package/dist/standalone/server.js +1 -1
  93. package/next.config.ts +20 -0
  94. package/package.json +10 -7
  95. package/scripts/build-static.mjs +125 -16
  96. package/tsconfig.json +1 -0
  97. package/tsconfig.snapshot.json +20 -0
  98. package/dist/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +0 -3
  99. package/dist/standalone/.next/server/app/_global-error/page/build-manifest.json +0 -18
  100. package/dist/standalone/.next/server/app/_global-error/page/next-font-manifest.json +0 -6
  101. package/dist/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +0 -1
  102. package/dist/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +0 -4
  103. package/dist/standalone/.next/server/app/_global-error/page.js.map +0 -5
  104. package/dist/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +0 -3
  105. package/dist/standalone/.next/server/app/_not-found/page/build-manifest.json +0 -18
  106. package/dist/standalone/.next/server/app/_not-found/page/next-font-manifest.json +0 -11
  107. package/dist/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +0 -1
  108. package/dist/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +0 -4
  109. package/dist/standalone/.next/server/app/_not-found/page.js.map +0 -5
  110. package/dist/standalone/.next/server/app/board/page/app-paths-manifest.json +0 -3
  111. package/dist/standalone/.next/server/app/board/page/build-manifest.json +0 -18
  112. package/dist/standalone/.next/server/app/board/page/next-font-manifest.json +0 -11
  113. package/dist/standalone/.next/server/app/board/page/react-loadable-manifest.json +0 -1
  114. package/dist/standalone/.next/server/app/board/page/server-reference-manifest.json +0 -53
  115. package/dist/standalone/.next/server/app/board/page.js.map +0 -5
  116. package/dist/standalone/.next/server/app/favicon.ico/route/app-paths-manifest.json +0 -3
  117. package/dist/standalone/.next/server/app/favicon.ico/route/build-manifest.json +0 -9
  118. package/dist/standalone/.next/server/app/favicon.ico/route.js.map +0 -5
  119. package/dist/standalone/.next/server/app/page/app-paths-manifest.json +0 -3
  120. package/dist/standalone/.next/server/app/page/build-manifest.json +0 -18
  121. package/dist/standalone/.next/server/app/page/next-font-manifest.json +0 -11
  122. package/dist/standalone/.next/server/app/page/react-loadable-manifest.json +0 -1
  123. package/dist/standalone/.next/server/app/page/server-reference-manifest.json +0 -4
  124. package/dist/standalone/.next/server/app/page.js.map +0 -5
  125. package/dist/standalone/.next/server/app/setup/page/app-paths-manifest.json +0 -3
  126. package/dist/standalone/.next/server/app/setup/page/build-manifest.json +0 -18
  127. package/dist/standalone/.next/server/app/setup/page/next-font-manifest.json +0 -11
  128. package/dist/standalone/.next/server/app/setup/page/react-loadable-manifest.json +0 -1
  129. package/dist/standalone/.next/server/app/setup/page/server-reference-manifest.json +0 -41
  130. package/dist/standalone/.next/server/app/setup/page.js.map +0 -5
  131. package/dist/standalone/.next/server/chunks/[externals]_next_dist_1ce_grm._.js +0 -3
  132. package/dist/standalone/.next/server/chunks/[root-of-the-server]__17cj935._.js +0 -13
  133. package/dist/standalone/.next/server/chunks/[turbopack]_runtime.js +0 -903
  134. package/dist/standalone/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js +0 -3
  135. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__056osos._.js +0 -3
  136. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__09zm1qv._.js +0 -27
  137. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0gn-ti0._.js +0 -3
  138. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0l-18_h._.js +0 -25
  139. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nqskgw._.js +0 -19
  140. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ocz_42._.js +0 -3
  141. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0op8wkj._.js +0 -3
  142. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0srwu25._.js +0 -33
  143. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0xww6yw._.js +0 -3
  144. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zq2v_u._.js +0 -3
  145. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__12ufd6u._.js +0 -6
  146. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__18cyjiz._.js +0 -3
  147. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ehzjd1._.js +0 -3
  148. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ig72i1._.js +0 -33
  149. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1pyaz1u._.js +0 -3
  150. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1v-of3u._.js +0 -3
  151. package/dist/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -903
  152. package/dist/standalone/.next/server/chunks/ssr/_05k6qx-._.js +0 -3
  153. package/dist/standalone/.next/server/chunks/ssr/_0aho3h6._.js +0 -6
  154. package/dist/standalone/.next/server/chunks/ssr/_0xl0vrn._.js +0 -3
  155. package/dist/standalone/.next/server/chunks/ssr/_0yo0u0t._.js +0 -3
  156. package/dist/standalone/.next/server/chunks/ssr/_17p0g27._.js +0 -3
  157. package/dist/standalone/.next/server/chunks/ssr/_1ln4p7u._.js +0 -6
  158. package/dist/standalone/.next/server/chunks/ssr/_1nr_jtr._.js +0 -3
  159. package/dist/standalone/.next/server/chunks/ssr/_1qgmrdc._.js +0 -3
  160. package/dist/standalone/.next/server/chunks/ssr/_1yb3kog._.js +0 -3
  161. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js +0 -3
  162. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js +0 -3
  163. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js +0 -3
  164. package/dist/standalone/.next/server/chunks/ssr/app_board_actions_ts_0f5ys15._.js +0 -3
  165. package/dist/standalone/.next/server/chunks/ssr/components_ui_sonner_tsx_0sk2ett._.js +0 -3
  166. package/dist/standalone/.next/server/chunks/ssr/node_modules_0h91jdk._.js +0 -33
  167. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_0airgni._.js +0 -3
  168. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_0alesp5._.js +0 -3
  169. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_0uboya6._.js +0 -6
  170. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_17i19if._.js +0 -3
  171. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js +0 -3
  172. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js +0 -3
  173. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0-o-goa.js +0 -3
  174. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js +0 -3
  175. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_compiled_@opentelemetry_api_index_1oy1nwh.js +0 -3
  176. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0048lj3.js +0 -4
  177. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_04tpgk4.js +0 -4
  178. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0efvv43.js +0 -4
  179. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_12b3age.js +0 -4
  180. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13q04th.js +0 -4
  181. package/dist/standalone/.next/static/Z9wFjRvfV46l9lmHXB7G1/_buildManifest.js +0 -11
  182. package/dist/standalone/.next/static/Z9wFjRvfV46l9lmHXB7G1/_clientMiddlewareManifest.js +0 -1
  183. package/dist/standalone/.next/static/chunks/018wh8zp6bjth.js +0 -1
  184. package/dist/standalone/.next/static/chunks/01fxdzfqp-khv.js +0 -1
  185. package/dist/standalone/.next/static/chunks/05-c3ty_6dwfk.js +0 -1
  186. package/dist/standalone/.next/static/chunks/06t7fr3j7axc1.js +0 -1
  187. package/dist/standalone/.next/static/chunks/0g8oss7mvdgy2.js +0 -1
  188. package/dist/standalone/.next/static/chunks/0peppe1niyipd.css +0 -2
  189. package/dist/standalone/.next/static/chunks/0tckbkthn_lz5.js +0 -1
  190. package/dist/standalone/.next/static/chunks/1b4b87nf50pwj.js +0 -1
  191. package/dist/standalone/.next/static/chunks/1etzx8zdgoji7.js +0 -2
  192. package/dist/standalone/.next/static/chunks/1ob9-gyputghy.js +0 -1
  193. package/dist/standalone/.next/static/chunks/27jktro2p5rq9.js +0 -4
  194. package/dist/standalone/.next/static/chunks/2f-_r40xaxdgx.js +0 -1
  195. package/dist/standalone/.next/static/chunks/2im7c515bo69p.js +0 -1
  196. package/dist/standalone/.next/static/chunks/2r5ngr5zaimmw.js +0 -31
  197. package/dist/standalone/.next/static/chunks/2z9l0n877if48.css +0 -1
  198. package/dist/standalone/.next/static/chunks/40bad20ki94w3.js +0 -1
  199. package/dist/standalone/.next/static/chunks/turbopack-3ekz2izuoc92r.js +0 -1
  200. package/dist/standalone/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  201. package/dist/standalone/AGENTS.md +0 -5
  202. package/dist/standalone/CLAUDE.md +0 -1
  203. package/dist/standalone/README.md +0 -86
  204. package/dist/standalone/app/board/actions.ts +0 -62
  205. package/dist/standalone/app/board/page.tsx +0 -284
  206. package/dist/standalone/app/favicon.ico +0 -0
  207. package/dist/standalone/app/globals.css +0 -128
  208. package/dist/standalone/app/layout.tsx +0 -87
  209. package/dist/standalone/app/page.tsx +0 -17
  210. package/dist/standalone/app/setup/actions.ts +0 -113
  211. package/dist/standalone/app/setup/page.tsx +0 -67
  212. package/dist/standalone/bin/lib/resolve-board.mjs +0 -108
  213. package/dist/standalone/bin/taskmark.js +0 -278
  214. package/dist/standalone/components/board/app-bar.tsx +0 -99
  215. package/dist/standalone/components/board/attribution-avatars.tsx +0 -176
  216. package/dist/standalone/components/board/child-progress-bar.tsx +0 -40
  217. package/dist/standalone/components/board/date-tooltip.tsx +0 -93
  218. package/dist/standalone/components/board/detail-children-list.tsx +0 -70
  219. package/dist/standalone/components/board/epic-list.tsx +0 -363
  220. package/dist/standalone/components/board/hide-completed-toggle.tsx +0 -39
  221. package/dist/standalone/components/board/list-filters-bar.tsx +0 -78
  222. package/dist/standalone/components/board/list-pagination.tsx +0 -124
  223. package/dist/standalone/components/board/list-search-box.tsx +0 -59
  224. package/dist/standalone/components/board/list-view-switcher.tsx +0 -74
  225. package/dist/standalone/components/board/markdown-content.tsx +0 -91
  226. package/dist/standalone/components/board/metric-stat-card.tsx +0 -55
  227. package/dist/standalone/components/board/overall-work-items-list.tsx +0 -356
  228. package/dist/standalone/components/board/parent-filter-combobox.tsx +0 -89
  229. package/dist/standalone/components/board/parent-tag-badge.tsx +0 -46
  230. package/dist/standalone/components/board/project-contributors-panel.tsx +0 -86
  231. package/dist/standalone/components/board/project-status-metrics-strip.tsx +0 -90
  232. package/dist/standalone/components/board/sortable-table-head.tsx +0 -69
  233. package/dist/standalone/components/board/static-board-app.tsx +0 -202
  234. package/dist/standalone/components/board/status-badge.tsx +0 -82
  235. package/dist/standalone/components/board/story-list.tsx +0 -336
  236. package/dist/standalone/components/board/tags-multiselect-filter.tsx +0 -70
  237. package/dist/standalone/components/board/task-list.tsx +0 -307
  238. package/dist/standalone/components/board/timeframe-filter.tsx +0 -676
  239. package/dist/standalone/components/board/work-item-detail-body.tsx +0 -392
  240. package/dist/standalone/components/board/work-item-sheet.tsx +0 -637
  241. package/dist/standalone/components/board/work-items-list.tsx +0 -372
  242. package/dist/standalone/components/brand-logo.tsx +0 -39
  243. package/dist/standalone/components/setup/setup-wizard.tsx +0 -180
  244. package/dist/standalone/components/ui/alert-dialog.tsx +0 -187
  245. package/dist/standalone/components/ui/alert.tsx +0 -101
  246. package/dist/standalone/components/ui/avatar.tsx +0 -109
  247. package/dist/standalone/components/ui/badge.tsx +0 -52
  248. package/dist/standalone/components/ui/breadcrumb.tsx +0 -122
  249. package/dist/standalone/components/ui/button.tsx +0 -64
  250. package/dist/standalone/components/ui/calendar.tsx +0 -237
  251. package/dist/standalone/components/ui/card.tsx +0 -103
  252. package/dist/standalone/components/ui/combobox.tsx +0 -297
  253. package/dist/standalone/components/ui/dialog.tsx +0 -159
  254. package/dist/standalone/components/ui/field.tsx +0 -238
  255. package/dist/standalone/components/ui/input-group.tsx +0 -158
  256. package/dist/standalone/components/ui/input.tsx +0 -20
  257. package/dist/standalone/components/ui/item.tsx +0 -201
  258. package/dist/standalone/components/ui/label.tsx +0 -20
  259. package/dist/standalone/components/ui/pagination.tsx +0 -133
  260. package/dist/standalone/components/ui/popover.tsx +0 -90
  261. package/dist/standalone/components/ui/progress.tsx +0 -83
  262. package/dist/standalone/components/ui/resizable.tsx +0 -55
  263. package/dist/standalone/components/ui/select.tsx +0 -199
  264. package/dist/standalone/components/ui/separator.tsx +0 -25
  265. package/dist/standalone/components/ui/sheet.tsx +0 -137
  266. package/dist/standalone/components/ui/sidebar.tsx +0 -723
  267. package/dist/standalone/components/ui/skeleton.tsx +0 -13
  268. package/dist/standalone/components/ui/slider.tsx +0 -56
  269. package/dist/standalone/components/ui/sonner.tsx +0 -54
  270. package/dist/standalone/components/ui/spinner.tsx +0 -17
  271. package/dist/standalone/components/ui/switch.tsx +0 -32
  272. package/dist/standalone/components/ui/table.tsx +0 -116
  273. package/dist/standalone/components/ui/tabs.tsx +0 -82
  274. package/dist/standalone/components/ui/textarea.tsx +0 -18
  275. package/dist/standalone/components/ui/tooltip.tsx +0 -66
  276. package/dist/standalone/components.json +0 -28
  277. package/dist/standalone/eslint.config.mjs +0 -18
  278. package/dist/standalone/hooks/use-mobile.ts +0 -19
  279. package/dist/standalone/hooks/use-paginated-rows.ts +0 -54
  280. package/dist/standalone/hooks/use-persisted-hide-completed.ts +0 -29
  281. package/dist/standalone/hooks/use-table-sort.ts +0 -22
  282. package/dist/standalone/lib/format-date.ts +0 -75
  283. package/dist/standalone/lib/format-duration.ts +0 -72
  284. package/dist/standalone/lib/format-list-date.ts +0 -2
  285. package/dist/standalone/lib/site.ts +0 -8
  286. package/dist/standalone/lib/taskmark/active-project.ts +0 -16
  287. package/dist/standalone/lib/taskmark/autoconfig.ts +0 -118
  288. package/dist/standalone/lib/taskmark/build-snapshot.ts +0 -198
  289. package/dist/standalone/lib/taskmark/constants.ts +0 -43
  290. package/dist/standalone/lib/taskmark/cookies.ts +0 -169
  291. package/dist/standalone/lib/taskmark/count-leaves.ts +0 -204
  292. package/dist/standalone/lib/taskmark/detail-load.ts +0 -180
  293. package/dist/standalone/lib/taskmark/detail-types.ts +0 -131
  294. package/dist/standalone/lib/taskmark/discover.ts +0 -153
  295. package/dist/standalone/lib/taskmark/epic-types.ts +0 -41
  296. package/dist/standalone/lib/taskmark/flat-work-item-types.ts +0 -122
  297. package/dist/standalone/lib/taskmark/frontmatter.ts +0 -45
  298. package/dist/standalone/lib/taskmark/general-epic.ts +0 -25
  299. package/dist/standalone/lib/taskmark/hide-completed-cookie.ts +0 -40
  300. package/dist/standalone/lib/taskmark/identity.ts +0 -182
  301. package/dist/standalone/lib/taskmark/item-types.ts +0 -46
  302. package/dist/standalone/lib/taskmark/list-filters.ts +0 -327
  303. package/dist/standalone/lib/taskmark/list-view-mode.ts +0 -137
  304. package/dist/standalone/lib/taskmark/load-snapshot-server.ts +0 -11
  305. package/dist/standalone/lib/taskmark/pagination.ts +0 -51
  306. package/dist/standalone/lib/taskmark/parse-detail.ts +0 -227
  307. package/dist/standalone/lib/taskmark/parse-epics.ts +0 -153
  308. package/dist/standalone/lib/taskmark/parse-flat-lists.ts +0 -353
  309. package/dist/standalone/lib/taskmark/parse-items.ts +0 -318
  310. package/dist/standalone/lib/taskmark/parse-sections.ts +0 -135
  311. package/dist/standalone/lib/taskmark/parse-stories.ts +0 -237
  312. package/dist/standalone/lib/taskmark/pick-folder.ts +0 -141
  313. package/dist/standalone/lib/taskmark/project-label.ts +0 -11
  314. package/dist/standalone/lib/taskmark/project-metrics-shared.ts +0 -21
  315. package/dist/standalone/lib/taskmark/project-metrics.ts +0 -284
  316. package/dist/standalone/lib/taskmark/projects.ts +0 -55
  317. package/dist/standalone/lib/taskmark/resolve-work-item.ts +0 -219
  318. package/dist/standalone/lib/taskmark/snapshot-client.ts +0 -67
  319. package/dist/standalone/lib/taskmark/snapshot-types.ts +0 -37
  320. package/dist/standalone/lib/taskmark/static-mode.ts +0 -15
  321. package/dist/standalone/lib/taskmark/story-types.ts +0 -46
  322. package/dist/standalone/lib/taskmark/table-sort.ts +0 -344
  323. package/dist/standalone/lib/taskmark/timeframe-filters.ts +0 -258
  324. package/dist/standalone/lib/taskmark/timing.ts +0 -32
  325. package/dist/standalone/lib/taskmark/types.ts +0 -28
  326. package/dist/standalone/lib/taskmark/validate.ts +0 -72
  327. package/dist/standalone/lib/taskmark/workspace.ts +0 -53
  328. package/dist/standalone/lib/utils.ts +0 -6
  329. package/dist/standalone/next.config.ts +0 -19
  330. package/dist/standalone/node_modules/@img/colour/color.cjs +0 -1596
  331. package/dist/standalone/node_modules/@img/colour/index.cjs +0 -1
  332. package/dist/standalone/node_modules/@img/colour/package.json +0 -58
  333. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  334. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/package.json +0 -40
  335. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/README.md +0 -46
  336. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +0 -220
  337. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +0 -1
  338. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  339. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/package.json +0 -36
  340. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +0 -30
  341. package/dist/standalone/node_modules/@next/env/dist/index.js +0 -1
  342. package/dist/standalone/node_modules/@next/env/package.json +0 -35
  343. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +0 -6
  344. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +0 -38
  345. package/dist/standalone/node_modules/@swc/helpers/package.json +0 -471
  346. package/dist/standalone/node_modules/client-only/index.js +0 -0
  347. package/dist/standalone/node_modules/client-only/package.json +0 -19
  348. package/dist/standalone/node_modules/detect-libc/lib/detect-libc.js +0 -313
  349. package/dist/standalone/node_modules/detect-libc/lib/elf.js +0 -39
  350. package/dist/standalone/node_modules/detect-libc/lib/filesystem.js +0 -51
  351. package/dist/standalone/node_modules/detect-libc/lib/process.js +0 -24
  352. package/dist/standalone/node_modules/detect-libc/package.json +0 -44
  353. package/dist/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +0 -15
  354. package/dist/standalone/node_modules/next/dist/build/define-env.js +0 -255
  355. package/dist/standalone/node_modules/next/dist/build/duration-to-string.js +0 -99
  356. package/dist/standalone/node_modules/next/dist/build/get-supported-browsers.js +0 -38
  357. package/dist/standalone/node_modules/next/dist/build/next-config-ts/require-hook.js +0 -85
  358. package/dist/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +0 -251
  359. package/dist/standalone/node_modules/next/dist/build/output/format.js +0 -84
  360. package/dist/standalone/node_modules/next/dist/build/output/log.js +0 -135
  361. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +0 -162
  362. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +0 -137
  363. package/dist/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +0 -52
  364. package/dist/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +0 -137
  365. package/dist/standalone/node_modules/next/dist/build/static-paths/app.js +0 -736
  366. package/dist/standalone/node_modules/next/dist/build/static-paths/pages.js +0 -169
  367. package/dist/standalone/node_modules/next/dist/build/static-paths/utils.js +0 -119
  368. package/dist/standalone/node_modules/next/dist/build/swc/helpers.js +0 -15
  369. package/dist/standalone/node_modules/next/dist/build/swc/index.js +0 -1348
  370. package/dist/standalone/node_modules/next/dist/build/swc/install-bindings.js +0 -30
  371. package/dist/standalone/node_modules/next/dist/build/swc/jest-transformer.js +0 -76
  372. package/dist/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +0 -40
  373. package/dist/standalone/node_modules/next/dist/build/swc/options.js +0 -403
  374. package/dist/standalone/node_modules/next/dist/build/swc/types.js +0 -6
  375. package/dist/standalone/node_modules/next/dist/build/utils.js +0 -1216
  376. package/dist/standalone/node_modules/next/dist/cli/next-test.js +0 -170
  377. package/dist/standalone/node_modules/next/dist/client/add-base-path.js +0 -24
  378. package/dist/standalone/node_modules/next/dist/client/app-call-server.js +0 -34
  379. package/dist/standalone/node_modules/next/dist/client/app-find-source-map-url.js +0 -39
  380. package/dist/standalone/node_modules/next/dist/client/assign-location.js +0 -29
  381. package/dist/standalone/node_modules/next/dist/client/components/app-router-announcer.js +0 -78
  382. package/dist/standalone/node_modules/next/dist/client/components/app-router-headers.js +0 -138
  383. package/dist/standalone/node_modules/next/dist/client/components/app-router-instance.js +0 -397
  384. package/dist/standalone/node_modules/next/dist/client/components/app-router-utils.js +0 -62
  385. package/dist/standalone/node_modules/next/dist/client/components/app-router.js +0 -514
  386. package/dist/standalone/node_modules/next/dist/client/components/builtin/default.js +0 -35
  387. package/dist/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +0 -165
  388. package/dist/standalone/node_modules/next/dist/client/components/builtin/global-error.js +0 -100
  389. package/dist/standalone/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +0 -52
  390. package/dist/standalone/node_modules/next/dist/client/components/error-boundary.js +0 -144
  391. package/dist/standalone/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +0 -86
  392. package/dist/standalone/node_modules/next/dist/client/components/errors/root-error-boundary.js +0 -41
  393. package/dist/standalone/node_modules/next/dist/client/components/forbidden.js +0 -48
  394. package/dist/standalone/node_modules/next/dist/client/components/handle-isr-error.js +0 -30
  395. package/dist/standalone/node_modules/next/dist/client/components/hooks-server-context.js +0 -42
  396. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +0 -125
  397. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -72
  398. package/dist/standalone/node_modules/next/dist/client/components/is-next-router-error.js +0 -23
  399. package/dist/standalone/node_modules/next/dist/client/components/links.js +0 -299
  400. package/dist/standalone/node_modules/next/dist/client/components/match-segments.js +0 -32
  401. package/dist/standalone/node_modules/next/dist/client/components/nav-failure-handler.js +0 -61
  402. package/dist/standalone/node_modules/next/dist/client/components/navigation-devtools.js +0 -126
  403. package/dist/standalone/node_modules/next/dist/client/components/navigation-untracked.js +0 -67
  404. package/dist/standalone/node_modules/next/dist/client/components/navigation.js +0 -225
  405. package/dist/standalone/node_modules/next/dist/client/components/navigation.react-server.js +0 -75
  406. package/dist/standalone/node_modules/next/dist/client/components/not-found.js +0 -42
  407. package/dist/standalone/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -41
  408. package/dist/standalone/node_modules/next/dist/client/components/redirect-boundary.js +0 -107
  409. package/dist/standalone/node_modules/next/dist/client/components/redirect-error.js +0 -43
  410. package/dist/standalone/node_modules/next/dist/client/components/redirect-status-code.js +0 -24
  411. package/dist/standalone/node_modules/next/dist/client/components/redirect.js +0 -91
  412. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +0 -201
  413. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +0 -21
  414. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +0 -153
  415. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +0 -32
  416. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +0 -457
  417. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +0 -59
  418. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +0 -1341
  419. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +0 -49
  420. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +0 -63
  421. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +0 -38
  422. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +0 -23
  423. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +0 -56
  424. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +0 -83
  425. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +0 -62
  426. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +0 -320
  427. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +0 -58
  428. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -70
  429. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +0 -66
  430. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +0 -66
  431. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +0 -128
  432. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-key.js +0 -28
  433. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +0 -305
  434. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +0 -1933
  435. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +0 -152
  436. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +0 -194
  437. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +0 -597
  438. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +0 -543
  439. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/prefetch.js +0 -31
  440. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +0 -1249
  441. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/types.js +0 -69
  442. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +0 -278
  443. package/dist/standalone/node_modules/next/dist/client/components/static-generation-bailout.js +0 -42
  444. package/dist/standalone/node_modules/next/dist/client/components/unauthorized.js +0 -49
  445. package/dist/standalone/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -39
  446. package/dist/standalone/node_modules/next/dist/client/components/unresolved-thenable.js +0 -23
  447. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -28
  448. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.js +0 -25
  449. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -32
  450. package/dist/standalone/node_modules/next/dist/client/components/use-action-queue.js +0 -148
  451. package/dist/standalone/node_modules/next/dist/client/dev/debug-channel.js +0 -172
  452. package/dist/standalone/node_modules/next/dist/client/flight-data-helpers.js +0 -232
  453. package/dist/standalone/node_modules/next/dist/client/has-base-path.js +0 -23
  454. package/dist/standalone/node_modules/next/dist/client/lib/console.js +0 -177
  455. package/dist/standalone/node_modules/next/dist/client/lib/javascript-url.js +0 -32
  456. package/dist/standalone/node_modules/next/dist/client/navigation-build-id.js +0 -53
  457. package/dist/standalone/node_modules/next/dist/client/normalize-trailing-slash.js +0 -36
  458. package/dist/standalone/node_modules/next/dist/client/remove-base-path.js +0 -32
  459. package/dist/standalone/node_modules/next/dist/client/route-params.js +0 -247
  460. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -339
  461. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +0 -1
  462. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +0 -46
  463. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +0 -1
  464. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +0 -1
  465. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +0 -1
  466. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +0 -1
  467. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +0 -5
  468. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +0 -18713
  469. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +0 -1
  470. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +0 -44
  471. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +0 -1
  472. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +0 -1
  473. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/index.js +0 -1
  474. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/package.json +0 -1
  475. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +0 -1
  476. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +0 -1
  477. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/index.js +0 -1
  478. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/package.json +0 -1
  479. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/index.js +0 -1
  480. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/package.json +0 -1
  481. package/dist/standalone/node_modules/next/dist/compiled/async-retry/index.js +0 -1
  482. package/dist/standalone/node_modules/next/dist/compiled/async-retry/package.json +0 -1
  483. package/dist/standalone/node_modules/next/dist/compiled/async-sema/index.js +0 -1
  484. package/dist/standalone/node_modules/next/dist/compiled/async-sema/package.json +0 -1
  485. package/dist/standalone/node_modules/next/dist/compiled/busboy/index.js +0 -1
  486. package/dist/standalone/node_modules/next/dist/compiled/busboy/package.json +0 -1
  487. package/dist/standalone/node_modules/next/dist/compiled/bytes/index.js +0 -8
  488. package/dist/standalone/node_modules/next/dist/compiled/bytes/package.json +0 -1
  489. package/dist/standalone/node_modules/next/dist/compiled/ci-info/index.js +0 -1
  490. package/dist/standalone/node_modules/next/dist/compiled/ci-info/package.json +0 -1
  491. package/dist/standalone/node_modules/next/dist/compiled/commander/index.js +0 -1
  492. package/dist/standalone/node_modules/next/dist/compiled/commander/package.json +0 -1
  493. package/dist/standalone/node_modules/next/dist/compiled/comment-json/index.js +0 -7
  494. package/dist/standalone/node_modules/next/dist/compiled/comment-json/package.json +0 -1
  495. package/dist/standalone/node_modules/next/dist/compiled/compression/index.js +0 -58
  496. package/dist/standalone/node_modules/next/dist/compiled/compression/package.json +0 -1
  497. package/dist/standalone/node_modules/next/dist/compiled/conf/index.js +0 -15
  498. package/dist/standalone/node_modules/next/dist/compiled/conf/package.json +0 -1
  499. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/index.js +0 -6
  500. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/package.json +0 -1
  501. package/dist/standalone/node_modules/next/dist/compiled/cookie/index.js +0 -7
  502. package/dist/standalone/node_modules/next/dist/compiled/cookie/package.json +0 -1
  503. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/index.js +0 -1
  504. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/package.json +0 -1
  505. package/dist/standalone/node_modules/next/dist/compiled/debug/index.js +0 -1
  506. package/dist/standalone/node_modules/next/dist/compiled/debug/package.json +0 -1
  507. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/index.js +0 -1
  508. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/package.json +0 -1
  509. package/dist/standalone/node_modules/next/dist/compiled/find-up/index.js +0 -1
  510. package/dist/standalone/node_modules/next/dist/compiled/find-up/package.json +0 -1
  511. package/dist/standalone/node_modules/next/dist/compiled/fresh/index.js +0 -8
  512. package/dist/standalone/node_modules/next/dist/compiled/fresh/package.json +0 -1
  513. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/index.js +0 -34
  514. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/package.json +0 -1
  515. package/dist/standalone/node_modules/next/dist/compiled/image-detector/detector.js +0 -1
  516. package/dist/standalone/node_modules/next/dist/compiled/image-size/index.js +0 -1
  517. package/dist/standalone/node_modules/next/dist/compiled/image-size/package.json +0 -1
  518. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +0 -1
  519. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/package.json +0 -1
  520. package/dist/standalone/node_modules/next/dist/compiled/is-animated/index.js +0 -1
  521. package/dist/standalone/node_modules/next/dist/compiled/is-animated/package.json +0 -1
  522. package/dist/standalone/node_modules/next/dist/compiled/is-docker/index.js +0 -1
  523. package/dist/standalone/node_modules/next/dist/compiled/is-docker/package.json +0 -1
  524. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/index.js +0 -1
  525. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/package.json +0 -1
  526. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +0 -11
  527. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/package.json +0 -1
  528. package/dist/standalone/node_modules/next/dist/compiled/nanoid/index.cjs +0 -1
  529. package/dist/standalone/node_modules/next/dist/compiled/nanoid/package.json +0 -1
  530. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +0 -54
  531. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +0 -54
  532. package/dist/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +0 -20
  533. package/dist/standalone/node_modules/next/dist/compiled/p-limit/index.js +0 -1
  534. package/dist/standalone/node_modules/next/dist/compiled/p-limit/package.json +0 -1
  535. package/dist/standalone/node_modules/next/dist/compiled/p-queue/index.js +0 -1
  536. package/dist/standalone/node_modules/next/dist/compiled/p-queue/package.json +0 -1
  537. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/index.js +0 -1
  538. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/package.json +0 -1
  539. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -1
  540. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/package.json +0 -1
  541. package/dist/standalone/node_modules/next/dist/compiled/picomatch/index.js +0 -1
  542. package/dist/standalone/node_modules/next/dist/compiled/picomatch/package.json +0 -1
  543. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -133
  544. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +0 -130
  545. package/dist/standalone/node_modules/next/dist/compiled/react-is/index.js +0 -7
  546. package/dist/standalone/node_modules/next/dist/compiled/react-is/package.json +0 -26
  547. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/package.json +0 -19
  548. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +0 -729
  549. package/dist/standalone/node_modules/next/dist/compiled/semver/index.js +0 -1
  550. package/dist/standalone/node_modules/next/dist/compiled/semver/package.json +0 -1
  551. package/dist/standalone/node_modules/next/dist/compiled/send/index.js +0 -70
  552. package/dist/standalone/node_modules/next/dist/compiled/send/package.json +0 -1
  553. package/dist/standalone/node_modules/next/dist/compiled/source-map/package.json +0 -1
  554. package/dist/standalone/node_modules/next/dist/compiled/source-map/source-map.js +0 -1
  555. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/package.json +0 -1
  556. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +0 -1
  557. package/dist/standalone/node_modules/next/dist/compiled/string-hash/index.js +0 -1
  558. package/dist/standalone/node_modules/next/dist/compiled/string-hash/package.json +0 -1
  559. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/index.js +0 -1
  560. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/package.json +0 -1
  561. package/dist/standalone/node_modules/next/dist/compiled/superstruct/index.cjs +0 -1
  562. package/dist/standalone/node_modules/next/dist/compiled/superstruct/package.json +0 -1
  563. package/dist/standalone/node_modules/next/dist/compiled/tar/index.min.js +0 -1
  564. package/dist/standalone/node_modules/next/dist/compiled/tar/package.json +0 -1
  565. package/dist/standalone/node_modules/next/dist/compiled/text-table/index.js +0 -1
  566. package/dist/standalone/node_modules/next/dist/compiled/text-table/package.json +0 -1
  567. package/dist/standalone/node_modules/next/dist/compiled/watchpack/package.json +0 -1
  568. package/dist/standalone/node_modules/next/dist/compiled/watchpack/watchpack.js +0 -1
  569. package/dist/standalone/node_modules/next/dist/compiled/ws/index.js +0 -1
  570. package/dist/standalone/node_modules/next/dist/compiled/ws/package.json +0 -1
  571. package/dist/standalone/node_modules/next/dist/compiled/zod/index.cjs +0 -1
  572. package/dist/standalone/node_modules/next/dist/compiled/zod/package.json +0 -1
  573. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/index.js +0 -1
  574. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/package.json +0 -1
  575. package/dist/standalone/node_modules/next/dist/experimental/testmode/context.js +0 -57
  576. package/dist/standalone/node_modules/next/dist/experimental/testmode/fetch.js +0 -142
  577. package/dist/standalone/node_modules/next/dist/experimental/testmode/httpget.js +0 -26
  578. package/dist/standalone/node_modules/next/dist/experimental/testmode/server-edge.js +0 -32
  579. package/dist/standalone/node_modules/next/dist/experimental/testmode/server.js +0 -62
  580. package/dist/standalone/node_modules/next/dist/export/helpers/create-incremental-cache.js +0 -61
  581. package/dist/standalone/node_modules/next/dist/lib/batcher.js +0 -65
  582. package/dist/standalone/node_modules/next/dist/lib/build-custom-route.js +0 -46
  583. package/dist/standalone/node_modules/next/dist/lib/bundler.js +0 -97
  584. package/dist/standalone/node_modules/next/dist/lib/client-and-server-references.js +0 -54
  585. package/dist/standalone/node_modules/next/dist/lib/coalesced-function.js +0 -39
  586. package/dist/standalone/node_modules/next/dist/lib/compile-error.js +0 -14
  587. package/dist/standalone/node_modules/next/dist/lib/constants.js +0 -420
  588. package/dist/standalone/node_modules/next/dist/lib/create-client-router-filter.js +0 -67
  589. package/dist/standalone/node_modules/next/dist/lib/default-transpiled-packages.json +0 -1
  590. package/dist/standalone/node_modules/next/dist/lib/detached-promise.js +0 -32
  591. package/dist/standalone/node_modules/next/dist/lib/detect-typo.js +0 -51
  592. package/dist/standalone/node_modules/next/dist/lib/download-swc.js +0 -183
  593. package/dist/standalone/node_modules/next/dist/lib/error-telemetry-utils.js +0 -42
  594. package/dist/standalone/node_modules/next/dist/lib/fallback.js +0 -100
  595. package/dist/standalone/node_modules/next/dist/lib/fatal-error.js +0 -14
  596. package/dist/standalone/node_modules/next/dist/lib/file-exists.js +0 -53
  597. package/dist/standalone/node_modules/next/dist/lib/find-config.js +0 -102
  598. package/dist/standalone/node_modules/next/dist/lib/find-pages-dir.js +0 -65
  599. package/dist/standalone/node_modules/next/dist/lib/find-root.js +0 -126
  600. package/dist/standalone/node_modules/next/dist/lib/format-cli-help-output.js +0 -84
  601. package/dist/standalone/node_modules/next/dist/lib/format-dynamic-import-path.js +0 -24
  602. package/dist/standalone/node_modules/next/dist/lib/format-server-error.js +0 -75
  603. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-components.js +0 -62
  604. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-constants.js +0 -36
  605. package/dist/standalone/node_modules/next/dist/lib/fs/rename.js +0 -87
  606. package/dist/standalone/node_modules/next/dist/lib/fs/write-atomic.js +0 -28
  607. package/dist/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -52
  608. package/dist/standalone/node_modules/next/dist/lib/get-files-in-dir.js +0 -33
  609. package/dist/standalone/node_modules/next/dist/lib/get-network-host.js +0 -44
  610. package/dist/standalone/node_modules/next/dist/lib/get-package-version.js +0 -118
  611. package/dist/standalone/node_modules/next/dist/lib/get-project-dir.js +0 -51
  612. package/dist/standalone/node_modules/next/dist/lib/has-necessary-dependencies.js +0 -49
  613. package/dist/standalone/node_modules/next/dist/lib/helpers/get-cache-directory.js +0 -66
  614. package/dist/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +0 -29
  615. package/dist/standalone/node_modules/next/dist/lib/helpers/get-online.js +0 -50
  616. package/dist/standalone/node_modules/next/dist/lib/helpers/get-pkg-manager.js +0 -63
  617. package/dist/standalone/node_modules/next/dist/lib/helpers/get-registry.js +0 -45
  618. package/dist/standalone/node_modules/next/dist/lib/helpers/get-reserved-port.js +0 -116
  619. package/dist/standalone/node_modules/next/dist/lib/helpers/install.js +0 -83
  620. package/dist/standalone/node_modules/next/dist/lib/import-next-warning.js +0 -50
  621. package/dist/standalone/node_modules/next/dist/lib/inline-static-env.js +0 -112
  622. package/dist/standalone/node_modules/next/dist/lib/install-dependencies.js +0 -40
  623. package/dist/standalone/node_modules/next/dist/lib/interop-default.js +0 -16
  624. package/dist/standalone/node_modules/next/dist/lib/is-api-route.js +0 -15
  625. package/dist/standalone/node_modules/next/dist/lib/is-app-page-route.js +0 -15
  626. package/dist/standalone/node_modules/next/dist/lib/is-app-route-route.js +0 -15
  627. package/dist/standalone/node_modules/next/dist/lib/is-edge-runtime.js +0 -16
  628. package/dist/standalone/node_modules/next/dist/lib/is-error.js +0 -78
  629. package/dist/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +0 -18
  630. package/dist/standalone/node_modules/next/dist/lib/is-internal-component.js +0 -36
  631. package/dist/standalone/node_modules/next/dist/lib/is-serializable-props.js +0 -106
  632. package/dist/standalone/node_modules/next/dist/lib/known-edge-safe-packages.json +0 -1
  633. package/dist/standalone/node_modules/next/dist/lib/load-custom-routes.js +0 -594
  634. package/dist/standalone/node_modules/next/dist/lib/memory/gc-observer.js +0 -53
  635. package/dist/standalone/node_modules/next/dist/lib/memory/shutdown.js +0 -29
  636. package/dist/standalone/node_modules/next/dist/lib/memory/startup.js +0 -47
  637. package/dist/standalone/node_modules/next/dist/lib/memory/trace.js +0 -109
  638. package/dist/standalone/node_modules/next/dist/lib/metadata/constants.js +0 -40
  639. package/dist/standalone/node_modules/next/dist/lib/metadata/default-metadata.js +0 -82
  640. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/icon-mark.js +0 -22
  641. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/utils.js +0 -52
  642. package/dist/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +0 -123
  643. package/dist/standalone/node_modules/next/dist/lib/metadata/is-metadata-route.js +0 -221
  644. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata-context.js +0 -18
  645. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata.js +0 -1686
  646. package/dist/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +0 -884
  647. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +0 -232
  648. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +0 -56
  649. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +0 -199
  650. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +0 -40
  651. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +0 -135
  652. package/dist/standalone/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +0 -7
  653. package/dist/standalone/node_modules/next/dist/lib/metadata/types/extra-types.js +0 -9
  654. package/dist/standalone/node_modules/next/dist/lib/metadata/types/icons.js +0 -6
  655. package/dist/standalone/node_modules/next/dist/lib/metadata/types/manifest-types.js +0 -6
  656. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-interface.js +0 -18
  657. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-types.js +0 -10
  658. package/dist/standalone/node_modules/next/dist/lib/metadata/types/opengraph-types.js +0 -6
  659. package/dist/standalone/node_modules/next/dist/lib/metadata/types/resolvers.js +0 -6
  660. package/dist/standalone/node_modules/next/dist/lib/metadata/types/twitter-types.js +0 -7
  661. package/dist/standalone/node_modules/next/dist/lib/mime-type.js +0 -20
  662. package/dist/standalone/node_modules/next/dist/lib/mkcert.js +0 -204
  663. package/dist/standalone/node_modules/next/dist/lib/multi-file-writer.js +0 -75
  664. package/dist/standalone/node_modules/next/dist/lib/needs-experimental-react.js +0 -16
  665. package/dist/standalone/node_modules/next/dist/lib/non-nullable.js +0 -15
  666. package/dist/standalone/node_modules/next/dist/lib/normalize-path.js +0 -21
  667. package/dist/standalone/node_modules/next/dist/lib/oxford-comma-list.js +0 -15
  668. package/dist/standalone/node_modules/next/dist/lib/page-types.js +0 -18
  669. package/dist/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +0 -185
  670. package/dist/standalone/node_modules/next/dist/lib/pick.js +0 -19
  671. package/dist/standalone/node_modules/next/dist/lib/picocolors.js +0 -177
  672. package/dist/standalone/node_modules/next/dist/lib/pretty-bytes.js +0 -74
  673. package/dist/standalone/node_modules/next/dist/lib/realpath.js +0 -20
  674. package/dist/standalone/node_modules/next/dist/lib/recursive-copy.js +0 -76
  675. package/dist/standalone/node_modules/next/dist/lib/recursive-delete.js +0 -137
  676. package/dist/standalone/node_modules/next/dist/lib/recursive-readdir.js +0 -124
  677. package/dist/standalone/node_modules/next/dist/lib/redirect-status.js +0 -46
  678. package/dist/standalone/node_modules/next/dist/lib/require-instrumentation-client.js +0 -26
  679. package/dist/standalone/node_modules/next/dist/lib/resolve-build-paths.js +0 -154
  680. package/dist/standalone/node_modules/next/dist/lib/resolve-from.js +0 -65
  681. package/dist/standalone/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -107
  682. package/dist/standalone/node_modules/next/dist/lib/scheduler.js +0 -64
  683. package/dist/standalone/node_modules/next/dist/lib/semver-noop.js +0 -18
  684. package/dist/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +0 -103
  685. package/dist/standalone/node_modules/next/dist/lib/setup-exception-listeners.js +0 -11
  686. package/dist/standalone/node_modules/next/dist/lib/static-env.js +0 -92
  687. package/dist/standalone/node_modules/next/dist/lib/try-to-parse-path.js +0 -67
  688. package/dist/standalone/node_modules/next/dist/lib/turbopack-warning.js +0 -185
  689. package/dist/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +0 -243
  690. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +0 -153
  691. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +0 -52
  692. package/dist/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +0 -27
  693. package/dist/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +0 -149
  694. package/dist/standalone/node_modules/next/dist/lib/typescript/type-paths.js +0 -51
  695. package/dist/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +0 -75
  696. package/dist/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +0 -395
  697. package/dist/standalone/node_modules/next/dist/lib/url.js +0 -75
  698. package/dist/standalone/node_modules/next/dist/lib/verify-partytown-setup.js +0 -115
  699. package/dist/standalone/node_modules/next/dist/lib/verify-root-layout.js +0 -165
  700. package/dist/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +0 -228
  701. package/dist/standalone/node_modules/next/dist/lib/wait.js +0 -19
  702. package/dist/standalone/node_modules/next/dist/lib/with-promise-cache.js +0 -24
  703. package/dist/standalone/node_modules/next/dist/lib/worker.js +0 -234
  704. package/dist/standalone/node_modules/next/dist/server/ReactDOMServerPages.js +0 -16
  705. package/dist/standalone/node_modules/next/dist/server/accept-header.js +0 -132
  706. package/dist/standalone/node_modules/next/dist/server/after/after-context.js +0 -140
  707. package/dist/standalone/node_modules/next/dist/server/after/after.js +0 -26
  708. package/dist/standalone/node_modules/next/dist/server/after/awaiter.js +0 -74
  709. package/dist/standalone/node_modules/next/dist/server/after/builtin-request-context.js +0 -38
  710. package/dist/standalone/node_modules/next/dist/server/after/index.js +0 -21
  711. package/dist/standalone/node_modules/next/dist/server/after/run-with-after.js +0 -35
  712. package/dist/standalone/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -22
  713. package/dist/standalone/node_modules/next/dist/server/api-utils/index.js +0 -201
  714. package/dist/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +0 -395
  715. package/dist/standalone/node_modules/next/dist/server/api-utils/node/parse-body.js +0 -79
  716. package/dist/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +0 -86
  717. package/dist/standalone/node_modules/next/dist/server/api-utils/web.js +0 -17
  718. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -14
  719. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -13
  720. package/dist/standalone/node_modules/next/dist/server/app-render/action-handler.js +0 -1027
  721. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +0 -14
  722. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +0 -13
  723. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -167
  724. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +0 -76
  725. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +0 -188
  726. package/dist/standalone/node_modules/next/dist/server/app-render/app-render.js +0 -4522
  727. package/dist/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +0 -76
  728. package/dist/standalone/node_modules/next/dist/server/app-render/cache-signal.js +0 -181
  729. package/dist/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +0 -616
  730. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage-instance.js +0 -14
  731. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage.external.js +0 -13
  732. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +0 -33
  733. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +0 -870
  734. package/dist/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +0 -189
  735. package/dist/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +0 -102
  736. package/dist/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +0 -86
  737. package/dist/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +0 -30
  738. package/dist/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +0 -71
  739. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +0 -14
  740. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +0 -13
  741. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -1144
  742. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils-server.js +0 -114
  743. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +0 -93
  744. package/dist/standalone/node_modules/next/dist/server/app-render/encryption.js +0 -259
  745. package/dist/standalone/node_modules/next/dist/server/app-render/entry-base.js +0 -256
  746. package/dist/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +0 -28
  747. package/dist/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +0 -29
  748. package/dist/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +0 -49
  749. package/dist/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +0 -65
  750. package/dist/standalone/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +0 -39
  751. package/dist/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +0 -32
  752. package/dist/standalone/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +0 -25
  753. package/dist/standalone/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +0 -19
  754. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +0 -13
  755. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-impl.js +0 -103
  756. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +0 -18
  757. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +0 -181
  758. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +0 -128
  759. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +0 -432
  760. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +0 -33
  761. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation.js +0 -713
  762. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +0 -96
  763. package/dist/standalone/node_modules/next/dist/server/app-render/interop-default.js +0 -17
  764. package/dist/standalone/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +0 -92
  765. package/dist/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +0 -264
  766. package/dist/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +0 -29
  767. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +0 -57
  768. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +0 -32
  769. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +0 -66
  770. package/dist/standalone/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +0 -49
  771. package/dist/standalone/node_modules/next/dist/server/app-render/postponed-state.js +0 -157
  772. package/dist/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +0 -74
  773. package/dist/standalone/node_modules/next/dist/server/app-render/react-large-shell-error.js +0 -17
  774. package/dist/standalone/node_modules/next/dist/server/app-render/react-server.node.js +0 -39
  775. package/dist/standalone/node_modules/next/dist/server/app-render/render-css-resource.js +0 -52
  776. package/dist/standalone/node_modules/next/dist/server/app-render/required-scripts.js +0 -76
  777. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/postpone.js +0 -18
  778. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/preloads.js +0 -74
  779. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/taint.js +0 -79
  780. package/dist/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +0 -128
  781. package/dist/standalone/node_modules/next/dist/server/app-render/server-inserted-html.js +0 -77
  782. package/dist/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +0 -343
  783. package/dist/standalone/node_modules/next/dist/server/app-render/stale-time.js +0 -111
  784. package/dist/standalone/node_modules/next/dist/server/app-render/stream-ops.js +0 -106
  785. package/dist/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +0 -163
  786. package/dist/standalone/node_modules/next/dist/server/app-render/strip-flight-headers.js +0 -18
  787. package/dist/standalone/node_modules/next/dist/server/app-render/types.js +0 -65
  788. package/dist/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +0 -214
  789. package/dist/standalone/node_modules/next/dist/server/app-render/vary-params.js +0 -336
  790. package/dist/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +0 -232
  791. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -14
  792. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -13
  793. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -14
  794. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -280
  795. package/dist/standalone/node_modules/next/dist/server/async-storage/draft-mode-provider.js +0 -62
  796. package/dist/standalone/node_modules/next/dist/server/async-storage/request-store.js +0 -144
  797. package/dist/standalone/node_modules/next/dist/server/async-storage/with-store.js +0 -6
  798. package/dist/standalone/node_modules/next/dist/server/async-storage/work-store.js +0 -92
  799. package/dist/standalone/node_modules/next/dist/server/base-http/helpers.js +0 -36
  800. package/dist/standalone/node_modules/next/dist/server/base-http/index.js +0 -54
  801. package/dist/standalone/node_modules/next/dist/server/base-http/node.js +0 -147
  802. package/dist/standalone/node_modules/next/dist/server/base-http/web.js +0 -124
  803. package/dist/standalone/node_modules/next/dist/server/base-server.js +0 -1882
  804. package/dist/standalone/node_modules/next/dist/server/body-streams.js +0 -114
  805. package/dist/standalone/node_modules/next/dist/server/cache-dir.js +0 -26
  806. package/dist/standalone/node_modules/next/dist/server/capsize-font-metrics.json +0 -181516
  807. package/dist/standalone/node_modules/next/dist/server/ci-info.js +0 -41
  808. package/dist/standalone/node_modules/next/dist/server/client-component-renderer-logger.js +0 -70
  809. package/dist/standalone/node_modules/next/dist/server/config-schema.js +0 -727
  810. package/dist/standalone/node_modules/next/dist/server/config-shared.js +0 -369
  811. package/dist/standalone/node_modules/next/dist/server/config-utils.js +0 -185
  812. package/dist/standalone/node_modules/next/dist/server/config.js +0 -1545
  813. package/dist/standalone/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +0 -96
  814. package/dist/standalone/node_modules/next/dist/server/crypto-utils.js +0 -70
  815. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +0 -186
  816. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +0 -558
  817. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +0 -222
  818. package/dist/standalone/node_modules/next/dist/server/dev/debug-channel.js +0 -87
  819. package/dist/standalone/node_modules/next/dist/server/dev/dev-indicator-server-state.js +0 -15
  820. package/dist/standalone/node_modules/next/dist/server/dev/get-source-map-from-file.js +0 -100
  821. package/dist/standalone/node_modules/next/dist/server/dev/hot-middleware.js +0 -274
  822. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +0 -171
  823. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +0 -56
  824. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +0 -1480
  825. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +0 -58
  826. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +0 -1386
  827. package/dist/standalone/node_modules/next/dist/server/dev/log-requests.js +0 -149
  828. package/dist/standalone/node_modules/next/dist/server/dev/messages.js +0 -74
  829. package/dist/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +0 -403
  830. package/dist/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +0 -483
  831. package/dist/standalone/node_modules/next/dist/server/dev/node-stack-frames.js +0 -72
  832. package/dist/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +0 -773
  833. package/dist/standalone/node_modules/next/dist/server/dev/parse-version-info.js +0 -108
  834. package/dist/standalone/node_modules/next/dist/server/dev/require-cache.js +0 -79
  835. package/dist/standalone/node_modules/next/dist/server/dev/serialized-errors.js +0 -67
  836. package/dist/standalone/node_modules/next/dist/server/dev/server-action-logger.js +0 -37
  837. package/dist/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +0 -105
  838. package/dist/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +0 -687
  839. package/dist/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -108
  840. package/dist/standalone/node_modules/next/dist/server/font-utils.js +0 -43
  841. package/dist/standalone/node_modules/next/dist/server/get-app-route-from-entrypoint.js +0 -30
  842. package/dist/standalone/node_modules/next/dist/server/get-page-files.js +0 -23
  843. package/dist/standalone/node_modules/next/dist/server/get-route-from-entrypoint.js +0 -35
  844. package/dist/standalone/node_modules/next/dist/server/image-optimizer.js +0 -1240
  845. package/dist/standalone/node_modules/next/dist/server/instrumentation/types.js +0 -6
  846. package/dist/standalone/node_modules/next/dist/server/instrumentation/utils.js +0 -21
  847. package/dist/standalone/node_modules/next/dist/server/internal-utils.js +0 -39
  848. package/dist/standalone/node_modules/next/dist/server/is-private-ip.js +0 -36
  849. package/dist/standalone/node_modules/next/dist/server/lib/app-dir-module.js +0 -59
  850. package/dist/standalone/node_modules/next/dist/server/lib/app-info-log.js +0 -132
  851. package/dist/standalone/node_modules/next/dist/server/lib/async-callback-set.js +0 -29
  852. package/dist/standalone/node_modules/next/dist/server/lib/cache-control.js +0 -22
  853. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.external.js +0 -18
  854. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.js +0 -160
  855. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/types.js +0 -8
  856. package/dist/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +0 -116
  857. package/dist/standalone/node_modules/next/dist/server/lib/clone-response.js +0 -77
  858. package/dist/standalone/node_modules/next/dist/server/lib/cpu-profile.js +0 -59
  859. package/dist/standalone/node_modules/next/dist/server/lib/decode-query-path-parameter.js +0 -26
  860. package/dist/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +0 -163
  861. package/dist/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +0 -95
  862. package/dist/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +0 -57
  863. package/dist/standalone/node_modules/next/dist/server/lib/encode-cache-tag.js +0 -45
  864. package/dist/standalone/node_modules/next/dist/server/lib/etag.js +0 -56
  865. package/dist/standalone/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +0 -48
  866. package/dist/standalone/node_modules/next/dist/server/lib/experimental/ppr.js +0 -47
  867. package/dist/standalone/node_modules/next/dist/server/lib/find-page-file.js +0 -147
  868. package/dist/standalone/node_modules/next/dist/server/lib/fix-mojibake.js +0 -25
  869. package/dist/standalone/node_modules/next/dist/server/lib/format-hostname.js +0 -16
  870. package/dist/standalone/node_modules/next/dist/server/lib/i18n-provider.js +0 -129
  871. package/dist/standalone/node_modules/next/dist/server/lib/implicit-tags.js +0 -80
  872. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +0 -335
  873. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +0 -501
  874. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +0 -57
  875. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +0 -73
  876. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +0 -55
  877. package/dist/standalone/node_modules/next/dist/server/lib/install-code-frame.js +0 -22
  878. package/dist/standalone/node_modules/next/dist/server/lib/is-ipv6.js +0 -41
  879. package/dist/standalone/node_modules/next/dist/server/lib/is-rsc-request.js +0 -18
  880. package/dist/standalone/node_modules/next/dist/server/lib/lazy-result.js +0 -46
  881. package/dist/standalone/node_modules/next/dist/server/lib/lru-cache.js +0 -191
  882. package/dist/standalone/node_modules/next/dist/server/lib/match-next-data-pathname.js +0 -18
  883. package/dist/standalone/node_modules/next/dist/server/lib/mock-request.js +0 -441
  884. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/module-loader.js +0 -8
  885. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +0 -25
  886. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +0 -26
  887. package/dist/standalone/node_modules/next/dist/server/lib/node-fs-methods.js +0 -28
  888. package/dist/standalone/node_modules/next/dist/server/lib/parse-stack.js +0 -46
  889. package/dist/standalone/node_modules/next/dist/server/lib/patch-fetch.js +0 -982
  890. package/dist/standalone/node_modules/next/dist/server/lib/patch-set-header.js +0 -45
  891. package/dist/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +0 -64
  892. package/dist/standalone/node_modules/next/dist/server/lib/render-server.js +0 -155
  893. package/dist/standalone/node_modules/next/dist/server/lib/router-server.js +0 -699
  894. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +0 -110
  895. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-data-route.js +0 -48
  896. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -50
  897. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +0 -211
  898. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +0 -42
  899. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +0 -591
  900. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +0 -89
  901. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +0 -96
  902. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -16
  903. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +0 -118
  904. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +0 -643
  905. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +0 -286
  906. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/router-server-context.js +0 -26
  907. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +0 -858
  908. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/types.js +0 -6
  909. package/dist/standalone/node_modules/next/dist/server/lib/server-action-request-meta.js +0 -53
  910. package/dist/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +0 -83
  911. package/dist/standalone/node_modules/next/dist/server/lib/source-maps.js +0 -196
  912. package/dist/standalone/node_modules/next/dist/server/lib/streaming-metadata.js +0 -38
  913. package/dist/standalone/node_modules/next/dist/server/lib/to-route.js +0 -37
  914. package/dist/standalone/node_modules/next/dist/server/lib/trace/constants.js +0 -203
  915. package/dist/standalone/node_modules/next/dist/server/lib/trace/tracer.js +0 -280
  916. package/dist/standalone/node_modules/next/dist/server/lib/trace/utils.js +0 -16
  917. package/dist/standalone/node_modules/next/dist/server/lib/types.js +0 -6
  918. package/dist/standalone/node_modules/next/dist/server/lib/utils.js +0 -278
  919. package/dist/standalone/node_modules/next/dist/server/lib/worker-utils.js +0 -36
  920. package/dist/standalone/node_modules/next/dist/server/load-components.js +0 -179
  921. package/dist/standalone/node_modules/next/dist/server/load-default-error-components.js +0 -41
  922. package/dist/standalone/node_modules/next/dist/server/load-manifest.external.js +0 -117
  923. package/dist/standalone/node_modules/next/dist/server/match-bundle.js +0 -25
  924. package/dist/standalone/node_modules/next/dist/server/mcp/get-mcp-middleware.js +0 -49
  925. package/dist/standalone/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +0 -41
  926. package/dist/standalone/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +0 -82
  927. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +0 -114
  928. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +0 -67
  929. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +0 -188
  930. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +0 -59
  931. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +0 -136
  932. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +0 -121
  933. package/dist/standalone/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +0 -31
  934. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +0 -90
  935. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +0 -137
  936. package/dist/standalone/node_modules/next/dist/server/next-typescript.js +0 -13
  937. package/dist/standalone/node_modules/next/dist/server/node-environment-baseline.js +0 -25
  938. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +0 -301
  939. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-exit.js +0 -49
  940. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-file.js +0 -56
  941. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +0 -52
  942. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +0 -8
  943. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +0 -577
  944. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +0 -33
  945. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/io-utils.js +0 -195
  946. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +0 -103
  947. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +0 -91
  948. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +0 -28
  949. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +0 -508
  950. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +0 -45
  951. package/dist/standalone/node_modules/next/dist/server/node-environment.js +0 -19
  952. package/dist/standalone/node_modules/next/dist/server/node-polyfill-crypto.js +0 -21
  953. package/dist/standalone/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +0 -33
  954. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +0 -54
  955. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +0 -22
  956. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +0 -40
  957. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +0 -55
  958. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/index.js +0 -42
  959. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/index.js +0 -44
  960. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +0 -55
  961. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +0 -22
  962. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +0 -19
  963. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +0 -19
  964. package/dist/standalone/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +0 -26
  965. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizer.js +0 -6
  966. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizers.js +0 -23
  967. package/dist/standalone/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +0 -26
  968. package/dist/standalone/node_modules/next/dist/server/normalizers/request/base-path.js +0 -25
  969. package/dist/standalone/node_modules/next/dist/server/normalizers/request/next-data.js +0 -38
  970. package/dist/standalone/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +0 -6
  971. package/dist/standalone/node_modules/next/dist/server/normalizers/request/prefix.js +0 -39
  972. package/dist/standalone/node_modules/next/dist/server/normalizers/request/rsc.js +0 -19
  973. package/dist/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +0 -33
  974. package/dist/standalone/node_modules/next/dist/server/normalizers/request/suffix.js +0 -27
  975. package/dist/standalone/node_modules/next/dist/server/normalizers/underscore-normalizer.js +0 -17
  976. package/dist/standalone/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +0 -17
  977. package/dist/standalone/node_modules/next/dist/server/og/image-response.js +0 -53
  978. package/dist/standalone/node_modules/next/dist/server/patch-error-inspect.js +0 -453
  979. package/dist/standalone/node_modules/next/dist/server/pipe-readable.js +0 -140
  980. package/dist/standalone/node_modules/next/dist/server/post-process.js +0 -39
  981. package/dist/standalone/node_modules/next/dist/server/render-result.js +0 -204
  982. package/dist/standalone/node_modules/next/dist/server/render.js +0 -1148
  983. package/dist/standalone/node_modules/next/dist/server/request/connection.js +0 -133
  984. package/dist/standalone/node_modules/next/dist/server/request/cookies.js +0 -235
  985. package/dist/standalone/node_modules/next/dist/server/request/draft-mode.js +0 -230
  986. package/dist/standalone/node_modules/next/dist/server/request/fallback-params.js +0 -95
  987. package/dist/standalone/node_modules/next/dist/server/request/headers.js +0 -229
  988. package/dist/standalone/node_modules/next/dist/server/request/params.js +0 -527
  989. package/dist/standalone/node_modules/next/dist/server/request/pathname.js +0 -119
  990. package/dist/standalone/node_modules/next/dist/server/request/root-params.js +0 -194
  991. package/dist/standalone/node_modules/next/dist/server/request/search-params.js +0 -526
  992. package/dist/standalone/node_modules/next/dist/server/request/utils.js +0 -51
  993. package/dist/standalone/node_modules/next/dist/server/request-meta.js +0 -55
  994. package/dist/standalone/node_modules/next/dist/server/require.js +0 -109
  995. package/dist/standalone/node_modules/next/dist/server/response-cache/index.js +0 -311
  996. package/dist/standalone/node_modules/next/dist/server/response-cache/types.js +0 -41
  997. package/dist/standalone/node_modules/next/dist/server/response-cache/utils.js +0 -104
  998. package/dist/standalone/node_modules/next/dist/server/response-cache/web.js +0 -101
  999. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +0 -96
  1000. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +0 -124
  1001. package/dist/standalone/node_modules/next/dist/server/revalidation-utils.js +0 -157
  1002. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +0 -16
  1003. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +0 -6
  1004. package/dist/standalone/node_modules/next/dist/server/route-definitions/locale-route-definition.js +0 -6
  1005. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +0 -6
  1006. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-route-definition.js +0 -6
  1007. package/dist/standalone/node_modules/next/dist/server/route-definitions/route-definition.js +0 -6
  1008. package/dist/standalone/node_modules/next/dist/server/route-kind.js +0 -32
  1009. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +0 -239
  1010. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +0 -120
  1011. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +0 -6
  1012. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +0 -55
  1013. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +0 -43
  1014. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +0 -91
  1015. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +0 -112
  1016. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +0 -77
  1017. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +0 -77
  1018. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +0 -28
  1019. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +0 -106
  1020. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +0 -42
  1021. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +0 -6
  1022. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +0 -30
  1023. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +0 -6
  1024. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +0 -34
  1025. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +0 -20
  1026. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +0 -21
  1027. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +0 -55
  1028. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +0 -64
  1029. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +0 -6
  1030. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +0 -18
  1031. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +0 -15
  1032. package/dist/standalone/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +0 -68
  1033. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +0 -30
  1034. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +0 -30
  1035. package/dist/standalone/node_modules/next/dist/server/route-matchers/route-matcher.js +0 -54
  1036. package/dist/standalone/node_modules/next/dist/server/route-matches/app-page-route-match.js +0 -6
  1037. package/dist/standalone/node_modules/next/dist/server/route-matches/app-route-route-match.js +0 -6
  1038. package/dist/standalone/node_modules/next/dist/server/route-matches/locale-route-match.js +0 -6
  1039. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-api-route-match.js +0 -16
  1040. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-route-match.js +0 -6
  1041. package/dist/standalone/node_modules/next/dist/server/route-matches/route-match.js +0 -6
  1042. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +0 -51
  1043. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +0 -162
  1044. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.render.js +0 -24
  1045. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +0 -25
  1046. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +0 -4
  1047. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +0 -87
  1048. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +0 -4
  1049. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +0 -4
  1050. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +0 -4
  1051. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +0 -4
  1052. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +0 -4
  1053. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +0 -140
  1054. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +0 -4
  1055. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +0 -4
  1056. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +0 -4
  1057. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +0 -4
  1058. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +0 -4
  1059. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +0 -4
  1060. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +0 -4
  1061. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +0 -4
  1062. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +0 -4
  1063. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +0 -125
  1064. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +0 -4
  1065. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +0 -4
  1066. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +0 -4
  1067. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +0 -4
  1068. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +0 -4
  1069. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +0 -4
  1070. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +0 -4
  1071. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +0 -4
  1072. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +0 -85
  1073. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +0 -24
  1074. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +0 -29
  1075. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +0 -15
  1076. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +0 -20
  1077. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +0 -36
  1078. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +0 -915
  1079. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +0 -56
  1080. package/dist/standalone/node_modules/next/dist/server/route-modules/checks.js +0 -45
  1081. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +0 -100
  1082. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.js +0 -92
  1083. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.render.js +0 -24
  1084. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +0 -545
  1085. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +0 -4
  1086. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +0 -102
  1087. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +0 -4
  1088. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +0 -4
  1089. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +0 -4
  1090. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +0 -4
  1091. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +0 -4
  1092. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +0 -4
  1093. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +0 -4
  1094. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +0 -4
  1095. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +0 -20
  1096. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.js +0 -58
  1097. package/dist/standalone/node_modules/next/dist/server/route-modules/route-module.js +0 -660
  1098. package/dist/standalone/node_modules/next/dist/server/runtime-reacts.external.js +0 -46
  1099. package/dist/standalone/node_modules/next/dist/server/send-payload.js +0 -88
  1100. package/dist/standalone/node_modules/next/dist/server/send-response.js +0 -70
  1101. package/dist/standalone/node_modules/next/dist/server/serve-static.js +0 -66
  1102. package/dist/standalone/node_modules/next/dist/server/server-route-utils.js +0 -30
  1103. package/dist/standalone/node_modules/next/dist/server/server-utils.js +0 -340
  1104. package/dist/standalone/node_modules/next/dist/server/setup-http-agent-env.js +0 -31
  1105. package/dist/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +0 -122
  1106. package/dist/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +0 -918
  1107. package/dist/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +0 -74
  1108. package/dist/standalone/node_modules/next/dist/server/typescript/constant.js +0 -98
  1109. package/dist/standalone/node_modules/next/dist/server/typescript/index.js +0 -199
  1110. package/dist/standalone/node_modules/next/dist/server/typescript/rules/client-boundary.js +0 -97
  1111. package/dist/standalone/node_modules/next/dist/server/typescript/rules/config.js +0 -512
  1112. package/dist/standalone/node_modules/next/dist/server/typescript/rules/entry.js +0 -149
  1113. package/dist/standalone/node_modules/next/dist/server/typescript/rules/error.js +0 -38
  1114. package/dist/standalone/node_modules/next/dist/server/typescript/rules/metadata.js +0 -234
  1115. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server-boundary.js +0 -115
  1116. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server.js +0 -79
  1117. package/dist/standalone/node_modules/next/dist/server/typescript/utils.js +0 -212
  1118. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-life.js +0 -163
  1119. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-tag.js +0 -52
  1120. package/dist/standalone/node_modules/next/dist/server/use-cache/constants.js +0 -28
  1121. package/dist/standalone/node_modules/next/dist/server/use-cache/handlers.js +0 -121
  1122. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-errors.js +0 -36
  1123. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +0 -1588
  1124. package/dist/standalone/node_modules/next/dist/server/utils.js +0 -73
  1125. package/dist/standalone/node_modules/next/dist/server/web/adapter.js +0 -395
  1126. package/dist/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +0 -124
  1127. package/dist/standalone/node_modules/next/dist/server/web/error.js +0 -54
  1128. package/dist/standalone/node_modules/next/dist/server/web/exports/index.js +0 -56
  1129. package/dist/standalone/node_modules/next/dist/server/web/get-edge-preview-props.js +0 -23
  1130. package/dist/standalone/node_modules/next/dist/server/web/globals.js +0 -128
  1131. package/dist/standalone/node_modules/next/dist/server/web/http.js +0 -39
  1132. package/dist/standalone/node_modules/next/dist/server/web/internal-edge-wait-until.js +0 -64
  1133. package/dist/standalone/node_modules/next/dist/server/web/next-url.js +0 -199
  1134. package/dist/standalone/node_modules/next/dist/server/web/sandbox/context.js +0 -462
  1135. package/dist/standalone/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +0 -35
  1136. package/dist/standalone/node_modules/next/dist/server/web/sandbox/index.js +0 -28
  1137. package/dist/standalone/node_modules/next/dist/server/web/sandbox/resource-managers.js +0 -88
  1138. package/dist/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +0 -137
  1139. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -192
  1140. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +0 -142
  1141. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -30
  1142. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -211
  1143. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -29
  1144. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/fetch-event.js +0 -98
  1145. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/image-response.js +0 -22
  1146. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/request.js +0 -99
  1147. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/response.js +0 -136
  1148. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +0 -215
  1149. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +0 -293
  1150. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +0 -51
  1151. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/url-pattern.js +0 -14
  1152. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/user-agent.js +0 -46
  1153. package/dist/standalone/node_modules/next/dist/server/web/types.js +0 -6
  1154. package/dist/standalone/node_modules/next/dist/server/web/utils.js +0 -151
  1155. package/dist/standalone/node_modules/next/dist/server/web/web-on-close.js +0 -87
  1156. package/dist/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +0 -31
  1157. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -50
  1158. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-types.js +0 -46
  1159. package/dist/standalone/node_modules/next/dist/shared/lib/constants.js +0 -448
  1160. package/dist/standalone/node_modules/next/dist/shared/lib/deep-freeze.js +0 -30
  1161. package/dist/standalone/node_modules/next/dist/shared/lib/deployment-id.js +0 -63
  1162. package/dist/standalone/node_modules/next/dist/shared/lib/dset.js +0 -34
  1163. package/dist/standalone/node_modules/next/dist/shared/lib/encode-uri-path.js +0 -15
  1164. package/dist/standalone/node_modules/next/dist/shared/lib/entry-constants.js +0 -36
  1165. package/dist/standalone/node_modules/next/dist/shared/lib/error-source.js +0 -36
  1166. package/dist/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +0 -39
  1167. package/dist/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +0 -20
  1168. package/dist/standalone/node_modules/next/dist/shared/lib/errors/constants.js +0 -19
  1169. package/dist/standalone/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +0 -24
  1170. package/dist/standalone/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +0 -20
  1171. package/dist/standalone/node_modules/next/dist/shared/lib/escape-regexp.js +0 -22
  1172. package/dist/standalone/node_modules/next/dist/shared/lib/get-hostname.js +0 -23
  1173. package/dist/standalone/node_modules/next/dist/shared/lib/hash.js +0 -42
  1174. package/dist/standalone/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -18
  1175. package/dist/standalone/node_modules/next/dist/shared/lib/head.js +0 -163
  1176. package/dist/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -60
  1177. package/dist/standalone/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +0 -40
  1178. package/dist/standalone/node_modules/next/dist/shared/lib/htmlescape.js +0 -52
  1179. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -25
  1180. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +0 -59
  1181. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -54
  1182. package/dist/standalone/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -22
  1183. package/dist/standalone/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -19
  1184. package/dist/standalone/node_modules/next/dist/shared/lib/image-config.js +0 -77
  1185. package/dist/standalone/node_modules/next/dist/shared/lib/invariant-error.js +0 -18
  1186. package/dist/standalone/node_modules/next/dist/shared/lib/is-plain-object.js +0 -42
  1187. package/dist/standalone/node_modules/next/dist/shared/lib/is-thenable.js +0 -20
  1188. package/dist/standalone/node_modules/next/dist/shared/lib/isomorphic/path.js +0 -14
  1189. package/dist/standalone/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -37
  1190. package/dist/standalone/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +0 -19
  1191. package/dist/standalone/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +0 -246
  1192. package/dist/standalone/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -46
  1193. package/dist/standalone/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -63
  1194. package/dist/standalone/node_modules/next/dist/shared/lib/modern-browserslist-target.js +0 -15
  1195. package/dist/standalone/node_modules/next/dist/shared/lib/no-fallback-error.external.js +0 -18
  1196. package/dist/standalone/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +0 -28
  1197. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +0 -26
  1198. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -18
  1199. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -18
  1200. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +0 -40
  1201. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +0 -23
  1202. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +0 -26
  1203. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -19
  1204. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +0 -20
  1205. package/dist/standalone/node_modules/next/dist/shared/lib/promise-with-resolvers.js +0 -26
  1206. package/dist/standalone/node_modules/next/dist/shared/lib/router/adapters.js +0 -136
  1207. package/dist/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +0 -134
  1208. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -28
  1209. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -20
  1210. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -20
  1211. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -62
  1212. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +0 -17
  1213. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +0 -70
  1214. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +0 -16
  1215. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -27
  1216. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -111
  1217. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -174
  1218. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -52
  1219. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +0 -25
  1220. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -90
  1221. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/html-bots.js +0 -17
  1222. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/index.js +0 -30
  1223. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -33
  1224. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -108
  1225. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -57
  1226. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -26
  1227. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +0 -31
  1228. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -30
  1229. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -33
  1230. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
  1231. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -38
  1232. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -20
  1233. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -49
  1234. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -292
  1235. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -79
  1236. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +0 -40
  1237. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -39
  1238. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -21
  1239. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -116
  1240. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -113
  1241. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -45
  1242. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -256
  1243. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -244
  1244. package/dist/standalone/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -18
  1245. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +0 -99
  1246. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +0 -32
  1247. package/dist/standalone/node_modules/next/dist/shared/lib/segment.js +0 -102
  1248. package/dist/standalone/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -35
  1249. package/dist/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +0 -56
  1250. package/dist/standalone/node_modules/next/dist/shared/lib/side-effect.js +0 -63
  1251. package/dist/standalone/node_modules/next/dist/shared/lib/size-limit.js +0 -40
  1252. package/dist/standalone/node_modules/next/dist/shared/lib/turbopack/internal-error.js +0 -53
  1253. package/dist/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +0 -69
  1254. package/dist/standalone/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -22
  1255. package/dist/standalone/node_modules/next/dist/shared/lib/utils.js +0 -207
  1256. package/dist/standalone/node_modules/next/dist/shared/lib/zod.js +0 -101
  1257. package/dist/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +0 -89
  1258. package/dist/standalone/node_modules/next/dist/telemetry/detached-flush.js +0 -56
  1259. package/dist/standalone/node_modules/next/dist/telemetry/events/build.js +0 -174
  1260. package/dist/standalone/node_modules/next/dist/telemetry/events/index.js +0 -41
  1261. package/dist/standalone/node_modules/next/dist/telemetry/events/plugins.js +0 -51
  1262. package/dist/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +0 -55
  1263. package/dist/standalone/node_modules/next/dist/telemetry/events/version.js +0 -66
  1264. package/dist/standalone/node_modules/next/dist/telemetry/flush-telemetry.js +0 -19
  1265. package/dist/standalone/node_modules/next/dist/telemetry/post-telemetry-payload.js +0 -48
  1266. package/dist/standalone/node_modules/next/dist/telemetry/project-id.js +0 -48
  1267. package/dist/standalone/node_modules/next/dist/telemetry/storage.js +0 -301
  1268. package/dist/standalone/node_modules/next/dist/trace/index.js +0 -58
  1269. package/dist/standalone/node_modules/next/dist/trace/report/index.js +0 -37
  1270. package/dist/standalone/node_modules/next/dist/trace/report/to-json-build.js +0 -40
  1271. package/dist/standalone/node_modules/next/dist/trace/report/to-json.js +0 -165
  1272. package/dist/standalone/node_modules/next/dist/trace/report/to-telemetry.js +0 -36
  1273. package/dist/standalone/node_modules/next/dist/trace/shared.js +0 -39
  1274. package/dist/standalone/node_modules/next/dist/trace/trace.js +0 -211
  1275. package/dist/standalone/node_modules/next/package.json +0 -136
  1276. package/dist/standalone/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
  1277. package/dist/standalone/node_modules/react/cjs/react-jsx-dev-runtime.production.js +0 -14
  1278. package/dist/standalone/node_modules/react/cjs/react-jsx-runtime.production.js +0 -34
  1279. package/dist/standalone/node_modules/react/cjs/react.production.js +0 -542
  1280. package/dist/standalone/node_modules/react/compiler-runtime.js +0 -14
  1281. package/dist/standalone/node_modules/react/index.js +0 -7
  1282. package/dist/standalone/node_modules/react/jsx-dev-runtime.js +0 -7
  1283. package/dist/standalone/node_modules/react/jsx-runtime.js +0 -7
  1284. package/dist/standalone/node_modules/react/package.json +0 -51
  1285. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -6603
  1286. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +0 -6692
  1287. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -7410
  1288. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +0 -7512
  1289. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +0 -7707
  1290. package/dist/standalone/node_modules/react-dom/cjs/react-dom.production.js +0 -210
  1291. package/dist/standalone/node_modules/react-dom/index.js +0 -38
  1292. package/dist/standalone/node_modules/react-dom/package.json +0 -117
  1293. package/dist/standalone/node_modules/react-dom/server.browser.js +0 -16
  1294. package/dist/standalone/node_modules/react-dom/server.edge.js +0 -17
  1295. package/dist/standalone/node_modules/react-dom/server.node.js +0 -18
  1296. package/dist/standalone/node_modules/react-dom/static.node.js +0 -14
  1297. package/dist/standalone/node_modules/sharp/lib/channel.js +0 -177
  1298. package/dist/standalone/node_modules/sharp/lib/colour.js +0 -195
  1299. package/dist/standalone/node_modules/sharp/lib/composite.js +0 -212
  1300. package/dist/standalone/node_modules/sharp/lib/constructor.js +0 -499
  1301. package/dist/standalone/node_modules/sharp/lib/index.js +0 -16
  1302. package/dist/standalone/node_modules/sharp/lib/input.js +0 -809
  1303. package/dist/standalone/node_modules/sharp/lib/is.js +0 -143
  1304. package/dist/standalone/node_modules/sharp/lib/libvips.js +0 -207
  1305. package/dist/standalone/node_modules/sharp/lib/operation.js +0 -1016
  1306. package/dist/standalone/node_modules/sharp/lib/output.js +0 -1666
  1307. package/dist/standalone/node_modules/sharp/lib/resize.js +0 -595
  1308. package/dist/standalone/node_modules/sharp/lib/sharp.js +0 -121
  1309. package/dist/standalone/node_modules/sharp/lib/utility.js +0 -291
  1310. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/comparator.js +0 -143
  1311. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/range.js +0 -577
  1312. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/semver.js +0 -350
  1313. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/cmp.js +0 -54
  1314. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/coerce.js +0 -62
  1315. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/compare.js +0 -7
  1316. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/eq.js +0 -5
  1317. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gt.js +0 -5
  1318. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gte.js +0 -5
  1319. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lt.js +0 -5
  1320. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lte.js +0 -5
  1321. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/neq.js +0 -5
  1322. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/parse.js +0 -18
  1323. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/satisfies.js +0 -12
  1324. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/constants.js +0 -37
  1325. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/debug.js +0 -11
  1326. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/identifiers.js +0 -29
  1327. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/lrucache.js +0 -42
  1328. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/parse-options.js +0 -17
  1329. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/re.js +0 -223
  1330. package/dist/standalone/node_modules/sharp/node_modules/semver/package.json +0 -78
  1331. package/dist/standalone/node_modules/sharp/package.json +0 -202
  1332. package/dist/standalone/node_modules/styled-jsx/dist/index/index.js +0 -499
  1333. package/dist/standalone/package-lock.json +0 -11991
  1334. package/dist/standalone/postcss.config.mjs +0 -7
  1335. package/dist/standalone/scripts/build-static.mjs +0 -182
  1336. package/dist/standalone/scripts/prepare-standalone.mjs +0 -50
  1337. package/dist/standalone/scripts/write-board-snapshot.ts +0 -20
  1338. package/dist/standalone/tsconfig.json +0 -34
  1339. package/dist/standalone/tsconfig.tsbuildinfo +0 -1
  1340. package/dist/standalone/yarn.lock +0 -5321
  1341. /package/dist/standalone/.next/static/chunks/{0cz1d0mv5g_q7.js → polyfills-42372ed130431b0a.js} +0 -0
  1342. /package/dist/standalone/.next/static/{Z9wFjRvfV46l9lmHXB7G1 → jm3kxf8c6qGe0cYKCktaO}/_ssgManifest.js +0 -0
  1343. /package/dist/standalone/.next/static/media/{0c89a48fa5027cee-s.p.2cyn07wtgehh0.woff2 → 36966cca54120369-s.p.woff2} +0 -0
  1344. /package/dist/standalone/.next/static/media/{5e4d537aaa9e154b-s.p.1ewykk74tw0il.woff2 → 982ceffe7b733b3b-s.p.woff2} +0 -0
  1345. /package/dist/standalone/.next/static/media/{28868e710e86be81-s.2eksvhm1z0jwa.woff2 → b7387a63dd068245-s.woff2} +0 -0
  1346. /package/dist/standalone/.next/static/media/{316b6682b406c2db-s.1_k7aq_c5drf2.woff2 → b8bfb68ab9ab617c-s.woff2} +0 -0
  1347. /package/dist/standalone/.next/static/media/{32687112bd2dd8db-s.1gepa_7fcx9fm.woff2 → e1aab0933260df4d-s.woff2} +0 -0
@@ -1,1341 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- 0 && (module.exports = {
6
- FreshnessPolicy: null,
7
- createInitialCacheNodeForHydration: null,
8
- isDeferredRsc: null,
9
- spawnDynamicRequests: null,
10
- startPPRNavigation: null
11
- });
12
- function _export(target, all) {
13
- for(var name in all)Object.defineProperty(target, name, {
14
- enumerable: true,
15
- get: all[name]
16
- });
17
- }
18
- _export(exports, {
19
- FreshnessPolicy: function() {
20
- return FreshnessPolicy;
21
- },
22
- createInitialCacheNodeForHydration: function() {
23
- return createInitialCacheNodeForHydration;
24
- },
25
- isDeferredRsc: function() {
26
- return isDeferredRsc;
27
- },
28
- spawnDynamicRequests: function() {
29
- return spawnDynamicRequests;
30
- },
31
- startPPRNavigation: function() {
32
- return startPPRNavigation;
33
- }
34
- });
35
- const _approutertypes = require("../../../shared/lib/app-router-types");
36
- const _segment = require("../../../shared/lib/segment");
37
- const _matchsegments = require("../match-segments");
38
- const _createhreffromurl = require("./create-href-from-url");
39
- const _fetchserverresponse = require("./fetch-server-response");
40
- const _useactionqueue = require("../use-action-queue");
41
- const _routerreducertypes = require("./router-reducer-types");
42
- const _isnavigatingtonewrootlayout = require("./is-navigating-to-new-root-layout");
43
- const _committedstate = require("./reducers/committed-state");
44
- const _navigation = require("../segment-cache/navigation");
45
- const _cache = require("../segment-cache/cache");
46
- const _types = require("../segment-cache/types");
47
- const _optimisticroutes = require("../segment-cache/optimistic-routes");
48
- const _constants = require("../../../lib/constants");
49
- const _varypath = require("../segment-cache/vary-path");
50
- const _bfcache = require("../segment-cache/bfcache");
51
- var FreshnessPolicy = /*#__PURE__*/ function(FreshnessPolicy) {
52
- FreshnessPolicy[FreshnessPolicy["Default"] = 0] = "Default";
53
- FreshnessPolicy[FreshnessPolicy["Hydration"] = 1] = "Hydration";
54
- FreshnessPolicy[FreshnessPolicy["HistoryTraversal"] = 2] = "HistoryTraversal";
55
- FreshnessPolicy[FreshnessPolicy["RefreshAll"] = 3] = "RefreshAll";
56
- FreshnessPolicy[FreshnessPolicy["HMRRefresh"] = 4] = "HMRRefresh";
57
- FreshnessPolicy[FreshnessPolicy["Gesture"] = 5] = "Gesture";
58
- return FreshnessPolicy;
59
- }({});
60
- const noop = ()=>{};
61
- function createInitialCacheNodeForHydration(navigatedAt, initialTree, seedData, seedHead, seedDynamicStaleAt) {
62
- // Create the initial cache node tree, using the data embedded into the
63
- // HTML document.
64
- const accumulation = {
65
- separateRefreshUrls: null,
66
- scrollRef: null
67
- };
68
- const task = createCacheNodeOnNavigation(navigatedAt, initialTree, null, 1, seedData, seedHead, seedDynamicStaleAt, false, accumulation);
69
- return task;
70
- }
71
- function startPPRNavigation(navigatedAt, oldUrl, oldRenderedSearch, oldCacheNode, oldRouterState, newRouteTree, newMetadataVaryPath, freshness, seedData, seedHead, seedDynamicStaleAt, isSamePageNavigation, accumulation) {
72
- const didFindRootLayout = false;
73
- const parentNeedsDynamicRequest = false;
74
- const parentRefreshState = null;
75
- const oldRootRefreshState = {
76
- canonicalUrl: (0, _createhreffromurl.createHrefFromUrl)(oldUrl),
77
- renderedSearch: oldRenderedSearch
78
- };
79
- return updateCacheNodeOnNavigation(navigatedAt, oldUrl, oldCacheNode !== null ? oldCacheNode : undefined, oldRouterState, newRouteTree, newMetadataVaryPath, freshness, didFindRootLayout, seedData, seedHead, seedDynamicStaleAt, isSamePageNavigation, parentNeedsDynamicRequest, oldRootRefreshState, parentRefreshState, accumulation);
80
- }
81
- function updateCacheNodeOnNavigation(navigatedAt, oldUrl, oldCacheNode, oldRouterState, newRouteTree, newMetadataVaryPath, freshness, didFindRootLayout, seedData, seedHead, seedDynamicStaleAt, isSamePageNavigation, parentNeedsDynamicRequest, oldRootRefreshState, parentRefreshState, accumulation) {
82
- // Check if this segment matches the one in the previous route.
83
- const oldSegment = oldRouterState[0];
84
- const newSegment = createSegmentFromRouteTree(newRouteTree);
85
- if (!(0, _matchsegments.matchSegment)(newSegment, oldSegment)) {
86
- // This segment does not match the previous route. We're now entering the
87
- // new part of the target route. Switch to the "create" path.
88
- if (// Check if the route tree changed before we reached a layout. (The
89
- // highest-level layout in a route tree is referred to as the "root"
90
- // layout.) This could mean that we're navigating between two different
91
- // root layouts. When this happens, we perform a full-page (MPA-style)
92
- // navigation.
93
- //
94
- // However, the algorithm for deciding where to start rendering a route
95
- // (i.e. the one performed in order to reach this function) is stricter
96
- // than the one used to detect a change in the root layout. So just
97
- // because we're re-rendering a segment outside of the root layout does
98
- // not mean we should trigger a full-page navigation.
99
- //
100
- // Specifically, we handle dynamic parameters differently: two segments
101
- // are considered the same even if their parameter values are different.
102
- //
103
- // Refer to isNavigatingToNewRootLayout for details.
104
- //
105
- // Note that we only have to perform this extra traversal if we didn't
106
- // already discover a root layout in the part of the tree that is
107
- // unchanged. We also only need to compare the subtree that is not
108
- // shared. In the common case, this branch is skipped completely.
109
- !didFindRootLayout && (0, _isnavigatingtonewrootlayout.isNavigatingToNewRootLayout)(oldRouterState, newRouteTree) || // The global Not Found route (app/global-not-found.tsx) is a special
110
- // case, because it acts like a root layout, but in the router tree, it
111
- // is rendered in the same position as app/layout.tsx.
112
- //
113
- // Any navigation to the global Not Found route should trigger a
114
- // full-page navigation.
115
- //
116
- // TODO: We should probably model this by changing the key of the root
117
- // segment when this happens. Then the root layout check would work
118
- // as expected, without a special case.
119
- newSegment === _segment.NOT_FOUND_SEGMENT_KEY) {
120
- return null;
121
- }
122
- return createCacheNodeOnNavigation(navigatedAt, newRouteTree, newMetadataVaryPath, freshness, seedData, seedHead, seedDynamicStaleAt, parentNeedsDynamicRequest, accumulation);
123
- }
124
- const newSlots = newRouteTree.slots;
125
- const oldRouterStateChildren = oldRouterState[1];
126
- const seedDataChildren = seedData !== null ? seedData[1] : null;
127
- // We're currently traversing the part of the tree that was also part of
128
- // the previous route. If we discover a root layout, then we don't need to
129
- // trigger an MPA navigation.
130
- const childDidFindRootLayout = didFindRootLayout || (newRouteTree.prefetchHints & _approutertypes.PrefetchHint.IsRootLayout) !== 0;
131
- let shouldRefreshDynamicData = false;
132
- switch(freshness){
133
- case 0:
134
- case 2:
135
- case 1:
136
- case 5:
137
- shouldRefreshDynamicData = false;
138
- break;
139
- case 3:
140
- case 4:
141
- shouldRefreshDynamicData = true;
142
- break;
143
- default:
144
- freshness;
145
- break;
146
- }
147
- // TODO: We're not consistent about how we do this check. Some places
148
- // check if the segment starts with PAGE_SEGMENT_KEY, but most seem to
149
- // check if there any any children, which is why I'm doing it here. We
150
- // should probably encode an empty children set as `null` though. Either
151
- // way, we should update all the checks to be consistent.
152
- const isLeafSegment = newSlots === null;
153
- // Get the data for this segment. Since it was part of the previous route,
154
- // usually we just clone the data from the old CacheNode. However, during a
155
- // refresh or a revalidation, there won't be any existing CacheNode. So we
156
- // may need to consult the prefetch cache, like we would for a new segment.
157
- let newCacheNode;
158
- let needsDynamicRequest;
159
- if (oldCacheNode !== undefined && !shouldRefreshDynamicData && // During a same-page navigation, we always refetch the page segments
160
- !(isLeafSegment && isSamePageNavigation)) {
161
- // Reuse the existing CacheNode
162
- const dropPrefetchRsc = false;
163
- newCacheNode = reuseSharedCacheNode(dropPrefetchRsc, oldCacheNode);
164
- needsDynamicRequest = false;
165
- } else {
166
- // If this is part of a refresh, ignore the existing CacheNode and create a
167
- // new one.
168
- const seedRsc = seedData !== null ? seedData[0] : null;
169
- const result = createCacheNodeForSegment(navigatedAt, newRouteTree, seedRsc, newMetadataVaryPath, seedHead, freshness, seedDynamicStaleAt);
170
- newCacheNode = result.cacheNode;
171
- needsDynamicRequest = result.needsDynamicRequest;
172
- // Carry forward the old node's scrollRef. This preserves scroll
173
- // intent when a prior navigation's cache node is replaced by a
174
- // refresh before the scroll handler has had a chance to fire —
175
- // e.g. when router.push() and router.refresh() are called in the
176
- // same startTransition batch.
177
- if (oldCacheNode !== undefined) {
178
- newCacheNode.scrollRef = oldCacheNode.scrollRef;
179
- }
180
- }
181
- // During a refresh navigation, there's a special case that happens when
182
- // entering a "default" slot. The default slot may not be part of the
183
- // current route; it may have been reused from an older route. If so,
184
- // we need to fetch its data from the old route's URL rather than current
185
- // route's URL. Keep track of this as we traverse the tree.
186
- const maybeRefreshState = newRouteTree.refreshState;
187
- const refreshState = maybeRefreshState !== undefined && maybeRefreshState !== null ? // refresh URL as we continue traversing the tree.
188
- maybeRefreshState : parentRefreshState;
189
- // If this segment itself needs to fetch new data from the server, then by
190
- // definition it is being refreshed. Track its refresh URL so we know which
191
- // URL to request the data from.
192
- if (needsDynamicRequest && refreshState !== null) {
193
- accumulateRefreshUrl(accumulation, refreshState);
194
- }
195
- // As we diff the trees, we may sometimes modify (copy-on-write, not mutate)
196
- // the Route Tree that was returned by the server — for example, in the case
197
- // of default parallel routes, we preserve the currently active segment. To
198
- // avoid mutating the original tree, we clone the router state children along
199
- // the return path.
200
- let patchedRouterStateChildren = {};
201
- let taskChildren = null;
202
- // Most navigations require a request to fetch additional data from the
203
- // server, either because the data was not already prefetched, or because the
204
- // target route contains dynamic data that cannot be prefetched.
205
- //
206
- // However, if the target route is fully static, and it's already completely
207
- // loaded into the segment cache, then we can skip the server request.
208
- //
209
- // This starts off as `false`, and is set to `true` if any of the child
210
- // routes requires a dynamic request.
211
- let childNeedsDynamicRequest = false;
212
- // As we traverse the children, we'll construct a FlightRouterState that can
213
- // be sent to the server to request the dynamic data. If it turns out that
214
- // nothing in the subtree is dynamic (i.e. childNeedsDynamicRequest is false
215
- // at the end), then this will be discarded.
216
- // TODO: We can probably optimize the format of this data structure to only
217
- // include paths that are dynamic. Instead of reusing the
218
- // FlightRouterState type.
219
- let dynamicRequestTreeChildren = {};
220
- let newCacheNodeSlots = null;
221
- if (newSlots !== null) {
222
- const oldCacheNodeSlots = oldCacheNode !== undefined ? oldCacheNode.slots : null;
223
- newCacheNode.slots = newCacheNodeSlots = {};
224
- taskChildren = new Map();
225
- for(let parallelRouteKey in newSlots){
226
- let newRouteTreeChild = newSlots[parallelRouteKey];
227
- const oldRouterStateChild = oldRouterStateChildren[parallelRouteKey];
228
- if (oldRouterStateChild === undefined) {
229
- // This should never happen, but if it does, it suggests a malformed
230
- // server response. Trigger a full-page navigation.
231
- return null;
232
- }
233
- let seedDataChild = seedDataChildren !== null ? seedDataChildren[parallelRouteKey] : null;
234
- const oldSegmentChild = oldRouterStateChild[0];
235
- let newSegmentChild = createSegmentFromRouteTree(newRouteTreeChild);
236
- let seedHeadChild = seedHead;
237
- if (// Skip this branch during a history traversal. We restore the tree that
238
- // was stashed in the history entry as-is.
239
- freshness !== 2 && newSegmentChild === _segment.DEFAULT_SEGMENT_KEY && oldSegmentChild !== _segment.DEFAULT_SEGMENT_KEY) {
240
- // This is a "default" segment. These are never sent by the server during
241
- // a soft navigation; instead, the client reuses whatever segment was
242
- // already active in that slot on the previous route.
243
- newRouteTreeChild = reuseActiveSegmentInDefaultSlot(newRouteTree, parallelRouteKey, oldRootRefreshState, oldRouterStateChild);
244
- newSegmentChild = createSegmentFromRouteTree(newRouteTreeChild);
245
- // Since we're switching to a different route tree, these are no
246
- // longer valid, because they correspond to the outer tree.
247
- seedDataChild = null;
248
- seedHeadChild = null;
249
- }
250
- const oldCacheNodeChild = oldCacheNodeSlots !== null ? oldCacheNodeSlots[parallelRouteKey] : undefined;
251
- const taskChild = updateCacheNodeOnNavigation(navigatedAt, oldUrl, oldCacheNodeChild, oldRouterStateChild, newRouteTreeChild, newMetadataVaryPath, freshness, childDidFindRootLayout, seedDataChild ?? null, seedHeadChild, seedDynamicStaleAt, isSamePageNavigation, parentNeedsDynamicRequest || needsDynamicRequest, oldRootRefreshState, refreshState, accumulation);
252
- if (taskChild === null) {
253
- // One of the child tasks discovered a change to the root layout.
254
- // Immediately unwind from this recursive traversal. This will trigger a
255
- // full-page navigation.
256
- return null;
257
- }
258
- // Recursively propagate up the child tasks.
259
- taskChildren.set(parallelRouteKey, taskChild);
260
- newCacheNodeSlots[parallelRouteKey] = taskChild.node;
261
- // The child tree's route state may be different from the prefetched
262
- // route sent by the server. We need to clone it as we traverse back up
263
- // the tree.
264
- const taskChildRoute = taskChild.route;
265
- patchedRouterStateChildren[parallelRouteKey] = taskChildRoute;
266
- const dynamicRequestTreeChild = taskChild.dynamicRequestTree;
267
- if (dynamicRequestTreeChild !== null) {
268
- // Something in the child tree is dynamic.
269
- childNeedsDynamicRequest = true;
270
- dynamicRequestTreeChildren[parallelRouteKey] = dynamicRequestTreeChild;
271
- } else {
272
- dynamicRequestTreeChildren[parallelRouteKey] = taskChildRoute;
273
- }
274
- }
275
- }
276
- const newFlightRouterState = [
277
- createSegmentFromRouteTree(newRouteTree),
278
- patchedRouterStateChildren,
279
- refreshState !== null ? [
280
- refreshState.canonicalUrl,
281
- refreshState.renderedSearch
282
- ] : null,
283
- null,
284
- newRouteTree.prefetchHints
285
- ];
286
- return {
287
- status: needsDynamicRequest ? 0 : 1,
288
- route: newFlightRouterState,
289
- node: newCacheNode,
290
- dynamicRequestTree: createDynamicRequestTree(newFlightRouterState, dynamicRequestTreeChildren, needsDynamicRequest, childNeedsDynamicRequest, parentNeedsDynamicRequest),
291
- refreshState,
292
- children: taskChildren
293
- };
294
- }
295
- /**
296
- * Assigns a ScrollRef to a new leaf CacheNode so the scroll handler
297
- * knows to scroll to it after navigation. All leaves in the same
298
- * navigation share the same ScrollRef — the first segment to scroll
299
- * consumes it, preventing others from also scrolling.
300
- *
301
- * This is only called inside `createCacheNodeOnNavigation`, which only
302
- * runs when segments diverge from the previous route. So for a refresh
303
- * where the route structure stays the same, segments match, the update
304
- * path is taken, and this function is never called — no scroll ref is
305
- * assigned. A scroll ref is only assigned when the route actually
306
- * changed (e.g. a redirect, or a dynamic condition on the server that
307
- * produces a different route).
308
- *
309
- * Skipped during hydration (initial render should not scroll) and
310
- * history traversal (scroll restoration is handled separately).
311
- */ function accumulateScrollRef(freshness, cacheNode, accumulation) {
312
- switch(freshness){
313
- case 0:
314
- case 5:
315
- case 3:
316
- case 4:
317
- if (accumulation.scrollRef === null) {
318
- accumulation.scrollRef = {
319
- current: true
320
- };
321
- }
322
- cacheNode.scrollRef = accumulation.scrollRef;
323
- break;
324
- case 1:
325
- break;
326
- case 2:
327
- break;
328
- default:
329
- freshness;
330
- break;
331
- }
332
- }
333
- function createCacheNodeOnNavigation(navigatedAt, newRouteTree, newMetadataVaryPath, freshness, seedData, seedHead, seedDynamicStaleAt, parentNeedsDynamicRequest, accumulation) {
334
- // Same traversal as updateCacheNodeNavigation, but simpler. We switch to this
335
- // path once we reach the part of the tree that was not in the previous route.
336
- // We don't need to diff against the old tree, we just need to create a new
337
- // one. We also don't need to worry about any refresh-related logic.
338
- //
339
- // For the most part, this is a subset of updateCacheNodeOnNavigation, so any
340
- // change that happens in this function likely needs to be applied to that
341
- // one, too. However there are some places where the behavior intentionally
342
- // diverges, which is why we keep them separate.
343
- const newSegment = createSegmentFromRouteTree(newRouteTree);
344
- const newSlots = newRouteTree.slots;
345
- const seedDataChildren = seedData !== null ? seedData[1] : null;
346
- const seedRsc = seedData !== null ? seedData[0] : null;
347
- const result = createCacheNodeForSegment(navigatedAt, newRouteTree, seedRsc, newMetadataVaryPath, seedHead, freshness, seedDynamicStaleAt);
348
- const newCacheNode = result.cacheNode;
349
- const needsDynamicRequest = result.needsDynamicRequest;
350
- const isLeafSegment = newSlots === null;
351
- if (isLeafSegment) {
352
- accumulateScrollRef(freshness, newCacheNode, accumulation);
353
- }
354
- let patchedRouterStateChildren = {};
355
- let taskChildren = null;
356
- let childNeedsDynamicRequest = false;
357
- let dynamicRequestTreeChildren = {};
358
- let newCacheNodeSlots = null;
359
- if (newSlots !== null) {
360
- newCacheNode.slots = newCacheNodeSlots = {};
361
- taskChildren = new Map();
362
- for(let parallelRouteKey in newSlots){
363
- const newRouteTreeChild = newSlots[parallelRouteKey];
364
- const seedDataChild = seedDataChildren !== null ? seedDataChildren[parallelRouteKey] : null;
365
- const taskChild = createCacheNodeOnNavigation(navigatedAt, newRouteTreeChild, newMetadataVaryPath, freshness, seedDataChild ?? null, seedHead, seedDynamicStaleAt, parentNeedsDynamicRequest || needsDynamicRequest, accumulation);
366
- taskChildren.set(parallelRouteKey, taskChild);
367
- newCacheNodeSlots[parallelRouteKey] = taskChild.node;
368
- const taskChildRoute = taskChild.route;
369
- patchedRouterStateChildren[parallelRouteKey] = taskChildRoute;
370
- const dynamicRequestTreeChild = taskChild.dynamicRequestTree;
371
- if (dynamicRequestTreeChild !== null) {
372
- childNeedsDynamicRequest = true;
373
- dynamicRequestTreeChildren[parallelRouteKey] = dynamicRequestTreeChild;
374
- } else {
375
- dynamicRequestTreeChildren[parallelRouteKey] = taskChildRoute;
376
- }
377
- }
378
- }
379
- const newFlightRouterState = [
380
- newSegment,
381
- patchedRouterStateChildren,
382
- null,
383
- null,
384
- newRouteTree.prefetchHints
385
- ];
386
- return {
387
- status: needsDynamicRequest ? 0 : 1,
388
- route: newFlightRouterState,
389
- node: newCacheNode,
390
- dynamicRequestTree: createDynamicRequestTree(newFlightRouterState, dynamicRequestTreeChildren, needsDynamicRequest, childNeedsDynamicRequest, parentNeedsDynamicRequest),
391
- // This route is not part of the current tree, so there's no reason to
392
- // track the refresh URL.
393
- refreshState: null,
394
- children: taskChildren
395
- };
396
- }
397
- function createSegmentFromRouteTree(newRouteTree) {
398
- if (newRouteTree.isPage) {
399
- // In a dynamic server response, the server embeds the search params into
400
- // the segment key, but in a static one it's omitted. The client handles
401
- // this inconsistency by adding the search params back right at the end.
402
- //
403
- // TODO: The only thing this is used for is to create a cache key for
404
- // ChildSegmentMap. But we already track the `renderedSearch` everywhere as
405
- // part of the varyPath. The plan is get rid of ChildSegmentMap and
406
- // store the page data in a CacheMap using the varyPath, like we do
407
- // for prefetches. Then we can remove it from the segment key.
408
- //
409
- // As an incremental step, we can grab the search params from the varyPath.
410
- const renderedSearch = (0, _varypath.getRenderedSearchFromVaryPath)(newRouteTree.varyPath);
411
- if (renderedSearch === null) {
412
- return _segment.PAGE_SEGMENT_KEY;
413
- }
414
- // This is based on equivalent logic in addSearchParamsIfPageSegment, used
415
- // on the server.
416
- const stringifiedQuery = JSON.stringify(Object.fromEntries(new URLSearchParams(renderedSearch)));
417
- return stringifiedQuery !== '{}' ? _segment.PAGE_SEGMENT_KEY + '?' + stringifiedQuery : _segment.PAGE_SEGMENT_KEY;
418
- }
419
- return newRouteTree.segment;
420
- }
421
- function patchRouterStateWithNewChildren(baseRouterState, newChildren) {
422
- const clone = [
423
- baseRouterState[0],
424
- newChildren
425
- ];
426
- // Based on equivalent logic in apply-router-state-patch-to-tree, but should
427
- // confirm whether we need to copy all of these fields. Not sure the server
428
- // ever sends, e.g. the refetch marker.
429
- if (2 in baseRouterState) {
430
- clone[2] = baseRouterState[2];
431
- }
432
- if (3 in baseRouterState) {
433
- clone[3] = baseRouterState[3];
434
- }
435
- if (4 in baseRouterState) {
436
- clone[4] = baseRouterState[4];
437
- }
438
- return clone;
439
- }
440
- function createDynamicRequestTree(newRouterState, dynamicRequestTreeChildren, needsDynamicRequest, childNeedsDynamicRequest, parentNeedsDynamicRequest) {
441
- // Create a FlightRouterState that instructs the server how to render the
442
- // requested segment.
443
- //
444
- // Or, if neither this segment nor any of the children require a new data,
445
- // then we return `null` to skip the request.
446
- let dynamicRequestTree = null;
447
- if (needsDynamicRequest) {
448
- dynamicRequestTree = patchRouterStateWithNewChildren(newRouterState, dynamicRequestTreeChildren);
449
- // The "refetch" marker is set on the top-most segment that requires new
450
- // data. We can omit it if a parent was already marked.
451
- if (!parentNeedsDynamicRequest) {
452
- dynamicRequestTree[3] = 'refetch';
453
- }
454
- } else if (childNeedsDynamicRequest) {
455
- // This segment does not request new data, but at least one of its
456
- // children does.
457
- dynamicRequestTree = patchRouterStateWithNewChildren(newRouterState, dynamicRequestTreeChildren);
458
- } else {
459
- dynamicRequestTree = null;
460
- }
461
- return dynamicRequestTree;
462
- }
463
- function accumulateRefreshUrl(accumulation, refreshState) {
464
- // This is a refresh navigation, and we're inside a "default" slot that's
465
- // not part of the current route; it was reused from an older route. In
466
- // order to get fresh data for this reused route, we need to issue a
467
- // separate request using the old route's URL.
468
- //
469
- // Track these extra URLs in the accumulated result. Later, we'll construct
470
- // an appropriate request for each unique URL in the final set. The reason
471
- // we don't do it immediately here is so we can deduplicate multiple
472
- // instances of the same URL into a single request. See
473
- // listenForDynamicRequest for more details.
474
- const refreshUrl = refreshState.canonicalUrl;
475
- const separateRefreshUrls = accumulation.separateRefreshUrls;
476
- if (separateRefreshUrls === null) {
477
- accumulation.separateRefreshUrls = new Set([
478
- refreshUrl
479
- ]);
480
- } else {
481
- separateRefreshUrls.add(refreshUrl);
482
- }
483
- }
484
- function reuseActiveSegmentInDefaultSlot(parentRouteTree, parallelRouteKey, oldRootRefreshState, oldRouterState) {
485
- // This is a "default" segment. These are never sent by the server during a
486
- // soft navigation; instead, the client reuses whatever segment was already
487
- // active in that slot on the previous route. This means if we later need to
488
- // refresh the segment, it will have to be refetched from the previous route's
489
- // URL. We store it in the Flight Router State.
490
- let reusedUrl;
491
- let reusedRenderedSearch;
492
- const oldRefreshState = oldRouterState[2];
493
- if (oldRefreshState !== undefined && oldRefreshState !== null) {
494
- // This segment was already reused from an even older route. Keep its
495
- // existing URL and refresh state.
496
- reusedUrl = oldRefreshState[0];
497
- reusedRenderedSearch = oldRefreshState[1];
498
- } else {
499
- // Since this route didn't already have a refresh state, it must have been
500
- // reachable from the root of the old route. So we use the refresh state
501
- // that represents the old route.
502
- reusedUrl = oldRootRefreshState.canonicalUrl;
503
- reusedRenderedSearch = oldRootRefreshState.renderedSearch;
504
- }
505
- const acc = {
506
- metadataVaryPath: null
507
- };
508
- const reusedRouteTree = (0, _cache.convertReusedFlightRouterStateToRouteTree)(parentRouteTree, parallelRouteKey, oldRouterState, reusedRenderedSearch, acc);
509
- reusedRouteTree.refreshState = {
510
- canonicalUrl: reusedUrl,
511
- renderedSearch: reusedRenderedSearch
512
- };
513
- return reusedRouteTree;
514
- }
515
- function reuseSharedCacheNode(dropPrefetchRsc, existingCacheNode) {
516
- // Clone the CacheNode that was already present in the previous tree.
517
- // Carry forward the scrollRef so scroll intent from a prior navigation
518
- // survives tree rebuilds (e.g. push + refresh in the same batch).
519
- return createCacheNode(existingCacheNode.rsc, dropPrefetchRsc ? null : existingCacheNode.prefetchRsc, existingCacheNode.head, dropPrefetchRsc ? null : existingCacheNode.prefetchHead, existingCacheNode.scrollRef);
520
- }
521
- function createCacheNodeForSegment(now, tree, seedRsc, metadataVaryPath, seedHead, freshness, dynamicStaleAt) {
522
- // Construct a new CacheNode using data from the BFCache, the client's
523
- // Segment Cache, or seeded from a server response.
524
- //
525
- // If there's a cache miss, or if we only have a partial hit, we'll render
526
- // the partial state immediately, and spawn a request to the server to fill
527
- // in the missing data.
528
- //
529
- // If the segment is fully cached on the client already, we can omit this
530
- // segment from the server request.
531
- //
532
- // If we already have a dynamic data response associated with this navigation,
533
- // as in the case of a Server Action-initiated redirect or refresh, we may
534
- // also be able to use that data without spawning a new request. (This is
535
- // referred to as the "seed" data.)
536
- const isPage = tree.isPage;
537
- // During certain kinds of navigations, we may be able to render from
538
- // the BFCache.
539
- switch(freshness){
540
- case 0:
541
- {
542
- // Check BFCache during regular navigations. The entry's staleAt
543
- // determines whether it's still fresh. This is used when
544
- // staleTimes.dynamic is configured globally or when a page exports
545
- // unstable_dynamicStaleTime for per-page control.
546
- const bfcacheEntry = (0, _bfcache.readFromBFCacheDuringRegularNavigation)(now, tree.varyPath);
547
- if (bfcacheEntry !== null) {
548
- return {
549
- cacheNode: createCacheNode(bfcacheEntry.rsc, bfcacheEntry.prefetchRsc, bfcacheEntry.head, bfcacheEntry.prefetchHead),
550
- needsDynamicRequest: false
551
- };
552
- }
553
- break;
554
- }
555
- case 1:
556
- {
557
- // This is not related to the BFCache but it is a special case.
558
- //
559
- // We should never spawn network requests during hydration. We must treat
560
- // the initial payload as authoritative, because the initial page load is
561
- // used as a last-ditch mechanism for recovering the app.
562
- //
563
- // This is also an important safety check because if this leaks into the
564
- // server rendering path (which theoretically it never should because the
565
- // server payload should be consistent), the server would hang because these
566
- // promises would never resolve.
567
- //
568
- // TODO: There is an existing case where the global "not found" boundary
569
- // triggers this path. But it does render correctly despite that. That's an
570
- // unusual render path so it's not surprising, but we should look into
571
- // modeling it in a more consistent way. See also the /_notFound special
572
- // case in updateCacheNodeOnNavigation.
573
- const rsc = seedRsc;
574
- const prefetchRsc = null;
575
- const head = isPage ? seedHead : null;
576
- const prefetchHead = null;
577
- (0, _bfcache.writeToBFCache)(now, tree.varyPath, rsc, prefetchRsc, head, prefetchHead, dynamicStaleAt);
578
- if (isPage && metadataVaryPath !== null) {
579
- (0, _bfcache.writeHeadToBFCache)(now, metadataVaryPath, head, prefetchHead, dynamicStaleAt);
580
- }
581
- return {
582
- cacheNode: createCacheNode(rsc, prefetchRsc, head, prefetchHead),
583
- needsDynamicRequest: false
584
- };
585
- }
586
- case 2:
587
- const bfcacheEntry = (0, _bfcache.readFromBFCache)(tree.varyPath);
588
- if (bfcacheEntry !== null) {
589
- // Only show prefetched data if the dynamic data is still pending. This
590
- // avoids a flash back to the prefetch state in a case where it's highly
591
- // likely to have already streamed in.
592
- //
593
- // Tehnically, what we're actually checking is whether the dynamic
594
- // network response was received. But since it's a streaming response,
595
- // this does not mean that all the dynamic data has fully streamed in.
596
- // It just means that _some_ of the dynamic data was received. But as a
597
- // heuristic, we assume that the rest dynamic data will stream in
598
- // quickly, so it's still better to skip the prefetch state.
599
- const oldRsc = bfcacheEntry.rsc;
600
- const oldRscDidResolve = !isDeferredRsc(oldRsc) || oldRsc.status !== 'pending';
601
- const dropPrefetchRsc = oldRscDidResolve;
602
- return {
603
- cacheNode: createCacheNode(bfcacheEntry.rsc, dropPrefetchRsc ? null : bfcacheEntry.prefetchRsc, bfcacheEntry.head, dropPrefetchRsc ? null : bfcacheEntry.prefetchHead),
604
- needsDynamicRequest: false
605
- };
606
- }
607
- break;
608
- case 3:
609
- case 4:
610
- case 5:
611
- break;
612
- default:
613
- freshness;
614
- break;
615
- }
616
- let cachedRsc = null;
617
- let isCachedRscPartial = true;
618
- const segmentEntry = (0, _cache.readSegmentCacheEntry)(now, tree.varyPath);
619
- if (segmentEntry !== null) {
620
- switch(segmentEntry.status){
621
- case _cache.EntryStatus.Fulfilled:
622
- {
623
- // Happy path: a cache hit
624
- cachedRsc = segmentEntry.rsc;
625
- isCachedRscPartial = segmentEntry.isPartial;
626
- break;
627
- }
628
- case _cache.EntryStatus.Pending:
629
- {
630
- // We haven't received data for this segment yet, but there's already
631
- // an in-progress request. Since it's extremely likely to arrive
632
- // before the dynamic data response, we might as well use it.
633
- const promiseForFulfilledEntry = (0, _cache.waitForSegmentCacheEntry)(segmentEntry);
634
- cachedRsc = promiseForFulfilledEntry.then((entry)=>entry !== null ? entry.rsc : null);
635
- // Because the request is still pending, we typically don't know yet
636
- // whether the response will be partial. We shouldn't skip this segment
637
- // during the dynamic navigation request. Otherwise, we might need to
638
- // do yet another request to fill in the remaining data, creating
639
- // a waterfall.
640
- //
641
- // The one exception is if this segment is being fetched with via
642
- // prefetch={true} (i.e. the "force stale" or "full" strategy). If so,
643
- // we can assume the response will be full. This field is set to `false`
644
- // for such segments.
645
- isCachedRscPartial = segmentEntry.isPartial;
646
- break;
647
- }
648
- case _cache.EntryStatus.Empty:
649
- case _cache.EntryStatus.Rejected:
650
- {
651
- break;
652
- }
653
- default:
654
- {
655
- segmentEntry;
656
- break;
657
- }
658
- }
659
- }
660
- // Now combine the cached data with the seed data to determine what we can
661
- // render immediately, versus what needs to stream in later.
662
- // A partial state to show immediately while we wait for the final data to
663
- // arrive. If `rsc` is already a complete value (not partial), or if we
664
- // don't have any useful partial state, this will be `null`.
665
- let prefetchRsc;
666
- // The final, resolved segment data. If the data is missing, this will be a
667
- // promise that resolves to the eventual data. A resolved value of `null`
668
- // means the data failed to load; the LayoutRouter will suspend indefinitely
669
- // until the router updates again (refer to finishNavigationTask).
670
- let rsc;
671
- let doesSegmentNeedDynamicRequest;
672
- if (seedRsc !== null) {
673
- // We already have a dynamic server response for this segment.
674
- if (isCachedRscPartial) {
675
- // The seed data may still be streaming in, so it's worth showing the
676
- // partial cached state in the meantime.
677
- prefetchRsc = cachedRsc;
678
- rsc = seedRsc;
679
- } else {
680
- // We already have a completely cached segment. Ignore the seed data,
681
- // which may still be streaming in. This shouldn't happen in the normal
682
- // case because the client will inform the server which segments are
683
- // already fully cached, and the server will skip rendering them.
684
- prefetchRsc = null;
685
- rsc = cachedRsc;
686
- }
687
- doesSegmentNeedDynamicRequest = false;
688
- } else {
689
- if (isCachedRscPartial) {
690
- // The cached data contains dynamic holes, or it's missing entirely. We'll
691
- // show the partial state immediately (if available), and stream in the
692
- // final data.
693
- //
694
- // Create a pending promise that we can later write to when the
695
- // data arrives from the server.
696
- prefetchRsc = cachedRsc;
697
- rsc = createDeferredRsc();
698
- } else {
699
- // The data is fully cached.
700
- prefetchRsc = null;
701
- rsc = cachedRsc;
702
- }
703
- doesSegmentNeedDynamicRequest = isCachedRscPartial;
704
- }
705
- // If this is a page segment, we need to do the same for the head. This
706
- // follows analogous logic to the segment data above.
707
- // TODO: We don't need to store the head on the page segment's CacheNode; we
708
- // can lift it to the main state object. Then we can also delete
709
- // findHeadCache.
710
- let prefetchHead = null;
711
- let head = null;
712
- let doesHeadNeedDynamicRequest = isPage;
713
- if (isPage) {
714
- let cachedHead = null;
715
- let isCachedHeadPartial = true;
716
- if (metadataVaryPath !== null) {
717
- const metadataEntry = (0, _cache.readSegmentCacheEntry)(now, metadataVaryPath);
718
- if (metadataEntry !== null) {
719
- switch(metadataEntry.status){
720
- case _cache.EntryStatus.Fulfilled:
721
- {
722
- cachedHead = metadataEntry.rsc;
723
- isCachedHeadPartial = metadataEntry.isPartial;
724
- break;
725
- }
726
- case _cache.EntryStatus.Pending:
727
- {
728
- cachedHead = (0, _cache.waitForSegmentCacheEntry)(metadataEntry).then((entry)=>entry !== null ? entry.rsc : null);
729
- isCachedHeadPartial = metadataEntry.isPartial;
730
- break;
731
- }
732
- case _cache.EntryStatus.Empty:
733
- case _cache.EntryStatus.Rejected:
734
- {
735
- break;
736
- }
737
- default:
738
- {
739
- metadataEntry;
740
- break;
741
- }
742
- }
743
- }
744
- }
745
- if (process.env.__NEXT_OPTIMISTIC_ROUTING && isCachedHeadPartial) {
746
- // TODO: When optimistic routing is enabled, don't block on waiting for
747
- // the viewport to resolve. This is a temporary workaround until Vary
748
- // Params are tracked when rendering the metadata. We'll fix it before
749
- // this feature is stable. However, it's not a critical issue because 1)
750
- // it will stream in eventually anyway 2) metadata is wrapped in an
751
- // internal Suspense boundary, so is always non-blocking; this only
752
- // affects the viewport node, which is meant to blocking, however... 3)
753
- // before Segment Cache landed this wasn't always the case, anyway, so
754
- // it's unlikely that many people are relying on this behavior. Still,
755
- // will be fixed before stable. It's the very next step in the sequence of
756
- // work on this project.
757
- //
758
- // This line of code works because the App Router treats `null` as
759
- // "no renderable head available", rather than an empty head. React treats
760
- // an empty string as empty.
761
- cachedHead = '';
762
- }
763
- if (seedHead !== null) {
764
- if (isCachedHeadPartial) {
765
- prefetchHead = cachedHead;
766
- head = seedHead;
767
- } else {
768
- prefetchHead = null;
769
- head = cachedHead;
770
- }
771
- doesHeadNeedDynamicRequest = false;
772
- } else {
773
- if (isCachedHeadPartial) {
774
- prefetchHead = cachedHead;
775
- head = createDeferredRsc();
776
- } else {
777
- prefetchHead = null;
778
- head = cachedHead;
779
- }
780
- doesHeadNeedDynamicRequest = isCachedHeadPartial;
781
- }
782
- }
783
- // Now that we're creating a new segment, write its data to the BFCache. A
784
- // subsequent back/forward navigation will reuse this same data, until or
785
- // unless it's cleared by a refresh/revalidation.
786
- //
787
- // Skip BFCache writes for optimistic navigations since they are transient
788
- // and will be replaced by the canonical navigation.
789
- if (freshness !== 5) {
790
- (0, _bfcache.writeToBFCache)(now, tree.varyPath, rsc, prefetchRsc, head, prefetchHead, dynamicStaleAt);
791
- if (isPage && metadataVaryPath !== null) {
792
- (0, _bfcache.writeHeadToBFCache)(now, metadataVaryPath, head, prefetchHead, dynamicStaleAt);
793
- }
794
- }
795
- return {
796
- cacheNode: createCacheNode(rsc, prefetchRsc, head, prefetchHead),
797
- // TODO: We should store this field on the CacheNode itself. I think we can
798
- // probably unify NavigationTask, CacheNode, and DeferredRsc into a
799
- // single type. Or at least CacheNode and DeferredRsc.
800
- needsDynamicRequest: doesSegmentNeedDynamicRequest || doesHeadNeedDynamicRequest
801
- };
802
- }
803
- function createCacheNode(rsc, prefetchRsc, head, prefetchHead, scrollRef = null) {
804
- return {
805
- rsc,
806
- prefetchRsc,
807
- head,
808
- prefetchHead,
809
- slots: null,
810
- scrollRef
811
- };
812
- }
813
- // Represents whether the previuos navigation resulted in a route tree mismatch.
814
- // A mismatch results in a refresh of the page. If there are two successive
815
- // mismatches, we will fall back to an MPA navigation, to prevent a retry loop.
816
- let previousNavigationDidMismatch = false;
817
- function spawnDynamicRequests(task, primaryUrl, nextUrl, freshnessPolicy, accumulation, // The route cache entry used for this navigation, if it came from route
818
- // prediction. Passed through so it can be marked as having a dynamic rewrite
819
- // if the server returns a different pathname than expected (indicating
820
- // dynamic rewrite behavior that varies by param value).
821
- routeCacheEntry, // The original navigation's push/replace intent. Threaded through to the
822
- // server-patch retry logic so it can inherit the intent if the original
823
- // transition hasn't committed yet.
824
- navigateType) {
825
- const dynamicRequestTree = task.dynamicRequestTree;
826
- if (dynamicRequestTree === null) {
827
- // This navigation was fully cached. There are no dynamic requests to spawn.
828
- previousNavigationDidMismatch = false;
829
- return;
830
- }
831
- // This is intentionally not an async function to discourage the caller from
832
- // awaiting the result. Any subsequent async operations spawned by this
833
- // function should result in a separate navigation task, rather than
834
- // block the original one.
835
- //
836
- // In this function we spawn (but do not await) all the network requests that
837
- // block the navigation, and collect the promises. The next function,
838
- // `finishNavigationTask`, can await the promises in any order without
839
- // accidentally introducing a network waterfall.
840
- const primaryRequestPromise = fetchMissingDynamicData(task, dynamicRequestTree, primaryUrl, nextUrl, freshnessPolicy, routeCacheEntry);
841
- const separateRefreshUrls = accumulation.separateRefreshUrls;
842
- let refreshRequestPromises = null;
843
- if (separateRefreshUrls !== null) {
844
- // There are multiple URLs that we need to request the data from. This
845
- // happens when a "default" parallel route slot is present in the tree, and
846
- // its data cannot be fetched from the current route. We need to split the
847
- // combined dynamic request tree into separate requests per URL.
848
- // TODO: Create a scoped dynamic request tree that omits anything that
849
- // is not relevant to the given URL. Without doing this, the server may
850
- // sometimes render more data than necessary; this is not a regression
851
- // compared to the pre-Segment Cache implementation, though, just an
852
- // optimization we can make in the future.
853
- // Construct a request tree for each additional refresh URL. This will
854
- // prune away everything except the parts of the tree that match the
855
- // given refresh URL.
856
- refreshRequestPromises = [];
857
- const canonicalUrl = (0, _createhreffromurl.createHrefFromUrl)(primaryUrl);
858
- for (const refreshUrl of separateRefreshUrls){
859
- if (refreshUrl === canonicalUrl) {
860
- continue;
861
- }
862
- // TODO: Create a scoped dynamic request tree that omits anything that
863
- // is not relevant to the given URL. Without doing this, the server may
864
- // sometimes render more data than necessary; this is not a regression
865
- // compared to the pre-Segment Cache implementation, though, just an
866
- // optimization we can make in the future.
867
- // const scopedDynamicRequestTree = splitTaskByURL(task, refreshUrl)
868
- const scopedDynamicRequestTree = dynamicRequestTree;
869
- if (scopedDynamicRequestTree !== null) {
870
- refreshRequestPromises.push(fetchMissingDynamicData(task, scopedDynamicRequestTree, new URL(refreshUrl, location.origin), // TODO: Just noticed that this should actually the Next-Url at the
871
- // time the refresh URL was set, not the current Next-Url. Need to
872
- // start tracking this alongside the refresh URL. In the meantime,
873
- // if a refresh fails due to a mismatch, it will trigger a
874
- // hard refresh.
875
- nextUrl, freshnessPolicy, routeCacheEntry));
876
- }
877
- }
878
- }
879
- // Further async operations are moved into this separate function to
880
- // discourage sequential network requests.
881
- const voidPromise = finishNavigationTask(task, nextUrl, primaryRequestPromise, refreshRequestPromises, routeCacheEntry, navigateType);
882
- // `finishNavigationTask` is responsible for error handling, so we can attach
883
- // noop callbacks to this promise.
884
- voidPromise.then(noop, noop);
885
- }
886
- async function finishNavigationTask(task, nextUrl, primaryRequestPromise, refreshRequestPromises, routeCacheEntry, navigateType) {
887
- // Wait for all the requests to finish, or for the first one to fail.
888
- let exitStatus = await waitForRequestsToFinish(primaryRequestPromise, refreshRequestPromises);
889
- // Once the all the requests have finished, check the tree for any remaining
890
- // pending tasks. If anything is still pending, it means the server response
891
- // does not match the client, and we must refresh to get back to a consistent
892
- // state. We can skip this step if we already detected a mismatch during the
893
- // first phase; it doesn't matter in that case because we're going to refresh
894
- // the whole tree regardless.
895
- if (exitStatus === 0) {
896
- exitStatus = abortRemainingPendingTasks(task, null, null);
897
- }
898
- switch(exitStatus){
899
- case 0:
900
- {
901
- // The task has completely finished. There's no missing data. Exit.
902
- previousNavigationDidMismatch = false;
903
- return;
904
- }
905
- case 1:
906
- {
907
- // Some data failed to finish loading. Trigger a soft retry.
908
- // TODO: As an extra precaution against soft retry loops, consider
909
- // tracking whether a navigation was itself triggered by a retry. If two
910
- // happen in a row, fall back to a hard retry.
911
- const isHardRetry = false;
912
- const primaryRequestResult = await primaryRequestPromise;
913
- dispatchRetryDueToTreeMismatch(isHardRetry, primaryRequestResult.url, nextUrl, primaryRequestResult.seed, task.route, routeCacheEntry, navigateType);
914
- return;
915
- }
916
- case 2:
917
- {
918
- // Some data failed to finish loading in a non-recoverable way, such as a
919
- // network error. Trigger an MPA navigation.
920
- //
921
- // Hard navigating/refreshing is how we prevent an infinite retry loop
922
- // caused by a network error — when the network fails, we fall back to the
923
- // browser behavior for offline navigations. In the future, Next.js may
924
- // introduce its own custom handling of offline navigations, but that
925
- // doesn't exist yet.
926
- const isHardRetry = true;
927
- const primaryRequestResult = await primaryRequestPromise;
928
- dispatchRetryDueToTreeMismatch(isHardRetry, primaryRequestResult.url, nextUrl, primaryRequestResult.seed, task.route, routeCacheEntry, navigateType);
929
- return;
930
- }
931
- default:
932
- {
933
- return exitStatus;
934
- }
935
- }
936
- }
937
- function waitForRequestsToFinish(primaryRequestPromise, refreshRequestPromises) {
938
- // Custom async combinator logic. This could be replaced by Promise.any but
939
- // we don't assume that's available.
940
- //
941
- // Each promise resolves once the server responsds and the data is written
942
- // into the CacheNode tree. Resolve the combined promise once all the
943
- // requests finish.
944
- //
945
- // Or, resolve as soon as one of the requests fails, without waiting for the
946
- // others to finish.
947
- return new Promise((resolve)=>{
948
- const onFulfill = (result)=>{
949
- if (result.exitStatus === 0) {
950
- remainingCount--;
951
- if (remainingCount === 0) {
952
- // All the requests finished successfully.
953
- resolve(0);
954
- }
955
- } else {
956
- // One of the requests failed. Exit with a failing status.
957
- // NOTE: It's possible for one of the requests to fail with SoftRetry
958
- // and a later one to fail with HardRetry. In this case, we choose to
959
- // retry immediately, rather than delay the retry until all the requests
960
- // finish. If it fails again, we will hard retry on the next
961
- // attempt, anyway.
962
- resolve(result.exitStatus);
963
- }
964
- };
965
- // onReject shouldn't ever be called because fetchMissingDynamicData's
966
- // entire body is wrapped in a try/catch. This is just defensive.
967
- const onReject = ()=>resolve(2);
968
- // Attach the listeners to the promises.
969
- let remainingCount = 1;
970
- primaryRequestPromise.then(onFulfill, onReject);
971
- if (refreshRequestPromises !== null) {
972
- remainingCount += refreshRequestPromises.length;
973
- refreshRequestPromises.forEach((refreshRequestPromise)=>refreshRequestPromise.then(onFulfill, onReject));
974
- }
975
- });
976
- }
977
- function dispatchRetryDueToTreeMismatch(isHardRetry, retryUrl, retryNextUrl, seed, baseTree, // The route cache entry used for this navigation, if it came from route
978
- // prediction. If the navigation results in a mismatch, we mark it as having
979
- // a dynamic rewrite so future predictions bail out.
980
- routeCacheEntry, // The original navigation's push/replace intent.
981
- originalNavigateType) {
982
- // If the navigation used a route prediction, mark it as having a dynamic
983
- // rewrite since it resulted in a mismatch.
984
- if (routeCacheEntry !== null) {
985
- (0, _cache.markRouteEntryAsDynamicRewrite)(routeCacheEntry);
986
- } else if (seed !== null) {
987
- // Even without a direct reference to the route cache entry, we can still
988
- // mark the route as having a dynamic rewrite by traversing the known route
989
- // tree. This handles cases where the navigation didn't originate from a
990
- // route prediction, but still needs to mark the pattern.
991
- const metadataVaryPath = seed.metadataVaryPath;
992
- if (metadataVaryPath !== null) {
993
- const now = Date.now();
994
- (0, _optimisticroutes.discoverKnownRoute)(now, retryUrl.pathname, retryNextUrl, null, seed.routeTree, metadataVaryPath, false, (0, _createhreffromurl.createHrefFromUrl)(retryUrl), false, true // hasDynamicRewrite
995
- );
996
- }
997
- }
998
- // Invalidate all route cache entries. Other entries may have been derived
999
- // from the template before we knew it had a dynamic rewrite. This also
1000
- // triggers re-prefetching of visible links.
1001
- (0, _cache.invalidateRouteCacheEntries)(retryNextUrl, baseTree);
1002
- // If this is the second time in a row that a navigation resulted in a
1003
- // mismatch, fall back to a hard (MPA) refresh.
1004
- isHardRetry = isHardRetry || previousNavigationDidMismatch;
1005
- previousNavigationDidMismatch = true;
1006
- // If the original navigation hasn't committed to the browser history yet
1007
- // (the transition suspended before React committed), inherit its push/replace
1008
- // intent. Otherwise, the pushState already ran, so use 'replace' to avoid
1009
- // creating a duplicate history entry.
1010
- //
1011
- // This works because React entangles the retry's state update with the
1012
- // original pending transition — they commit together as a single batch,
1013
- // so the navigate type from the retry is what HistoryUpdater ultimately sees.
1014
- //
1015
- // TODO: Ideally this check would happen right before we schedule the React
1016
- // update (i.e., closer to where the action is dispatched into the queue),
1017
- // not here where the action is constructed. But the current action queue
1018
- // doesn't provide a natural place for that. Revisit when we refactor the
1019
- // action queue into a more reactive navigation model.
1020
- const lastCommitted = (0, _committedstate.getLastCommittedTree)();
1021
- const retryNavigateType = lastCommitted !== null && baseTree !== lastCommitted ? originalNavigateType : 'replace';
1022
- const retryAction = {
1023
- type: _routerreducertypes.ACTION_SERVER_PATCH,
1024
- previousTree: baseTree,
1025
- url: retryUrl,
1026
- nextUrl: retryNextUrl,
1027
- seed,
1028
- mpa: isHardRetry,
1029
- navigateType: retryNavigateType
1030
- };
1031
- (0, _useactionqueue.dispatchAppRouterAction)(retryAction);
1032
- }
1033
- async function fetchMissingDynamicData(task, dynamicRequestTree, url, nextUrl, freshnessPolicy, routeCacheEntry) {
1034
- try {
1035
- const result = await (0, _fetchserverresponse.fetchServerResponse)(url, {
1036
- flightRouterState: dynamicRequestTree,
1037
- nextUrl,
1038
- isHmrRefresh: freshnessPolicy === 4
1039
- });
1040
- if (typeof result === 'string') {
1041
- // fetchServerResponse will return an href to indicate that the SPA
1042
- // navigation failed. For example, if the server triggered a hard
1043
- // redirect, or the fetch request errored. Initiate an MPA navigation
1044
- // to the given href.
1045
- return {
1046
- exitStatus: 2,
1047
- url: new URL(result, location.origin),
1048
- seed: null
1049
- };
1050
- }
1051
- const now = Date.now();
1052
- const seed = (0, _navigation.convertServerPatchToFullTree)(now, task.route, result.flightData, result.renderedSearch, result.dynamicStaleTime);
1053
- // If the navigation lock is active, wait for it to be released before
1054
- // writing the dynamic data. This allows tests to assert on the prefetched
1055
- // UI state.
1056
- if (process.env.__NEXT_EXPOSE_TESTING_API) {
1057
- await waitForNavigationLock();
1058
- }
1059
- if (routeCacheEntry !== null && result.staticStageData !== null) {
1060
- const { response: staticStageResponse, isResponsePartial } = result.staticStageData;
1061
- (0, _cache.getStaleAt)(now, staticStageResponse.s).then((staleAt)=>{
1062
- const buildId = result.responseHeaders.get(_constants.NEXT_NAV_DEPLOYMENT_ID_HEADER) ?? staticStageResponse.b;
1063
- (0, _cache.writeStaticStageResponseIntoCache)(now, staticStageResponse.f, buildId, staticStageResponse.h, staleAt, dynamicRequestTree, result.renderedSearch, isResponsePartial);
1064
- }).catch(()=>{
1065
- // The static stage processing failed. Not fatal — the navigation
1066
- // completed normally, we just won't write into the cache.
1067
- });
1068
- }
1069
- if (routeCacheEntry !== null && result.runtimePrefetchStream !== null) {
1070
- (0, _cache.processRuntimePrefetchStream)(now, result.runtimePrefetchStream, dynamicRequestTree, result.renderedSearch).then((processed)=>{
1071
- if (processed !== null) {
1072
- (0, _cache.writeDynamicRenderResponseIntoCache)(now, _types.FetchStrategy.PPRRuntime, processed.flightDatas, processed.buildId, processed.isResponsePartial, processed.headVaryParams, processed.staleAt, processed.navigationSeed, null);
1073
- }
1074
- }).catch(()=>{
1075
- // The runtime prefetch cache write failed. Not fatal — the
1076
- // navigation completed normally, we just won't cache runtime data.
1077
- });
1078
- }
1079
- // result.dynamicStaleTime is in seconds (from the server's `d` field).
1080
- // Convert to an absolute timestamp using the centralized helper.
1081
- const dynamicStaleAt = (0, _bfcache.computeDynamicStaleAt)(now, result.dynamicStaleTime);
1082
- const didReceiveUnknownParallelRoute = writeDynamicDataIntoNavigationTask(task, seed.routeTree, seed.data, seed.head, dynamicStaleAt, result.debugInfo);
1083
- return {
1084
- exitStatus: didReceiveUnknownParallelRoute ? 1 : 0,
1085
- url: new URL(result.canonicalUrl, location.origin),
1086
- seed
1087
- };
1088
- } catch {
1089
- // This shouldn't happen because fetchServerResponse's entire body is
1090
- // wrapped in a try/catch. If it does, though, it implies the server failed
1091
- // to respond with any tree at all. So we must fall back to a hard retry.
1092
- return {
1093
- exitStatus: 2,
1094
- url: url,
1095
- seed: null
1096
- };
1097
- }
1098
- }
1099
- function writeDynamicDataIntoNavigationTask(task, serverRouteTree, dynamicData, dynamicHead, dynamicStaleAt, debugInfo) {
1100
- if (task.status === 0 && dynamicData !== null) {
1101
- task.status = 1;
1102
- finishPendingCacheNode(task.node, dynamicData, dynamicHead, debugInfo);
1103
- // Update the BFCache entry's staleAt for this segment with the value
1104
- // from the dynamic response. This applies the per-page
1105
- // unstable_dynamicStaleTime if set, or the default DYNAMIC_STALETIME_MS.
1106
- // We only update segments that received dynamic data — static segments
1107
- // are unaffected.
1108
- (0, _bfcache.updateBFCacheEntryStaleAt)(serverRouteTree.varyPath, dynamicStaleAt);
1109
- }
1110
- const taskChildren = task.children;
1111
- const serverChildren = serverRouteTree.slots;
1112
- const dynamicDataChildren = dynamicData !== null ? dynamicData[1] : null;
1113
- // Detect whether the server sends a parallel route slot that the client
1114
- // doesn't know about.
1115
- let didReceiveUnknownParallelRoute = false;
1116
- if (taskChildren !== null) {
1117
- if (serverChildren !== null) {
1118
- for(const parallelRouteKey in serverChildren){
1119
- const serverRouteTreeChild = serverChildren[parallelRouteKey];
1120
- const dynamicDataChild = dynamicDataChildren !== null ? dynamicDataChildren[parallelRouteKey] : null;
1121
- const taskChild = taskChildren.get(parallelRouteKey);
1122
- if (taskChild === undefined) {
1123
- // The server sent a child segment that the client doesn't know about.
1124
- //
1125
- // When we receive an unknown parallel route, we must consider it a
1126
- // mismatch. This is unlike the case where the segment itself
1127
- // mismatches, because multiple routes can be active simultaneously.
1128
- // But a given layout should never have a mismatching set of
1129
- // child slots.
1130
- //
1131
- // Theoretically, this should only happen in development during an HMR
1132
- // refresh, because the set of parallel routes for a layout does not
1133
- // change over the lifetime of a build/deployment. In production, we
1134
- // should have already mismatched on either the build id or the segment
1135
- // path. But as an extra precaution, we validate in prod, too.
1136
- didReceiveUnknownParallelRoute = true;
1137
- } else {
1138
- const taskSegment = taskChild.route[0];
1139
- const serverSegment = createSegmentFromRouteTree(serverRouteTreeChild);
1140
- if ((0, _matchsegments.matchSegment)(serverSegment, taskSegment) && dynamicDataChild !== null && dynamicDataChild !== undefined) {
1141
- // Found a match for this task. Keep traversing down the task tree.
1142
- const childDidReceiveUnknownParallelRoute = writeDynamicDataIntoNavigationTask(taskChild, serverRouteTreeChild, dynamicDataChild, dynamicHead, dynamicStaleAt, debugInfo);
1143
- if (childDidReceiveUnknownParallelRoute) {
1144
- didReceiveUnknownParallelRoute = true;
1145
- }
1146
- }
1147
- }
1148
- }
1149
- } else {
1150
- if (serverChildren !== null) {
1151
- // The server sent a child segment that the client doesn't know about.
1152
- didReceiveUnknownParallelRoute = true;
1153
- }
1154
- }
1155
- }
1156
- return didReceiveUnknownParallelRoute;
1157
- }
1158
- function finishPendingCacheNode(cacheNode, dynamicData, dynamicHead, debugInfo) {
1159
- // Writes a dynamic response into an existing Cache Node tree. This does _not_
1160
- // create a new tree, it updates the existing tree in-place. So it must follow
1161
- // the Suspense rules of cache safety — it can resolve pending promises, but
1162
- // it cannot overwrite existing data. It can add segments to the tree (because
1163
- // a missing segment will cause the layout router to suspend).
1164
- // but it cannot delete them.
1165
- //
1166
- // We must resolve every promise in the tree, or else it will suspend
1167
- // indefinitely. If we did not receive data for a segment, we will resolve its
1168
- // data promise to `null` to trigger a lazy fetch during render.
1169
- // Use the dynamic data from the server to fulfill the deferred RSC promise
1170
- // on the Cache Node.
1171
- const rsc = cacheNode.rsc;
1172
- const dynamicSegmentData = dynamicData[0];
1173
- if (dynamicSegmentData === null) {
1174
- // This is an empty CacheNode; this particular server request did not
1175
- // render this segment. There may be a separate pending request that will,
1176
- // though, so we won't abort the task until all pending requests finish.
1177
- return;
1178
- }
1179
- if (rsc === null) {
1180
- // This is a lazy cache node. We can overwrite it. This is only safe
1181
- // because we know that the LayoutRouter suspends if `rsc` is `null`.
1182
- cacheNode.rsc = dynamicSegmentData;
1183
- } else if (isDeferredRsc(rsc)) {
1184
- // This is a deferred RSC promise. We can fulfill it with the data we just
1185
- // received from the server. If it was already resolved by a different
1186
- // navigation, then this does nothing because we can't overwrite data.
1187
- rsc.resolve(dynamicSegmentData, debugInfo);
1188
- } else {
1189
- // This is not a deferred RSC promise, nor is it empty, so it must have
1190
- // been populated by a different navigation. We must not overwrite it.
1191
- }
1192
- // Check if this is a leaf segment. If so, it will have a `head` property with
1193
- // a pending promise that needs to be resolved with the dynamic head from
1194
- // the server.
1195
- const head = cacheNode.head;
1196
- if (isDeferredRsc(head)) {
1197
- head.resolve(dynamicHead, debugInfo);
1198
- }
1199
- }
1200
- function abortRemainingPendingTasks(task, error, debugInfo) {
1201
- let exitStatus;
1202
- if (task.status === 0) {
1203
- // The data for this segment is still missing.
1204
- task.status = 2;
1205
- abortPendingCacheNode(task.node, error, debugInfo);
1206
- // If the server failed to fulfill the data for this segment, it implies
1207
- // that the route tree received from the server mismatched the tree that
1208
- // was previously prefetched.
1209
- //
1210
- // In an app with fully static routes and no proxy-driven redirects or
1211
- // rewrites, this should never happen, because the route for a URL would
1212
- // always be the same across multiple requests. So, this implies that some
1213
- // runtime routing condition changed, likely in a proxy, without being
1214
- // pushed to the client.
1215
- //
1216
- // When this happens, we treat this the same as a refresh(). The entire
1217
- // tree will be re-rendered from the root.
1218
- if (task.refreshState === null) {
1219
- // Trigger a "soft" refresh. Essentially the same as calling `refresh()`
1220
- // in a Server Action.
1221
- exitStatus = 1;
1222
- } else {
1223
- // The mismatch was discovered inside an inactive parallel route. This
1224
- // implies the inactive parallel route is no longer reachable at the URL
1225
- // that originally rendered it. Fall back to an MPA refresh.
1226
- // TODO: An alternative could be to trigger a soft refresh but to _not_
1227
- // re-use the inactive parallel routes this time. Similar to what would
1228
- // happen if were to do a hard refrehs, but without the HTML page.
1229
- exitStatus = 2;
1230
- }
1231
- } else {
1232
- // This segment finished. (An error here is treated as Done because they are
1233
- // surfaced to the application during render.)
1234
- exitStatus = 0;
1235
- }
1236
- const taskChildren = task.children;
1237
- if (taskChildren !== null) {
1238
- for (const [, taskChild] of taskChildren){
1239
- const childExitStatus = abortRemainingPendingTasks(taskChild, error, debugInfo);
1240
- // Propagate the exit status up the tree. The statuses are ordered by
1241
- // their precedence.
1242
- if (childExitStatus > exitStatus) {
1243
- exitStatus = childExitStatus;
1244
- }
1245
- }
1246
- }
1247
- return exitStatus;
1248
- }
1249
- function abortPendingCacheNode(cacheNode, error, debugInfo) {
1250
- const rsc = cacheNode.rsc;
1251
- if (isDeferredRsc(rsc)) {
1252
- if (error === null) {
1253
- // This will trigger a lazy fetch during render.
1254
- rsc.resolve(null, debugInfo);
1255
- } else {
1256
- // This will trigger an error during rendering.
1257
- rsc.reject(error, debugInfo);
1258
- }
1259
- }
1260
- // Check if this is a leaf segment. If so, it will have a `head` property with
1261
- // a pending promise that needs to be resolved. If an error was provided, we
1262
- // will not resolve it with an error, since this is rendered at the root of
1263
- // the app. We want the segment to error, not the entire app.
1264
- const head = cacheNode.head;
1265
- if (isDeferredRsc(head)) {
1266
- head.resolve(null, debugInfo);
1267
- }
1268
- }
1269
- const DEFERRED = Symbol();
1270
- function isDeferredRsc(value) {
1271
- return value && typeof value === 'object' && value.tag === DEFERRED;
1272
- }
1273
- function createDeferredRsc() {
1274
- // Create an unresolved promise that represents data derived from a Flight
1275
- // response. The promise will be resolved later as soon as we start receiving
1276
- // data from the server, i.e. as soon as the Flight client decodes and returns
1277
- // the top-level response object.
1278
- // The `_debugInfo` field contains profiling information. Promises that are
1279
- // created by Flight already have this info added by React; for any derived
1280
- // promise created by the router, we need to transfer the Flight debug info
1281
- // onto the derived promise.
1282
- //
1283
- // The debug info represents the latency between the start of the navigation
1284
- // and the start of rendering. (It does not represent the time it takes for
1285
- // whole stream to finish.)
1286
- const debugInfo = [];
1287
- let resolve;
1288
- let reject;
1289
- const pendingRsc = new Promise((res, rej)=>{
1290
- resolve = res;
1291
- reject = rej;
1292
- });
1293
- pendingRsc.status = 'pending';
1294
- pendingRsc.resolve = (value, responseDebugInfo)=>{
1295
- if (pendingRsc.status === 'pending') {
1296
- const fulfilledRsc = pendingRsc;
1297
- fulfilledRsc.status = 'fulfilled';
1298
- fulfilledRsc.value = value;
1299
- if (responseDebugInfo !== null) {
1300
- // Transfer the debug info to the derived promise.
1301
- debugInfo.push.apply(debugInfo, responseDebugInfo);
1302
- }
1303
- resolve(value);
1304
- }
1305
- };
1306
- pendingRsc.reject = (error, responseDebugInfo)=>{
1307
- if (pendingRsc.status === 'pending') {
1308
- const rejectedRsc = pendingRsc;
1309
- rejectedRsc.status = 'rejected';
1310
- rejectedRsc.reason = error;
1311
- if (responseDebugInfo !== null) {
1312
- // Transfer the debug info to the derived promise.
1313
- debugInfo.push.apply(debugInfo, responseDebugInfo);
1314
- }
1315
- reject(error);
1316
- }
1317
- };
1318
- pendingRsc.tag = DEFERRED;
1319
- pendingRsc._debugInfo = debugInfo;
1320
- return pendingRsc;
1321
- }
1322
- /**
1323
- * Helper for the Instant Navigation Testing API. Waits for the navigation lock
1324
- * to be released before returning. The network request has already completed by
1325
- * the time this is called, so this only delays writing the dynamic data.
1326
- *
1327
- * Not exposed in production builds by default.
1328
- */ async function waitForNavigationLock() {
1329
- if (process.env.__NEXT_EXPOSE_TESTING_API) {
1330
- const { waitForNavigationLockIfActive } = require('../segment-cache/navigation-testing-lock');
1331
- await waitForNavigationLockIfActive();
1332
- }
1333
- }
1334
-
1335
- if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
1336
- Object.defineProperty(exports.default, '__esModule', { value: true });
1337
- Object.assign(exports.default, exports);
1338
- module.exports = exports.default;
1339
- }
1340
-
1341
- //# sourceMappingURL=ppr-navigations.js.map