@farm.js/core 0.1.76 → 0.1.78

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 (444) hide show
  1. package/dist/after.cjs +1 -1
  2. package/dist/after.mjs +1 -1
  3. package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-EDJNU224.mjs} +1 -1
  4. package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
  5. package/dist/{agent-mcp.d-Cftp2kFv.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
  6. package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
  7. package/dist/agent-runtime.cjs +3 -3
  8. package/dist/agent-runtime.d.mts +2 -2
  9. package/dist/agent-runtime.d.ts +2 -2
  10. package/dist/agent-runtime.mjs +2 -2
  11. package/dist/analyzer-KVTUYGTT.cjs +16 -0
  12. package/dist/{analyzer-NLQKPN74.mjs → analyzer-M2BG6QYU.mjs} +3 -3
  13. package/dist/api/client.cjs +1 -1
  14. package/dist/api/client.mjs +1 -1
  15. package/dist/api/client.native.cjs +1 -1
  16. package/dist/api/client.native.mjs +1 -1
  17. package/dist/api/node.cjs +1 -1
  18. package/dist/api/node.d.mts +4 -4
  19. package/dist/api/node.d.ts +4 -4
  20. package/dist/api/node.mjs +1 -1
  21. package/dist/api/route-manager.cjs +5 -5
  22. package/dist/api/route-manager.d.mts +4 -4
  23. package/dist/api/route-manager.d.ts +4 -4
  24. package/dist/api/route-manager.mjs +4 -4
  25. package/dist/api/runtime.cjs +1 -1
  26. package/dist/api/runtime.d.mts +3 -3
  27. package/dist/api/runtime.d.ts +3 -3
  28. package/dist/api/runtime.mjs +1 -1
  29. package/dist/api.cjs +6 -6
  30. package/dist/api.d.mts +5 -5
  31. package/dist/api.d.ts +5 -5
  32. package/dist/api.mjs +5 -5
  33. package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
  34. package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
  35. package/dist/app-markdown.cjs +1 -1
  36. package/dist/app-markdown.d.mts +3 -3
  37. package/dist/app-markdown.d.ts +3 -3
  38. package/dist/app-markdown.mjs +1 -1
  39. package/dist/{app.d-wOkxXre8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
  40. package/dist/{app.d-DUZvwnFF.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
  41. package/dist/cache.cjs +1 -1
  42. package/dist/cache.mjs +1 -1
  43. package/dist/{chunk-DVW6SKHA.cjs → chunk-26CNCIFI.cjs} +2 -2
  44. package/dist/{chunk-CCQZDOQR.cjs → chunk-2G6JPLSL.cjs} +19 -19
  45. package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
  46. package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
  47. package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
  48. package/dist/{chunk-WILPJVQE.cjs → chunk-5KISFWD2.cjs} +4 -4
  49. package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
  50. package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
  51. package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
  52. package/dist/{chunk-A2VFKOQL.mjs → chunk-7JTVN6IJ.mjs} +1 -1
  53. package/dist/{chunk-2GZZVIXY.mjs → chunk-7RQ5KAK6.mjs} +2 -2
  54. package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
  55. package/dist/{chunk-SGQXJVFX.mjs → chunk-A37D6LOS.mjs} +1 -1
  56. package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
  57. package/dist/{chunk-LQBV2Y37.mjs → chunk-A7EJATEW.mjs} +40 -4
  58. package/dist/{chunk-CKBBKRBO.mjs → chunk-AHGOHPRN.mjs} +14 -14
  59. package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
  60. package/dist/{chunk-7564NP5Z.cjs → chunk-BZJYPIFZ.cjs} +46 -10
  61. package/dist/{chunk-3OYFMOBY.mjs → chunk-CBP7AKZH.mjs} +1 -1
  62. package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
  63. package/dist/{chunk-2WKGQCAV.cjs → chunk-DD2ANOEF.cjs} +265 -178
  64. package/dist/{chunk-XX6ZA2IO.cjs → chunk-DPBQRDWW.cjs} +1 -1
  65. package/dist/chunk-DS2KZ5BT.mjs +16 -0
  66. package/dist/{chunk-VDJ3CLBR.mjs → chunk-E7V2GYBP.mjs} +1 -1
  67. package/dist/{chunk-YHE7HH2I.mjs → chunk-EBFTAVGD.mjs} +134 -47
  68. package/dist/{chunk-UBXNTZCY.cjs → chunk-EVVV2XZ2.cjs} +115 -108
  69. package/dist/{chunk-PSNYVBWC.cjs → chunk-F7PKUP6P.cjs} +12 -12
  70. package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
  71. package/dist/{chunk-TMVVBK5S.cjs → chunk-FOULIN4S.cjs} +2 -2
  72. package/dist/{chunk-WJDMH3E7.cjs → chunk-H5OVJHXY.cjs} +4 -4
  73. package/dist/{chunk-DTNWLRRF.cjs → chunk-HVMQAVZK.cjs} +85 -85
  74. package/dist/{chunk-Q4X3MX4J.mjs → chunk-IGE5BAWK.mjs} +112 -105
  75. package/dist/{chunk-2JEXQAIR.cjs → chunk-IWGGRXD2.cjs} +2 -2
  76. package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
  77. package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
  78. package/dist/{chunk-GP5BWTO7.mjs → chunk-LIC6CMLB.mjs} +6 -6
  79. package/dist/{chunk-BYJPBJ4E.cjs → chunk-LJKTJNOF.cjs} +3 -3
  80. package/dist/{chunk-XLOORES5.cjs → chunk-LMXGCFAM.cjs} +1 -1
  81. package/dist/{chunk-QTDIOZV6.cjs → chunk-MBD34AS5.cjs} +2 -2
  82. package/dist/{chunk-BBRSPKFI.cjs → chunk-NB2ZEBIS.cjs} +196 -173
  83. package/dist/{chunk-PXXG5BID.cjs → chunk-NNGBTJCX.cjs} +3 -3
  84. package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
  85. package/dist/{chunk-QP4GYVRR.cjs → chunk-ODYKCC6W.cjs} +8 -8
  86. package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
  87. package/dist/{chunk-5EEQNZLU.mjs → chunk-PNWRH6TR.mjs} +2 -2
  88. package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
  89. package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
  90. package/dist/{chunk-JL6XHQZF.mjs → chunk-R77D7TCZ.mjs} +6 -6
  91. package/dist/{chunk-O225GNEU.mjs → chunk-RIMEFQYO.mjs} +44 -21
  92. package/dist/{chunk-MOS2N377.mjs → chunk-S6RUJRWI.mjs} +1 -1
  93. package/dist/chunk-TIZJYHB7.mjs +42 -0
  94. package/dist/chunk-UZM3PDKK.cjs +46 -0
  95. package/dist/{chunk-YQXJY7E7.mjs → chunk-VCW6BR6U.mjs} +1 -1
  96. package/dist/{chunk-E77ZKNPN.mjs → chunk-VO5XDZHK.mjs} +1 -1
  97. package/dist/{chunk-YONTMPZ6.mjs → chunk-VRI43FDN.mjs} +1 -1
  98. package/dist/{chunk-X3HUT4JU.mjs → chunk-VRJAMU34.mjs} +1 -1
  99. package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
  100. package/dist/{chunk-Q7JMHO5U.mjs → chunk-X2SEYK7I.mjs} +2 -2
  101. package/dist/{chunk-WMJQNVKX.cjs → chunk-XGS76V7L.cjs} +2 -2
  102. package/dist/chunk-XRRHPBG2.cjs +16 -0
  103. package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
  104. package/dist/{chunk-HKGU2X4I.cjs → chunk-ZCYGYIC2.cjs} +2 -2
  105. package/dist/{chunk-OCLCA3X3.mjs → chunk-ZEWIWAS2.mjs} +1 -1
  106. package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +8 -6
  107. package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +8 -6
  108. package/dist/client/lifecycle.cjs +1 -1
  109. package/dist/client/lifecycle.mjs +1 -1
  110. package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
  111. package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
  112. package/dist/client-plugins.cjs +1 -1
  113. package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
  114. package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
  115. package/dist/client-plugins.d.mts +2 -2
  116. package/dist/client-plugins.d.ts +2 -2
  117. package/dist/client-plugins.mjs +1 -1
  118. package/dist/client.cjs +1 -1
  119. package/dist/client.d.mts +7 -7
  120. package/dist/client.d.ts +7 -7
  121. package/dist/client.mjs +1 -1
  122. package/dist/config.cjs +1 -1
  123. package/dist/config.d.mts +2 -2
  124. package/dist/config.d.ts +2 -2
  125. package/dist/config.mjs +1 -1
  126. package/dist/cron.cjs +1 -1
  127. package/dist/cron.mjs +1 -1
  128. package/dist/deferred.cjs +1 -1
  129. package/dist/deferred.mjs +1 -1
  130. package/dist/deployment.cjs +1 -1
  131. package/dist/deployment.mjs +1 -1
  132. package/dist/desktop.cjs +1 -1
  133. package/dist/desktop.d.mts +3 -3
  134. package/dist/desktop.d.ts +3 -3
  135. package/dist/desktop.mjs +1 -1
  136. package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
  137. package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
  138. package/dist/{devtools-MBZPUH3U.mjs → devtools-7P3OUNLV.mjs} +6 -5
  139. package/dist/{devtools-3WZIZ7KK.cjs → devtools-TMATFNUY.cjs} +7 -6
  140. package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
  141. package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
  142. package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
  143. package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
  144. package/dist/docs.cjs +8 -7
  145. package/dist/docs.d.mts +4 -4
  146. package/dist/docs.d.ts +4 -4
  147. package/dist/docs.mjs +7 -6
  148. package/dist/env-types.cjs +1 -1
  149. package/dist/env-types.mjs +1 -1
  150. package/dist/env.cjs +1 -1
  151. package/dist/env.mjs +1 -1
  152. package/dist/environment/vite.cjs +6 -5
  153. package/dist/environment/vite.mjs +5 -4
  154. package/dist/environment.cjs +1 -1
  155. package/dist/environment.mjs +1 -1
  156. package/dist/font.cjs +1 -1
  157. package/dist/font.mjs +1 -1
  158. package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
  159. package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
  160. package/dist/headers.cjs +1 -1
  161. package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
  162. package/dist/{headers.d-D-OvGikv.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
  163. package/dist/headers.mjs +1 -1
  164. package/dist/i18n/client.cjs +1 -1
  165. package/dist/i18n/client.mjs +1 -1
  166. package/dist/i18n/index.cjs +1 -1
  167. package/dist/i18n/index.mjs +1 -1
  168. package/dist/i18n/server.cjs +1 -1
  169. package/dist/i18n/server.mjs +1 -1
  170. package/dist/image/server.cjs +1 -1
  171. package/dist/image/server.mjs +1 -1
  172. package/dist/image/sharp.cjs +1 -1
  173. package/dist/image/sharp.mjs +1 -1
  174. package/dist/image.cjs +1 -1
  175. package/dist/image.mjs +1 -1
  176. package/dist/index.cjs +44 -39
  177. package/dist/{index.d-BOPsgMlI.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
  178. package/dist/{index.d-BiUtYJUG.d.ts → index.d-OccJoC6I.d.ts} +1 -1
  179. package/dist/index.d.mts +23 -23
  180. package/dist/index.d.ts +23 -23
  181. package/dist/index.mjs +40 -35
  182. package/dist/instrumentation.cjs +1 -1
  183. package/dist/instrumentation.mjs +1 -1
  184. package/dist/integrations/orm.cjs +5 -4
  185. package/dist/integrations/orm.d.mts +2 -2
  186. package/dist/integrations/orm.d.ts +2 -2
  187. package/dist/integrations/orm.mjs +4 -3
  188. package/dist/integrations.cjs +3 -3
  189. package/dist/integrations.d.mts +2 -2
  190. package/dist/integrations.d.ts +2 -2
  191. package/dist/integrations.mjs +2 -2
  192. package/dist/internal/app-markdown-runtime.cjs +1 -1
  193. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  194. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  195. package/dist/internal/app-markdown-runtime.mjs +1 -1
  196. package/dist/internal/build-runtime.cjs +30 -29
  197. package/dist/internal/build-runtime.d.mts +5 -5
  198. package/dist/internal/build-runtime.d.ts +5 -5
  199. package/dist/internal/build-runtime.mjs +29 -28
  200. package/dist/internal/cli-runtime.cjs +17 -14
  201. package/dist/internal/cli-runtime.d.mts +9 -8
  202. package/dist/internal/cli-runtime.d.ts +9 -8
  203. package/dist/internal/cli-runtime.mjs +17 -14
  204. package/dist/internal/client-error-overlay.cjs +5 -5
  205. package/dist/internal/client-error-overlay.mjs +2 -2
  206. package/dist/internal/client-runtime.cjs +1 -1
  207. package/dist/internal/client-runtime.d.mts +5 -5
  208. package/dist/internal/client-runtime.d.ts +5 -5
  209. package/dist/internal/client-runtime.mjs +1 -1
  210. package/dist/internal/compression-runtime.cjs +3 -3
  211. package/dist/internal/compression-runtime.d.mts +6 -3
  212. package/dist/internal/compression-runtime.d.ts +6 -3
  213. package/dist/internal/compression-runtime.mjs +2 -2
  214. package/dist/internal/config-runtime.cjs +8 -7
  215. package/dist/internal/config-runtime.d.mts +4 -4
  216. package/dist/internal/config-runtime.d.ts +4 -4
  217. package/dist/internal/config-runtime.mjs +7 -6
  218. package/dist/internal/desktop-guard.cjs +1 -1
  219. package/dist/internal/desktop-guard.mjs +1 -1
  220. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  221. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  222. package/dist/internal/form-actions-client.cjs +1 -1
  223. package/dist/internal/form-actions-client.mjs +1 -1
  224. package/dist/internal/form-actions.cjs +1 -1
  225. package/dist/internal/form-actions.mjs +1 -1
  226. package/dist/internal/infra-analytics-runtime.cjs +7 -7
  227. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  228. package/dist/internal/island-codec.cjs +1 -1
  229. package/dist/internal/island-codec.mjs +1 -1
  230. package/dist/internal/island-value-store.cjs +1 -1
  231. package/dist/internal/island-value-store.mjs +1 -1
  232. package/dist/internal/islands-boot.cjs +27 -6
  233. package/dist/internal/islands-boot.mjs +24 -3
  234. package/dist/internal/islands-runtime.cjs +1 -1
  235. package/dist/internal/islands-runtime.mjs +1 -1
  236. package/dist/internal/islands-server.cjs +1 -1
  237. package/dist/internal/islands-server.mjs +1 -1
  238. package/dist/internal/islx-client.cjs +1 -1
  239. package/dist/internal/islx-react.cjs +1 -1
  240. package/dist/internal/islx-server.cjs +1 -1
  241. package/dist/internal/isolated-boundary.cjs +1 -1
  242. package/dist/internal/isolated-boundary.mjs +1 -1
  243. package/dist/internal/metadata-image-runtime.cjs +1 -1
  244. package/dist/internal/metadata-image-runtime.mjs +1 -1
  245. package/dist/internal/native-server-fns.cjs +5 -5
  246. package/dist/internal/native-server-fns.mjs +4 -4
  247. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  248. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  249. package/dist/internal/production-node-env.cjs +1 -1
  250. package/dist/internal/production-node-env.mjs +1 -1
  251. package/dist/internal/production-runtime.cjs +8 -7
  252. package/dist/internal/production-runtime.d.mts +11 -11
  253. package/dist/internal/production-runtime.d.ts +11 -11
  254. package/dist/internal/production-runtime.mjs +7 -6
  255. package/dist/internal/react-cache.cjs +1 -1
  256. package/dist/internal/react-cache.mjs +1 -1
  257. package/dist/internal/request-cookies.cjs +1 -1
  258. package/dist/internal/request-cookies.mjs +1 -1
  259. package/dist/internal/server-fn-transform.cjs +1 -1
  260. package/dist/internal/server-fn-transform.mjs +1 -1
  261. package/dist/internal/server-tree.cjs +1 -1
  262. package/dist/internal/server-tree.mjs +1 -1
  263. package/dist/internal/start-manifest.cjs +1 -1
  264. package/dist/internal/start-manifest.d.mts +2 -2
  265. package/dist/internal/start-manifest.d.ts +2 -2
  266. package/dist/internal/start-manifest.mjs +1 -1
  267. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  268. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  269. package/dist/json-ld.cjs +1 -1
  270. package/dist/json-ld.mjs +1 -1
  271. package/dist/{layers-XQ7VFMWO.mjs → layers-5ZD4764G.mjs} +3 -2
  272. package/dist/layers-HMEGUEXM.cjs +21 -0
  273. package/dist/libsql-http-2QD224YS.mjs +600 -0
  274. package/dist/libsql-http-M6LMNXCN.cjs +600 -0
  275. package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
  276. package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
  277. package/dist/markdown.cjs +1 -1
  278. package/dist/markdown.d.mts +2 -2
  279. package/dist/markdown.d.ts +2 -2
  280. package/dist/markdown.mjs +1 -1
  281. package/dist/middleware.cjs +5 -5
  282. package/dist/middleware.d.mts +2 -2
  283. package/dist/middleware.d.ts +2 -2
  284. package/dist/middleware.mjs +4 -4
  285. package/dist/mobile.cjs +1 -1
  286. package/dist/mobile.mjs +1 -1
  287. package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
  288. package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
  289. package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
  290. package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
  291. package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
  292. package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
  293. package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
  294. package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
  295. package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
  296. package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
  297. package/dist/native.cjs +1 -1
  298. package/dist/native.mjs +1 -1
  299. package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
  300. package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
  301. package/dist/navigation.cjs +1 -1
  302. package/dist/navigation.d.mts +5 -5
  303. package/dist/navigation.d.ts +5 -5
  304. package/dist/navigation.mjs +1 -1
  305. package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
  306. package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
  307. package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
  308. package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
  309. package/dist/observability.cjs +1 -1
  310. package/dist/observability.mjs +1 -1
  311. package/dist/og.cjs +1 -1
  312. package/dist/og.mjs +1 -1
  313. package/dist/platform.cjs +1 -1
  314. package/dist/platform.mjs +1 -1
  315. package/dist/{plugin-YXPIS3XX.cjs → plugin-AGEFSU7K.cjs} +3 -3
  316. package/dist/{plugin-6CHZBFJD.mjs → plugin-TV6W7YNK.mjs} +2 -2
  317. package/dist/plugin.cjs +23 -22
  318. package/dist/plugin.d.mts +6 -6
  319. package/dist/plugin.d.ts +6 -6
  320. package/dist/plugin.mjs +22 -21
  321. package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
  322. package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
  323. package/dist/query/client.cjs +1 -1
  324. package/dist/query/client.mjs +1 -1
  325. package/dist/query/index.cjs +1 -1
  326. package/dist/query/index.mjs +1 -1
  327. package/dist/query/parsers.cjs +1 -1
  328. package/dist/query/parsers.mjs +1 -1
  329. package/dist/query/server.cjs +1 -1
  330. package/dist/query/server.mjs +1 -1
  331. package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
  332. package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
  333. package/dist/renderer/none/server.cjs +1 -1
  334. package/dist/renderer/none/server.mjs +1 -1
  335. package/dist/renderer/react/client.cjs +1 -1
  336. package/dist/renderer/react/client.mjs +1 -1
  337. package/dist/renderer/react/server.cjs +1 -1
  338. package/dist/renderer/react/server.mjs +1 -1
  339. package/dist/renderer/react/vite.cjs +1 -1
  340. package/dist/renderer/react/vite.mjs +1 -1
  341. package/dist/renderer-client.cjs +1 -1
  342. package/dist/renderer-client.d.mts +5 -5
  343. package/dist/renderer-client.d.ts +5 -5
  344. package/dist/renderer-client.mjs +1 -1
  345. package/dist/renderer.cjs +1 -1
  346. package/dist/renderer.mjs +1 -1
  347. package/dist/request.cjs +1 -1
  348. package/dist/{request.d-CPdq2_kC.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
  349. package/dist/{request.d-Be9rWboC.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
  350. package/dist/request.d.mts +3 -3
  351. package/dist/request.d.ts +3 -3
  352. package/dist/request.mjs +1 -1
  353. package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
  354. package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
  355. package/dist/router.cjs +1 -1
  356. package/dist/{router.d-CvrbOXzF.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
  357. package/dist/{router.d-VxTgLGxN.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
  358. package/dist/router.mjs +1 -1
  359. package/dist/routes.cjs +1 -1
  360. package/dist/routes.d.mts +2 -2
  361. package/dist/routes.d.ts +2 -2
  362. package/dist/routes.mjs +1 -1
  363. package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-JLYD26AR.cjs} +11 -10
  364. package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-N7CWJW7T.mjs} +10 -9
  365. package/dist/{runtime-UBG657UC.cjs → runtime-F5NSS4DD.cjs} +14 -13
  366. package/dist/{runtime-45BD33OJ.mjs → runtime-QXX2A4TS.mjs} +10 -9
  367. package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
  368. package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
  369. package/dist/safe-fetch.cjs +1 -1
  370. package/dist/safe-fetch.mjs +1 -1
  371. package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
  372. package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
  373. package/dist/schema.cjs +1 -1
  374. package/dist/schema.mjs +1 -1
  375. package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
  376. package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
  377. package/dist/server-action-security.cjs +1 -1
  378. package/dist/server-action-security.mjs +1 -1
  379. package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
  380. package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
  381. package/dist/server-fn-client.cjs +1 -1
  382. package/dist/server-fn-client.mjs +1 -1
  383. package/dist/server-fn.cjs +1 -1
  384. package/dist/server-fn.mjs +1 -1
  385. package/dist/server-plugins.cjs +3 -3
  386. package/dist/server-plugins.d.mts +4 -4
  387. package/dist/server-plugins.d.ts +4 -4
  388. package/dist/server-plugins.mjs +2 -2
  389. package/dist/server-query-client.cjs +1 -1
  390. package/dist/server-query-client.mjs +1 -1
  391. package/dist/server-query.cjs +1 -1
  392. package/dist/server-query.mjs +1 -1
  393. package/dist/server.cjs +99 -72
  394. package/dist/server.d.mts +13 -13
  395. package/dist/server.d.ts +13 -13
  396. package/dist/server.mjs +57 -30
  397. package/dist/{session-ASQTJNBK.mjs → session-AK2OA5UZ.mjs} +4 -3
  398. package/dist/session-H4TWP73H.cjs +24 -0
  399. package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
  400. package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
  401. package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
  402. package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
  403. package/dist/storage.cjs +8 -3
  404. package/dist/storage.d.mts +260 -38
  405. package/dist/storage.d.ts +260 -38
  406. package/dist/storage.mjs +7 -2
  407. package/dist/testing.cjs +4 -4
  408. package/dist/testing.d.mts +2 -2
  409. package/dist/testing.d.ts +2 -2
  410. package/dist/testing.mjs +4 -4
  411. package/dist/theme/client.cjs +1 -1
  412. package/dist/theme/client.mjs +1 -1
  413. package/dist/theme/index.cjs +1 -1
  414. package/dist/theme/index.mjs +1 -1
  415. package/dist/theme/runtime.cjs +1 -1
  416. package/dist/theme/runtime.mjs +1 -1
  417. package/dist/theme/server.cjs +1 -1
  418. package/dist/theme/server.mjs +1 -1
  419. package/dist/{types.d-D5cY6XjK.d.mts → types.d-DW2vyaUq.d.mts} +26 -4
  420. package/dist/{types.d-D5cY6XjK.d.ts → types.d-DW2vyaUq.d.ts} +26 -4
  421. package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
  422. package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
  423. package/dist/version.cjs +3 -3
  424. package/dist/version.mjs +2 -2
  425. package/dist/vite.cjs +23 -22
  426. package/dist/vite.d.mts +7 -7
  427. package/dist/vite.d.ts +7 -7
  428. package/dist/vite.mjs +22 -21
  429. package/dist/workflows.cjs +3 -3
  430. package/dist/workflows.mjs +2 -2
  431. package/package.json +4 -6
  432. package/dist/analyzer-KFJGYJS7.cjs +0 -16
  433. package/dist/chunk-BTZ5O6VM.cjs +0 -14
  434. package/dist/chunk-Y6FXYEAI.mjs +0 -10
  435. package/dist/layers-7P4RLKVX.cjs +0 -20
  436. package/dist/session-ACVUJ5XV.cjs +0 -23
  437. package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
  438. package/dist/{chunk-LSHUCNIF.mjs → chunk-522K362I.mjs} +0 -0
  439. package/dist/{chunk-OWO7KDZ3.cjs → chunk-AOTD2N5P.cjs} +0 -0
  440. package/dist/{chunk-22T75EML.cjs → chunk-CUZT7474.cjs} +0 -0
  441. package/dist/{chunk-6MNDFNZW.mjs → chunk-JKFN3YVG.mjs} +0 -0
  442. package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
  443. package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
  444. package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
@@ -28,11 +28,11 @@ var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
28
28
  var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
29
29
 
30
30
 
31
- var _chunk2JEXQAIRcjs = require('./chunk-2JEXQAIR.cjs');
31
+ var _chunkIWGGRXD2cjs = require('./chunk-IWGGRXD2.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkBYJPBJ4Ecjs = require('./chunk-BYJPBJ4E.cjs');
35
+ var _chunkLJKTJNOFcjs = require('./chunk-LJKTJNOF.cjs');
36
36
 
37
37
 
38
38
 
@@ -41,7 +41,7 @@ var _chunkBYJPBJ4Ecjs = require('./chunk-BYJPBJ4E.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkWMJQNVKXcjs = require('./chunk-WMJQNVKX.cjs');
44
+ var _chunkXGS76V7Lcjs = require('./chunk-XGS76V7L.cjs');
45
45
 
46
46
 
47
47
 
@@ -65,7 +65,7 @@ var _chunkDZZHTMWMcjs = require('./chunk-DZZHTMWM.cjs');
65
65
  var _chunk42EUEYW6cjs = require('./chunk-42EUEYW6.cjs');
66
66
 
67
67
 
68
- var _chunkPXXG5BIDcjs = require('./chunk-PXXG5BID.cjs');
68
+ var _chunkNNGBTJCXcjs = require('./chunk-NNGBTJCX.cjs');
69
69
 
70
70
 
71
71
  var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
@@ -74,7 +74,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
74
74
 
75
75
 
76
76
 
77
- var _chunkPSNYVBWCcjs = require('./chunk-PSNYVBWC.cjs');
77
+ var _chunkF7PKUP6Pcjs = require('./chunk-F7PKUP6P.cjs');
78
78
 
79
79
 
80
80
  var _chunk3GNHJ3RNcjs = require('./chunk-3GNHJ3RN.cjs');
@@ -116,23 +116,23 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
116
116
 
117
117
 
118
118
 
119
- var _chunkDTNWLRRFcjs = require('./chunk-DTNWLRRF.cjs');
119
+ var _chunkHVMQAVZKcjs = require('./chunk-HVMQAVZK.cjs');
120
120
 
121
121
 
122
122
 
123
123
 
124
124
 
125
125
 
126
- var _chunkQTDIOZV6cjs = require('./chunk-QTDIOZV6.cjs');
126
+ var _chunkMBD34AS5cjs = require('./chunk-MBD34AS5.cjs');
127
127
 
128
128
 
129
- var _chunk22T75EMLcjs = require('./chunk-22T75EML.cjs');
129
+ var _chunkCUZT7474cjs = require('./chunk-CUZT7474.cjs');
130
130
 
131
131
 
132
132
 
133
133
 
134
134
 
135
- var _chunk7564NP5Zcjs = require('./chunk-7564NP5Z.cjs');
135
+ var _chunkBZJYPIFZcjs = require('./chunk-BZJYPIFZ.cjs');
136
136
 
137
137
 
138
138
 
@@ -159,7 +159,7 @@ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
159
159
 
160
160
 
161
161
 
162
- var _chunkWILPJVQEcjs = require('./chunk-WILPJVQE.cjs');
162
+ var _chunk5KISFWD2cjs = require('./chunk-5KISFWD2.cjs');
163
163
 
164
164
 
165
165
 
@@ -167,7 +167,7 @@ var _chunkWILPJVQEcjs = require('./chunk-WILPJVQE.cjs');
167
167
  var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
168
168
 
169
169
 
170
- var _chunkTMVVBK5Scjs = require('./chunk-TMVVBK5S.cjs');
170
+ var _chunkFOULIN4Scjs = require('./chunk-FOULIN4S.cjs');
171
171
 
172
172
 
173
173
  var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
@@ -188,7 +188,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
188
188
 
189
189
 
190
190
 
191
- var _chunkQP4GYVRRcjs = require('./chunk-QP4GYVRR.cjs');
191
+ var _chunkODYKCC6Wcjs = require('./chunk-ODYKCC6W.cjs');
192
192
 
193
193
 
194
194
 
@@ -210,7 +210,7 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
210
210
  var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
211
211
 
212
212
 
213
- var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
213
+ var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
214
214
 
215
215
 
216
216
 
@@ -253,17 +253,17 @@ var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
253
253
 
254
254
 
255
255
 
256
- var _chunkQUEYL2WMcjs = require('./chunk-QUEYL2WM.cjs');
256
+ var _chunkCKNZJFK5cjs = require('./chunk-CKNZJFK5.cjs');
257
257
 
258
258
 
259
259
 
260
- var _chunkOWO7KDZ3cjs = require('./chunk-OWO7KDZ3.cjs');
260
+ var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
261
261
 
262
262
 
263
263
  var _chunkQKW6DLDTcjs = require('./chunk-QKW6DLDT.cjs');
264
264
 
265
265
 
266
- var _chunkUBXNTZCYcjs = require('./chunk-UBXNTZCY.cjs');
266
+ var _chunkEVVV2XZ2cjs = require('./chunk-EVVV2XZ2.cjs');
267
267
 
268
268
 
269
269
 
@@ -271,7 +271,7 @@ var _chunkUBXNTZCYcjs = require('./chunk-UBXNTZCY.cjs');
271
271
  var _chunkFE6KYDHCcjs = require('./chunk-FE6KYDHC.cjs');
272
272
 
273
273
 
274
- var _chunkHFJLMALCcjs = require('./chunk-HFJLMALC.cjs');
274
+ var _chunk5DREJN4Gcjs = require('./chunk-5DREJN4G.cjs');
275
275
 
276
276
 
277
277
  var _chunkCYOTNHDFcjs = require('./chunk-CYOTNHDF.cjs');
@@ -299,7 +299,7 @@ var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
299
299
  var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
300
300
 
301
301
 
302
- var _chunkXLOORES5cjs = require('./chunk-XLOORES5.cjs');
302
+ var _chunkLMXGCFAMcjs = require('./chunk-LMXGCFAM.cjs');
303
303
 
304
304
 
305
305
  var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
@@ -326,7 +326,7 @@ var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
326
326
  var _chunkML4TOUZPcjs = require('./chunk-ML4TOUZP.cjs');
327
327
 
328
328
 
329
- var _chunkBTZ5O6VMcjs = require('./chunk-BTZ5O6VM.cjs');
329
+ var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
330
330
 
331
331
  // src/build/index.ts
332
332
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
@@ -642,7 +642,7 @@ async function compileFarmDocsManifest(docs, options) {
642
642
  isPathGuarded: options.isPathGuarded,
643
643
  basePath
644
644
  });
645
- const apiHandler = _chunkWMJQNVKXcjs.createFarmDocsAPIHandler.call(void 0, {
645
+ const apiHandler = _chunkXGS76V7Lcjs.createFarmDocsAPIHandler.call(void 0, {
646
646
  rootDir: options.root,
647
647
  srcDir: options.srcDir,
648
648
  docs,
@@ -797,7 +797,23 @@ function collectFarmClientModulePreloads(bundle, options) {
797
797
  ...staticImports(chunk, loaded, [])
798
798
  ].map(index);
799
799
  }
800
- return { files, entry: entryFiles.map(index), modules };
800
+ const routerFiles = [];
801
+ const routerLoaded = new Set(entryLoaded);
802
+ for (const routerModule of _nullishCoalesce(options.routerModules, () => ( []))) {
803
+ const chunk = chunks.find(
804
+ (candidate) => candidate.isDynamicEntry && candidate.facadeModuleId && _path2.default.resolve(candidate.facadeModuleId.split("?")[0]) === _path2.default.resolve(routerModule)
805
+ );
806
+ if (!chunk || routerLoaded.has(chunk.fileName)) continue;
807
+ routerLoaded.add(chunk.fileName);
808
+ routerFiles.push(chunk.fileName);
809
+ staticImports(chunk, routerLoaded, routerFiles);
810
+ }
811
+ return {
812
+ files,
813
+ entry: entryFiles.map(index),
814
+ router: routerFiles.map(index),
815
+ modules
816
+ };
801
817
  }
802
818
  function createFarmClientModulePreloadPlugin(options) {
803
819
  return {
@@ -993,7 +1009,7 @@ async function createFarmRouteRuntimeManifest(options) {
993
1009
  const routes = [];
994
1010
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
995
1011
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
996
- const rendering = await _chunk7564NP5Zcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1012
+ const rendering = await _chunkBZJYPIFZcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
997
1013
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
998
1014
  routes.push({
999
1015
  kind: "page",
@@ -1606,7 +1622,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
1606
1622
  // removed block used (`readFileSync` for a version, say).
1607
1623
  enforce: "pre",
1608
1624
  transform: {
1609
- filter: { id: _chunkDTNWLRRFcjs.fileNamePattern.call(void 0, configFiles) },
1625
+ filter: { id: _chunkHVMQAVZKcjs.fileNamePattern.call(void 0, configFiles) },
1610
1626
  async handler(code, id) {
1611
1627
  const file = id.split("?", 1)[0];
1612
1628
  if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
@@ -1886,7 +1902,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
1886
1902
  logLevel: "silent",
1887
1903
  plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
1888
1904
  resolve: {
1889
- alias: _chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1905
+ alias: _chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1890
1906
  conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
1891
1907
  },
1892
1908
  transform: {
@@ -1956,7 +1972,7 @@ function preloadFarmNitroBuilder() {
1956
1972
  (reason) => ({ status: "rejected", reason })
1957
1973
  );
1958
1974
  }
1959
- var _filename = typeof _chunkBTZ5O6VMcjs.define_import_meta_default.url !== "undefined" ? _url.fileURLToPath.call(void 0, _chunkBTZ5O6VMcjs.define_import_meta_default.url) : "";
1975
+ var _filename = typeof _chunkUZM3PDKKcjs.define_import_meta_default.url !== "undefined" ? _url.fileURLToPath.call(void 0, _chunkUZM3PDKKcjs.define_import_meta_default.url) : "";
1960
1976
  var _dirname = _path2.default.dirname(_filename);
1961
1977
  function findFarmCoreRoot(from) {
1962
1978
  let dir = _path2.default.dirname(from);
@@ -2139,7 +2155,7 @@ function createPrerenderRuntimeResolverPlugin(root, resolveNitroEntry = resolveN
2139
2155
  };
2140
2156
  }
2141
2157
  function createFarmStorageModuleRegistration(config) {
2142
- const modules = _chunkUBXNTZCYcjs._collectFarmStorageModules.call(void 0, config.storage);
2158
+ const modules = _chunkEVVV2XZ2cjs._collectFarmStorageModules.call(void 0, config.storage);
2143
2159
  if (modules.length === 0) return "";
2144
2160
  const root = config.root || process.cwd();
2145
2161
  const projectRequire = _module.createRequire.call(void 0, _path2.default.join(root, "package.json"));
@@ -2288,7 +2304,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2288
2304
  return {
2289
2305
  name: "farm-omitted-metadata-image-runtime",
2290
2306
  resolveId: {
2291
- filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2307
+ filter: { id: _chunkHVMQAVZKcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2292
2308
  handler(source, importer) {
2293
2309
  if (source !== "@vercel/og") return null;
2294
2310
  const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
@@ -2297,7 +2313,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2297
2313
  }
2298
2314
  },
2299
2315
  load: {
2300
- filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2316
+ filter: { id: _chunkHVMQAVZKcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2301
2317
  handler(id) {
2302
2318
  if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
2303
2319
  return `
@@ -2626,9 +2642,9 @@ function hasFarmPluginRoutes(config) {
2626
2642
  }
2627
2643
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
2628
2644
  return (config.plugins || []).some(
2629
- (plugin) => _chunkOWO7KDZ3cjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
2645
+ (plugin) => _chunkAOTD2N5Pcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
2630
2646
  // prerendered file never answers or sends; its endpoints live under /__farm/.
2631
- plugin.name !== _chunk2JEXQAIRcjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
2647
+ plugin.name !== _chunkIWGGRXD2cjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
2632
2648
  );
2633
2649
  }
2634
2650
  async function discoverMiddlewareRoutes(appDir) {
@@ -2917,7 +2933,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
2917
2933
  for (const route of pageRoutes) {
2918
2934
  if (route.source === void 0 || !_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
2919
2935
  const { body } = _chunkPG7J7XYTcjs.parseMarkdownFrontmatter.call(void 0, route.source);
2920
- const rendering = _chunk7564NP5Zcjs.resolveRouteRenderingConfig.call(void 0,
2936
+ const rendering = _chunkBZJYPIFZcjs.resolveRouteRenderingConfig.call(void 0,
2921
2937
  _chunkPG7J7XYTcjs.readFarmMarkdownRouteConfig.call(void 0, body),
2922
2938
  route.source
2923
2939
  );
@@ -2961,7 +2977,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
2961
2977
  const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
2962
2978
  await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
2963
2979
  try {
2964
- await fs5.writeFile(filePath, _chunkDTNWLRRFcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
2980
+ await fs5.writeFile(filePath, _chunkHVMQAVZKcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
2965
2981
  } catch (error) {
2966
2982
  if (error.code !== "EEXIST") throw error;
2967
2983
  }
@@ -2995,7 +3011,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
2995
3011
  }
2996
3012
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
2997
3013
  await fs5.writeFile(fontCssPath, normalizedFontCss);
2998
- await fs5.writeFile(clientCssPath, _chunkDTNWLRRFcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3014
+ await fs5.writeFile(clientCssPath, _chunkHVMQAVZKcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
2999
3015
  }
3000
3016
  function importsFarmClientBlockedPackage(id, packageName) {
3001
3017
  return id === packageName || id.startsWith(`${packageName}/`);
@@ -3045,10 +3061,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
3045
3061
  }
3046
3062
  }
3047
3063
  function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
3048
- const key = _chunkQP4GYVRRcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3064
+ const key = _chunkODYKCC6Wcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3049
3065
  let plan = cache.get(key);
3050
3066
  if (!plan) {
3051
- plan = _chunkQP4GYVRRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3067
+ plan = _chunkODYKCC6Wcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3052
3068
  cache.set(key, plan);
3053
3069
  }
3054
3070
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -3057,7 +3073,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3057
3073
  if (!mobile) await _chunkE5UN4OWXcjs.removeFarmMobileClientManifest.call(void 0, _path2.default.dirname(outputDir));
3058
3074
  const viteBuild = productionVite.build;
3059
3075
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
3060
- const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
3076
+ const { PluginManager: PluginManager2 } = await import("./plugin-AGEFSU7K.cjs");
3061
3077
  const fs5 = await import("fs/promises");
3062
3078
  const pluginManager = new PluginManager2({
3063
3079
  config,
@@ -3066,7 +3082,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3066
3082
  });
3067
3083
  pluginManager.addPlugins(config.plugins || []);
3068
3084
  const clientPages = [];
3069
- const integrationProviders = _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations).filter(
3085
+ const integrationProviders = _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
3070
3086
  (provider) => provider.component || provider.type === "clerk"
3071
3087
  );
3072
3088
  const unsupportedIntegrationProvider = integrationProviders.find(
@@ -3077,14 +3093,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3077
3093
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
3078
3094
  );
3079
3095
  }
3080
- const isolatedMode = _chunkQP4GYVRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3096
+ const isolatedMode = _chunkODYKCC6Wcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3081
3097
  _optionalChain([config, 'access', _95 => _95.experimental, 'optionalAccess', _96 => _96.isolatedClientHydration]),
3082
3098
  {
3083
3099
  serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _97 => _97.experimental, 'optionalAccess', _98 => _98.serverComponents])) === "rsc",
3084
3100
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
3085
3101
  }
3086
3102
  );
3087
- const planOptions = _chunkQP4GYVRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
3103
+ const planOptions = _chunkODYKCC6Wcjs.getFarmClientHydrationPlanOptions.call(void 0,
3088
3104
  config.renderer,
3089
3105
  Boolean(unsupportedIntegrationProvider)
3090
3106
  );
@@ -3111,7 +3127,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3111
3127
  );
3112
3128
  const syntheticDocsEntry = _optionalChain([config, 'access', _110 => _110.docs, 'optionalAccess', _111 => _111.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3113
3129
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
3114
- const plan = (operation) => sourceSnapshot ? _chunkQP4GYVRRcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkQP4GYVRRcjs.withFarmSourceSnapshot.call(void 0, operation);
3130
+ const plan = (operation) => sourceSnapshot ? _chunkODYKCC6Wcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkODYKCC6Wcjs.withFarmSourceSnapshot.call(void 0, operation);
3115
3131
  const { clientLayouts, clientRouteSlots } = plan(() => {
3116
3132
  const clientLayouts2 = layoutRoutes.map((layout) => {
3117
3133
  try {
@@ -3158,7 +3174,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3158
3174
  };
3159
3175
  }
3160
3176
  });
3161
- const markdownPagePlan = _chunkQP4GYVRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
3177
+ const markdownPagePlan = _chunkODYKCC6Wcjs.createMarkdownPageHydrationPlanner.call(void 0,
3162
3178
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
3163
3179
  root,
3164
3180
  isolatedMode,
@@ -3174,7 +3190,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3174
3190
  pagePlanOptions
3175
3191
  )
3176
3192
  }));
3177
- _chunkQP4GYVRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3193
+ _chunkODYKCC6Wcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3178
3194
  clientLayouts2.map((layout) => ({
3179
3195
  pattern: layout.pattern,
3180
3196
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -3208,7 +3224,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3208
3224
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
3209
3225
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
3210
3226
  _chunkGC5ROI3Acjs.logger.warn(
3211
- `\u26A0\uFE0F ${_chunkQP4GYVRRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3227
+ `\u26A0\uFE0F ${_chunkODYKCC6Wcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3212
3228
  );
3213
3229
  }
3214
3230
  }
@@ -3243,7 +3259,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3243
3259
  );
3244
3260
  if (metadata.suppressedAsyncHydration) {
3245
3261
  _chunkGC5ROI3Acjs.logger.warn(
3246
- `\u26A0\uFE0F ${_chunkQP4GYVRRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3262
+ `\u26A0\uFE0F ${_chunkODYKCC6Wcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3247
3263
  );
3248
3264
  }
3249
3265
  const slotBoundaries = serverSlotPlans.filter(
@@ -3251,7 +3267,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3251
3267
  ).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
3252
3268
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
3253
3269
  const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
3254
- const islandStrategy = _chunkDTNWLRRFcjs.resolveFarmRouteRootStrategy.call(void 0,
3270
+ const islandStrategy = _chunkHVMQAVZKcjs.resolveFarmRouteRootStrategy.call(void 0,
3255
3271
  route,
3256
3272
  metadata,
3257
3273
  clientLayouts2,
@@ -3270,7 +3286,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3270
3286
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
3271
3287
  ],
3272
3288
  // The server renders a server tree only below a hydrating layout.
3273
- ..._chunkQP4GYVRRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3289
+ ..._chunkODYKCC6Wcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3274
3290
  });
3275
3291
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3276
3292
  }
@@ -3307,7 +3323,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3307
3323
  }
3308
3324
  const clientRouteSlots2 = routeSlots.filter((slot) => {
3309
3325
  try {
3310
- const metadata = _chunkQP4GYVRRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3326
+ const metadata = _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3311
3327
  return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
3312
3328
  } catch (error) {
3313
3329
  _chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
@@ -3358,13 +3374,13 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3358
3374
  config.renderer,
3359
3375
  config.publicRuntimeConfig,
3360
3376
  config.trailingSlash,
3361
- _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations),
3377
+ _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, config.integrations),
3362
3378
  config.basePath,
3363
- _chunkDTNWLRRFcjs.generateClientCachePersistenceCode.call(void 0, _chunkDTNWLRRFcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3379
+ _chunkHVMQAVZKcjs.generateClientCachePersistenceCode.call(void 0, _chunkHVMQAVZKcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3364
3380
  adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
3365
3381
  _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _117 => _117.experimental, 'optionalAccess', _118 => _118.serverComponents])) === "islands",
3366
3382
  platform,
3367
- islandsMode ? _chunkQP4GYVRRcjs.collectFarmServerStylesheets.call(void 0,
3383
+ islandsMode ? _chunkODYKCC6Wcjs.collectFarmServerStylesheets.call(void 0,
3368
3384
  [
3369
3385
  ...layoutRoutes.map((layout) => layout.modulePath),
3370
3386
  ...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
@@ -3383,7 +3399,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3383
3399
  await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-router.tsx"), clientEntry.router);
3384
3400
  }
3385
3401
  const clientInput = { [entryName]: clientEntryPath };
3386
- if (platform === "web" && _chunkDTNWLRRFcjs.canBootFarmIslandsClient.call(void 0, config)) {
3402
+ if (platform === "web" && _chunkHVMQAVZKcjs.canBootFarmIslandsClient.call(void 0, config)) {
3387
3403
  const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
3388
3404
  await fs5.writeFile(
3389
3405
  clientBootPath,
@@ -3404,7 +3420,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3404
3420
  const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
3405
3421
  await fs5.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
3406
3422
  postcssSearchPath = clientEntryDir;
3407
- tailwindVitePlugin = await _chunkQTDIOZV6cjs.loadTailwindVitePlugin.call(void 0, {
3423
+ tailwindVitePlugin = await _chunkMBD34AS5cjs.loadTailwindVitePlugin.call(void 0, {
3408
3424
  builder: productionVite.builder,
3409
3425
  announce: true
3410
3426
  });
@@ -3425,7 +3441,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3425
3441
  target: FARM_CLIENT_BUILD_TARGET,
3426
3442
  // Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
3427
3443
  // `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
3428
- ..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunkQTDIOZV6cjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkQTDIOZV6cjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunkQTDIOZV6cjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3444
+ ..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunkMBD34AS5cjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkMBD34AS5cjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunkMBD34AS5cjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3429
3445
  outDir: outputDir,
3430
3446
  emptyOutDir: platform === "web",
3431
3447
  // Never public: see resolveFarmClientSourcemap.
@@ -3458,7 +3474,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3458
3474
  }
3459
3475
  },
3460
3476
  plugins: [
3461
- _chunkDTNWLRRFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3477
+ _chunkHVMQAVZKcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3462
3478
  createFarmPrivateClientSourcemapsPlugin({
3463
3479
  outDir: _path2.default.join(
3464
3480
  _path2.default.dirname(outputDir),
@@ -3472,7 +3488,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3472
3488
  }) : createFarmClientModulePreloadPlugin({
3473
3489
  root,
3474
3490
  buildDir: _path2.default.dirname(outputDir),
3475
- entryName: "farm-client"
3491
+ entryName: "farm-client",
3492
+ routerModules: [
3493
+ _path2.default.join(clientEntryDir, "farm-client-router.tsx"),
3494
+ _path2.default.join(clientEntryDir, `${FARM_CLIENT_ROUTE_TABLE_MODULE}.tsx`)
3495
+ ]
3476
3496
  }),
3477
3497
  ...adapterOwnsDocsRuntime && platform === "web" ? [
3478
3498
  createFarmDocsModulePreloadPlugin({
@@ -3490,7 +3510,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3490
3510
  ...rendererVitePlugins,
3491
3511
  ...config.vite.plugins || [],
3492
3512
  farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
3493
- _chunkDTNWLRRFcjs.farmDocsClientConfigPlugin.call(void 0,
3513
+ _chunkHVMQAVZKcjs.farmDocsClientConfigPlugin.call(void 0,
3494
3514
  adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
3495
3515
  ),
3496
3516
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -3523,7 +3543,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3523
3543
  },
3524
3544
  load: {
3525
3545
  filter: {
3526
- id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [
3546
+ id: _chunkHVMQAVZKcjs.exactIdPattern.call(void 0, [
3527
3547
  "\0empty-module",
3528
3548
  "\0empty-api-route",
3529
3549
  "\0farm-i18n-client-bridge",
@@ -3561,7 +3581,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3561
3581
  { ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
3562
3582
  pluginManager
3563
3583
  ),
3564
- _chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3584
+ _chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3565
3585
  ],
3566
3586
  mode: "production",
3567
3587
  css: postcssSearchPath ? {
@@ -3569,7 +3589,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3569
3589
  } : void 0,
3570
3590
  // Ensure React is bundled for client
3571
3591
  resolve: {
3572
- alias: _chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3592
+ alias: _chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3573
3593
  dedupe: [...config.renderer.dedupe || []]
3574
3594
  },
3575
3595
  // Optimize dependencies - exclude server-side code from client bundle
@@ -3583,7 +3603,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3583
3603
  }
3584
3604
  };
3585
3605
  await viteBuild(
3586
- _chunkDTNWLRRFcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3606
+ _chunkHVMQAVZKcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3587
3607
  );
3588
3608
  if (platform === "mobile") {
3589
3609
  await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
@@ -3676,7 +3696,7 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
3676
3696
  return response;
3677
3697
  }
3678
3698
 
3679
- ${streamNavigations ? _chunkDTNWLRRFcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
3699
+ ${streamNavigations ? _chunkHVMQAVZKcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
3680
3700
 
3681
3701
  function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
3682
3702
  if (error?.name === "FarmDeploymentMismatchError") {
@@ -4715,6 +4735,10 @@ function farmRouterIntent(event) {
4715
4735
  void loadFarmRouter().catch(function() {});
4716
4736
  }
4717
4737
  for (const type of farmRouterIntentEvents) document.addEventListener(type, farmRouterIntent, true);
4738
+ // In islands mode the boot script loads this entry on a hover or focus over a link, and that
4739
+ // event fired before these listeners existed: a link still under the pointer or focused is it.
4740
+ const farmIntendedLink = document.querySelector("a[href]:hover, a[href]:focus");
4741
+ if (farmIntendedLink) farmRouterIntent({ target: farmIntendedLink });
4718
4742
  `;
4719
4743
  function bindingPattern(name) {
4720
4744
  return new RegExp(`(?<![\\w$])(?<![^.]\\.)${name.replace(/\$/g, "\\$")}(?![\\w$])`);
@@ -4825,7 +4849,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
4825
4849
  direction: {}
4826
4850
  }, plugins = [], renderer = _chunk67MZTLTFcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
4827
4851
  const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
4828
- const clientPluginEntry = _chunkQTDIOZV6cjs.generateFarmClientPluginEntryCode.call(void 0,
4852
+ const clientPluginEntry = _chunkMBD34AS5cjs.generateFarmClientPluginEntryCode.call(void 0,
4829
4853
  plugins,
4830
4854
  root,
4831
4855
  srcDir,
@@ -4838,7 +4862,7 @@ import { createRoot, hydrateRoot } from "react-dom/client";
4838
4862
  import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
4839
4863
  import __farmAppSetup from ${JSON.stringify(_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appSetupPath))};
4840
4864
  __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
4841
- const providerClientCode = _chunkDTNWLRRFcjs.generateFarmIntegrationProviderClientCode.call(void 0,
4865
+ const providerClientCode = _chunkHVMQAVZKcjs.generateFarmIntegrationProviderClientCode.call(void 0,
4842
4866
  integrationProviders,
4843
4867
  root,
4844
4868
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -4959,7 +4983,7 @@ mountFarmDocsSearch();
4959
4983
 
4960
4984
  ${generateUniversalRouterStateRuntime()}
4961
4985
 
4962
- ${_chunkDTNWLRRFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
4986
+ ${_chunkHVMQAVZKcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
4963
4987
 
4964
4988
  // SPA Router for server-rendered pages (HTML swap)
4965
4989
  const spaRouter = {
@@ -5407,7 +5431,7 @@ function hasHydratableLayout(pathname) {
5407
5431
  });
5408
5432
  }
5409
5433
 
5410
- ${_chunkDTNWLRRFcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5434
+ ${_chunkHVMQAVZKcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5411
5435
  // Wrap a page element with applicable layouts
5412
5436
  function wrapWithLayouts(pageElement, pathname, params) {
5413
5437
  const layouts = getApplicableLayouts(pathname);
@@ -5442,7 +5466,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
5442
5466
  return React.createElement("div", props, pageElement);
5443
5467
  }
5444
5468
  let farmLastRouteState = null;
5445
- ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkDTNWLRRFcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5469
+ ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkHVMQAVZKcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5446
5470
  function farmTreeLayoutsOf(pathname) {
5447
5471
  return getApplicableLayouts(pathname).filter(function(layout) {
5448
5472
  return layout.serverTree === true;
@@ -5965,6 +5989,31 @@ async function hydrate() {
5965
5989
  }
5966
5990
  },
5967
5991
  });
5992
+ ${islandValues ? `// A layout root that waits for a click renders again on a navigation, and a link under the
5993
+ // pointer is a navigation on its way: hydrate the root now, as a focus would, so the click
5994
+ // updates it instead of rendering it from the start.
5995
+ if (hasHydratableLayout(pathname) && (matched.route.islandStrategy || "load") !== "load") {
5996
+ const hydrateForLink = function(target) {
5997
+ const anchor = target instanceof Element ? target.closest("a[href]") : null;
5998
+ const href = anchor && anchor.getAttribute("href");
5999
+ if (!href || href.startsWith("#") || hasAbsoluteNavigationHref(href)) return false;
6000
+ if (!container.contains(anchor)) return false;
6001
+ document.dispatchEvent(
6002
+ new CustomEvent("farm:island-interaction", { detail: { target: anchor, kind: null } }),
6003
+ );
6004
+ return true;
6005
+ };
6006
+ const onLinkIntent = function(event) {
6007
+ if (hydrateForLink(event.target)) document.removeEventListener("mouseover", onLinkIntent, true);
6008
+ };
6009
+ // The hover that loaded this entry fired before it ran.
6010
+ if (!hydrateForLink(container.querySelector("a[href]:hover"))) {
6011
+ document.addEventListener("mouseover", onLinkIntent, true);
6012
+ void pageHydration.finally(function() {
6013
+ document.removeEventListener("mouseover", onLinkIntent, true);
6014
+ });
6015
+ }
6016
+ }` : ""}
5968
6017
  ${isolatedHydrationEnabled ? `// Not cancelled with the page: a navigation disposes the islands it removes, and one in a
5969
6018
  // layout it keeps still waits for its trigger, as on a page of islands only.
5970
6019
  const isolatedHydration =
@@ -6016,7 +6065,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
6016
6065
  return true;
6017
6066
  }` : ""}
6018
6067
 
6019
- ${_chunkDTNWLRRFcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6068
+ ${_chunkHVMQAVZKcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6020
6069
 
6021
6070
  function activateNavigationScripts(root) {
6022
6071
  for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
@@ -6119,7 +6168,7 @@ function getLayoutShell(root, patterns, index) {
6119
6168
  return shell.innerHTML;
6120
6169
  }
6121
6170
 
6122
- ${islandValues ? _chunkDTNWLRRFcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6171
+ ${islandValues ? _chunkHVMQAVZKcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6123
6172
  // A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
6124
6173
  if (refresh) revealFarmStreamedContent(nextRoot);
6125
6174
  const currentPatterns = getLayoutPatterns(currentRoot);
@@ -6767,7 +6816,7 @@ void hydrate();
6767
6816
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
6768
6817
  const viteBuild = productionVite.build;
6769
6818
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
6770
- const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
6819
+ const { PluginManager: PluginManager2 } = await import("./plugin-AGEFSU7K.cjs");
6771
6820
  const fs5 = await import("fs/promises");
6772
6821
  const pluginManager = new PluginManager2({
6773
6822
  config,
@@ -6788,7 +6837,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6788
6837
  _path2.default.join(postcssConfigDir, "postcss.config.cjs"),
6789
6838
  "module.exports = { plugins: [] };\n"
6790
6839
  );
6791
- tailwindVitePlugin = await _chunkQTDIOZV6cjs.loadTailwindVitePlugin.call(void 0, {
6840
+ tailwindVitePlugin = await _chunkMBD34AS5cjs.loadTailwindVitePlugin.call(void 0, {
6792
6841
  builder: productionVite.builder,
6793
6842
  label: "for SSR"
6794
6843
  });
@@ -6867,10 +6916,10 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6867
6916
  modulePath: entry.modulePath
6868
6917
  })) : [];
6869
6918
  const i18nCatalogs = config.i18n.enabled ? (await _chunkCYOTNHDFcjs.readFarmI18nCatalogs.call(void 0, config.i18n)).catalogs : {};
6870
- const appDirs = _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config);
6919
+ const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config);
6871
6920
  let openAPIReference = null;
6872
6921
  if (config.openapi.enabled && config.openapi.route) {
6873
- const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-R7FV4A56.cjs");
6922
+ const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-PX4QN4HK.cjs");
6874
6923
  const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
6875
6924
  mode: "production",
6876
6925
  apiBaseURL: config.api.baseURL,
@@ -6895,7 +6944,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6895
6944
  }))
6896
6945
  );
6897
6946
  const instrumentationPath = _chunk3GNHJ3RNcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
6898
- const notFoundPath = _chunkDTNWLRRFcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
6947
+ const notFoundPath = _chunkHVMQAVZKcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
6899
6948
  if (notFoundPath) _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
6900
6949
  layoutRoutes.sort((a, b) => {
6901
6950
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -6912,14 +6961,14 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6912
6961
  const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
6913
6962
  (integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
6914
6963
  );
6915
- const hasIntegrationProviders = _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations).some(
6964
+ const hasIntegrationProviders = _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, config.integrations).some(
6916
6965
  (provider) => provider.component || provider.type === "clerk"
6917
6966
  );
6918
6967
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
6919
6968
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _136 => _136.mdx, 'optionalAccess', _137 => _137.components]));
6920
6969
  const hasMiddlewareConfig = _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
6921
- const hasRouteContextConfig = _chunkPSNYVBWCcjs.hasCustomFarmRouteContext.call(void 0, config);
6922
- const hasServerRuntimePlugins = _chunkQTDIOZV6cjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
6970
+ const hasRouteContextConfig = _chunkF7PKUP6Pcjs.hasCustomFarmRouteContext.call(void 0, config);
6971
+ const hasServerRuntimePlugins = _chunkMBD34AS5cjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
6923
6972
  const hasPluginRoutes = hasFarmPluginRoutes(config);
6924
6973
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
6925
6974
  const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasServerCacheConfig || hasFarmServerStorageConfig(config.storage) || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
@@ -6928,9 +6977,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6928
6977
  const hasConfiguredRuntimePlugins = Boolean(
6929
6978
  hasRuntimeConfigModule && (config.plugins || []).length > 0
6930
6979
  );
6931
- if (_chunkWMJQNVKXcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
6980
+ if (_chunkXGS76V7Lcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
6932
6981
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
6933
- _chunkWMJQNVKXcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
6982
+ _chunkXGS76V7Lcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
6934
6983
  config.docs,
6935
6984
  { root, srcDir: config.srcDir },
6936
6985
  (pathname) => adapterGuardedPaths.has(pathname),
@@ -6940,7 +6989,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6940
6989
  const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
6941
6990
  const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _138 => _138.docs, 'optionalAccess', _139 => _139.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
6942
6991
  farmDocsCspNonceMarker,
6943
- async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkWMJQNVKXcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
6992
+ async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkXGS76V7Lcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
6944
6993
  root,
6945
6994
  srcDir: config.srcDir,
6946
6995
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -7107,7 +7156,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7107
7156
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _148 => _148.env, 'optionalAccess', _149 => _149.public]) || {})
7108
7157
  },
7109
7158
  plugins: [
7110
- _chunkDTNWLRRFcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7159
+ _chunkHVMQAVZKcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7111
7160
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
7112
7161
  ...rendererVitePlugins,
7113
7162
  ...config.vite.plugins || [],
@@ -7138,7 +7187,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7138
7187
  },
7139
7188
  pluginManager
7140
7189
  ),
7141
- _chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7190
+ _chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7142
7191
  ...hasRuntimeConfigModule ? [
7143
7192
  farmStripPlatformConfigPlugin(
7144
7193
  [
@@ -7150,7 +7199,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7150
7199
  {
7151
7200
  name: "farm-virtual-ssr-entry",
7152
7201
  resolveId: {
7153
- filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7202
+ filter: { id: _chunkHVMQAVZKcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7154
7203
  handler(id) {
7155
7204
  if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
7156
7205
  return virtualEntryId;
@@ -7159,7 +7208,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7159
7208
  }
7160
7209
  },
7161
7210
  load: {
7162
- filter: { id: _chunkDTNWLRRFcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7211
+ filter: { id: _chunkHVMQAVZKcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7163
7212
  handler(id) {
7164
7213
  if (id === virtualEntryId) {
7165
7214
  return virtualEntryCode;
@@ -7191,7 +7240,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7191
7240
  resolve: {
7192
7241
  alias: [
7193
7242
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
7194
- ...Object.entries(_chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7243
+ ...Object.entries(_chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7195
7244
  ([find, replacement]) => ({ find, replacement })
7196
7245
  )
7197
7246
  ],
@@ -7199,7 +7248,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7199
7248
  dedupe: [...config.renderer.dedupe || []]
7200
7249
  }
7201
7250
  };
7202
- await viteBuild(_chunkDTNWLRRFcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7251
+ await viteBuild(_chunkHVMQAVZKcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7203
7252
  } finally {
7204
7253
  if (postcssConfigDir) {
7205
7254
  try {
@@ -7492,9 +7541,9 @@ function useFarmNodePageResponse(ResponseClass) {
7492
7541
  // Web body the way reading response.body would.
7493
7542
  const farmLazyBufferedHtml = new WeakMap();
7494
7543
 
7495
- // Bind the stored shell to the response Farm built from it. A body replacement
7496
- // gets a new response and takes the ordinary scan path.
7497
- const farmPreloadShells = new WeakMap();
7544
+ // Only the response built from a stored shell can reuse its preload scan and
7545
+ // compressed bytes. Replacing the body creates a new response.
7546
+ const farmResponseShells = new WeakMap();
7498
7547
 
7499
7548
  function hasFarmContentType(headers) {
7500
7549
  if (!headers) return false;
@@ -7604,7 +7653,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
7604
7653
  const ownedHtml = hasNoHtmlPreloads ? undefined : getFarmOwnedBufferedHtml(response);
7605
7654
  const html = hasNoHtmlPreloads ? "" : (ownedHtml ?? await response.text());
7606
7655
  const managed = manageFarmDocumentPreloads(html, linkHeader, farmPreloadConfig,
7607
- ownedHtml === undefined ? undefined : farmPreloadShells.get(response));
7656
+ ownedHtml === undefined ? undefined : farmResponseShells.get(response));
7608
7657
  // A remembered document the budget left unchanged keeps its unread body.
7609
7658
  const reusesBody = hasNoHtmlPreloads || (ownedHtml !== undefined && managed.html === html);
7610
7659
  if (ownedHtml !== undefined && !reusesBody && !isLazyPage) {
@@ -7649,7 +7698,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
7649
7698
  );
7650
7699
  const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
7651
7700
  const farmIslandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _166 => _166.experimental, 'optionalAccess', _167 => _167.serverComponents])) === "islands";
7652
- const farmClientBoot = _chunkDTNWLRRFcjs.canBootFarmIslandsClient.call(void 0, config);
7701
+ const farmClientBoot = _chunkHVMQAVZKcjs.canBootFarmIslandsClient.call(void 0, config);
7653
7702
  const farmMobileClient = shouldBuildFarmMobileClient(config);
7654
7703
  const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
7655
7704
  const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
@@ -7720,7 +7769,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7720
7769
  const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
7721
7770
  const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7722
7771
  const farmDocsFontAssets = _optionalChain([config, 'access', _188 => _188.docs, 'optionalAccess', _189 => _189.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
7723
- const integrationProviders = _chunkOWO7KDZ3cjs.getIntegrationProviders.call(void 0, config.integrations);
7772
+ const integrationProviders = _chunkAOTD2N5Pcjs.getIntegrationProviders.call(void 0, config.integrations);
7724
7773
  const renderedIntegrationProviders = integrationProviders.filter(
7725
7774
  (provider) => provider.component || provider.type === "clerk"
7726
7775
  );
@@ -7729,7 +7778,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7729
7778
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
7730
7779
  );
7731
7780
  }
7732
- const providerServerModules = _chunkDTNWLRRFcjs.generateFarmIntegrationProviderServerModules.call(void 0,
7781
+ const providerServerModules = _chunkHVMQAVZKcjs.generateFarmIntegrationProviderServerModules.call(void 0,
7733
7782
  renderedIntegrationProviders,
7734
7783
  config.root,
7735
7784
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -7749,14 +7798,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7749
7798
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
7750
7799
  (provider) => provider.supportsIsolatedHydration !== true
7751
7800
  );
7752
- const isolatedHydrationMode = _chunkQP4GYVRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
7801
+ const isolatedHydrationMode = _chunkODYKCC6Wcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
7753
7802
  _optionalChain([config, 'access', _192 => _192.experimental, 'optionalAccess', _193 => _193.isolatedClientHydration]),
7754
7803
  {
7755
7804
  serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _194 => _194.experimental, 'optionalAccess', _195 => _195.serverComponents])) === "rsc",
7756
7805
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
7757
7806
  }
7758
7807
  );
7759
- const hydrationPlanOptions = _chunkQP4GYVRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
7808
+ const hydrationPlanOptions = _chunkODYKCC6Wcjs.getFarmClientHydrationPlanOptions.call(void 0,
7760
7809
  config.renderer,
7761
7810
  Boolean(unsupportedIntegrationProvider)
7762
7811
  );
@@ -7764,7 +7813,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7764
7813
  ...hydrationPlanOptions,
7765
7814
  serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _196 => _196.experimental, 'optionalAccess', _197 => _197.serverComponents])) === "islands"
7766
7815
  };
7767
- const { layoutHydrationPlans, pageHydrationPlans } = _chunkQP4GYVRRcjs.withFarmSourceSnapshot.call(void 0, () => {
7816
+ const { layoutHydrationPlans, pageHydrationPlans } = _chunkODYKCC6Wcjs.withFarmSourceSnapshot.call(void 0, () => {
7768
7817
  const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
7769
7818
  ...layout,
7770
7819
  hydration: getCachedClientModuleHydrationPlan(
@@ -7775,7 +7824,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7775
7824
  { ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
7776
7825
  )
7777
7826
  }));
7778
- const markdownPagePlan = _chunkQP4GYVRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
7827
+ const markdownPagePlan = _chunkODYKCC6Wcjs.createMarkdownPageHydrationPlanner.call(void 0,
7779
7828
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
7780
7829
  config.root,
7781
7830
  isolatedHydrationMode,
@@ -7795,7 +7844,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7795
7844
  );
7796
7845
  return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
7797
7846
  });
7798
- _chunkQP4GYVRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
7847
+ _chunkODYKCC6Wcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
7799
7848
  layoutHydrationPlans.map((layout) => ({
7800
7849
  pattern: layout.pattern,
7801
7850
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -7839,8 +7888,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7839
7888
  orderedPageRoutes.forEach((route, index) => {
7840
7889
  const varName = `pageRoute${index}`;
7841
7890
  if (_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
7842
- const renderingDirective2 = _chunk7564NP5Zcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7843
- const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkQP4GYVRRcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
7891
+ const renderingDirective2 = _chunkBZJYPIFZcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7892
+ const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkODYKCC6Wcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
7844
7893
  pageRegistrations.push(`
7845
7894
  {
7846
7895
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -7848,14 +7897,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7848
7897
  rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
7849
7898
  module: createFarmMarkdownRouteModule({
7850
7899
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
7851
- filePath: ${JSON.stringify(_chunkDTNWLRRFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
7900
+ filePath: ${JSON.stringify(_chunkHVMQAVZKcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
7852
7901
  components: farmMdxComponents,
7853
7902
  config: farmMdxConfig,
7854
7903
  }),
7855
7904
  markdownSource: {
7856
7905
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
7857
7906
  filePath: ${JSON.stringify(
7858
- _chunkDTNWLRRFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
7907
+ _chunkHVMQAVZKcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
7859
7908
  )},
7860
7909
  },
7861
7910
  }`);
@@ -7865,7 +7914,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7865
7914
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
7866
7915
  );
7867
7916
  const clientMetadata = pageHydrationPlans.get(route.modulePath);
7868
- const renderingDirective = _chunk7564NP5Zcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7917
+ const renderingDirective = _chunkBZJYPIFZcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7869
7918
  pageRegistrations.push(`
7870
7919
  {
7871
7920
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -7873,8 +7922,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7873
7922
  module: ${varName},
7874
7923
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
7875
7924
  clientModule: ${JSON.stringify(_chunkGC5ROI3Acjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
7876
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkQP4GYVRRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
7877
- const rootStrategy = _chunkDTNWLRRFcjs.resolveFarmRouteRootStrategy.call(void 0,
7925
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkODYKCC6Wcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
7926
+ const rootStrategy = _chunkHVMQAVZKcjs.resolveFarmRouteRootStrategy.call(void 0,
7878
7927
  route,
7879
7928
  clientMetadata,
7880
7929
  layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
@@ -7887,7 +7936,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7887
7936
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
7888
7937
  ${route.source !== void 0 ? `markdownSource: {
7889
7938
  source: ${JSON.stringify(route.source)},
7890
- filePath: ${JSON.stringify(_chunkDTNWLRRFcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
7939
+ filePath: ${JSON.stringify(_chunkHVMQAVZKcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
7891
7940
  },` : ""}
7892
7941
  }`);
7893
7942
  });
@@ -7911,7 +7960,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7911
7960
  pattern: ${JSON.stringify(layout.pattern)},
7912
7961
  module: ${varName},
7913
7962
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
7914
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkDTNWLRRFcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
7963
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkHVMQAVZKcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
7915
7964
  // isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
7916
7965
  clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
7917
7966
  }`);
@@ -7939,7 +7988,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7939
7988
  containerId: ${JSON.stringify(slot.containerId)},
7940
7989
  interception: ${JSON.stringify(slot.interception)},
7941
7990
  fallback: ${JSON.stringify(slot.fallback)},
7942
- hydrates: ${!farmIslandsMode || _chunkQP4GYVRRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
7991
+ hydrates: ${!farmIslandsMode || _chunkODYKCC6Wcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
7943
7992
  module: ${varName},
7944
7993
  }`);
7945
7994
  });
@@ -8249,14 +8298,14 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
8249
8298
  const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
8250
8299
  const nativeMCP = _chunkVM57CK74cjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
8251
8300
  const mobileSession = (config.plugins || []).some(
8252
- (plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunk2JEXQAIRcjs.FARM_MOBILE_SESSION_PLUGIN
8301
+ (plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunkIWGGRXD2cjs.FARM_MOBILE_SESSION_PLUGIN
8253
8302
  );
8254
8303
  const nativeServerFns = (config.plugins || []).some(
8255
8304
  (plugin) => _optionalChain([plugin, 'optionalAccess', _220 => _220.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
8256
- ) ? _chunkBYJPBJ4Ecjs.collectFarmNativeServerFns.call(void 0, {
8305
+ ) ? _chunkLJKTJNOFcjs.collectFarmNativeServerFns.call(void 0, {
8257
8306
  root: config.root,
8258
8307
  srcDir: config.srcDir,
8259
- entries: _chunkBYJPBJ4Ecjs.findFarmNativeScreenFiles.call(void 0, _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config))
8308
+ entries: _chunkLJKTJNOFcjs.findFarmNativeScreenFiles.call(void 0, _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config))
8260
8309
  }) : void 0;
8261
8310
  const integrationImports = `
8262
8311
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
@@ -8271,7 +8320,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
8271
8320
  ${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
8272
8321
  });` : ""}
8273
8322
  `;
8274
- const imageRuntime = _chunkDTNWLRRFcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8323
+ const imageRuntime = _chunkHVMQAVZKcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8275
8324
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
8276
8325
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
8277
8326
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -8453,7 +8502,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
8453
8502
 
8454
8503
  function renderFarmDefault404Page() {
8455
8504
  return React.createElement(React.Fragment, null,
8456
- React.createElement("style", null, ${JSON.stringify(_chunkDTNWLRRFcjs.DEFAULT_NOT_FOUND_STYLES)}),
8505
+ React.createElement("style", null, ${JSON.stringify(_chunkHVMQAVZKcjs.DEFAULT_NOT_FOUND_STYLES)}),
8457
8506
  React.createElement("main", {
8458
8507
  className: "farm-default-not-found",
8459
8508
  "aria-labelledby": "farm-default-not-found-title",
@@ -8613,7 +8662,7 @@ ${_optionalChain([config, 'access', _230 => _230.agent, 'optionalAccess', _231 =
8613
8662
  // to the build.
8614
8663
  const farmNoindexPreview = resolveFarmPreviewDeployment(
8615
8664
  globalThis.process?.env,
8616
- ${JSON.stringify(_chunkTMVVBK5Scjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
8665
+ ${JSON.stringify(_chunkFOULIN4Scjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
8617
8666
  );` : ""}
8618
8667
  const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
8619
8668
  const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
@@ -8744,7 +8793,7 @@ const farmDocsHandler = ${_optionalChain([config, 'access', _239 => _239.docs, '
8744
8793
  registerMCPServer: registerFarmMCPServer,
8745
8794
  // A page built with this keeps its HTML string, so the preload budget and the response
8746
8795
  // writer use it instead of reading and re-encoding the body. Older adapters ignore it.
8747
- createHtmlResponse: farmOwnedHtmlResponse,${_chunkWMJQNVKXcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
8796
+ createHtmlResponse: farmOwnedHtmlResponse,${_chunkXGS76V7Lcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
8748
8797
  // The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
8749
8798
  // asks about any path its own content lists, so the guards decide here, not a page list.
8750
8799
  isPathGuarded: (pathname) =>
@@ -8805,12 +8854,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
8805
8854
  // runtime request.
8806
8855
  const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
8807
8856
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
8808
- ${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkWILPJVQEcjs.resolveFarmApiCatalogInput.call(void 0, config))};
8857
+ ${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunk5KISFWD2cjs.resolveFarmApiCatalogInput.call(void 0, config))};
8809
8858
  ` : ""}${_optionalChain([config, 'access', _245 => _245.agent, 'optionalAccess', _246 => _246.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
8810
- _chunkWILPJVQEcjs.resolveFarmAppManifestInput.call(void 0, config, {
8859
+ _chunk5KISFWD2cjs.resolveFarmAppManifestInput.call(void 0, config, {
8811
8860
  build: config.deploymentId,
8812
- packages: _chunkDTNWLRRFcjs.resolveFarmAppPackages.call(void 0, config.root),
8813
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkDTNWLRRFcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
8861
+ packages: _chunkHVMQAVZKcjs.resolveFarmAppPackages.call(void 0, config.root),
8862
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkHVMQAVZKcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
8814
8863
  })
8815
8864
  )};
8816
8865
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -8985,10 +9034,12 @@ function farmDocumentBootsClient(markup, hydratesAtLoad, routeSlots) {
8985
9034
  return true;
8986
9035
  }
8987
9036
 
8988
- // The boot entry runs the client entry from the URL on its script. A root that waits (the element
8989
- // a hydrating layout or client page hydrates) is named with its strategy, for the boot to watch.
8990
- function renderFarmClientBootScript(root, rootStrategy) {
9037
+ // The boot entry runs the client entry from the URL on its script, with the files listed for what
9038
+ // started it. A root that waits (the element a hydrating layout or client page hydrates) is named
9039
+ // with its strategy, for the boot to watch.
9040
+ function renderFarmClientBootScript(root, rootStrategy, markup, pageModule) {
8991
9041
  return stampFarmCspNonce('<script type="module" src="${farmClientBoot ? FARM_CLIENT_BOOT_SRC_PLACEHOLDER : ""}" data-farm-runtime="/__farm_client_js_src__"' +
9042
+ renderFarmClientBootPreloads(markup, pageModule, root, rootStrategy) +
8992
9043
  (root ? ' data-farm-root="' + root + '" data-farm-root-strategy="' + rootStrategy + '"' : '') +
8993
9044
  '></script>');
8994
9045
  }
@@ -9789,22 +9840,17 @@ function renderFarmClientModulePreload(index) {
9789
9840
  '" fetchpriority="low">';
9790
9841
  }
9791
9842
 
9792
- // The modulepreload links for a document: the entry's static imports, then the
9793
- // modules its hydrating page and its markup load.
9794
- function renderFarmClientModulePreloads(markup, pageModule) {
9795
- // A nonce policy blocks parser-inserted links without the nonce, and the
9796
- // response filter manages nonces on script elements only, so CSP nonce mode
9797
- // keeps the documents it had.
9798
- if (!farmClientModulePreloads || (farmSecurityConfig.csp && farmSecurityConfig.csp.nonce)) return "";
9843
+ // The manifest indexes of the modules a document's hydrating page and its markup
9844
+ // load, leaving out those already listed.
9845
+ function collectFarmClientDocumentModules(markup, pageModule, listed) {
9799
9846
  const modules = farmClientModulePreloads.modules;
9800
- const listed = new Set();
9801
- let tags = farmClientEntryPreloadTags;
9847
+ const indexes = [];
9802
9848
  const add = (moduleId) => {
9803
9849
  if (!moduleId || !Object.prototype.hasOwnProperty.call(modules, moduleId)) return;
9804
9850
  for (const index of modules[moduleId]) {
9805
9851
  if (listed.has(index)) continue;
9806
9852
  listed.add(index);
9807
- tags += renderFarmClientModulePreload(index);
9853
+ indexes.push(index);
9808
9854
  }
9809
9855
  };
9810
9856
  add(pageModule);
@@ -9814,7 +9860,45 @@ function renderFarmClientModulePreloads(markup, pageModule) {
9814
9860
  add(match[1] || match[3]);
9815
9861
  }
9816
9862
  }
9817
- return tags;
9863
+ return indexes;
9864
+ }
9865
+
9866
+ // The modulepreload links for a document: the entry's static imports, then the
9867
+ // modules its hydrating page and its markup load.
9868
+ function renderFarmClientModulePreloads(markup, pageModule) {
9869
+ // A nonce policy blocks parser-inserted links without the nonce, and the
9870
+ // response filter manages nonces on script elements only, so CSP nonce mode
9871
+ // keeps the documents it had.
9872
+ if (!farmClientModulePreloads || (farmSecurityConfig.csp && farmSecurityConfig.csp.nonce)) return "";
9873
+ return farmClientEntryPreloadTags +
9874
+ collectFarmClientDocumentModules(markup, pageModule, new Set())
9875
+ .map(renderFarmClientModulePreload)
9876
+ .join("");
9877
+ }
9878
+
9879
+ // What a boot document's runtime fetches as it starts, for the boot to request with it rather
9880
+ // than each a round trip after the file that imports it: the entry's static imports, the router
9881
+ // and route table a link's intent loads, and the modules the root hydrates with. A root that
9882
+ // waits for its time hydrates once the runtime runs, so its modules come with the entry's; one
9883
+ // that waits for a click hydrates on an interaction in it, and the boot fetches them then. The
9884
+ // boot adds the links itself with the script's nonce, so CSP nonce mode keeps them.
9885
+ function renderFarmClientBootPreloads(markup, pageModule, root, rootStrategy) {
9886
+ if (!farmClientModulePreloads) return "";
9887
+ const files = farmClientModulePreloads.files;
9888
+ const attribute = function(name, indexes) {
9889
+ if (indexes.length === 0) return "";
9890
+ return " " + name + '="' + escapeFarmHtmlAttribute(
9891
+ indexes.map(function(index) { return files[index]; }).join(" ")
9892
+ ) + '"';
9893
+ };
9894
+ const entry = farmClientModulePreloads.entry;
9895
+ const rootModules = root
9896
+ ? collectFarmClientDocumentModules(markup, pageModule, new Set(entry))
9897
+ : [];
9898
+ const waitsForClick = rootStrategy === "interaction";
9899
+ return attribute("data-farm-preload", waitsForClick ? entry : entry.concat(rootModules)) +
9900
+ attribute("data-farm-preload-router", farmClientModulePreloads.router || []) +
9901
+ (waitsForClick ? attribute("data-farm-preload-root", rootModules) : "");
9818
9902
  }
9819
9903
 
9820
9904
  // The origin hreflang alternates resolve against when the route sets no
@@ -10205,7 +10289,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
10205
10289
  // aside for a page route that answers /mcp and for any MCP server published or
10206
10290
  // registered at runtime, such as the docs engine's.
10207
10291
  const farmDefaultMCPServer = ${JSON.stringify(
10208
- _chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkXLOORES5cjs.FARM_VERSION)
10292
+ _chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkLMXGCFAMcjs.FARM_VERSION)
10209
10293
  )};
10210
10294
  let farmDefaultMCPRouteFree;
10211
10295
  function getFarmDefaultMCPServer() {
@@ -10399,7 +10483,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
10399
10483
  // middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
10400
10484
  const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
10401
10485
  const farmPrerendering =
10402
- typeof process !== "undefined" && process.env?.${_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV} === "1";
10486
+ typeof process !== "undefined" && process.env?.${_chunkNNGBTJCXcjs.FARM_PRERENDER_ENV} === "1";
10403
10487
  ` : ""}
10404
10488
  const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
10405
10489
  config: farmMiddlewareConfig,
@@ -10655,7 +10739,7 @@ ${hasInfraAnalyticsRuntime ? `
10655
10739
  // endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
10656
10740
  // labeled here; route.pattern keeps meaning the matched app route for plugins.
10657
10741
  const farmBuiltInRoutePaths = new Set(${JSON.stringify(
10658
- _chunkWILPJVQEcjs.listFarmBuiltInRoutePaths.call(void 0, {
10742
+ _chunk5KISFWD2cjs.listFarmBuiltInRoutePaths.call(void 0, {
10659
10743
  agent: {
10660
10744
  ...config.agent,
10661
10745
  aiCatalog: servesAiCatalog,
@@ -11432,7 +11516,7 @@ ${hasServerRuntimeIntegrations ? `
11432
11516
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
11433
11517
  // public manifest, the same document for every request.
11434
11518
  if (
11435
- [${JSON.stringify(_chunkWILPJVQEcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkWILPJVQEcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
11519
+ [${JSON.stringify(_chunk5KISFWD2cjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunk5KISFWD2cjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
11436
11520
  normalizeRuntimePath(routePathname),
11437
11521
  )
11438
11522
  ) {
@@ -11444,7 +11528,7 @@ ${hasServerRuntimeIntegrations ? `
11444
11528
  ` : ""}
11445
11529
  ${_optionalChain([config, 'access', _277 => _277.agent, 'optionalAccess', _278 => _278.apiCatalog]) ? `
11446
11530
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
11447
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkWILPJVQEcjs.FARM_API_CATALOG_PATH)}) {
11531
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunk5KISFWD2cjs.FARM_API_CATALOG_PATH)}) {
11448
11532
  return applyProductionMiddlewareHeaders(
11449
11533
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
11450
11534
  middlewareHeaders,
@@ -11665,7 +11749,7 @@ ${hasServerRuntimeIntegrations ? `
11665
11749
  : {}),
11666
11750
  },
11667
11751
  }), middlewareHeaders), cachedPPRShell);
11668
- farmPreloadShells.set(response, cachedPPRShellEntry);
11752
+ farmResponseShells.set(response, cachedPPRShellEntry);
11669
11753
  return response;
11670
11754
  }
11671
11755
  emitFarmEvent({ type: "ppr.shell.miss", route: pathname, key: pprCacheKey });
@@ -12459,7 +12543,9 @@ ${hasServerRuntimeIntegrations ? `
12459
12543
  const farmEntryScript = farmBootsClient
12460
12544
  ? renderFarmClientBootScript(
12461
12545
  farmHydratesRoot ? (shouldHydrateLayout ? "root" : "__farm_page__") : "",
12462
- route.rootStrategy
12546
+ route.rootStrategy,
12547
+ html,
12548
+ route.clientModule
12463
12549
  )
12464
12550
  : renderFarmClientEntryScript();
12465
12551
 
@@ -13118,7 +13204,7 @@ async function handleFarmFetch(request, context) {${config.server.trustProxy ? `
13118
13204
  );
13119
13205
  // A Nitro cache rule stores the response and strips its Content-Encoding, so a
13120
13206
  // response it caches is sent as it is, with no Vary on an encoding it never saw.
13121
- return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response))" : "response"};
13207
+ return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response), farmResponseShells.get(response))" : "response"};
13122
13208
  }),
13123
13209
  {
13124
13210
  onResponseFinished: typeof context?.onResponseFinished === "function"
@@ -13255,7 +13341,7 @@ function getPhysicalPrerenderBypassReason(options) {
13255
13341
  }
13256
13342
  if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13257
13343
  if (_chunk6ZFGWB75cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13258
- if (_chunkPSNYVBWCcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13344
+ if (_chunkF7PKUP6Pcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13259
13345
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
13260
13346
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
13261
13347
  if (_optionalChain([manifestEntry, 'optionalAccess', _298 => _298.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -13279,7 +13365,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
13279
13365
  );
13280
13366
  return [];
13281
13367
  }
13282
- if (!_chunkWMJQNVKXcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
13368
+ if (!_chunkXGS76V7Lcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
13283
13369
  const { pages: pages2, originDependent } = _chunk6D3CJFNUcjs.listFarmDocsBuiltInPrerenderPages.call(void 0, config.docs, {
13284
13370
  root,
13285
13371
  srcDir: config.srcDir
@@ -13297,7 +13383,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
13297
13383
  );
13298
13384
  return [];
13299
13385
  }
13300
- const pages = await _chunkWMJQNVKXcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13386
+ const pages = await _chunkXGS76V7Lcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13301
13387
  if (!pages) {
13302
13388
  _chunkGC5ROI3Acjs.logger.warn(
13303
13389
  `The docs adapter ${JSON.stringify(config.docs.adapter.id)} does not list its pages for prerendering; upgrade it to prerender docs pages. They render on request until then.`
@@ -13311,10 +13397,10 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
13311
13397
  return [];
13312
13398
  }
13313
13399
  try {
13314
- return await _chunkWMJQNVKXcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13400
+ return await _chunkXGS76V7Lcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13315
13401
  root,
13316
13402
  srcDir: config.srcDir,
13317
- adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkWMJQNVKXcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
13403
+ adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkXGS76V7Lcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
13318
13404
  });
13319
13405
  } catch (error) {
13320
13406
  _chunkGC5ROI3Acjs.logger.warn(
@@ -13340,10 +13426,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13340
13426
  const nitroBuilder = nitroBuilderResult.value;
13341
13427
  const isVercel = preset === "vercel";
13342
13428
  const isCloudflareWorker = preset === "cloudflare-module";
13343
- const outputDir = _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13429
+ const outputDir = _chunkF7PKUP6Pcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13344
13430
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
13345
13431
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
13346
- const imageRuntime = _chunkDTNWLRRFcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13432
+ const imageRuntime = _chunkHVMQAVZKcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13347
13433
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
13348
13434
  (image) => image.sourceType === "module"
13349
13435
  );
@@ -13365,10 +13451,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13365
13451
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} SSR entry file: ${ssrEntryFile}`);
13366
13452
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} Preset: ${preset}`);
13367
13453
  const ssgCollectionPromise = routeManager.collectSSGPages();
13368
- const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config));
13454
+ const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config));
13369
13455
  const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
13370
13456
  const docsPrerenderPagesPromise = getFarmDocsPrerenderPages(config, root, preset);
13371
- const farmWorkflows = await _chunkQUEYL2WMcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
13457
+ const farmWorkflows = await _chunkCKNZJFK5cjs.prepareFarmWorkflowsForNitro.call(void 0, config);
13372
13458
  const farmCron = await _chunkCYNQPKA4cjs.prepareFarmCronForNitro.call(void 0, config);
13373
13459
  const [
13374
13460
  { ssg: ssgPages },
@@ -14157,13 +14243,13 @@ function toFarmNodeResponse(request, response) {
14157
14243
  }
14158
14244
  if (prerenderRoutes.length > 0) {
14159
14245
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
14160
- const previousPrerender = process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV];
14161
- process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV] = "1";
14246
+ const previousPrerender = process.env[_chunkNNGBTJCXcjs.FARM_PRERENDER_ENV];
14247
+ process.env[_chunkNNGBTJCXcjs.FARM_PRERENDER_ENV] = "1";
14162
14248
  try {
14163
14249
  await nitroBuilder.prerender(nitroInstance);
14164
14250
  } finally {
14165
- if (previousPrerender === void 0) delete process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV];
14166
- else process.env[_chunkPXXG5BIDcjs.FARM_PRERENDER_ENV] = previousPrerender;
14251
+ if (previousPrerender === void 0) delete process.env[_chunkNNGBTJCXcjs.FARM_PRERENDER_ENV];
14252
+ else process.env[_chunkNNGBTJCXcjs.FARM_PRERENDER_ENV] = previousPrerender;
14167
14253
  }
14168
14254
  }
14169
14255
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
@@ -14399,7 +14485,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
14399
14485
  middlewareRoutes: edgeMiddlewareRoutes.length > 0 ? createFarmVercelEdgeMiddlewareRoutes(edgeMiddleware.guardedPages, config.basePath) : [],
14400
14486
  canonicalSlashRoutes: createFarmVercelCanonicalSlashRoutes(prerenderedPages)
14401
14487
  });
14402
- const vercelConfigWithWorkflowCrons = _chunkQUEYL2WMcjs.applyFarmWorkflowVercelCrons.call(void 0,
14488
+ const vercelConfigWithWorkflowCrons = _chunkCKNZJFK5cjs.applyFarmWorkflowVercelCrons.call(void 0,
14403
14489
  vercelConfig,
14404
14490
  farmWorkflows.workflows
14405
14491
  );
@@ -14518,7 +14604,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
14518
14604
  try {
14519
14605
  await copyPackage("sharp", sharpRequire);
14520
14606
  if (!copiedPackages.has("sharp")) {
14521
- throw new Error(`Farm image optimization requires sharp. ${_chunkDTNWLRRFcjs.SHARP_INSTALL_HINT}`);
14607
+ throw new Error(`Farm image optimization requires sharp. ${_chunkHVMQAVZKcjs.SHARP_INSTALL_HINT}`);
14522
14608
  }
14523
14609
  } catch (error) {
14524
14610
  await fs5.rm(stageDir, { recursive: true, force: true });
@@ -14751,7 +14837,7 @@ async function createFarmProjectModuleSsrEnvironment() {
14751
14837
  // src/build/index.ts
14752
14838
  async function build(config, options = {}) {
14753
14839
  return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
14754
- () => _chunkQP4GYVRRcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
14840
+ () => _chunkODYKCC6Wcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
14755
14841
  );
14756
14842
  }
14757
14843
  function createBuildTargetBaseline(config) {
@@ -14762,7 +14848,7 @@ function createBuildTargetBaseline(config) {
14762
14848
  preset,
14763
14849
  distDir,
14764
14850
  outputDir,
14765
- outputWasDerived: outputDir === _chunkPSNYVBWCcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
14851
+ outputWasDerived: outputDir === _chunkF7PKUP6Pcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
14766
14852
  };
14767
14853
  }
14768
14854
  function resolveBuildTargets(config, options, baseline) {
@@ -14771,8 +14857,8 @@ function resolveBuildTargets(config, options, baseline) {
14771
14857
  const distDir = config.distDir || ".farm";
14772
14858
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
14773
14859
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
14774
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkPSNYVBWCcjs.getDeployTargetForPreset.call(void 0, preset);
14775
- const outputDir = shouldRefreshDerivedOutput ? _chunkPSNYVBWCcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
14860
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkF7PKUP6Pcjs.getDeployTargetForPreset.call(void 0, preset);
14861
+ const outputDir = shouldRefreshDerivedOutput ? _chunkF7PKUP6Pcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
14776
14862
  return {
14777
14863
  root,
14778
14864
  preset,
@@ -14780,7 +14866,7 @@ function resolveBuildTargets(config, options, baseline) {
14780
14866
  distDir,
14781
14867
  deployTarget,
14782
14868
  outputDir,
14783
- deployOutputDir: _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
14869
+ deployOutputDir: _chunkF7PKUP6Pcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
14784
14870
  };
14785
14871
  }
14786
14872
  async function buildWithProductionNodeEnv(inputConfig, options) {
@@ -14788,7 +14874,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14788
14874
  const targetBaseline = createBuildTargetBaseline(config);
14789
14875
  let targets;
14790
14876
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))]);
14791
- const pluginManager = new (0, _chunk22T75EMLcjs.PluginManager)({
14877
+ const pluginManager = new (0, _chunkCUZT7474cjs.PluginManager)({
14792
14878
  config,
14793
14879
  isDev: false,
14794
14880
  isProd: true
@@ -14817,7 +14903,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14817
14903
  };
14818
14904
  config = {
14819
14905
  ...config,
14820
- images: _chunkDTNWLRRFcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
14906
+ images: _chunkHVMQAVZKcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
14821
14907
  root: targets.root,
14822
14908
  preset: targets.preset
14823
14909
  })
@@ -14825,7 +14911,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14825
14911
  if (_optionalChain([config, 'access', _353 => _353.docs, 'optionalAccess', _354 => _354.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
14826
14912
  pluginManager.updateContext({ config });
14827
14913
  const { root, preset, srcDir, distDir, deployOutputDir } = targets;
14828
- _chunkQP4GYVRRcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkQP4GYVRRcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
14914
+ _chunkODYKCC6Wcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkODYKCC6Wcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
14829
14915
  _chunkGC5ROI3Acjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
14830
14916
  await pluginManager.setupPlugins();
14831
14917
  await pluginManager.runHookParallel("beforeBundle", {
@@ -14846,15 +14932,16 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14846
14932
  root,
14847
14933
  rendererBuild.signal
14848
14934
  );
14849
- const farmApp = _chunkDTNWLRRFcjs.createFarmApp.call(void 0, config, projectModuleServer);
14935
+ const farmApp = _chunkHVMQAVZKcjs.createFarmApp.call(void 0, config, projectModuleServer);
14850
14936
  if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
14851
14937
  await farmApp.initialize();
14852
14938
  const routeManager = farmApp.getRouteManager();
14853
14939
  const serverRenderer = farmApp.getServerRenderer();
14854
- const typeArtifacts = _chunk7564NP5Zcjs.generateFarmTypeArtifacts.call(void 0, {
14940
+ const typeArtifacts = _chunkBZJYPIFZcjs.generateFarmTypeArtifacts.call(void 0, {
14855
14941
  root,
14856
14942
  srcDir,
14857
14943
  layers: config.layers,
14944
+ storage: config.storage,
14858
14945
  plugins: config.plugins,
14859
14946
  extraRoutes: [
14860
14947
  ..._optionalChain([config, 'access', _357 => _357.openapi, 'optionalAccess', _358 => _358.enabled]) && config.openapi.route ? [config.openapi.route] : [],
@@ -14867,8 +14954,8 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14867
14954
  const message = error instanceof Error ? error.message : String(error);
14868
14955
  _chunkGC5ROI3Acjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
14869
14956
  });
14870
- const apiRouteManager = new (0, _chunkHFJLMALCcjs.APIRouteManager)(
14871
- _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config),
14957
+ const apiRouteManager = new (0, _chunk5DREJN4Gcjs.APIRouteManager)(
14958
+ _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config),
14872
14959
  projectModuleServer,
14873
14960
  {
14874
14961
  throwOnLoadError: true,
@@ -14954,7 +15041,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14954
15041
  ssr: true,
14955
15042
  buildLifetime
14956
15043
  });
14957
- const viteConfig = _chunkDTNWLRRFcjs.mergeFarmViteConfig.call(void 0,
15044
+ const viteConfig = _chunkHVMQAVZKcjs.mergeFarmViteConfig.call(void 0,
14958
15045
  {
14959
15046
  root,
14960
15047
  appType: "custom",
@@ -14966,12 +15053,12 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14966
15053
  },
14967
15054
  plugins: [
14968
15055
  ...rendererVitePlugins,
14969
- _chunkDTNWLRRFcjs.farmFontImportsPlugin.call(void 0, {
15056
+ _chunkHVMQAVZKcjs.farmFontImportsPlugin.call(void 0, {
14970
15057
  root,
14971
15058
  basePath: config.basePath,
14972
15059
  publicDir: config.publicDir
14973
15060
  }),
14974
- _chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
15061
+ _chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
14975
15062
  // Route modules load here at build time (rendering config, prerendering): `server-only`
14976
15063
  // resolves as it does in the server build. Module-entry packages load pre-bundled, as in
14977
15064
  // `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
@@ -14986,7 +15073,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14986
15073
  hmr: false
14987
15074
  },
14988
15075
  resolve: {
14989
- alias: _chunkDTNWLRRFcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
15076
+ alias: _chunkHVMQAVZKcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
14990
15077
  dedupe: [...config.renderer.dedupe || []]
14991
15078
  },
14992
15079
  optimizeDeps: {
@@ -15041,7 +15128,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15041
15128
  farmPlugin,
15042
15129
  farmServerOnlyEntriesPlugin
15043
15130
  } = await import("./vite.cjs");
15044
- const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
15131
+ const { PluginManager: PluginManager2 } = await import("./plugin-AGEFSU7K.cjs");
15045
15132
  const pluginManager = new PluginManager2({
15046
15133
  config,
15047
15134
  isDev: false,
@@ -15062,14 +15149,14 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15062
15149
  farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
15063
15150
  farmIslandContainersPlugin(config),
15064
15151
  farmPlugin(config, pluginManager),
15065
- _chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15152
+ _chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15066
15153
  ],
15067
15154
  mode: "production"
15068
15155
  });
15069
15156
  }
15070
15157
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15071
15158
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.cjs");
15072
- const { PluginManager: PluginManager2 } = await import("./plugin-YXPIS3XX.cjs");
15159
+ const { PluginManager: PluginManager2 } = await import("./plugin-AGEFSU7K.cjs");
15073
15160
  const pluginManager = new PluginManager2({
15074
15161
  config,
15075
15162
  isDev: false,
@@ -15096,7 +15183,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15096
15183
  farmI18nClientBridgePlugin(),
15097
15184
  farmIslandContainersPlugin(config),
15098
15185
  farmPlugin(config, pluginManager),
15099
- _chunkQP4GYVRRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15186
+ _chunkODYKCC6Wcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15100
15187
  ],
15101
15188
  mode: "production"
15102
15189
  });
@@ -15111,7 +15198,7 @@ function resolveLegacyPageEntry(config, root, srcDir) {
15111
15198
  }
15112
15199
  async function buildNitro(config, routeManager, apiRouteManager, serverRenderer, preset, root, distDir, pluginManager) {
15113
15200
  const [{ createNitroConfig }, { createNitro, build: nitroBuild }] = await Promise.all([
15114
- import("./nitro-HKMVYIXY.cjs"),
15201
+ import("./nitro-NUCTYEKJ.cjs"),
15115
15202
  import("nitro/builder")
15116
15203
  ]);
15117
15204
  let nitroConfig = await createNitroConfig(
@@ -15124,7 +15211,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15124
15211
  if (pluginManager) {
15125
15212
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
15126
15213
  }
15127
- const outputDir = _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15214
+ const outputDir = _chunkF7PKUP6Pcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15128
15215
  const serverOutputDir = _path2.default.join(outputDir, "server");
15129
15216
  const publicOutputDir = _path2.default.join(outputDir, "public");
15130
15217
  const { mkdir, cp } = await import("fs/promises");
@@ -15195,7 +15282,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15195
15282
  root,
15196
15283
  preset,
15197
15284
  distDir,
15198
- outputDir: _chunkPSNYVBWCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15285
+ outputDir: _chunkF7PKUP6Pcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15199
15286
  });
15200
15287
  }
15201
15288
  }