@farm.js/core 0.1.38 → 0.1.39

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 (151) hide show
  1. package/dist/{agent-mcp-BwKlpnc7.d.mts → agent-mcp-BhneNPb4.d.mts} +1 -1
  2. package/dist/{agent-mcp-De1imoMS.d.ts → agent-mcp-HcTYQmNX.d.ts} +1 -1
  3. package/dist/agent-runtime.cjs +3 -3
  4. package/dist/agent-runtime.d.mts +1 -1
  5. package/dist/agent-runtime.d.ts +1 -1
  6. package/dist/agent-runtime.mjs +2 -2
  7. package/dist/api/route-manager.d.mts +3 -3
  8. package/dist/api/route-manager.d.ts +3 -3
  9. package/dist/api/runtime.d.mts +2 -2
  10. package/dist/api/runtime.d.ts +2 -2
  11. package/dist/api.d.mts +3 -3
  12. package/dist/api.d.ts +3 -3
  13. package/dist/{app-kT_QXTdx.d.ts → app-CMkoghtp.d.ts} +3 -3
  14. package/dist/{app-CFZt-srr.d.mts → app-DVzmmbNO.d.mts} +3 -3
  15. package/dist/app-markdown.d.mts +2 -2
  16. package/dist/app-markdown.d.ts +2 -2
  17. package/dist/{chunk-4E5QXOCL.cjs → chunk-5ULKUBIA.cjs} +6 -6
  18. package/dist/{chunk-TYMMBFN2.mjs → chunk-677THUVP.mjs} +1 -1
  19. package/dist/{chunk-CXEN47J3.mjs → chunk-73WX6PRY.mjs} +25 -0
  20. package/dist/{chunk-ZJD2PN6Z.mjs → chunk-75HN5IZ3.mjs} +12 -2
  21. package/dist/{chunk-L4DD7ODZ.cjs → chunk-A657YSP4.cjs} +2 -2
  22. package/dist/{chunk-YR2VBEMO.cjs → chunk-AS2VPMEE.cjs} +96 -96
  23. package/dist/{chunk-IBUQWVYA.mjs → chunk-ATSDUUFK.mjs} +11 -1
  24. package/dist/{chunk-TYJALEHQ.cjs → chunk-B5J2YVG7.cjs} +14 -14
  25. package/dist/{chunk-FWE7LEQC.cjs → chunk-BD3D7EZV.cjs} +4 -4
  26. package/dist/{chunk-7FPTZLKH.mjs → chunk-BFJTHYTN.mjs} +1 -1
  27. package/dist/{chunk-VU6AAZVY.cjs → chunk-BWIQR4DH.cjs} +13 -3
  28. package/dist/{chunk-XKVVMZP5.cjs → chunk-BXDJXFQG.cjs} +4 -4
  29. package/dist/{chunk-4IE345DM.cjs → chunk-CIOT4HGT.cjs} +2 -2
  30. package/dist/{chunk-DRLKAXDM.mjs → chunk-EGCTIS5F.mjs} +2 -2
  31. package/dist/{chunk-B6G5CKMC.mjs → chunk-GKBWWRBG.mjs} +3 -3
  32. package/dist/{chunk-Q3NXS4MU.cjs → chunk-HRETEZ2Z.cjs} +13 -3
  33. package/dist/{chunk-EMO6K4YY.cjs → chunk-HRSAQ23K.cjs} +7 -7
  34. package/dist/{chunk-TUBTR2OP.mjs → chunk-HYTZYOW2.mjs} +6 -6
  35. package/dist/{chunk-EKF7KDFD.mjs → chunk-KTSUBU2E.mjs} +2 -2
  36. package/dist/{chunk-KCQBAKIY.cjs → chunk-LMPAPBUA.cjs} +10 -10
  37. package/dist/{chunk-EK4QAEFZ.cjs → chunk-LZESP4IR.cjs} +25 -0
  38. package/dist/{chunk-HZFM2LWQ.mjs → chunk-P3PLW4FR.mjs} +34 -2
  39. package/dist/{chunk-KHKLMNI5.mjs → chunk-PVZE2JGJ.mjs} +1 -1
  40. package/dist/{chunk-N32CC42M.cjs → chunk-QG775BRV.cjs} +12 -12
  41. package/dist/{chunk-KKSTAEMY.cjs → chunk-QUCXCDE2.cjs} +1 -1
  42. package/dist/{chunk-JCKYH4LG.mjs → chunk-QYMZOOC5.mjs} +1 -1
  43. package/dist/{chunk-2DD4JMQC.cjs → chunk-RVXFINNS.cjs} +12 -12
  44. package/dist/{chunk-LI2F57NI.mjs → chunk-SOP2EAA6.mjs} +1 -1
  45. package/dist/{chunk-ND2CWPOD.mjs → chunk-TS4JHGUJ.mjs} +1 -1
  46. package/dist/{chunk-4GWRFP22.cjs → chunk-UPJLHLJU.cjs} +35 -3
  47. package/dist/{chunk-7PEP3BUT.mjs → chunk-VWBHM3F6.mjs} +1 -1
  48. package/dist/{chunk-TGFQVLLF.cjs → chunk-YFYUYWL7.cjs} +95 -95
  49. package/dist/{chunk-A3EAIURZ.mjs → chunk-YKZRDB5Z.mjs} +1 -1
  50. package/dist/{chunk-OCIEZME4.mjs → chunk-ZUPXLIGB.mjs} +8 -8
  51. package/dist/{client-plugins-DUrIYX9B.d.mts → client-plugins-CsCuCLBz.d.mts} +18 -0
  52. package/dist/{client-plugins-BvlNhGEB.d.ts → client-plugins-D0ke-Hc8.d.ts} +18 -0
  53. package/dist/client-plugins.d.mts +1 -1
  54. package/dist/client-plugins.d.ts +1 -1
  55. package/dist/client.cjs +4 -4
  56. package/dist/client.d.mts +5 -5
  57. package/dist/client.d.ts +5 -5
  58. package/dist/client.mjs +3 -3
  59. package/dist/config.d.mts +1 -1
  60. package/dist/config.d.ts +1 -1
  61. package/dist/{devtools-JYJNOLPQ.mjs → devtools-5AFIPVUJ.mjs} +3 -3
  62. package/dist/{devtools-VQWJANJV.cjs → devtools-LW4QQ5J3.cjs} +4 -4
  63. package/dist/docs.cjs +5 -5
  64. package/dist/docs.d.mts +2 -2
  65. package/dist/docs.d.ts +2 -2
  66. package/dist/docs.mjs +4 -4
  67. package/dist/index.cjs +18 -18
  68. package/dist/index.d.mts +13 -13
  69. package/dist/index.d.ts +13 -13
  70. package/dist/index.mjs +17 -17
  71. package/dist/integrations.cjs +3 -3
  72. package/dist/integrations.d.mts +1 -1
  73. package/dist/integrations.d.ts +1 -1
  74. package/dist/integrations.mjs +2 -2
  75. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  76. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  77. package/dist/internal/build-runtime.cjs +12 -12
  78. package/dist/internal/build-runtime.d.mts +3 -3
  79. package/dist/internal/build-runtime.d.ts +3 -3
  80. package/dist/internal/build-runtime.mjs +11 -11
  81. package/dist/internal/cli-runtime.cjs +5 -5
  82. package/dist/internal/cli-runtime.mjs +4 -4
  83. package/dist/internal/client-error-overlay.cjs +4 -4
  84. package/dist/internal/client-error-overlay.mjs +1 -1
  85. package/dist/internal/compression-runtime.d.mts +1 -1
  86. package/dist/internal/compression-runtime.d.ts +1 -1
  87. package/dist/internal/config-runtime.cjs +4 -4
  88. package/dist/internal/config-runtime.d.mts +2 -2
  89. package/dist/internal/config-runtime.d.ts +2 -2
  90. package/dist/internal/config-runtime.mjs +3 -3
  91. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  92. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  93. package/dist/internal/production-runtime.cjs +10 -8
  94. package/dist/internal/production-runtime.d.mts +9 -9
  95. package/dist/internal/production-runtime.d.ts +9 -9
  96. package/dist/internal/production-runtime.mjs +9 -7
  97. package/dist/markdown.d.mts +1 -1
  98. package/dist/markdown.d.ts +1 -1
  99. package/dist/middleware.cjs +5 -5
  100. package/dist/middleware.d.mts +3 -3
  101. package/dist/middleware.d.ts +3 -3
  102. package/dist/middleware.mjs +4 -4
  103. package/dist/navigation.cjs +5 -5
  104. package/dist/navigation.d.mts +4 -4
  105. package/dist/navigation.d.ts +4 -4
  106. package/dist/navigation.mjs +4 -4
  107. package/dist/plugin.cjs +8 -8
  108. package/dist/plugin.d.mts +1 -1
  109. package/dist/plugin.d.ts +1 -1
  110. package/dist/plugin.mjs +7 -7
  111. package/dist/{production-runtime-D2aMyzjr.d.ts → production-runtime-BaI3WHnV.d.ts} +1 -1
  112. package/dist/{production-runtime-BQ4_WLwQ.d.mts → production-runtime-DfRP0cV0.d.mts} +1 -1
  113. package/dist/query/client.cjs +6 -6
  114. package/dist/query/client.mjs +2 -2
  115. package/dist/{render-plan-25p4hrj4.d.ts → render-plan-CfIdJKAf.d.ts} +1 -1
  116. package/dist/{render-plan-DtkXMN8D.d.mts → render-plan-Dg8RBYFa.d.mts} +1 -1
  117. package/dist/renderer-client.cjs +5 -5
  118. package/dist/renderer-client.d.mts +3 -3
  119. package/dist/renderer-client.d.ts +3 -3
  120. package/dist/renderer-client.mjs +2 -2
  121. package/dist/{request-jF4jwx8f.d.ts → request-CEbHIIl4.d.ts} +1 -1
  122. package/dist/{request-DgCkIdcn.d.mts → request-DfE02G_A.d.mts} +1 -1
  123. package/dist/request.d.mts +2 -2
  124. package/dist/request.d.ts +2 -2
  125. package/dist/{route-rendering-CSBF78Ya.d.mts → route-rendering-BHyOfXjD.d.mts} +1 -1
  126. package/dist/{route-rendering-Bji6S6a_.d.ts → route-rendering-C4oHbv6C.d.ts} +1 -1
  127. package/dist/{router-B09Ui3Qm.d.mts → router-DwhA61SB.d.mts} +1 -1
  128. package/dist/{router-CPB9cXtG.d.ts → router-uRN_29Em.d.ts} +1 -1
  129. package/dist/routes.d.mts +1 -1
  130. package/dist/routes.d.ts +1 -1
  131. package/dist/{runtime-CM6E6yuI.d.mts → runtime-BEdHhN4C.d.mts} +1 -1
  132. package/dist/{runtime-EDMwLdjv.d.ts → runtime-COk03hmx.d.ts} +1 -1
  133. package/dist/server-plugins.d.mts +2 -2
  134. package/dist/server-plugins.d.ts +2 -2
  135. package/dist/server.cjs +25 -25
  136. package/dist/server.d.mts +7 -7
  137. package/dist/server.d.ts +7 -7
  138. package/dist/server.mjs +8 -8
  139. package/dist/{spa-router-B_N8XgVu.d.ts → spa-router-DrVOBVGg.d.ts} +2 -2
  140. package/dist/{spa-router-Cgimzfbi.d.mts → spa-router-w4aFOuyn.d.mts} +2 -2
  141. package/dist/testing.d.mts +1 -1
  142. package/dist/testing.d.ts +1 -1
  143. package/dist/{utils-DZciYXYl.d.mts → utils-BtYehqeU.d.mts} +1 -1
  144. package/dist/{utils-BNxAKAuT.d.ts → utils-Dhuqwmd2.d.ts} +1 -1
  145. package/dist/version.cjs +2 -2
  146. package/dist/version.mjs +1 -1
  147. package/dist/vite.cjs +8 -8
  148. package/dist/vite.d.mts +1 -1
  149. package/dist/vite.d.ts +1 -1
  150. package/dist/vite.mjs +7 -7
  151. package/package.json +1 -1
