@farm.js/core 0.1.83 → 0.1.84

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 (95) hide show
  1. package/dist/{analyzer-Y6IY26HI.mjs → analyzer-7RNO3XKC.mjs} +2 -2
  2. package/dist/analyzer-PFKA5NI6.cjs +17 -0
  3. package/dist/{chunk-WCSBYQOT.cjs → chunk-22BTYPIX.cjs} +4 -4
  4. package/dist/{chunk-NGTZHWBG.cjs → chunk-3OKSEJ33.cjs} +31 -10
  5. package/dist/{chunk-VQ6IXALL.mjs → chunk-3WM7VBGW.mjs} +2 -2
  6. package/dist/{chunk-IABI62FH.cjs → chunk-57EEWWUS.cjs} +2 -2
  7. package/dist/{chunk-7X2CYE66.cjs → chunk-5I4ZGKP2.cjs} +255 -199
  8. package/dist/{chunk-RGTZAM6Y.mjs → chunk-BCCCPFHQ.mjs} +25 -4
  9. package/dist/{chunk-55UJGUBP.cjs → chunk-BOEDYXAX.cjs} +13 -13
  10. package/dist/{chunk-DPUZVGXH.mjs → chunk-BRDGINBB.mjs} +31 -28
  11. package/dist/{chunk-FFWSER54.mjs → chunk-BZY3SRRD.mjs} +1 -1
  12. package/dist/{chunk-3CZ4MJHW.cjs → chunk-CVZY4TLW.cjs} +1 -1
  13. package/dist/{chunk-IAIRQAHA.mjs → chunk-CWUQBECF.mjs} +1 -1
  14. package/dist/{chunk-WZV2G2A6.mjs → chunk-DFDQGHPU.mjs} +83 -27
  15. package/dist/{chunk-SLIXHUMS.cjs → chunk-DSWSDDP2.cjs} +230 -201
  16. package/dist/{chunk-EFI6QWBQ.cjs → chunk-EBSL5TW7.cjs} +15 -15
  17. package/dist/{chunk-U56Z3755.mjs → chunk-EDBIBO67.mjs} +9 -9
  18. package/dist/{chunk-BBVLOEND.cjs → chunk-F7JVO3OZ.cjs} +4 -4
  19. package/dist/{chunk-5X5GJU5A.cjs → chunk-GLNVLCUH.cjs} +6 -6
  20. package/dist/{chunk-DZTWUEBB.cjs → chunk-HOQ2MYBJ.cjs} +10 -10
  21. package/dist/{chunk-NKVBWPXR.mjs → chunk-I5CVJ24H.mjs} +1 -1
  22. package/dist/{chunk-R3VLM2MW.mjs → chunk-INU4K4U4.mjs} +5 -5
  23. package/dist/{chunk-43N3X6OO.mjs → chunk-IRJSZAJB.mjs} +1 -1
  24. package/dist/{chunk-NDWI6FDH.mjs → chunk-KXVMWLTC.mjs} +59 -30
  25. package/dist/{chunk-HRH7OKBQ.cjs → chunk-L3BSHASB.cjs} +4 -4
  26. package/dist/{chunk-ELNRKD4V.mjs → chunk-L5HDCDFT.mjs} +1 -1
  27. package/dist/{chunk-RNJX3MD6.mjs → chunk-M5XU22PQ.mjs} +1 -1
  28. package/dist/chunk-MAPHNGTF.cjs +98 -0
  29. package/dist/{chunk-RE5E2G5S.cjs → chunk-MNUYXZV7.cjs} +2 -18
  30. package/dist/{chunk-ORBBAA7B.mjs → chunk-MUUDHWQZ.mjs} +1 -1
  31. package/dist/{chunk-YSU3WCW6.mjs → chunk-MYSH5Y4E.mjs} +1 -1
  32. package/dist/{chunk-K3GHY7GY.mjs → chunk-NLHSKKTT.mjs} +1 -1
  33. package/dist/{chunk-JHRJ5V2F.cjs → chunk-OFVBMS6I.cjs} +165 -162
  34. package/dist/{chunk-3DAJXBSL.cjs → chunk-OP7BIEUW.cjs} +2 -2
  35. package/dist/chunk-RJBUI5AN.mjs +18 -0
  36. package/dist/chunk-RQ6XX5IN.mjs +98 -0
  37. package/dist/{chunk-LN6FAYNB.cjs → chunk-USMRAC72.cjs} +2 -2
  38. package/dist/{chunk-B5SJYXJK.mjs → chunk-XLULEFRW.mjs} +6 -6
  39. package/dist/{chunk-A5BHJHDF.cjs → chunk-YU6VL7H5.cjs} +3 -3
  40. package/dist/{chunk-OM6JIIJU.cjs → chunk-Z37PDUJR.cjs} +4 -4
  41. package/dist/{devtools-ZM2AR36W.cjs → devtools-4SVIRV4P.cjs} +6 -6
  42. package/dist/{devtools-OI52TCSD.mjs → devtools-MWQA5LVN.mjs} +4 -4
  43. package/dist/docs.cjs +6 -6
  44. package/dist/docs.mjs +5 -5
  45. package/dist/environment/vite.cjs +5 -5
  46. package/dist/environment/vite.mjs +4 -4
  47. package/dist/index.cjs +25 -24
  48. package/dist/index.mjs +24 -23
  49. package/dist/internal/build-runtime.cjs +26 -25
  50. package/dist/internal/build-runtime.mjs +25 -24
  51. package/dist/internal/cli-runtime.cjs +8 -8
  52. package/dist/internal/cli-runtime.mjs +7 -7
  53. package/dist/internal/client-error-overlay.cjs +4 -4
  54. package/dist/internal/client-error-overlay.mjs +1 -1
  55. package/dist/internal/client-runtime.d.mts +3 -37
  56. package/dist/internal/client-runtime.d.ts +3 -37
  57. package/dist/internal/config-runtime.cjs +6 -6
  58. package/dist/internal/config-runtime.mjs +5 -5
  59. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  60. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  61. package/dist/internal/native-server-fns.cjs +4 -4
  62. package/dist/internal/native-server-fns.mjs +3 -3
  63. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  64. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  65. package/dist/internal/production-runtime.cjs +13 -13
  66. package/dist/internal/production-runtime.mjs +19 -19
  67. package/dist/internal/renderer-islands.cjs +47 -0
  68. package/dist/internal/renderer-islands.d.mts +32 -0
  69. package/dist/internal/renderer-islands.d.ts +32 -0
  70. package/dist/internal/renderer-islands.mjs +47 -0
  71. package/dist/island-runtime.d-BA7EPo1v.d.ts +38 -0
  72. package/dist/island-runtime.d-BBS_YUSX.d.mts +38 -0
  73. package/dist/plugin.cjs +20 -19
  74. package/dist/plugin.mjs +19 -18
  75. package/dist/renderer.cjs +8 -2
  76. package/dist/renderer.d.mts +81 -1
  77. package/dist/renderer.d.ts +81 -1
  78. package/dist/renderer.mjs +7 -1
  79. package/dist/{rsc-pipeline-MFJZGDPE.cjs → rsc-pipeline-OWBEZ7HB.cjs} +9 -9
  80. package/dist/{rsc-pipeline-TRZVFCBX.mjs → rsc-pipeline-UT3Z2GDO.mjs} +8 -8
  81. package/dist/{runtime-O4Y3Z6V3.mjs → runtime-F5I3WY3B.mjs} +10 -11
  82. package/dist/{runtime-MJUG2HGR.cjs → runtime-SRMQ46SK.cjs} +13 -14
  83. package/dist/server.cjs +50 -50
  84. package/dist/server.mjs +28 -28
  85. package/dist/version.cjs +2 -2
  86. package/dist/version.mjs +1 -1
  87. package/dist/vite.cjs +20 -19
  88. package/dist/vite.d.mts +6 -0
  89. package/dist/vite.d.ts +6 -0
  90. package/dist/vite.mjs +19 -18
  91. package/package.json +8 -3
  92. package/dist/analyzer-WGH6J2HN.cjs +0 -17
  93. package/dist/chunk-4QENVMG7.mjs +0 -34
  94. package/dist/{chunk-NEKO3HM2.cjs → chunk-4B6YJ5DS.cjs} +2 -2
  95. package/dist/{chunk-CA2HBLXP.mjs → chunk-4EEAPBNV.mjs} +3 -3
@@ -9,6 +9,7 @@
9
9
  var _chunkE5UN4OWXcjs = require('./chunk-E5UN4OWX.cjs');
10
10
 
11
11
 
12
+ var _chunkMF3IA2AWcjs = require('./chunk-MF3IA2AW.cjs');
12
13
 
13
14
 
14
15
 
@@ -19,10 +20,9 @@ var _chunkE5UN4OWXcjs = require('./chunk-E5UN4OWX.cjs');
19
20
 
20
21
 
21
22
 
22
- var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
23
23
 
24
24
 
25
- var _chunkMF3IA2AWcjs = require('./chunk-MF3IA2AW.cjs');
25
+ var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
26
26
 
27
27
 
28
28
  var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
@@ -32,7 +32,7 @@ var _chunkMHKPXX3Jcjs = require('./chunk-MHKPXX3J.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkA5BHJHDFcjs = require('./chunk-A5BHJHDF.cjs');
35
+ var _chunkYU6VL7H5cjs = require('./chunk-YU6VL7H5.cjs');
36
36
 
37
37
 
38
38
 
@@ -40,7 +40,7 @@ var _chunkA5BHJHDFcjs = require('./chunk-A5BHJHDF.cjs');
40
40
 
41
41
 
42
42
 
43
- var _chunkLN6FAYNBcjs = require('./chunk-LN6FAYNB.cjs');
43
+ var _chunkUSMRAC72cjs = require('./chunk-USMRAC72.cjs');
44
44
 
45
45
 
46
46
 
@@ -70,7 +70,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
70
70
 
71
71
 
72
72
 
73
- var _chunk55UJGUBPcjs = require('./chunk-55UJGUBP.cjs');
73
+ var _chunkBOEDYXAXcjs = require('./chunk-BOEDYXAX.cjs');
74
74
 
75
75
 
76
76
  var _chunk3BTN3NP7cjs = require('./chunk-3BTN3NP7.cjs');
@@ -115,7 +115,7 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
115
115
 
116
116
 
117
117
 
118
- var _chunkJHRJ5V2Fcjs = require('./chunk-JHRJ5V2F.cjs');
118
+ var _chunkOFVBMS6Icjs = require('./chunk-OFVBMS6I.cjs');
119
119
 
120
120
 
121
121
 
@@ -131,12 +131,14 @@ var _chunkVACYUMXWcjs = require('./chunk-VACYUMXW.cjs');
131
131
 
132
132
 
133
133
 
134
- var _chunkHRH7OKBQcjs = require('./chunk-HRH7OKBQ.cjs');
134
+ var _chunkL3BSHASBcjs = require('./chunk-L3BSHASB.cjs');
135
135
 
136
136
 
137
+ var _chunkMAPHNGTFcjs = require('./chunk-MAPHNGTF.cjs');
137
138
 
138
139
 
139
140
 
141
+ var _chunkZ37PDUJRcjs = require('./chunk-Z37PDUJR.cjs');
140
142
 
141
143
 
142
144
 
@@ -144,17 +146,18 @@ var _chunkHRH7OKBQcjs = require('./chunk-HRH7OKBQ.cjs');
144
146
 
145
147
 
146
148
 
147
- var _chunkNEKO3HM2cjs = require('./chunk-NEKO3HM2.cjs');
148
149
 
149
150
 
150
- var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
151
151
 
152
152
 
153
- var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
153
+
154
+ var _chunk4B6YJ5DScjs = require('./chunk-4B6YJ5DS.cjs');
154
155
 
155
156
 
157
+ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
158
+
156
159
 
157
- var _chunkOM6JIIJUcjs = require('./chunk-OM6JIIJU.cjs');
160
+ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
158
161
 
159
162
 
160
163
 
@@ -162,7 +165,7 @@ var _chunkOM6JIIJUcjs = require('./chunk-OM6JIIJU.cjs');
162
165
 
163
166
 
164
167
 
165
- var _chunkWCSBYQOTcjs = require('./chunk-WCSBYQOT.cjs');
168
+ var _chunk22BTYPIXcjs = require('./chunk-22BTYPIX.cjs');
166
169
 
167
170
 
168
171
 
@@ -170,7 +173,7 @@ var _chunkWCSBYQOTcjs = require('./chunk-WCSBYQOT.cjs');
170
173
  var _chunkW53Z4WDIcjs = require('./chunk-W53Z4WDI.cjs');
171
174
 
172
175
 
173
- var _chunkIABI62FHcjs = require('./chunk-IABI62FH.cjs');
176
+ var _chunk57EEWWUScjs = require('./chunk-57EEWWUS.cjs');
174
177
 
175
178
 
176
179
  var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
@@ -191,7 +194,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
191
194
 
192
195
 
193
196
 
194
- var _chunkEFI6QWBQcjs = require('./chunk-EFI6QWBQ.cjs');
197
+ var _chunkEBSL5TW7cjs = require('./chunk-EBSL5TW7.cjs');
195
198
 
196
199
 
197
200
 
@@ -215,9 +218,6 @@ var _chunkIIHZ2BEEcjs = require('./chunk-IIHZ2BEE.cjs');
215
218
  var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
216
219
 
217
220
 
218
- var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
219
-
220
-
221
221
  var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
222
222
 
223
223
 
@@ -228,7 +228,8 @@ var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
228
228
 
229
229
 
230
230
 
231
- var _chunkNGTZHWBGcjs = require('./chunk-NGTZHWBG.cjs');
231
+
232
+ var _chunk3OKSEJ33cjs = require('./chunk-3OKSEJ33.cjs');
232
233
 
233
234
 
234
235
 
@@ -307,7 +308,7 @@ var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
307
308
  var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
308
309
 
309
310
 
310
- var _chunk3CZ4MJHWcjs = require('./chunk-3CZ4MJHW.cjs');
311
+ var _chunkCVZY4TLWcjs = require('./chunk-CVZY4TLW.cjs');
311
312
 
312
313
 
313
314
  var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
@@ -660,7 +661,7 @@ async function compileFarmDocsManifest(docs, options) {
660
661
  isPathGuarded: options.isPathGuarded,
661
662
  basePath
662
663
  });
