@semiont/frontend 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/package.json +1 -1
  2. package/standalone/apps/frontend/.next/BUILD_ID +1 -1
  3. package/standalone/apps/frontend/.next/app-path-routes-manifest.json +5 -5
  4. package/standalone/apps/frontend/.next/build-manifest.json +6 -6
  5. package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
  6. package/standalone/apps/frontend/.next/react-loadable-manifest.json +2 -2
  7. package/standalone/apps/frontend/.next/required-server-files.json +18 -6
  8. package/standalone/apps/frontend/.next/routes-manifest.json +1 -0
  9. package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +776 -516
  10. package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
  11. package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
  12. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +1718 -1455
  13. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
  14. package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
  15. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js +724 -461
  16. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page.js.nft.json +1 -1
  17. package/standalone/apps/frontend/.next/server/app/[locale]/admin/exchange/page_client-reference-manifest.js +1 -1
  18. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +370 -109
  19. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
  20. package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
  21. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +581 -318
  22. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
  23. package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
  24. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +449 -186
  25. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
  26. package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
  27. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +430 -168
  28. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
  29. package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
  30. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +31 -16
  31. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
  32. package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
  33. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +388 -126
  34. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
  35. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
  36. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +537 -275
  37. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
  38. package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
  39. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +388 -126
  40. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
  41. package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
  42. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +745 -482
  43. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
  44. package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
  45. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +366 -103
  46. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
  47. package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
  48. package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +600 -339
  49. package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
  50. package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
  51. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +956 -691
  52. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
  53. package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
  54. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1699 -1436
  55. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
  56. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
  57. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js +390 -127
  58. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page.js.nft.json +1 -1
  59. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/linked-data/page_client-reference-manifest.js +1 -1
  60. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +1779 -1518
  61. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
  62. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
  63. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +1601 -1338
  64. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
  65. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
  66. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +2048 -1785
  67. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
  68. package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
  69. package/standalone/apps/frontend/.next/server/app/[locale]/page.js +462 -204
  70. package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
  71. package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  72. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +476 -216
  73. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
  74. package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
  75. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +489 -229
  76. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
  77. package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
  78. package/standalone/apps/frontend/.next/server/app/_global-error/page.js +627 -240
  79. package/standalone/apps/frontend/.next/server/app/_global-error/page.js.nft.json +1 -1
  80. package/standalone/apps/frontend/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  81. package/standalone/apps/frontend/.next/server/app/_global-error.html +1 -2
  82. package/standalone/apps/frontend/.next/server/app/_global-error.rsc +13 -9
  83. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_full.segment.rsc +13 -9
  84. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  85. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_global-error.segment.rsc +2 -1
  86. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  87. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_index.segment.rsc +2 -1
  88. package/standalone/apps/frontend/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  89. package/standalone/apps/frontend/.next/server/app/_not-found/page.js +814 -559
  90. package/standalone/apps/frontend/.next/server/app/_not-found/page.js.nft.json +1 -1
  91. package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
  93. package/standalone/apps/frontend/.next/server/app/_not-found.rsc +8 -6
  94. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_full.segment.rsc +8 -6
  95. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  96. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  97. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  98. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_not-found.segment.rsc +2 -1
  99. package/standalone/apps/frontend/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  100. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +54 -39
  101. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
  102. package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
  103. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +49 -34
  104. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
  105. package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
  106. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +24 -9
  107. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
  108. package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
  109. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +24 -9
  110. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
  111. package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
  112. package/standalone/apps/frontend/.next/server/app-paths-manifest.json +5 -5
  113. package/standalone/apps/frontend/.next/server/chunks/2617.js +43 -7
  114. package/standalone/apps/frontend/.next/server/chunks/3144.js +7 -3
  115. package/standalone/apps/frontend/.next/server/chunks/4741.js +60 -252
  116. package/standalone/apps/frontend/.next/server/chunks/730.js +1 -1
  117. package/standalone/apps/frontend/.next/server/chunks/7420.js +21 -288
  118. package/standalone/apps/frontend/.next/server/chunks/7873.js +24 -2
  119. package/standalone/apps/frontend/.next/server/chunks/{7246.js → 8569.js} +1169 -282
  120. package/standalone/apps/frontend/.next/server/chunks/{2628.js → 9927.js} +11422 -4290
  121. package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
  122. package/standalone/apps/frontend/.next/server/middleware-react-loadable-manifest.js +1 -1
  123. package/standalone/apps/frontend/.next/server/middleware.js +17991 -10692
  124. package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
  125. package/standalone/apps/frontend/.next/server/pages/500.html +1 -2
  126. package/standalone/apps/frontend/.next/server/prefetch-hints.json +1 -0
  127. package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
  128. package/standalone/apps/frontend/.next/static/I_XveRdyStDMqYJPcAAy5/_buildManifest.js +1 -0
  129. package/standalone/apps/frontend/.next/static/chunks/1315.3f76aa23520d903e.js +1 -0
  130. package/standalone/apps/frontend/.next/static/chunks/{432.4c1d971431c60454.js → 432.8cb455bfe72957a9.js} +1 -1
  131. package/standalone/apps/frontend/.next/static/chunks/87c73c54-e11922cda838f8cc.js +1 -0
  132. package/standalone/apps/frontend/.next/static/chunks/{891cff7f-c20ce667b1225aa7.js → 891cff7f-d7677a8f46c597cc.js} +1 -1
  133. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/{layout-4b67f7b5d5ba4728.js → layout-956ba0ffa1199bff.js} +1 -1
  134. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{layout-f76e1916749e66f6.js → layout-262d8dd6c6e33738.js} +1 -1
  135. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-a403fd7a4877cc04.js → layout-c072ce8c7aeaa92e.js} +1 -1
  136. package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{layout-2d4e9c2be4b4a4c7.js → layout-b60605082e447f42.js} +1 -1
  137. package/standalone/apps/frontend/.next/static/chunks/common-42653c14d34c8864.js +69 -0
  138. package/standalone/apps/frontend/.next/static/chunks/framework-b879567b90d34fb5.js +1 -0
  139. package/standalone/apps/frontend/.next/static/chunks/vendors-63213253c18580f4.js +40 -0
  140. package/standalone/apps/frontend/.next/static/chunks/{webpack-abf2ad17f175f867.js → webpack-a0284d55d288650f.js} +1 -1
  141. package/standalone/apps/frontend/package.json +5 -5
  142. package/standalone/apps/frontend/server.js +1 -1
  143. package/standalone/node_modules/@next/env/package.json +1 -1
  144. package/standalone/node_modules/next/dist/build/adapter/setup-node-env.external.js +15 -0
  145. package/standalone/node_modules/next/dist/build/analysis/extract-const-value.js +78 -63
  146. package/standalone/node_modules/next/dist/build/analysis/get-page-static-info.js +64 -40
  147. package/standalone/node_modules/next/dist/build/create-compiler-aliases.js +2 -0
  148. package/standalone/node_modules/next/dist/build/define-env.js +29 -11
  149. package/standalone/node_modules/next/dist/build/duration-to-string.js +1 -1
  150. package/standalone/node_modules/next/dist/build/entries.js +55 -295
  151. package/standalone/node_modules/next/dist/build/file-classifier.js +76 -0
  152. package/standalone/node_modules/next/dist/build/get-supported-browsers.js +38 -0
  153. package/standalone/node_modules/next/dist/build/load-jsconfig.js +7 -7
  154. package/standalone/node_modules/next/dist/build/lockfile.js +90 -9
  155. package/standalone/node_modules/next/dist/build/next-config-ts/transpile-config.js +128 -49
  156. package/standalone/node_modules/next/dist/build/print-build-errors.js +72 -0
  157. package/standalone/node_modules/next/dist/build/route-discovery.js +353 -0
  158. package/standalone/node_modules/next/dist/build/segment-config/app/app-segment-config.js +34 -17
  159. package/standalone/node_modules/next/dist/build/static-paths/app.js +68 -15
  160. package/standalone/node_modules/next/dist/build/static-paths/pages.js +3 -3
  161. package/standalone/node_modules/next/dist/build/swc/index.js +125 -48
  162. package/standalone/node_modules/next/dist/build/swc/loaderWorkerPool.js +40 -0
  163. package/standalone/node_modules/next/dist/build/swc/options.js +23 -6
  164. package/standalone/node_modules/next/dist/build/utils.js +48 -94
  165. package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/index.js +14 -3
  166. package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/global.js +4 -2
  167. package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/modules.js +4 -2
  168. package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/loaders/next-font.js +1 -0
  169. package/standalone/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +5 -5
  170. package/standalone/node_modules/next/dist/build/webpack/config/index.js +3 -2
  171. package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +2 -1
  172. package/standalone/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-url-parser.js +8 -1
  173. package/standalone/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +13 -4
  174. package/standalone/node_modules/next/dist/build/webpack/loaders/next-middleware-loader.js +3 -1
  175. package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin-utils.js +2 -16
  176. package/standalone/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +2 -2
  177. package/standalone/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +106 -0
  178. package/standalone/node_modules/next/dist/build/webpack/plugins/flight-client-entry-plugin.js +16 -8
  179. package/standalone/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +24 -11
  180. package/standalone/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +21 -2
  181. package/standalone/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +6 -5
  182. package/standalone/node_modules/next/dist/build/webpack/plugins/nextjs-require-cache-hot-reloader.js +10 -14
  183. package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseNotFoundError.js +18 -4
  184. package/standalone/node_modules/next/dist/build/webpack/plugins/wellknown-errors-plugin/parseScss.js +5 -4
  185. package/standalone/node_modules/next/dist/build/webpack-config.js +18 -8
  186. package/standalone/node_modules/next/dist/cli/next-test.js +4 -3
  187. package/standalone/node_modules/next/dist/client/app-find-source-map-url.js +2 -1
  188. package/standalone/node_modules/next/dist/client/components/app-router-headers.js +10 -0
  189. package/standalone/node_modules/next/dist/client/components/app-router-instance.js +82 -4
  190. package/standalone/node_modules/next/dist/client/components/app-router.js +39 -20
  191. package/standalone/node_modules/next/dist/client/components/builtin/app-error.js +29 -65
  192. package/standalone/node_modules/next/dist/client/components/builtin/error-styles.js +165 -0
  193. package/standalone/node_modules/next/dist/client/components/builtin/global-error.js +56 -38
  194. package/standalone/node_modules/next/dist/client/components/error-boundary.js +16 -6
  195. package/standalone/node_modules/next/dist/client/components/forbidden.js +1 -1
  196. package/standalone/node_modules/next/dist/client/components/handle-isr-error.js +3 -4
  197. package/standalone/node_modules/next/dist/client/components/links.js +7 -0
  198. package/standalone/node_modules/next/dist/client/components/navigation-untracked.js +2 -0
  199. package/standalone/node_modules/next/dist/client/components/navigation.js +27 -0
  200. package/standalone/node_modules/next/dist/client/components/navigation.react-server.js +5 -2
  201. package/standalone/node_modules/next/dist/client/components/not-found.js +1 -1
  202. package/standalone/node_modules/next/dist/client/components/redirect-boundary.js +1 -1
  203. package/standalone/node_modules/next/dist/client/components/redirect-error.js +0 -9
  204. package/standalone/node_modules/next/dist/client/components/redirect.js +2 -2
  205. package/standalone/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +73 -0
  206. package/standalone/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +102 -8
  207. package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +165 -48
  208. package/standalone/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +19 -11
  209. package/standalone/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +669 -457
  210. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/committed-state.js +49 -0
  211. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +19 -20
  212. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -117
  213. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +34 -19
  214. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +16 -32
  215. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +85 -57
  216. package/standalone/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +12 -10
  217. package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +10 -1
  218. package/standalone/node_modules/next/dist/client/components/router-reducer/router-reducer.js +1 -1
  219. package/standalone/node_modules/next/dist/client/components/segment-cache/bfcache.js +128 -0
  220. package/standalone/node_modules/next/dist/client/components/segment-cache/cache.js +732 -231
  221. package/standalone/node_modules/next/dist/client/components/segment-cache/lru.js +13 -6
  222. package/standalone/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +194 -0
  223. package/standalone/node_modules/next/dist/client/components/segment-cache/navigation.js +388 -250
  224. package/standalone/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +543 -0
  225. package/standalone/node_modules/next/dist/client/components/segment-cache/scheduler.js +154 -55
  226. package/standalone/node_modules/next/dist/client/components/segment-cache/vary-path.js +63 -1
  227. package/standalone/node_modules/next/dist/client/components/unauthorized.js +1 -1
  228. package/standalone/node_modules/next/dist/client/components/use-action-queue.js +49 -3
  229. package/standalone/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +9 -1
  230. package/standalone/node_modules/next/dist/client/flight-data-helpers.js +42 -29
  231. package/standalone/node_modules/next/dist/client/lib/javascript-url.js +32 -0
  232. package/standalone/node_modules/next/dist/client/lib/promise.js +53 -0
  233. package/standalone/node_modules/next/dist/client/{app-build-id.js → navigation-build-id.js} +17 -13
  234. package/standalone/node_modules/next/dist/client/react-client-callbacks/on-recoverable-error.js +14 -0
  235. package/standalone/node_modules/next/dist/client/route-loader.js +9 -46
  236. package/standalone/node_modules/next/dist/client/router.js +1 -1
  237. package/standalone/node_modules/next/dist/compiled/@next/font/dist/google/font-data.json +74 -3
  238. package/standalone/node_modules/next/dist/compiled/babel/bundle.js +1 -1
  239. package/standalone/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +4 -4
  240. package/standalone/node_modules/next/dist/compiled/browserslist/index.js +1 -1
  241. package/standalone/node_modules/next/dist/compiled/http-proxy/index.js +5 -5
  242. package/standalone/node_modules/next/dist/compiled/next-devtools/index.js +2209 -23
  243. package/standalone/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +42 -12
  244. package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +42 -12
  245. package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +42 -12
  246. package/standalone/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +42 -12
  247. package/standalone/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
  248. package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
  249. package/standalone/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +10 -10
  250. package/standalone/node_modules/next/dist/compiled/react-is/package.json +1 -1
  251. package/standalone/node_modules/next/dist/compiled/tar/index.min.js +1 -0
  252. package/standalone/node_modules/next/dist/compiled/tar/package.json +1 -1
  253. package/standalone/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
  254. package/standalone/node_modules/next/dist/lib/bundler.js +97 -0
  255. package/standalone/node_modules/next/dist/lib/constants.js +19 -4
  256. package/standalone/node_modules/next/dist/lib/download-swc.js +2 -2
  257. package/standalone/node_modules/next/dist/lib/find-root.js +11 -7
  258. package/standalone/node_modules/next/dist/lib/format-server-error.js +1 -0
  259. package/standalone/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +3 -20
  260. package/standalone/node_modules/next/dist/lib/interop-default.js +1 -0
  261. package/standalone/node_modules/next/dist/lib/is-interception-route-rewrite.js +18 -0
  262. package/standalone/node_modules/next/dist/lib/load-custom-routes.js +49 -5
  263. package/standalone/node_modules/next/dist/lib/memory/trace.js +109 -0
  264. package/standalone/node_modules/next/dist/lib/metadata/get-metadata-route.js +11 -2
  265. package/standalone/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
  266. package/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +5 -5
  267. package/standalone/node_modules/next/dist/lib/try-to-parse-path.js +1 -2
  268. package/standalone/node_modules/next/dist/lib/turbopack-warning.js +0 -1
  269. package/standalone/node_modules/next/dist/lib/typescript/diagnosticFormatter.js +6 -3
  270. package/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +1 -1
  271. package/standalone/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -1
  272. package/standalone/node_modules/next/dist/lib/typescript/runTypeCheck.js +6 -8
  273. package/standalone/node_modules/next/dist/lib/typescript/type-paths.js +7 -12
  274. package/standalone/node_modules/next/dist/lib/typescript/writeAppTypeDeclarations.js +17 -7
  275. package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +9 -12
  276. package/standalone/node_modules/next/dist/lib/verify-typescript-setup.js +66 -16
  277. package/standalone/node_modules/next/dist/next-devtools/server/shared.js +6 -10
  278. package/standalone/node_modules/next/dist/next-devtools/shared/webpack-module-path.js +4 -4
  279. package/standalone/node_modules/next/dist/next-devtools/userspace/app/app-dev-overlay-error-boundary.js +22 -4
  280. package/standalone/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +7 -1
  281. package/standalone/node_modules/next/dist/next-devtools/userspace/app/forward-logs.js +18 -13
  282. package/standalone/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +7 -4
  283. package/standalone/node_modules/next/dist/server/app-render/action-handler.js +83 -15
  284. package/standalone/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +0 -82
  285. package/standalone/node_modules/next/dist/server/app-render/app-render-render-utils.js +45 -81
  286. package/standalone/node_modules/next/dist/server/app-render/app-render.js +1746 -803
  287. package/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +136 -50
  288. package/standalone/node_modules/next/dist/server/app-render/create-error-handler.js +6 -4
  289. package/standalone/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +52 -26
  290. package/standalone/node_modules/next/dist/server/app-render/csrf-protection.js +14 -3
  291. package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.js +30 -0
  292. package/standalone/node_modules/next/dist/server/app-render/debug-channel-server.web.js +71 -0
  293. package/standalone/node_modules/next/dist/server/app-render/dynamic-rendering.js +353 -37
  294. package/standalone/node_modules/next/dist/server/app-render/get-asset-query-string.js +2 -2
  295. package/standalone/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
  296. package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +13 -0
  297. package/standalone/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +18 -0
  298. package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +181 -0
  299. package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples-client.js +128 -0
  300. package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +432 -0
  301. package/standalone/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +33 -0
  302. package/standalone/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +96 -0
  303. package/standalone/node_modules/next/dist/server/app-render/manifests-singleton.js +8 -1
  304. package/standalone/node_modules/next/dist/server/app-render/postponed-state.js +2 -1
  305. package/standalone/node_modules/next/dist/server/app-render/prospective-render-utils.js +1 -0
  306. package/standalone/node_modules/next/dist/server/app-render/segment-explorer-path.js +35 -10
  307. package/standalone/node_modules/next/dist/server/app-render/staged-rendering.js +142 -72
  308. package/standalone/node_modules/next/dist/server/app-render/stale-time.js +111 -0
  309. package/standalone/node_modules/next/dist/server/app-render/stream-ops.js +106 -0
  310. package/standalone/node_modules/next/dist/server/app-render/stream-ops.web.js +163 -0
  311. package/standalone/node_modules/next/dist/server/app-render/types.js +10 -4
  312. package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +3 -1
  313. package/standalone/node_modules/next/dist/server/app-render/vary-params.js +336 -0
  314. package/standalone/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +59 -12
  315. package/standalone/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +54 -26
  316. package/standalone/node_modules/next/dist/server/async-storage/request-store.js +4 -4
  317. package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -5
  318. package/standalone/node_modules/next/dist/server/base-server.js +65 -53
  319. package/standalone/node_modules/next/dist/server/config-schema.js +93 -8
  320. package/standalone/node_modules/next/dist/server/config-shared.js +57 -7
  321. package/standalone/node_modules/next/dist/server/config.js +96 -25
  322. package/standalone/node_modules/next/dist/server/dev/browser-logs/file-logger.js +9 -6
  323. package/standalone/node_modules/next/dist/server/dev/browser-logs/receive-logs.js +46 -0
  324. package/standalone/node_modules/next/dist/server/dev/browser-logs/source-map.js +1 -4
  325. package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +264 -33
  326. package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +8 -4
  327. package/standalone/node_modules/next/dist/server/dev/log-requests.js +10 -2
  328. package/standalone/node_modules/next/dist/server/dev/middleware-turbopack.js +20 -10
  329. package/standalone/node_modules/next/dist/server/dev/middleware-webpack.js +13 -3
  330. package/standalone/node_modules/next/dist/server/dev/next-dev-server.js +19 -6
  331. package/standalone/node_modules/next/dist/server/dev/on-demand-entry-handler.js +69 -0
  332. package/standalone/node_modules/next/dist/server/dev/require-cache.js +51 -21
  333. package/standalone/node_modules/next/dist/server/dev/server-action-logger.js +37 -0
  334. package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +1 -0
  335. package/standalone/node_modules/next/dist/server/dev/turbopack-utils.js +6 -15
  336. package/standalone/node_modules/next/dist/server/dynamic-rendering-utils.js +22 -0
  337. package/standalone/node_modules/next/dist/server/image-optimizer.js +157 -27
  338. package/standalone/node_modules/next/dist/server/lib/app-info-log.js +16 -38
  339. package/standalone/node_modules/next/dist/server/lib/cache-control.js +1 -1
  340. package/standalone/node_modules/next/dist/server/lib/clone-response.js +16 -16
  341. package/standalone/node_modules/next/dist/server/lib/cpu-profile.js +47 -16
  342. package/standalone/node_modules/next/dist/server/lib/dev-bundler-service.js +2 -2
  343. package/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +57 -0
  344. package/standalone/node_modules/next/dist/server/lib/find-page-file.js +27 -7
  345. package/standalone/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
  346. package/standalone/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +5 -3
  347. package/standalone/node_modules/next/dist/server/lib/incremental-cache/index.js +32 -10
  348. package/standalone/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +18 -1
  349. package/standalone/node_modules/next/dist/server/lib/install-code-frame.js +22 -0
  350. package/standalone/node_modules/next/dist/server/lib/lru-cache.js +9 -1
  351. package/standalone/node_modules/next/dist/server/lib/patch-fetch.js +40 -7
  352. package/standalone/node_modules/next/dist/server/lib/postponed-request-body.js +64 -0
  353. package/standalone/node_modules/next/dist/server/lib/render-server.js +4 -1
  354. package/standalone/node_modules/next/dist/server/lib/router-server.js +24 -13
  355. package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site-dev.js +110 -0
  356. package/standalone/node_modules/next/dist/server/lib/router-utils/filesystem.js +16 -15
  357. package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +32 -11
  358. package/standalone/node_modules/next/dist/server/lib/router-utils/route-types-utils.js +3 -3
  359. package/standalone/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +71 -71
  360. package/standalone/node_modules/next/dist/server/lib/router-utils/typegen.js +247 -2
  361. package/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +2 -1
  362. package/standalone/node_modules/next/dist/server/lib/start-server.js +73 -39
  363. package/standalone/node_modules/next/dist/server/lib/trace/tracer.js +11 -1
  364. package/standalone/node_modules/next/dist/server/lib/utils.js +40 -11
  365. package/standalone/node_modules/next/dist/server/load-components.js +2 -0
  366. package/standalone/node_modules/next/dist/server/load-manifest.external.js +37 -17
  367. package/standalone/node_modules/next/dist/server/mcp/tools/get-errors.js +11 -4
  368. package/standalone/node_modules/next/dist/server/mcp/tools/get-logs.js +9 -3
  369. package/standalone/node_modules/next/dist/server/mcp/tools/get-page-metadata.js +52 -44
  370. package/standalone/node_modules/next/dist/server/mcp/tools/get-project-metadata.js +6 -2
  371. package/standalone/node_modules/next/dist/server/mcp/tools/get-routes.js +44 -79
  372. package/standalone/node_modules/next/dist/server/mcp/tools/get-server-action-by-id.js +12 -4
  373. package/standalone/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +62 -72
  374. package/standalone/node_modules/next/dist/server/next-server.js +69 -99
  375. package/standalone/node_modules/next/dist/server/next.js +3 -0
  376. package/standalone/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +61 -6
  377. package/standalone/node_modules/next/dist/server/node-environment-extensions/date.js +4 -4
  378. package/standalone/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +13 -6
  379. package/standalone/node_modules/next/dist/server/node-environment-extensions/{utils.js → io-utils.js} +14 -5
  380. package/standalone/node_modules/next/dist/server/node-environment-extensions/node-crypto.js +8 -8
  381. package/standalone/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +91 -0
  382. package/standalone/node_modules/next/dist/server/node-environment-extensions/random.js +2 -2
  383. package/standalone/node_modules/next/dist/server/node-environment-extensions/{unhandled-rejection.js → unhandled-rejection.external.js} +23 -4
  384. package/standalone/node_modules/next/dist/server/node-environment-extensions/web-crypto.js +3 -3
  385. package/standalone/node_modules/next/dist/server/node-environment.js +1 -1
  386. package/standalone/node_modules/next/dist/server/normalizers/request/segment-prefix-rsc.js +2 -1
  387. package/standalone/node_modules/next/dist/server/patch-error-inspect.js +37 -20
  388. package/standalone/node_modules/next/dist/server/render-result.js +9 -0
  389. package/standalone/node_modules/next/dist/server/render.js +27 -25
  390. package/standalone/node_modules/next/dist/server/require-hook.js +19 -8
  391. package/standalone/node_modules/next/dist/server/response-cache/utils.js +1 -0
  392. package/standalone/node_modules/next/dist/server/resume-data-cache/cache-store.js +35 -23
  393. package/standalone/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +16 -7
  394. package/standalone/node_modules/next/dist/server/revalidation-utils.js +12 -7
  395. package/standalone/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +2 -1
  396. package/standalone/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +4 -1
  397. package/standalone/node_modules/next/dist/server/route-modules/app-page/module.js +31 -1
  398. package/standalone/node_modules/next/dist/server/route-modules/app-page/normalize-request-url.js +25 -0
  399. package/standalone/node_modules/next/dist/server/route-modules/pages/pages-handler.js +31 -8
  400. package/standalone/node_modules/next/dist/server/route-modules/route-module.js +71 -18
  401. package/standalone/node_modules/next/dist/server/stream-utils/encoded-tags.js +8 -0
  402. package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +239 -58
  403. package/standalone/node_modules/next/dist/server/stream-utils/uint8array-helpers.js +7 -2
  404. package/standalone/node_modules/next/dist/server/typescript/constant.js +1 -0
  405. package/standalone/node_modules/next/dist/server/typescript/rules/config.js +14 -3
  406. package/standalone/node_modules/next/dist/server/web/adapter.js +7 -3
  407. package/standalone/node_modules/next/dist/server/web/next-url.js +6 -2
  408. package/standalone/node_modules/next/dist/server/web/sandbox/sandbox.js +3 -0
  409. package/standalone/node_modules/next/dist/shared/lib/app-router-types.js +30 -11
  410. package/standalone/node_modules/next/dist/shared/lib/constants.js +7 -7
  411. package/standalone/node_modules/next/dist/shared/lib/deployment-id.js +37 -10
  412. package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  413. package/standalone/node_modules/next/dist/shared/lib/errors/code-frame.js +20 -0
  414. package/standalone/node_modules/next/dist/shared/lib/format-webpack-messages.js +22 -2
  415. package/standalone/node_modules/next/dist/shared/lib/image-config.js +3 -1
  416. package/standalone/node_modules/next/dist/shared/lib/is-internal.js +2 -0
  417. package/standalone/node_modules/next/dist/shared/lib/magic-identifier.js +6 -6
  418. package/standalone/node_modules/next/dist/shared/lib/router/router.js +32 -0
  419. package/standalone/node_modules/next/dist/shared/lib/router/utils/app-paths.js +11 -0
  420. package/standalone/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +11 -4
  421. package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +3 -2
  422. package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +9 -2
  423. package/standalone/node_modules/next/dist/shared/lib/router/utils/parse-url.js +8 -2
  424. package/standalone/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +32 -0
  425. package/standalone/node_modules/next/dist/shared/lib/server-reference-info.js +4 -0
  426. package/standalone/node_modules/next/dist/shared/lib/size-limit.js +6 -1
  427. package/standalone/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +47 -10
  428. package/standalone/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +90 -116
  429. package/standalone/node_modules/next/dist/shared/lib/turbopack/utils.js +14 -26
  430. package/standalone/node_modules/next/dist/shared/lib/utils/reflect-utils.js +69 -0
  431. package/standalone/node_modules/next/dist/shared/lib/utils.js +2 -2
  432. package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  433. package/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  434. package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
  435. package/standalone/node_modules/next/dist/trace/index.js +4 -0
  436. package/standalone/node_modules/next/dist/trace/report/to-json-build.js +11 -108
  437. package/standalone/node_modules/next/dist/trace/report/to-json.js +52 -38
  438. package/standalone/node_modules/next/dist/trace/trace.js +15 -1
  439. package/standalone/node_modules/next/package.json +21 -23
  440. package/standalone/node_modules/react/cjs/react.development.js +1284 -0
  441. package/standalone/package.json +3 -3
  442. package/standalone/packages/core/package.json +1 -1
  443. package/standalone/apps/frontend/.next/static/chunks/1315.18c68981a2eab4fe.js +0 -1
  444. package/standalone/apps/frontend/.next/static/chunks/87c73c54-c5fda2db2a4bd732.js +0 -1
  445. package/standalone/apps/frontend/.next/static/chunks/common-d9b436492e46bb05.js +0 -69
  446. package/standalone/apps/frontend/.next/static/chunks/framework-86c2a58f458066a5.js +0 -1
  447. package/standalone/apps/frontend/.next/static/chunks/vendors-c7197feb11002a6e.js +0 -10
  448. package/standalone/apps/frontend/.next/static/kMwuefB4Z1_6Xta5NPqs1/_buildManifest.js +0 -1
  449. package/standalone/node_modules/next/dist/client/components/router-reducer/handle-mutable.js +0 -66
  450. package/standalone/node_modules/next/dist/compiled/babel/code-frame.js +0 -1
  451. package/standalone/node_modules/next/dist/compiled/babel-code-frame/index.js +0 -1
  452. package/standalone/node_modules/next/dist/compiled/babel-code-frame/package.json +0 -1
  453. package/standalone/node_modules/next/dist/compiled/tar/index.js +0 -1
  454. package/standalone/node_modules/next/dist/server/app-render/staged-validation.js +0 -32
  455. package/standalone/node_modules/next/dist/server/lib/router-utils/block-cross-site.js +0 -76
  456. package/standalone/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +0 -52
  457. package/standalone/node_modules/typescript/lib/typescript.js +0 -200276
  458. package/standalone/node_modules/typescript/package.json +0 -120
  459. /package/standalone/apps/frontend/.next/static/{kMwuefB4Z1_6Xta5NPqs1 → I_XveRdyStDMqYJPcAAy5}/_ssgManifest.js +0 -0