@@ -10,13 +10,13 @@ var _chunkWW46B6HAcjs = require('./chunk-WW46B6HA.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunk4E5QXOCLcjs = require('./chunk-4E5QXOCL.cjs');
13
+ var _chunk5ULKUBIAcjs = require('./chunk-5ULKUBIA.cjs');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
- var _chunk4IE345DMcjs = require('./chunk-4IE345DM.cjs');
19
+ var _chunkCIOT4HGTcjs = require('./chunk-CIOT4HGT.cjs');
20
20
 
21
21
 
22
22
 
@@ -44,7 +44,7 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
44
44
 
45
45
 
46
46
 
47
- var _chunkQ3NXS4MUcjs = require('./chunk-Q3NXS4MU.cjs');
47
+ var _chunkHRETEZ2Zcjs = require('./chunk-HRETEZ2Z.cjs');
48
48
 
49
49
 
50
50
  var _chunkKCMTCM6Icjs = require('./chunk-KCMTCM6I.cjs');
@@ -83,7 +83,7 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
83
83
 
84
84
 
85
85
 
86
- var _chunkYR2VBEMOcjs = require('./chunk-YR2VBEMO.cjs');
86
+ var _chunkAS2VPMEEcjs = require('./chunk-AS2VPMEE.cjs');
87
87
 
88
88
 
89
89
 
@@ -105,7 +105,7 @@ var _chunk5D2JIPLHcjs = require('./chunk-5D2JIPLH.cjs');
105
105
 
106
106
 
107
107
 
108
- var _chunk2DD4JMQCcjs = require('./chunk-2DD4JMQC.cjs');
108
+ var _chunkRVXFINNScjs = require('./chunk-RVXFINNS.cjs');
109
109
 
110
110
 
111
111
 
@@ -171,12 +171,12 @@ var _chunkSDOTRX3Vcjs = require('./chunk-SDOTRX3V.cjs');
171
171
 
172
172
 
173
173
 
174
- var _chunkVU6AAZVYcjs = require('./chunk-VU6AAZVY.cjs');
174
+ var _chunkBWIQR4DHcjs = require('./chunk-BWIQR4DH.cjs');
175
175
 
176
176
 
177
177
 
178
178
 
179
- var _chunkKCQBAKIYcjs = require('./chunk-KCQBAKIY.cjs');
179
+ var _chunkLMPAPBUAcjs = require('./chunk-LMPAPBUA.cjs');
180
180
 
181
181
 
182
182
  var _chunkRWFLWR5Jcjs = require('./chunk-RWFLWR5J.cjs');
@@ -206,7 +206,7 @@ var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
206
206
  var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
207
207
 
208
208
 
209
- var _chunkKKSTAEMYcjs = require('./chunk-KKSTAEMY.cjs');
209
+ var _chunkQUCXCDE2cjs = require('./chunk-QUCXCDE2.cjs');
210
210
 
211
211
 
212
212
  var _chunkC5GUTBZKcjs = require('./chunk-C5GUTBZK.cjs');
@@ -356,7 +356,7 @@ async function compileFarmDocsManifest(docs, options) {
356
356
  globalStylesheetHref: options.globalStylesheetHref,
357
357
  isPathGuarded: options.isPathGuarded
358
358
  });
