@taskmark/ui 0.2.0 → 0.2.2

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 (1342) hide show
  1. package/bin/taskmark.js +10 -3
  2. package/dist/standalone/.next/BUILD_ID +1 -1
  3. package/dist/standalone/.next/app-path-routes-manifest.json +2 -2
  4. package/dist/standalone/.next/build-manifest.json +13 -15
  5. package/dist/standalone/.next/react-loadable-manifest.json +8 -0
  6. package/dist/standalone/.next/required-server-files.json +5 -1
  7. package/dist/standalone/.next/server/app/_global-error/page.js +32 -12
  8. package/dist/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  9. package/dist/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -3
  10. package/dist/standalone/.next/server/app/_global-error.html +1 -1
  11. package/dist/standalone/.next/server/app/_global-error.meta +2 -1
  12. package/dist/standalone/.next/server/app/_global-error.rsc +8 -9
  13. package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +8 -9
  14. package/dist/standalone/.next/server/app/_global-error.segments/{__PAGE__.segment.rsc → _global-error/__PAGE__.segment.rsc} +2 -2
  15. package/dist/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  16. package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -4
  17. package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  18. package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/dist/standalone/.next/server/app/_not-found/page.js +2 -15
  20. package/dist/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  21. package/dist/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -3
  22. package/dist/standalone/.next/server/app/_not-found.html +1 -1
  23. package/dist/standalone/.next/server/app/_not-found.rsc +14 -12
  24. package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -12
  25. package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  26. package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
  27. package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  28. package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  29. package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +5 -3
  30. package/dist/standalone/.next/server/app/board/page.js +50 -22
  31. package/dist/standalone/.next/server/app/board/page.js.nft.json +1 -1
  32. package/dist/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -3
  33. package/dist/standalone/.next/server/app/favicon.ico/route.js +1 -6
  34. package/dist/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  35. package/dist/standalone/.next/server/app/page.js +2 -18
  36. package/dist/standalone/.next/server/app/page.js.nft.json +1 -1
  37. package/dist/standalone/.next/server/app/page_client-reference-manifest.js +1 -3
  38. package/dist/standalone/.next/server/app/setup/page.js +2 -20
  39. package/dist/standalone/.next/server/app/setup/page.js.nft.json +1 -1
  40. package/dist/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -3
  41. package/dist/standalone/.next/server/app-paths-manifest.json +2 -2
  42. package/dist/standalone/.next/server/chunks/318.js +1 -0
  43. package/dist/standalone/.next/server/chunks/319.js +45 -0
  44. package/dist/standalone/.next/server/chunks/445.js +18 -0
  45. package/dist/standalone/.next/server/chunks/490.js +8 -0
  46. package/dist/standalone/.next/server/chunks/57.js +19 -0
  47. package/dist/standalone/.next/server/chunks/570.js +1 -0
  48. package/dist/standalone/.next/server/chunks/600.js +1 -0
  49. package/dist/standalone/.next/server/chunks/666.js +1 -0
  50. package/dist/standalone/.next/server/middleware-build-manifest.js +1 -22
  51. package/dist/standalone/.next/server/middleware-manifest.json +2 -2
  52. package/dist/standalone/.next/server/middleware-react-loadable-manifest.js +1 -0
  53. package/dist/standalone/.next/server/next-font-manifest.js +1 -1
  54. package/dist/standalone/.next/server/next-font-manifest.json +1 -23
  55. package/dist/standalone/.next/server/pages/404.html +1 -1
  56. package/dist/standalone/.next/server/pages/500.html +1 -1
  57. package/dist/standalone/.next/server/server-reference-manifest.js +1 -1
  58. package/dist/standalone/.next/server/server-reference-manifest.json +1 -90
  59. package/dist/standalone/.next/server/webpack-runtime.js +1 -0
  60. package/dist/standalone/.next/static/O83kNzYUmJlkfw7SS-SsU/_buildManifest.js +1 -0
  61. package/dist/standalone/.next/static/chunks/4bd1b696-deb4a0a1da1923b0.js +1 -0
  62. package/dist/standalone/.next/static/chunks/669-8103441c67b185da.js +1 -0
  63. package/dist/standalone/.next/static/chunks/701-df3ee5f1cf837b1a.js +1 -0
  64. package/dist/standalone/.next/static/chunks/781-f9f201ddc8c8591a.js +1 -0
  65. package/dist/standalone/.next/static/chunks/794-25668765560cb197.js +32 -0
  66. package/dist/standalone/.next/static/chunks/826.92750d8ed3a55429.js +1 -0
  67. package/dist/standalone/.next/static/chunks/app/_global-error/page-82d456ade9f47021.js +1 -0
  68. package/dist/standalone/.next/static/chunks/app/_not-found/page-0b3785af737e7968.js +1 -0
  69. package/dist/standalone/.next/static/chunks/app/board/page-f609a854d76933c2.js +1 -0
  70. package/dist/standalone/.next/static/chunks/app/layout-3745e06d87691845.js +1 -0
  71. package/dist/standalone/.next/static/chunks/app/page-82d456ade9f47021.js +1 -0
  72. package/dist/standalone/.next/static/chunks/app/setup/page-acaffda2083bf4d0.js +1 -0
  73. package/dist/standalone/.next/static/chunks/framework-b29f9083d3cda3b2.js +1 -0
  74. package/dist/standalone/.next/static/chunks/main-app-bfb36455d24b3e5a.js +1 -0
  75. package/dist/standalone/.next/static/chunks/main-bb33c46a9c25dee8.js +5 -0
  76. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-82d456ade9f47021.js +1 -0
  77. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-82d456ade9f47021.js +1 -0
  78. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/global-error-dc53ab29e0491fe4.js +1 -0
  79. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-82d456ade9f47021.js +1 -0
  80. package/dist/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-82d456ade9f47021.js +1 -0
  81. package/dist/standalone/.next/static/chunks/webpack-f181688592aeb1f6.js +1 -0
  82. package/dist/standalone/.next/static/css/7af268deac5c5edb.css +1 -0
  83. package/dist/standalone/.next/static/css/c593627ceef17a4b.css +1 -0
  84. package/dist/standalone/node_modules/next/dist/compiled/jest-worker/processChild.js +1 -0
  85. package/dist/standalone/node_modules/next/dist/compiled/jest-worker/threadChild.js +1 -0
  86. package/dist/standalone/package.json +9 -7
  87. package/dist/standalone/server.js +1 -1
  88. package/next.config.ts +20 -0
  89. package/package.json +9 -7
  90. package/scripts/build-static.mjs +144 -22
  91. package/tsconfig.json +1 -0
  92. package/tsconfig.snapshot.json +20 -0
  93. package/dist/standalone/.next/server/app/_global-error/page/app-paths-manifest.json +0 -3
  94. package/dist/standalone/.next/server/app/_global-error/page/build-manifest.json +0 -18
  95. package/dist/standalone/.next/server/app/_global-error/page/next-font-manifest.json +0 -6
  96. package/dist/standalone/.next/server/app/_global-error/page/react-loadable-manifest.json +0 -1
  97. package/dist/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +0 -4
  98. package/dist/standalone/.next/server/app/_global-error/page.js.map +0 -5
  99. package/dist/standalone/.next/server/app/_not-found/page/app-paths-manifest.json +0 -3
  100. package/dist/standalone/.next/server/app/_not-found/page/build-manifest.json +0 -18
  101. package/dist/standalone/.next/server/app/_not-found/page/next-font-manifest.json +0 -11
  102. package/dist/standalone/.next/server/app/_not-found/page/react-loadable-manifest.json +0 -1
  103. package/dist/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +0 -4
  104. package/dist/standalone/.next/server/app/_not-found/page.js.map +0 -5
  105. package/dist/standalone/.next/server/app/board/page/app-paths-manifest.json +0 -3
  106. package/dist/standalone/.next/server/app/board/page/build-manifest.json +0 -18
  107. package/dist/standalone/.next/server/app/board/page/next-font-manifest.json +0 -11
  108. package/dist/standalone/.next/server/app/board/page/react-loadable-manifest.json +0 -1
  109. package/dist/standalone/.next/server/app/board/page/server-reference-manifest.json +0 -53
  110. package/dist/standalone/.next/server/app/board/page.js.map +0 -5
  111. package/dist/standalone/.next/server/app/favicon.ico/route/app-paths-manifest.json +0 -3
  112. package/dist/standalone/.next/server/app/favicon.ico/route/build-manifest.json +0 -9
  113. package/dist/standalone/.next/server/app/favicon.ico/route.js.map +0 -5
  114. package/dist/standalone/.next/server/app/page/app-paths-manifest.json +0 -3
  115. package/dist/standalone/.next/server/app/page/build-manifest.json +0 -18
  116. package/dist/standalone/.next/server/app/page/next-font-manifest.json +0 -11
  117. package/dist/standalone/.next/server/app/page/react-loadable-manifest.json +0 -1
  118. package/dist/standalone/.next/server/app/page/server-reference-manifest.json +0 -4
  119. package/dist/standalone/.next/server/app/page.js.map +0 -5
  120. package/dist/standalone/.next/server/app/setup/page/app-paths-manifest.json +0 -3
  121. package/dist/standalone/.next/server/app/setup/page/build-manifest.json +0 -18
  122. package/dist/standalone/.next/server/app/setup/page/next-font-manifest.json +0 -11
  123. package/dist/standalone/.next/server/app/setup/page/react-loadable-manifest.json +0 -1
  124. package/dist/standalone/.next/server/app/setup/page/server-reference-manifest.json +0 -41
  125. package/dist/standalone/.next/server/app/setup/page.js.map +0 -5
  126. package/dist/standalone/.next/server/chunks/[externals]_next_dist_1ce_grm._.js +0 -3
  127. package/dist/standalone/.next/server/chunks/[root-of-the-server]__17cj935._.js +0 -13
  128. package/dist/standalone/.next/server/chunks/[turbopack]_runtime.js +0 -903
  129. package/dist/standalone/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js +0 -3
  130. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__056osos._.js +0 -3
  131. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__09zm1qv._.js +0 -27
  132. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0gn-ti0._.js +0 -3
  133. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0l-18_h._.js +0 -25
  134. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0nqskgw._.js +0 -19
  135. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ocz_42._.js +0 -3
  136. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0op8wkj._.js +0 -3
  137. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0srwu25._.js +0 -33
  138. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0xww6yw._.js +0 -3
  139. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zq2v_u._.js +0 -3
  140. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__12ufd6u._.js +0 -6
  141. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__18cyjiz._.js +0 -3
  142. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ehzjd1._.js +0 -3
  143. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ig72i1._.js +0 -33
  144. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1pyaz1u._.js +0 -3
  145. package/dist/standalone/.next/server/chunks/ssr/[root-of-the-server]__1v-of3u._.js +0 -3
  146. package/dist/standalone/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -903
  147. package/dist/standalone/.next/server/chunks/ssr/_05k6qx-._.js +0 -3
  148. package/dist/standalone/.next/server/chunks/ssr/_0aho3h6._.js +0 -6
  149. package/dist/standalone/.next/server/chunks/ssr/_0xl0vrn._.js +0 -3
  150. package/dist/standalone/.next/server/chunks/ssr/_0yo0u0t._.js +0 -3
  151. package/dist/standalone/.next/server/chunks/ssr/_17p0g27._.js +0 -3
  152. package/dist/standalone/.next/server/chunks/ssr/_1ln4p7u._.js +0 -6
  153. package/dist/standalone/.next/server/chunks/ssr/_1nr_jtr._.js +0 -3
  154. package/dist/standalone/.next/server/chunks/ssr/_1qgmrdc._.js +0 -3
  155. package/dist/standalone/.next/server/chunks/ssr/_1yb3kog._.js +0 -3
  156. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js +0 -3
  157. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js +0 -3
  158. package/dist/standalone/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js +0 -3
  159. package/dist/standalone/.next/server/chunks/ssr/app_board_actions_ts_0f5ys15._.js +0 -3
  160. package/dist/standalone/.next/server/chunks/ssr/components_ui_sonner_tsx_0sk2ett._.js +0 -3
  161. package/dist/standalone/.next/server/chunks/ssr/node_modules_0h91jdk._.js +0 -33
  162. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_0airgni._.js +0 -3
  163. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_0alesp5._.js +0 -3
  164. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_0uboya6._.js +0 -6
  165. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_17i19if._.js +0 -3
  166. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js +0 -3
  167. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js +0 -3
  168. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0-o-goa.js +0 -3
  169. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js +0 -3
  170. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_compiled_@opentelemetry_api_index_1oy1nwh.js +0 -3
  171. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0048lj3.js +0 -4
  172. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_04tpgk4.js +0 -4
  173. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0efvv43.js +0 -4
  174. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_12b3age.js +0 -4
  175. package/dist/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13q04th.js +0 -4
  176. package/dist/standalone/.next/static/chunks/018wh8zp6bjth.js +0 -1
  177. package/dist/standalone/.next/static/chunks/01fxdzfqp-khv.js +0 -1
  178. package/dist/standalone/.next/static/chunks/05-c3ty_6dwfk.js +0 -1
  179. package/dist/standalone/.next/static/chunks/06t7fr3j7axc1.js +0 -1
  180. package/dist/standalone/.next/static/chunks/0g8oss7mvdgy2.js +0 -1
  181. package/dist/standalone/.next/static/chunks/0peppe1niyipd.css +0 -2
  182. package/dist/standalone/.next/static/chunks/0tckbkthn_lz5.js +0 -1
  183. package/dist/standalone/.next/static/chunks/1b4b87nf50pwj.js +0 -1
  184. package/dist/standalone/.next/static/chunks/1etzx8zdgoji7.js +0 -2
  185. package/dist/standalone/.next/static/chunks/1ob9-gyputghy.js +0 -1
  186. package/dist/standalone/.next/static/chunks/27jktro2p5rq9.js +0 -4
  187. package/dist/standalone/.next/static/chunks/2f-_r40xaxdgx.js +0 -1
  188. package/dist/standalone/.next/static/chunks/2im7c515bo69p.js +0 -1
  189. package/dist/standalone/.next/static/chunks/2r5ngr5zaimmw.js +0 -31
  190. package/dist/standalone/.next/static/chunks/2z9l0n877if48.css +0 -1
  191. package/dist/standalone/.next/static/chunks/40bad20ki94w3.js +0 -1
  192. package/dist/standalone/.next/static/chunks/turbopack-3ekz2izuoc92r.js +0 -1
  193. package/dist/standalone/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  194. package/dist/standalone/.next/static/w9yZK-dY-FmU0xmh175u4/_buildManifest.js +0 -11
  195. package/dist/standalone/.next/static/w9yZK-dY-FmU0xmh175u4/_clientMiddlewareManifest.js +0 -1
  196. package/dist/standalone/AGENTS.md +0 -5
  197. package/dist/standalone/CLAUDE.md +0 -1
  198. package/dist/standalone/README.md +0 -86
  199. package/dist/standalone/app/board/actions.ts +0 -62
  200. package/dist/standalone/app/board/page.tsx +0 -284
  201. package/dist/standalone/app/favicon.ico +0 -0
  202. package/dist/standalone/app/globals.css +0 -128
  203. package/dist/standalone/app/layout.tsx +0 -87
  204. package/dist/standalone/app/page.tsx +0 -17
  205. package/dist/standalone/app/setup/actions.ts +0 -113
  206. package/dist/standalone/app/setup/page.tsx +0 -67
  207. package/dist/standalone/bin/lib/resolve-board.mjs +0 -108
  208. package/dist/standalone/bin/taskmark.js +0 -271
  209. package/dist/standalone/components/board/app-bar.tsx +0 -99
  210. package/dist/standalone/components/board/attribution-avatars.tsx +0 -176
  211. package/dist/standalone/components/board/child-progress-bar.tsx +0 -40
  212. package/dist/standalone/components/board/date-tooltip.tsx +0 -93
  213. package/dist/standalone/components/board/detail-children-list.tsx +0 -70
  214. package/dist/standalone/components/board/epic-list.tsx +0 -363
  215. package/dist/standalone/components/board/hide-completed-toggle.tsx +0 -39
  216. package/dist/standalone/components/board/list-filters-bar.tsx +0 -78
  217. package/dist/standalone/components/board/list-pagination.tsx +0 -124
  218. package/dist/standalone/components/board/list-search-box.tsx +0 -59
  219. package/dist/standalone/components/board/list-view-switcher.tsx +0 -74
  220. package/dist/standalone/components/board/markdown-content.tsx +0 -91
  221. package/dist/standalone/components/board/metric-stat-card.tsx +0 -55
  222. package/dist/standalone/components/board/overall-work-items-list.tsx +0 -356
  223. package/dist/standalone/components/board/parent-filter-combobox.tsx +0 -89
  224. package/dist/standalone/components/board/parent-tag-badge.tsx +0 -46
  225. package/dist/standalone/components/board/project-contributors-panel.tsx +0 -86
  226. package/dist/standalone/components/board/project-status-metrics-strip.tsx +0 -90
  227. package/dist/standalone/components/board/sortable-table-head.tsx +0 -69
  228. package/dist/standalone/components/board/static-board-app.tsx +0 -202
  229. package/dist/standalone/components/board/status-badge.tsx +0 -82
  230. package/dist/standalone/components/board/story-list.tsx +0 -336
  231. package/dist/standalone/components/board/tags-multiselect-filter.tsx +0 -70
  232. package/dist/standalone/components/board/task-list.tsx +0 -307
  233. package/dist/standalone/components/board/timeframe-filter.tsx +0 -676
  234. package/dist/standalone/components/board/work-item-detail-body.tsx +0 -392
  235. package/dist/standalone/components/board/work-item-sheet.tsx +0 -637
  236. package/dist/standalone/components/board/work-items-list.tsx +0 -372
  237. package/dist/standalone/components/brand-logo.tsx +0 -39
  238. package/dist/standalone/components/setup/setup-wizard.tsx +0 -180
  239. package/dist/standalone/components/ui/alert-dialog.tsx +0 -187
  240. package/dist/standalone/components/ui/alert.tsx +0 -101
  241. package/dist/standalone/components/ui/avatar.tsx +0 -109
  242. package/dist/standalone/components/ui/badge.tsx +0 -52
  243. package/dist/standalone/components/ui/breadcrumb.tsx +0 -122
  244. package/dist/standalone/components/ui/button.tsx +0 -64
  245. package/dist/standalone/components/ui/calendar.tsx +0 -237
  246. package/dist/standalone/components/ui/card.tsx +0 -103
  247. package/dist/standalone/components/ui/combobox.tsx +0 -297
  248. package/dist/standalone/components/ui/dialog.tsx +0 -159
  249. package/dist/standalone/components/ui/field.tsx +0 -238
  250. package/dist/standalone/components/ui/input-group.tsx +0 -158
  251. package/dist/standalone/components/ui/input.tsx +0 -20
  252. package/dist/standalone/components/ui/item.tsx +0 -201
  253. package/dist/standalone/components/ui/label.tsx +0 -20
  254. package/dist/standalone/components/ui/pagination.tsx +0 -133
  255. package/dist/standalone/components/ui/popover.tsx +0 -90
  256. package/dist/standalone/components/ui/progress.tsx +0 -83
  257. package/dist/standalone/components/ui/resizable.tsx +0 -55
  258. package/dist/standalone/components/ui/select.tsx +0 -199
  259. package/dist/standalone/components/ui/separator.tsx +0 -25
  260. package/dist/standalone/components/ui/sheet.tsx +0 -137
  261. package/dist/standalone/components/ui/sidebar.tsx +0 -723
  262. package/dist/standalone/components/ui/skeleton.tsx +0 -13
  263. package/dist/standalone/components/ui/slider.tsx +0 -56
  264. package/dist/standalone/components/ui/sonner.tsx +0 -54
  265. package/dist/standalone/components/ui/spinner.tsx +0 -17
  266. package/dist/standalone/components/ui/switch.tsx +0 -32
  267. package/dist/standalone/components/ui/table.tsx +0 -116
  268. package/dist/standalone/components/ui/tabs.tsx +0 -82
  269. package/dist/standalone/components/ui/textarea.tsx +0 -18
  270. package/dist/standalone/components/ui/tooltip.tsx +0 -66
  271. package/dist/standalone/components.json +0 -28
  272. package/dist/standalone/eslint.config.mjs +0 -18
  273. package/dist/standalone/hooks/use-mobile.ts +0 -19
  274. package/dist/standalone/hooks/use-paginated-rows.ts +0 -54
  275. package/dist/standalone/hooks/use-persisted-hide-completed.ts +0 -29
  276. package/dist/standalone/hooks/use-table-sort.ts +0 -22
  277. package/dist/standalone/lib/format-date.ts +0 -75
  278. package/dist/standalone/lib/format-duration.ts +0 -72
  279. package/dist/standalone/lib/format-list-date.ts +0 -2
  280. package/dist/standalone/lib/site.ts +0 -8
  281. package/dist/standalone/lib/taskmark/active-project.ts +0 -16
  282. package/dist/standalone/lib/taskmark/autoconfig.ts +0 -118
  283. package/dist/standalone/lib/taskmark/build-snapshot.ts +0 -198
  284. package/dist/standalone/lib/taskmark/constants.ts +0 -43
  285. package/dist/standalone/lib/taskmark/cookies.ts +0 -169
  286. package/dist/standalone/lib/taskmark/count-leaves.ts +0 -204
  287. package/dist/standalone/lib/taskmark/detail-load.ts +0 -180
  288. package/dist/standalone/lib/taskmark/detail-types.ts +0 -131
  289. package/dist/standalone/lib/taskmark/discover.ts +0 -153
  290. package/dist/standalone/lib/taskmark/epic-types.ts +0 -41
  291. package/dist/standalone/lib/taskmark/flat-work-item-types.ts +0 -122
  292. package/dist/standalone/lib/taskmark/frontmatter.ts +0 -45
  293. package/dist/standalone/lib/taskmark/general-epic.ts +0 -25
  294. package/dist/standalone/lib/taskmark/hide-completed-cookie.ts +0 -40
  295. package/dist/standalone/lib/taskmark/identity.ts +0 -182
  296. package/dist/standalone/lib/taskmark/item-types.ts +0 -46
  297. package/dist/standalone/lib/taskmark/list-filters.ts +0 -327
  298. package/dist/standalone/lib/taskmark/list-view-mode.ts +0 -137
  299. package/dist/standalone/lib/taskmark/load-snapshot-server.ts +0 -11
  300. package/dist/standalone/lib/taskmark/pagination.ts +0 -51
  301. package/dist/standalone/lib/taskmark/parse-detail.ts +0 -227
  302. package/dist/standalone/lib/taskmark/parse-epics.ts +0 -153
  303. package/dist/standalone/lib/taskmark/parse-flat-lists.ts +0 -353
  304. package/dist/standalone/lib/taskmark/parse-items.ts +0 -318
  305. package/dist/standalone/lib/taskmark/parse-sections.ts +0 -135
  306. package/dist/standalone/lib/taskmark/parse-stories.ts +0 -237
  307. package/dist/standalone/lib/taskmark/pick-folder.ts +0 -141
  308. package/dist/standalone/lib/taskmark/project-label.ts +0 -11
  309. package/dist/standalone/lib/taskmark/project-metrics-shared.ts +0 -21
  310. package/dist/standalone/lib/taskmark/project-metrics.ts +0 -284
  311. package/dist/standalone/lib/taskmark/projects.ts +0 -55
  312. package/dist/standalone/lib/taskmark/resolve-work-item.ts +0 -219
  313. package/dist/standalone/lib/taskmark/snapshot-client.ts +0 -67
  314. package/dist/standalone/lib/taskmark/snapshot-types.ts +0 -37
  315. package/dist/standalone/lib/taskmark/static-mode.ts +0 -15
  316. package/dist/standalone/lib/taskmark/story-types.ts +0 -46
  317. package/dist/standalone/lib/taskmark/table-sort.ts +0 -344
  318. package/dist/standalone/lib/taskmark/timeframe-filters.ts +0 -258
  319. package/dist/standalone/lib/taskmark/timing.ts +0 -32
  320. package/dist/standalone/lib/taskmark/types.ts +0 -28
  321. package/dist/standalone/lib/taskmark/validate.ts +0 -72
  322. package/dist/standalone/lib/taskmark/workspace.ts +0 -53
  323. package/dist/standalone/lib/utils.ts +0 -6
  324. package/dist/standalone/next.config.ts +0 -19
  325. package/dist/standalone/node_modules/@img/colour/color.cjs +0 -1596
  326. package/dist/standalone/node_modules/@img/colour/index.cjs +0 -1
  327. package/dist/standalone/node_modules/@img/colour/package.json +0 -58
  328. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  329. package/dist/standalone/node_modules/@img/sharp-darwin-arm64/package.json +0 -40
  330. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/README.md +0 -46
  331. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +0 -220
  332. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +0 -1
  333. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  334. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/package.json +0 -36
  335. package/dist/standalone/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +0 -30
  336. package/dist/standalone/node_modules/@next/env/dist/index.js +0 -1
  337. package/dist/standalone/node_modules/@next/env/package.json +0 -35
  338. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +0 -6
  339. package/dist/standalone/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +0 -38
  340. package/dist/standalone/node_modules/@swc/helpers/package.json +0 -471
  341. package/dist/standalone/node_modules/client-only/index.js +0 -0
  342. package/dist/standalone/node_modules/client-only/package.json +0 -19
  343. package/dist/standalone/node_modules/detect-libc/lib/detect-libc.js +0 -313
  344. package/dist/standalone/node_modules/detect-libc/lib/elf.js +0 -39
  345. package/dist/standalone/node_modules/detect-libc/lib/filesystem.js +0 -51
  346. package/dist/standalone/node_modules/detect-libc/lib/process.js +0 -24
  347. package/dist/standalone/node_modules/detect-libc/package.json +0 -44
  348. package/dist/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +0 -15
  349. package/dist/standalone/node_modules/next/dist/build/define-env.js +0 -255
  350. package/dist/standalone/node_modules/next/dist/build/duration-to-string.js +0 -99
  351. package/dist/standalone/node_modules/next/dist/build/get-supported-browsers.js +0 -38
  352. package/dist/standalone/node_modules/next/dist/build/next-config-ts/require-hook.js +0 -85
  353. package/dist/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +0 -251
  354. package/dist/standalone/node_modules/next/dist/build/output/format.js +0 -84
  355. package/dist/standalone/node_modules/next/dist/build/output/log.js +0 -135
  356. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +0 -162
  357. package/dist/standalone/node_modules/next/dist/build/segment-config/app/app-segments.js +0 -137
  358. package/dist/standalone/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +0 -52
  359. package/dist/standalone/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +0 -137
  360. package/dist/standalone/node_modules/next/dist/build/static-paths/app.js +0 -736
  361. package/dist/standalone/node_modules/next/dist/build/static-paths/pages.js +0 -169
  362. package/dist/standalone/node_modules/next/dist/build/static-paths/utils.js +0 -119
  363. package/dist/standalone/node_modules/next/dist/build/swc/helpers.js +0 -15
  364. package/dist/standalone/node_modules/next/dist/build/swc/index.js +0 -1348
  365. package/dist/standalone/node_modules/next/dist/build/swc/install-bindings.js +0 -30
  366. package/dist/standalone/node_modules/next/dist/build/swc/jest-transformer.js +0 -76
  367. package/dist/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +0 -40
  368. package/dist/standalone/node_modules/next/dist/build/swc/options.js +0 -403
  369. package/dist/standalone/node_modules/next/dist/build/swc/types.js +0 -6
  370. package/dist/standalone/node_modules/next/dist/build/utils.js +0 -1216
  371. package/dist/standalone/node_modules/next/dist/cli/next-test.js +0 -170
  372. package/dist/standalone/node_modules/next/dist/client/add-base-path.js +0 -24
  373. package/dist/standalone/node_modules/next/dist/client/app-call-server.js +0 -34
  374. package/dist/standalone/node_modules/next/dist/client/app-find-source-map-url.js +0 -39
  375. package/dist/standalone/node_modules/next/dist/client/assign-location.js +0 -29
  376. package/dist/standalone/node_modules/next/dist/client/components/app-router-announcer.js +0 -78
  377. package/dist/standalone/node_modules/next/dist/client/components/app-router-headers.js +0 -138
  378. package/dist/standalone/node_modules/next/dist/client/components/app-router-instance.js +0 -397
  379. package/dist/standalone/node_modules/next/dist/client/components/app-router-utils.js +0 -62
  380. package/dist/standalone/node_modules/next/dist/client/components/app-router.js +0 -514
  381. package/dist/standalone/node_modules/next/dist/client/components/builtin/default.js +0 -35
  382. package/dist/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +0 -165
  383. package/dist/standalone/node_modules/next/dist/client/components/builtin/global-error.js +0 -100
  384. package/dist/standalone/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +0 -52
  385. package/dist/standalone/node_modules/next/dist/client/components/error-boundary.js +0 -144
  386. package/dist/standalone/node_modules/next/dist/client/components/errors/graceful-degrade-boundary.js +0 -86
  387. package/dist/standalone/node_modules/next/dist/client/components/errors/root-error-boundary.js +0 -41
  388. package/dist/standalone/node_modules/next/dist/client/components/forbidden.js +0 -48
  389. package/dist/standalone/node_modules/next/dist/client/components/handle-isr-error.js +0 -30
  390. package/dist/standalone/node_modules/next/dist/client/components/hooks-server-context.js +0 -42
  391. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js +0 -125
  392. package/dist/standalone/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -72
  393. package/dist/standalone/node_modules/next/dist/client/components/is-next-router-error.js +0 -23
  394. package/dist/standalone/node_modules/next/dist/client/components/links.js +0 -299
  395. package/dist/standalone/node_modules/next/dist/client/components/match-segments.js +0 -32
  396. package/dist/standalone/node_modules/next/dist/client/components/nav-failure-handler.js +0 -61
  397. package/dist/standalone/node_modules/next/dist/client/components/navigation-devtools.js +0 -126
  398. package/dist/standalone/node_modules/next/dist/client/components/navigation-untracked.js +0 -67
  399. package/dist/standalone/node_modules/next/dist/client/components/navigation.js +0 -225
  400. package/dist/standalone/node_modules/next/dist/client/components/navigation.react-server.js +0 -75
  401. package/dist/standalone/node_modules/next/dist/client/components/not-found.js +0 -42
  402. package/dist/standalone/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -41
  403. package/dist/standalone/node_modules/next/dist/client/components/redirect-boundary.js +0 -107
  404. package/dist/standalone/node_modules/next/dist/client/components/redirect-error.js +0 -43
  405. package/dist/standalone/node_modules/next/dist/client/components/redirect-status-code.js +0 -24
  406. package/dist/standalone/node_modules/next/dist/client/components/redirect.js +0 -91
  407. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +0 -201
  408. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-href-from-url.js +0 -21
  409. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +0 -153
  410. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +0 -32
  411. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +0 -457
  412. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +0 -59
  413. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +0 -1341
  414. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +0 -49
  415. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +0 -63
  416. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js +0 -38
  417. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +0 -23
  418. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +0 -56
  419. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +0 -83
  420. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +0 -62
  421. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +0 -320
  422. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +0 -58
  423. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -70
  424. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +0 -66
  425. package/dist/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +0 -66
  426. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +0 -128
  427. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-key.js +0 -28
  428. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache-map.js +0 -305
  429. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +0 -1933
  430. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +0 -152
  431. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +0 -194
  432. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +0 -597
  433. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +0 -543
  434. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/prefetch.js +0 -31
  435. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +0 -1249
  436. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/types.js +0 -69
  437. package/dist/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +0 -278
  438. package/dist/standalone/node_modules/next/dist/client/components/static-generation-bailout.js +0 -42
  439. package/dist/standalone/node_modules/next/dist/client/components/unauthorized.js +0 -49
  440. package/dist/standalone/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -39
  441. package/dist/standalone/node_modules/next/dist/client/components/unresolved-thenable.js +0 -23
  442. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -28
  443. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.js +0 -25
  444. package/dist/standalone/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -32
  445. package/dist/standalone/node_modules/next/dist/client/components/use-action-queue.js +0 -148
  446. package/dist/standalone/node_modules/next/dist/client/dev/debug-channel.js +0 -172
  447. package/dist/standalone/node_modules/next/dist/client/flight-data-helpers.js +0 -232
  448. package/dist/standalone/node_modules/next/dist/client/has-base-path.js +0 -23
  449. package/dist/standalone/node_modules/next/dist/client/lib/console.js +0 -177
  450. package/dist/standalone/node_modules/next/dist/client/lib/javascript-url.js +0 -32
  451. package/dist/standalone/node_modules/next/dist/client/navigation-build-id.js +0 -53
  452. package/dist/standalone/node_modules/next/dist/client/normalize-trailing-slash.js +0 -36
  453. package/dist/standalone/node_modules/next/dist/client/remove-base-path.js +0 -32
  454. package/dist/standalone/node_modules/next/dist/client/route-params.js +0 -247
  455. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +0 -339
  456. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/cookies/package.json +0 -1
  457. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js +0 -46
  458. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/ponyfill/package.json +0 -1
  459. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +0 -1
  460. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/console.js.text.js +0 -1
  461. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/events.js.text.js +0 -1
  462. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js +0 -5
  463. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js +0 -18713
  464. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/package.json +0 -1
  465. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/stream.js +0 -44
  466. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/timers.js.text.js +0 -1
  467. package/dist/standalone/node_modules/next/dist/compiled/@edge-runtime/primitives/url.js.text.js +0 -1
  468. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/index.js +0 -1
  469. package/dist/standalone/node_modules/next/dist/compiled/@hapi/accept/package.json +0 -1
  470. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +0 -1
  471. package/dist/standalone/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json +0 -1
  472. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/index.js +0 -1
  473. package/dist/standalone/node_modules/next/dist/compiled/@napi-rs/triples/package.json +0 -1
  474. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/index.js +0 -1
  475. package/dist/standalone/node_modules/next/dist/compiled/@opentelemetry/api/package.json +0 -1
  476. package/dist/standalone/node_modules/next/dist/compiled/async-retry/index.js +0 -1
  477. package/dist/standalone/node_modules/next/dist/compiled/async-retry/package.json +0 -1
  478. package/dist/standalone/node_modules/next/dist/compiled/async-sema/index.js +0 -1
  479. package/dist/standalone/node_modules/next/dist/compiled/async-sema/package.json +0 -1
  480. package/dist/standalone/node_modules/next/dist/compiled/busboy/index.js +0 -1
  481. package/dist/standalone/node_modules/next/dist/compiled/busboy/package.json +0 -1
  482. package/dist/standalone/node_modules/next/dist/compiled/bytes/index.js +0 -8
  483. package/dist/standalone/node_modules/next/dist/compiled/bytes/package.json +0 -1
  484. package/dist/standalone/node_modules/next/dist/compiled/ci-info/index.js +0 -1
  485. package/dist/standalone/node_modules/next/dist/compiled/ci-info/package.json +0 -1
  486. package/dist/standalone/node_modules/next/dist/compiled/commander/index.js +0 -1
  487. package/dist/standalone/node_modules/next/dist/compiled/commander/package.json +0 -1
  488. package/dist/standalone/node_modules/next/dist/compiled/comment-json/index.js +0 -7
  489. package/dist/standalone/node_modules/next/dist/compiled/comment-json/package.json +0 -1
  490. package/dist/standalone/node_modules/next/dist/compiled/compression/index.js +0 -58
  491. package/dist/standalone/node_modules/next/dist/compiled/compression/package.json +0 -1
  492. package/dist/standalone/node_modules/next/dist/compiled/conf/index.js +0 -15
  493. package/dist/standalone/node_modules/next/dist/compiled/conf/package.json +0 -1
  494. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/index.js +0 -6
  495. package/dist/standalone/node_modules/next/dist/compiled/content-disposition/package.json +0 -1
  496. package/dist/standalone/node_modules/next/dist/compiled/cookie/index.js +0 -7
  497. package/dist/standalone/node_modules/next/dist/compiled/cookie/package.json +0 -1
  498. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/index.js +0 -1
  499. package/dist/standalone/node_modules/next/dist/compiled/cross-spawn/package.json +0 -1
  500. package/dist/standalone/node_modules/next/dist/compiled/debug/index.js +0 -1
  501. package/dist/standalone/node_modules/next/dist/compiled/debug/package.json +0 -1
  502. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/index.js +0 -1
  503. package/dist/standalone/node_modules/next/dist/compiled/edge-runtime/package.json +0 -1
  504. package/dist/standalone/node_modules/next/dist/compiled/find-up/index.js +0 -1
  505. package/dist/standalone/node_modules/next/dist/compiled/find-up/package.json +0 -1
  506. package/dist/standalone/node_modules/next/dist/compiled/fresh/index.js +0 -8
  507. package/dist/standalone/node_modules/next/dist/compiled/fresh/package.json +0 -1
  508. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/index.js +0 -34
  509. package/dist/standalone/node_modules/next/dist/compiled/http-proxy/package.json +0 -1
  510. package/dist/standalone/node_modules/next/dist/compiled/image-detector/detector.js +0 -1
  511. package/dist/standalone/node_modules/next/dist/compiled/image-size/index.js +0 -1
  512. package/dist/standalone/node_modules/next/dist/compiled/image-size/package.json +0 -1
  513. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/ipaddr.js +0 -1
  514. package/dist/standalone/node_modules/next/dist/compiled/ipaddr.js/package.json +0 -1
  515. package/dist/standalone/node_modules/next/dist/compiled/is-animated/index.js +0 -1
  516. package/dist/standalone/node_modules/next/dist/compiled/is-animated/package.json +0 -1
  517. package/dist/standalone/node_modules/next/dist/compiled/is-docker/index.js +0 -1
  518. package/dist/standalone/node_modules/next/dist/compiled/is-docker/package.json +0 -1
  519. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/index.js +0 -1
  520. package/dist/standalone/node_modules/next/dist/compiled/is-wsl/package.json +0 -1
  521. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +0 -11
  522. package/dist/standalone/node_modules/next/dist/compiled/jsonwebtoken/package.json +0 -1
  523. package/dist/standalone/node_modules/next/dist/compiled/nanoid/index.cjs +0 -1
  524. package/dist/standalone/node_modules/next/dist/compiled/nanoid/package.json +0 -1
  525. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +0 -54
  526. package/dist/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +0 -54
  527. package/dist/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +0 -20
  528. package/dist/standalone/node_modules/next/dist/compiled/p-limit/index.js +0 -1
  529. package/dist/standalone/node_modules/next/dist/compiled/p-limit/package.json +0 -1
  530. package/dist/standalone/node_modules/next/dist/compiled/p-queue/index.js +0 -1
  531. package/dist/standalone/node_modules/next/dist/compiled/p-queue/package.json +0 -1
  532. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/index.js +0 -1
  533. package/dist/standalone/node_modules/next/dist/compiled/path-browserify/package.json +0 -1
  534. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -1
  535. package/dist/standalone/node_modules/next/dist/compiled/path-to-regexp/package.json +0 -1
  536. package/dist/standalone/node_modules/next/dist/compiled/picomatch/index.js +0 -1
  537. package/dist/standalone/node_modules/next/dist/compiled/picomatch/package.json +0 -1
  538. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -133
  539. package/dist/standalone/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +0 -130
  540. package/dist/standalone/node_modules/next/dist/compiled/react-is/index.js +0 -7
  541. package/dist/standalone/node_modules/next/dist/compiled/react-is/package.json +0 -26
  542. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/package.json +0 -19
  543. package/dist/standalone/node_modules/next/dist/compiled/regenerator-runtime/runtime.js +0 -729
  544. package/dist/standalone/node_modules/next/dist/compiled/semver/index.js +0 -1
  545. package/dist/standalone/node_modules/next/dist/compiled/semver/package.json +0 -1
  546. package/dist/standalone/node_modules/next/dist/compiled/send/index.js +0 -70
  547. package/dist/standalone/node_modules/next/dist/compiled/send/package.json +0 -1
  548. package/dist/standalone/node_modules/next/dist/compiled/source-map/package.json +0 -1
  549. package/dist/standalone/node_modules/next/dist/compiled/source-map/source-map.js +0 -1
  550. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/package.json +0 -1
  551. package/dist/standalone/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +0 -1
  552. package/dist/standalone/node_modules/next/dist/compiled/string-hash/index.js +0 -1
  553. package/dist/standalone/node_modules/next/dist/compiled/string-hash/package.json +0 -1
  554. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/index.js +0 -1
  555. package/dist/standalone/node_modules/next/dist/compiled/strip-ansi/package.json +0 -1
  556. package/dist/standalone/node_modules/next/dist/compiled/superstruct/index.cjs +0 -1
  557. package/dist/standalone/node_modules/next/dist/compiled/superstruct/package.json +0 -1
  558. package/dist/standalone/node_modules/next/dist/compiled/tar/index.min.js +0 -1
  559. package/dist/standalone/node_modules/next/dist/compiled/tar/package.json +0 -1
  560. package/dist/standalone/node_modules/next/dist/compiled/text-table/index.js +0 -1
  561. package/dist/standalone/node_modules/next/dist/compiled/text-table/package.json +0 -1
  562. package/dist/standalone/node_modules/next/dist/compiled/watchpack/package.json +0 -1
  563. package/dist/standalone/node_modules/next/dist/compiled/watchpack/watchpack.js +0 -1
  564. package/dist/standalone/node_modules/next/dist/compiled/ws/index.js +0 -1
  565. package/dist/standalone/node_modules/next/dist/compiled/ws/package.json +0 -1
  566. package/dist/standalone/node_modules/next/dist/compiled/zod/index.cjs +0 -1
  567. package/dist/standalone/node_modules/next/dist/compiled/zod/package.json +0 -1
  568. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/index.js +0 -1
  569. package/dist/standalone/node_modules/next/dist/compiled/zod-validation-error/package.json +0 -1
  570. package/dist/standalone/node_modules/next/dist/experimental/testmode/context.js +0 -57
  571. package/dist/standalone/node_modules/next/dist/experimental/testmode/fetch.js +0 -142
  572. package/dist/standalone/node_modules/next/dist/experimental/testmode/httpget.js +0 -26
  573. package/dist/standalone/node_modules/next/dist/experimental/testmode/server-edge.js +0 -32
  574. package/dist/standalone/node_modules/next/dist/experimental/testmode/server.js +0 -62
  575. package/dist/standalone/node_modules/next/dist/export/helpers/create-incremental-cache.js +0 -61
  576. package/dist/standalone/node_modules/next/dist/lib/batcher.js +0 -65
  577. package/dist/standalone/node_modules/next/dist/lib/build-custom-route.js +0 -46
  578. package/dist/standalone/node_modules/next/dist/lib/bundler.js +0 -97
  579. package/dist/standalone/node_modules/next/dist/lib/client-and-server-references.js +0 -54
  580. package/dist/standalone/node_modules/next/dist/lib/coalesced-function.js +0 -39
  581. package/dist/standalone/node_modules/next/dist/lib/compile-error.js +0 -14
  582. package/dist/standalone/node_modules/next/dist/lib/constants.js +0 -420
  583. package/dist/standalone/node_modules/next/dist/lib/create-client-router-filter.js +0 -67
  584. package/dist/standalone/node_modules/next/dist/lib/default-transpiled-packages.json +0 -1
  585. package/dist/standalone/node_modules/next/dist/lib/detached-promise.js +0 -32
  586. package/dist/standalone/node_modules/next/dist/lib/detect-typo.js +0 -51
  587. package/dist/standalone/node_modules/next/dist/lib/download-swc.js +0 -183
  588. package/dist/standalone/node_modules/next/dist/lib/error-telemetry-utils.js +0 -42
  589. package/dist/standalone/node_modules/next/dist/lib/fallback.js +0 -100
  590. package/dist/standalone/node_modules/next/dist/lib/fatal-error.js +0 -14
  591. package/dist/standalone/node_modules/next/dist/lib/file-exists.js +0 -53
  592. package/dist/standalone/node_modules/next/dist/lib/find-config.js +0 -102
  593. package/dist/standalone/node_modules/next/dist/lib/find-pages-dir.js +0 -65
  594. package/dist/standalone/node_modules/next/dist/lib/find-root.js +0 -126
  595. package/dist/standalone/node_modules/next/dist/lib/format-cli-help-output.js +0 -84
  596. package/dist/standalone/node_modules/next/dist/lib/format-dynamic-import-path.js +0 -24
  597. package/dist/standalone/node_modules/next/dist/lib/format-server-error.js +0 -75
  598. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-components.js +0 -62
  599. package/dist/standalone/node_modules/next/dist/lib/framework/boundary-constants.js +0 -36
  600. package/dist/standalone/node_modules/next/dist/lib/fs/rename.js +0 -87
  601. package/dist/standalone/node_modules/next/dist/lib/fs/write-atomic.js +0 -28
  602. package/dist/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -52
  603. package/dist/standalone/node_modules/next/dist/lib/get-files-in-dir.js +0 -33
  604. package/dist/standalone/node_modules/next/dist/lib/get-network-host.js +0 -44
  605. package/dist/standalone/node_modules/next/dist/lib/get-package-version.js +0 -118
  606. package/dist/standalone/node_modules/next/dist/lib/get-project-dir.js +0 -51
  607. package/dist/standalone/node_modules/next/dist/lib/has-necessary-dependencies.js +0 -49
  608. package/dist/standalone/node_modules/next/dist/lib/helpers/get-cache-directory.js +0 -66
  609. package/dist/standalone/node_modules/next/dist/lib/helpers/get-npx-command.js +0 -29
  610. package/dist/standalone/node_modules/next/dist/lib/helpers/get-online.js +0 -50
  611. package/dist/standalone/node_modules/next/dist/lib/helpers/get-pkg-manager.js +0 -63
  612. package/dist/standalone/node_modules/next/dist/lib/helpers/get-registry.js +0 -45
  613. package/dist/standalone/node_modules/next/dist/lib/helpers/get-reserved-port.js +0 -116
  614. package/dist/standalone/node_modules/next/dist/lib/helpers/install.js +0 -83
  615. package/dist/standalone/node_modules/next/dist/lib/import-next-warning.js +0 -50
  616. package/dist/standalone/node_modules/next/dist/lib/inline-static-env.js +0 -112
  617. package/dist/standalone/node_modules/next/dist/lib/install-dependencies.js +0 -40
  618. package/dist/standalone/node_modules/next/dist/lib/interop-default.js +0 -16
  619. package/dist/standalone/node_modules/next/dist/lib/is-api-route.js +0 -15
  620. package/dist/standalone/node_modules/next/dist/lib/is-app-page-route.js +0 -15
  621. package/dist/standalone/node_modules/next/dist/lib/is-app-route-route.js +0 -15
  622. package/dist/standalone/node_modules/next/dist/lib/is-edge-runtime.js +0 -16
  623. package/dist/standalone/node_modules/next/dist/lib/is-error.js +0 -78
  624. package/dist/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +0 -18
  625. package/dist/standalone/node_modules/next/dist/lib/is-internal-component.js +0 -36
  626. package/dist/standalone/node_modules/next/dist/lib/is-serializable-props.js +0 -106
  627. package/dist/standalone/node_modules/next/dist/lib/known-edge-safe-packages.json +0 -1
  628. package/dist/standalone/node_modules/next/dist/lib/load-custom-routes.js +0 -594
  629. package/dist/standalone/node_modules/next/dist/lib/memory/gc-observer.js +0 -53
  630. package/dist/standalone/node_modules/next/dist/lib/memory/shutdown.js +0 -29
  631. package/dist/standalone/node_modules/next/dist/lib/memory/startup.js +0 -47
  632. package/dist/standalone/node_modules/next/dist/lib/memory/trace.js +0 -109
  633. package/dist/standalone/node_modules/next/dist/lib/metadata/constants.js +0 -40
  634. package/dist/standalone/node_modules/next/dist/lib/metadata/default-metadata.js +0 -82
  635. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/icon-mark.js +0 -22
  636. package/dist/standalone/node_modules/next/dist/lib/metadata/generate/utils.js +0 -52
  637. package/dist/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +0 -123
  638. package/dist/standalone/node_modules/next/dist/lib/metadata/is-metadata-route.js +0 -221
  639. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata-context.js +0 -18
  640. package/dist/standalone/node_modules/next/dist/lib/metadata/metadata.js +0 -1686
  641. package/dist/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +0 -884
  642. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-basics.js +0 -232
  643. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-icons.js +0 -56
  644. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-opengraph.js +0 -199
  645. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-title.js +0 -40
  646. package/dist/standalone/node_modules/next/dist/lib/metadata/resolvers/resolve-url.js +0 -135
  647. package/dist/standalone/node_modules/next/dist/lib/metadata/types/alternative-urls-types.js +0 -7
  648. package/dist/standalone/node_modules/next/dist/lib/metadata/types/extra-types.js +0 -9
  649. package/dist/standalone/node_modules/next/dist/lib/metadata/types/icons.js +0 -6
  650. package/dist/standalone/node_modules/next/dist/lib/metadata/types/manifest-types.js +0 -6
  651. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-interface.js +0 -18
  652. package/dist/standalone/node_modules/next/dist/lib/metadata/types/metadata-types.js +0 -10
  653. package/dist/standalone/node_modules/next/dist/lib/metadata/types/opengraph-types.js +0 -6
  654. package/dist/standalone/node_modules/next/dist/lib/metadata/types/resolvers.js +0 -6
  655. package/dist/standalone/node_modules/next/dist/lib/metadata/types/twitter-types.js +0 -7
  656. package/dist/standalone/node_modules/next/dist/lib/mime-type.js +0 -20
  657. package/dist/standalone/node_modules/next/dist/lib/mkcert.js +0 -204
  658. package/dist/standalone/node_modules/next/dist/lib/multi-file-writer.js +0 -75
  659. package/dist/standalone/node_modules/next/dist/lib/needs-experimental-react.js +0 -16
  660. package/dist/standalone/node_modules/next/dist/lib/non-nullable.js +0 -15
  661. package/dist/standalone/node_modules/next/dist/lib/normalize-path.js +0 -21
  662. package/dist/standalone/node_modules/next/dist/lib/oxford-comma-list.js +0 -15
  663. package/dist/standalone/node_modules/next/dist/lib/page-types.js +0 -18
  664. package/dist/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +0 -185
  665. package/dist/standalone/node_modules/next/dist/lib/pick.js +0 -19
  666. package/dist/standalone/node_modules/next/dist/lib/picocolors.js +0 -177
  667. package/dist/standalone/node_modules/next/dist/lib/pretty-bytes.js +0 -74
  668. package/dist/standalone/node_modules/next/dist/lib/realpath.js +0 -20
  669. package/dist/standalone/node_modules/next/dist/lib/recursive-copy.js +0 -76
  670. package/dist/standalone/node_modules/next/dist/lib/recursive-delete.js +0 -137
  671. package/dist/standalone/node_modules/next/dist/lib/recursive-readdir.js +0 -124
  672. package/dist/standalone/node_modules/next/dist/lib/redirect-status.js +0 -46
  673. package/dist/standalone/node_modules/next/dist/lib/require-instrumentation-client.js +0 -26
  674. package/dist/standalone/node_modules/next/dist/lib/resolve-build-paths.js +0 -154
  675. package/dist/standalone/node_modules/next/dist/lib/resolve-from.js +0 -65
  676. package/dist/standalone/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -107
  677. package/dist/standalone/node_modules/next/dist/lib/scheduler.js +0 -64
  678. package/dist/standalone/node_modules/next/dist/lib/semver-noop.js +0 -18
  679. package/dist/standalone/node_modules/next/dist/lib/server-external-packages.jsonc +0 -103
  680. package/dist/standalone/node_modules/next/dist/lib/setup-exception-listeners.js +0 -11
  681. package/dist/standalone/node_modules/next/dist/lib/static-env.js +0 -92
  682. package/dist/standalone/node_modules/next/dist/lib/try-to-parse-path.js +0 -67
  683. package/dist/standalone/node_modules/next/dist/lib/turbopack-warning.js +0 -185
  684. package/dist/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +0 -243
  685. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +0 -153
  686. package/dist/standalone/node_modules/next/dist/lib/typescript/getTypeScriptIntent.js +0 -52
  687. package/dist/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +0 -27
  688. package/dist/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +0 -149
  689. package/dist/standalone/node_modules/next/dist/lib/typescript/type-paths.js +0 -51
  690. package/dist/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +0 -75
  691. package/dist/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +0 -395
  692. package/dist/standalone/node_modules/next/dist/lib/url.js +0 -75
  693. package/dist/standalone/node_modules/next/dist/lib/verify-partytown-setup.js +0 -115
  694. package/dist/standalone/node_modules/next/dist/lib/verify-root-layout.js +0 -165
  695. package/dist/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +0 -228
  696. package/dist/standalone/node_modules/next/dist/lib/wait.js +0 -19
  697. package/dist/standalone/node_modules/next/dist/lib/with-promise-cache.js +0 -24
  698. package/dist/standalone/node_modules/next/dist/lib/worker.js +0 -234
  699. package/dist/standalone/node_modules/next/dist/server/ReactDOMServerPages.js +0 -16
  700. package/dist/standalone/node_modules/next/dist/server/accept-header.js +0 -132
  701. package/dist/standalone/node_modules/next/dist/server/after/after-context.js +0 -140
  702. package/dist/standalone/node_modules/next/dist/server/after/after.js +0 -26
  703. package/dist/standalone/node_modules/next/dist/server/after/awaiter.js +0 -74
  704. package/dist/standalone/node_modules/next/dist/server/after/builtin-request-context.js +0 -38
  705. package/dist/standalone/node_modules/next/dist/server/after/index.js +0 -21
  706. package/dist/standalone/node_modules/next/dist/server/after/run-with-after.js +0 -35
  707. package/dist/standalone/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -22
  708. package/dist/standalone/node_modules/next/dist/server/api-utils/index.js +0 -201
  709. package/dist/standalone/node_modules/next/dist/server/api-utils/node/api-resolver.js +0 -395
  710. package/dist/standalone/node_modules/next/dist/server/api-utils/node/parse-body.js +0 -79
  711. package/dist/standalone/node_modules/next/dist/server/api-utils/node/try-get-preview-data.js +0 -86
  712. package/dist/standalone/node_modules/next/dist/server/api-utils/web.js +0 -17
  713. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -14
  714. package/dist/standalone/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -13
  715. package/dist/standalone/node_modules/next/dist/server/app-render/action-handler.js +0 -1027
  716. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +0 -14
  717. package/dist/standalone/node_modules/next/dist/server/app-render/after-task-async-storage.external.js +0 -13
  718. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -167
  719. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +0 -76
  720. package/dist/standalone/node_modules/next/dist/server/app-render/app-render-scheduling.js +0 -188
  721. package/dist/standalone/node_modules/next/dist/server/app-render/app-render.js +0 -4522
  722. package/dist/standalone/node_modules/next/dist/server/app-render/async-local-storage.js +0 -76
  723. package/dist/standalone/node_modules/next/dist/server/app-render/cache-signal.js +0 -181
  724. package/dist/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +0 -616
  725. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage-instance.js +0 -14
  726. package/dist/standalone/node_modules/next/dist/server/app-render/console-async-storage.external.js +0 -13
  727. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +0 -33
  728. package/dist/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +0 -870
  729. package/dist/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +0 -189
  730. package/dist/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +0 -102
  731. package/dist/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +0 -86
  732. package/dist/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +0 -30
  733. package/dist/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +0 -71
  734. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +0 -14
  735. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +0 -13
  736. package/dist/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -1144
  737. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils-server.js +0 -114
  738. package/dist/standalone/node_modules/next/dist/server/app-render/encryption-utils.js +0 -93
  739. package/dist/standalone/node_modules/next/dist/server/app-render/encryption.js +0 -259
  740. package/dist/standalone/node_modules/next/dist/server/app-render/entry-base.js +0 -256
  741. package/dist/standalone/node_modules/next/dist/server/app-render/flight-render-result.js +0 -28
  742. package/dist/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +0 -29
  743. package/dist/standalone/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +0 -49
  744. package/dist/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +0 -65
  745. package/dist/standalone/node_modules/next/dist/server/app-render/get-preloadable-fonts.js +0 -39
  746. package/dist/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +0 -32
  747. package/dist/standalone/node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js +0 -25
  748. package/dist/standalone/node_modules/next/dist/server/app-render/has-loading-component-in-tree.js +0 -19
  749. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +0 -13
  750. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-impl.js +0 -103
  751. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +0 -18
  752. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +0 -181
  753. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +0 -128
  754. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +0 -432
  755. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +0 -33
  756. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation.js +0 -713
  757. package/dist/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +0 -96
  758. package/dist/standalone/node_modules/next/dist/server/app-render/interop-default.js +0 -17
  759. package/dist/standalone/node_modules/next/dist/server/app-render/make-get-server-inserted-html.js +0 -92
  760. package/dist/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +0 -264
  761. package/dist/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +0 -29
  762. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-dynamic-import.js +0 -57
  763. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js +0 -32
  764. package/dist/standalone/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +0 -66
  765. package/dist/standalone/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +0 -49
  766. package/dist/standalone/node_modules/next/dist/server/app-render/postponed-state.js +0 -157
  767. package/dist/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +0 -74
  768. package/dist/standalone/node_modules/next/dist/server/app-render/react-large-shell-error.js +0 -17
  769. package/dist/standalone/node_modules/next/dist/server/app-render/react-server.node.js +0 -39
  770. package/dist/standalone/node_modules/next/dist/server/app-render/render-css-resource.js +0 -52
  771. package/dist/standalone/node_modules/next/dist/server/app-render/required-scripts.js +0 -76
  772. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/postpone.js +0 -18
  773. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/preloads.js +0 -74
  774. package/dist/standalone/node_modules/next/dist/server/app-render/rsc/taint.js +0 -79
  775. package/dist/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +0 -128
  776. package/dist/standalone/node_modules/next/dist/server/app-render/server-inserted-html.js +0 -77
  777. package/dist/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +0 -343
  778. package/dist/standalone/node_modules/next/dist/server/app-render/stale-time.js +0 -111
  779. package/dist/standalone/node_modules/next/dist/server/app-render/stream-ops.js +0 -106
  780. package/dist/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +0 -163
  781. package/dist/standalone/node_modules/next/dist/server/app-render/strip-flight-headers.js +0 -18
  782. package/dist/standalone/node_modules/next/dist/server/app-render/types.js +0 -65
  783. package/dist/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +0 -214
  784. package/dist/standalone/node_modules/next/dist/server/app-render/vary-params.js +0 -336
  785. package/dist/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +0 -232
  786. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -14
  787. package/dist/standalone/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -13
  788. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -14
  789. package/dist/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -280
  790. package/dist/standalone/node_modules/next/dist/server/async-storage/draft-mode-provider.js +0 -62
  791. package/dist/standalone/node_modules/next/dist/server/async-storage/request-store.js +0 -144
  792. package/dist/standalone/node_modules/next/dist/server/async-storage/with-store.js +0 -6
  793. package/dist/standalone/node_modules/next/dist/server/async-storage/work-store.js +0 -92
  794. package/dist/standalone/node_modules/next/dist/server/base-http/helpers.js +0 -36
  795. package/dist/standalone/node_modules/next/dist/server/base-http/index.js +0 -54
  796. package/dist/standalone/node_modules/next/dist/server/base-http/node.js +0 -147
  797. package/dist/standalone/node_modules/next/dist/server/base-http/web.js +0 -124
  798. package/dist/standalone/node_modules/next/dist/server/base-server.js +0 -1882
  799. package/dist/standalone/node_modules/next/dist/server/body-streams.js +0 -114
  800. package/dist/standalone/node_modules/next/dist/server/cache-dir.js +0 -26
  801. package/dist/standalone/node_modules/next/dist/server/capsize-font-metrics.json +0 -181516
  802. package/dist/standalone/node_modules/next/dist/server/ci-info.js +0 -41
  803. package/dist/standalone/node_modules/next/dist/server/client-component-renderer-logger.js +0 -70
  804. package/dist/standalone/node_modules/next/dist/server/config-schema.js +0 -727
  805. package/dist/standalone/node_modules/next/dist/server/config-shared.js +0 -369
  806. package/dist/standalone/node_modules/next/dist/server/config-utils.js +0 -185
  807. package/dist/standalone/node_modules/next/dist/server/config.js +0 -1545
  808. package/dist/standalone/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.js +0 -96
  809. package/dist/standalone/node_modules/next/dist/server/crypto-utils.js +0 -70
  810. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +0 -186
  811. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +0 -558
  812. package/dist/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +0 -222
  813. package/dist/standalone/node_modules/next/dist/server/dev/debug-channel.js +0 -87
  814. package/dist/standalone/node_modules/next/dist/server/dev/dev-indicator-server-state.js +0 -15
  815. package/dist/standalone/node_modules/next/dist/server/dev/get-source-map-from-file.js +0 -100
  816. package/dist/standalone/node_modules/next/dist/server/dev/hot-middleware.js +0 -274
  817. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-rspack.js +0 -171
  818. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-shared-utils.js +0 -56
  819. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +0 -1480
  820. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-types.js +0 -58
  821. package/dist/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +0 -1386
  822. package/dist/standalone/node_modules/next/dist/server/dev/log-requests.js +0 -149
  823. package/dist/standalone/node_modules/next/dist/server/dev/messages.js +0 -74
  824. package/dist/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +0 -403
  825. package/dist/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +0 -483
  826. package/dist/standalone/node_modules/next/dist/server/dev/node-stack-frames.js +0 -72
  827. package/dist/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +0 -773
  828. package/dist/standalone/node_modules/next/dist/server/dev/parse-version-info.js +0 -108
  829. package/dist/standalone/node_modules/next/dist/server/dev/require-cache.js +0 -79
  830. package/dist/standalone/node_modules/next/dist/server/dev/serialized-errors.js +0 -67
  831. package/dist/standalone/node_modules/next/dist/server/dev/server-action-logger.js +0 -37
  832. package/dist/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +0 -105
  833. package/dist/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +0 -687
  834. package/dist/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -108
  835. package/dist/standalone/node_modules/next/dist/server/font-utils.js +0 -43
  836. package/dist/standalone/node_modules/next/dist/server/get-app-route-from-entrypoint.js +0 -30
  837. package/dist/standalone/node_modules/next/dist/server/get-page-files.js +0 -23
  838. package/dist/standalone/node_modules/next/dist/server/get-route-from-entrypoint.js +0 -35
  839. package/dist/standalone/node_modules/next/dist/server/image-optimizer.js +0 -1240
  840. package/dist/standalone/node_modules/next/dist/server/instrumentation/types.js +0 -6
  841. package/dist/standalone/node_modules/next/dist/server/instrumentation/utils.js +0 -21
  842. package/dist/standalone/node_modules/next/dist/server/internal-utils.js +0 -39
  843. package/dist/standalone/node_modules/next/dist/server/is-private-ip.js +0 -36
  844. package/dist/standalone/node_modules/next/dist/server/lib/app-dir-module.js +0 -59
  845. package/dist/standalone/node_modules/next/dist/server/lib/app-info-log.js +0 -132
  846. package/dist/standalone/node_modules/next/dist/server/lib/async-callback-set.js +0 -29
  847. package/dist/standalone/node_modules/next/dist/server/lib/cache-control.js +0 -22
  848. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.external.js +0 -18
  849. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/default.js +0 -160
  850. package/dist/standalone/node_modules/next/dist/server/lib/cache-handlers/types.js +0 -8
  851. package/dist/standalone/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +0 -116
  852. package/dist/standalone/node_modules/next/dist/server/lib/clone-response.js +0 -77
  853. package/dist/standalone/node_modules/next/dist/server/lib/cpu-profile.js +0 -59
  854. package/dist/standalone/node_modules/next/dist/server/lib/decode-query-path-parameter.js +0 -26
  855. package/dist/standalone/node_modules/next/dist/server/lib/dedupe-fetch.js +0 -163
  856. package/dist/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +0 -95
  857. package/dist/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +0 -57
  858. package/dist/standalone/node_modules/next/dist/server/lib/encode-cache-tag.js +0 -45
  859. package/dist/standalone/node_modules/next/dist/server/lib/etag.js +0 -56
  860. package/dist/standalone/node_modules/next/dist/server/lib/experimental/create-env-definitions.js +0 -48
  861. package/dist/standalone/node_modules/next/dist/server/lib/experimental/ppr.js +0 -47
  862. package/dist/standalone/node_modules/next/dist/server/lib/find-page-file.js +0 -147
  863. package/dist/standalone/node_modules/next/dist/server/lib/fix-mojibake.js +0 -25
  864. package/dist/standalone/node_modules/next/dist/server/lib/format-hostname.js +0 -16
  865. package/dist/standalone/node_modules/next/dist/server/lib/i18n-provider.js +0 -129
  866. package/dist/standalone/node_modules/next/dist/server/lib/implicit-tags.js +0 -80
  867. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +0 -335
  868. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +0 -501
  869. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +0 -57
  870. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js +0 -73
  871. package/dist/standalone/node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js +0 -55
  872. package/dist/standalone/node_modules/next/dist/server/lib/install-code-frame.js +0 -22
  873. package/dist/standalone/node_modules/next/dist/server/lib/is-ipv6.js +0 -41
  874. package/dist/standalone/node_modules/next/dist/server/lib/is-rsc-request.js +0 -18
  875. package/dist/standalone/node_modules/next/dist/server/lib/lazy-result.js +0 -46
  876. package/dist/standalone/node_modules/next/dist/server/lib/lru-cache.js +0 -191
  877. package/dist/standalone/node_modules/next/dist/server/lib/match-next-data-pathname.js +0 -18
  878. package/dist/standalone/node_modules/next/dist/server/lib/mock-request.js +0 -441
  879. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/module-loader.js +0 -8
  880. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +0 -25
  881. package/dist/standalone/node_modules/next/dist/server/lib/module-loader/route-module-loader.js +0 -26
  882. package/dist/standalone/node_modules/next/dist/server/lib/node-fs-methods.js +0 -28
  883. package/dist/standalone/node_modules/next/dist/server/lib/parse-stack.js +0 -46
  884. package/dist/standalone/node_modules/next/dist/server/lib/patch-fetch.js +0 -982
  885. package/dist/standalone/node_modules/next/dist/server/lib/patch-set-header.js +0 -45
  886. package/dist/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +0 -64
  887. package/dist/standalone/node_modules/next/dist/server/lib/render-server.js +0 -155
  888. package/dist/standalone/node_modules/next/dist/server/lib/router-server.js +0 -699
  889. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +0 -110
  890. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-data-route.js +0 -48
  891. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -50
  892. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +0 -211
  893. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +0 -42
  894. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +0 -591
  895. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +0 -89
  896. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +0 -96
  897. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -16
  898. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/proxy-request.js +0 -118
  899. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +0 -643
  900. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +0 -286
  901. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/router-server-context.js +0 -26
  902. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +0 -858
  903. package/dist/standalone/node_modules/next/dist/server/lib/router-utils/types.js +0 -6
  904. package/dist/standalone/node_modules/next/dist/server/lib/server-action-request-meta.js +0 -53
  905. package/dist/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +0 -83
  906. package/dist/standalone/node_modules/next/dist/server/lib/source-maps.js +0 -196
  907. package/dist/standalone/node_modules/next/dist/server/lib/streaming-metadata.js +0 -38
  908. package/dist/standalone/node_modules/next/dist/server/lib/to-route.js +0 -37
  909. package/dist/standalone/node_modules/next/dist/server/lib/trace/constants.js +0 -203
  910. package/dist/standalone/node_modules/next/dist/server/lib/trace/tracer.js +0 -280
  911. package/dist/standalone/node_modules/next/dist/server/lib/trace/utils.js +0 -16
  912. package/dist/standalone/node_modules/next/dist/server/lib/types.js +0 -6
  913. package/dist/standalone/node_modules/next/dist/server/lib/utils.js +0 -278
  914. package/dist/standalone/node_modules/next/dist/server/lib/worker-utils.js +0 -36
  915. package/dist/standalone/node_modules/next/dist/server/load-components.js +0 -179
  916. package/dist/standalone/node_modules/next/dist/server/load-default-error-components.js +0 -41
  917. package/dist/standalone/node_modules/next/dist/server/load-manifest.external.js +0 -117
  918. package/dist/standalone/node_modules/next/dist/server/match-bundle.js +0 -25
  919. package/dist/standalone/node_modules/next/dist/server/mcp/get-mcp-middleware.js +0 -49
  920. package/dist/standalone/node_modules/next/dist/server/mcp/get-or-create-mcp-server.js +0 -41
  921. package/dist/standalone/node_modules/next/dist/server/mcp/mcp-telemetry-tracker.js +0 -82
  922. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +0 -114
  923. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +0 -67
  924. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +0 -188
  925. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +0 -59
  926. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +0 -136
  927. package/dist/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +0 -121
  928. package/dist/standalone/node_modules/next/dist/server/mcp/tools/next-instance-error-state.js +0 -31
  929. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +0 -90
  930. package/dist/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +0 -137
  931. package/dist/standalone/node_modules/next/dist/server/next-typescript.js +0 -13
  932. package/dist/standalone/node_modules/next/dist/server/node-environment-baseline.js +0 -25
  933. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +0 -301
  934. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-exit.js +0 -49
  935. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/console-file.js +0 -56
  936. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +0 -52
  937. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/error-inspect.js +0 -8
  938. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +0 -577
  939. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +0 -33
  940. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/io-utils.js +0 -195
  941. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +0 -103
  942. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +0 -91
  943. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +0 -28
  944. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +0 -508
  945. package/dist/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +0 -45
  946. package/dist/standalone/node_modules/next/dist/server/node-environment.js +0 -19
  947. package/dist/standalone/node_modules/next/dist/server/node-polyfill-crypto.js +0 -21
  948. package/dist/standalone/node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js +0 -33
  949. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js +0 -54
  950. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js +0 -22
  951. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +0 -40
  952. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js +0 -55
  953. package/dist/standalone/node_modules/next/dist/server/normalizers/built/app/index.js +0 -42
  954. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/index.js +0 -44
  955. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js +0 -55
  956. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js +0 -22
  957. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js +0 -19
  958. package/dist/standalone/node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js +0 -19
  959. package/dist/standalone/node_modules/next/dist/server/normalizers/locale-route-normalizer.js +0 -26
  960. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizer.js +0 -6
  961. package/dist/standalone/node_modules/next/dist/server/normalizers/normalizers.js +0 -23
  962. package/dist/standalone/node_modules/next/dist/server/normalizers/prefixing-normalizer.js +0 -26
  963. package/dist/standalone/node_modules/next/dist/server/normalizers/request/base-path.js +0 -25
  964. package/dist/standalone/node_modules/next/dist/server/normalizers/request/next-data.js +0 -38
  965. package/dist/standalone/node_modules/next/dist/server/normalizers/request/pathname-normalizer.js +0 -6
  966. package/dist/standalone/node_modules/next/dist/server/normalizers/request/prefix.js +0 -39
  967. package/dist/standalone/node_modules/next/dist/server/normalizers/request/rsc.js +0 -19
  968. package/dist/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +0 -33
  969. package/dist/standalone/node_modules/next/dist/server/normalizers/request/suffix.js +0 -27
  970. package/dist/standalone/node_modules/next/dist/server/normalizers/underscore-normalizer.js +0 -17
  971. package/dist/standalone/node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js +0 -17
  972. package/dist/standalone/node_modules/next/dist/server/og/image-response.js +0 -53
  973. package/dist/standalone/node_modules/next/dist/server/patch-error-inspect.js +0 -453
  974. package/dist/standalone/node_modules/next/dist/server/pipe-readable.js +0 -140
  975. package/dist/standalone/node_modules/next/dist/server/post-process.js +0 -39
  976. package/dist/standalone/node_modules/next/dist/server/render-result.js +0 -204
  977. package/dist/standalone/node_modules/next/dist/server/render.js +0 -1148
  978. package/dist/standalone/node_modules/next/dist/server/request/connection.js +0 -133
  979. package/dist/standalone/node_modules/next/dist/server/request/cookies.js +0 -235
  980. package/dist/standalone/node_modules/next/dist/server/request/draft-mode.js +0 -230
  981. package/dist/standalone/node_modules/next/dist/server/request/fallback-params.js +0 -95
  982. package/dist/standalone/node_modules/next/dist/server/request/headers.js +0 -229
  983. package/dist/standalone/node_modules/next/dist/server/request/params.js +0 -527
  984. package/dist/standalone/node_modules/next/dist/server/request/pathname.js +0 -119
  985. package/dist/standalone/node_modules/next/dist/server/request/root-params.js +0 -194
  986. package/dist/standalone/node_modules/next/dist/server/request/search-params.js +0 -526
  987. package/dist/standalone/node_modules/next/dist/server/request/utils.js +0 -51
  988. package/dist/standalone/node_modules/next/dist/server/request-meta.js +0 -55
  989. package/dist/standalone/node_modules/next/dist/server/require.js +0 -109
  990. package/dist/standalone/node_modules/next/dist/server/response-cache/index.js +0 -311
  991. package/dist/standalone/node_modules/next/dist/server/response-cache/types.js +0 -41
  992. package/dist/standalone/node_modules/next/dist/server/response-cache/utils.js +0 -104
  993. package/dist/standalone/node_modules/next/dist/server/response-cache/web.js +0 -101
  994. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +0 -96
  995. package/dist/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +0 -124
  996. package/dist/standalone/node_modules/next/dist/server/revalidation-utils.js +0 -157
  997. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-page-route-definition.js +0 -16
  998. package/dist/standalone/node_modules/next/dist/server/route-definitions/app-route-route-definition.js +0 -6
  999. package/dist/standalone/node_modules/next/dist/server/route-definitions/locale-route-definition.js +0 -6
  1000. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-api-route-definition.js +0 -6
  1001. package/dist/standalone/node_modules/next/dist/server/route-definitions/pages-route-definition.js +0 -6
  1002. package/dist/standalone/node_modules/next/dist/server/route-definitions/route-definition.js +0 -6
  1003. package/dist/standalone/node_modules/next/dist/server/route-kind.js +0 -32
  1004. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +0 -239
  1005. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +0 -120
  1006. package/dist/standalone/node_modules/next/dist/server/route-matcher-managers/route-matcher-manager.js +0 -6
  1007. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +0 -55
  1008. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +0 -43
  1009. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +0 -91
  1010. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +0 -112
  1011. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +0 -77
  1012. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +0 -77
  1013. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +0 -28
  1014. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +0 -106
  1015. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +0 -42
  1016. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/file-reader.js +0 -6
  1017. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +0 -30
  1018. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/manifest-loader.js +0 -6
  1019. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +0 -34
  1020. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +0 -20
  1021. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +0 -21
  1022. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +0 -55
  1023. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +0 -64
  1024. package/dist/standalone/node_modules/next/dist/server/route-matcher-providers/route-matcher-provider.js +0 -6
  1025. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +0 -18
  1026. package/dist/standalone/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +0 -15
  1027. package/dist/standalone/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +0 -68
  1028. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +0 -30
  1029. package/dist/standalone/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +0 -30
  1030. package/dist/standalone/node_modules/next/dist/server/route-matchers/route-matcher.js +0 -54
  1031. package/dist/standalone/node_modules/next/dist/server/route-matches/app-page-route-match.js +0 -6
  1032. package/dist/standalone/node_modules/next/dist/server/route-matches/app-route-route-match.js +0 -6
  1033. package/dist/standalone/node_modules/next/dist/server/route-matches/locale-route-match.js +0 -6
  1034. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-api-route-match.js +0 -16
  1035. package/dist/standalone/node_modules/next/dist/server/route-matches/pages-route-match.js +0 -6
  1036. package/dist/standalone/node_modules/next/dist/server/route-matches/route-match.js +0 -6
  1037. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +0 -51
  1038. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +0 -162
  1039. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/module.render.js +0 -24
  1040. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +0 -25
  1041. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js +0 -4
  1042. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js +0 -87
  1043. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js +0 -4
  1044. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js +0 -4
  1045. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js +0 -4
  1046. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js +0 -4
  1047. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js +0 -4
  1048. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +0 -140
  1049. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.js +0 -4
  1050. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-dom.js +0 -4
  1051. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.js +0 -4
  1052. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.js +0 -4
  1053. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server.js +0 -4
  1054. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static.js +0 -4
  1055. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server.js +0 -4
  1056. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static.js +0 -4
  1057. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/react.js +0 -4
  1058. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +0 -125
  1059. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.js +0 -4
  1060. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom-server.js +0 -4
  1061. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-dom.js +0 -4
  1062. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.js +0 -4
  1063. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js +0 -4
  1064. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.js +0 -4
  1065. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client.js +0 -4
  1066. package/dist/standalone/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js +0 -4
  1067. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/auto-implement-methods.js +0 -85
  1068. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/clean-url.js +0 -24
  1069. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/get-pathname-from-absolute-path.js +0 -29
  1070. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/is-static-gen-enabled.js +0 -15
  1071. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/helpers/parsed-url-query-to-params.js +0 -20
  1072. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.compiled.js +0 -36
  1073. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +0 -915
  1074. package/dist/standalone/node_modules/next/dist/server/route-modules/app-route/shared-modules.js +0 -56
  1075. package/dist/standalone/node_modules/next/dist/server/route-modules/checks.js +0 -45
  1076. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/builtin/_error.js +0 -100
  1077. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.js +0 -92
  1078. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/module.render.js +0 -24
  1079. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +0 -545
  1080. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js +0 -4
  1081. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js +0 -102
  1082. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js +0 -4
  1083. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js +0 -4
  1084. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js +0 -4
  1085. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js +0 -4
  1086. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js +0 -4
  1087. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js +0 -4
  1088. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js +0 -4
  1089. package/dist/standalone/node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js +0 -4
  1090. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js +0 -20
  1091. package/dist/standalone/node_modules/next/dist/server/route-modules/pages-api/module.js +0 -58
  1092. package/dist/standalone/node_modules/next/dist/server/route-modules/route-module.js +0 -660
  1093. package/dist/standalone/node_modules/next/dist/server/runtime-reacts.external.js +0 -46
  1094. package/dist/standalone/node_modules/next/dist/server/send-payload.js +0 -88
  1095. package/dist/standalone/node_modules/next/dist/server/send-response.js +0 -70
  1096. package/dist/standalone/node_modules/next/dist/server/serve-static.js +0 -66
  1097. package/dist/standalone/node_modules/next/dist/server/server-route-utils.js +0 -30
  1098. package/dist/standalone/node_modules/next/dist/server/server-utils.js +0 -340
  1099. package/dist/standalone/node_modules/next/dist/server/setup-http-agent-env.js +0 -31
  1100. package/dist/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +0 -122
  1101. package/dist/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +0 -918
  1102. package/dist/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +0 -74
  1103. package/dist/standalone/node_modules/next/dist/server/typescript/constant.js +0 -98
  1104. package/dist/standalone/node_modules/next/dist/server/typescript/index.js +0 -199
  1105. package/dist/standalone/node_modules/next/dist/server/typescript/rules/client-boundary.js +0 -97
  1106. package/dist/standalone/node_modules/next/dist/server/typescript/rules/config.js +0 -512
  1107. package/dist/standalone/node_modules/next/dist/server/typescript/rules/entry.js +0 -149
  1108. package/dist/standalone/node_modules/next/dist/server/typescript/rules/error.js +0 -38
  1109. package/dist/standalone/node_modules/next/dist/server/typescript/rules/metadata.js +0 -234
  1110. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server-boundary.js +0 -115
  1111. package/dist/standalone/node_modules/next/dist/server/typescript/rules/server.js +0 -79
  1112. package/dist/standalone/node_modules/next/dist/server/typescript/utils.js +0 -212
  1113. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-life.js +0 -163
  1114. package/dist/standalone/node_modules/next/dist/server/use-cache/cache-tag.js +0 -52
  1115. package/dist/standalone/node_modules/next/dist/server/use-cache/constants.js +0 -28
  1116. package/dist/standalone/node_modules/next/dist/server/use-cache/handlers.js +0 -121
  1117. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-errors.js +0 -36
  1118. package/dist/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +0 -1588
  1119. package/dist/standalone/node_modules/next/dist/server/utils.js +0 -73
  1120. package/dist/standalone/node_modules/next/dist/server/web/adapter.js +0 -395
  1121. package/dist/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +0 -124
  1122. package/dist/standalone/node_modules/next/dist/server/web/error.js +0 -54
  1123. package/dist/standalone/node_modules/next/dist/server/web/exports/index.js +0 -56
  1124. package/dist/standalone/node_modules/next/dist/server/web/get-edge-preview-props.js +0 -23
  1125. package/dist/standalone/node_modules/next/dist/server/web/globals.js +0 -128
  1126. package/dist/standalone/node_modules/next/dist/server/web/http.js +0 -39
  1127. package/dist/standalone/node_modules/next/dist/server/web/internal-edge-wait-until.js +0 -64
  1128. package/dist/standalone/node_modules/next/dist/server/web/next-url.js +0 -199
  1129. package/dist/standalone/node_modules/next/dist/server/web/sandbox/context.js +0 -462
  1130. package/dist/standalone/node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js +0 -35
  1131. package/dist/standalone/node_modules/next/dist/server/web/sandbox/index.js +0 -28
  1132. package/dist/standalone/node_modules/next/dist/server/web/sandbox/resource-managers.js +0 -88
  1133. package/dist/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +0 -137
  1134. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -192
  1135. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +0 -142
  1136. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +0 -30
  1137. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -211
  1138. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/cookies.js +0 -29
  1139. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/fetch-event.js +0 -98
  1140. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/image-response.js +0 -22
  1141. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/request.js +0 -99
  1142. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/response.js +0 -136
  1143. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/revalidate.js +0 -215
  1144. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-cache.js +0 -293
  1145. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/unstable-no-store.js +0 -51
  1146. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/url-pattern.js +0 -14
  1147. package/dist/standalone/node_modules/next/dist/server/web/spec-extension/user-agent.js +0 -46
  1148. package/dist/standalone/node_modules/next/dist/server/web/types.js +0 -6
  1149. package/dist/standalone/node_modules/next/dist/server/web/utils.js +0 -151
  1150. package/dist/standalone/node_modules/next/dist/server/web/web-on-close.js +0 -87
  1151. package/dist/standalone/node_modules/next/dist/shared/lib/action-revalidation-kind.js +0 -31
  1152. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -50
  1153. package/dist/standalone/node_modules/next/dist/shared/lib/app-router-types.js +0 -46
  1154. package/dist/standalone/node_modules/next/dist/shared/lib/constants.js +0 -448
  1155. package/dist/standalone/node_modules/next/dist/shared/lib/deep-freeze.js +0 -30
  1156. package/dist/standalone/node_modules/next/dist/shared/lib/deployment-id.js +0 -63
  1157. package/dist/standalone/node_modules/next/dist/shared/lib/dset.js +0 -34
  1158. package/dist/standalone/node_modules/next/dist/shared/lib/encode-uri-path.js +0 -15
  1159. package/dist/standalone/node_modules/next/dist/shared/lib/entry-constants.js +0 -36
  1160. package/dist/standalone/node_modules/next/dist/shared/lib/error-source.js +0 -36
  1161. package/dist/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +0 -39
  1162. package/dist/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +0 -20
  1163. package/dist/standalone/node_modules/next/dist/shared/lib/errors/constants.js +0 -19
  1164. package/dist/standalone/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +0 -24
  1165. package/dist/standalone/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +0 -20
  1166. package/dist/standalone/node_modules/next/dist/shared/lib/escape-regexp.js +0 -22
  1167. package/dist/standalone/node_modules/next/dist/shared/lib/get-hostname.js +0 -23
  1168. package/dist/standalone/node_modules/next/dist/shared/lib/hash.js +0 -42
  1169. package/dist/standalone/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -18
  1170. package/dist/standalone/node_modules/next/dist/shared/lib/head.js +0 -163
  1171. package/dist/standalone/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -60
  1172. package/dist/standalone/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +0 -40
  1173. package/dist/standalone/node_modules/next/dist/shared/lib/htmlescape.js +0 -52
  1174. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -25
  1175. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js +0 -59
  1176. package/dist/standalone/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -54
  1177. package/dist/standalone/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -22
  1178. package/dist/standalone/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -19
  1179. package/dist/standalone/node_modules/next/dist/shared/lib/image-config.js +0 -77
  1180. package/dist/standalone/node_modules/next/dist/shared/lib/invariant-error.js +0 -18
  1181. package/dist/standalone/node_modules/next/dist/shared/lib/is-plain-object.js +0 -42
  1182. package/dist/standalone/node_modules/next/dist/shared/lib/is-thenable.js +0 -20
  1183. package/dist/standalone/node_modules/next/dist/shared/lib/isomorphic/path.js +0 -14
  1184. package/dist/standalone/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -37
  1185. package/dist/standalone/node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js +0 -19
  1186. package/dist/standalone/node_modules/next/dist/shared/lib/loadable.shared-runtime.js +0 -246
  1187. package/dist/standalone/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -46
  1188. package/dist/standalone/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -63
  1189. package/dist/standalone/node_modules/next/dist/shared/lib/modern-browserslist-target.js +0 -15
  1190. package/dist/standalone/node_modules/next/dist/shared/lib/no-fallback-error.external.js +0 -18
  1191. package/dist/standalone/node_modules/next/dist/shared/lib/normalized-asset-prefix.js +0 -28
  1192. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js +0 -26
  1193. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -18
  1194. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -18
  1195. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/get-page-paths.js +0 -40
  1196. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js +0 -23
  1197. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js +0 -26
  1198. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -19
  1199. package/dist/standalone/node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js +0 -20
  1200. package/dist/standalone/node_modules/next/dist/shared/lib/promise-with-resolvers.js +0 -26
  1201. package/dist/standalone/node_modules/next/dist/shared/lib/router/adapters.js +0 -136
  1202. package/dist/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +0 -134
  1203. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -28
  1204. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -20
  1205. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -20
  1206. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -62
  1207. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js +0 -17
  1208. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +0 -70
  1209. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +0 -16
  1210. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -27
  1211. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -111
  1212. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -174
  1213. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -52
  1214. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js +0 -25
  1215. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -90
  1216. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/html-bots.js +0 -17
  1217. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/index.js +0 -30
  1218. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -33
  1219. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -108
  1220. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -57
  1221. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -26
  1222. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js +0 -31
  1223. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -30
  1224. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -33
  1225. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
  1226. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -38
  1227. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -20
  1228. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -49
  1229. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -292
  1230. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -79
  1231. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/relativize-url.js +0 -40
  1232. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -39
  1233. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -21
  1234. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -116
  1235. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -113
  1236. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -45
  1237. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -256
  1238. package/dist/standalone/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -244
  1239. package/dist/standalone/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -18
  1240. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +0 -99
  1241. package/dist/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +0 -32
  1242. package/dist/standalone/node_modules/next/dist/shared/lib/segment.js +0 -102
  1243. package/dist/standalone/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -35
  1244. package/dist/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +0 -56
  1245. package/dist/standalone/node_modules/next/dist/shared/lib/side-effect.js +0 -63
  1246. package/dist/standalone/node_modules/next/dist/shared/lib/size-limit.js +0 -40
  1247. package/dist/standalone/node_modules/next/dist/shared/lib/turbopack/internal-error.js +0 -53
  1248. package/dist/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +0 -69
  1249. package/dist/standalone/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -22
  1250. package/dist/standalone/node_modules/next/dist/shared/lib/utils.js +0 -207
  1251. package/dist/standalone/node_modules/next/dist/shared/lib/zod.js +0 -101
  1252. package/dist/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +0 -89
  1253. package/dist/standalone/node_modules/next/dist/telemetry/detached-flush.js +0 -56
  1254. package/dist/standalone/node_modules/next/dist/telemetry/events/build.js +0 -174
  1255. package/dist/standalone/node_modules/next/dist/telemetry/events/index.js +0 -41
  1256. package/dist/standalone/node_modules/next/dist/telemetry/events/plugins.js +0 -51
  1257. package/dist/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +0 -55
  1258. package/dist/standalone/node_modules/next/dist/telemetry/events/version.js +0 -66
  1259. package/dist/standalone/node_modules/next/dist/telemetry/flush-telemetry.js +0 -19
  1260. package/dist/standalone/node_modules/next/dist/telemetry/post-telemetry-payload.js +0 -48
  1261. package/dist/standalone/node_modules/next/dist/telemetry/project-id.js +0 -48
  1262. package/dist/standalone/node_modules/next/dist/telemetry/storage.js +0 -301
  1263. package/dist/standalone/node_modules/next/dist/trace/index.js +0 -58
  1264. package/dist/standalone/node_modules/next/dist/trace/report/index.js +0 -37
  1265. package/dist/standalone/node_modules/next/dist/trace/report/to-json-build.js +0 -40
  1266. package/dist/standalone/node_modules/next/dist/trace/report/to-json.js +0 -165
  1267. package/dist/standalone/node_modules/next/dist/trace/report/to-telemetry.js +0 -36
  1268. package/dist/standalone/node_modules/next/dist/trace/shared.js +0 -39
  1269. package/dist/standalone/node_modules/next/dist/trace/trace.js +0 -211
  1270. package/dist/standalone/node_modules/next/package.json +0 -136
  1271. package/dist/standalone/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
  1272. package/dist/standalone/node_modules/react/cjs/react-jsx-dev-runtime.production.js +0 -14
  1273. package/dist/standalone/node_modules/react/cjs/react-jsx-runtime.production.js +0 -34
  1274. package/dist/standalone/node_modules/react/cjs/react.production.js +0 -542
  1275. package/dist/standalone/node_modules/react/compiler-runtime.js +0 -14
  1276. package/dist/standalone/node_modules/react/index.js +0 -7
  1277. package/dist/standalone/node_modules/react/jsx-dev-runtime.js +0 -7
  1278. package/dist/standalone/node_modules/react/jsx-runtime.js +0 -7
  1279. package/dist/standalone/node_modules/react/package.json +0 -51
  1280. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -6603
  1281. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +0 -6692
  1282. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -7410
  1283. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +0 -7512
  1284. package/dist/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +0 -7707
  1285. package/dist/standalone/node_modules/react-dom/cjs/react-dom.production.js +0 -210
  1286. package/dist/standalone/node_modules/react-dom/index.js +0 -38
  1287. package/dist/standalone/node_modules/react-dom/package.json +0 -117
  1288. package/dist/standalone/node_modules/react-dom/server.browser.js +0 -16
  1289. package/dist/standalone/node_modules/react-dom/server.edge.js +0 -17
  1290. package/dist/standalone/node_modules/react-dom/server.node.js +0 -18
  1291. package/dist/standalone/node_modules/react-dom/static.node.js +0 -14
  1292. package/dist/standalone/node_modules/sharp/lib/channel.js +0 -177
  1293. package/dist/standalone/node_modules/sharp/lib/colour.js +0 -195
  1294. package/dist/standalone/node_modules/sharp/lib/composite.js +0 -212
  1295. package/dist/standalone/node_modules/sharp/lib/constructor.js +0 -499
  1296. package/dist/standalone/node_modules/sharp/lib/index.js +0 -16
  1297. package/dist/standalone/node_modules/sharp/lib/input.js +0 -809
  1298. package/dist/standalone/node_modules/sharp/lib/is.js +0 -143
  1299. package/dist/standalone/node_modules/sharp/lib/libvips.js +0 -207
  1300. package/dist/standalone/node_modules/sharp/lib/operation.js +0 -1016
  1301. package/dist/standalone/node_modules/sharp/lib/output.js +0 -1666
  1302. package/dist/standalone/node_modules/sharp/lib/resize.js +0 -595
  1303. package/dist/standalone/node_modules/sharp/lib/sharp.js +0 -121
  1304. package/dist/standalone/node_modules/sharp/lib/utility.js +0 -291
  1305. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/comparator.js +0 -143
  1306. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/range.js +0 -577
  1307. package/dist/standalone/node_modules/sharp/node_modules/semver/classes/semver.js +0 -350
  1308. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/cmp.js +0 -54
  1309. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/coerce.js +0 -62
  1310. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/compare.js +0 -7
  1311. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/eq.js +0 -5
  1312. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gt.js +0 -5
  1313. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/gte.js +0 -5
  1314. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lt.js +0 -5
  1315. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/lte.js +0 -5
  1316. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/neq.js +0 -5
  1317. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/parse.js +0 -18
  1318. package/dist/standalone/node_modules/sharp/node_modules/semver/functions/satisfies.js +0 -12
  1319. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/constants.js +0 -37
  1320. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/debug.js +0 -11
  1321. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/identifiers.js +0 -29
  1322. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/lrucache.js +0 -42
  1323. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/parse-options.js +0 -17
  1324. package/dist/standalone/node_modules/sharp/node_modules/semver/internal/re.js +0 -223
  1325. package/dist/standalone/node_modules/sharp/node_modules/semver/package.json +0 -78
  1326. package/dist/standalone/node_modules/sharp/package.json +0 -202
  1327. package/dist/standalone/node_modules/styled-jsx/dist/index/index.js +0 -499
  1328. package/dist/standalone/package-lock.json +0 -11991
  1329. package/dist/standalone/postcss.config.mjs +0 -7
  1330. package/dist/standalone/scripts/build-static.mjs +0 -169
  1331. package/dist/standalone/scripts/prepare-standalone.mjs +0 -50
  1332. package/dist/standalone/scripts/write-board-snapshot.ts +0 -20
  1333. package/dist/standalone/tsconfig.json +0 -34
  1334. package/dist/standalone/tsconfig.tsbuildinfo +0 -1
  1335. package/dist/standalone/yarn.lock +0 -5321
  1336. /package/dist/standalone/.next/static/{w9yZK-dY-FmU0xmh175u4 → O83kNzYUmJlkfw7SS-SsU}/_ssgManifest.js +0 -0
  1337. /package/dist/standalone/.next/static/chunks/{0cz1d0mv5g_q7.js → polyfills-42372ed130431b0a.js} +0 -0
  1338. /package/dist/standalone/.next/static/media/{0c89a48fa5027cee-s.p.2cyn07wtgehh0.woff2 → 36966cca54120369-s.p.woff2} +0 -0
  1339. /package/dist/standalone/.next/static/media/{5e4d537aaa9e154b-s.p.1ewykk74tw0il.woff2 → 982ceffe7b733b3b-s.p.woff2} +0 -0
  1340. /package/dist/standalone/.next/static/media/{28868e710e86be81-s.2eksvhm1z0jwa.woff2 → b7387a63dd068245-s.woff2} +0 -0
  1341. /package/dist/standalone/.next/static/media/{316b6682b406c2db-s.1_k7aq_c5drf2.woff2 → b8bfb68ab9ab617c-s.woff2} +0 -0
  1342. /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