@@ -63,6 +63,14 @@ function() { throw new Error("Attempted to call the default export of \"/home/ru
63
63
  ));
64
64
 
65
65
 
66
+ /***/ }),
67
+
68
+ /***/ 17891:
69
+ /***/ ((module) => {
70
+
71
+ "use strict";
72
+ module.exports = require("next/dist/shared/lib/router/utils/get-segment-param");
73
+
66
74
  /***/ }),
67
75
 
68
76
  /***/ 19121:
@@ -497,147 +505,453 @@ function ComposeResourcePage() {
497
505
 
498
506
  /***/ }),
499
507
 
500
- /***/ 39449:
501
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
508
+ /***/ 41025:
509
+ /***/ ((module) => {
502
510
 
503
511
  "use strict";
504
- __webpack_require__.r(__webpack_exports__);
505
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
506
- /* harmony export */ GlobalError: () => (/* reexport safe */ _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"]),
507
- /* harmony export */ __next_app__: () => (/* binding */ __next_app__),
508
- /* harmony export */ handler: () => (/* binding */ handler),
509
- /* harmony export */ routeModule: () => (/* binding */ routeModule)
510
- /* harmony export */ });
511
- /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
512
- /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
513
- /* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
514
- /* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
515
- /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
516
- /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
517
- /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
518
- /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
519
- /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
520
- /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
521
- /* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
522
- /* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
523
- /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
524
- /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
525
- /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
526
- /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
527
- /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
528
- /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
529
- /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
530
- /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
531
- /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
532
- /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
533
- /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
534
- /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
535
- /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
536
- /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
537
- /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
538
- /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
539
- /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
540
- /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
541
- /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
542
- /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
543
- /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
544
- /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
545
- /* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
546
- /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
547
- /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
548
- /* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
549
- /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(98798);
550
- /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__);
551
- /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(86439);
552
- /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__);
553
- /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(77068);
554
- /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__);
555
- /* harmony import */ var _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(56357);
556
- /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(35402);
557
- /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__);
558
- /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(29059);
559
- /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__);
560
- /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(70722);
561
- /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__);
562
- /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(31182);
563
- /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__);
564
- /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(43954);
565
- /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__);
566
- /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
567
- /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__) if(["default","GlobalError","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__[__WEBPACK_IMPORT_KEY__]
568
- /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
569
- const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
570
- const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
571
- const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
572
- const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
573
- const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
574
- const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
575
- const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
576
- const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
577
- const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 12156));
578
- const page9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 13035));
512
+ module.exports = require("next/dist/server/app-render/dynamic-access-async-storage.external.js");
579
513
 