359
- const apiHandler = _chunk4IE345DMcjs.createFarmDocsAPIHandler.call(void 0, {
359
+ const apiHandler = _chunkCIOT4HGTcjs.createFarmDocsAPIHandler.call(void 0, {
360
360
  rootDir: options.root,
361
361
  srcDir: options.srcDir,
362
362
  docs,
@@ -1518,7 +1518,7 @@ async function findFarmConfigPath(root) {
1518
1518
  _chunkS3JO3N4Hcjs.__name.call(void 0, findFarmConfigPath, "findFarmConfigPath");
1519
1519
  function hasFarmServerRuntimePlugins(config) {
1520
1520
  return (config.plugins || []).some((plugin) => {
1521
- if (_chunkVU6AAZVYcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
1521
+ if (_chunkBWIQR4DHcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
1522
1522
  return Boolean(
1523
1523
  plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
1524
1524
  );
@@ -1531,7 +1531,7 @@ function hasFarmPluginRoutes(config) {
1531
1531
  _chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmPluginRoutes, "hasFarmPluginRoutes");
1532
1532
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
1533
1533
  return (config.plugins || []).some(
1534
- (plugin) => _chunkVU6AAZVYcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkYR2VBEMOcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1534
+ (plugin) => _chunkBWIQR4DHcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && _chunkAS2VPMEEcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
1535
1535
  );
1536
1536
  }
1537
1537
  _chunkS3JO3N4Hcjs.__name.call(void 0, farmServerRuntimePluginsMayHandlePath, "farmServerRuntimePluginsMayHandlePath");
@@ -1562,8 +1562,8 @@ async function discoverMiddlewareRoutes(appDir) {
1562
1562
  }
1563
1563
  await walk(
1564
1564
  _path2.default.join(dir, entry.name),
1565
- _chunkKCQBAKIYcjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
1566
- _chunkKCQBAKIYcjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
1565
+ _chunkLMPAPBUAcjs.appendMiddlewareRoutePath.call(void 0, routePath, entry.name),
1566
+ _chunkLMPAPBUAcjs.appendMiddlewareDirectory.call(void 0, directory, entry.name),
1567
1567
  discovered
1568
1568
  );
1569
1569
  }
@@ -1576,7 +1576,7 @@ async function discoverMiddlewareRoutes(appDir) {
1576
1576
  routes.set(route.directory, route);
1577
1577
  }
1578
1578
  }
1579
- return Array.from(routes.values()).sort(_chunkKCQBAKIYcjs.compareMiddlewareRouteLocations).map(({ path: routePath, filePath }) => ({ path: routePath, filePath }));
1579
+ return Array.from(routes.values()).sort(_chunkLMPAPBUAcjs.compareMiddlewareRouteLocations).map(({ path: routePath, filePath }) => ({ path: routePath, filePath }));
1580
1580
  }
1581
1581
  _chunkS3JO3N4Hcjs.__name.call(void 0, discoverMiddlewareRoutes, "discoverMiddlewareRoutes");
1582
1582
  function assertFarmDocsRuntimeSupported(config, preset) {
@@ -1594,7 +1594,7 @@ async function buildUniversal(config, routeManager, apiRouteManager, serverRende
1594
1594
  assertFarmDocsRuntimeSupported(config, preset);
1595
1595
  const srcDir = config.srcDir || "src";
1596
1596
  const distDir = config.distDir || ".farm";
1597
- const deployOutputDir = _chunkQ3NXS4MUcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1597
+ const deployOutputDir = _chunkHRETEZ2Zcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
1598
1598
  const lifecyclePluginManager = options.pluginManager;
1599
1599
  const productionViteResultPromise = Promise.allSettled([
1600
1600
  Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))
@@ -1844,7 +1844,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
1844
1844
  }
1845
1845
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
1846
1846
  await fs3.writeFile(fontCssPath, normalizedFontCss);
1847
- await fs3.writeFile(clientCssPath, _chunkYR2VBEMOcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1847
+ await fs3.writeFile(clientCssPath, _chunkAS2VPMEEcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1848
1848
  }
1849
1849
  _chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
1850
1850
  var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
@@ -1894,7 +1894,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
1894
1894
  const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${_path2.default.resolve(modulePath)}`;
1895
1895
  let plan = cache.get(key);
1896
1896
  if (!plan) {
1897
- plan = _chunkYR2VBEMOcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1897
+ plan = _chunkAS2VPMEEcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
1898
1898
  cache.set(key, plan);
1899
1899
  }
1900
1900
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -1912,7 +1912,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1912
1912
  });
1913
1913
  pluginManager.addPlugins(config.plugins || []);
1914
1914
  const clientPages = [];
1915
- const integrationProviders = _chunkVU6AAZVYcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
1915
+ const integrationProviders = _chunkBWIQR4DHcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
1916
1916
  (provider) => provider.component || provider.type === "clerk"
1917
1917
  );
1918
1918
  const unsupportedIntegrationProvider = integrationProviders.find(
@@ -1923,14 +1923,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1923
1923
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
1924
1924
  );
1925
1925
  }
1926
- const isolatedMode = _chunkYR2VBEMOcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1926
+ const isolatedMode = _chunkAS2VPMEEcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
1927
1927
  _optionalChain([config, 'access', _39 => _39.experimental, 'optionalAccess', _40 => _40.isolatedClientHydration]),
1928
1928
  {
1929
1929
  serverComponents: _optionalChain([config, 'access', _41 => _41.experimental, 'optionalAccess', _42 => _42.serverComponents]) === true,
1930
1930
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
1931
1931
  }
1932
1932
  );
1933
- const planOptions = _chunkYR2VBEMOcjs.getFarmClientHydrationPlanOptions.call(void 0,
1933
+ const planOptions = _chunkAS2VPMEEcjs.getFarmClientHydrationPlanOptions.call(void 0,
1934
1934
  config.renderer,
1935
1935
  Boolean(unsupportedIntegrationProvider)
1936
1936
  );
@@ -1977,7 +1977,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1977
1977
  };
1978
1978
  }
1979
1979
  });
1980
- const layoutAppliesToRoute = _chunk2DD4JMQCcjs.routeBoundaryCoversDirectory;
1980
+ const layoutAppliesToRoute = _chunkRVXFINNScjs.routeBoundaryCoversDirectory;
1981
1981
  const routeDirectory = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (route) => _nullishCoalesce(route.directory, () => ( route.pattern)), "routeDirectory");
1982
1982
  const adapterOwnsDocsRuntime = Boolean(
1983
1983
  _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, config.renderer) && _optionalChain([config, 'access', _43 => _43.docs, 'optionalAccess', _44 => _44.enabled]) && _optionalChain([config, 'access', _45 => _45.docs, 'access', _46 => _46.adapter, 'optionalAccess', _47 => _47.server]) && config.docs.adapter.react
@@ -1988,7 +1988,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
1988
1988
  ), "isAdapterDocsRoute");
1989
1989
  const syntheticDocsEntry = _optionalChain([config, 'access', _50 => _50.docs, 'optionalAccess', _51 => _51.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
1990
1990
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
1991
- const markdownPagePlan = _chunkYR2VBEMOcjs.createMarkdownPageHydrationPlanner.call(void 0,
1991
+ const markdownPagePlan = _chunkAS2VPMEEcjs.createMarkdownPageHydrationPlanner.call(void 0,
1992
1992
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
1993
1993
  root,
1994
1994
  isolatedMode,
@@ -2004,7 +2004,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2004
2004
  planOptions
2005
2005
  )
2006
2006
  }));
2007
- _chunkYR2VBEMOcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
2007
+ _chunkAS2VPMEEcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
2008
2008
  clientLayouts.map((layout) => ({
2009
2009
  pattern: layout.pattern,
2010
2010
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -2013,7 +2013,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2013
2013
  [
2014
2014
  ...routePlans.map(({ route, metadata }) => ({
2015
2015
  pattern: routeDirectory(route),
2016
- depth: _chunk2DD4JMQCcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
2016
+ depth: _chunkRVXFINNScjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
2017
2017
  metadata
2018
2018
  })),
2019
2019
  ...syntheticDocsPatterns.map((pattern) => ({
@@ -2036,7 +2036,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2036
2036
  for (const layout of clientLayouts) {
2037
2037
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
2038
2038
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
2039
- _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkYR2VBEMOcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2039
+ _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkAS2VPMEEcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2040
2040
  }
2041
2041
  }
2042
2042
  if (isolatedMode === "analyze") {
@@ -2060,7 +2060,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2060
2060
  );
2061
2061
  if (metadata.suppressedAsyncHydration) {
2062
2062
  _chunk5QIKR7RRcjs.logger.warn(
2063
- `\u26A0\uFE0F ${_chunkYR2VBEMOcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2063
+ `\u26A0\uFE0F ${_chunkAS2VPMEEcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2064
2064
  );
2065
2065
  }
2066
2066
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
@@ -2085,7 +2085,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2085
2085
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries).flatMap((layout) => layout.isolatedBoundaries)
2086
2086
  ],
2087
2087
  // The server renders a server tree only below a hydrating layout.
2088
- ..._chunkYR2VBEMOcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
2088
+ ..._chunkAS2VPMEEcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
2089
2089
  });
2090
2090
  _chunk5QIKR7RRcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
2091
2091
  }
@@ -2121,7 +2121,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2121
2121
  }
2122
2122
  const clientRouteSlots = routeSlots.filter((slot) => {
2123
2123
  try {
2124
- return _chunkYR2VBEMOcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2124
+ return _chunkAS2VPMEEcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2125
2125
  } catch (error) {
2126
2126
  _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
2127
2127
  return false;
@@ -2149,9 +2149,9 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2149
2149
  config.renderer,
2150
2150
  config.publicRuntimeConfig,
2151
2151
  config.trailingSlash,
2152
- _chunkVU6AAZVYcjs.getIntegrationProviders.call(void 0, config.integrations),
2152
+ _chunkBWIQR4DHcjs.getIntegrationProviders.call(void 0, config.integrations),
2153
2153
  config.basePath,
2154
- _chunkYR2VBEMOcjs.generateClientCachePersistenceCode.call(void 0, _chunkYR2VBEMOcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2154
+ _chunkAS2VPMEEcjs.generateClientCachePersistenceCode.call(void 0, _chunkAS2VPMEEcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2155
2155
  adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
2156
2156
  );
2157
2157
  await fs3.writeFile(clientEntryPath, clientHydrationCode);
@@ -2168,7 +2168,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2168
2168
  const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
2169
2169
  await fs3.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
2170
2170
  postcssSearchPath = clientEntryDir;
2171
- tailwindVitePlugin = await _chunkYR2VBEMOcjs.loadTailwindVitePlugin.call(void 0, {
2171
+ tailwindVitePlugin = await _chunkAS2VPMEEcjs.loadTailwindVitePlugin.call(void 0, {
2172
2172
  builder: productionVite.builder,
2173
2173
  announce: true
2174
2174
  });
@@ -2237,7 +2237,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2237
2237
  }
2238
2238
  },
2239
2239
  plugins: [
2240
- _chunkYR2VBEMOcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2240
+ _chunkAS2VPMEEcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2241
2241
  createFarmClientModulePreloadPlugin({
2242
2242
  root,
2243
2243
  buildDir: _path2.default.dirname(outputDir),
@@ -2259,7 +2259,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2259
2259
  ...rendererVitePlugins,
2260
2260
  ...config.vite.plugins || [],
2261
2261
  farmServerOnlyEntriesPlugin(),
2262
- _chunkYR2VBEMOcjs.farmDocsClientConfigPlugin.call(void 0,
2262
+ _chunkAS2VPMEEcjs.farmDocsClientConfigPlugin.call(void 0,
2263
2263
  adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
2264
2264
  ),
2265
2265
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -2318,7 +2318,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2318
2318
  } : void 0,
2319
2319
  // Ensure React is bundled for client
2320
2320
  resolve: {
2321
- alias: _chunkYR2VBEMOcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2321
+ alias: _chunkAS2VPMEEcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2322
2322
  dedupe: [...config.renderer.dedupe || []]
2323
2323
  },
2324
2324
  // Optimize dependencies - exclude server-side code from client bundle
@@ -2331,7 +2331,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2331
2331
  ]
2332
2332
  }
2333
2333
  };
2334
- await viteBuild(_chunkYR2VBEMOcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2334
+ await viteBuild(_chunkAS2VPMEEcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2335
2335
  await mergeBuiltFontCss(outputDir);
2336
2336
  await validateClientBuildOutput(root, srcDir, outputDir);
2337
2337
  } finally {
@@ -3090,7 +3090,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3090
3090
  direction: {}
3091
3091
  }, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule) {
3092
3092
  const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
3093
- const clientPluginEntry = _chunkYR2VBEMOcjs.generateFarmClientPluginEntryCode.call(void 0,
3093
+ const clientPluginEntry = _chunkAS2VPMEEcjs.generateFarmClientPluginEntryCode.call(void 0,
3094
3094
  plugins,
3095
3095
  root,
3096
3096
  srcDir,
@@ -3101,7 +3101,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3101
3101
  import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
3102
3102
  import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
3103
3103
  __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
3104
- const providerClientCode = _chunkYR2VBEMOcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3104
+ const providerClientCode = _chunkAS2VPMEEcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3105
3105
  integrationProviders,
3106
3106
  root,
3107
3107
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -3113,12 +3113,12 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
3113
3113
  const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
3114
3114
  layoutRoutes.forEach((layout, index) => {
3115
3115
  const relativePath = toImportPath(layout.modulePath);
3116
- const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) => _chunk4E5QXOCLcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern));
3116
+ const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) => _chunk5ULKUBIAcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern));
3117
3117
  if (rendersOnClient) {
3118
3118
  layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
3119
3119
  }
3120
- const groupScope = _chunk2DD4JMQCcjs.getRouteGroupScope.call(void 0, layout.pattern);
3121
- const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunk2DD4JMQCcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
3120
+ const groupScope = _chunkRVXFINNScjs.getRouteGroupScope.call(void 0, layout.pattern);
3121
+ const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkRVXFINNScjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
3122
3122
  layoutRegistrations.push(
3123
3123
  ` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)} }`
3124
3124
  );
@@ -3621,7 +3621,7 @@ function hasHydratableLayout(pathname) {
3621
3621
  });
3622
3622
  }
3623
3623
 
3624
- ${_chunkYR2VBEMOcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3624
+ ${_chunkAS2VPMEEcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3625
3625
  // Wrap a page element with applicable layouts
3626
3626
  function wrapWithLayouts(pageElement, pathname, params) {
3627
3627
  const layouts = getApplicableLayouts(pathname);
@@ -4600,7 +4600,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4600
4600
  _path2.default.join(postcssConfigDir, "postcss.config.cjs"),
4601
4601
  "module.exports = { plugins: [] };\n"
4602
4602
  );
4603
- tailwindVitePlugin = await _chunkYR2VBEMOcjs.loadTailwindVitePlugin.call(void 0, {
4603
+ tailwindVitePlugin = await _chunkAS2VPMEEcjs.loadTailwindVitePlugin.call(void 0, {
4604
4604
  builder: productionVite.builder,
4605
4605
  label: "for SSR"
4606
4606
  });
@@ -4696,7 +4696,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4696
4696
  }
4697
4697
  const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
4698
4698
  const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
4699
- const notFoundPath = _chunkYR2VBEMOcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4699
+ const notFoundPath = _chunkAS2VPMEEcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4700
4700
  if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
4701
4701
  layoutRoutes.sort((a, b) => {
4702
4702
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -4713,13 +4713,13 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4713
4713
  const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
4714
4714
  (integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
4715
4715
  );
4716
- const hasIntegrationProviders = _chunkVU6AAZVYcjs.getIntegrationProviders.call(void 0, config.integrations).some(
4716
+ const hasIntegrationProviders = _chunkBWIQR4DHcjs.getIntegrationProviders.call(void 0, config.integrations).some(
4717
4717
  (provider) => provider.component || provider.type === "clerk"
4718
4718
  );
4719
4719
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
4720
4720
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _60 => _60.mdx, 'optionalAccess', _61 => _61.components]));
4721
- const hasMiddlewareConfig = _chunk2DD4JMQCcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
4722
- const hasRouteContextConfig = _chunkQ3NXS4MUcjs.hasCustomFarmRouteContext.call(void 0, config);
4721
+ const hasMiddlewareConfig = _chunkRVXFINNScjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
4722
+ const hasRouteContextConfig = _chunkHRETEZ2Zcjs.hasCustomFarmRouteContext.call(void 0, config);
4723
4723
  const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
4724
4724
  const hasPluginRoutes = hasFarmPluginRoutes(config);
4725
4725
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
@@ -4729,9 +4729,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4729
4729
  const hasConfiguredRuntimePlugins = Boolean(
4730
4730
  hasRuntimeConfigModule && (config.plugins || []).length > 0
4731
4731
  );
4732
- if (_chunk4IE345DMcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
4732
+ if (_chunkCIOT4HGTcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
4733
4733
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
4734
- _chunk4IE345DMcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
4734
+ _chunkCIOT4HGTcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
4735
4735
  config.docs,
4736
4736
  { root, srcDir: config.srcDir },
4737
4737
  (pathname) => adapterGuardedPaths.has(pathname)
@@ -4740,7 +4740,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4740
4740
  const farmDocsCspNonceMarker = _chunk2ZYGC6SScjs.createFarmCspNonce.call(void 0, config.security);
4741
4741
  const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _62 => _62.docs, 'optionalAccess', _63 => _63.enabled]) && _chunkC5GUTBZKcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk6XWDE2P2cjs._runWithFarmCspNonce.call(void 0,
4742
4742
  farmDocsCspNonceMarker,
4743
- async () => _optionalChain([config, 'access', _64 => _64.docs, 'access', _65 => _65.adapter, 'optionalAccess', _66 => _66.server]) ? await _chunk4IE345DMcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4743
+ async () => _optionalChain([config, 'access', _64 => _64.docs, 'access', _65 => _65.adapter, 'optionalAccess', _66 => _66.server]) ? await _chunkCIOT4HGTcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
4744
4744
  root,
4745
4745
  srcDir: config.srcDir,
4746
4746
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -4898,7 +4898,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4898
4898
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _72 => _72.env, 'optionalAccess', _73 => _73.public]) || {})
4899
4899
  },
4900
4900
  plugins: [
4901
- _chunkYR2VBEMOcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4901
+ _chunkAS2VPMEEcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
4902
4902
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
4903
4903
  ...rendererVitePlugins,
4904
4904
  ...config.vite.plugins || [],
@@ -4945,7 +4945,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4945
4945
  resolve: {
4946
4946
  alias: [
4947
4947
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
4948
- ...Object.entries(_chunkYR2VBEMOcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4948
+ ...Object.entries(_chunkAS2VPMEEcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
4949
4949
  ([find, replacement]) => ({ find, replacement })
4950
4950
  )
4951
4951
  ],
@@ -4953,7 +4953,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4953
4953
  dedupe: [...config.renderer.dedupe || []]
4954
4954
  }
4955
4955
  };
4956
- await viteBuild(_chunkYR2VBEMOcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4956
+ await viteBuild(_chunkAS2VPMEEcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
4957
4957
  } finally {
4958
4958
  if (postcssConfigDir) {
4959
4959
  try {
@@ -5001,7 +5001,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
5001
5001
  config: { middleware: config.middleware, integrations: config.integrations },
5002
5002
  middlewareRoutes
5003
5003
  };
5004
- return _chunkPGZDEPTMcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkPGZDEPTMcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunk2DD4JMQCcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
5004
+ return _chunkPGZDEPTMcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkPGZDEPTMcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkRVXFINNScjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
5005
5005
  }
5006
5006
  _chunkS3JO3N4Hcjs.__name.call(void 0, getFarmDocsGuardedPaths, "getFarmDocsGuardedPaths");
5007
5007
  function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
@@ -5410,9 +5410,9 @@ function renderFarmRouteServerTree(element) { return element; }`;
5410
5410
  const hasGeneratedMetadataImages = metadataImageRoutes.some(
5411
5411
  (image) => image.sourceType === "module"
5412
5412
  );
5413
- const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk2DD4JMQCcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
5413
+ const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkRVXFINNScjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
5414
5414
  const farmDocsFontAssets = _optionalChain([config, 'access', _99 => _99.docs, 'optionalAccess', _100 => _100.enabled]) ? _chunkHREOKQWTcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkHREOKQWTcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
5415
- const integrationProviders = _chunkVU6AAZVYcjs.getIntegrationProviders.call(void 0, config.integrations);
5415
+ const integrationProviders = _chunkBWIQR4DHcjs.getIntegrationProviders.call(void 0, config.integrations);
5416
5416
  const renderedIntegrationProviders = integrationProviders.filter(
5417
5417
  (provider) => provider.component || provider.type === "clerk"
5418
5418
  );
@@ -5421,7 +5421,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
5421
5421
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
5422
5422
  );
5423
5423
  }
5424
- const providerServerModules = _chunkYR2VBEMOcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5424
+ const providerServerModules = _chunkAS2VPMEEcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5425
5425
  renderedIntegrationProviders,
5426
5426
  config.root,
5427
5427
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -5441,14 +5441,14 @@ function renderFarmRouteServerTree(element) { return element; }`;
5441
5441
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
5442
5442
  (provider) => provider.supportsIsolatedHydration !== true
5443
5443
  );
5444
- const isolatedHydrationMode = _chunkYR2VBEMOcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5444
+ const isolatedHydrationMode = _chunkAS2VPMEEcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5445
5445
  _optionalChain([config, 'access', _103 => _103.experimental, 'optionalAccess', _104 => _104.isolatedClientHydration]),
5446
5446
  {
5447
5447
  serverComponents: _optionalChain([config, 'access', _105 => _105.experimental, 'optionalAccess', _106 => _106.serverComponents]) === true,
5448
5448
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
5449
5449
  }
5450
5450
  );
5451
- const hydrationPlanOptions = _chunkYR2VBEMOcjs.getFarmClientHydrationPlanOptions.call(void 0,
5451
+ const hydrationPlanOptions = _chunkAS2VPMEEcjs.getFarmClientHydrationPlanOptions.call(void 0,
5452
5452
  config.renderer,
5453
5453
  Boolean(unsupportedIntegrationProvider)
5454
5454
  );
@@ -5462,7 +5462,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
5462
5462
  hydrationPlanOptions
5463
5463
  )
5464
5464
  }));
5465
- const markdownPagePlan = _chunkYR2VBEMOcjs.createMarkdownPageHydrationPlanner.call(void 0,
5465
+ const markdownPagePlan = _chunkAS2VPMEEcjs.createMarkdownPageHydrationPlanner.call(void 0,
5466
5466
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
5467
5467
  config.root,
5468
5468
  isolatedHydrationMode,
@@ -5480,7 +5480,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
5480
5480
  )
5481
5481
  ])
5482
5482
  );
5483
- _chunkYR2VBEMOcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5483
+ _chunkAS2VPMEEcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5484
5484
  layoutHydrationPlans.map((layout) => ({
5485
5485
  pattern: layout.pattern,
5486
5486
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -5489,10 +5489,10 @@ function renderFarmRouteServerTree(element) { return element; }`;
5489
5489
  pageRoutes.map((route) => ({
5490
5490
  // Compared by directory so a grouped layout applies only inside its group.
5491
5491
  pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
5492
- depth: _chunk2DD4JMQCcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
5492
+ depth: _chunkRVXFINNScjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
5493
5493
  metadata: pageHydrationPlans.get(route.modulePath)
5494
5494
  })),
5495
- _chunk2DD4JMQCcjs.routeBoundaryCoversDirectory
5495
+ _chunkRVXFINNScjs.routeBoundaryCoversDirectory
5496
5496
  );
5497
5497
  const providerServerImports = [
5498
5498
  providerServerModules.hasClerkProvider ? `import { ClerkProvider as FarmClerkProvider } from "@clerk/react";` : "",
@@ -5554,7 +5554,7 @@ function renderFarmRouteServerTree(element) { return element; }`;
5554
5554
  module: ${varName},
5555
5555
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
5556
5556
  clientModule: ${JSON.stringify(_chunk5QIKR7RRcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
5557
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkYR2VBEMOcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
5557
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkAS2VPMEEcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
5558
5558
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
5559
5559
  ${route.source !== void 0 ? `markdownSource: {
5560
5560
  source: ${JSON.stringify(route.source)},
@@ -5611,12 +5611,12 @@ function renderFarmRouteServerTree(element) { return element; }`;
5611
5611
  errorImports.push(
5612
5612
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
5613
5613
  );
5614
- const groupScope = _chunk2DD4JMQCcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
5614
+ const groupScope = _chunkRVXFINNScjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
5615
5615
  errorRegistrations.push(`
5616
5616
  {
5617
- pattern: ${JSON.stringify(_chunk2DD4JMQCcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
5617
+ pattern: ${JSON.stringify(_chunkRVXFINNScjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
5618
5618
  groupScope: ${JSON.stringify(groupScope)},
5619
- directoryDepth: ${_chunk2DD4JMQCcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
5619
+ directoryDepth: ${_chunkRVXFINNScjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
5620
5620
  module: ${varName},
5621
5621
  }`);
5622
5622
  });
@@ -5803,7 +5803,7 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
5803
5803
  const integrationRuntimeImport = integrationRuntimeExports.length ? `import { ${integrationRuntimeExports.join(", ")} } from "@farm.js/core/integrations";` : "";
5804
5804
  const instrumentationImport = instrumentationPath ? `import * as FarmInstrumentationModule from ${toVirtualEntryImportSpecifier(instrumentationPath)};` : "";
5805
5805
  const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
5806
- const nativeMCP = _chunk4E5QXOCLcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
5806
+ const nativeMCP = _chunk5ULKUBIAcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
5807
5807
  const integrationImports = `
5808
5808
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
5809
5809
  ${layerConfigImports}
@@ -5990,7 +5990,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
5990
5990
 
5991
5991
  function FarmDefault404Page() {
5992
5992
  return React.createElement(React.Fragment, null,
5993
- React.createElement("style", null, ${JSON.stringify(_chunkYR2VBEMOcjs.DEFAULT_NOT_FOUND_STYLES)}),
5993
+ React.createElement("style", null, ${JSON.stringify(_chunkAS2VPMEEcjs.DEFAULT_NOT_FOUND_STYLES)}),
5994
5994
  React.createElement("main", {
5995
5995
  className: "farm-default-not-found",
5996
5996
  "aria-labelledby": "farm-default-not-found-title",
@@ -6083,7 +6083,7 @@ const serverRuntimeIntegrations = Object.fromEntries(
6083
6083
  );
6084
6084
  const integrationRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs, {
6085
6085
  integrations: configuredIntegrations,
6086
- ${JSON.stringify(_chunkVU6AAZVYcjs.FARM_INTEGRATION_API_BASE_PATH_KEY)}: ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))},
6086
+ ${JSON.stringify(_chunkBWIQR4DHcjs.FARM_INTEGRATION_API_BASE_PATH_KEY)}: ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))},
6087
6087
  });
6088
6088
  const farmInfraAnalytics = ${hasInfraAnalyticsRuntime ? hasPluginRuntime ? "createFarmInfraAnalyticsPlugin()" : "createFarmInfraAnalyticsRecorder()" : "null"};
6089
6089
  const configuredPlugins = [
@@ -6286,12 +6286,12 @@ function fetchFarmInnerRequest(request, context) {
6286
6286
  }
6287
6287
  const farmLocalAPIBasePath = ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
6288
6288
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
6289
- ${_optionalChain([config, 'access', _136 => _136.agent, 'optionalAccess', _137 => _137.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunk2DD4JMQCcjs.resolveFarmApiCatalogInput.call(void 0, config))};
6289
+ ${_optionalChain([config, 'access', _136 => _136.agent, 'optionalAccess', _137 => _137.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkRVXFINNScjs.resolveFarmApiCatalogInput.call(void 0, config))};
6290
6290
  ` : ""}${_optionalChain([config, 'access', _138 => _138.agent, 'optionalAccess', _139 => _139.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
6291
- _chunk2DD4JMQCcjs.resolveFarmAppManifestInput.call(void 0, config, {
6291
+ _chunkRVXFINNScjs.resolveFarmAppManifestInput.call(void 0, config, {
6292
6292
  build: config.deploymentId,
6293
- packages: _chunkYR2VBEMOcjs.resolveFarmAppPackages.call(void 0, config.root),
6294
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkYR2VBEMOcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
6293
+ packages: _chunkAS2VPMEEcjs.resolveFarmAppPackages.call(void 0, config.root),
6294
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkAS2VPMEEcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
6295
6295
  })
6296
6296
  )};
6297
6297
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -6766,7 +6766,7 @@ function peelFarmDocumentPrefix(markup) {
6766
6766
  let inner = markup.replace(/^\\s+/, "");
6767
6767
  let hoisted = "";
6768
6768
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents["'][^>]*>/i;
6769
- const hoistable = /${_chunk2DD4JMQCcjs.HOISTED_HEAD_ELEMENT.source}/i;
6769
+ const hoistable = /${_chunkRVXFINNScjs.HOISTED_HEAD_ELEMENT.source}/i;
6770
6770
  let match;
6771
6771
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
6772
6772
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -7297,7 +7297,7 @@ function createFarmAgentRobotsResponse(request) {
7297
7297
  // a route guard.
7298
7298
  const farmAgentGuardedPages = new Set(${JSON.stringify(
7299
7299
  pageRoutes.map((route) => route.pattern).filter(
7300
- (pattern) => !pattern.includes("[") && _chunk2DD4JMQCcjs.farmPathGuardCoversPage.call(void 0,
7300
+ (pattern) => !pattern.includes("[") && _chunkRVXFINNScjs.farmPathGuardCoversPage.call(void 0,
7301
7301
  {
7302
7302
  config: { middleware: config.middleware, integrations: config.integrations },
7303
7303
  middlewareRoutes
@@ -7344,7 +7344,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
7344
7344
  // aside for a page route that answers /mcp and for any MCP server published or
7345
7345
  // registered at runtime, such as the docs engine's.
7346
7346
  const farmDefaultMCPServer = ${JSON.stringify(
7347
- _chunkH5CLOUZScjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkKKSTAEMYcjs.FARM_VERSION)
7347
+ _chunkH5CLOUZScjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkQUCXCDE2cjs.FARM_VERSION)
7348
7348
  )};
7349
7349
  let farmDefaultMCPRouteFree;
7350
7350
  function getFarmDefaultMCPServer() {
@@ -8326,7 +8326,7 @@ async function handleFarmRequestInContext(
8326
8326
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
8327
8327
  // public manifest; Farm Infra's signed request gets the full view.
8328
8328
  if (
8329
- [${JSON.stringify(_chunk2DD4JMQCcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunk2DD4JMQCcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
8329
+ [${JSON.stringify(_chunkRVXFINNScjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkRVXFINNScjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
8330
8330
  normalizeRuntimePath(routePathname),
8331
8331
  )
8332
8332
  ) {
@@ -8338,7 +8338,7 @@ async function handleFarmRequestInContext(
8338
8338
  ` : ""}
8339
8339
  ${_optionalChain([config, 'access', _156 => _156.agent, 'optionalAccess', _157 => _157.apiCatalog]) ? `
8340
8340
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
8341
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunk2DD4JMQCcjs.FARM_API_CATALOG_PATH)}) {
8341
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkRVXFINNScjs.FARM_API_CATALOG_PATH)}) {
8342
8342
  return applyProductionMiddlewareHeaders(
8343
8343
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
8344
8344
  middlewareHeaders,
@@ -9705,9 +9705,9 @@ function getPhysicalPrerenderBypassReason(options) {
9705
9705
  if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
9706
9706
  return "rewrite";
9707
9707
  }
9708
- if (_chunk2DD4JMQCcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
9709
- if (_chunk2DD4JMQCcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
9710
- if (_chunkQ3NXS4MUcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
9708
+ if (_chunkRVXFINNScjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
9709
+ if (_chunkRVXFINNScjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
9710
+ if (_chunkHRETEZ2Zcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
9711
9711
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
9712
9712
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
9713
9713
  if (_optionalChain([manifestEntry, 'optionalAccess', _174 => _174.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -9733,7 +9733,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
9733
9733
  const nitroBuilder = nitroBuilderResult.value;
9734
9734
  const isVercel = preset === "vercel" || preset === "vercel-edge";
9735
9735
  const isCloudflareWorker = preset === "cloudflare-module";
9736
- const outputDir = _chunkQ3NXS4MUcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
9736
+ const outputDir = _chunkHRETEZ2Zcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
9737
9737
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
9738
9738
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
9739
9739
  const imageRuntime = resolveImageRuntime(config, preset);
@@ -10535,7 +10535,7 @@ async function stageSharpRuntime(config, root, distDir, fs3, preset) {
10535
10535
  try {
10536
10536
  await copyPackage("sharp", sharpRequire);
10537
10537
  if (!copiedPackages.has("sharp")) {
10538
- throw new Error(`Farm image optimization requires sharp. ${_chunkYR2VBEMOcjs.SHARP_INSTALL_HINT}`);
10538
+ throw new Error(`Farm image optimization requires sharp. ${_chunkAS2VPMEEcjs.SHARP_INSTALL_HINT}`);
10539
10539
  }
10540
10540
  } catch (error) {
10541
10541
  await fs3.rm(stageDir, { recursive: true, force: true });
@@ -10773,7 +10773,7 @@ function createBuildTargetBaseline(config) {
10773
10773
  preset,
10774
10774
  distDir,
10775
10775
  outputDir,
10776
- outputWasDerived: outputDir === _chunkQ3NXS4MUcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
10776
+ outputWasDerived: outputDir === _chunkHRETEZ2Zcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
10777
10777
  };
10778
10778
  }
10779
10779
  _chunkS3JO3N4Hcjs.__name.call(void 0, createBuildTargetBaseline, "createBuildTargetBaseline");
@@ -10783,8 +10783,8 @@ function resolveBuildTargets(config, options, baseline) {
10783
10783
  const distDir = config.distDir || ".farm";
10784
10784
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
10785
10785
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
10786
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkQ3NXS4MUcjs.getDeployTargetForPreset.call(void 0, preset);
10787
- const outputDir = shouldRefreshDerivedOutput ? _chunkQ3NXS4MUcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
10786
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkHRETEZ2Zcjs.getDeployTargetForPreset.call(void 0, preset);
10787
+ const outputDir = shouldRefreshDerivedOutput ? _chunkHRETEZ2Zcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
10788
10788
  return {
10789
10789
  root,
10790
10790
  preset,
@@ -10792,7 +10792,7 @@ function resolveBuildTargets(config, options, baseline) {
10792
10792
  distDir,
10793
10793
  deployTarget,
10794
10794
  outputDir,
10795
- deployOutputDir: _chunkQ3NXS4MUcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
10795
+ deployOutputDir: _chunkHRETEZ2Zcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
10796
10796
  };
10797
10797
  }
10798
10798
  _chunkS3JO3N4Hcjs.__name.call(void 0, resolveBuildTargets, "resolveBuildTargets");
@@ -10801,7 +10801,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10801
10801
  const targetBaseline = createBuildTargetBaseline(config);
10802
10802
  let targets;
10803
10803
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkA6WIQH5Zcjs.loadFarmProductionVite.call(void 0, ))))]);
10804
- const pluginManager = new (0, _chunkYR2VBEMOcjs.PluginManager)({
10804
+ const pluginManager = new (0, _chunkAS2VPMEEcjs.PluginManager)({
10805
10805
  config,
10806
10806
  isDev: false,
10807
10807
  isProd: true
@@ -10830,7 +10830,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10830
10830
  };
10831
10831
  config = {
10832
10832
  ...config,
10833
- images: _chunkYR2VBEMOcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
10833
+ images: _chunkAS2VPMEEcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
10834
10834
  root: targets.root,
10835
10835
  preset: targets.preset
10836
10836
  })
@@ -10858,7 +10858,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
10858
10858
  root,
10859
10859
  rendererBuild.signal
10860
10860
  );
10861
- const farmApp = _chunkYR2VBEMOcjs.createFarmApp.call(void 0, config, projectModuleServer);
10861
+ const farmApp = _chunkAS2VPMEEcjs.createFarmApp.call(void 0, config, projectModuleServer);
10862
10862
  await farmApp.initialize();
10863
10863
  const routeManager = farmApp.getRouteManager();
10864
10864
  const serverRenderer = farmApp.getServerRenderer();
@@ -10965,7 +10965,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10965
10965
  ssr: true,
10966
10966
  buildLifetime
10967
10967
  });
10968
- const viteConfig = _chunkYR2VBEMOcjs.mergeFarmViteConfig.call(void 0,
10968
+ const viteConfig = _chunkAS2VPMEEcjs.mergeFarmViteConfig.call(void 0,
10969
10969
  {
10970
10970
  root,
10971
10971
  appType: "custom",
@@ -10977,7 +10977,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10977
10977
  },
10978
10978
  plugins: [
10979
10979
  ...rendererVitePlugins,
10980
- _chunkYR2VBEMOcjs.farmFontImportsPlugin.call(void 0, {
10980
+ _chunkAS2VPMEEcjs.farmFontImportsPlugin.call(void 0, {
10981
10981
  root,
10982
10982
  basePath: config.basePath,
10983
10983
  publicDir: config.publicDir
@@ -10989,7 +10989,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
10989
10989
  hmr: false
10990
10990
  },
10991
10991
  resolve: {
10992
- alias: _chunkYR2VBEMOcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10992
+ alias: _chunkAS2VPMEEcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
10993
10993
  dedupe: [...config.renderer.dedupe || []]
10994
10994
  },
10995
10995
  optimizeDeps: {
@@ -11118,7 +11118,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
11118
11118
  if (pluginManager) {
11119
11119
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
11120
11120
  }
11121
- const outputDir = _chunkQ3NXS4MUcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
11121
+ const outputDir = _chunkHRETEZ2Zcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
11122
11122
  const serverOutputDir = _path2.default.join(outputDir, "server");
11123
11123
  const publicOutputDir = _path2.default.join(outputDir, "public");
11124
11124
  const { mkdir, cp } = await import("fs/promises");
@@ -11189,7 +11189,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
11189
11189
  root,
11190
11190
  preset,
11191
11191
  distDir,
11192
- outputDir: _chunkQ3NXS4MUcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
11192
+ outputDir: _chunkHRETEZ2Zcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
11193
11193
  });
11194
11194
  }
11195
11195
  }