663
- const apiHandler = _chunkLN6FAYNBcjs.createFarmDocsAPIHandler.call(void 0, {
664
+ const apiHandler = _chunkUSMRAC72cjs.createFarmDocsAPIHandler.call(void 0, {
664
665
  rootDir: options.root,
665
666
  srcDir: options.srcDir,
666
667
  docs,
@@ -1052,7 +1053,7 @@ async function createFarmRouteRuntimeManifest(options) {
1052
1053
  const routes = [];
1053
1054
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
1054
1055
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
1055
- const rendering = await _chunkHRH7OKBQcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1056
+ const rendering = await _chunkL3BSHASBcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1056
1057
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
1057
1058
  routes.push({
1058
1059
  kind: "page",
@@ -1665,7 +1666,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
1665
1666
  // removed block used (`readFileSync` for a version, say).
1666
1667
  enforce: "pre",
1667
1668
  transform: {
1668
- filter: { id: _chunkJHRJ5V2Fcjs.fileNamePattern.call(void 0, configFiles) },
1669
+ filter: { id: _chunkOFVBMS6Icjs.fileNamePattern.call(void 0, configFiles) },
1669
1670
  async handler(code, id) {
1670
1671
  const file = id.split("?", 1)[0];
1671
1672
  if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
@@ -1984,7 +1985,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
1984
1985
  logLevel: "silent",
1985
1986
  plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
1986
1987
  resolve: {
1987
- alias: _chunkJHRJ5V2Fcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1988
+ alias: _chunkOFVBMS6Icjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1988
1989
  conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
1989
1990
  },
1990
1991
  transform: {
@@ -2344,7 +2345,7 @@ function hasReactDomEdgeServerBuild(root) {
2344
2345
  }
2345
2346
  }
2346
2347
  function shouldAliasReactServerToWebBuild(renderer, preset) {
2347
- return _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, renderer) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge";
2348
+ return _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge";
2348
2349
  }
2349
2350
  function isCloudflareImagePreset(preset) {
2350
2351
  return preset === "cloudflare" || preset === "cloudflare-pages" || preset === "cloudflare-module";
@@ -2386,7 +2387,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2386
2387
  return {
2387
2388
  name: "farm-omitted-metadata-image-runtime",
2388
2389
  resolveId: {
2389
- filter: { id: _chunkJHRJ5V2Fcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2390
+ filter: { id: _chunkOFVBMS6Icjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2390
2391
  handler(source, importer) {
2391
2392
  if (source !== "@vercel/og") return null;
2392
2393
  const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
@@ -2395,7 +2396,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2395
2396
  }
2396
2397
  },
2397
2398
  load: {
2398
- filter: { id: _chunkJHRJ5V2Fcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2399
+ filter: { id: _chunkOFVBMS6Icjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2399
2400
  handler(id) {
2400
2401
  if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
2401
2402
  return `
@@ -2864,7 +2865,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
2864
2865
  const productionVite = productionViteResult.value;
2865
2866
  _chunk7U4XF76Rcjs.logger.info("\u26A1 Building application bundles with Vite Rolldown");
2866
2867
  const mobileClient = shouldBuildFarmMobileClient(config);
2867
- const rendererDisabled = _chunkNGTZHWBGcjs.isFarmRendererDisabled.call(void 0, config.renderer);
2868
+ const rendererDisabled = _chunk3OKSEJ33cjs.isFarmRendererDisabled.call(void 0, config.renderer);
2868
2869
  const buildClientBundle = async () => {
2869
2870
  if (rendererDisabled) {
2870
2871
  await fs5.rm(clientOutputDir, { recursive: true, force: true });
@@ -3015,7 +3016,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
3015
3016
  for (const route of pageRoutes) {
3016
3017
  if (route.source === void 0 || !_chunk26WP75W5cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
3017
3018
  const { body } = _chunk26WP75W5cjs.parseMarkdownFrontmatter.call(void 0, route.source);
3018
- const rendering = _chunkHRH7OKBQcjs.resolveRouteRenderingConfig.call(void 0,
3019
+ const rendering = _chunkL3BSHASBcjs.resolveRouteRenderingConfig.call(void 0,
3019
3020
  _chunk26WP75W5cjs.readFarmMarkdownRouteConfig.call(void 0, body),
3020
3021
  route.source
3021
3022
  );
@@ -3059,7 +3060,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
3059
3060
  const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
3060
3061
  await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
3061
3062
  try {
3062
- await fs5.writeFile(filePath, _chunkJHRJ5V2Fcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
3063
+ await fs5.writeFile(filePath, _chunkOFVBMS6Icjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
3063
3064
  } catch (error) {
3064
3065
  if (error.code !== "EEXIST") throw error;
3065
3066
  }
@@ -3093,7 +3094,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
3093
3094
  }
3094
3095
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
3095
3096
  await fs5.writeFile(fontCssPath, normalizedFontCss);
3096
- await fs5.writeFile(clientCssPath, _chunkJHRJ5V2Fcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3097
+ await fs5.writeFile(clientCssPath, _chunkOFVBMS6Icjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3097
3098
  }
3098
3099
  function importsFarmClientBlockedPackage(id, packageName) {
3099
3100
  return id === packageName || id.startsWith(`${packageName}/`);
@@ -3143,10 +3144,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
3143
3144
  }
3144
3145
  }
3145
3146
  function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
3146
- const key = _chunkEFI6QWBQcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3147
+ const key = _chunkEBSL5TW7cjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3147
3148
  let plan = cache.get(key);
3148
3149
  if (!plan) {
3149
- plan = _chunkEFI6QWBQcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3150
+ plan = _chunkEBSL5TW7cjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3150
3151
  cache.set(key, plan);
3151
3152
  }
3152
3153
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -3175,33 +3176,33 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3175
3176
  const unsupportedIntegrationProvider = integrationProviders.find(
3176
3177
  (provider) => provider.supportsIsolatedHydration !== true
3177
3178
  );
3178
- if (_optionalChain([config, 'access', _94 => _94.experimental, 'optionalAccess', _95 => _95.isolatedClientHydration]) === "enabled" && _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _96 => _96.experimental, 'optionalAccess', _97 => _97.serverComponents])) !== "rsc" && unsupportedIntegrationProvider) {
3179
+ if (_optionalChain([config, 'access', _94 => _94.experimental, 'optionalAccess', _95 => _95.isolatedClientHydration]) === "enabled" && _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _96 => _96.experimental, 'optionalAccess', _97 => _97.serverComponents])) !== "rsc" && unsupportedIntegrationProvider) {
3179
3180
  _chunk7U4XF76Rcjs.logger.warn(
3180
3181
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
3181
3182
  );
3182
3183
  }
3183
- const isolatedMode = _chunkEFI6QWBQcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3184
+ const isolatedMode = _chunkEBSL5TW7cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3184
3185
  _optionalChain([config, 'access', _98 => _98.experimental, 'optionalAccess', _99 => _99.isolatedClientHydration]),
3185
3186
  {
3186
- serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _100 => _100.experimental, 'optionalAccess', _101 => _101.serverComponents])) === "rsc",
3187
+ serverComponents: _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _100 => _100.experimental, 'optionalAccess', _101 => _101.serverComponents])) === "rsc",
3187
3188
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
3188
3189
  }
3189
3190
  );
3190
- const planOptions = _chunkEFI6QWBQcjs.getFarmClientHydrationPlanOptions.call(void 0,
3191
+ const planOptions = _chunkEBSL5TW7cjs.getFarmClientHydrationPlanOptions.call(void 0,
3191
3192
  config.renderer,
3192
3193
  Boolean(unsupportedIntegrationProvider)
3193
3194
  );
3194
3195
  const pagePlanOptions = {
3195
3196
  ...planOptions,
3196
- serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _102 => _102.experimental, 'optionalAccess', _103 => _103.serverComponents])) === "islands"
3197
+ serverOwners: _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _102 => _102.experimental, 'optionalAccess', _103 => _103.serverComponents])) === "islands"
3197
3198
  };
3198
3199
  const layoutPlanOptions = {
3199
3200
  ...planOptions,
3200
3201
  serverTreeLayouts: pagePlanOptions.serverOwners
3201
3202
  };
3202
- const layoutAppliesToRoute = _chunkNEKO3HM2cjs.routeBoundaryCoversDirectory;
3203
+ const layoutAppliesToRoute = _chunk4B6YJ5DScjs.routeBoundaryCoversDirectory;
3203
3204
  const routeDirectory = (route) => _nullishCoalesce(route.directory, () => ( route.pattern));
3204
- const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _104 => _104.experimental, 'optionalAccess', _105 => _105.serverComponents])) === "islands";
3205
+ const islandsMode = _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _104 => _104.experimental, 'optionalAccess', _105 => _105.serverComponents])) === "islands";
3205
3206
  const adapterOwnsDocsRuntime = _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs);
3206
3207
  const docsEntries = _optionalChain([config, 'access', _106 => _106.docs, 'optionalAccess', _107 => _107.enabled]) ? _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, config.docs).map(
3207
3208
  (docsRoot) => `/${docsRoot.entry || "docs"}`.replace(/\/+/g, "/").replace(/\/$/, "") || "/"
@@ -3212,7 +3213,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3212
3213
  );
3213
3214
  const syntheticDocsEntry = _optionalChain([config, 'access', _108 => _108.docs, 'optionalAccess', _109 => _109.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3214
3215
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
3215
- const plan = (operation) => sourceSnapshot ? _chunkEFI6QWBQcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkEFI6QWBQcjs.withFarmSourceSnapshot.call(void 0, operation);
3216
+ const plan = (operation) => sourceSnapshot ? _chunkEBSL5TW7cjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkEBSL5TW7cjs.withFarmSourceSnapshot.call(void 0, operation);
3216
3217
  const { clientLayouts, clientRouteSlots } = plan(() => {
3217
3218
  const clientLayouts2 = layoutRoutes.map((layout) => {
3218
3219
  try {
@@ -3259,7 +3260,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3259
3260
  };
3260
3261
  }
3261
3262
  });
3262
- const markdownPagePlan = _chunkEFI6QWBQcjs.createMarkdownPageHydrationPlanner.call(void 0,
3263
+ const markdownPagePlan = _chunkEBSL5TW7cjs.createMarkdownPageHydrationPlanner.call(void 0,
3263
3264
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
3264
3265
  root,
3265
3266
  isolatedMode,
@@ -3275,7 +3276,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3275
3276
  pagePlanOptions
3276
3277
  )
3277
3278
  }));
3278
- _chunkEFI6QWBQcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3279
+ _chunkEBSL5TW7cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3279
3280
  clientLayouts2.map((layout) => ({
3280
3281
  pattern: layout.pattern,
3281
3282
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -3284,7 +3285,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3284
3285
  [
3285
3286
  ...routePlans.map(({ route, metadata }) => ({
3286
3287
  pattern: routeDirectory(route),
3287
- depth: _chunkNEKO3HM2cjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
3288
+ depth: _chunk4B6YJ5DScjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
3288
3289
  metadata
3289
3290
  })),
3290
3291
  ...syntheticDocsPatterns.map((pattern) => ({
@@ -3309,7 +3310,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3309
3310
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
3310
3311
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
3311
3312
  _chunk7U4XF76Rcjs.logger.warn(
3312
- `\u26A0\uFE0F ${_chunkEFI6QWBQcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3313
+ `\u26A0\uFE0F ${_chunkEBSL5TW7cjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3313
3314
  );
3314
3315
  }
3315
3316
  }
@@ -3344,7 +3345,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3344
3345
  );
3345
3346
  if (metadata.suppressedAsyncHydration) {
3346
3347
  _chunk7U4XF76Rcjs.logger.warn(
3347
- `\u26A0\uFE0F ${_chunkEFI6QWBQcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3348
+ `\u26A0\uFE0F ${_chunkEBSL5TW7cjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3348
3349
  );
3349
3350
  }
3350
3351
  const slotBoundaries = serverSlotPlans.filter(
@@ -3352,7 +3353,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3352
3353
  ).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
3353
3354
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
3354
3355
  const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
3355
- const islandStrategy = _chunkJHRJ5V2Fcjs.resolveFarmRouteRootStrategy.call(void 0,
3356
+ const islandStrategy = _chunkOFVBMS6Icjs.resolveFarmRouteRootStrategy.call(void 0,
3356
3357
  route,
3357
3358
  metadata,
3358
3359
  clientLayouts2,
@@ -3371,7 +3372,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3371
3372
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
3372
3373
  ],
3373
3374
  // The server renders a server tree only below a hydrating layout.
3374
- ..._chunkEFI6QWBQcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3375
+ ..._chunkEBSL5TW7cjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3375
3376
  });
3376
3377
  _chunk7U4XF76Rcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3377
3378
  }
@@ -3408,7 +3409,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3408
3409
  }
3409
3410
  const clientRouteSlots2 = routeSlots.filter((slot) => {
3410
3411
  try {
3411
- const metadata = _chunkEFI6QWBQcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3412
+ const metadata = _chunkEBSL5TW7cjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3412
3413
  return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
3413
3414
  } catch (error) {
3414
3415
  _chunk7U4XF76Rcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
@@ -3461,11 +3462,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3461
3462
  config.trailingSlash,
3462
3463
  _chunkB3HQTGXScjs.getIntegrationProviders.call(void 0, config.integrations),
3463
3464
  config.basePath,
3464
- _chunkJHRJ5V2Fcjs.generateClientCachePersistenceCode.call(void 0, _chunkJHRJ5V2Fcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3465
+ _chunkOFVBMS6Icjs.generateClientCachePersistenceCode.call(void 0, _chunkOFVBMS6Icjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3465
3466
  adapterOwnsDocsRuntime ? _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
3466
- _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.serverComponents])) === "islands",
3467
+ _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.serverComponents])) === "islands",
3467
3468
  platform,
3468
- islandsMode ? _chunkEFI6QWBQcjs.collectFarmServerStylesheets.call(void 0,
3469
+ islandsMode ? _chunkEBSL5TW7cjs.collectFarmServerStylesheets.call(void 0,
3469
3470
  [
3470
3471
  ...layoutRoutes.map((layout) => layout.modulePath),
3471
3472
  ...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
@@ -3489,7 +3490,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3489
3490
  await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-root.tsx"), clientEntry.root);
3490
3491
  }
3491
3492
  const clientInput = { [entryName]: clientEntryPath };
3492
- if (platform === "web" && _chunkJHRJ5V2Fcjs.canBootFarmIslandsClient.call(void 0, config)) {
3493
+ if (platform === "web" && _chunkOFVBMS6Icjs.canBootFarmIslandsClient.call(void 0, config)) {
3493
3494
  const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
3494
3495
  await fs5.writeFile(
3495
3496
  clientBootPath,
@@ -3500,7 +3501,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3500
3501
  const hasScopedPostcssConfig = hasProjectPostcssConfig(root);
3501
3502
  let postcssSearchPath;
3502
3503
  let tailwindVitePlugin = void 0;
3503
- const rendererVitePlugins = await _chunkNGTZHWBGcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
3504
+ const rendererVitePlugins = await _chunk3OKSEJ33cjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
3504
3505
  ssr: false,
3505
3506
  buildLifetime: rendererBuildLifetime
3506
3507
  });
@@ -3564,7 +3565,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3564
3565
  }
3565
3566
  },
3566
3567
  plugins: [
3567
- _chunkJHRJ5V2Fcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3568
+ _chunkOFVBMS6Icjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3568
3569
  createFarmPrivateClientSourcemapsPlugin({
3569
3570
  outDir: _path2.default.join(
3570
3571
  _path2.default.dirname(outputDir),
@@ -3585,7 +3586,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3585
3586
  ],
3586
3587
  rootModules: [_path2.default.join(clientEntryDir, "farm-client-root.tsx")],
3587
3588
  // What the islands entry loads with its first render or hydration (RFC 0010).
3588
- ...islandsMode && _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? {
3589
+ ...islandsMode && _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? {
3589
3590
  rendererImports: [
3590
3591
  "react",
3591
3592
  "react-dom/client",
@@ -3613,7 +3614,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3613
3614
  ...config.vite.plugins || [],
3614
3615
  farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
3615
3616
  farmNavigationPlugin(config.renderer),
3616
- _chunkJHRJ5V2Fcjs.farmDocsClientConfigPlugin.call(void 0,
3617
+ _chunkOFVBMS6Icjs.farmDocsClientConfigPlugin.call(void 0,
3617
3618
  adapterOwnsDocsRuntime ? _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
3618
3619
  ),
3619
3620
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -3646,7 +3647,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3646
3647
  },
3647
3648
  load: {
3648
3649
  filter: {
3649
- id: _chunkJHRJ5V2Fcjs.exactIdPattern.call(void 0, [
3650
+ id: _chunkOFVBMS6Icjs.exactIdPattern.call(void 0, [
3650
3651
  "\0empty-module",
3651
3652
  "\0empty-api-route",
3652
3653
  "\0farm-i18n-client-bridge",
@@ -3684,7 +3685,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3684
3685
  { ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
3685
3686
  pluginManager
3686
3687
  ),
3687
- _chunkEFI6QWBQcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3688
+ _chunkEBSL5TW7cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3688
3689
  ],
3689
3690
  mode: "production",
3690
3691
  css: postcssSearchPath ? {
@@ -3692,7 +3693,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3692
3693
  } : void 0,
3693
3694
  // Ensure React is bundled for client
3694
3695
  resolve: {
3695
- alias: _chunkJHRJ5V2Fcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3696
+ alias: _chunkOFVBMS6Icjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3696
3697
  dedupe: [...config.renderer.dedupe || []]
3697
3698
  },
3698
3699
  // Optimize dependencies - exclude server-side code from client bundle
@@ -3706,7 +3707,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3706
3707
  }
3707
3708
  };
3708
3709
  await viteBuild(
3709
- _chunkJHRJ5V2Fcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3710
+ _chunkOFVBMS6Icjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3710
3711
  );
3711
3712
  if (platform === "mobile") {
3712
3713
  await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
@@ -3800,9 +3801,9 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
3800
3801
  return response;
3801
3802
  }
3802
3803
 
3803
- ${streamNavigations ? `${_chunkJHRJ5V2Fcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
3804
+ ${streamNavigations ? `${_chunkOFVBMS6Icjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
3804
3805
 
3805
- ${_chunkJHRJ5V2Fcjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
3806
+ ${_chunkOFVBMS6Icjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
3806
3807
 
3807
3808
  function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
3808
3809
  if (error?.name === "FarmDeploymentMismatchError") {
@@ -3971,8 +3972,8 @@ for (const type of FARM_ROUTE_TABLE_INTENT_EVENTS) {
3971
3972
  }`;
3972
3973
  }
3973
3974
  function getFarmClientLayoutMatch(pattern) {
3974
- const groupScope = _chunkNEKO3HM2cjs.getRouteGroupScope.call(void 0, pattern);
3975
- return groupScope ? { pattern, urlPattern: _chunkNEKO3HM2cjs.stripRouteGroups.call(void 0, pattern), groupScope } : { pattern };
3975
+ const groupScope = _chunk4B6YJ5DScjs.getRouteGroupScope.call(void 0, pattern);
3976
+ return groupScope ? { pattern, urlPattern: _chunk4B6YJ5DScjs.stripRouteGroups.call(void 0, pattern), groupScope } : { pattern };
3976
3977
  }
3977
3978
  function generateFarmClientLayoutSelectionSource() {
3978
3979
  return `function selectFarmClientLayouts(layouts, routePathname, readDirectory) {
@@ -5110,7 +5111,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
5110
5111
  secure: false
5111
5112
  },
5112
5113
  direction: {}
5113
- }, plugins = [], renderer = _chunkNGTZHWBGcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
5114
+ }, plugins = [], renderer = _chunk3OKSEJ33cjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
5114
5115
  const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
5115
5116
  const clientPluginEntry = _chunkDMSXZNQRcjs.generateFarmClientPluginEntryCode.call(void 0,
5116
5117
  plugins,
@@ -5119,11 +5120,11 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
5119
5120
  publicRuntimeConfig,
5120
5121
  platform
5121
5122
  );
5122
- const appSetupPath = _chunkNGTZHWBGcjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
5123
- const lazyRenderer = islandValues && platform !== "mobile" && _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, renderer) && clientRouteSlots.length === 0;
5123
+ const appSetupPath = _chunk3OKSEJ33cjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
5124
+ const lazyRenderer = islandValues && platform !== "mobile" && _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) && clientRouteSlots.length === 0;
5124
5125
  const lazyRoot = islandValues && platform !== "mobile";
5125
5126
  const lazyMatcher = lazyRoot && clientPages.length > 0;
5126
- const rendererClientImports = lazyRenderer ? `import { holdFarmIslandInteractions, restorePagePosition, watchFarmIslandTriggers } from "@farm.js/core/internal/client-runtime";` : _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
5127
+ const rendererClientImports = lazyRenderer ? `import { holdFarmIslandInteractions, restorePagePosition, watchFarmIslandTriggers } from "@farm.js/core/internal/client-runtime";` : _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
5127
5128
  import { createRoot, hydrateRoot } from "react-dom/client";
5128
5129
  import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : (
5129
5130
  // Named exports only, as the server entry and the development client read them. A copy
@@ -5136,8 +5137,8 @@ __farmConfigureApp(__farmAppSetup);` : `import * as __farmRendererClient from ${
5136
5137
  import { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};
5137
5138
  const React = { ...__farmRendererClient };`
5138
5139
  );
5139
- const hydrateFarmRouteCall = _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);";
5140
- const providerClientCode = _chunkJHRJ5V2Fcjs.generateFarmIntegrationProviderClientCode.call(void 0,
5140
+ const hydrateFarmRouteCall = _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);";
5141
+ const providerClientCode = _chunkOFVBMS6Icjs.generateFarmIntegrationProviderClientCode.call(void 0,
5141
5142
  integrationProviders,
5142
5143
  root,
5143
5144
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -5161,12 +5162,12 @@ const React = { ...__farmRendererClient };`
5161
5162
  const layoutRegistrations = [];
5162
5163
  const layoutComponents = [];
5163
5164
  const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
5164
- const treeLayoutPatterns = islandValues ? _chunkNEKO3HM2cjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
5165
+ const treeLayoutPatterns = islandValues ? _chunk4B6YJ5DScjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
5165
5166
  layoutRoutes.forEach((layout, index) => {
5166
5167
  const relativePath = toImportPath(layout.modulePath);
5167
5168
  const treeLayout = treeLayoutPatterns.has(layout.pattern);
5168
5169
  const rendersOnClient = treeLayout || !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some(
5169
- (pattern) => _chunkNEKO3HM2cjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
5170
+ (pattern) => _chunk4B6YJ5DScjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
5170
5171
  );
5171
5172
  if (rendersOnClient && !treeLayout) {
5172
5173
  layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
@@ -5247,7 +5248,7 @@ function isFarmDocsPath() {
5247
5248
  docsAdapterUI,
5248
5249
  docsConfigModule,
5249
5250
  // Config resolution keeps an adapter to its UI's renderer, so this is the UI's renderer too.
5250
- _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
5251
+ _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
5251
5252
  );
5252
5253
  if (clientPages.length === 0 && clientRouteSlots.length === 0 && !providerClientCode.hasProviders) {
5253
5254
  return `
@@ -5271,7 +5272,7 @@ mountFarmDocsSearch();
5271
5272
 
5272
5273
  ${generateUniversalRouterStateRuntime()}
5273
5274
 
5274
- ${_chunkJHRJ5V2Fcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5275
+ ${_chunkOFVBMS6Icjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5275
5276
 
5276
5277
  // SPA Router for server-rendered pages (HTML swap)
5277
5278
  const spaRouter = {
@@ -5574,6 +5575,7 @@ installFarmLinkPrefetch();
5574
5575
  }
5575
5576
  });
5576
5577
  const isolatedHydrationEnabled = isolatedBoundaryModules.size > 0;
5578
+ const rendererIslands = isolatedHydrationEnabled && !islandValues && !_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) && _chunk3OKSEJ33cjs.getFarmRendererCapabilities.call(void 0, renderer).islands;
5577
5579
  const serverTreeEnabled = isolatedHydrationEnabled && clientPages.some((page) => page.serverTree);
5578
5580
  const islandsRuntimeExports = [
5579
5581
  "createFarmIsolatedHydrationRuntime",
@@ -5613,7 +5615,7 @@ function loadFarmRenderer() {
5613
5615
  }));
5614
5616
  }
5615
5617
  ` : "";
5616
- const isolatedHydrationImport = lazyRenderer ? "" : isolatedHydrationEnabled ? `${islandValues ? `import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement${hasServerTreeLayouts ? ", createFarmServerTreeLayout" : ""} } from "@farm.js/core/internal/islands-runtime";` : 'import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";'}${serverTreeEnabled && !islandValues ? '\nimport { createFarmServerTreeElement } from "@farm.js/core/internal/server-tree";' : ""}` : "";
5618
+ const isolatedHydrationImport = lazyRenderer ? "" : rendererIslands ? 'import { createFarmRendererIslandRuntime } from "@farm.js/core/internal/renderer-islands";' : isolatedHydrationEnabled ? `${islandValues ? `import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement${hasServerTreeLayouts ? ", createFarmServerTreeLayout" : ""} } from "@farm.js/core/internal/islands-runtime";` : 'import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";'}${serverTreeEnabled && !islandValues ? '\nimport { createFarmServerTreeElement } from "@farm.js/core/internal/server-tree";' : ""}` : "";
5617
5619
  const isolatedHydrationRuntime = isolatedHydrationEnabled ? `const farmIsolatedBoundaryLoaders = {
5618
5620
  ${Array.from(isolatedBoundaryModules.entries()).map(
5619
5621
  ([reference, modulePath]) => ` ${JSON.stringify(reference)}: () => import(${JSON.stringify(modulePath)}),`
@@ -5689,7 +5691,15 @@ const farmIsolatedHydrationRuntime = {
5689
5691
  endStream: function(root) {
5690
5692
  whenFarmIslandsRuntime(root, function(runtime) { runtime.endStream(root); });
5691
5693
  },
5692
- };` : `const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
5694
+ };` : rendererIslands ? `const farmIsolatedHydrationRuntime = createFarmRendererIslandRuntime({
5695
+ renderer: React,
5696
+ load: loadFarmIsolatedBoundary,
5697
+ schedule: scheduleFarmIslandHydration,
5698
+ });
5699
+
5700
+ // A hydrating layout keeps a page that doesn't hydrate as server HTML in a plain element. The
5701
+ // renderer's root never renders the page's islands, so the runtime starts them after each render.
5702
+ const FarmServerPage = "div";` : `const farmIsolatedHydrationRuntime = createFarmIsolatedHydrationRuntime({
5693
5703
  ReactRuntime: React,
5694
5704
  hydrateRoot,
5695
5705
  load: loadFarmIsolatedBoundary,
@@ -5707,7 +5717,14 @@ function disposeFarmIsolatedClientBoundaries(scope) {
5707
5717
  async function hydrateFarmIsolatedClientBoundaries(scope = document, signal) {
5708
5718
  await farmIsolatedHydrationRuntime.hydrate(scope, signal);
5709
5719
  }
5710
- ${serverTreeEnabled ? `
5720
+ ${rendererIslands ? `
5721
+ // After a hydrating layout renders another page: release the islands whose markup it replaced,
5722
+ // and start the new page's.
5723
+ async function hydrateFarmLayoutPageIslands(container) {
5724
+ farmIsolatedHydrationRuntime.prune();
5725
+ await hydrateFarmIsolatedClientBoundaries(container);
5726
+ }
5727
+ ` : ""}${serverTreeEnabled ? `
5711
5728
  /*farm-root-start*/
5712
5729
  // A server-tree page (an async page below a hydrating layout) rebuilds in the layout's root.
5713
5730
  async function createFarmServerTreePageElement(source, pathname) {
@@ -5726,7 +5743,7 @@ async function createFarmServerTreePageElement(source, pathname) {
5726
5743
  /*farm-root-end*/` : "\n/*farm-root-start*/\nasync function createFarmServerTreePageElement() { return null; }\n/*farm-root-end*/"}` : `/*farm-root-start*/
5727
5744
  async function createFarmServerTreePageElement() { return null; }
5728
5745
  /*farm-root-end*/`;
5729
- const routeClientGraphRuntime = isolatedHydrationEnabled ? `function wrapFarmRouteClientGraph(element) {
5746
+ const routeClientGraphRuntime = isolatedHydrationEnabled && !rendererIslands ? `function wrapFarmRouteClientGraph(element) {
5730
5747
  return wrapFarmIsolatedClientGraph(React, element);
5731
5748
  }` : `function wrapFarmRouteClientGraph(element) { return element; }`;
5732
5749
  clientRouteSlots.forEach((slot, index) => {
@@ -5795,7 +5812,7 @@ ${layoutRegistrations.join(",\n")}
5795
5812
  ${generateFarmClientRouteMatchSource({ lazyMatcher })}
5796
5813
 
5797
5814
  ${layoutComponentsRuntime}/*farm-root-start*/
5798
- ${_chunkJHRJ5V2Fcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5815
+ ${_chunkOFVBMS6Icjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5799
5816
  // Wrap a page element with applicable layouts
5800
5817
  function wrapWithLayouts(pageElement, pathname, params) {
5801
5818
  const layouts = getApplicableLayouts(pathname);
@@ -5830,7 +5847,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
5830
5847
  return React.createElement("div", props, pageElement);
5831
5848
  }
5832
5849
  let farmLastRouteState = null;
5833
- ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkJHRJ5V2Fcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5850
+ ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkOFVBMS6Icjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5834
5851
  function farmTreeLayoutsOf(pathname) {
5835
5852
  return getApplicableLayouts(pathname).filter(function(layout) {
5836
5853
  return layout.serverTree === true;
@@ -5945,7 +5962,7 @@ async function createMatchedHydrationRoute(matched, pathname, searchParams, navi
5945
5962
 
5946
5963
  if (!pageElement) return null;
5947
5964
  if (!hydrateLayouts) {
5948
- ${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, renderer) ? "if (hydrationContainer) pageElement = restorePagePosition(React, hydrationContainer, pageElement);" : ""}
5965
+ ${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, renderer) ? "if (hydrationContainer) pageElement = restorePagePosition(React, hydrationContainer, pageElement);" : ""}
5949
5966
  return createFarmRouteState(pageElement, pathname, params, false);
5950
5967
  }
5951
5968
  if (matched.route.pageShouldHydrate) {
@@ -5974,7 +5991,7 @@ function createFarmRouteState(page, pathname, params, includeLayouts) {
5974
5991
 
5975
5992
  function hydrateFarmRoute(container, route) {
5976
5993
  farmLastRouteState = route;
5977
- ${_chunkNGTZHWBGcjs.getFarmRendererCapabilities.call(void 0, renderer).hydrationFallback ? `try {
5994
+ ${_chunk3OKSEJ33cjs.getFarmRendererCapabilities.call(void 0, renderer).hydrationFallback ? `try {
5978
5995
  ${hydrateFarmRouteCall}
5979
5996
  } catch (error) {
5980
5997
  // The renderer opted in with capabilities.hydrationFallback, as development always does. The
@@ -6344,8 +6361,7 @@ ${lazyRenderer ? ` // React DOM and islx load with what first renders or hydrat
6344
6361
  ${isolatedHydrationEnabled ? `// Not cancelled with the page: a navigation disposes the islands it removes, and one in a
6345
6362
  // layout it keeps still waits for its trigger, as on a page of islands only.
6346
6363
  const isolatedHydration =
6347
- !hasHydratableLayout(pathname) &&
6348
- document.querySelector('f-island[src]')
6364
+ ${rendererIslands ? "" : "!hasHydratableLayout(pathname) &&\n "}document.querySelector('f-island[src]')
6349
6365
  ? hydrateFarmIsolatedClientBoundaries(document)
6350
6366
  : Promise.resolve();
6351
6367
  await Promise.all([pageHydration, isolatedHydration]);` : "await pageHydration;"}
@@ -6465,7 +6481,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
6465
6481
  return true;
6466
6482
  }` : ""}
6467
6483
 
6468
- ${_chunkJHRJ5V2Fcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6484
+ ${_chunkOFVBMS6Icjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6469
6485
 
6470
6486
  function activateNavigationScripts(root) {
6471
6487
  for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
@@ -6571,7 +6587,7 @@ function getLayoutShell(root, patterns, index) {
6571
6587
  return shell.innerHTML;
6572
6588
  }
6573
6589
 
6574
- ${islandValues ? _chunkJHRJ5V2Fcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6590
+ ${islandValues ? _chunkOFVBMS6Icjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6575
6591
  // A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
6576
6592
  if (refresh) revealFarmStreamedContent(nextRoot);
6577
6593
  const currentPatterns = getLayoutPatterns(currentRoot);
@@ -7014,7 +7030,7 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
7014
7030
  if (routeState) {
7015
7031
  farmRoot.renderFarmRoute(reactRoot, routeState);
7016
7032
  window.__FARM_ROUTE_SLOTS__ = nextRouteSlots;
7017
- setFarmHydrated();
7033
+ setFarmHydrated();${rendererIslands ? "\n await hydrateFarmLayoutPageIslands(currentRoot);" : ""}
7018
7034
  return true;
7019
7035
  }
7020
7036
  }
@@ -7091,7 +7107,7 @@ ${islandValues ? ` // Islands mode: navigations name the layouts on screen, and
7091
7107
  console.error("[Farm.js] Hydrating the page's islands failed:", error);
7092
7108
  });
7093
7109
  }
7094
- }` : `if (matched.route.hasIsolatedClientBoundaries && !hydrateLayouts) {
7110
+ }` : `if (matched.route.hasIsolatedClientBoundaries${rendererIslands ? "" : " && !hydrateLayouts"}) {
7095
7111
  await hydrateFarmIsolatedClientBoundaries(
7096
7112
  isolatedHydrationScope,
7097
7113
  navigation.controller.signal,
@@ -7261,7 +7277,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7261
7277
  const hasScopedPostcssConfig = hasProjectPostcssConfig(root);
7262
7278
  let postcssConfigDir;
7263
7279
  let tailwindVitePlugin = void 0;
7264
- const rendererVitePlugins = await _chunkNGTZHWBGcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
7280
+ const rendererVitePlugins = await _chunk3OKSEJ33cjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
7265
7281
  ssr: true,
7266
7282
  buildLifetime: rendererBuildLifetime
7267
7283
  });
@@ -7378,7 +7394,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7378
7394
  }))
7379
7395
  );
7380
7396
  const instrumentationPath = _chunk3BTN3NP7cjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
7381
- const notFoundPath = _chunkJHRJ5V2Fcjs.resolveFarmNotFoundComponentPath.call(void 0,
7397
+ const notFoundPath = _chunkOFVBMS6Icjs.resolveFarmNotFoundComponentPath.call(void 0,
7382
7398
  config,
7383
7399
  appDirs,
7384
7400
  routeManager.getRendererNotFoundPath()
@@ -7404,8 +7420,8 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7404
7420
  );
7405
7421
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
7406
7422
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _131 => _131.mdx, 'optionalAccess', _132 => _132.components]));
7407
- const hasMiddlewareConfig = _chunkNEKO3HM2cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7408
- const hasRouteContextConfig = _chunk55UJGUBPcjs.hasCustomFarmRouteContext.call(void 0, config);
7423
+ const hasMiddlewareConfig = _chunk4B6YJ5DScjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7424
+ const hasRouteContextConfig = _chunkBOEDYXAXcjs.hasCustomFarmRouteContext.call(void 0, config);
7409
7425
  const hasServerRuntimePlugins = _chunkDMSXZNQRcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
7410
7426
  const hasPluginRoutes = hasFarmPluginRoutes(config);
7411
7427
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
@@ -7417,7 +7433,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7417
7433
  );
7418
7434
  if (_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
7419
7435
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
7420
- _chunkLN6FAYNBcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7436
+ _chunkUSMRAC72cjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7421
7437
  config.docs,
7422
7438
  { root, srcDir: config.srcDir },
7423
7439
  (pathname) => adapterGuardedPaths.has(pathname),
@@ -7427,7 +7443,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7427
7443
  const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
7428
7444
  const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _133 => _133.docs, 'optionalAccess', _134 => _134.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
7429
7445
  farmDocsCspNonceMarker,
7430
- async () => _optionalChain([config, 'access', _135 => _135.docs, 'access', _136 => _136.adapter, 'optionalAccess', _137 => _137.server]) ? await _chunkLN6FAYNBcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7446
+ async () => _optionalChain([config, 'access', _135 => _135.docs, 'access', _136 => _136.adapter, 'optionalAccess', _137 => _137.server]) ? await _chunkUSMRAC72cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7431
7447
  root,
7432
7448
  srcDir: config.srcDir,
7433
7449
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -7487,7 +7503,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7487
7503
  (image) => image.sourceType === "module"
7488
7504
  );
7489
7505
  const externalMetadataImageRuntime = useExternalMetadataImageRuntime && !omitCoreMetadataImageRuntime ? ["@vercel/og"] : [];
7490
- const rendererOptionalExternals = _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? [] : [
7506
+ const rendererOptionalExternals = _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? [] : [
7491
7507
  "react",
7492
7508
  "react/jsx-runtime",
7493
7509
  "react/jsx-dev-runtime",
@@ -7594,7 +7610,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7594
7610
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _143 => _143.env, 'optionalAccess', _144 => _144.public]) || {})
7595
7611
  },
7596
7612
  plugins: [
7597
- _chunkJHRJ5V2Fcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7613
+ _chunkOFVBMS6Icjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7598
7614
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
7599
7615
  ...rendererVitePlugins,
7600
7616
  ...config.vite.plugins || [],
@@ -7626,7 +7642,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7626
7642
  },
7627
7643
  pluginManager
7628
7644
  ),
7629
- _chunkEFI6QWBQcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7645
+ _chunkEBSL5TW7cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7630
7646
  ...hasRuntimeConfigModule ? [
7631
7647
  farmStripPlatformConfigPlugin(
7632
7648
  [
@@ -7638,7 +7654,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7638
7654
  {
7639
7655
  name: "farm-virtual-ssr-entry",
7640
7656
  resolveId: {
7641
- filter: { id: _chunkJHRJ5V2Fcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7657
+ filter: { id: _chunkOFVBMS6Icjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7642
7658
  handler(id) {
7643
7659
  if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
7644
7660
  return virtualEntryId;
@@ -7647,7 +7663,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7647
7663
  }
7648
7664
  },
7649
7665
  load: {
7650
- filter: { id: _chunkJHRJ5V2Fcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7666
+ filter: { id: _chunkOFVBMS6Icjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7651
7667
  handler(id) {
7652
7668
  if (id === virtualEntryId) {
7653
7669
  return virtualEntryCode;
@@ -7679,7 +7695,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7679
7695
  resolve: {
7680
7696
  alias: [
7681
7697
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
7682
- ...Object.entries(_chunkJHRJ5V2Fcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7698
+ ...Object.entries(_chunkOFVBMS6Icjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7683
7699
  ([find, replacement]) => ({ find, replacement })
7684
7700
  )
7685
7701
  ],
@@ -7687,7 +7703,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7687
7703
  dedupe: [...config.renderer.dedupe || []]
7688
7704
  }
7689
7705
  };
7690
- await viteBuild(_chunkJHRJ5V2Fcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7706
+ await viteBuild(_chunkOFVBMS6Icjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7691
7707
  } finally {
7692
7708
  if (postcssConfigDir) {
7693
7709
  try {
@@ -7731,7 +7747,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
7731
7747
  };
7732
7748
  return _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, config.docs).flatMap(
7733
7749
  (docsRoot) => _chunkHR5GU4UUcjs.discoverFarmDocsPages.call(void 0, _chunkHR5GU4UUcjs.resolveFarmDocsContentDir.call(void 0, docsRoot, options), docsRoot)
7734
- ).flatMap((page) => [page.href, _chunkHR5GU4UUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkNEKO3HM2cjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
7750
+ ).flatMap((page) => [page.href, _chunkHR5GU4UUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunk4B6YJ5DScjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
7735
7751
  }
7736
7752
  function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
7737
7753
  const llmsTxt = _optionalChain([agent, 'optionalAccess', _147 => _147.llmsTxt]);
@@ -8121,7 +8137,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
8121
8137
  `.trim();
8122
8138
  }
8123
8139
  function generateFarmRendererAppSetupServerCode(config) {
8124
- const appSetupPath = _chunkNGTZHWBGcjs.resolveFarmRendererAppSetup.call(void 0, config.root || process.cwd(), config.renderer);
8140
+ const appSetupPath = _chunk3OKSEJ33cjs.resolveFarmRendererAppSetup.call(void 0, config.root || process.cwd(), config.renderer);
8125
8141
  if (!appSetupPath) return "";
8126
8142
  return `
8127
8143
  import __farmAppSetup from ${JSON.stringify(_chunk7U4XF76Rcjs.toPosixPath.call(void 0, appSetupPath))};
@@ -8131,14 +8147,14 @@ if (typeof ReactDOMServer.configureApp !== "function") {
8131
8147
  ReactDOMServer.configureApp(__farmAppSetup);`;
8132
8148
  }
8133
8149
  function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlots, errorRoutes, metadataImageRoutes, applicationMetadataRoutes, middlewareRoutes, redirectRoutes, configuredRewriteRoutes, configuredHeaderRoutes, openAPIReference, notFoundPath, instrumentationPath, config, farmDocsPrecompiledManifest, configModulePath, hasServerRuntimeIntegrations, hasRuntimeIntegrationConfig, hasConfiguredRuntimePlugins, hasServerRuntimePlugins, preset, i18nCatalogs, isolatedClientBoundaryModules, hydrationPlanCache, mobileShellLoadingRoutes = [], farmDocsAnalyticsPages = []) {
8134
- const farmRendererDisabled = _chunkNGTZHWBGcjs.isFarmRendererDisabled.call(void 0, config.renderer);
8150
+ const farmRendererDisabled = _chunk3OKSEJ33cjs.isFarmRendererDisabled.call(void 0, config.renderer);
8135
8151
  const searchPreserveRoutes = pageRoutes.flatMap(
8136
8152
  (route) => route.searchPreserve ? [route.searchPreserve] : []
8137
8153
  );
8138
8154
  const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
8139
- const farmIslandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _161 => _161.experimental, 'optionalAccess', _162 => _162.serverComponents])) === "islands";
8140
- const farmRendererActions = _chunkJHRJ5V2Fcjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
8141
- const farmClientBoot = _chunkJHRJ5V2Fcjs.canBootFarmIslandsClient.call(void 0, config);
8155
+ const farmIslandsMode = _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _161 => _161.experimental, 'optionalAccess', _162 => _162.serverComponents])) === "islands";
8156
+ const farmRendererActions = _chunkOFVBMS6Icjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
8157
+ const farmClientBoot = _chunkOFVBMS6Icjs.canBootFarmIslandsClient.call(void 0, config);
8142
8158
  const farmMobileClient = shouldBuildFarmMobileClient(config);
8143
8159
  const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
8144
8160
  const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) !== "edge";
@@ -8152,7 +8168,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
8152
8168
  const servesAiCatalog = _optionalChain([config, 'access', _171 => _171.agent, 'optionalAccess', _172 => _172.aiCatalog]) !== false;
8153
8169
  const hasPluginRuntime = hasRuntimeIntegrationConfig || hasServerRuntimePlugins;
8154
8170
  const hasInfraAnalyticsRuntime = config.analytics !== false && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
8155
- const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunkOM6JIIJUcjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
8171
+ const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunkZ37PDUJRcjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
8156
8172
  const hasPrecompiledDocs = Boolean(farmDocsPrecompiledManifest);
8157
8173
  const adapterOwnsDocsRuntime = _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs);
8158
8174
  if (_optionalChain([config, 'access', _173 => _173.docs, 'optionalAccess', _174 => _174.enabled]) && _optionalChain([config, 'access', _175 => _175.docs, 'access', _176 => _176.roots, 'optionalAccess', _177 => _177.length]) && !adapterOwnsDocsRuntime) {
@@ -8162,13 +8178,14 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
8162
8178
  }
8163
8179
  const docsConfigModulePath = adapterOwnsDocsRuntime && !hasPrecompiledDocs && config.docs.configPath && !config.docs.configPath.endsWith(".json") ? config.docs.configPath : void 0;
8164
8180
  const adapterHandler = generateFarmDocsAdapterHandlerArguments(config.docs, docsConfigModulePath);
8165
- const hasIsolatedClientGraphRuntime = _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) && isolatedClientBoundaryModules.size > 0;
8166
- const rendererStreamingCapabilities = _chunkNGTZHWBGcjs.getFarmRendererStreamingCapabilitiesForRuntime.call(void 0,
8181
+ const hasIsolatedClientGraphRuntime = _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) && isolatedClientBoundaryModules.size > 0;
8182
+ const hasRendererIslandsGraph = isolatedClientBoundaryModules.size > 0 && _chunkMAPHNGTFcjs.usesFarmRendererIslands.call(void 0, config);
8183
+ const rendererStreamingCapabilities = _chunk3OKSEJ33cjs.getFarmRendererStreamingCapabilitiesForRuntime.call(void 0,
8167
8184
  config.renderer,
8168
8185
  _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset)
8169
8186
  );
8170
- const hasReactSyncRender = _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer);
8171
- const rendererServerImports = _chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? `import * as React from "react";
8187
+ const hasReactSyncRender = _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer);
8188
+ const rendererServerImports = _chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? `import * as React from "react";
8172
8189
  import * as ReactDOMServer from "react-dom/server";
8173
8190
  import { markPagePosition, markLayoutPosition } from "@farm.js/core/internal/production-runtime";${hasIsolatedClientGraphRuntime ? farmIslandsMode ? '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph, renderFarmServerTreePage, renderFarmServerTreeLayout, withFarmIslandsRender } from "@farm.js/core/internal/islands-runtime";' : '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";\nimport { renderFarmServerTreePage } from "@farm.js/core/internal/server-tree";' : ""}` : (
8174
8191
  // The renderer contract is the server module's named exports, which the development
@@ -8201,6 +8218,18 @@ function renderFarmRouteServerTree(element, extra) {
8201
8218
  isolate: isolateFarmRouteServerPage,${farmIslandsMode ? "\n values: true," : ""}
8202
8219
  ...extra,
8203
8220
  });
8221
+ }` : hasRendererIslandsGraph ? `function wrapFarmRouteClientGraph(element) {
8222
+ return typeof ReactDOMServer.wrapClientGraph === "function" ? ReactDOMServer.wrapClientGraph(element) : element;
8223
+ }
8224
+
8225
+ function isolateFarmRouteServerPage(element) {
8226
+ return typeof ReactDOMServer.isolateServerPageGraph === "function" ? ReactDOMServer.isolateServerPageGraph(element) : element;
8227
+ }
8228
+
8229
+ function renderFarmRouteServerTree(element, extra) { return element; }
8230
+
8231
+ function renderFarmServerTreeLayout(Layout, props, outlets) {
8232
+ return React.createElement(Layout, { ...props, ...outlets });
8204
8233
  }` : `function wrapFarmRouteClientGraph(element) { return element; }
8205
8234
 
8206
8235
  function isolateFarmRouteServerPage(element) { return element; }
@@ -8214,18 +8243,18 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8214
8243
  (image) => image.sourceType === "module"
8215
8244
  );
8216
8245
  const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
8217
- const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkNEKO3HM2cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
8246
+ const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk4B6YJ5DScjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
8218
8247
  const farmDocsFontAssets = _optionalChain([config, 'access', _178 => _178.docs, 'optionalAccess', _179 => _179.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
8219
8248
  const integrationProviders = _chunkB3HQTGXScjs.getIntegrationProviders.call(void 0, config.integrations);
8220
8249
  const renderedIntegrationProviders = integrationProviders.filter(
8221
8250
  (provider) => provider.component || provider.type === "clerk"
8222
8251
  );
8223
- if (renderedIntegrationProviders.length > 0 && !_chunkNGTZHWBGcjs.getFarmRendererCapabilities.call(void 0, config.renderer).functionComponents) {
8252
+ if (renderedIntegrationProviders.length > 0 && !_chunk3OKSEJ33cjs.getFarmRendererCapabilities.call(void 0, config.renderer).functionComponents) {
8224
8253
  throw new Error(
8225
8254
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
8226
8255
  );
8227
8256
  }
8228
- const providerServerModules = _chunkJHRJ5V2Fcjs.generateFarmIntegrationProviderServerModules.call(void 0,
8257
+ const providerServerModules = _chunkOFVBMS6Icjs.generateFarmIntegrationProviderServerModules.call(void 0,
8229
8258
  renderedIntegrationProviders,
8230
8259
  config.root,
8231
8260
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -8245,22 +8274,22 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8245
8274
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
8246
8275
  (provider) => provider.supportsIsolatedHydration !== true
8247
8276
  );
8248
- const isolatedHydrationMode = _chunkEFI6QWBQcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
8277
+ const isolatedHydrationMode = _chunkEBSL5TW7cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
8249
8278
  _optionalChain([config, 'access', _182 => _182.experimental, 'optionalAccess', _183 => _183.isolatedClientHydration]),
8250
8279
  {
8251
- serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _184 => _184.experimental, 'optionalAccess', _185 => _185.serverComponents])) === "rsc",
8280
+ serverComponents: _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _184 => _184.experimental, 'optionalAccess', _185 => _185.serverComponents])) === "rsc",
8252
8281
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
8253
8282
  }
8254
8283
  );
8255
- const hydrationPlanOptions = _chunkEFI6QWBQcjs.getFarmClientHydrationPlanOptions.call(void 0,
8284
+ const hydrationPlanOptions = _chunkEBSL5TW7cjs.getFarmClientHydrationPlanOptions.call(void 0,
8256
8285
  config.renderer,
8257
8286
  Boolean(unsupportedIntegrationProvider)
8258
8287
  );
8259
8288
  const pageHydrationPlanOptions = {
8260
8289
  ...hydrationPlanOptions,
8261
- serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _186 => _186.experimental, 'optionalAccess', _187 => _187.serverComponents])) === "islands"
8290
+ serverOwners: _chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _186 => _186.experimental, 'optionalAccess', _187 => _187.serverComponents])) === "islands"
8262
8291
  };
8263
- const { layoutHydrationPlans, pageHydrationPlans } = _chunkEFI6QWBQcjs.withFarmSourceSnapshot.call(void 0, () => {
8292
+ const { layoutHydrationPlans, pageHydrationPlans } = _chunkEBSL5TW7cjs.withFarmSourceSnapshot.call(void 0, () => {
8264
8293
  const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
8265
8294
  ...layout,
8266
8295
  hydration: getCachedClientModuleHydrationPlan(
@@ -8271,7 +8300,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8271
8300
  { ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
8272
8301
  )
8273
8302
  }));
8274
- const markdownPagePlan = _chunkEFI6QWBQcjs.createMarkdownPageHydrationPlanner.call(void 0,
8303
+ const markdownPagePlan = _chunkEBSL5TW7cjs.createMarkdownPageHydrationPlanner.call(void 0,
8275
8304
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
8276
8305
  config.root,
8277
8306
  isolatedHydrationMode,
@@ -8291,7 +8320,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8291
8320
  );
8292
8321
  return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
8293
8322
  });
8294
- _chunkEFI6QWBQcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
8323
+ _chunkEBSL5TW7cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
8295
8324
  layoutHydrationPlans.map((layout) => ({
8296
8325
  pattern: layout.pattern,
8297
8326
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -8300,10 +8329,10 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8300
8329
  pageRoutes.map((route) => ({
8301
8330
  // Compared by directory so a grouped layout applies only inside its group.
8302
8331
  pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
8303
- depth: _chunkNEKO3HM2cjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
8332
+ depth: _chunk4B6YJ5DScjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
8304
8333
  metadata: pageHydrationPlans.get(route.modulePath)
8305
8334
  })),
8306
- _chunkNEKO3HM2cjs.routeBoundaryCoversDirectory,
8335
+ _chunk4B6YJ5DScjs.routeBoundaryCoversDirectory,
8307
8336
  { serverOwners: pageHydrationPlanOptions.serverOwners }
8308
8337
  );
8309
8338
  const providerServerImports = [
@@ -8335,8 +8364,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8335
8364
  orderedPageRoutes.forEach((route, index) => {
8336
8365
  const varName = `pageRoute${index}`;
8337
8366
  if (_chunk26WP75W5cjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
8338
- const renderingDirective2 = _chunkHRH7OKBQcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8339
- const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkEFI6QWBQcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
8367
+ const renderingDirective2 = _chunkL3BSHASBcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8368
+ const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkEBSL5TW7cjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
8340
8369
  pageRegistrations.push(`
8341
8370
  {
8342
8371
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -8344,14 +8373,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8344
8373
  rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
8345
8374
  module: createFarmMarkdownRouteModule({
8346
8375
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
8347
- filePath: ${JSON.stringify(_chunkJHRJ5V2Fcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8376
+ filePath: ${JSON.stringify(_chunkOFVBMS6Icjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8348
8377
  components: farmMdxComponents,
8349
- config: farmMdxConfig,${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: React,"}
8378
+ config: farmMdxConfig,${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: React,"}
8350
8379
  }),
8351
8380
  markdownSource: {
8352
8381
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
8353
8382
  filePath: ${JSON.stringify(
8354
- _chunkJHRJ5V2Fcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8383
+ _chunkOFVBMS6Icjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8355
8384
  )},
8356
8385
  },
8357
8386
  }`);
@@ -8361,7 +8390,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8361
8390
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
8362
8391
  );
8363
8392
  const clientMetadata = pageHydrationPlans.get(route.modulePath);
8364
- const renderingDirective = _chunkHRH7OKBQcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8393
+ const renderingDirective = _chunkL3BSHASBcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8365
8394
  pageRegistrations.push(`
8366
8395
  {
8367
8396
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -8369,8 +8398,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8369
8398
  module: ${varName},
8370
8399
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
8371
8400
  clientModule: ${JSON.stringify(_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
8372
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkEFI6QWBQcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8373
- const rootStrategy = _chunkJHRJ5V2Fcjs.resolveFarmRouteRootStrategy.call(void 0,
8401
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkEBSL5TW7cjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8402
+ const rootStrategy = _chunkOFVBMS6Icjs.resolveFarmRouteRootStrategy.call(void 0,
8374
8403
  route,
8375
8404
  clientMetadata,
8376
8405
  layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
@@ -8383,13 +8412,13 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8383
8412
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
8384
8413
  ${route.source !== void 0 ? `markdownSource: {
8385
8414
  source: ${JSON.stringify(route.source)},
8386
- filePath: ${JSON.stringify(_chunkJHRJ5V2Fcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8415
+ filePath: ${JSON.stringify(_chunkOFVBMS6Icjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8387
8416
  },` : ""}
8388
8417
  }`);
8389
8418
  });
8390
8419
  const layoutImports = [];
8391
8420
  const layoutRegistrations = [];
8392
- const treeLayoutPatterns = farmIslandsMode ? _chunkNEKO3HM2cjs.getFarmServerTreeLayoutPatterns.call(void 0,
8421
+ const treeLayoutPatterns = farmIslandsMode ? _chunk4B6YJ5DScjs.getFarmServerTreeLayoutPatterns.call(void 0,
8393
8422
  layoutHydrationPlans.map((layout) => ({
8394
8423
  pattern: layout.pattern,
8395
8424
  shouldHydrate: layout.hydration.shouldHydrate,
@@ -8407,7 +8436,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8407
8436
  pattern: ${JSON.stringify(layout.pattern)},
8408
8437
  module: ${varName},
8409
8438
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
8410
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkJHRJ5V2Fcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8439
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkOFVBMS6Icjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8411
8440
  // isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
8412
8441
  clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
8413
8442
  }`);
@@ -8435,7 +8464,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8435
8464
  containerId: ${JSON.stringify(slot.containerId)},
8436
8465
  interception: ${JSON.stringify(slot.interception)},
8437
8466
  fallback: ${JSON.stringify(slot.fallback)},
8438
- hydrates: ${!farmIslandsMode || _chunkEFI6QWBQcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8467
+ hydrates: ${!farmIslandsMode || _chunkEBSL5TW7cjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8439
8468
  module: ${varName},
8440
8469
  }`);
8441
8470
  });
@@ -8446,12 +8475,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8446
8475
  errorImports.push(
8447
8476
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
8448
8477
  );
8449
- const groupScope = _chunkNEKO3HM2cjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
8478
+ const groupScope = _chunk4B6YJ5DScjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
8450
8479
  errorRegistrations.push(`
8451
8480
  {
8452
- pattern: ${JSON.stringify(_chunkNEKO3HM2cjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
8481
+ pattern: ${JSON.stringify(_chunk4B6YJ5DScjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
8453
8482
  groupScope: ${JSON.stringify(groupScope)},
8454
- directoryDepth: ${_chunkNEKO3HM2cjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
8483
+ directoryDepth: ${_chunk4B6YJ5DScjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
8455
8484
  module: ${varName},
8456
8485
  }`);
8457
8486
  });
@@ -8463,12 +8492,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8463
8492
  loadingImports.push(
8464
8493
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(loadingRoute.modulePath)};`
8465
8494
  );
8466
- const groupScope = _chunkNEKO3HM2cjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
8495
+ const groupScope = _chunk4B6YJ5DScjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
8467
8496
  loadingRegistrations.push(`
8468
8497
  {
8469
- pattern: ${JSON.stringify(_chunkNEKO3HM2cjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
8498
+ pattern: ${JSON.stringify(_chunk4B6YJ5DScjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
8470
8499
  groupScope: ${JSON.stringify(groupScope)},
8471
- directoryDepth: ${_chunkNEKO3HM2cjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
8500
+ directoryDepth: ${_chunk4B6YJ5DScjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
8472
8501
  module: ${varName},
8473
8502
  }`);
8474
8503
  });
@@ -8481,7 +8510,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8481
8510
  metadataImageImports.push(
8482
8511
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(image.modulePath)};`
8483
8512
  );
8484
- const component = !_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) && _chunkJHRJ5V2Fcjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _191 => _191.renderer, 'optionalAccess', _192 => _192.componentExtensions]), () => ( [])));
8513
+ const component = !_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) && _chunkOFVBMS6Icjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _191 => _191.renderer, 'optionalAccess', _192 => _192.componentExtensions]), () => ( [])));
8485
8514
  metadataImageRegistrations.push(`
8486
8515
  {
8487
8516
  pattern: ${JSON.stringify(image.pattern)},
@@ -8755,10 +8784,10 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
8755
8784
  );
8756
8785
  const nativeServerFns = (config.plugins || []).some(
8757
8786
  (plugin) => _optionalChain([plugin, 'optionalAccess', _212 => _212.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
8758
- ) ? _chunkA5BHJHDFcjs.collectFarmNativeServerFns.call(void 0, {
8787
+ ) ? _chunkYU6VL7H5cjs.collectFarmNativeServerFns.call(void 0, {
8759
8788
  root: config.root,
8760
8789
  srcDir: config.srcDir,
8761
- entries: _chunkA5BHJHDFcjs.findFarmNativeScreenFiles.call(void 0, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config))
8790
+ entries: _chunkYU6VL7H5cjs.findFarmNativeScreenFiles.call(void 0, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, config))
8762
8791
  }) : void 0;
8763
8792
  const integrationImports = `
8764
8793
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
@@ -8773,7 +8802,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
8773
8802
  ${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
8774
8803
  });` : ""}
8775
8804
  `;
8776
- const imageRuntime = _chunkJHRJ5V2Fcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8805
+ const imageRuntime = _chunkOFVBMS6Icjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8777
8806
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
8778
8807
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
8779
8808
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -8955,7 +8984,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
8955
8984
 
8956
8985
  function renderFarmDefault404Page() {
8957
8986
  return React.createElement(React.Fragment, null,
8958
- React.createElement("style", null, ${JSON.stringify(_chunkJHRJ5V2Fcjs.DEFAULT_NOT_FOUND_STYLES)}),
8987
+ React.createElement("style", null, ${JSON.stringify(_chunkOFVBMS6Icjs.DEFAULT_NOT_FOUND_STYLES)}),
8959
8988
  React.createElement("main", {
8960
8989
  className: "farm-default-not-found",
8961
8990
  "aria-labelledby": "farm-default-not-found-title",
@@ -9051,7 +9080,7 @@ function wrapWithFarmIntegrationProviders(element) {
9051
9080
  // providers, so the server renders them inside it too. React lines an island up with its tree
9052
9081
  // position instead, and its providers render no markup.
9053
9082
  function wrapFarmIslandIntegrationProviders(element) {
9054
- return ${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? "element" : "wrapWithFarmIntegrationProviders(element)"};
9083
+ return ${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? "element" : "wrapWithFarmIntegrationProviders(element)"};
9055
9084
  }
9056
9085
  const serverRuntimeIntegrations = Object.fromEntries(
9057
9086
  Object.entries(configuredIntegrations).filter(([, integration]) =>
@@ -9128,7 +9157,7 @@ ${_optionalChain([config, 'access', _222 => _222.agent, 'optionalAccess', _223 =
9128
9157
  // to the build.
9129
9158
  const farmNoindexPreview = resolveFarmPreviewDeployment(
9130
9159
  globalThis.process?.env,
9131
- ${JSON.stringify(_chunkIABI62FHcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
9160
+ ${JSON.stringify(_chunk57EEWWUScjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
9132
9161
  );` : ""}
9133
9162
  const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
9134
9163
  const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
@@ -9239,7 +9268,7 @@ const farmDocsModulePreloadPaths = farmDocsModulePreloads
9239
9268
  }
9240
9269
  : undefined;
9241
9270
  ${adapterOwnsDocsRuntime && !hasPrecompiledDocs ? `// The renderer contract's server exports, for a docs UI that builds its pages with them.
9242
- const farmDocsAppRenderer = ${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? '{ name: "react", createElement: React.createElement, Fragment: React.Fragment, renderToString: ReactDOMServer.renderToString }' : "__farmRendererServer"};
9271
+ const farmDocsAppRenderer = ${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? '{ name: "react", createElement: React.createElement, Fragment: React.Fragment, renderToString: ReactDOMServer.renderToString }' : "__farmRendererServer"};
9243
9272
  ` : ""}const farmDocsHandler = ${_optionalChain([config, 'access', _231 => _231.docs, 'optionalAccess', _232 => _232.enabled]) ? hasPrecompiledDocs ? "farmDocsPrecompiledRuntime.handleDocsRequest" : adapterOwnsDocsRuntime ? `${adapterHandler.factory}(${adapterHandler.config}, {
9244
9273
  rootDir: farmDocsRuntimeRoot,
9245
9274
  // A production build's content cannot change, so the adapter reads its
@@ -9264,7 +9293,7 @@ const farmDocsAppRenderer = ${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, con
9264
9293
  registerMCPServer: registerFarmMCPServer,
9265
9294
  // A page built with this keeps its HTML string, so the preload budget and the response
9266
9295
  // writer use it instead of reading and re-encoding the body. Older adapters ignore it.
9267
- createHtmlResponse: farmOwnedHtmlResponse,${_chunkLN6FAYNBcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
9296
+ createHtmlResponse: farmOwnedHtmlResponse,${_chunkUSMRAC72cjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
9268
9297
  // The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
9269
9298
  // asks about any path its own content lists, so the guards decide here, not a page list.
9270
9299
  isPathGuarded: (pathname) =>
@@ -9325,12 +9354,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
9325
9354
  // runtime request.
9326
9355
  const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
9327
9356
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
9328
- ${_optionalChain([config, 'access', _235 => _235.agent, 'optionalAccess', _236 => _236.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkWCSBYQOTcjs.resolveFarmApiCatalogInput.call(void 0, config))};
9357
+ ${_optionalChain([config, 'access', _235 => _235.agent, 'optionalAccess', _236 => _236.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunk22BTYPIXcjs.resolveFarmApiCatalogInput.call(void 0, config))};
9329
9358
  ` : ""}${_optionalChain([config, 'access', _237 => _237.agent, 'optionalAccess', _238 => _238.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
9330
- _chunkWCSBYQOTcjs.resolveFarmAppManifestInput.call(void 0, config, {
9359
+ _chunk22BTYPIXcjs.resolveFarmAppManifestInput.call(void 0, config, {
9331
9360
  build: config.deploymentId,
9332
- packages: _chunkJHRJ5V2Fcjs.resolveFarmAppPackages.call(void 0, config.root),
9333
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkJHRJ5V2Fcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
9361
+ packages: _chunkOFVBMS6Icjs.resolveFarmAppPackages.call(void 0, config.root),
9362
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkOFVBMS6Icjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
9334
9363
  })
9335
9364
  )};
9336
9365
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -10118,7 +10147,7 @@ function peelFarmDocumentPrefix(markup) {
10118
10147
  let inner = markup.replace(/^\\s+/, "");
10119
10148
  let hoisted = "";
10120
10149
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
10121
- const hoistable = /${_chunkNEKO3HM2cjs.HOISTED_HEAD_ELEMENT.source}/i;
10150
+ const hoistable = /${_chunk4B6YJ5DScjs.HOISTED_HEAD_ELEMENT.source}/i;
10122
10151
  let match;
10123
10152
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
10124
10153
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -10147,7 +10176,7 @@ function opensFarmFullDocument(markup) {
10147
10176
  // them: its own head takes them. Matches the dev renderer's takeFarmHoistedHead.
10148
10177
  function takeFarmHoistedHead(markup) {
10149
10178
  if (opensFarmFullDocument(markup)) return { head: "", body: markup };
10150
- const hoistable = /${_chunkNEKO3HM2cjs.HOISTED_HEAD_ELEMENT.source}/i;
10179
+ const hoistable = /${_chunk4B6YJ5DScjs.HOISTED_HEAD_ELEMENT.source}/i;
10151
10180
  let head = "";
10152
10181
  let body = markup;
10153
10182
  let match;
@@ -10687,10 +10716,10 @@ async function handleMetadataImageRequest(request, routePathname) {
10687
10716
  path: match.pagePath,
10688
10717
  };
10689
10718
 
10690
- ${hasGeneratedMetadataImages ? `const value = await resolveFarmMetadataImageValue(imageModule, props${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? "" : ", {\n renderer: ReactDOMServer,\n component: image.component === true,\n }"});
10719
+ ${hasGeneratedMetadataImages ? `const value = await resolveFarmMetadataImageValue(imageModule, props${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? "" : ", {\n renderer: ReactDOMServer,\n component: image.component === true,\n }"});
10691
10720
  return createFarmMetadataImageResponse(value, imageModule, {
10692
10721
  method,
10693
- ifNoneMatch: request.headers.get("if-none-match"),${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: ReactDOMServer,"}
10722
+ ifNoneMatch: request.headers.get("if-none-match"),${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: ReactDOMServer,"}
10694
10723
  });` : 'throw new Error("Generated metadata image runtime is unavailable");'}
10695
10724
  } catch (error) {
10696
10725
  console.error("Metadata image render failed:", error);
@@ -10769,7 +10798,7 @@ function createFarmAgentRobotsResponse(request) {
10769
10798
  // its nearest layout's.
10770
10799
  const farmAgentGuardedPages = new Set(${JSON.stringify(
10771
10800
  pageRoutes.map((route) => route.pattern).filter(
10772
- (pattern) => !pattern.includes("[") && _chunkNEKO3HM2cjs.farmPathGuardCoversPage.call(void 0,
10801
+ (pattern) => !pattern.includes("[") && _chunk4B6YJ5DScjs.farmPathGuardCoversPage.call(void 0,
10773
10802
  {
10774
10803
  config: { middleware: config.middleware, integrations: config.integrations },
10775
10804
  middlewareRoutes
@@ -10824,7 +10853,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
10824
10853
  // aside for a page route that answers /mcp and for any MCP server published or
10825
10854
  // registered at runtime, such as the docs engine's.
10826
10855
  const farmDefaultMCPServer = ${JSON.stringify(
10827
- _chunkW53Z4WDIcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunk3CZ4MJHWcjs.FARM_VERSION)
10856
+ _chunkW53Z4WDIcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkCVZY4TLWcjs.FARM_VERSION)
10828
10857
  )};
10829
10858
  let farmDefaultMCPRouteFree;
10830
10859
  function getFarmDefaultMCPServer() {
@@ -11018,7 +11047,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
11018
11047
  // middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
11019
11048
  const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
11020
11049
  const farmPrerendering =
11021
- typeof process !== "undefined" && process.env?.${_chunkOM6JIIJUcjs.FARM_PRERENDER_ENV} === "1";
11050
+ typeof process !== "undefined" && process.env?.${_chunkZ37PDUJRcjs.FARM_PRERENDER_ENV} === "1";
11022
11051
  ` : ""}
11023
11052
  const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
11024
11053
  config: farmMiddlewareConfig,
@@ -11274,7 +11303,7 @@ ${hasInfraAnalyticsRuntime ? `
11274
11303
  // endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
11275
11304
  // labeled here; route.pattern keeps meaning the matched app route for plugins.
11276
11305
  const farmBuiltInRoutePaths = new Set(${JSON.stringify(
11277
- _chunkWCSBYQOTcjs.listFarmBuiltInRoutePaths.call(void 0, {
11306
+ _chunk22BTYPIXcjs.listFarmBuiltInRoutePaths.call(void 0, {
11278
11307
  agent: {
11279
11308
  ...config.agent,
11280
11309
  aiCatalog: servesAiCatalog,
@@ -12051,7 +12080,7 @@ ${hasServerRuntimeIntegrations ? `
12051
12080
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
12052
12081
  // public manifest, the same document for every request.
12053
12082
  if (
12054
- [${JSON.stringify(_chunkWCSBYQOTcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkWCSBYQOTcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
12083
+ [${JSON.stringify(_chunk22BTYPIXcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunk22BTYPIXcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
12055
12084
  normalizeRuntimePath(routePathname),
12056
12085
  )
12057
12086
  ) {
@@ -12063,7 +12092,7 @@ ${hasServerRuntimeIntegrations ? `
12063
12092
  ` : ""}
12064
12093
  ${_optionalChain([config, 'access', _269 => _269.agent, 'optionalAccess', _270 => _270.apiCatalog]) ? `
12065
12094
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
12066
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkWCSBYQOTcjs.FARM_API_CATALOG_PATH)}) {
12095
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunk22BTYPIXcjs.FARM_API_CATALOG_PATH)}) {
12067
12096
  return applyProductionMiddlewareHeaders(
12068
12097
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
12069
12098
  middlewareHeaders,
@@ -12623,7 +12652,7 @@ ${hasServerRuntimeIntegrations ? `
12623
12652
  pageElement,
12624
12653
  );
12625
12654
 
12626
- ${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) pageElement = markPagePosition(React, pageElement);" : ""}
12655
+ ${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) pageElement = markPagePosition(React, pageElement);" : ""}
12627
12656
  // Wrap with layouts (from innermost to outermost)
12628
12657
  // Layouts are sorted by depth (root first), so we process in reverse
12629
12658
  let wrappedElement = pageElement;
@@ -12697,7 +12726,7 @@ ${hasServerRuntimeIntegrations ? `
12697
12726
  wrappedElement = wrapFarmRouteClientGraph(wrappedElement);
12698
12727
  }
12699
12728
 
12700
- ${_chunkNGTZHWBGcjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) wrappedElement = markLayoutPosition(React, wrappedElement);" : ""}
12729
+ ${_chunk3OKSEJ33cjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) wrappedElement = markLayoutPosition(React, wrappedElement);" : ""}
12701
12730
  wrappedElement = wrapWithFarmIntegrationProviders(wrappedElement);
12702
12731
  return renderFarmElement(ReactDOMServer, wrappedElement, route.pattern, farmFlushToken);
12703
12732
  };
@@ -13893,9 +13922,9 @@ function getPhysicalPrerenderBypassReason(options) {
13893
13922
  if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
13894
13923
  return "rewrite";
13895
13924
  }
13896
- if (_chunkNEKO3HM2cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13897
- if (_chunkNEKO3HM2cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13898
- if (_chunk55UJGUBPcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13925
+ if (_chunk4B6YJ5DScjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13926
+ if (_chunk4B6YJ5DScjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13927
+ if (_chunkBOEDYXAXcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13899
13928
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
13900
13929
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
13901
13930
  if (_optionalChain([manifestEntry, 'optionalAccess', _290 => _290.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -13931,7 +13960,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
13931
13960
  }
13932
13961
  return pages2;
13933
13962
  }
13934
- const pages = await _chunkLN6FAYNBcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13963
+ const pages = await _chunkUSMRAC72cjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13935
13964
  if (!pages) {
13936
13965
  _chunk7U4XF76Rcjs.logger.warn(
13937
13966
  `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.`
@@ -13945,7 +13974,7 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
13945
13974
  return [];
13946
13975
  }
13947
13976
  try {
13948
- return await _chunkLN6FAYNBcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13977
+ return await _chunkUSMRAC72cjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13949
13978
  root,
13950
13979
  srcDir: config.srcDir,
13951
13980
  adapter: _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
@@ -13974,10 +14003,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13974
14003
  const nitroBuilder = nitroBuilderResult.value;
13975
14004
  const isVercel = preset === "vercel";
13976
14005
  const isCloudflareWorker = preset === "cloudflare-module";
13977
- const outputDir = _chunk55UJGUBPcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
14006
+ const outputDir = _chunkBOEDYXAXcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13978
14007
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
13979
14008
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
13980
- const imageRuntime = _chunkJHRJ5V2Fcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
14009
+ const imageRuntime = _chunkOFVBMS6Icjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13981
14010
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
13982
14011
  (image) => image.sourceType === "module"
13983
14012
  );
@@ -14033,7 +14062,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
14033
14062
  const edgeGuardedPrerenderRoutes = [];
14034
14063
  const addPrerenderRoute = (pathname) => {
14035
14064
  prerenderRoutes.push(pathname);
14036
- if (_chunkNEKO3HM2cjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
14065
+ if (_chunk4B6YJ5DScjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
14037
14066
  edgeGuardedPrerenderRoutes.push(pathname);
14038
14067
  }
14039
14068
  };
@@ -14453,7 +14482,7 @@ function toFarmNodeResponse(request, response) {
14453
14482
  varyFarmNitroCacheRules(_chunkIIHZ2BEEcjs.routeRulesToNitroRouteRules.call(void 0, config.routeRules), [
14454
14483
  ...config.md.enabled ? ["accept"] : [],
14455
14484
  ...shouldBuildFarmMobileClient(config) ? ["x-farm-shell"] : [],
14456
- ..._chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _301 => _301.experimental, 'optionalAccess', _302 => _302.serverComponents])) === "islands" ? ["f-layouts"] : []
14485
+ ..._chunk3OKSEJ33cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _301 => _301.experimental, 'optionalAccess', _302 => _302.serverComponents])) === "islands" ? ["f-layouts"] : []
14457
14486
  ]),
14458
14487
  config.basePath,
14459
14488
  _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, config.api)
@@ -14801,13 +14830,13 @@ function toFarmNodeResponse(request, response) {
14801
14830
  }
14802
14831
  if (prerenderRoutes.length > 0) {
14803
14832
  _chunk7U4XF76Rcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
14804
- const previousPrerender = process.env[_chunkOM6JIIJUcjs.FARM_PRERENDER_ENV];
14805
- process.env[_chunkOM6JIIJUcjs.FARM_PRERENDER_ENV] = "1";
14833
+ const previousPrerender = process.env[_chunkZ37PDUJRcjs.FARM_PRERENDER_ENV];
14834
+ process.env[_chunkZ37PDUJRcjs.FARM_PRERENDER_ENV] = "1";
14806
14835
  try {
14807
14836
  await nitroBuilder.prerender(nitroInstance);
14808
14837
  } finally {
14809
- if (previousPrerender === void 0) delete process.env[_chunkOM6JIIJUcjs.FARM_PRERENDER_ENV];
14810
- else process.env[_chunkOM6JIIJUcjs.FARM_PRERENDER_ENV] = previousPrerender;
14838
+ if (previousPrerender === void 0) delete process.env[_chunkZ37PDUJRcjs.FARM_PRERENDER_ENV];
14839
+ else process.env[_chunkZ37PDUJRcjs.FARM_PRERENDER_ENV] = previousPrerender;
14811
14840
  }
14812
14841
  }
14813
14842
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
@@ -15024,7 +15053,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
15024
15053
  config.basePath
15025
15054
  );
15026
15055
  const edgeMiddlewareRoutes = edgeMiddleware.middlewareRoutes.filter(
15027
- (route) => edgeMiddleware.guardedPages.some((pathname) => _chunkNEKO3HM2cjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
15056
+ (route) => edgeMiddleware.guardedPages.some((pathname) => _chunk4B6YJ5DScjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
15028
15057
  );
15029
15058
  if (edgeMiddlewareRoutes.length > 0) {
15030
15059
  await writeFarmVercelEdgeMiddlewareFunction({
@@ -15162,7 +15191,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
15162
15191
  try {
15163
15192
  await copyPackage("sharp", sharpRequire);
15164
15193
  if (!copiedPackages.has("sharp")) {
15165
- throw new Error(`Farm image optimization requires sharp. ${_chunkJHRJ5V2Fcjs.SHARP_INSTALL_HINT}`);
15194
+ throw new Error(`Farm image optimization requires sharp. ${_chunkOFVBMS6Icjs.SHARP_INSTALL_HINT}`);
15166
15195
  }
15167
15196
  } catch (error) {
15168
15197
  await fs5.rm(stageDir, { recursive: true, force: true });
@@ -15395,7 +15424,7 @@ async function createFarmProjectModuleSsrEnvironment() {
15395
15424
  // src/build/index.ts
15396
15425
  async function build(config, options = {}) {
15397
15426
  return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
15398
- () => _chunkEFI6QWBQcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
15427
+ () => _chunkEBSL5TW7cjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
15399
15428
  );
15400
15429
  }
15401
15430
  function createBuildTargetBaseline(config) {
@@ -15406,7 +15435,7 @@ function createBuildTargetBaseline(config) {
15406
15435
  preset,
15407
15436
  distDir,
15408
15437
  outputDir,
15409
- outputWasDerived: outputDir === _chunk55UJGUBPcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
15438
+ outputWasDerived: outputDir === _chunkBOEDYXAXcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
15410
15439
  };
15411
15440
  }
15412
15441
  function resolveBuildTargets(config, options, baseline) {
@@ -15415,8 +15444,8 @@ function resolveBuildTargets(config, options, baseline) {
15415
15444
  const distDir = config.distDir || ".farm";
15416
15445
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
15417
15446
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
15418
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunk55UJGUBPcjs.getDeployTargetForPreset.call(void 0, preset);
15419
- const outputDir = shouldRefreshDerivedOutput ? _chunk55UJGUBPcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
15447
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkBOEDYXAXcjs.getDeployTargetForPreset.call(void 0, preset);
15448
+ const outputDir = shouldRefreshDerivedOutput ? _chunkBOEDYXAXcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
15420
15449
  return {
15421
15450
  root,
15422
15451
  preset,
@@ -15424,7 +15453,7 @@ function resolveBuildTargets(config, options, baseline) {
15424
15453
  distDir,
15425
15454
  deployTarget,
15426
15455
  outputDir,
15427
- deployOutputDir: _chunk55UJGUBPcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
15456
+ deployOutputDir: _chunkBOEDYXAXcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
15428
15457
  };
15429
15458
  }
15430
15459
  async function buildWithProductionNodeEnv(inputConfig, options) {
@@ -15461,7 +15490,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15461
15490
  };
15462
15491
  config = {
15463
15492
  ...config,
15464
- images: _chunkJHRJ5V2Fcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
15493
+ images: _chunkOFVBMS6Icjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
15465
15494
  root: targets.root,
15466
15495
  preset: targets.preset
15467
15496
  })
@@ -15469,7 +15498,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15469
15498
  if (_optionalChain([config, 'access', _345 => _345.docs, 'optionalAccess', _346 => _346.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
15470
15499
  pluginManager.updateContext({ config });
15471
15500
  const { root, preset, srcDir, distDir, deployOutputDir } = targets;
15472
- _chunkEFI6QWBQcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkEFI6QWBQcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
15501
+ _chunkEBSL5TW7cjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkEBSL5TW7cjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
15473
15502
  _chunk7U4XF76Rcjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
15474
15503
  await pluginManager.setupPlugins();
15475
15504
  await pluginManager.runHookParallel("beforeBundle", {
@@ -15490,12 +15519,12 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15490
15519
  root,
15491
15520
  rendererBuild.signal
15492
15521
  );
15493
- const farmApp = _chunkJHRJ5V2Fcjs.createFarmApp.call(void 0, config, projectModuleServer);
15522
+ const farmApp = _chunkOFVBMS6Icjs.createFarmApp.call(void 0, config, projectModuleServer);
15494
15523
  if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
15495
15524
  await farmApp.initialize();
15496
15525
  const routeManager = farmApp.getRouteManager();
15497
15526
  const serverRenderer = farmApp.getServerRenderer();
15498
- const typeArtifacts = _chunkHRH7OKBQcjs.generateFarmTypeArtifacts.call(void 0, {
15527
+ const typeArtifacts = _chunkL3BSHASBcjs.generateFarmTypeArtifacts.call(void 0, {
15499
15528
  root,
15500
15529
  srcDir,
15501
15530
  layers: config.layers,
@@ -15596,11 +15625,11 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
15596
15625
  }
15597
15626
  async function createProjectModuleServer(createViteServer, config, root, buildLifetime) {
15598
15627
  const { farmNavigationPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
15599
- const rendererVitePlugins = await _chunkNGTZHWBGcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
15628
+ const rendererVitePlugins = await _chunk3OKSEJ33cjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
15600
15629
  ssr: true,
15601
15630
  buildLifetime
15602
15631
  });
15603
- const viteConfig = _chunkJHRJ5V2Fcjs.mergeFarmViteConfig.call(void 0,
15632
+ const viteConfig = _chunkOFVBMS6Icjs.mergeFarmViteConfig.call(void 0,
15604
15633
  {
15605
15634
  root,
15606
15635
  appType: "custom",
@@ -15612,12 +15641,12 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
15612
15641
  },
15613
15642
  plugins: [
15614
15643
  ...rendererVitePlugins,
15615
- _chunkJHRJ5V2Fcjs.farmFontImportsPlugin.call(void 0, {
15644
+ _chunkOFVBMS6Icjs.farmFontImportsPlugin.call(void 0, {
15616
15645
  root,
15617
15646
  basePath: config.basePath,
15618
15647
  publicDir: config.publicDir
15619
15648
  }),
15620
- _chunkEFI6QWBQcjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
15649
+ _chunkEBSL5TW7cjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
15621
15650
  // Route modules load here at build time (rendering config, prerendering): `server-only`
15622
15651
  // resolves as it does in the server build. Module-entry packages load pre-bundled, as in
15623
15652
  // `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
@@ -15633,7 +15662,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
15633
15662
  hmr: false
15634
15663
  },
15635
15664
  resolve: {
15636
- alias: _chunkJHRJ5V2Fcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
15665
+ alias: _chunkOFVBMS6Icjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
15637
15666
  dedupe: [...config.renderer.dedupe || []]
15638
15667
  },
15639
15668
  optimizeDeps: {
@@ -15711,7 +15740,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15711
15740
  farmNavigationPlugin(config.renderer),
15712
15741
  farmIslandContainersPlugin(config),
15713
15742
  farmPlugin(config, pluginManager),
15714
- _chunkEFI6QWBQcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15743
+ _chunkEBSL5TW7cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15715
15744
  ],
15716
15745
  mode: "production"
15717
15746
  });
@@ -15745,14 +15774,14 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15745
15774
  farmI18nClientBridgePlugin(),
15746
15775
  farmIslandContainersPlugin(config),
15747
15776
  farmPlugin(config, pluginManager),
15748
- _chunkEFI6QWBQcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15777
+ _chunkEBSL5TW7cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15749
15778
  ],
15750
15779
  mode: "production"
15751
15780
  });
15752
15781
  }
15753
15782
  function resolveLegacyPageEntry(config, root, srcDir) {
15754
15783
  const appDir = _path2.default.join(root, srcDir, "app");
15755
- for (const extension of _chunkNGTZHWBGcjs.getFarmRendererComponentExtensions.call(void 0, config.renderer)) {
15784
+ for (const extension of _chunk3OKSEJ33cjs.getFarmRendererComponentExtensions.call(void 0, config.renderer)) {
15756
15785
  const candidate = _path2.default.join(appDir, `page${extension}`);
15757
15786
  if (_fs.existsSync.call(void 0, candidate)) return candidate;
15758
15787
  }
@@ -15773,7 +15802,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15773
15802
  if (pluginManager) {
15774
15803
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
15775
15804
  }
15776
- const outputDir = _chunk55UJGUBPcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15805
+ const outputDir = _chunkBOEDYXAXcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15777
15806
  const serverOutputDir = _path2.default.join(outputDir, "server");
15778
15807
  const publicOutputDir = _path2.default.join(outputDir, "public");
15779
15808
  const { mkdir, cp } = await import("fs/promises");
@@ -15844,7 +15873,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15844
15873
  root,
15845
15874
  preset,
15846
15875
  distDir,
15847
- outputDir: _chunk55UJGUBPcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15876
+ outputDir: _chunkBOEDYXAXcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15848
15877
  });
15849
15878
  }
15850
15879
  }