514
+ /***/ }),
580
515
 
516
+ /***/ 43954:
517
+ /***/ ((module) => {
581
518
 
519
+ "use strict";
520
+ module.exports = require("next/dist/shared/lib/router/utils/interception-routes");
582
521
 
522
+ /***/ }),
583
523
 
524
+ /***/ 50436:
525
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
584
526
 
527
+ "use strict";
585
528
 
529
+ // EXPORTS
530
+ __webpack_require__.d(__webpack_exports__, {
531
+ t: () => (/* binding */ ToolbarPanels)
532
+ });
586
533
 
534
+ // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
535
+ var react_jsx_runtime = __webpack_require__(92692);
536
+ // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
537
+ var react = __webpack_require__(71277);
538
+ // EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 27 modules
539
+ var dist = __webpack_require__(76552);
540
+ ;// __barrel_optimize__?names=ResizeHandle,SettingsPanel,useEventSubscriptions,usePanelWidth!=!../../packages/react-ui/dist/index.mjs
587
541
 
588
542
 
543
+ // EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
544
+ var next_auth_react = __webpack_require__(62341);
545
+ // EXTERNAL MODULE: ../../node_modules/next/dist/api/image.js
546
+ var api_image = __webpack_require__(93523);
547
+ // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
548
+ var react_client = __webpack_require__(56305);
549
+ ;// __barrel_optimize__?names=formatTime,sanitizeImageURL,useSessionExpiry!=!../../packages/react-ui/dist/index.mjs
589
550
 
590
551
 
552
+ // EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
553
+ var useAuth = __webpack_require__(31039);
554
+ ;// ./src/components/UserPanel.tsx
555
+ /* __next_internal_client_entry_do_not_use__ UserPanel auto */
591
556
 
592
557
 
593
558
 
594
559
 
595
560
 
596
561
 
562
+ // Fallback avatar when image fails to load or is invalid
563
+ const FALLBACK_AVATAR = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTYiIGZpbGw9IiM2QjcyODAiLz4KPHBhdGggZD0iTTE2IDE2QzE4LjIwOTEgMTYgMjAgMTQuMjA5MSAyMCAxMkMyMCA5Ljc5MDg2IDE4LjIwOTEgOCAxNiA4QzEzLjc5MDkgOCAxMiA5Ljc5MDg2IDEyIDEyQzEyIDE0LjIwOTEgMTMuNzkwOSAxNiAxNiAxNloiIGZpbGw9IiNFNUU3RUIiLz4KPHBhdGggZD0iTTI0IDI1QzI0IDIxLjY4NjMgMjAuNDE4MyAxOSAxNiAxOUMxMS41ODE3IDE5IDggMjEuNjg2MyA4IDI1IiBzdHJva2U9IiNFNUU3RUIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPg==';
564
+ function UserPanel() {
565
+ const t = (0,react_client/* useTranslations */.c)('UserPanel');
566
+ const { displayName, avatarUrl, userDomain, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
567
+ const [imageError, setImageError] = (0,react.useState)(false);
568
+ const { timeRemaining } = (0,dist.useSessionExpiry)();
569
+ const sessionTimeFormatted = (0,dist.formatTime)(timeRemaining) ?? 'Unknown';
570
+ // Sanitize and validate the profile image URL
571
+ const profileImageUrl = (()=>{
572
+ if (!avatarUrl || imageError) {
573
+ return FALLBACK_AVATAR;
574
+ }
575
+ const sanitized = (0,dist.sanitizeImageURL)(avatarUrl);
576
+ if (!sanitized) {
577
+ console.warn('Invalid profile image URL detected, using fallback');
578
+ return FALLBACK_AVATAR;
579
+ }
580
+ return sanitized;
581
+ })();
582
+ const handleSignOut = async ()=>{
583
+ await (0,next_auth_react.signOut)({
584
+ callbackUrl: '/'
585
+ });
586
+ };
587
+ return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
588
+ className: "semiont-user-panel",
589
+ children: [
590
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("h3", {
591
+ className: "semiont-user-panel__title",
592
+ children: t('account')
593
+ }),
594
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
595
+ className: "space-y-4",
596
+ children: [
597
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
598
+ className: "flex items-center gap-3",
599
+ children: [
600
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)(api_image["default"], {
601
+ src: profileImageUrl,
602
+ alt: t('profileAlt', {
603
+ name: displayName || t('user')
604
+ }),
605
+ width: 48,
606
+ height: 48,
607
+ className: "w-12 h-12 rounded-full object-cover",
608
+ onError: ()=>setImageError(true),
609
+ unoptimized: profileImageUrl === FALLBACK_AVATAR,
610
+ sizes: "48px",
611
+ quality: 85
612
+ }),
613
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
614
+ className: "flex-1 min-w-0",
615
+ children: [
616
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
617
+ className: "semiont-panel-text",
618
+ children: displayName || t('user')
619
+ }),
620
+ userDomain && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
621
+ className: "semiont-panel-text-secondary",
622
+ children: [
623
+ "@",
624
+ userDomain
625
+ ]
626
+ })
627
+ ]
628
+ })
629
+ ]
630
+ }),
631
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
632
+ children: [
633
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
634
+ className: "semiont-panel-label",
635
+ children: t('session')
636
+ }),
637
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
638
+ className: "semiont-session-box",
639
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
640
+ className: "semiont-panel-hint",
641
+ children: t('expiresIn', {
642
+ time: sessionTimeFormatted
643
+ })
644
+ })
645
+ })
646
+ ]
647
+ }),
648
+ (isAdmin || isModerator) && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
649
+ children: [
650
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
651
+ className: "semiont-panel-label",
652
+ children: t('privileges')
653
+ }),
654
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
655
+ className: "space-y-1",
656
+ children: [
657
+ isAdmin && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
658
+ className: "semiont-privilege-badge semiont-privilege-badge--admin",
659
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
660
+ className: "semiont-privilege-text",
661
+ children: t('administrator')
662
+ })
663
+ }),
664
+ isModerator && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
665
+ className: "semiont-privilege-badge semiont-privilege-badge--moderator",
666
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
667
+ className: "semiont-privilege-text",
668
+ children: t('moderator')
669
+ })
670
+ })
671
+ ]
672
+ })
673
+ ]
674
+ }),
675
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
676
+ className: "semiont-panel-divider",
677
+ children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
678
+ onClick: handleSignOut,
679
+ className: "semiont-signout-button",
680
+ children: t('signOut')
681
+ })
682
+ })
683
+ ]
684
+ })
685
+ ]
686
+ });
687
+ }
597
688
 
689
+ // EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
690
+ var production_react = __webpack_require__(23211);
691
+ // EXTERNAL MODULE: ./src/i18n/routing.ts
692
+ var routing = __webpack_require__(99704);
693
+ ;// __barrel_optimize__?names=COMMON_PANELS!=!../../packages/react-ui/dist/index.mjs
598
694
 
599
695
 
696
+ ;// ./src/components/toolbar/ToolbarPanels.tsx
697
+ /* __next_internal_client_entry_do_not_use__ ToolbarPanels auto */
600
698
 
601
699
 
602
700
 
603
701
 
604
- // We inject the tree and pages here so that we can use them in the route
605
- // module.
606
- const tree = {
607
- children: [
608
- '',
609
- {
610
- children: [
611
- '[locale]',
612
- {
613
- children: [
614
- 'know',
615
- {
616
- children: [
617
- 'compose',
618
- {
619
- children: ['__PAGE__', {}, {
620
- page: [page9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/compose/page.tsx"],
621
-
622
- }]
623
- },
624
- {
625
-
626
-
627
- }
628
- ]
629
- },
630
- {
631
- 'layout': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/layout.tsx"],
632
-
633
- }
634
- ]
635
- },
636
- {
702
+
703
+
704
+ /**
705
+ * Renders the toolbar panel container with common panels (user, settings)
706
+ * and any context-specific panels passed as children.
707
+ *
708
+ * Settings changes are handled via GlobalSettingsEventBus - no callbacks needed.
709
+ *
710
+ * @example
711
+ * // Simple context (compose, discover, moderate, admin pages)
712
+ * <ToolbarPanels
713
+ * activePanel={activePanel}
714
+ * theme={theme}
715
+ * showLineNumbers={showLineNumbers}
716
+ * />
717
+ *
718
+ * @example
719
+ * // Document context with custom panels
720
+ * <ToolbarPanels
721
+ * activePanel={activePanel}
722
+ * theme={theme}
723
+ * showLineNumbers={showLineNumbers}
724
+ * >
725
+ * {activePanel === 'annotations' && <UnifiedAnnotationsPanel ... />}
726
+ * {activePanel === 'history' && <AnnotationHistory ... />}
727
+ * {activePanel === 'info' && <ResourceInfoPanel ... />}
728
+ * {activePanel === 'collaboration' && <CollaborationPanel ... />}
729
+ * {activePanel === 'jsonld' && <JsonLdPanel ... />}
730
+ * </ToolbarPanels>
731
+ */ function ToolbarPanels({ activePanel, theme, showLineNumbers, hoverDelayMs, children }) {
732
+ const locale = (0,production_react/* useLocale */.Ym)();
733
+ const router = (0,routing/* useRouter */.rd)();
734
+ const pathname = (0,routing/* usePathname */.a8)();
735
+ const [isPending, startTransition] = (0,react.useTransition)();
736
+ // Panel width management with localStorage persistence
737
+ const { width, setWidth, minWidth, maxWidth } = (0,dist.usePanelWidth)();
738
+ // Handle locale change events
739
+ const handleLocaleChanged = (0,react.useCallback)(({ locale: newLocale })=>{
740
+ if (!pathname) return;
741
+ startTransition(()=>{
742
+ // The router from @/i18n/routing is locale-aware and will handle the locale prefix
743
+ router.replace(pathname, {
744
+ locale: newLocale
745
+ });
746
+ });
747
+ }, [
748
+ pathname,
749
+ router,
750
+ startTransition
751
+ ]);
752
+ // Subscribe to locale change events
753
+ (0,dist.useEventSubscriptions)({
754
+ 'settings:locale-changed': handleLocaleChanged
755
+ });
756
+ // Don't render container if no panel is active
757
+ if (!activePanel) {
758
+ return null;
759
+ }
760
+ // In simple context (no children), only user and settings panels are valid.
761
+ // If a resource-specific panel is still active from a previous route, hide the container.
762
+ if (!children && !dist.COMMON_PANELS.includes(activePanel)) {
763
+ return null;
764
+ }
765
+ return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
766
+ className: "semiont-toolbar-panels",
767
+ style: {
768
+ width: `${width}px`,
769
+ position: 'relative'
770
+ },
771
+ children: [
772
+ /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResizeHandle, {
773
+ onResize: setWidth,
774
+ minWidth: minWidth,
775
+ maxWidth: maxWidth,
776
+ position: "left",
777
+ ariaLabel: "Resize right panel"
778
+ }),
779
+ /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
780
+ className: "semiont-toolbar-panels__content",
781
+ children: [
782
+ children,
783
+ activePanel === 'user' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(UserPanel, {}),
784
+ activePanel === 'settings' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.SettingsPanel, {
785
+ showLineNumbers: showLineNumbers,
786
+ theme: theme,
787
+ hoverDelayMs: hoverDelayMs,
788
+ locale: locale,
789
+ isPendingLocaleChange: isPending
790
+ })
791
+ ]
792
+ })
793
+ ]
794
+ });
795
+ }
796
+
797
+
798
+ /***/ }),
799
+
800
+ /***/ 51751:
801
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
802
+
803
+ "use strict";
804
+ __webpack_require__.r(__webpack_exports__);
805
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
806
+ /* harmony export */ __next_app__: () => (/* binding */ __next_app__),
807
+ /* harmony export */ handler: () => (/* binding */ handler),
808
+ /* harmony export */ routeModule: () => (/* binding */ routeModule)
809
+ /* harmony export */ });
810
+ /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80666);
811
+ /* harmony import */ var next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__);
812
+ /* harmony import */ var next_dist_server_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51421);
813
+ /* harmony import */ var next_dist_server_instrumentation_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4675);
814
+ /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29796);
815
+ /* harmony import */ var next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__);
816
+ /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54046);
817
+ /* harmony import */ var next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__);
818
+ /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74928);
819
+ /* harmony import */ var next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__);
820
+ /* harmony import */ var next_dist_server_app_render_interop_default__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19727);
821
+ /* harmony import */ var next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24268);
822
+ /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(60402);
823
+ /* harmony import */ var next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__);
824
+ /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22040);
825
+ /* harmony import */ var next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__);
826
+ /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27186);
827
+ /* harmony import */ var next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__);
828
+ /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49228);
829
+ /* harmony import */ var next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_manifests_singleton__WEBPACK_IMPORTED_MODULE_11__);
830
+ /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(97485);
831
+ /* harmony import */ var next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__);
832
+ /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(261);
833
+ /* harmony import */ var next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__);
834
+ /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(80885);
835
+ /* harmony import */ var next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_server_action_request_meta__WEBPACK_IMPORTED_MODULE_14__);
836
+ /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(7162);
837
+ /* harmony import */ var next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__);
838
+ /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(26713);
839
+ /* harmony import */ var next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__);
840
+ /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(70972);
841
+ /* harmony import */ var next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_response_cache__WEBPACK_IMPORTED_MODULE_17__);
842
+ /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57341);
843
+ /* harmony import */ var next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__);
844
+ /* harmony import */ var next_dist_server_render_result__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(95105);
845
+ /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(38038);
846
+ /* harmony import */ var next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__);
847
+ /* harmony import */ var next_dist_server_stream_utils_encoded_tags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(29898);
848
+ /* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62918);
849
+ /* harmony import */ var next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__);
850
+ /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(98798);
851
+ /* harmony import */ var next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__);
852
+ /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(86439);
853
+ /* harmony import */ var next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__);
854
+ /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(77068);
855
+ /* harmony import */ var next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__);
856
+ /* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(31214);
857
+ /* harmony import */ var next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__);
858
+ /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(35402);
859
+ /* harmony import */ var next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__);
860
+ /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(29059);
861
+ /* harmony import */ var next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__);
862
+ /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(70722);
863
+ /* harmony import */ var next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__);
864
+ /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(31182);
865
+ /* harmony import */ var next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__);
866
+ /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(43954);
867
+ /* harmony import */ var next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__);
868
+ /* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(17891);
869
+ /* harmony import */ var next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__);
870
+ /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
871
+ /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__) if(["default","__next_app__","routeModule","handler"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__[__WEBPACK_IMPORT_KEY__]
872
+ /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
873
+ const module0 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 95235));
874
+ const module1 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 25195));
875
+ const module2 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
876
+ const module3 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 72353));
877
+ const module4 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 4253, 23));
878
+ const module5 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.t.bind(__webpack_require__, 49184, 23));
879
+ const module6 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 57149));
880
+ const module7 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
881
+ const module8 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 28310));
882
+ const module9 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 12156));
883
+ const module10 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
884
+ const module11 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 56357));
885
+ const page12 = () => Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 13035));
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+ // We inject the tree and pages here so that we can use them in the route
914
+ // module.
915
+ const tree = {
916
+ children: [
917
+ '',
918
+ {
919
+ children: [
920
+ '[locale]',
921
+ {
922
+ children: [
923
+ 'know',
924
+ {
925
+ children: [
926
+ 'compose',
927
+ {
928
+ children: ['__PAGE__', {}, {
929
+ page: [page12, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/compose/page.tsx"],
930
+
931
+ }]
932
+ },
933
+ {
934
+ 'global-error': [module11, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
935
+
936
+ },
937
+ []
938
+ ]
939
+ },
940
+ {
941
+ 'layout': [module9, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/know/layout.tsx"],
942
+ 'global-error': [module10, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
943
+
944
+ },
945
+ []
946
+ ]
947
+ },
948
+ {
637
949
  'layout': [module6, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/layout.tsx"],
638
- 'not-found': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
950
+ 'global-error': [module7, "/home/runner/work/semiont/semiont/apps/frontend/src/app/global-error.tsx"],
951
+ 'not-found': [module8, "/home/runner/work/semiont/semiont/apps/frontend/src/app/[locale]/not-found.tsx"],
639
952
 
640
- }
953
+ },
954
+ ["_not-found","_global-error","api"]
641
955
  ]
642
956
  },
643
957
  {
@@ -648,11 +962,10 @@ const tree = {
648
962
  'forbidden': [module4, "next/dist/client/components/builtin/forbidden.js"],
649
963
  'unauthorized': [module5, "next/dist/client/components/builtin/unauthorized.js"],
650
964
 
651
- }
965
+ },
966
+ []
652
967
  ]
653
968
  }.children;
654
-
655
-
656
969
  const __next_app_require__ = __webpack_require__
657
970
  const __next_app_load_chunk__ = () => Promise.resolve()
658
971
  const __next_app__ = {
@@ -665,6 +978,7 @@ const __next_app__ = {
665
978
 
666
979
 
667
980
 
981
+
668
982
  // Create and export the route module that will be consumed.
669
983
  const routeModule = new next_dist_server_route_modules_app_page_module_compiled__WEBPACK_IMPORTED_MODULE_0__.AppPageRouteModule({
670
984
  definition: {
@@ -682,12 +996,53 @@ const routeModule = new next_dist_server_route_modules_app_page_module_compiled_
682
996
  distDir: ".next" || 0,
683
997
  relativeProjectDir: false || ''
684
998
  });
999
+ function buildDynamicSegmentPlaceholder(param) {
1000
+ const { repeat, optional } = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getParamProperties)(param.paramType);
1001
+ if (optional) {
1002
+ return `[[...${param.paramName}]]`;
1003
+ }
1004
+ if (repeat) {
1005
+ return `[...${param.paramName}]`;
1006
+ }
1007
+ return `[${param.paramName}]`;
1008
+ }
1009
+ /**
1010
+ * Builds the cache key for the most complete prerenderable shell we can derive
1011
+ * from the shell that matched this request. Only params that can still be
1012
+ * filled by `generateStaticParams` are substituted; fully dynamic params stay
1013
+ * as placeholders so a request like `/c/foo` can complete `/[one]/[two]` into
1014
+ * `/c/[two]` rather than `/c/foo`.
1015
+ */ function buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params) {
1016
+ const prerenderableParamsByName = new Map(remainingPrerenderableParams.map((param)=>[
1017
+ param.paramName,
1018
+ param
1019
+ ]));
1020
+ return fallbackPathname.split('/').map((segment)=>{
1021
+ const segmentParam = (0,next_dist_shared_lib_router_utils_get_segment_param__WEBPACK_IMPORTED_MODULE_32__.getSegmentParam)(segment);
1022
+ if (!segmentParam) {
1023
+ return segment;
1024
+ }
1025
+ const remainingParam = prerenderableParamsByName.get(segmentParam.paramName);
1026
+ if (!remainingParam) {
1027
+ return segment;
1028
+ }
1029
+ const value = params == null ? void 0 : params[remainingParam.paramName];
1030
+ if (!value) {
1031
+ return segment;
1032
+ }
1033
+ const encodedValue = Array.isArray(value) ? value.map((item)=>encodeURIComponent(item)).join('/') : encodeURIComponent(value);
1034
+ return segment.replace(buildDynamicSegmentPlaceholder(remainingParam), encodedValue);
1035
+ }).join('/') || '/';
1036
+ }
685
1037
  async function handler(req, res, ctx) {
686
- var _this;
1038
+ var _this, _prerenderManifest_routes_resolvedPathname, _prerenderInfo_fallbackRootParams, _prerenderInfo_fallbackRouteParams;
1039
+ if (ctx.requestMeta) {
1040
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.setRequestMeta)(req, ctx.requestMeta);
1041
+ }
687
1042
  if (routeModule.isDev) {
688
1043
  (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());
689
1044
  }
690
- const isMinimalMode = Boolean( false || (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
1045
+ const isMinimalMode = Boolean((0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'minimalMode'));
691
1046
  let srcPage = "/[locale]/know/compose/page";
692
1047
  // turbopack doesn't normalize `/index` in the page name
693
1048
  // so we need to to process dynamic routes properly
@@ -707,7 +1062,7 @@ async function handler(req, res, ctx) {
707
1062
  ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
708
1063
  return null;
709
1064
  }
710
- const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId } = prepareResult;
1065
+ const { buildId, query, params, pageIsDynamic, buildManifest, nextFontManifest, reactLoadableManifest, serverActionsManifest, clientReferenceManifest, subresourceIntegrityManifest, prerenderManifest, isDraftMode, resolvedPathname, revalidateOnlyGenerated, routerServerContext, nextConfig, parsedUrl, interceptionRoutePatterns, deploymentId, clientAssetToken } = prepareResult;
711
1066
  const normalizedSrcPage = (0,next_dist_shared_lib_router_utils_app_paths__WEBPACK_IMPORTED_MODULE_13__.normalizeAppPath)(srcPage);
712
1067
  let { isOnDemandRevalidate } = prepareResult;
713
1068
  // We use the resolvedPathname instead of the parsedUrl.pathname because it
@@ -717,7 +1072,8 @@ async function handler(req, res, ctx) {
717
1072
  // treat the pathname as dynamic. Currently, there's a bug in the PPR
718
1073
  // implementation that incorrectly leaves %%drp placeholders in the output of
719
1074
  // parallel routes. This is addressed with cacheComponents.
720
- const prerenderInfo = nextConfig.experimental.ppr && !nextConfig.cacheComponents && (0,next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_30__.isInterceptionRouteAppPath)(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);
1075
+ const prerenderMatch = nextConfig.experimental.ppr && !nextConfig.cacheComponents && (0,next_dist_shared_lib_router_utils_interception_routes__WEBPACK_IMPORTED_MODULE_31__.isInterceptionRouteAppPath)(resolvedPathname) ? null : routeModule.match(resolvedPathname, prerenderManifest);
1076
+ const prerenderInfo = (prerenderMatch == null ? void 0 : prerenderMatch.route) ?? null;
721
1077
  const isPrerendered = !!prerenderManifest.routes[resolvedPathname];
722
1078
  const userAgent = req.headers['user-agent'] || '';
723
1079
  const botType = (0,next_dist_shared_lib_router_utils_is_bot__WEBPACK_IMPORTED_MODULE_16__.getBotType)(userAgent);
@@ -734,15 +1090,65 @@ async function handler(req, res, ctx) {
734
1090
  * If the route being rendered is an app page, and the ppr feature has been
735
1091
  * enabled, then the given route _could_ support PPR.
736
1092
  */ const couldSupportPPR = (0,next_dist_server_lib_experimental_ppr__WEBPACK_IMPORTED_MODULE_9__.checkIsAppPPREnabled)(nextConfig.experimental.ppr);
1093
+ // Stash postponed state for server actions when in minimal mode.
1094
+ // We extract it here so the RDC is available for the re-render after the action completes.
1095
+ const resumeStateLengthHeader = req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_STATE_LENGTH_HEADER];
1096
+ if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && isMinimalMode && couldSupportPPR && isPossibleServerAction && resumeStateLengthHeader && typeof resumeStateLengthHeader === 'string') {
1097
+ const stateLength = parseInt(resumeStateLengthHeader, 10);
1098
+ const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
1099
+ if (!isNaN(stateLength) && stateLength > 0) {
1100
+ var _nextConfig_experimental_serverActions;
1101
+ if (stateLength > maxPostponedStateSizeBytes) {
1102
+ res.statusCode = 413;
1103
+ res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
1104
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
1105
+ return null;
1106
+ }
1107
+ // Calculate max total body size to prevent buffering excessively large
1108
+ // payloads before the action handler checks. We use stateLength (not
1109
+ // maxPostponedStateSizeBytes) so the postponed state doesn't eat into
1110
+ // the action body budget - it's already validated above.
1111
+ const defaultActionBodySizeLimit = '1 MB';
1112
+ const actionBodySizeLimit = ((_nextConfig_experimental_serverActions = nextConfig.experimental.serverActions) == null ? void 0 : _nextConfig_experimental_serverActions.bodySizeLimit) ?? defaultActionBodySizeLimit;
1113
+ const actionBodySizeLimitBytes = actionBodySizeLimit !== defaultActionBodySizeLimit ? (__webpack_require__(32683).parse)(actionBodySizeLimit) : 1024 * 1024 // 1 MB
1114
+ ;
1115
+ const maxTotalBodySize = stateLength + actionBodySizeLimitBytes;
1116
+ const fullBody = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxTotalBodySize);
1117
+ if (fullBody === null) {
1118
+ res.statusCode = 413;
1119
+ res.end(`Request body exceeded limit. ` + `To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit`);
1120
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
1121
+ return null;
1122
+ }
1123
+ if (fullBody.length >= stateLength) {
1124
+ // Extract postponed state from the beginning
1125
+ const postponedState = fullBody.subarray(0, stateLength).toString('utf8');
1126
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponedState);
1127
+ // Store the remaining action body for the action handler
1128
+ const actionBody = fullBody.subarray(stateLength);
1129
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'actionBody', actionBody);
1130
+ } else {
1131
+ throw Object.defineProperty(new Error(`invariant: expected ${stateLength} bytes of postponed state but only received ${fullBody.length} bytes`), "__NEXT_ERROR_CODE", {
1132
+ value: "E979",
1133
+ enumerable: false,
1134
+ configurable: true
1135
+ });
1136
+ }
1137
+ }
1138
+ }
737
1139
  if (!(0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'postponed') && couldSupportPPR && req.headers[next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_RESUME_HEADER] === '1' && req.method === 'POST') {
1140
+ const { maxPostponedStateSize, maxPostponedStateSizeBytes } = (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize);
738
1141
  // Decode the postponed state from the request body, it will come as
739
1142
  // an array of buffers, so collect them and then concat them to form
740
1143
  // the string.
741
- const body = [];
742
- for await (const chunk of req){
743
- body.push(chunk);
1144
+ const body = await (0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.readBodyWithSizeLimit)(req, maxPostponedStateSizeBytes);
1145
+ if (body === null) {
1146
+ res.statusCode = 413;
1147
+ res.end((0,next_dist_server_lib_postponed_request_body__WEBPACK_IMPORTED_MODULE_26__.getPostponedStateExceededErrorMessage)(maxPostponedStateSize));
1148
+ ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());
1149
+ return null;
744
1150
  }
745
- const postponed = Buffer.concat(body).toString('utf8');
1151
+ const postponed = body.toString('utf8');
746
1152
  (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'postponed', postponed);
747
1153
  }
748
1154
  // When enabled, this will allow the use of the `?__nextppronly` query to
@@ -751,14 +1157,29 @@ async function handler(req, res, ctx) {
751
1157
  // When enabled, this will allow the use of the `?__nextppronly` query
752
1158
  // to enable debugging of the fallback shell.
753
1159
  const hasDebugFallbackShellQuery = hasDebugStaticShellQuery && query.__nextppronly === 'fallback';
1160
+ // Whether the testing API is exposed (dev mode or explicit flag)
1161
+ const exposeTestingApi = routeModule.isDev === true || nextConfig.experimental.exposeTestingApiInProductionBuild === true;
1162
+ // Enable the Instant Navigation Testing API. Renders only the prefetched
1163
+ // portion of the page, excluding dynamic content. This allows tests to
1164
+ // assert on the prefetched UI state deterministically.
1165
+ // - Header: Used for client-side navigations where we can set request headers
1166
+ // - Cookie: Used for MPA navigations (page reload, full page load) where we
1167
+ // can't set request headers. Only applies to document requests (no RSC
1168
+ // header) - RSC requests should proceed normally even during a locked scope,
1169
+ // with blocking happening on the client side.
1170
+ const isInstantNavigationTest = exposeTestingApi && (req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_PREFETCH_HEADER] === '1' || req.headers[next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_HEADER] === undefined && typeof req.headers.cookie === 'string' && req.headers.cookie.includes(next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.NEXT_INSTANT_TEST_COOKIE + '='));
754
1171
  // This page supports PPR if it is marked as being `PARTIALLY_STATIC` in the
755
1172
  // prerender manifest and this is an app page.
756
- const isRoutePPREnabled = couldSupportPPR && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR
1173
+ const isRoutePPREnabled = // When the instant navigation testing API is active, enable the PPR
1174
+ // prerender path even without Cache Components. In dev mode without CC,
1175
+ // static pages need this path to produce buffered segment data (the
1176
+ // legacy prerender path hangs in dev mode).
1177
+ (couldSupportPPR || isInstantNavigationTest) && (((_this = prerenderManifest.routes[normalizedSrcPage] ?? prerenderManifest.dynamicRoutes[normalizedSrcPage]) == null ? void 0 : _this.renderingMode) === 'PARTIALLY_STATIC' || // Ideally we'd want to check the appConfig to see if this page has PPR
757
1178
  // enabled or not, but that would require plumbing the appConfig through
758
1179
  // to the server during development. We assume that the page supports it
759
- // but only during development.
760
- hasDebugStaticShellQuery && (routeModule.isDev === true || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
761
- const isDebugStaticShell = hasDebugStaticShellQuery && isRoutePPREnabled;
1180
+ // but only during development or when the testing API is exposed.
1181
+ (hasDebugStaticShellQuery || isInstantNavigationTest) && (exposeTestingApi || (routerServerContext == null ? void 0 : routerServerContext.experimentalTestProxy) === true));
1182
+ const isDebugStaticShell = (hasDebugStaticShellQuery || isInstantNavigationTest) && isRoutePPREnabled;
762
1183
  // We should enable debugging dynamic accesses when the static shell
763
1184
  // debugging has been enabled and we're also in development mode.
764
1185
  const isDebugDynamicAccesses = isDebugStaticShell && routeModule.isDev === true;
@@ -770,7 +1191,11 @@ async function handler(req, res, ctx) {
770
1191
  // If PPR is enabled, and this is a RSC request (but not a prefetch), then
771
1192
  // we can use this fact to only generate the flight data for the request
772
1193
  // because we can't cache the HTML (as it's also dynamic).
773
- let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest;
1194
+ const staticPrefetchDataRoute = (_prerenderManifest_routes_resolvedPathname = prerenderManifest.routes[resolvedPathname]) == null ? void 0 : _prerenderManifest_routes_resolvedPathname.prefetchDataRoute;
1195
+ let isDynamicRSCRequest = isRoutePPREnabled && isRSCRequest && !isPrefetchRSCRequest && // If generated at build time, treat the RSC request as static
1196
+ // so we can serve the prebuilt .rsc without a dynamic render.
1197
+ // Only do this for routes that have a concrete prefetchDataRoute.
1198
+ !staticPrefetchDataRoute;
774
1199
  // During a PPR revalidation, the RSC request is not dynamic if we do not have the postponed data.
775
1200
  // We only attach the postponed data during a resume. If there's no postponed data, then it must be a revalidation.
776
1201
  // This is to ensure that we don't bypass the cache during a revalidation.
@@ -786,10 +1211,11 @@ async function handler(req, res, ctx) {
786
1211
  // being true for a revalidate due to modifying the base-server this.renderOpts
787
1212
  // when fixing this to correct logic it causes hydration issue since we set
788
1213
  // serveStreamingMetadata to true during export
789
- const serveStreamingMetadata = isHtmlBot && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
790
- const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a html bot request and PPR is enabled, then we don't want
791
- // to serve a static response.
792
- !(isHtmlBot && isRoutePPREnabled));
1214
+ const serveStreamingMetadata = botType && isRoutePPREnabled ? false : !userAgent ? true : (0,next_dist_server_lib_streaming_metadata__WEBPACK_IMPORTED_MODULE_12__.shouldServeStreamingMetadata)(userAgent, nextConfig.htmlLimitedBots);
1215
+ const isSSG = Boolean((prerenderInfo || isPrerendered || prerenderManifest.routes[normalizedSrcPage]) && // If this is a bot request and PPR is enabled, then we don't want
1216
+ // to serve a static response. This applies to both DOM bots (like Googlebot)
1217
+ // and HTML-limited bots.
1218
+ !(botType && isRoutePPREnabled));
793
1219
  // When a page supports cacheComponents, we can support RDC for Navigations
794
1220
  const supportsRDCForNavigations = isRoutePPREnabled && nextConfig.cacheComponents === true;
795
1221
  // In development, we always want to generate dynamic HTML.
@@ -806,18 +1232,37 @@ async function handler(req, res, ctx) {
806
1232
  // RSC request, we'll pass the minimal postponed data to the render
807
1233
  // which will trigger the `supportsDynamicResponse` to be true.
808
1234
  isDynamicRSCRequest && !isMinimalMode : isDynamicRSCRequest);
809
- // When html bots request PPR page, perform the full dynamic rendering.
810
- const shouldWaitOnAllReady = isHtmlBot && isRoutePPREnabled;
1235
+ // When bots request PPR page, perform the full dynamic rendering.
1236
+ // This applies to both DOM bots (like Googlebot) and HTML-limited bots.
1237
+ const shouldWaitOnAllReady = Boolean(botType) && isRoutePPREnabled;
1238
+ const remainingPrerenderableParams = (prerenderInfo == null ? void 0 : prerenderInfo.remainingPrerenderableParams) ?? [];
1239
+ const hasUnresolvedRootFallbackParams = (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && (((_prerenderInfo_fallbackRootParams = prerenderInfo.fallbackRootParams) == null ? void 0 : _prerenderInfo_fallbackRootParams.length) ?? 0) > 0;
811
1240
  let ssgCacheKey = null;
812
1241
  if (!isDraftMode && isSSG && !supportsDynamicResponse && !isPossibleServerAction && !minimalPostponed && !isDynamicRSCRequest) {
813
- ssgCacheKey = resolvedPathname;
1242
+ // For normal SSG routes we cache by the fully resolved pathname. For
1243
+ // partial fallbacks we instead derive the cache key from the shell
1244
+ // that matched this request so `/prefix/[one]/[two]` can specialize into
1245
+ // `/prefix/c/[two]` without promoting all the way to `/prefix/c/foo`.
1246
+ const fallbackPathname = prerenderMatch ? typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : prerenderMatch.source : null;
1247
+ if (nextConfig.experimental.partialFallbacks === true && fallbackPathname && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && !hasUnresolvedRootFallbackParams) {
1248
+ if (remainingPrerenderableParams.length > 0) {
1249
+ const completedShellCacheKey = buildCompletedShellCacheKey(fallbackPathname, remainingPrerenderableParams, params);
1250
+ // If applying the current request params doesn't make the shell any
1251
+ // more complete, then this shell is already at its most complete
1252
+ // form and should remain shared rather than creating a new cache entry.
1253
+ ssgCacheKey = completedShellCacheKey !== fallbackPathname ? completedShellCacheKey : null;
1254
+ }
1255
+ } else {
1256
+ ssgCacheKey = resolvedPathname;
1257
+ }
814
1258
  }
815
1259
  // the staticPathKey differs from ssgCacheKey since
816
1260
  // ssgCacheKey is null in dev since we're always in "dynamic"
817
- // mode in dev to bypass the cache, but we still need to honor
818
- // dynamicParams = false in dev mode
1261
+ // mode in dev to bypass the cache. It can also be null for partial
1262
+ // fallback shells that should remain shared and must not create a
1263
+ // param-specific ISR entry, but we still need to honor fallback handling.
819
1264
  let staticPathKey = ssgCacheKey;
820
- if (!staticPathKey && routeModule.isDev) {
1265
+ if (!staticPathKey && (routeModule.isDev || isSSG && pageIsDynamic && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams))) {
821
1266
  staticPathKey = resolvedPathname;
822
1267
  }
823
1268
  // If this is a request for an app path that should be statically generated
@@ -827,9 +1272,8 @@ async function handler(req, res, ctx) {
827
1272
  (0,next_dist_server_app_render_strip_flight_headers__WEBPACK_IMPORTED_MODULE_7__/* .stripFlightHeaders */ .d)(req.headers);
828
1273
  }
829
1274
  const ComponentMod = {
830
- ...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_26__,
1275
+ ...next_dist_server_app_render_entry_base__WEBPACK_IMPORTED_MODULE_27__,
831
1276
  tree,
832
- GlobalError: _home_runner_work_semiont_semiont_apps_frontend_src_app_global_error_tsx__WEBPACK_IMPORTED_MODULE_25__["default"],
833
1277
  handler,
834
1278
  routeModule,
835
1279
  __next_app__
@@ -847,6 +1291,8 @@ async function handler(req, res, ctx) {
847
1291
  const method = req.method || 'GET';
848
1292
  const tracer = (0,next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.getTracer)();
849
1293
  const activeSpan = tracer.getActiveScopeSpan();
1294
+ const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);
1295
+ const remainingFallbackRouteParams = nextConfig.experimental.partialFallbacks === true && remainingPrerenderableParams.length > 0 ? (prerenderInfo == null ? void 0 : (_prerenderInfo_fallbackRouteParams = prerenderInfo.fallbackRouteParams) == null ? void 0 : _prerenderInfo_fallbackRouteParams.filter((param)=>!remainingPrerenderableParams.some((prerenderableParam)=>prerenderableParam.paramName === param.paramName))) ?? [] : [];
850
1296
  const render404 = async ()=>{
851
1297
  // TODO: should route-module itself handle rendering the 404
852
1298
  if (routerServerContext == null ? void 0 : routerServerContext.render404) {
@@ -859,6 +1305,7 @@ async function handler(req, res, ctx) {
859
1305
  try {
860
1306
  const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
861
1307
  res.setHeader('Vary', varyHeader);
1308
+ let parentSpan;
862
1309
  const invokeRouteModule = async (span, context)=>{
863
1310
  const nextReq = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextRequest(req);
864
1311
  const nextRes = new next_dist_server_base_http_node__WEBPACK_IMPORTED_MODULE_8__.NodeNextResponse(res);
@@ -886,19 +1333,29 @@ async function handler(req, res, ctx) {
886
1333
  'next.span_name': name
887
1334
  });
888
1335
  span.updateName(name);
1336
+ // Propagate http.route to the parent span if one exists (e.g.
1337
+ // a platform-created HTTP span in adapter deployments).
1338
+ if (parentSpan && parentSpan !== span) {
1339
+ parentSpan.setAttribute('http.route', route);
1340
+ parentSpan.updateName(name);
1341
+ }
889
1342
  } else {
890
1343
  span.updateName(`${method} ${srcPage}`);
891
1344
  }
892
1345
  });
893
1346
  };
894
- const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache');
1347
+ const incrementalCache = (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);
1348
+ incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();
1349
+ globalThis.__incrementalCache = incrementalCache;
895
1350
  const doRender = async ({ span, postponed, fallbackRouteParams, forceStaticRender })=>{
896
1351
  const context = {
897
1352
  query,
898
1353
  params,
899
1354
  page: normalizedSrcPage,
900
1355
  sharedContext: {
901
- buildId
1356
+ buildId,
1357
+ deploymentId,
1358
+ clientAssetToken
902
1359
  },
903
1360
  serverComponentsHmrCache: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'serverComponentsHmrCache'),
904
1361
  fallbackRouteParams,
@@ -934,7 +1391,6 @@ async function handler(req, res, ctx) {
934
1391
  trailingSlash: nextConfig.trailingSlash,
935
1392
  images: nextConfig.images,
936
1393
  previewProps: prerenderManifest.preview,
937
- deploymentId: deploymentId,
938
1394
  enableTainting: nextConfig.experimental.taint,
939
1395
  htmlLimitedBots: nextConfig.htmlLimitedBots,
940
1396
  reactMaxHeadersLength: nextConfig.reactMaxHeadersLength,
@@ -943,8 +1399,9 @@ async function handler(req, res, ctx) {
943
1399
  cacheLifeProfiles: nextConfig.cacheLife,
944
1400
  basePath: nextConfig.basePath,
945
1401
  serverActions: nextConfig.experimental.serverActions,
1402
+ logServerFunctions: typeof nextConfig.logging === 'object' && Boolean(nextConfig.logging.serverFunctions),
946
1403
  ...isDebugStaticShell || isDebugDynamicAccesses || isDebugFallbackShell ? {
947
- nextExport: true,
1404
+ isBuildTimePrerendering: true,
948
1405
  supportsDynamicResponse: false,
949
1406
  isStaticGeneration: true,
950
1407
  isDebugDynamicAccesses: isDebugDynamicAccesses
@@ -955,11 +1412,14 @@ async function handler(req, res, ctx) {
955
1412
  expireTime: nextConfig.expireTime,
956
1413
  staleTimes: nextConfig.experimental.staleTimes,
957
1414
  dynamicOnHover: Boolean(nextConfig.experimental.dynamicOnHover),
1415
+ optimisticRouting: Boolean(nextConfig.experimental.optimisticRouting),
958
1416
  inlineCss: Boolean(nextConfig.experimental.inlineCss),
1417
+ prefetchInlining: nextConfig.experimental.prefetchInlining ?? false,
959
1418
  authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
1419
+ cachedNavigations: Boolean(nextConfig.experimental.cachedNavigations),
960
1420
  clientTraceMetadata: nextConfig.experimental.clientTraceMetadata || [],
961
1421
  clientParamParsingOrigins: nextConfig.experimental.clientParamParsingOrigins,
962
- maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_24__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
1422
+ maxPostponedStateSizeBytes: (0,next_dist_shared_lib_size_limit__WEBPACK_IMPORTED_MODULE_25__.parseMaxPostponedStateSize)(nextConfig.experimental.maxPostponedStateSize)
963
1423
  },
964
1424
  waitUntil: ctx.waitUntil,
965
1425
  onClose: (cb)=>{
@@ -967,15 +1427,9 @@ async function handler(req, res, ctx) {
967
1427
  },
968
1428
  onAfterTaskError: ()=>{},
969
1429
  onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext),
970
- err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError'),
971
- dev: routeModule.isDev
1430
+ err: (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'invokeError')
972
1431
  }
973
1432
  };
974
- if (isDebugStaticShell || isDebugDynamicAccesses) {
975
- context.renderOpts.nextExport = true;
976
- context.renderOpts.supportsDynamicResponse = false;
977
- context.renderOpts.isDebugDynamicAccesses = isDebugDynamicAccesses;
978
- }
979
1433
  // When we're revalidating in the background, we should not allow dynamic
980
1434
  // responses.
981
1435
  if (forceStaticRender) {
@@ -1038,6 +1492,16 @@ async function handler(req, res, ctx) {
1038
1492
  if (prerenderInfo) {
1039
1493
  fallbackMode = (0,next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.parseFallbackField)(prerenderInfo.fallback);
1040
1494
  }
1495
+ if (nextConfig.experimental.partialFallbacks === true && (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === null && !hasUnresolvedRootFallbackParams && remainingPrerenderableParams.length > 0) {
1496
+ // Generic source shells without unresolved root params don't have a
1497
+ // concrete fallback file of their own, so they're marked as blocking.
1498
+ // When we can complete the shell into a more specific
1499
+ // prerendered shell for this request, treat it like a prerender
1500
+ // fallback so we can serve that shell instead of blocking on the full
1501
+ // route. Root-param shells stay blocking, since unknown root branches
1502
+ // should not inherit a shell from another generated branch.
1503
+ fallbackMode = next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.PRERENDER;
1504
+ }
1041
1505
  // When serving a HTML bot request, we want to serve a blocking render and
1042
1506
  // not the prerendered page. This ensures that the correct content is served
1043
1507
  // to the bot in the head.
@@ -1062,10 +1526,10 @@ async function handler(req, res, ctx) {
1062
1526
  // getStaticPaths.
1063
1527
  (isProduction || prerenderInfo) && // When fallback isn't present, abort this render so we 404
1064
1528
  fallbackMode === next_dist_lib_fallback__WEBPACK_IMPORTED_MODULE_18__.FallbackMode.NOT_FOUND) {
1065
- if (nextConfig.experimental.adapterPath) {
1529
+ if (nextConfig.adapterPath) {
1066
1530
  return await render404();
1067
1531
  }
1068
- throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__.NoFallbackError();
1532
+ throw new next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError();
1069
1533
  }
1070
1534
  // When cacheComponents is enabled, we can use the fallback
1071
1535
  // response if the request is not a dynamic RSC request because the
@@ -1074,10 +1538,19 @@ async function handler(req, res, ctx) {
1074
1538
  // contains param references, and therefore we can't use the fallback.
1075
1539
  if (isRoutePPREnabled && (nextConfig.cacheComponents ? !isDynamicRSCRequest : !isRSCRequest)) {
1076
1540
  const cacheKey = isProduction && typeof (prerenderInfo == null ? void 0 : prerenderInfo.fallback) === 'string' ? prerenderInfo.fallback : normalizedSrcPage;
1077
- const fallbackRouteParams = // If we're in production and we have fallback route params, then we
1078
- // can use the manifest fallback route params.
1079
- isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // have to manually generate the fallback route params.
1541
+ const fallbackRouteParams = // In production or when debugging the static shell (e.g. instant
1542
+ // navigation testing), use the prerender manifest's fallback
1543
+ // route params which correctly identifies which params are
1544
+ // unknown. Note: in dev, this block is only entered for
1545
+ // non-prerendered URLs (guarded by the outer condition).
1546
+ (isProduction || isDebugStaticShell) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // fallback (simulating the worst-case shell).
1080
1547
  isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
1548
+ // When rendering a debug static shell, override the fallback
1549
+ // params on the request so that the staged rendering correctly
1550
+ // defers params that are not statically known.
1551
+ if (isDebugStaticShell && fallbackRouteParams) {
1552
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackRouteParams);
1553
+ }
1081
1554
  // We use the response cache here to handle the revalidation and
1082
1555
  // management of the fallback shell.
1083
1556
  const fallbackResponse = await routeModule.handleResponse({
@@ -1093,8 +1566,12 @@ async function handler(req, res, ctx) {
1093
1566
  // We pass `undefined` as rendering a fallback isn't resumed
1094
1567
  // here.
1095
1568
  postponed: undefined,
1569
+ // Always serve the shell that matched this request
1570
+ // immediately. If there are still prerenderable params left,
1571
+ // the background path below will complete the shell into a
1572
+ // more specific cache entry for later requests.
1096
1573
  fallbackRouteParams,
1097
- forceStaticRender: false
1574
+ forceStaticRender: true
1098
1575
  }),
1099
1576
  waitUntil: ctx.waitUntil,
1100
1577
  isMinimalMode
@@ -1103,6 +1580,39 @@ async function handler(req, res, ctx) {
1103
1580
  if (fallbackResponse === null) return null;
1104
1581
  // Otherwise, if we did get a fallback response, we should return it.
1105
1582
  if (fallbackResponse) {
1583
+ if (!isMinimalMode && isRoutePPREnabled && // Match the build-time contract: only fallback shells that can
1584
+ // still be completed with prerenderable params should upgrade.
1585
+ remainingPrerenderableParams.length > 0 && nextConfig.experimental.partialFallbacks === true && ssgCacheKey && incrementalCache && !isOnDemandRevalidate && !isDebugFallbackShell && // The testing API relies on deterministic shell behavior, so
1586
+ // don't upgrade fallback shells in the background when it's
1587
+ // exposed.
1588
+ !exposeTestingApi && // Instant Navigation Testing API requests intentionally keep
1589
+ // the route in shell mode; don't upgrade these in background.
1590
+ !isInstantNavigationTest && // Avoid background revalidate during prefetches; this can trigger
1591
+ // static prerender errors that surface as 500s for the prefetch
1592
+ // request itself.
1593
+ !isPrefetchRSCRequest) {
1594
+ (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
1595
+ const responseCache = routeModule.getResponseCache(req);
1596
+ try {
1597
+ // Only the params that were just specialized should be
1598
+ // removed from the fallback render. Any remaining fallback
1599
+ // params stay deferred so the revalidated result is a more
1600
+ // specific shell (e.g. `/prefix/c/[two]`), not a fully
1601
+ // concrete route (`/prefix/c/foo`).
1602
+ await responseCache.revalidate(ssgCacheKey, incrementalCache, isRoutePPREnabled, false, (c)=>{
1603
+ return doRender({
1604
+ span: c.span,
1605
+ postponed: undefined,
1606
+ fallbackRouteParams: remainingFallbackRouteParams.length > 0 ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(remainingFallbackRouteParams) : null,
1607
+ forceStaticRender: true
1608
+ });
1609
+ }, // We don't have a prior entry for this param-specific shell.
1610
+ null, hasResolved, ctx.waitUntil);
1611
+ } catch (err) {
1612
+ console.error('Error revalidating the page in the background', err);
1613
+ }
1614
+ });
1615
+ }
1106
1616
  // Remove the cache control from the response to prevent it from being
1107
1617
  // used in the surrounding cache.
1108
1618
  delete fallbackResponse.cacheControl;
@@ -1113,12 +1623,15 @@ async function handler(req, res, ctx) {
1113
1623
  // Only requests that aren't revalidating can be resumed. If we have the
1114
1624
  // minimal postponed data, then we should resume the render with it.
1115
1625
  let postponed = !isOnDemandRevalidate && !isRevalidating && minimalPostponed ? minimalPostponed : undefined;
1116
- // If this is a dynamic RSC request, we should use the postponed data from
1117
- // the static render (if available). This ensures that we can utilize the
1118
- // resume data cache (RDC) from the static render to ensure that the data
1119
- // is consistent between the static and dynamic renders.
1626
+ // If this is a dynamic RSC request or a server action request, we should
1627
+ // use the postponed data from the static render (if available). This
1628
+ // ensures that we can utilize the resume data cache (RDC) from the static
1629
+ // render to ensure that the data is consistent between the static and
1630
+ // dynamic renders (for navigations) or when re-rendering after a server
1631
+ // action.
1120
1632
  if (// Only enable RDC for Navigations if the feature is enabled.
1121
- supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && isDynamicRSCRequest && // We don't typically trigger an on-demand revalidation for dynamic RSC
1633
+ supportsRDCForNavigations && "nodejs" !== 'edge' && !isMinimalMode && incrementalCache && // Include both dynamic RSC requests (navigations) and server actions
1634
+ (isDynamicRSCRequest || isPossibleServerAction) && // We don't typically trigger an on-demand revalidation for dynamic RSC
1122
1635
  // requests, as we're typically revalidating the page in the background
1123
1636
  // instead. However, if the cache entry is stale, we should trigger a
1124
1637
  // background revalidation on dynamic RSC requests. This prevents us
@@ -1143,7 +1656,7 @@ async function handler(req, res, ctx) {
1143
1656
  (incrementalCacheEntry.isStale === -1 || incrementalCacheEntry.isStale === true)) {
1144
1657
  // We want to schedule this on the next tick to ensure that the
1145
1658
  // render is not blocked on it.
1146
- (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_29__.scheduleOnNextTick)(async ()=>{
1659
+ (0,next_dist_lib_scheduler__WEBPACK_IMPORTED_MODULE_30__.scheduleOnNextTick)(async ()=>{
1147
1660
  const responseCache = routeModule.getResponseCache(req);
1148
1661
  try {
1149
1662
  await responseCache.revalidate(resolvedPathname, incrementalCache, isRoutePPREnabled, false, (c)=>responseGenerator({
@@ -1180,11 +1693,21 @@ async function handler(req, res, ctx) {
1180
1693
  }
1181
1694
  };
1182
1695
  }
1183
- const fallbackRouteParams = // If we're in production and we have fallback route params, then we
1184
- // can use the manifest fallback route params if we need to render the
1185
- // fallback shell.
1186
- isProduction && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : // manually generate the fallback route params.
1187
- isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
1696
+ const fallbackRouteParams = // In production or when debugging the static shell for a
1697
+ // non-prerendered URL, use the prerender manifest's fallback route
1698
+ // params which correctly identifies which params are unknown.
1699
+ (isProduction && (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.getRequestMeta)(req, 'renderFallbackShell') || isDebugStaticShell && !isPrerendered) && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams) ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams) : isDebugFallbackShell ? (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.getFallbackRouteParams)(normalizedSrcPage, routeModule) : null;
1700
+ // For staged dynamic rendering (Cached Navigations) and debug static
1701
+ // shell rendering, pass the fallback params via request meta so the
1702
+ // RequestStore knows which params to defer. We don't pass them as
1703
+ // fallbackRouteParams because that would replace actual param values
1704
+ // with opaque placeholders during segment resolution.
1705
+ if ((isProduction || isDebugStaticShell) && nextConfig.cacheComponents && !isPrerendered && (prerenderInfo == null ? void 0 : prerenderInfo.fallbackRouteParams)) {
1706
+ const fallbackParams = (0,next_dist_server_request_fallback_params__WEBPACK_IMPORTED_MODULE_10__.createOpaqueFallbackRouteParams)(prerenderInfo.fallbackRouteParams);
1707
+ if (fallbackParams) {
1708
+ (0,next_dist_server_request_meta__WEBPACK_IMPORTED_MODULE_4__.addRequestMeta)(req, 'fallbackParams', fallbackParams);
1709
+ }
1710
+ }
1188
1711
  // Perform the render.
1189
1712
  return doRender({
1190
1713
  span,
@@ -1215,7 +1738,7 @@ async function handler(req, res, ctx) {
1215
1738
  }
1216
1739
  // In dev, we should not cache pages for any reason.
1217
1740
  if (routeModule.isDev) {
1218
- res.setHeader('Cache-Control', 'no-store, must-revalidate');
1741
+ res.setHeader('Cache-Control', 'no-cache, must-revalidate');
1219
1742
  }
1220
1743
  if (!cacheEntry) {
1221
1744
  if (ssgCacheKey) {
@@ -1241,6 +1764,16 @@ async function handler(req, res, ctx) {
1241
1764
  });
1242
1765
  }
1243
1766
  const didPostpone = typeof cacheEntry.value.postponed === 'string';
1767
+ // Set the build ID header for RSC navigation requests when deploymentId is configured. This
1768
+ // corresponds with maybeAppendBuildIdToRSCPayload in app-render.tsx which omits the build ID
1769
+ // from the RSC payload when deploymentId is set (relying on this header instead). Server
1770
+ // actions are excluded here because action redirect responses get the deployment ID header
1771
+ // from the pre-fetched redirect target (via createRedirectRenderResult in action-handler.ts
1772
+ // which copies headers from the internal RSC fetch).
1773
+ // For static prerenders served from CDN, routes-manifest.json adds a header.
1774
+ if (isRSCRequest && !isPossibleServerAction && deploymentId) {
1775
+ res.setHeader(next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.NEXT_NAV_DEPLOYMENT_ID_HEADER, deploymentId);
1776
+ }
1244
1777
  if (isSSG && // We don't want to send a cache header for requests that contain dynamic
1245
1778
  // data. If this is a Dynamic RSC request or wasn't a Prefetch RSC
1246
1779
  // request, then we should set the cache header.
@@ -1301,7 +1834,7 @@ async function handler(req, res, ctx) {
1301
1834
  };
1302
1835
  } else {
1303
1836
  cacheControl = {
1304
- revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR,
1837
+ revalidate: next_dist_lib_constants__WEBPACK_IMPORTED_MODULE_20__.CACHE_ONE_YEAR_SECONDS,
1305
1838
  expire: undefined
1306
1839
  };
1307
1840
  }
@@ -1329,7 +1862,7 @@ async function handler(req, res, ctx) {
1329
1862
  const matchedSegment = cachedData.segmentData.get(segmentPrefetchHeader);
1330
1863
  if (matchedSegment !== undefined) {
1331
1864
  // Cache hit
1332
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
1865
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1333
1866
  req,
1334
1867
  res,
1335
1868
  generateEtags: nextConfig.generateEtags,
@@ -1345,7 +1878,7 @@ async function handler(req, res, ctx) {
1345
1878
  // don't bother to respond with 404, because these requests are only
1346
1879
  // issued as part of a prefetch.
1347
1880
  res.statusCode = 204;
1348
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
1881
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1349
1882
  req,
1350
1883
  res,
1351
1884
  generateEtags: nextConfig.generateEtags,
@@ -1400,7 +1933,7 @@ async function handler(req, res, ctx) {
1400
1933
  res.statusCode = cachedData.status;
1401
1934
  }
1402
1935
  // Redirect information is encoded in RSC payload, so we don't need to use redirect status codes
1403
- if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_27__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
1936
+ if (!isMinimalMode && cachedData.status && next_dist_client_components_redirect_status_code__WEBPACK_IMPORTED_MODULE_28__.RedirectStatusCode[cachedData.status] && isRSCRequest) {
1404
1937
  res.statusCode = 200;
1405
1938
  }
1406
1939
  // Mark that the request did postpone.
@@ -1418,7 +1951,7 @@ async function handler(req, res, ctx) {
1418
1951
  if (cachedData.html.contentType !== next_dist_client_components_app_router_headers__WEBPACK_IMPORTED_MODULE_15__.RSC_CONTENT_TYPE_HEADER) {
1419
1952
  if (nextConfig.cacheComponents) {
1420
1953
  res.statusCode = 404;
1421
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
1954
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1422
1955
  req,
1423
1956
  res,
1424
1957
  generateEtags: nextConfig.generateEtags,
@@ -1428,14 +1961,14 @@ async function handler(req, res, ctx) {
1428
1961
  });
1429
1962
  } else {
1430
1963
  // Otherwise this case is not expected.
1431
- throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_28__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
1964
+ throw Object.defineProperty(new next_dist_shared_lib_invariant_error__WEBPACK_IMPORTED_MODULE_29__.InvariantError(`Expected RSC response, got ${cachedData.html.contentType}`), "__NEXT_ERROR_CODE", {
1432
1965
  value: "E789",
1433
1966
  enumerable: false,
1434
1967
  configurable: true
1435
1968
  });
1436
1969
  }
1437
1970
  }
1438
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
1971
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1439
1972
  req,
1440
1973
  res,
1441
1974
  generateEtags: nextConfig.generateEtags,
@@ -1446,7 +1979,7 @@ async function handler(req, res, ctx) {
1446
1979
  }
1447
1980
  // As this isn't a prefetch request, we should serve the static flight
1448
1981
  // data.
1449
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
1982
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1450
1983
  req,
1451
1984
  res,
1452
1985
  generateEtags: nextConfig.generateEtags,
@@ -1457,15 +1990,36 @@ async function handler(req, res, ctx) {
1457
1990
  }
1458
1991
  // This is a request for HTML data.
1459
1992
  const body = cachedData.html;
1460
- // If there's no postponed state, we should just serve the HTML. This
1461
- // should also be the case for a resume request because it's completed
1462
- // as a server render (rather than a static render).
1463
- if (!didPostpone || isMinimalMode || isRSCRequest) {
1464
- // If we're in test mode, we should add a sentinel chunk to the response
1993
+ // Instant Navigation Testing API: serve the static shell with an
1994
+ // injected script that sets self.__next_instant_test and kicks off a
1995
+ // static RSC fetch for hydration. The transform stream also appends
1996
+ // closing </body></html> tags so the browser can parse the full document.
1997
+ // In dev mode, also inject self.__next_r so the HMR WebSocket and
1998
+ // debug channel can initialize.
1999
+ if (isInstantNavigationTest && isDebugStaticShell) {
2000
+ const instantTestRequestId = routeModule.isDev === true ? crypto.randomUUID() : null;
2001
+ body.pipeThrough((0,next_dist_server_stream_utils_node_web_streams_helper__WEBPACK_IMPORTED_MODULE_22__.createInstantTestScriptInsertionTransformStream)(instantTestRequestId));
2002
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
2003
+ req,
2004
+ res,
2005
+ generateEtags: nextConfig.generateEtags,
2006
+ poweredByHeader: nextConfig.poweredByHeader,
2007
+ result: body,
2008
+ cacheControl: {
2009
+ revalidate: 0,
2010
+ expire: undefined
2011
+ }
2012
+ });
2013
+ }
2014
+ // If there's no postponed state, we should just serve the HTML. This
2015
+ // should also be the case for a resume request because it's completed
2016
+ // as a server render (rather than a static render).
2017
+ if (!didPostpone || isMinimalMode || isRSCRequest) {
2018
+ // If we're in test mode, we should add a sentinel chunk to the response
1465
2019
  // that's between the static and dynamic parts so we can compare the
1466
2020
  // chunks and add assertions.
1467
2021
  if (false) {}
1468
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
2022
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1469
2023
  req,
1470
2024
  res,
1471
2025
  generateEtags: nextConfig.generateEtags,
@@ -1487,7 +2041,7 @@ async function handler(req, res, ctx) {
1487
2041
  controller.close();
1488
2042
  }
1489
2043
  }));
1490
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
2044
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1491
2045
  req,
1492
2046
  res,
1493
2047
  generateEtags: nextConfig.generateEtags,
@@ -1544,7 +2098,7 @@ async function handler(req, res, ctx) {
1544
2098
  console.error("couldn't abort transformer", e);
1545
2099
  });
1546
2100
  });
1547
- return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_22__.sendRenderResult)({
2101
+ return (0,next_dist_server_send_payload__WEBPACK_IMPORTED_MODULE_23__.sendRenderResult)({
1548
2102
  req,
1549
2103
  res,
1550
2104
  generateEtags: nextConfig.generateEtags,
@@ -1561,9 +2115,10 @@ async function handler(req, res, ctx) {
1561
2115
  };
1562
2116
  // TODO: activeSpan code path is for when wrapped by
1563
2117
  // next-server can be removed when this is no longer used
1564
- if (activeSpan) {
2118
+ if (isWrappedByNextServer && activeSpan) {
1565
2119
  await handleResponse(activeSpan);
1566
2120
  } else {
2121
+ parentSpan = tracer.getActiveScopeSpan();
1567
2122
  return await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(next_dist_server_lib_trace_constants__WEBPACK_IMPORTED_MODULE_5__.BaseServerSpan.handleRequest, {
1568
2123
  spanName: `${method} ${srcPage}`,
1569
2124
  kind: next_dist_server_lib_trace_tracer__WEBPACK_IMPORTED_MODULE_3__.SpanKind.SERVER,
@@ -1571,10 +2126,10 @@ async function handler(req, res, ctx) {
1571
2126
  'http.method': method,
1572
2127
  'http.target': req.url
1573
2128
  }
1574
- }, handleResponse));
2129
+ }, handleResponse), undefined, !isWrappedByNextServer);
1575
2130
  }
1576
2131
  } catch (err) {
1577
- if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_23__.NoFallbackError)) {
2132
+ if (!(err instanceof next_dist_shared_lib_no_fallback_error_external__WEBPACK_IMPORTED_MODULE_24__.NoFallbackError)) {
1578
2133
  const silenceLog = false;
1579
2134
  await routeModule.onRequestError(req, err, {
1580
2135
  routerKind: 'App Router',
@@ -1607,298 +2162,6 @@ async function handler(req, res, ctx) {
1607
2162
  //# sourceMappingURL=app-page.js.map
1608
2163
 
1609
2164
 
1610
- /***/ }),
1611
-
1612
- /***/ 41025:
1613
- /***/ ((module) => {
1614
-
1615
- "use strict";
1616
- module.exports = require("next/dist/server/app-render/dynamic-access-async-storage.external.js");
1617
-
1618
- /***/ }),
1619
-
1620
- /***/ 43954:
1621
- /***/ ((module) => {
1622
-
1623
- "use strict";
1624
- module.exports = require("next/dist/shared/lib/router/utils/interception-routes");
1625
-
1626
- /***/ }),
1627
-
1628
- /***/ 50436:
1629
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1630
-
1631
- "use strict";
1632
-
1633
- // EXPORTS
1634
- __webpack_require__.d(__webpack_exports__, {
1635
- t: () => (/* binding */ ToolbarPanels)
1636
- });
1637
-
1638
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js
1639
- var react_jsx_runtime = __webpack_require__(92692);
1640
- // EXTERNAL MODULE: ../../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js
1641
- var react = __webpack_require__(71277);
1642
- // EXTERNAL MODULE: ../../packages/react-ui/dist/index.mjs + 27 modules
1643
- var dist = __webpack_require__(76552);
1644
- ;// __barrel_optimize__?names=ResizeHandle,SettingsPanel,useEventSubscriptions,usePanelWidth!=!../../packages/react-ui/dist/index.mjs
1645
-
1646
-
1647
- // EXTERNAL MODULE: ../../node_modules/next-auth/react/index.js
1648
- var next_auth_react = __webpack_require__(62341);
1649
- // EXTERNAL MODULE: ../../node_modules/next/dist/api/image.js
1650
- var api_image = __webpack_require__(93523);
1651
- // EXTERNAL MODULE: ../../node_modules/next-intl/dist/esm/production/react-client/index.js
1652
- var react_client = __webpack_require__(56305);
1653
- ;// __barrel_optimize__?names=formatTime,sanitizeImageURL,useSessionExpiry!=!../../packages/react-ui/dist/index.mjs
1654
-
1655
-
1656
- // EXTERNAL MODULE: ./src/hooks/useAuth.ts + 1 modules
1657
- var useAuth = __webpack_require__(31039);
1658
- ;// ./src/components/UserPanel.tsx
1659
- /* __next_internal_client_entry_do_not_use__ UserPanel auto */
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
- // Fallback avatar when image fails to load or is invalid
1667
- const FALLBACK_AVATAR = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTYiIGZpbGw9IiM2QjcyODAiLz4KPHBhdGggZD0iTTE2IDE2QzE4LjIwOTEgMTYgMjAgMTQuMjA5MSAyMCAxMkMyMCA5Ljc5MDg2IDE4LjIwOTEgOCAxNiA4QzEzLjc5MDkgOCAxMiA5Ljc5MDg2IDEyIDEyQzEyIDE0LjIwOTEgMTMuNzkwOSAxNiAxNiAxNloiIGZpbGw9IiNFNUU3RUIiLz4KPHBhdGggZD0iTTI0IDI1QzI0IDIxLjY4NjMgMjAuNDE4MyAxOSAxNiAxOUMxMS41ODE3IDE5IDggMjEuNjg2MyA4IDI1IiBzdHJva2U9IiNFNUU3RUIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPg==';
1668
- function UserPanel() {
1669
- const t = (0,react_client/* useTranslations */.c)('UserPanel');
1670
- const { displayName, avatarUrl, userDomain, isAdmin, isModerator } = (0,useAuth/* useAuth */.As)();
1671
- const [imageError, setImageError] = (0,react.useState)(false);
1672
- const { timeRemaining } = (0,dist.useSessionExpiry)();
1673
- const sessionTimeFormatted = (0,dist.formatTime)(timeRemaining) ?? 'Unknown';
1674
- // Sanitize and validate the profile image URL
1675
- const profileImageUrl = (()=>{
1676
- if (!avatarUrl || imageError) {
1677
- return FALLBACK_AVATAR;
1678
- }
1679
- const sanitized = (0,dist.sanitizeImageURL)(avatarUrl);
1680
- if (!sanitized) {
1681
- console.warn('Invalid profile image URL detected, using fallback');
1682
- return FALLBACK_AVATAR;
1683
- }
1684
- return sanitized;
1685
- })();
1686
- const handleSignOut = async ()=>{
1687
- await (0,next_auth_react.signOut)({
1688
- callbackUrl: '/'
1689
- });
1690
- };
1691
- return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1692
- className: "semiont-user-panel",
1693
- children: [
1694
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("h3", {
1695
- className: "semiont-user-panel__title",
1696
- children: t('account')
1697
- }),
1698
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1699
- className: "space-y-4",
1700
- children: [
1701
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1702
- className: "flex items-center gap-3",
1703
- children: [
1704
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)(api_image["default"], {
1705
- src: profileImageUrl,
1706
- alt: t('profileAlt', {
1707
- name: displayName || t('user')
1708
- }),
1709
- width: 48,
1710
- height: 48,
1711
- className: "w-12 h-12 rounded-full object-cover",
1712
- onError: ()=>setImageError(true),
1713
- unoptimized: profileImageUrl === FALLBACK_AVATAR,
1714
- sizes: "48px",
1715
- quality: 85
1716
- }),
1717
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1718
- className: "flex-1 min-w-0",
1719
- children: [
1720
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1721
- className: "semiont-panel-text",
1722
- children: displayName || t('user')
1723
- }),
1724
- userDomain && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1725
- className: "semiont-panel-text-secondary",
1726
- children: [
1727
- "@",
1728
- userDomain
1729
- ]
1730
- })
1731
- ]
1732
- })
1733
- ]
1734
- }),
1735
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1736
- children: [
1737
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
1738
- className: "semiont-panel-label",
1739
- children: t('session')
1740
- }),
1741
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1742
- className: "semiont-session-box",
1743
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1744
- className: "semiont-panel-hint",
1745
- children: t('expiresIn', {
1746
- time: sessionTimeFormatted
1747
- })
1748
- })
1749
- })
1750
- ]
1751
- }),
1752
- (isAdmin || isModerator) && /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1753
- children: [
1754
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("label", {
1755
- className: "semiont-panel-label",
1756
- children: t('privileges')
1757
- }),
1758
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1759
- className: "space-y-1",
1760
- children: [
1761
- isAdmin && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1762
- className: "semiont-privilege-badge semiont-privilege-badge--admin",
1763
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
1764
- className: "semiont-privilege-text",
1765
- children: t('administrator')
1766
- })
1767
- }),
1768
- isModerator && /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1769
- className: "semiont-privilege-badge semiont-privilege-badge--moderator",
1770
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("span", {
1771
- className: "semiont-privilege-text",
1772
- children: t('moderator')
1773
- })
1774
- })
1775
- ]
1776
- })
1777
- ]
1778
- }),
1779
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)("div", {
1780
- className: "semiont-panel-divider",
1781
- children: /*#__PURE__*/ (0,react_jsx_runtime.jsx)("button", {
1782
- onClick: handleSignOut,
1783
- className: "semiont-signout-button",
1784
- children: t('signOut')
1785
- })
1786
- })
1787
- ]
1788
- })
1789
- ]
1790
- });
1791
- }
1792
-
1793
- // EXTERNAL MODULE: ../../node_modules/use-intl/dist/esm/production/react.js + 18 modules
1794
- var production_react = __webpack_require__(23211);
1795
- // EXTERNAL MODULE: ./src/i18n/routing.ts
1796
- var routing = __webpack_require__(99704);
1797
- ;// __barrel_optimize__?names=COMMON_PANELS!=!../../packages/react-ui/dist/index.mjs
1798
-
1799
-
1800
- ;// ./src/components/toolbar/ToolbarPanels.tsx
1801
- /* __next_internal_client_entry_do_not_use__ ToolbarPanels auto */
1802
-
1803
-
1804
-
1805
-
1806
-
1807
-
1808
- /**
1809
- * Renders the toolbar panel container with common panels (user, settings)
1810
- * and any context-specific panels passed as children.
1811
- *
1812
- * Settings changes are handled via GlobalSettingsEventBus - no callbacks needed.
1813
- *
1814
- * @example
1815
- * // Simple context (compose, discover, moderate, admin pages)
1816
- * <ToolbarPanels
1817
- * activePanel={activePanel}
1818
- * theme={theme}
1819
- * showLineNumbers={showLineNumbers}
1820
- * />
1821
- *
1822
- * @example
1823
- * // Document context with custom panels
1824
- * <ToolbarPanels
1825
- * activePanel={activePanel}
1826
- * theme={theme}
1827
- * showLineNumbers={showLineNumbers}
1828
- * >
1829
- * {activePanel === 'annotations' && <UnifiedAnnotationsPanel ... />}
1830
- * {activePanel === 'history' && <AnnotationHistory ... />}
1831
- * {activePanel === 'info' && <ResourceInfoPanel ... />}
1832
- * {activePanel === 'collaboration' && <CollaborationPanel ... />}
1833
- * {activePanel === 'jsonld' && <JsonLdPanel ... />}
1834
- * </ToolbarPanels>
1835
- */ function ToolbarPanels({ activePanel, theme, showLineNumbers, hoverDelayMs, children }) {
1836
- const locale = (0,production_react/* useLocale */.Ym)();
1837
- const router = (0,routing/* useRouter */.rd)();
1838
- const pathname = (0,routing/* usePathname */.a8)();
1839
- const [isPending, startTransition] = (0,react.useTransition)();
1840
- // Panel width management with localStorage persistence
1841
- const { width, setWidth, minWidth, maxWidth } = (0,dist.usePanelWidth)();
1842
- // Handle locale change events
1843
- const handleLocaleChanged = (0,react.useCallback)(({ locale: newLocale })=>{
1844
- if (!pathname) return;
1845
- startTransition(()=>{
1846
- // The router from @/i18n/routing is locale-aware and will handle the locale prefix
1847
- router.replace(pathname, {
1848
- locale: newLocale
1849
- });
1850
- });
1851
- }, [
1852
- pathname,
1853
- router,
1854
- startTransition
1855
- ]);
1856
- // Subscribe to locale change events
1857
- (0,dist.useEventSubscriptions)({
1858
- 'settings:locale-changed': handleLocaleChanged
1859
- });
1860
- // Don't render container if no panel is active
1861
- if (!activePanel) {
1862
- return null;
1863
- }
1864
- // In simple context (no children), only user and settings panels are valid.
1865
- // If a resource-specific panel is still active from a previous route, hide the container.
1866
- if (!children && !dist.COMMON_PANELS.includes(activePanel)) {
1867
- return null;
1868
- }
1869
- return /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1870
- className: "semiont-toolbar-panels",
1871
- style: {
1872
- width: `${width}px`,
1873
- position: 'relative'
1874
- },
1875
- children: [
1876
- /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.ResizeHandle, {
1877
- onResize: setWidth,
1878
- minWidth: minWidth,
1879
- maxWidth: maxWidth,
1880
- position: "left",
1881
- ariaLabel: "Resize right panel"
1882
- }),
1883
- /*#__PURE__*/ (0,react_jsx_runtime.jsxs)("div", {
1884
- className: "semiont-toolbar-panels__content",
1885
- children: [
1886
- children,
1887
- activePanel === 'user' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(UserPanel, {}),
1888
- activePanel === 'settings' && /*#__PURE__*/ (0,react_jsx_runtime.jsx)(dist.SettingsPanel, {
1889
- showLineNumbers: showLineNumbers,
1890
- theme: theme,
1891
- hoverDelayMs: hoverDelayMs,
1892
- locale: locale,
1893
- isPendingLocaleChange: isPending
1894
- })
1895
- ]
1896
- })
1897
- ]
1898
- });
1899
- }
1900
-
1901
-
1902
2165
  /***/ }),
1903
2166
 
1904
2167
  /***/ 55511:
@@ -1956,7 +2219,7 @@ module.exports = require("next/dist/shared/lib/no-fallback-error.external");
1956
2219
  var __webpack_require__ = require("../../../../webpack-runtime.js");
1957
2220
  __webpack_require__.C(exports);
1958
2221
  var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
1959
- var __webpack_exports__ = __webpack_require__.X(0, [7246,4741,2628,7420,2617,7780,3144,8255,9988,5015], () => (__webpack_exec__(39449)));
2222
+ var __webpack_exports__ = __webpack_require__.X(0, [8569,4741,9927,7420,2617,7780,3144,8255,9988,5015], () => (__webpack_exec__(51751)));
1960
2223
  module.exports = __webpack_exports__;
1961
2224
 
1962
2225
  })();