@farm.js/core 0.2.0-beta.2 → 0.2.0

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 (687) hide show
  1. package/README.md +1 -3
  2. package/dist/THIRD-PARTY-LICENSES.md +3220 -0
  3. package/dist/after.cjs +3 -3
  4. package/dist/after.mjs +1 -1
  5. package/dist/{agent-mcp-handler-VX4NDDHR.mjs → agent-mcp-handler-BY7VJQ4W.mjs} +1 -1
  6. package/dist/agent-mcp-handler-S4UTE7NO.cjs +21 -0
  7. package/dist/{agent-mcp.d-DhCEzIfu.d.mts → agent-mcp.d-DhZf5-v0.d.mts} +1 -1
  8. package/dist/{agent-mcp.d-DBaonhLg.d.ts → agent-mcp.d-xPua9Zdz.d.ts} +1 -1
  9. package/dist/agent-runtime.cjs +25 -22
  10. package/dist/agent-runtime.d.mts +1 -1
  11. package/dist/agent-runtime.d.ts +1 -1
  12. package/dist/agent-runtime.mjs +2 -2
  13. package/dist/{analyzer-T2U345WL.mjs → analyzer-LQ4LVDCW.mjs} +3 -3
  14. package/dist/analyzer-ZFC2L6NZ.cjs +17 -0
  15. package/dist/api/client.cjs +16 -16
  16. package/dist/api/client.mjs +1 -1
  17. package/dist/api/client.native.cjs +21 -18
  18. package/dist/api/client.native.mjs +1 -1
  19. package/dist/api/node.cjs +29 -26
  20. package/dist/api/node.d.mts +3 -3
  21. package/dist/api/node.d.ts +3 -3
  22. package/dist/api/node.mjs +1 -1
  23. package/dist/api/route-manager.cjs +45 -45
  24. package/dist/api/route-manager.d.mts +3 -3
  25. package/dist/api/route-manager.d.ts +3 -3
  26. package/dist/api/route-manager.mjs +5 -5
  27. package/dist/api/runtime.cjs +25 -25
  28. package/dist/api/runtime.d.mts +2 -2
  29. package/dist/api/runtime.d.ts +2 -2
  30. package/dist/api/runtime.mjs +1 -1
  31. package/dist/api.cjs +57 -57
  32. package/dist/api.d.mts +4 -4
  33. package/dist/api.d.ts +4 -4
  34. package/dist/api.mjs +6 -6
  35. package/dist/{app-manifest.d-uE0JGZKN.d.mts → app-manifest.d-Bq9VWtpk.d.mts} +1 -1
  36. package/dist/{app-manifest.d-nLVFFd7N.d.ts → app-manifest.d-D6l1Wkn6.d.ts} +1 -1
  37. package/dist/app-markdown-compiler-4RCCOTTF.cjs +33007 -0
  38. package/dist/app-markdown-compiler-OM2AMFRK.mjs +32402 -0
  39. package/dist/app-markdown.cjs +16 -16
  40. package/dist/app-markdown.d.mts +2 -2
  41. package/dist/app-markdown.d.ts +2 -2
  42. package/dist/app-markdown.mjs +3 -3
  43. package/dist/{app.d-DGGcNXV7.d.mts → app.d-Bn1bqBkf.d.mts} +17 -7
  44. package/dist/{app.d-CwVkAUEU.d.ts → app.d-gnTrW72o.d.ts} +17 -7
  45. package/dist/cache.cjs +8 -8
  46. package/dist/cache.mjs +1 -1
  47. package/dist/{chunk-DA432P2F.cjs → chunk-25CHWAZY.cjs} +14 -10
  48. package/dist/{chunk-JDT733EW.cjs → chunk-27IPPPCV.cjs} +16 -19
  49. package/dist/{chunk-X2SMVPLH.mjs → chunk-2FBFJO2Z.mjs} +8 -5
  50. package/dist/{chunk-PHCJJJZV.cjs → chunk-2HC46EGU.cjs} +6 -2
  51. package/dist/{chunk-MF3IA2AW.cjs → chunk-2L4M6YUG.cjs} +6 -1
  52. package/dist/{chunk-RBSGFS5X.cjs → chunk-2LHO4HTP.cjs} +62 -54
  53. package/dist/{chunk-CIY74JLV.cjs → chunk-2RA2VIKN.cjs} +9 -5
  54. package/dist/{chunk-A3LNXQJJ.cjs → chunk-2VLW3HWJ.cjs} +9 -2
  55. package/dist/{chunk-4EBC7EMW.cjs → chunk-323JTLXR.cjs} +6 -1
  56. package/dist/{chunk-7KJJ4SBS.cjs → chunk-32HGOX3M.cjs} +6 -1
  57. package/dist/{chunk-RKQOMG2X.cjs → chunk-3ACTVXZG.cjs} +9 -5
  58. package/dist/{chunk-N3H7UPBM.cjs → chunk-3EZHMZGD.cjs} +6 -1
  59. package/dist/{chunk-LQWIIBI2.cjs → chunk-3KLDTMIC.cjs} +6 -1
  60. package/dist/{chunk-OO7DYIJD.cjs → chunk-3YT7DIIS.cjs} +7 -1
  61. package/dist/{chunk-ILQSRLKK.cjs → chunk-4A6WSOZH.cjs} +55 -49
  62. package/dist/{chunk-CBB7I6HW.cjs → chunk-4ER5KYSC.cjs} +9 -5
  63. package/dist/{chunk-E5UN4OWX.cjs → chunk-4JARM2QQ.cjs} +6 -1
  64. package/dist/{chunk-VGVRGGP4.cjs → chunk-4JCX33RZ.cjs} +13 -8
  65. package/dist/chunk-4RLFAN7T.cjs +6 -0
  66. package/dist/{chunk-OZUINP2P.cjs → chunk-4USE4SEU.cjs} +19 -15
  67. package/dist/{chunk-LQ3FISSD.mjs → chunk-54INSSWI.mjs} +66 -53
  68. package/dist/{chunk-PENBZAHJ.cjs → chunk-57OAZCWQ.cjs} +6 -1
  69. package/dist/{chunk-JYQ6DGPW.cjs → chunk-5P3TZGS3.cjs} +52 -45
  70. package/dist/{chunk-Z3RM3VA2.mjs → chunk-5VXVRMXK.mjs} +11 -1
  71. package/dist/{chunk-OZC2JPW6.cjs → chunk-5XYJ5KRN.cjs} +6 -1
  72. package/dist/{chunk-QKW6DLDT.cjs → chunk-5YT2ZSWS.cjs} +17 -13
  73. package/dist/{chunk-QCKSYYXK.cjs → chunk-63S7DAEG.cjs} +21 -17
  74. package/dist/{chunk-FDGYDQGL.cjs → chunk-66WIOZXX.cjs} +7 -1
  75. package/dist/{chunk-MHKPXX3J.cjs → chunk-6AUPJYHF.cjs} +13 -9
  76. package/dist/{chunk-DVJM55D2.cjs → chunk-6FIY4KBC.cjs} +6 -1
  77. package/dist/{chunk-TIZJYHB7.mjs → chunk-6IUWKO2Q.mjs} +15 -0
  78. package/dist/{chunk-VWIW47FW.cjs → chunk-6K7LEL2T.cjs} +6 -1
  79. package/dist/{chunk-UZCMMJJT.cjs → chunk-6NQ63L6N.cjs} +6 -1
  80. package/dist/{chunk-BTVDYS4B.cjs → chunk-6QCZWAGO.cjs} +6 -1
  81. package/dist/{chunk-RDADQG5S.cjs → chunk-6QWCFVGL.cjs} +14 -7
  82. package/dist/{chunk-JRGR5Z4K.cjs → chunk-6VC7NUY3.cjs} +6 -1
  83. package/dist/{chunk-CKPTIEDX.cjs → chunk-7BFFBYLN.cjs} +6 -1
  84. package/dist/{chunk-7Q7UB4TL.cjs → chunk-7GKZDRY2.cjs} +9 -5
  85. package/dist/{chunk-UCJCU2IL.cjs → chunk-7JI7W2MD.cjs} +34 -30
  86. package/dist/{chunk-C7LCTVJ2.cjs → chunk-7JZVCHNF.cjs} +10 -6
  87. package/dist/{chunk-QZUCVJZJ.cjs → chunk-7M3X4CBY.cjs} +6 -1
  88. package/dist/{chunk-7JUIK547.cjs → chunk-7MQMWGTL.cjs} +6 -1
  89. package/dist/{chunk-PIUTGRDI.cjs → chunk-7O3YJ6NP.cjs} +6 -1
  90. package/dist/{chunk-SXCL2MIN.cjs → chunk-7V5MQSBL.cjs} +9 -1
  91. package/dist/{chunk-7U4XF76R.cjs → chunk-7ZDLE77P.cjs} +12 -8
  92. package/dist/{chunk-NU5XLYRN.cjs → chunk-A2ELHZBZ.cjs} +10 -1
  93. package/dist/{chunk-RZI6436F.cjs → chunk-ADCVSTFV.cjs} +18 -11
  94. package/dist/chunk-AZJEQ5CR.cjs +6 -0
  95. package/dist/{chunk-ZMSVKVI3.cjs → chunk-B2VSX33T.cjs} +6 -1
  96. package/dist/{chunk-AQIRXBBY.cjs → chunk-B6JPBPBQ.cjs} +6 -1
  97. package/dist/{chunk-W76C7TCW.cjs → chunk-BNVQSUZK.cjs} +6 -2
  98. package/dist/{chunk-MNUYXZV7.cjs → chunk-BNWADCG2.cjs} +6 -1
  99. package/dist/{chunk-CCAUIBIS.cjs → chunk-BRWSQDKO.cjs} +10 -1
  100. package/dist/{chunk-KQS27YN7.cjs → chunk-C6DR4JAR.cjs} +14 -10
  101. package/dist/{chunk-Y3WG64CP.cjs → chunk-CH2JX3CM.cjs} +6 -1
  102. package/dist/{chunk-KDQKTX3Q.cjs → chunk-COMBIEAP.cjs} +44 -36
  103. package/dist/{chunk-YUQUGVSV.cjs → chunk-CTTXHHZG.cjs} +50 -46
  104. package/dist/{chunk-FDZZ6K3N.cjs → chunk-CUW7K4AU.cjs} +14 -10
  105. package/dist/chunk-CWSUKW2H.cjs +6 -0
  106. package/dist/chunk-CYUTK4JP.cjs +52 -0
  107. package/dist/{chunk-COK4IXOO.mjs → chunk-D7KBMJ7L.mjs} +1 -1
  108. package/dist/{chunk-T3SMMLSB.cjs → chunk-DB4NOIQC.cjs} +12 -8
  109. package/dist/{chunk-N2ZMSSPP.cjs → chunk-DNERKYN4.cjs} +77 -70
  110. package/dist/{chunk-OWOUTKIJ.cjs → chunk-DQYMTSF3.cjs} +6 -1
  111. package/dist/{chunk-7V5M43ND.mjs → chunk-DVL3UVYT.mjs} +2 -2
  112. package/dist/{chunk-UNOXV37V.cjs → chunk-DYGHX2UR.cjs} +6 -1
  113. package/dist/{chunk-LSHX2H5G.cjs → chunk-EBE6BK54.cjs} +6 -1
  114. package/dist/{chunk-WT6RAN2I.cjs → chunk-EGMJ5KEU.cjs} +6 -1
  115. package/dist/{chunk-22KXTL3I.cjs → chunk-EJLMRNSV.cjs} +24 -19
  116. package/dist/{chunk-RDNKQ5MK.cjs → chunk-EMM3YXXI.cjs} +19 -15
  117. package/dist/{chunk-EZUTDTFM.cjs → chunk-ERSLQ4C7.cjs} +18 -11
  118. package/dist/{chunk-4WXNTAOM.mjs → chunk-EUVHELJL.mjs} +1 -1
  119. package/dist/{chunk-VGZIIOU6.cjs → chunk-EWPH5IOC.cjs} +26 -19
  120. package/dist/{chunk-J6TZRYCO.cjs → chunk-F5JTXLS7.cjs} +6 -1
  121. package/dist/{chunk-UWDFH3ZV.mjs → chunk-FFROR7QD.mjs} +1 -1
  122. package/dist/{chunk-HUGPJFOC.cjs → chunk-G22QP2MX.cjs} +9 -5
  123. package/dist/{chunk-PMJSG4JS.cjs → chunk-G5KGLMPN.cjs} +6 -1
  124. package/dist/{chunk-4Q263EQI.mjs → chunk-GAD63TH7.mjs} +9 -9
  125. package/dist/{chunk-R5U7OIPI.cjs → chunk-GAII22G2.cjs} +6 -1
  126. package/dist/{chunk-SSFAPTRD.mjs → chunk-GK2RCRT2.mjs} +1 -1
  127. package/dist/{chunk-6CTFVBAT.cjs → chunk-GKYOFMPQ.cjs} +6 -1
  128. package/dist/{chunk-JYT7AN37.cjs → chunk-GLP3ID53.cjs} +6 -1
  129. package/dist/{chunk-QBJ6N5MT.mjs → chunk-GN2RXH72.mjs} +1 -1
  130. package/dist/{chunk-RQRTH57V.cjs → chunk-GQONHUMI.cjs} +6 -1
  131. package/dist/{chunk-EOXPRC2C.cjs → chunk-GQQID5IB.cjs} +7 -1
  132. package/dist/{chunk-IUKBPBM7.cjs → chunk-GUDYDNKU.cjs} +6 -1
  133. package/dist/{chunk-6GJZJAED.mjs → chunk-GUNPDMSX.mjs} +1 -1
  134. package/dist/{chunk-Z43CIBUR.cjs → chunk-GUYGMTWA.cjs} +20 -13
  135. package/dist/{chunk-QO24II6C.mjs → chunk-GXWCR7PP.mjs} +7 -3
  136. package/dist/{chunk-VS7HLH4S.cjs → chunk-GYH2B4YQ.cjs} +12 -8
  137. package/dist/{chunk-RGMUS3HO.cjs → chunk-H3TYWCMG.cjs} +18 -14
  138. package/dist/{chunk-2OF5RPVU.cjs → chunk-H5AC3XSE.cjs} +18 -14
  139. package/dist/{chunk-ZIOFRBIU.cjs → chunk-H7INTSUK.cjs} +15 -9
  140. package/dist/{chunk-RFNQTQ44.cjs → chunk-HBRCMX24.cjs} +10 -5
  141. package/dist/{chunk-UA77C2ZA.cjs → chunk-HF3JJPH4.cjs} +58 -50
  142. package/dist/{chunk-HV6CYSMF.mjs → chunk-HHZURH4U.mjs} +1 -17
  143. package/dist/{chunk-JP5TWUK2.cjs → chunk-HSAHQBMG.cjs} +8 -4
  144. package/dist/{chunk-OQOII62L.mjs → chunk-HYYOVRED.mjs} +2 -2
  145. package/dist/{chunk-3BTN3NP7.cjs → chunk-I5PDHLKE.cjs} +6 -2
  146. package/dist/{chunk-2RSVYJT6.cjs → chunk-IBZW57NW.cjs} +9 -5
  147. package/dist/{chunk-KORZ6PRE.cjs → chunk-IDUGG7VR.cjs} +6 -1
  148. package/dist/{chunk-6JHZPB52.cjs → chunk-IEZFFXSC.cjs} +10 -6
  149. package/dist/{chunk-VACYUMXW.cjs → chunk-IGA3OTFY.cjs} +37 -29
  150. package/dist/{chunk-YSRZSKQB.cjs → chunk-IGBQSUT5.cjs} +55 -40
  151. package/dist/{chunk-JIBEFLQ7.cjs → chunk-IKYNDANT.cjs} +7 -1
  152. package/dist/{chunk-KBGZ5FD6.cjs → chunk-IVEV44O2.cjs} +6 -2
  153. package/dist/{chunk-MCSRMEQV.cjs → chunk-J2JMESBJ.cjs} +6 -1
  154. package/dist/{chunk-WMRGIQTA.cjs → chunk-J3RIMCBD.cjs} +6 -1
  155. package/dist/{chunk-MWAWMFG3.cjs → chunk-J6JAUJPC.cjs} +737 -709
  156. package/dist/{chunk-N4AQNEXR.cjs → chunk-JIBZ6SCC.cjs} +6 -1
  157. package/dist/{chunk-SWPLGPYF.cjs → chunk-JKNQMGZE.cjs} +28 -24
  158. package/dist/{chunk-IZYFP7IN.cjs → chunk-JOSR2E2C.cjs} +17 -13
  159. package/dist/{chunk-AOKXITZ6.cjs → chunk-JOZDAIKZ.cjs} +6 -1
  160. package/dist/{chunk-EODGIFI7.cjs → chunk-JYQMGMKT.cjs} +16 -4
  161. package/dist/{chunk-J6RFB324.cjs → chunk-JZCUDAH2.cjs} +6 -1
  162. package/dist/{chunk-N2BRIN7I.mjs → chunk-K44IR6WC.mjs} +1 -1
  163. package/dist/{chunk-SUCDVKUB.cjs → chunk-K6LZMZNB.cjs} +6 -1
  164. package/dist/{chunk-GYJT2U7J.cjs → chunk-KAD5WBY4.cjs} +9 -5
  165. package/dist/{chunk-O4JYMU5N.cjs → chunk-KDUVIJSZ.cjs} +22 -18
  166. package/dist/{chunk-2LHZD3OP.cjs → chunk-KEBD377T.cjs} +6 -2
  167. package/dist/{chunk-3DE6RK7K.cjs → chunk-KHTJVI6B.cjs} +6 -1
  168. package/dist/{chunk-OY5XDG24.cjs → chunk-KI3B3H5K.cjs} +9 -5
  169. package/dist/{chunk-ANKMAGFJ.mjs → chunk-KJW6KEOZ.mjs} +1 -1
  170. package/dist/{chunk-4A6A6P4T.mjs → chunk-KKXGBQ2K.mjs} +3 -3
  171. package/dist/{chunk-4IE3YK7U.mjs → chunk-KQXYBJES.mjs} +14 -11
  172. package/dist/{chunk-P2355C6E.cjs → chunk-KSRWTQ6J.cjs} +6 -1
  173. package/dist/{chunk-SHIWRBFI.cjs → chunk-KUG3P3GY.cjs} +6 -1
  174. package/dist/{chunk-T7HGXF7D.cjs → chunk-KXCPX3HE.cjs} +11 -7
  175. package/dist/{chunk-C5QHZ626.cjs → chunk-KXXZDS7C.cjs} +6 -1
  176. package/dist/{chunk-DUIP64BF.cjs → chunk-KYFTDHNN.cjs} +6 -1
  177. package/dist/{chunk-VXCFJWK5.cjs → chunk-L6CW5AWM.cjs} +6 -1
  178. package/dist/{chunk-XGPRM7OK.cjs → chunk-LEK3P2ZD.cjs} +16 -7
  179. package/dist/{chunk-T7UC2ORA.cjs → chunk-LEZJZX4C.cjs} +7 -18
  180. package/dist/{chunk-HA7YRO53.cjs → chunk-LF7HAALM.cjs} +6 -1
  181. package/dist/{chunk-2KMIJDY6.cjs → chunk-LG62AYPQ.cjs} +6 -1
  182. package/dist/{chunk-OLIWLN4I.cjs → chunk-LGL5QKUJ.cjs} +24 -20
  183. package/dist/{chunk-SMUW7UST.mjs → chunk-LO5BNR6Y.mjs} +7 -2
  184. package/dist/{chunk-PWDBWXQI.cjs → chunk-LVYUTMW4.cjs} +6 -1
  185. package/dist/{chunk-XRRHPBG2.cjs → chunk-M6W3AN57.cjs} +6 -1
  186. package/dist/{chunk-PZXYAWYG.cjs → chunk-M7RS7HSB.cjs} +13 -8
  187. package/dist/{chunk-I5KPOXUE.mjs → chunk-MEIZIRMK.mjs} +1 -1
  188. package/dist/{chunk-HNB5JHBO.mjs → chunk-MLMDOIBY.mjs} +5 -5
  189. package/dist/{chunk-CEVXKJKF.cjs → chunk-MMSCWTJT.cjs} +6 -1
  190. package/dist/{chunk-SIECKBNK.cjs → chunk-MNBFSAWF.cjs} +7 -2
  191. package/dist/{chunk-EA5HVG45.cjs → chunk-MUQP2APN.cjs} +9 -2
  192. package/dist/{chunk-XOLYZZDX.mjs → chunk-MX4G24YS.mjs} +110 -56
  193. package/dist/{chunk-SCE7VWPN.cjs → chunk-MZG5M4JS.cjs} +48 -41
  194. package/dist/{chunk-DVAZ53X6.cjs → chunk-N4AM7Q34.cjs} +77 -73
  195. package/dist/{chunk-DXUXQP2T.cjs → chunk-N4C72FCD.cjs} +6 -1
  196. package/dist/{chunk-H7REG7OX.cjs → chunk-NKW4JEOH.cjs} +13 -9
  197. package/dist/{chunk-XRFGOYXG.cjs → chunk-NMMCBJZM.cjs} +17 -12
  198. package/dist/{chunk-SHDCKRP4.cjs → chunk-NQUZDXKJ.cjs} +7 -3
  199. package/dist/{chunk-UGWKNZ4U.cjs → chunk-O47IT4CS.cjs} +25 -21
  200. package/dist/{chunk-EUZFBHPP.cjs → chunk-O7B6LJWE.cjs} +7 -3
  201. package/dist/{chunk-UOMSGJHK.cjs → chunk-OAAVIFOJ.cjs} +116 -103
  202. package/dist/{chunk-SAUGKNCF.cjs → chunk-OBERQH7M.cjs} +42 -37
  203. package/dist/{chunk-NW3DL2PM.cjs → chunk-OCQSYDMG.cjs} +11 -4
  204. package/dist/{chunk-ZNXU4E6A.cjs → chunk-OSLI2SCA.cjs} +83 -72
  205. package/dist/{chunk-HLYRXN2I.cjs → chunk-OUOUPA37.cjs} +6 -1
  206. package/dist/{chunk-YIGUFJMR.cjs → chunk-OVSK47CZ.cjs} +6 -1
  207. package/dist/{chunk-ATYTLVSI.cjs → chunk-OX63SW6N.cjs} +7 -1
  208. package/dist/{chunk-GTHBWZUK.mjs → chunk-OZAVCLXY.mjs} +1 -1
  209. package/dist/{chunk-YKHRCY4T.cjs → chunk-P2LSRUQB.cjs} +6 -1
  210. package/dist/{chunk-XJDB564A.cjs → chunk-P4ZLFUNB.cjs} +7 -2
  211. package/dist/{chunk-2OFP3IVA.cjs → chunk-P5RNGH52.cjs} +32 -18
  212. package/dist/{chunk-NZRAUCUL.cjs → chunk-PATIHHC7.cjs} +26 -20
  213. package/dist/{chunk-6FXBJPF5.cjs → chunk-PCF54MSR.cjs} +6 -1
  214. package/dist/{chunk-52Q4OB4A.cjs → chunk-PFVNPOKN.cjs} +21 -7
  215. package/dist/{chunk-GVYZCJZH.cjs → chunk-PHYSFHJK.cjs} +6 -1
  216. package/dist/{chunk-4DCWVSL2.cjs → chunk-PHZ7MLRQ.cjs} +6 -1
  217. package/dist/{chunk-PCAEJNQF.cjs → chunk-PNMRXZS5.cjs} +13 -9
  218. package/dist/{chunk-HS4JPIGR.cjs → chunk-PRKFECGT.cjs} +7 -3
  219. package/dist/chunk-PTG5BEMG.mjs +47 -0
  220. package/dist/{chunk-YUCU6XB4.cjs → chunk-PYPHM7AS.cjs} +9 -4
  221. package/dist/{chunk-YNPVG2GG.mjs → chunk-PZ5ZJAAO.mjs} +2 -2
  222. package/dist/{chunk-H7OFZJCV.cjs → chunk-QBMMQS25.cjs} +14 -8
  223. package/dist/{chunk-Y2FEFQAY.cjs → chunk-QCVP22KW.cjs} +8 -5
  224. package/dist/{chunk-J3GFOQOL.cjs → chunk-QGJL7EPX.cjs} +13 -9
  225. package/dist/{chunk-2PE5STAR.cjs → chunk-QHHEL4ZO.cjs} +6 -2
  226. package/dist/{chunk-LTOT5KVJ.mjs → chunk-QKXQFBNL.mjs} +1 -1
  227. package/dist/{chunk-L6E5BSNU.cjs → chunk-QT7MJL5E.cjs} +7 -3
  228. package/dist/{chunk-ERMUL73L.cjs → chunk-QTGYT2DF.cjs} +6 -1
  229. package/dist/{chunk-WBTHHTBO.cjs → chunk-QW5I5D5T.cjs} +6 -1
  230. package/dist/{chunk-IIHZ2BEE.cjs → chunk-QZRFEHMS.cjs} +15 -11
  231. package/dist/{chunk-HXNLKCWH.cjs → chunk-QZVPBDF7.cjs} +6 -1
  232. package/dist/{chunk-JH4CDG4G.cjs → chunk-R6GOH5CH.cjs} +18 -14
  233. package/dist/{chunk-2BEGVSDF.cjs → chunk-RBDAW6IZ.cjs} +7 -3
  234. package/dist/{chunk-HVGINJTO.mjs → chunk-RDT2LJES.mjs} +77 -40
  235. package/dist/{chunk-PLJMEUAN.cjs → chunk-RFKPIAOF.cjs} +9 -1
  236. package/dist/{chunk-WPURVYXT.cjs → chunk-RGIHE6YL.cjs} +6 -2
  237. package/dist/{chunk-6B44ZU5P.cjs → chunk-RHORD2K2.cjs} +19 -15
  238. package/dist/{chunk-7MMDEIVC.mjs → chunk-RKWZ6F5D.mjs} +2 -2
  239. package/dist/{chunk-OCS3PSYR.cjs → chunk-RLC7NNTA.cjs} +6 -1
  240. package/dist/{chunk-WEZTGM7N.cjs → chunk-RMLXUVR5.cjs} +11 -9
  241. package/dist/{chunk-Q637AXGZ.mjs → chunk-RP55BUJM.mjs} +103 -20
  242. package/dist/{chunk-STF6VDYQ.cjs → chunk-RQSPBWXJ.cjs} +6 -1
  243. package/dist/{chunk-RWR7SMD7.cjs → chunk-S2QSTMBE.cjs} +7 -3
  244. package/dist/{chunk-GCJ4GNMC.cjs → chunk-SGBEJBBB.cjs} +8 -4
  245. package/dist/chunk-SGRWZEQC.cjs +44 -0
  246. package/dist/{chunk-BW563VZZ.mjs → chunk-SIHHYNX4.mjs} +1 -1
  247. package/dist/{chunk-NDMPGFKL.cjs → chunk-SIQPXYBB.cjs} +6 -1
  248. package/dist/{chunk-2HTNASSB.cjs → chunk-SM4Y7CL4.cjs} +10 -6
  249. package/dist/{chunk-UNJZGVPU.cjs → chunk-SQ5O5EDN.cjs} +6 -1
  250. package/dist/{chunk-A25FXJ7D.cjs → chunk-SWOJU7LI.cjs} +6 -1
  251. package/dist/{chunk-BNH53KOT.cjs → chunk-SZBBBLLS.cjs} +6 -1
  252. package/dist/{chunk-EXPVSFAG.cjs → chunk-T4VF6BYV.cjs} +50 -41
  253. package/dist/{chunk-ML4TOUZP.cjs → chunk-T4YCWRCJ.cjs} +6 -1
  254. package/dist/{chunk-NDOE76QC.cjs → chunk-TDAH76RR.cjs} +8 -4
  255. package/dist/{chunk-D22BUQKW.cjs → chunk-TFCBJFP7.cjs} +6 -1
  256. package/dist/{chunk-NWF2FTFV.mjs → chunk-TP3ISVRU.mjs} +2 -9
  257. package/dist/{chunk-3EIPOTZV.cjs → chunk-TP7JAC3T.cjs} +6 -2
  258. package/dist/{chunk-FB4CWSC2.cjs → chunk-TSLXAEGM.cjs} +16 -12
  259. package/dist/{chunk-5LJF4KUZ.cjs → chunk-U2HFXURZ.cjs} +19 -9
  260. package/dist/{chunk-SHD265HW.cjs → chunk-U3NUGF2E.cjs} +7 -1
  261. package/dist/{chunk-SVXOCTQ2.cjs → chunk-UARKTC55.cjs} +6 -1
  262. package/dist/{chunk-UZM3PDKK.cjs → chunk-UGL4BDNB.cjs} +27 -3
  263. package/dist/{chunk-GBMWLDCC.cjs → chunk-UHTXBC4Q.cjs} +7 -1
  264. package/dist/{chunk-47JV57DA.cjs → chunk-UOFTT6S4.cjs} +6 -1
  265. package/dist/{chunk-NNNMFSXG.mjs → chunk-V36K4TSU.mjs} +2 -2
  266. package/dist/{chunk-I2RBHZF7.cjs → chunk-VB7P66Q4.cjs} +6 -1
  267. package/dist/{chunk-BIAGSYIZ.cjs → chunk-VD7ENQP2.cjs} +54 -47
  268. package/dist/{chunk-J2EKGR6E.cjs → chunk-VFZQXADS.cjs} +719 -634
  269. package/dist/{chunk-NLBHLPEO.cjs → chunk-VIDUNAQE.cjs} +6 -1
  270. package/dist/{chunk-VM57CK74.cjs → chunk-VNWKJOJF.cjs} +6 -1
  271. package/dist/{chunk-MPU5DOXX.cjs → chunk-VUCDMV3Q.cjs} +6 -1
  272. package/dist/{chunk-M4YXD6MD.cjs → chunk-VWPGK6UV.cjs} +837 -769
  273. package/dist/{chunk-L2GUEYHR.cjs → chunk-VZ2P6GRC.cjs} +8 -1
  274. package/dist/{chunk-3SPECQXI.cjs → chunk-W4KSV6GX.cjs} +13 -9
  275. package/dist/{chunk-CHOOBTDD.cjs → chunk-W4WFKRLR.cjs} +17 -13
  276. package/dist/chunk-W7BMZI3I.cjs +6 -0
  277. package/dist/{chunk-SNP33A33.cjs → chunk-WCPGU6J6.cjs} +6 -1
  278. package/dist/{chunk-2OR5WAD5.cjs → chunk-WFNL24R6.cjs} +58 -43
  279. package/dist/{chunk-XOFJUSWC.cjs → chunk-WJ5ADUI2.cjs} +18 -14
  280. package/dist/{chunk-SPKZCFPH.mjs → chunk-WOPQQCP3.mjs} +5 -5
  281. package/dist/{chunk-ZSVFI7JM.cjs → chunk-WXPY5FRF.cjs} +23 -18
  282. package/dist/{chunk-JCYDWJVO.cjs → chunk-WZSLDPVZ.cjs} +13 -9
  283. package/dist/{chunk-O5YM6GU3.mjs → chunk-X2TC6PBK.mjs} +1 -1
  284. package/dist/{chunk-BSX5OGSD.cjs → chunk-XE3E4MER.cjs} +24 -20
  285. package/dist/{chunk-3BIASUGR.cjs → chunk-XEPUUTGC.cjs} +6 -1
  286. package/dist/{chunk-HQKCSJEH.cjs → chunk-XH4GQ7MT.cjs} +17 -10
  287. package/dist/{chunk-5AMH6AFA.cjs → chunk-XK7SRVHC.cjs} +15 -11
  288. package/dist/{chunk-WKVYF2B5.cjs → chunk-XSJYXUY6.cjs} +6 -1
  289. package/dist/{chunk-5DX3O6TT.cjs → chunk-XSLYRNNA.cjs} +8 -4
  290. package/dist/{chunk-UUQNJDGH.cjs → chunk-XTQPYWQW.cjs} +6 -1
  291. package/dist/{chunk-3HLQTOVU.cjs → chunk-XVD5Y6S4.cjs} +6 -1
  292. package/dist/{chunk-7Q2YWZF7.cjs → chunk-XXBWKAJF.cjs} +14 -10
  293. package/dist/{chunk-YDXLC4DW.cjs → chunk-XZ6L3FUU.cjs} +6 -1
  294. package/dist/{chunk-FZ7OUN5M.cjs → chunk-Y3HLU2XL.cjs} +6 -2
  295. package/dist/{chunk-I2BYNELA.cjs → chunk-Y6WRVFD6.cjs} +9 -5
  296. package/dist/{chunk-OOZEU5KK.cjs → chunk-YC3LKWJO.cjs} +6 -1
  297. package/dist/{chunk-SXXSQVKK.cjs → chunk-YCIFGYBY.cjs} +13 -8
  298. package/dist/{chunk-CYOTNHDF.cjs → chunk-YHALJBYT.cjs} +6 -2
  299. package/dist/{chunk-WOAXQ5MZ.cjs → chunk-YLEL4ZRQ.cjs} +18 -14
  300. package/dist/{chunk-WEGAVN37.cjs → chunk-YMJK6VWQ.cjs} +6 -1
  301. package/dist/{chunk-2HW5LWAH.cjs → chunk-YQ5NVEFS.cjs} +6 -1
  302. package/dist/{chunk-AQLHD6HZ.cjs → chunk-YQXLBYY2.cjs} +20 -11
  303. package/dist/{chunk-IBEHVSU4.cjs → chunk-YUV5XXDC.cjs} +6 -1
  304. package/dist/{chunk-PWMJBCAN.cjs → chunk-YV47TSSB.cjs} +7 -3
  305. package/dist/{chunk-X333W5KV.cjs → chunk-YZMSJRM5.cjs} +6 -1
  306. package/dist/{chunk-VFMHE5D3.cjs → chunk-Z23OCU33.cjs} +29 -25
  307. package/dist/{chunk-DBYNZIIQ.cjs → chunk-Z2JQR56W.cjs} +6 -1
  308. package/dist/chunk-Z7YIQ7AJ.cjs +16 -0
  309. package/dist/{chunk-RTAWQXME.cjs → chunk-ZCT6B5PQ.cjs} +242 -145
  310. package/dist/{chunk-P2TGLGRR.mjs → chunk-ZF7N222A.mjs} +2 -2
  311. package/dist/{chunk-RK3YYUX6.cjs → chunk-ZKVA2TV6.cjs} +6 -1
  312. package/dist/{chunk-SAPG45RA.cjs → chunk-ZPZGC6OD.cjs} +31 -27
  313. package/dist/{chunk-DV52ZS53.cjs → chunk-ZRRNF26T.cjs} +6 -2
  314. package/dist/{chunk-26ZTI2ZO.mjs → chunk-ZRTBDHO2.mjs} +19 -14
  315. package/dist/{chunk-PO5MXV5X.cjs → chunk-ZSSBEPN4.cjs} +6 -1
  316. package/dist/{chunk-TWFJJPE7.cjs → chunk-ZTNU4XCC.cjs} +42 -38
  317. package/dist/{chunk-V5FEFFHV.mjs → chunk-ZVEKOMZS.mjs} +1 -1
  318. package/dist/{cli-runtime.d-oUiNuspW.d.mts → cli-runtime.d-LwIb0swO.d.mts} +5 -5
  319. package/dist/{cli-runtime.d-Dbl-gIoz.d.ts → cli-runtime.d-Vvxf-Z8a.d.ts} +5 -5
  320. package/dist/client/lifecycle.cjs +8 -3
  321. package/dist/client/lifecycle.mjs +1 -1
  322. package/dist/{client-component.d-DaUqOhZT.d.mts → client-component.d-34DDMZcl.d.mts} +1 -1
  323. package/dist/{client-component.d-CT4q7tmy.d.ts → client-component.d-DT5OKBZu.d.ts} +1 -1
  324. package/dist/client-plugins.cjs +8 -3
  325. package/dist/{client-plugins.d-BfGTqbAH.d.mts → client-plugins.d-D7k9t9Ge.d.mts} +31 -12
  326. package/dist/{client-plugins.d-24qhjX8c.d.ts → client-plugins.d-D9CnUvZ5.d.ts} +31 -12
  327. package/dist/client-plugins.d.mts +1 -1
  328. package/dist/client-plugins.d.ts +1 -1
  329. package/dist/client-plugins.mjs +1 -1
  330. package/dist/client.cjs +51 -51
  331. package/dist/client.d.mts +7 -7
  332. package/dist/client.d.ts +7 -7
  333. package/dist/client.mjs +1 -1
  334. package/dist/config.cjs +3 -3
  335. package/dist/config.d.mts +1 -1
  336. package/dist/config.d.ts +1 -1
  337. package/dist/config.mjs +1 -1
  338. package/dist/cron.cjs +9 -9
  339. package/dist/cron.mjs +1 -1
  340. package/dist/deferred.cjs +3 -3
  341. package/dist/deferred.mjs +1 -1
  342. package/dist/deployment.cjs +3 -3
  343. package/dist/deployment.mjs +1 -1
  344. package/dist/desktop.cjs +4 -1
  345. package/dist/desktop.d.mts +2 -2
  346. package/dist/desktop.d.ts +2 -2
  347. package/dist/desktop.mjs +1 -1
  348. package/dist/{dev-guard-VIEEA4LS.cjs → dev-guard-M3ZCDWCK.cjs} +14 -11
  349. package/dist/{dev-guard-K3GJDPEQ.mjs → dev-guard-TFVWJNIB.mjs} +2 -2
  350. package/dist/{devtools-5WDQQDTA.cjs → devtools-IUU4SWQL.cjs} +78 -72
  351. package/dist/{devtools-DPYIYHTI.mjs → devtools-R77KAJA4.mjs} +11 -8
  352. package/dist/{devtools-client-BKBCCORT.cjs → devtools-client-3K67NMWA.cjs} +7 -4
  353. package/dist/{devtools-client-L4MUWD6K.mjs → devtools-client-WAMA6Q77.mjs} +1 -1
  354. package/dist/{devtools-ui-C2EMF2SO.cjs → devtools-ui-TPBPQEEB.cjs} +4 -1
  355. package/dist/{devtools-ui-BOG33MT5.mjs → devtools-ui-UYEVDADD.mjs} +1 -1
  356. package/dist/docs.cjs +73 -72
  357. package/dist/docs.d.mts +3 -3
  358. package/dist/docs.d.ts +3 -3
  359. package/dist/docs.mjs +9 -8
  360. package/dist/env-types.cjs +4 -4
  361. package/dist/env-types.mjs +1 -1
  362. package/dist/env.cjs +4 -4
  363. package/dist/env.mjs +1 -1
  364. package/dist/environment/vite.cjs +17 -16
  365. package/dist/environment/vite.d.mts +1 -0
  366. package/dist/environment/vite.d.ts +1 -0
  367. package/dist/environment/vite.mjs +6 -5
  368. package/dist/environment.cjs +3 -3
  369. package/dist/environment.mjs +1 -1
  370. package/dist/font.cjs +3 -3
  371. package/dist/font.mjs +1 -1
  372. package/dist/{handler.d-Oca5kNSz.d.ts → handler.d-DbZvbwNi.d.ts} +1 -1
  373. package/dist/{handler.d-GfNuz57p.d.mts → handler.d-fxTjv3Nn.d.mts} +1 -1
  374. package/dist/headers.cjs +6 -6
  375. package/dist/{headers.d-C_lsQIWA.d.mts → headers.d-OBHpGTF_.d.mts} +1 -1
  376. package/dist/{headers.d-b8gHJDvu.d.ts → headers.d-oeWybIk8.d.ts} +1 -1
  377. package/dist/headers.mjs +1 -1
  378. package/dist/i18n/client.cjs +23 -20
  379. package/dist/i18n/client.mjs +1 -1
  380. package/dist/i18n/index.cjs +12 -7
  381. package/dist/i18n/index.mjs +1 -1
  382. package/dist/i18n/server.cjs +11 -11
  383. package/dist/i18n/server.mjs +1 -1
  384. package/dist/image/server.cjs +8 -8
  385. package/dist/image/server.mjs +1 -1
  386. package/dist/image/sharp.cjs +21 -18
  387. package/dist/image/sharp.mjs +1 -1
  388. package/dist/image.cjs +7 -4
  389. package/dist/image.mjs +1 -1
  390. package/dist/index.cjs +229 -216
  391. package/dist/{index.d-Ckv6kHFm.d.ts → index.d-BM-dKdzH.d.ts} +1 -1
  392. package/dist/{index.d-BLtjh1aS.d.mts → index.d-CRrPQwlO.d.mts} +1 -1
  393. package/dist/index.d.mts +22 -22
  394. package/dist/index.d.ts +22 -22
  395. package/dist/index.mjs +42 -41
  396. package/dist/instrumentation.cjs +5 -5
  397. package/dist/instrumentation.mjs +1 -1
  398. package/dist/integrations/orm.cjs +7 -7
  399. package/dist/integrations/orm.d.mts +1 -1
  400. package/dist/integrations/orm.d.ts +1 -1
  401. package/dist/integrations/orm.mjs +3 -3
  402. package/dist/integrations.cjs +22 -22
  403. package/dist/integrations.d.mts +1 -1
  404. package/dist/integrations.d.ts +1 -1
  405. package/dist/integrations.mjs +2 -2
  406. package/dist/internal/app-markdown-runtime.cjs +14 -14
  407. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  408. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  409. package/dist/internal/app-markdown-runtime.mjs +2 -2
  410. package/dist/internal/build-runtime.cjs +187 -181
  411. package/dist/internal/build-runtime.d.mts +5 -5
  412. package/dist/internal/build-runtime.d.ts +5 -5
  413. package/dist/internal/build-runtime.mjs +36 -35
  414. package/dist/internal/cli-runtime.cjs +106 -100
  415. package/dist/internal/cli-runtime.d.mts +7 -7
  416. package/dist/internal/cli-runtime.d.ts +7 -7
  417. package/dist/internal/cli-runtime.mjs +18 -17
  418. package/dist/internal/client-error-overlay.cjs +12 -9
  419. package/dist/internal/client-error-overlay.mjs +2 -2
  420. package/dist/internal/client-runtime.cjs +37 -26
  421. package/dist/internal/client-runtime.d.mts +5 -5
  422. package/dist/internal/client-runtime.d.ts +5 -5
  423. package/dist/internal/client-runtime.mjs +1 -1
  424. package/dist/internal/compression-runtime.cjs +4 -4
  425. package/dist/internal/compression-runtime.d.mts +1 -1
  426. package/dist/internal/compression-runtime.d.ts +1 -1
  427. package/dist/internal/compression-runtime.mjs +1 -1
  428. package/dist/internal/config-runtime.cjs +86 -82
  429. package/dist/internal/config-runtime.d.mts +3 -3
  430. package/dist/internal/config-runtime.d.ts +3 -3
  431. package/dist/internal/config-runtime.mjs +10 -9
  432. package/dist/internal/desktop-guard.cjs +5 -5
  433. package/dist/internal/desktop-guard.mjs +1 -1
  434. package/dist/internal/docs-precompiled-runtime.cjs +10 -7
  435. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  436. package/dist/internal/form-actions-client.cjs +4 -1
  437. package/dist/internal/form-actions-client.mjs +1 -1
  438. package/dist/internal/form-actions.cjs +13 -13
  439. package/dist/internal/form-actions.mjs +1 -1
  440. package/dist/internal/infra-analytics-runtime.cjs +32 -29
  441. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  442. package/dist/internal/island-codec.cjs +4 -4
  443. package/dist/internal/island-codec.mjs +1 -1
  444. package/dist/internal/island-value-store.cjs +4 -1
  445. package/dist/internal/island-value-store.mjs +1 -1
  446. package/dist/internal/islands-action-client.cjs +10 -10
  447. package/dist/internal/islands-action-client.mjs +1 -1
  448. package/dist/internal/islands-boot.cjs +6 -3
  449. package/dist/internal/islands-boot.mjs +1 -1
  450. package/dist/internal/islands-runtime.cjs +12 -9
  451. package/dist/internal/islands-runtime.mjs +2 -2
  452. package/dist/internal/islands-server-tree.cjs +4 -1
  453. package/dist/internal/islands-server-tree.mjs +1 -1
  454. package/dist/internal/islands-server.cjs +9 -6
  455. package/dist/internal/islands-server.mjs +1 -1
  456. package/dist/internal/islx-actions-client.cjs +13 -10
  457. package/dist/internal/islx-actions-client.mjs +1 -1
  458. package/dist/internal/islx-actions-server.cjs +4 -1
  459. package/dist/internal/islx-actions-server.mjs +1 -1
  460. package/dist/internal/islx-client.cjs +7 -4
  461. package/dist/internal/islx-client.mjs +2 -2
  462. package/dist/internal/islx-react.cjs +4 -1
  463. package/dist/internal/islx-server.cjs +4 -1
  464. package/dist/internal/isolated-boundary.cjs +5 -5
  465. package/dist/internal/isolated-boundary.mjs +1 -1
  466. package/dist/internal/metadata-image-runtime.cjs +8 -8
  467. package/dist/internal/metadata-image-runtime.mjs +1 -1
  468. package/dist/internal/native-server-fns.cjs +10 -10
  469. package/dist/internal/native-server-fns.mjs +4 -4
  470. package/dist/internal/navigation-neutral.cjs +6 -3
  471. package/dist/internal/navigation-neutral.mjs +1 -1
  472. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  473. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  474. package/dist/internal/production-node-env.cjs +3 -3
  475. package/dist/internal/production-node-env.mjs +2 -2
  476. package/dist/internal/production-runtime.cjs +97 -89
  477. package/dist/internal/production-runtime.d.mts +10 -10
  478. package/dist/internal/production-runtime.d.ts +10 -10
  479. package/dist/internal/production-runtime.mjs +6 -6
  480. package/dist/internal/react-cache.cjs +10 -7
  481. package/dist/internal/react-cache.mjs +1 -1
  482. package/dist/internal/renderer-islands.cjs +4 -1
  483. package/dist/internal/renderer-islands.mjs +1 -1
  484. package/dist/internal/request-cookies.cjs +3 -3
  485. package/dist/internal/request-cookies.mjs +1 -1
  486. package/dist/internal/server-fn-transform.cjs +3 -3
  487. package/dist/internal/server-fn-transform.mjs +1 -1
  488. package/dist/internal/server-tree.cjs +5 -5
  489. package/dist/internal/server-tree.mjs +1 -1
  490. package/dist/internal/spa-router.cjs +20 -20
  491. package/dist/internal/spa-router.d.mts +3 -3
  492. package/dist/internal/spa-router.d.ts +3 -3
  493. package/dist/internal/spa-router.mjs +1 -1
  494. package/dist/internal/start-manifest.cjs +4 -1
  495. package/dist/internal/start-manifest.d.mts +1 -1
  496. package/dist/internal/start-manifest.d.ts +1 -1
  497. package/dist/internal/start-manifest.mjs +1 -1
  498. package/dist/internal/vercel-edge-middleware.cjs +23 -20
  499. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  500. package/dist/json-ld.cjs +4 -1
  501. package/dist/json-ld.mjs +1 -1
  502. package/dist/layers-6R55QDT5.cjs +26 -0
  503. package/dist/{layers-744BBUY5.mjs → layers-O6GUR6LT.mjs} +7 -2
  504. package/dist/{libsql-http-M6LMNXCN.cjs → libsql-http-5GYGFVGC.cjs} +94 -87
  505. package/dist/{libsql-http-2QD224YS.mjs → libsql-http-PBJXNEOX.mjs} +1 -1
  506. package/dist/{manager-7BNSJKME.mjs → manager-EFPBRS3U.mjs} +4 -4
  507. package/dist/manager-STAB5TVZ.cjs +18 -0
  508. package/dist/markdown.cjs +12 -12
  509. package/dist/markdown.d.mts +1 -1
  510. package/dist/markdown.d.ts +1 -1
  511. package/dist/markdown.mjs +1 -1
  512. package/dist/middleware.cjs +32 -32
  513. package/dist/middleware.d.mts +1 -1
  514. package/dist/middleware.d.ts +1 -1
  515. package/dist/middleware.mjs +4 -4
  516. package/dist/mobile.cjs +4 -1
  517. package/dist/mobile.mjs +1 -1
  518. package/dist/{modules-3Q2ZCY4Q.mjs → modules-IVJXVV4W.mjs} +1 -1
  519. package/dist/modules-JDPCBWND.cjs +13 -0
  520. package/dist/{mount.d-BCS8mD4E.d.mts → mount.d-B7RiwjiO.d.mts} +1 -1
  521. package/dist/{mount.d-DEX8eref.d.ts → mount.d-TnD-Mebk.d.ts} +1 -1
  522. package/dist/{native-server-fn-handler-PYK65A46.mjs → native-server-fn-handler-IMLQMSIR.mjs} +1 -1
  523. package/dist/native-server-fn-handler-U7I6H6MM.cjs +30 -0
  524. package/dist/{native-specs-A7YOL463.mjs → native-specs-4DOPYSOJ.mjs} +1 -1
  525. package/dist/native-specs-IXHEIZCD.cjs +15 -0
  526. package/dist/{native-tree-AO7PQ7FR.mjs → native-tree-2GQMSOLV.mjs} +1 -1
  527. package/dist/native-tree-PHCV43W4.cjs +28 -0
  528. package/dist/native.cjs +4 -1
  529. package/dist/native.mjs +1 -1
  530. package/dist/{navigation-delegate.d-F83ugsZW.d.mts → navigation-delegate.d-Boz2511c.d.mts} +1 -1
  531. package/dist/{navigation-delegate.d-Cgi28e5Q.d.ts → navigation-delegate.d-VBCF0EeN.d.ts} +1 -1
  532. package/dist/navigation.cjs +26 -26
  533. package/dist/navigation.d.mts +4 -4
  534. package/dist/navigation.d.ts +4 -4
  535. package/dist/navigation.mjs +1 -1
  536. package/dist/{nitro-FK3SZM4H.mjs → nitro-6HSEGMWJ.mjs} +2 -2
  537. package/dist/{nitro-YDFMH5PY.cjs → nitro-K4MCBBB6.cjs} +31 -28
  538. package/dist/{node-module-bundle-ZWCQJCKA.mjs → node-module-bundle-4IN4YCDV.mjs} +1 -1
  539. package/dist/node-module-bundle-PHKRIHI6.cjs +15 -0
  540. package/dist/observability.cjs +3 -3
  541. package/dist/observability.mjs +1 -1
  542. package/dist/og.cjs +4 -1
  543. package/dist/og.mjs +1 -1
  544. package/dist/platform.cjs +4 -1
  545. package/dist/platform.mjs +1 -1
  546. package/dist/{plugin-EVKQZBNW.mjs → plugin-B7I5QVBE.mjs} +2 -2
  547. package/dist/plugin-QYBJSGHG.cjs +33 -0
  548. package/dist/plugin.cjs +176 -170
  549. package/dist/plugin.d.mts +5 -5
  550. package/dist/plugin.d.ts +5 -5
  551. package/dist/plugin.mjs +30 -29
  552. package/dist/{port-STMSGUVU.cjs → port-2YV5GBDN.cjs} +13 -10
  553. package/dist/{port-CEZTV776.mjs → port-4ZIDLV4Z.mjs} +1 -1
  554. package/dist/query/client.cjs +38 -34
  555. package/dist/query/client.mjs +1 -1
  556. package/dist/query/index.cjs +5 -5
  557. package/dist/query/index.mjs +1 -1
  558. package/dist/query/parsers.cjs +3 -3
  559. package/dist/query/parsers.mjs +1 -1
  560. package/dist/query/server.cjs +8 -5
  561. package/dist/query/server.mjs +1 -1
  562. package/dist/{render-plan.d-DCF2GZdD.d.ts → render-plan.d-BrumV_ZE.d.ts} +1 -1
  563. package/dist/{render-plan.d-BkVY4aFb.d.mts → render-plan.d-BwnmyfNk.d.mts} +1 -1
  564. package/dist/renderer/none/server.cjs +4 -1
  565. package/dist/renderer/none/server.mjs +1 -1
  566. package/dist/renderer/react/client.cjs +4 -1
  567. package/dist/renderer/react/client.mjs +1 -1
  568. package/dist/renderer/react/server.cjs +14 -11
  569. package/dist/renderer/react/server.mjs +1 -1
  570. package/dist/renderer/react/vite.cjs +4 -1
  571. package/dist/renderer/react/vite.mjs +1 -1
  572. package/dist/renderer-client.cjs +67 -64
  573. package/dist/renderer-client.d.mts +5 -5
  574. package/dist/renderer-client.d.ts +5 -5
  575. package/dist/renderer-client.mjs +1 -1
  576. package/dist/renderer.cjs +12 -6
  577. package/dist/renderer.d.mts +1 -1
  578. package/dist/renderer.d.ts +1 -1
  579. package/dist/renderer.mjs +4 -3
  580. package/dist/request.cjs +9 -4
  581. package/dist/{request.d-DMPB53-i.d.mts → request.d-Dd5nRTO5.d.mts} +1 -1
  582. package/dist/{request.d-C5o-4dU2.d.ts → request.d-NUi01-5e.d.ts} +1 -1
  583. package/dist/request.d.mts +2 -2
  584. package/dist/request.d.ts +2 -2
  585. package/dist/request.mjs +1 -1
  586. package/dist/{route-rendering.d-DDvArvik.d.mts → route-rendering.d-BK0Pf7_k.d.mts} +1 -1
  587. package/dist/{route-rendering.d-DfP6zRP7.d.ts → route-rendering.d-CJR5BPXV.d.ts} +1 -1
  588. package/dist/router.cjs +5 -5
  589. package/dist/{router.d-s40h7aoS.d.ts → router.d-C-JSFCPU.d.ts} +1 -1
  590. package/dist/{router.d-1Skf2XCO.d.mts → router.d-CNUS3x1j.d.mts} +1 -1
  591. package/dist/router.mjs +1 -1
  592. package/dist/routes.cjs +16 -16
  593. package/dist/routes.d.mts +1 -1
  594. package/dist/routes.d.ts +1 -1
  595. package/dist/routes.mjs +1 -1
  596. package/dist/{rsc-pipeline-O2YMVHUF.mjs → rsc-pipeline-DHISDFT7.mjs} +13 -12
  597. package/dist/rsc-pipeline-UBWVU3NF.cjs +92 -0
  598. package/dist/{runtime-K2X3IZAF.mjs → runtime-VUKMY44G.mjs} +16 -13
  599. package/dist/{runtime-WOTVFYQY.cjs → runtime-XKRQW3YT.cjs} +132 -119
  600. package/dist/{runtime.d-k-9kFUsM.d.ts → runtime.d-B2T4bM5_.d.ts} +1 -1
  601. package/dist/{runtime.d-Bykc5Qfg.d.mts → runtime.d-CsOpO6yQ.d.mts} +1 -1
  602. package/dist/safe-fetch.cjs +4 -4
  603. package/dist/safe-fetch.mjs +1 -1
  604. package/dist/{schema-dev-notice-EUPAUJVN.mjs → schema-dev-notice-EZAOFO7A.mjs} +1 -1
  605. package/dist/{schema-dev-notice-ZSCL47CT.cjs → schema-dev-notice-Y4J5KPEY.cjs} +16 -13
  606. package/dist/schema.cjs +4 -4
  607. package/dist/schema.mjs +1 -1
  608. package/dist/{search-client-GIXIEU75.mjs → search-client-HN3ZY6AK.mjs} +1 -1
  609. package/dist/search-client-Z7KDVD4C.cjs +15 -0
  610. package/dist/server-action-security.cjs +10 -10
  611. package/dist/server-action-security.mjs +1 -1
  612. package/dist/{server-components-status.d-DLNd1C5j.d.ts → server-components-status.d-Cc5rir0l.d.mts} +2 -2
  613. package/dist/{server-components-status.d-D-HixBe0.d.mts → server-components-status.d-DOYt4E_Q.d.ts} +2 -2
  614. package/dist/server-fn-client.cjs +4 -4
  615. package/dist/server-fn-client.mjs +1 -1
  616. package/dist/server-fn.cjs +17 -17
  617. package/dist/server-fn.mjs +1 -1
  618. package/dist/server-plugins.cjs +21 -16
  619. package/dist/server-plugins.d.mts +3 -3
  620. package/dist/server-plugins.d.ts +3 -3
  621. package/dist/server-plugins.mjs +1 -1
  622. package/dist/server-query-client.cjs +10 -10
  623. package/dist/server-query-client.mjs +1 -1
  624. package/dist/server-query.cjs +19 -19
  625. package/dist/server-query.mjs +1 -1
  626. package/dist/server.cjs +236 -224
  627. package/dist/server.d.mts +12 -12
  628. package/dist/server.d.ts +12 -12
  629. package/dist/server.mjs +37 -34
  630. package/dist/session-J7NTZI56.cjs +24 -0
  631. package/dist/{session-4IB34X35.mjs → session-ZFM3RDG2.mjs} +3 -3
  632. package/dist/{spa-router.d-Dl-EJeJT.d.ts → spa-router.d-C7FcpLxU.d.ts} +2 -2
  633. package/dist/{spa-router.d-DIlXwm00.d.mts → spa-router.d-Cq5UFJvq.d.mts} +2 -2
  634. package/dist/{ssg.d-D2ZV0bhs.d.mts → ssg.d-BzNZemk7.d.mts} +2 -2
  635. package/dist/{ssg.d-bE-ylg0e.d.ts → ssg.d-DUhacIxj.d.ts} +2 -2
  636. package/dist/storage.cjs +4 -4
  637. package/dist/storage.mjs +2 -2
  638. package/dist/{store-core.d-BmdnMopD.d.ts → store-core.d-BX3yXrxA.d.ts} +2 -2
  639. package/dist/{store-core.d-DPsCYzV7.d.mts → store-core.d-DbUAtSBK.d.mts} +2 -2
  640. package/dist/testing.cjs +65 -62
  641. package/dist/testing.d.mts +1 -1
  642. package/dist/testing.d.ts +1 -1
  643. package/dist/testing.mjs +5 -5
  644. package/dist/theme/client.cjs +5 -5
  645. package/dist/theme/client.mjs +1 -1
  646. package/dist/theme/index.cjs +4 -4
  647. package/dist/theme/index.mjs +1 -1
  648. package/dist/theme/runtime.cjs +3 -3
  649. package/dist/theme/runtime.mjs +1 -1
  650. package/dist/theme/server.cjs +8 -8
  651. package/dist/theme/server.mjs +1 -1
  652. package/dist/{utils.d-BFZQcBZV.d.ts → utils.d-BhJJEXzo.d.ts} +1 -1
  653. package/dist/{utils.d-nM3OHKq5.d.mts → utils.d-NOMkLFpC.d.mts} +1 -1
  654. package/dist/version.cjs +3 -3
  655. package/dist/version.mjs +2 -2
  656. package/dist/vite.cjs +169 -168
  657. package/dist/vite.d.mts +6 -6
  658. package/dist/vite.d.ts +6 -6
  659. package/dist/vite.mjs +30 -29
  660. package/dist/workflows.cjs +14 -14
  661. package/dist/workflows.mjs +2 -2
  662. package/package.json +5 -5
  663. package/LICENSE +0 -22
  664. package/dist/agent-mcp-handler-EXOG55M4.cjs +0 -21
  665. package/dist/analyzer-OWIHFO5M.cjs +0 -17
  666. package/dist/chunk-3376ZTRC.cjs +0 -1
  667. package/dist/chunk-K5NI5YQR.cjs +0 -1
  668. package/dist/chunk-MCJLA63J.cjs +0 -1
  669. package/dist/chunk-NOSLIDSG.cjs +0 -9
  670. package/dist/chunk-PAKB6JHX.cjs +0 -40
  671. package/dist/chunk-YTAABQEV.cjs +0 -1
  672. package/dist/layers-XLOMMQP7.cjs +0 -21
  673. package/dist/manager-37UJPUN4.cjs +0 -18
  674. package/dist/modules-KDHFBQ6L.cjs +0 -13
  675. package/dist/native-server-fn-handler-57TCQPSM.cjs +0 -30
  676. package/dist/native-specs-JDPH26AO.cjs +0 -15
  677. package/dist/native-tree-52CUAP3N.cjs +0 -28
  678. package/dist/node-module-bundle-TNSY5PAC.cjs +0 -15
  679. package/dist/plugin-MWO3G2XM.cjs +0 -33
  680. package/dist/rsc-pipeline-SFQSMVI7.cjs +0 -91
  681. package/dist/search-client-A7YJT7JZ.cjs +0 -15
  682. package/dist/session-MOYQJ7E6.cjs +0 -24
  683. package/dist/{chunk-IVP5Q4BX.mjs → chunk-6IKUYFNQ.mjs} +0 -0
  684. package/dist/{chunk-D7LXBLUW.mjs → chunk-FYTZZM5U.mjs} +3 -3
  685. /package/dist/{chunk-E72GG355.mjs → chunk-HDZ2AMDD.mjs} +0 -0
  686. /package/dist/{chunk-URBP6DLH.mjs → chunk-LQZXCSYG.mjs} +0 -0
  687. /package/dist/{chunk-M6AJZ4XR.mjs → chunk-QNJUQIUZ.mjs} +0 -0
@@ -1,40 +1,48 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
4
+ var _chunkJ3RIMCBDcjs = require('./chunk-J3RIMCBD.cjs');
5
5
 
6
6
 
7
- var _chunkMNUYXZV7cjs = require('./chunk-MNUYXZV7.cjs');
7
+ var _chunkBNWADCG2cjs = require('./chunk-BNWADCG2.cjs');
8
8
 
9
9
 
10
- var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
10
+ var _chunkPFVNPOKNcjs = require('./chunk-PFVNPOKN.cjs');
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
+ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
16
17
 
17
- var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
18
18
 
19
19
 
20
- var _chunk7KJJ4SBScjs = require('./chunk-7KJJ4SBS.cjs');
20
+ var _chunkCYUTK4JPcjs = require('./chunk-CYUTK4JP.cjs');
21
21
 
22
22
 
23
+ var _chunk32HGOX3Mcjs = require('./chunk-32HGOX3M.cjs');
23
24
 
24
25
 
25
- var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
26
26
 
27
27
 
28
- var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
28
+ var _chunkPYPHM7AScjs = require('./chunk-PYPHM7AS.cjs');
29
29
 
30
30
 
31
- var _chunkNOSLIDSGcjs = require('./chunk-NOSLIDSG.cjs');
31
+ var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
32
+
33
+
34
+ var _chunkZ7YIQ7AJcjs = require('./chunk-Z7YIQ7AJ.cjs');
35
+
36
+
37
+ var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
32
38
 
33
39
  // src/environment-vite.ts
40
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
34
41
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
35
42
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
36
43
 
37
44
  // src/diagnostics.ts
45
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
38
46
  var _tracemapping = require('@jridgewell/trace-mapping');
39
47
 
40
48
  var BOUNDARY_DOCS = "/docs/environment-functions#boundary-diagnostics";
@@ -146,12 +154,14 @@ function createFarmSourceLocator(code, getCombinedSourcemap) {
146
154
  }
147
155
 
148
156
  // src/islands-react-server-exports.ts
157
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
149
158
 
150
159
 
151
160
  var _parseAst = require('rolldown/parseAst');
152
161
  var _utils = require('rolldown/utils');
153
162
 
154
163
  // src/utils/source-snapshot.ts
164
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
155
165
 
156
166
 
157
167
  var snapshot;
@@ -258,6 +268,15 @@ function withFarmSourceSnapshotOf(store, operation) {
258
268
  base = void 0;
259
269
  }
260
270
  }
271
+ function withFarmSourceSnapshotAside(store, operation) {
272
+ const saved = { snapshot, base, volatile, trace, traceGroups };
273
+ snapshot = base = volatile = trace = traceGroups = void 0;
274
+ try {
275
+ return store ? withFarmSourceSnapshotOf(store, operation) : withFarmSourceSnapshot(operation);
276
+ } finally {
277
+ ({ snapshot, base, volatile, trace, traceGroups } = saved);
278
+ }
279
+ }
261
280
  function memoizeInFarmSourceSnapshot(scope, key, compute, lasting) {
262
281
  if (!snapshot) return compute();
263
282
  let entries = snapshot.get(scope);
@@ -272,6 +291,28 @@ function memoizeInFarmSourceSnapshot(scope, key, compute, lasting) {
272
291
  if (lasting && !lasting(result)) _optionalChain([volatile, 'optionalAccess', _18 => _18.push, 'call', _19 => _19([scope, key])]);
273
292
  return result;
274
293
  }
294
+ function hasFarmNodeModulesDirectory(directory) {
295
+ return memoizeInFarmSourceSnapshot(
296
+ "node-modules-directory",
297
+ farmSourceSnapshotPathKey(directory),
298
+ () => _fs2.default.existsSync(_path2.default.join(directory, "node_modules")),
299
+ () => false
300
+ );
301
+ }
302
+ function readFarmPackageManifest(file) {
303
+ return memoizeInFarmSourceSnapshot(
304
+ "package-manifest",
305
+ farmSourceSnapshotPathKey(file),
306
+ () => {
307
+ try {
308
+ return JSON.parse(_fs2.default.readFileSync(file, "utf8"));
309
+ } catch (e3) {
310
+ return null;
311
+ }
312
+ },
313
+ () => false
314
+ );
315
+ }
275
316
  function noteFarmSourceRead(file) {
276
317
  _optionalChain([trace, 'optionalAccess', _20 => _20.add, 'call', _21 => _21(file)]);
277
318
  }
@@ -337,7 +378,9 @@ function findPackageDirectory(importer, name) {
337
378
  () => {
338
379
  for (let current = start; ; current = _path2.default.dirname(current)) {
339
380
  const directory = _path2.default.join(current, "node_modules", name);
340
- if (_fs2.default.existsSync(_path2.default.join(directory, "package.json"))) return _fs2.default.realpathSync(directory);
381
+ if (hasFarmNodeModulesDirectory(current) && _fs2.default.existsSync(_path2.default.join(directory, "package.json"))) {
382
+ return _fs2.default.realpathSync(directory);
383
+ }
341
384
  if (_path2.default.dirname(current) === current) return null;
342
385
  }
343
386
  },
@@ -406,7 +449,7 @@ function resolveFarmReactServerExport(importer, specifier) {
406
449
  const file = _path2.default.resolve(directory, server);
407
450
  if (_fs2.default.existsSync(file)) resolved = file;
408
451
  }
409
- } catch (e3) {
452
+ } catch (e4) {
410
453
  resolved = null;
411
454
  }
412
455
  cache.set(key, resolved);
@@ -421,7 +464,7 @@ function readModule(file) {
421
464
  let stat;
422
465
  try {
423
466
  stat = _fs2.default.statSync(file);
424
- } catch (e4) {
467
+ } catch (e5) {
425
468
  return null;
426
469
  }
427
470
  noteFarmSourceRead(file);
@@ -431,7 +474,7 @@ function readModule(file) {
431
474
  try {
432
475
  const code = _fs2.default.readFileSync(file, "utf8");
433
476
  program = _parseAst.parseAst.call(void 0, code, { lang: parseLang(file) });
434
- } catch (e5) {
477
+ } catch (e6) {
435
478
  program = null;
436
479
  }
437
480
  parsedModules.set(file, { size: stat.size, mtimeMs: stat.mtimeMs, program });
@@ -465,13 +508,14 @@ function resolveFarmPackageDefaultEntry(importer, specifier, conditions = ["brow
465
508
  const directory = findPackageDirectory(importer, parsed.name);
466
509
  if (!directory) return null;
467
510
  try {
468
- const manifest = JSON.parse(_fs2.default.readFileSync(_path2.default.join(directory, "package.json"), "utf8"));
511
+ const manifest = readFarmPackageManifest(_path2.default.join(directory, "package.json"));
512
+ if (manifest === null) return null;
469
513
  const target = _nullishCoalesce(pickTarget(exportEntry(manifest.exports, parsed.subpath), conditions), () => ( (!parsed.subpath ? _nullishCoalesce(_nullishCoalesce(manifest.module, () => ( manifest.main)), () => ( "index.js")) : parsed.subpath)));
470
514
  return resolveRelative(
471
515
  _path2.default.join(directory, "package.json"),
472
516
  `./${String(target).replace(/^\.\//, "")}`
473
517
  );
474
- } catch (e6) {
518
+ } catch (e7) {
475
519
  return null;
476
520
  }
477
521
  }
@@ -563,7 +607,7 @@ function parseCode(code, file) {
563
607
  return memoizeInFarmSourceSnapshot(`ast:${lang}`, code, () => {
564
608
  try {
565
609
  return _parseAst.parseAst.call(void 0, code, { lang });
566
- } catch (e7) {
610
+ } catch (e8) {
567
611
  return null;
568
612
  }
569
613
  });
@@ -768,7 +812,7 @@ function scanFarmStaticImports(code, lang) {
768
812
  let result;
769
813
  try {
770
814
  result = _utils.parseSync.call(void 0, "file.js", code, { lang, preserveParens: false });
771
- } catch (e8) {
815
+ } catch (e9) {
772
816
  return null;
773
817
  }
774
818
  if (result.errors.length > 0) return null;
@@ -800,7 +844,7 @@ function readModuleImports(file) {
800
844
  let stat;
801
845
  try {
802
846
  stat = _fs2.default.statSync(file);
803
- } catch (e9) {
847
+ } catch (e10) {
804
848
  return null;
805
849
  }
806
850
  noteFarmSourceRead(file);
@@ -814,7 +858,7 @@ function readModuleImports(file) {
814
858
  let code;
815
859
  try {
816
860
  code = _fs2.default.readFileSync(file, "utf8");
817
- } catch (e10) {
861
+ } catch (e11) {
818
862
  code = void 0;
819
863
  }
820
864
  imports = code === void 0 ? null : scanFarmStaticImports(code, parseLang(file));
@@ -834,7 +878,7 @@ function isClientOnlyScanned(file) {
834
878
  if (clientOnlyFreeFiles.has(resolved)) return true;
835
879
  try {
836
880
  return clientOnlyFreeFiles.has(_fs2.default.realpathSync(resolved));
837
- } catch (e11) {
881
+ } catch (e12) {
838
882
  return true;
839
883
  }
840
884
  }
@@ -923,7 +967,7 @@ function stampScannedPath(directory, target) {
923
967
  const stat = _fs2.default.statSync(target, { throwIfNoEntry: false });
924
968
  if (!stat) return void 0;
925
969
  return [_path2.default.relative(directory, target), stat.size, stat.mtimeMs, stat.ctimeMs];
926
- } catch (e12) {
970
+ } catch (e13) {
927
971
  return void 0;
928
972
  }
929
973
  }
@@ -936,12 +980,12 @@ function usePackageScanCacheFile(file) {
936
980
  const stored = /* @__PURE__ */ new Map();
937
981
  try {
938
982
  const value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
939
- if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkNOSLIDSGcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
983
+ if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkZ7YIQ7AJcjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
940
984
  for (const [directory, scan] of Object.entries(value.scans)) {
941
985
  if (isStoredPackageScan(scan)) stored.set(directory, scan);
942
986
  }
943
987
  }
944
- } catch (e13) {
988
+ } catch (e14) {
945
989
  }
946
990
  packageScanCache = { file, stored, dirty: false };
947
991
  }
@@ -965,14 +1009,14 @@ function persistPackageScanCache() {
965
1009
  _fs2.default.mkdirSync(_path2.default.dirname(cache2.file), { recursive: true });
966
1010
  _fs2.default.writeFileSync(
967
1011
  temporary,
968
- JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkNOSLIDSGcjs.FARM_VERSION, scans })
1012
+ JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkZ7YIQ7AJcjs.FARM_VERSION, scans })
969
1013
  );
970
1014
  _fs2.default.renameSync(temporary, cache2.file);
971
1015
  cache2.dirty = false;
972
- } catch (e14) {
1016
+ } catch (e15) {
973
1017
  try {
974
1018
  _fs2.default.rmSync(temporary, { force: true });
975
- } catch (e15) {
1019
+ } catch (e16) {
976
1020
  }
977
1021
  }
978
1022
  }
@@ -996,7 +1040,7 @@ function scanPackage(directory) {
996
1040
  stamps.push(stampScannedPath(directory, current));
997
1041
  try {
998
1042
  entries = _fs2.default.readdirSync(current, { withFileTypes: true });
999
- } catch (e16) {
1043
+ } catch (e17) {
1000
1044
  continue;
1001
1045
  }
1002
1046
  for (const entry of entries) {
@@ -1008,7 +1052,7 @@ function scanPackage(directory) {
1008
1052
  stamps.push(stampScannedPath(directory, file));
1009
1053
  try {
1010
1054
  code = _fs2.default.readFileSync(file, "utf8");
1011
- } catch (e17) {
1055
+ } catch (e18) {
1012
1056
  continue;
1013
1057
  }
1014
1058
  for (const match of code.matchAll(IMPORT_SPECIFIER)) scan.imports.add(match[1]);
@@ -1035,7 +1079,7 @@ function findFarmServerBundledPackage(importer, specifier) {
1035
1079
  if (manifest.exports === void 0 && manifest.type !== "module" && typeof manifest.module === "string" && typeof manifest.main === "string" && _path2.default.resolve(directory, manifest.main) !== _path2.default.resolve(directory, manifest.module)) {
1036
1080
  return { name: parsed.name, prebundle: isSelfContainedPackage(manifest, importer) };
1037
1081
  }
1038
- } catch (e18) {
1082
+ } catch (e19) {
1039
1083
  return null;
1040
1084
  }
1041
1085
  const scan = scanPackage(directory);
@@ -1058,7 +1102,7 @@ function findFarmPackageManifest(importer, specifier) {
1058
1102
  try {
1059
1103
  const manifest = JSON.parse(_fs2.default.readFileSync(_path2.default.join(directory, "package.json"), "utf8"));
1060
1104
  names = new Set(Object.keys(_nullishCoalesce(manifest.dependencies, () => ( {}))));
1061
- } catch (e19) {
1105
+ } catch (e20) {
1062
1106
  return null;
1063
1107
  }
1064
1108
  const dependencies = [...scanPackage(directory).imports].filter((imported) => {
@@ -1113,9 +1157,11 @@ function listFarmModuleExports(entry) {
1113
1157
  }
1114
1158
 
1115
1159
  // src/programmatic-routes-client.ts
1160
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1116
1161
  var _module = require('module');
1117
1162
 
1118
1163
  // src/browser-builtins.ts
1164
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1119
1165
 
1120
1166
  var FARM_BROWSER_BUILTIN_PREFIX = "\0farm:browser-builtin:";
1121
1167
  var BROWSER_IMPLEMENTATIONS = {
@@ -1188,7 +1234,7 @@ function resolveProgrammaticClientRoutes(options) {
1188
1234
  let untraced = false;
1189
1235
  const definedIn = /* @__PURE__ */ new Map();
1190
1236
  for (const route of definitions) {
1191
- const source = _chunkYUCU6XB4cjs.getProgrammaticRouteDefinitionSource.call(void 0, route);
1237
+ const source = _chunkPYPHM7AScjs.getProgrammaticRouteDefinitionSource.call(void 0, route);
1192
1238
  const callers = (_nullishCoalesce(_optionalChain([source, 'optionalAccess', _85 => _85.stacks]), () => ( []))).map((stack) => findRouteCallers(stack, modulesByFile));
1193
1239
  for (const caller of callers.flat()) caller.routeSource = true;
1194
1240
  definedIn.set(route, callers.flat());
@@ -1504,7 +1550,7 @@ function holdsRouteDefinition(value, definitions) {
1504
1550
  if (descriptor && "value" in descriptor) next(descriptor.value);
1505
1551
  }
1506
1552
  }
1507
- } catch (e20) {
1553
+ } catch (e21) {
1508
1554
  }
1509
1555
  }
1510
1556
  return false;
@@ -1597,7 +1643,7 @@ function readJsonString(text) {
1597
1643
  try {
1598
1644
  const value = JSON.parse(text);
1599
1645
  return typeof value === "string" ? value : void 0;
1600
- } catch (e21) {
1646
+ } catch (e22) {
1601
1647
  return void 0;
1602
1648
  }
1603
1649
  }
@@ -1605,7 +1651,7 @@ function readJsonArray(text) {
1605
1651
  try {
1606
1652
  const value = JSON.parse(text);
1607
1653
  return Array.isArray(value) ? value : void 0;
1608
- } catch (e22) {
1654
+ } catch (e23) {
1609
1655
  return void 0;
1610
1656
  }
1611
1657
  }
@@ -1615,13 +1661,13 @@ function readExports(namespace) {
1615
1661
  let keys;
1616
1662
  try {
1617
1663
  keys = Object.keys(namespace);
1618
- } catch (e23) {
1664
+ } catch (e24) {
1619
1665
  return [];
1620
1666
  }
1621
1667
  for (const key of keys) {
1622
1668
  try {
1623
1669
  entries.push([key, namespace[key]]);
1624
- } catch (e24) {
1670
+ } catch (e25) {
1625
1671
  }
1626
1672
  }
1627
1673
  return entries;
@@ -1654,7 +1700,7 @@ function toModuleFile(file) {
1654
1700
  if (file.startsWith("file://")) {
1655
1701
  try {
1656
1702
  return toPosixPath(_url.fileURLToPath.call(void 0, file));
1657
- } catch (e25) {
1703
+ } catch (e26) {
1658
1704
  return toPosixPath(file);
1659
1705
  }
1660
1706
  }
@@ -1662,11 +1708,13 @@ function toModuleFile(file) {
1662
1708
  }
1663
1709
 
1664
1710
  // src/utils/client-component.ts
1711
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1665
1712
 
1666
1713
 
1667
1714
 
1668
1715
 
1669
1716
  // src/islands-package-references.ts
1717
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1670
1718
  var _crypto = require('crypto');
1671
1719
 
1672
1720
 
@@ -1684,7 +1732,7 @@ function parse(code, file) {
1684
1732
  function parseAs(code, lang) {
1685
1733
  try {
1686
1734
  return _parseAst.parseAst.call(void 0, code, { lang });
1687
- } catch (e26) {
1735
+ } catch (e27) {
1688
1736
  return null;
1689
1737
  }
1690
1738
  }
@@ -1824,11 +1872,11 @@ function packageLookup(directory, packageName) {
1824
1872
  `${farmSourceSnapshotPathKey(directory)}\0${packageName}`,
1825
1873
  () => {
1826
1874
  for (let current = directory; ; current = _path2.default.dirname(current)) {
1827
- if (_path2.default.basename(current) !== "node_modules") {
1875
+ if (_path2.default.basename(current) !== "node_modules" && hasFarmNodeModulesDirectory(current)) {
1828
1876
  const candidate = _path2.default.join(current, "node_modules", packageName);
1829
1877
  try {
1830
1878
  return { from: current, real: _fs2.default.realpathSync(candidate) };
1831
- } catch (e27) {
1879
+ } catch (e28) {
1832
1880
  }
1833
1881
  }
1834
1882
  if (_path2.default.dirname(current) === current) return null;
@@ -1845,7 +1893,7 @@ function referenceResolveFrom(root, specifier, importer) {
1845
1893
  if (_optionalChain([app, 'optionalAccess', _101 => _101.real]) === own.real) return null;
1846
1894
  try {
1847
1895
  return _fs2.default.realpathSync(own.from);
1848
- } catch (e28) {
1896
+ } catch (e29) {
1849
1897
  return own.from;
1850
1898
  }
1851
1899
  }
@@ -1880,7 +1928,7 @@ function writeIfChanged(file, source) {
1880
1928
  let current = null;
1881
1929
  try {
1882
1930
  current = _fs2.default.readFileSync(file, "utf8");
1883
- } catch (e29) {
1931
+ } catch (e30) {
1884
1932
  }
1885
1933
  if (current !== source) {
1886
1934
  _fs2.default.mkdirSync(_path2.default.dirname(file), { recursive: true });
@@ -1892,7 +1940,7 @@ function owningPackage(file) {
1892
1940
  try {
1893
1941
  const manifest = JSON.parse(_fs2.default.readFileSync(_path2.default.join(current, "package.json"), "utf8"));
1894
1942
  if (typeof manifest.name === "string") return { directory: current, name: manifest.name };
1895
- } catch (e30) {
1943
+ } catch (e31) {
1896
1944
  }
1897
1945
  if (_path2.default.dirname(current) === current) return null;
1898
1946
  }
@@ -1976,6 +2024,7 @@ function rewriteFarmPackageClientImports(options) {
1976
2024
  }
1977
2025
 
1978
2026
  // src/islands-containers.ts
2027
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1979
2028
 
1980
2029
 
1981
2030
 
@@ -1994,6 +2043,7 @@ var ISLAND_CONTAINER_TAGS = /* @__PURE__ */ new Set([
1994
2043
  "ul",
1995
2044
  "ol"
1996
2045
  ]);
2046
+ var FARM_ISLAND_CONTAINER_TAG = /<(?:table|thead|tbody|tfoot|tr|select|optgroup|datalist|svg|ul|ol)[\s>/]/;
1997
2047
  var FLOW_CONTENT_TAGS = /* @__PURE__ */ new Set(["td", "th", "caption", "foreignObject", "li"]);
1998
2048
  function farmIslandContainerReferencePath(root) {
1999
2049
  return _path2.default.join(root, ".farm", "client-references", "farm.js+core", "__island-container.tsx");
@@ -2012,7 +2062,7 @@ function ensureFarmIslandContainerReference(root) {
2012
2062
  let current = null;
2013
2063
  try {
2014
2064
  current = _fs2.default.readFileSync(file, "utf8");
2015
- } catch (e31) {
2065
+ } catch (e32) {
2016
2066
  }
2017
2067
  if (current !== source) {
2018
2068
  _fs2.default.mkdirSync(_path2.default.dirname(file), { recursive: true });
@@ -2026,7 +2076,7 @@ function parse2(code, file) {
2026
2076
  return memoizeInFarmSourceSnapshot(`ast:${lang}`, code, () => {
2027
2077
  try {
2028
2078
  return _parseAst.parseAst.call(void 0, code, { lang });
2029
- } catch (e32) {
2079
+ } catch (e33) {
2030
2080
  return null;
2031
2081
  }
2032
2082
  });
@@ -2043,9 +2093,7 @@ function jsxName(node) {
2043
2093
  }
2044
2094
  function findFarmIslandContainers(code, file, bindings) {
2045
2095
  if (bindings.length === 0) return [];
2046
- if (!/<(?:table|thead|tbody|tfoot|tr|select|optgroup|datalist|svg|ul|ol)[\s>/]/.test(code)) {
2047
- return [];
2048
- }
2096
+ if (!FARM_ISLAND_CONTAINER_TAG.test(code)) return [];
2049
2097
  const program = parse2(code, file);
2050
2098
  if (!program) return null;
2051
2099
  const names = new Set(bindings);
@@ -2119,6 +2167,7 @@ ${declaration}${code.slice(prologueEnd)}`;
2119
2167
  }
2120
2168
 
2121
2169
  // src/utils/package-client-boundary-cache.ts
2170
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
2122
2171
  var _async_hooks = require('async_hooks');
2123
2172
 
2124
2173
 
@@ -2165,7 +2214,7 @@ function stampPackagePath(target, kind) {
2165
2214
  const stat = _fs2.default.statSync(target, { throwIfNoEntry: false });
2166
2215
  if (!stat || (kind === "file" ? !stat.isFile() : !stat.isDirectory())) return void 0;
2167
2216
  return [target, stat.size, stat.mtimeMs, stat.ctimeMs];
2168
- } catch (e33) {
2217
+ } catch (e34) {
2169
2218
  return void 0;
2170
2219
  }
2171
2220
  }
@@ -2221,7 +2270,7 @@ var PackageClientBoundaryCache = class {
2221
2270
  await _fs2.default.promises.mkdir(_path2.default.dirname(file), { recursive: true });
2222
2271
  await _fs2.default.promises.writeFile(temporary, contents);
2223
2272
  await _fs2.default.promises.rename(temporary, file);
2224
- } catch (e34) {
2273
+ } catch (e35) {
2225
2274
  await _fs2.default.promises.rm(temporary, { force: true }).catch(() => {
2226
2275
  });
2227
2276
  }
@@ -2236,10 +2285,10 @@ var PackageClientBoundaryCache = class {
2236
2285
  _fs2.default.mkdirSync(_path2.default.dirname(file), { recursive: true });
2237
2286
  _fs2.default.writeFileSync(temporary, contents);
2238
2287
  _fs2.default.renameSync(temporary, file);
2239
- } catch (e35) {
2288
+ } catch (e36) {
2240
2289
  try {
2241
2290
  _fs2.default.rmSync(temporary, { force: true });
2242
- } catch (e36) {
2291
+ } catch (e37) {
2243
2292
  }
2244
2293
  }
2245
2294
  }
@@ -2273,7 +2322,7 @@ var PackageClientBoundaryCache = class {
2273
2322
  }
2274
2323
  const contents = JSON.stringify({
2275
2324
  schema: SCHEMA_VERSION,
2276
- farm: _chunkNOSLIDSGcjs.FARM_VERSION,
2325
+ farm: _chunkZ7YIQ7AJcjs.FARM_VERSION,
2277
2326
  paths,
2278
2327
  entries
2279
2328
  });
@@ -2310,10 +2359,10 @@ function readStoredCache(file) {
2310
2359
  let value;
2311
2360
  try {
2312
2361
  value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
2313
- } catch (e37) {
2362
+ } catch (e38) {
2314
2363
  return null;
2315
2364
  }
2316
- if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkNOSLIDSGcjs.FARM_VERSION) {
2365
+ if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkZ7YIQ7AJcjs.FARM_VERSION) {
2317
2366
  return null;
2318
2367
  }
2319
2368
  const { paths, entries } = value;
@@ -2324,7 +2373,7 @@ function readStoredCache(file) {
2324
2373
  const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
2325
2374
  if (usable.length > 0) valid[key] = usable;
2326
2375
  }
2327
- return { schema: SCHEMA_VERSION, farm: _chunkNOSLIDSGcjs.FARM_VERSION, paths, entries: valid };
2376
+ return { schema: SCHEMA_VERSION, farm: _chunkZ7YIQ7AJcjs.FARM_VERSION, paths, entries: valid };
2328
2377
  }
2329
2378
  function isRecord(value) {
2330
2379
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -2338,7 +2387,7 @@ function isPathIndexList(value, pathCount) {
2338
2387
  function isStoredEntry(value, pathCount) {
2339
2388
  if (!isRecord(value) || !isRecord(value.result)) return false;
2340
2389
  const { isClientComponent, shouldHydrate, islandStrategy } = value.result;
2341
- return isPathIndexList(value.files, pathCount) && isPathIndexList(value.directories, pathCount) && Array.isArray(value.stops) && value.stops.every((file) => typeof file === "string" && _path2.default.isAbsolute(file)) && typeof isClientComponent === "boolean" && typeof shouldHydrate === "boolean" && (islandStrategy === null || _chunk7KJJ4SBScjs.isFarmIslandStrategy.call(void 0, islandStrategy)) && Object.keys(value.result).length === 3;
2390
+ return isPathIndexList(value.files, pathCount) && isPathIndexList(value.directories, pathCount) && Array.isArray(value.stops) && value.stops.every((file) => typeof file === "string" && _path2.default.isAbsolute(file)) && typeof isClientComponent === "boolean" && typeof shouldHydrate === "boolean" && (islandStrategy === null || _chunk32HGOX3Mcjs.isFarmIslandStrategy.call(void 0, islandStrategy)) && Object.keys(value.result).length === 3;
2342
2391
  }
2343
2392
  var STORAGE_KEY = /* @__PURE__ */ Symbol.for("@farm.js/core/package-client-boundary-cache");
2344
2393
  function getStorage() {
@@ -2397,13 +2446,14 @@ function dropLatestPackageClientBoundaryCache() {
2397
2446
  }
2398
2447
 
2399
2448
  // src/utils/renderer-hydration.ts
2449
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
2400
2450
 
2401
2451
 
2402
2452
  var scopes = /* @__PURE__ */ new Map();
2403
2453
  function realPath(file) {
2404
2454
  try {
2405
2455
  return _fs2.default.realpathSync(file);
2406
- } catch (e38) {
2456
+ } catch (e39) {
2407
2457
  return _path2.default.resolve(file);
2408
2458
  }
2409
2459
  }
@@ -2477,7 +2527,7 @@ function readOwnHydration(scope, content, file) {
2477
2527
  try {
2478
2528
  value = scope.renderer.hydration.resolve(content, file);
2479
2529
  } catch (error) {
2480
- throw _chunkT7UC2ORAcjs.createFarmRendererHookError.call(void 0,
2530
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
2481
2531
  `${where} threw: ${error instanceof Error ? error.message : String(error)}`,
2482
2532
  error
2483
2533
  );
@@ -2488,7 +2538,7 @@ function readOwnHydration(scope, content, file) {
2488
2538
  `${where} returned ${JSON.stringify(value)}. Return \`{ hydrate?, strategy? }\`, or nothing to leave the file to Farm.`
2489
2539
  );
2490
2540
  }
2491
- return _chunkT7UC2ORAcjs.readFarmRendererHydration.call(void 0, value, where);
2541
+ return _chunkLEZJZX4Ccjs.readFarmRendererHydration.call(void 0, value, where);
2492
2542
  }
2493
2543
  function mayCompileFarmRendererSource(file) {
2494
2544
  if (scopes.size === 0) return false;
@@ -2511,7 +2561,7 @@ function compileFarmRendererSource(content, sourcePath) {
2511
2561
  try {
2512
2562
  value = compile.call(scope.renderer, content, file);
2513
2563
  } catch (error) {
2514
- throw _chunkT7UC2ORAcjs.createFarmRendererHookError.call(void 0,
2564
+ throw _chunkLEZJZX4Ccjs.createFarmRendererHookError.call(void 0,
2515
2565
  `${where} threw: ${error instanceof Error ? error.message : String(error)}`,
2516
2566
  error
2517
2567
  );
@@ -2591,7 +2641,7 @@ function readSourceFileContents(filePath) {
2591
2641
  return null;
2592
2642
  }
2593
2643
  return _fs2.default.readFileSync(filePath, "utf-8");
2594
- } catch (e39) {
2644
+ } catch (e40) {
2595
2645
  return null;
2596
2646
  }
2597
2647
  }
@@ -2604,7 +2654,7 @@ function resolveModuleSourcePath(modulePath, root) {
2604
2654
  if (modulePath.startsWith("file://")) {
2605
2655
  try {
2606
2656
  candidates.add(_url.fileURLToPath.call(void 0, modulePath));
2607
- } catch (e40) {
2657
+ } catch (e41) {
2608
2658
  }
2609
2659
  }
2610
2660
  if (modulePath.startsWith("/@fs/")) {
@@ -2630,7 +2680,7 @@ function resolveModuleSourcePath(modulePath, root) {
2630
2680
  return null;
2631
2681
  }
2632
2682
  function getFarmClientHydrationPlanOptions(renderer, hasUnsupportedIntegrationProvider) {
2633
- return { asyncOwnerIslands: _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && !hasUnsupportedIntegrationProvider };
2683
+ return { asyncOwnerIslands: _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && !hasUnsupportedIntegrationProvider };
2634
2684
  }
2635
2685
  function describeSuppressedAsyncHydration(subject, reason) {
2636
2686
  const remediation = reason ? "Fix the reason above, or render the interactive UI from a synchronous owner." : 'Move the interactive UI into an eligible "use client" boundary, or render it from a synchronous owner.';
@@ -2687,7 +2737,7 @@ function hasUseClientDirective(content) {
2687
2737
  return false;
2688
2738
  }
2689
2739
  function hasHydrateExport(content) {
2690
- return _optionalChain([_chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, content), 'optionalAccess', _147 => _147.value]) === true;
2740
+ return _optionalChain([_chunkJ3RIMCBDcjs.readFarmHydrateExport.call(void 0, content), 'optionalAccess', _147 => _147.value]) === true;
2691
2741
  }
2692
2742
  var REGEXP_PREFIX_PUNCTUATION = /* @__PURE__ */ new Set([
2693
2743
  "(",
@@ -2890,7 +2940,7 @@ function getIslandStrategyExport(content) {
2890
2940
  if (_optionalChain([tokens, 'access', _154 => _154[valueIndex], 'optionalAccess', _155 => _155.value]) !== "=") break;
2891
2941
  valueIndex++;
2892
2942
  const literal = tokens[valueIndex];
2893
- if (!literal || literal.kind !== "string" || !_chunk7KJJ4SBScjs.isFarmIslandStrategy.call(void 0, literal.value)) break;
2943
+ if (!literal || literal.kind !== "string" || !_chunk32HGOX3Mcjs.isFarmIslandStrategy.call(void 0, literal.value)) break;
2894
2944
  let trailingIndex = valueIndex + 1;
2895
2945
  if (_optionalChain([tokens, 'access', _156 => _156[trailingIndex], 'optionalAccess', _157 => _157.value]) === "as" && _optionalChain([tokens, 'access', _158 => _158[trailingIndex + 1], 'optionalAccess', _159 => _159.value]) === "const") {
2896
2946
  trailingIndex += 2;
@@ -2958,9 +3008,9 @@ function parseClientModuleMetadata(content, inspectIslandExport, sourcePath) {
2958
3008
  };
2959
3009
  }
2960
3010
  const isClientComponent = hasUseClientDirective(content);
2961
- const hydrate = _chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, content);
3011
+ const hydrate = _chunkJ3RIMCBDcjs.readFarmHydrateExport.call(void 0, content);
2962
3012
  if (inspectIslandExport && hydrate && hydrate.value === null) {
2963
- throw new Error(_chunkWMRGIQTAcjs.formatFarmHydrateExportError.call(void 0, hydrate, sourcePath));
3013
+ throw new Error(_chunkJ3RIMCBDcjs.formatFarmHydrateExportError.call(void 0, hydrate, sourcePath));
2964
3014
  }
2965
3015
  const rendererHydration = inspectIslandExport && sourcePath ? (
2966
3016
  // The renderer's own syntax is read from the file as written, before its `compile()`.
@@ -3314,7 +3364,7 @@ function clientModulePlanSignature(content) {
3314
3364
  isIsolatableClientBoundarySource(content),
3315
3365
  getImportSpecifiers(content).sort()
3316
3366
  ]);
3317
- } catch (e41) {
3367
+ } catch (e42) {
3318
3368
  return null;
3319
3369
  }
3320
3370
  }
@@ -3322,6 +3372,48 @@ function isFarmClientModulePlanUnchanged(file, previous) {
3322
3372
  const signature = clientModulePlanSignature(previous);
3323
3373
  return signature !== null && signature === clientModulePlanSignature(readSourceFileContents(file));
3324
3374
  }
3375
+ var SERVER_PLAN_SIGNATURE_SOURCE = /\.[cm]?[jt]sx?$/;
3376
+ function serverModulePlanSignature(content, file) {
3377
+ if (!content || !SERVER_PLAN_SIGNATURE_SOURCE.test(file) || mayCompileFarmRendererSource(file) || hasUseClientDirective(content)) {
3378
+ return null;
3379
+ }
3380
+ try {
3381
+ const bindings = getStaticImportBindings(content);
3382
+ const specifiers = getImportSpecifiers(content);
3383
+ return JSON.stringify([
3384
+ parseClientModuleMetadata(content, false),
3385
+ parseClientModuleMetadata(content, true, file),
3386
+ _nullishCoalesce(_optionalChain([DEFAULT_REEXPORT, 'access', _177 => _177.exec, 'call', _178 => _178(content), 'optionalAccess', _179 => _179[2]]), () => ( null)),
3387
+ hasAsyncDefaultExport(content),
3388
+ specifiers,
3389
+ getImportSpecifiers(content, { dynamic: true }),
3390
+ getImportSpecifiers(content, { reexportsOnly: true }),
3391
+ [...bindings],
3392
+ [...new Set(specifiers)].map((specifier) => {
3393
+ const locals = _nullishCoalesce(bindings.get(specifier), () => ( []));
3394
+ return [
3395
+ countStaticJsxUses(content, locals),
3396
+ _nullishCoalesce(findParserSensitiveJsxContainer(content, locals), () => ( null)),
3397
+ passesElementValuedProps(content, locals),
3398
+ hasDynamicJsxCardinality(content, locals),
3399
+ rendersOnlyLeafElements(content, locals),
3400
+ (_nullishCoalesce(_optionalChain([findFarmIslandContainers, 'call', _180 => _180(content, file, locals), 'optionalAccess', _181 => _181.length]), () => ( 0))) > 0,
3401
+ findFarmPackageClientImports(content, file, (candidate) => candidate === specifier).map(
3402
+ farmPackageClientImportExports
3403
+ ),
3404
+ findFarmReactServerClientNames(content, file, specifier),
3405
+ findFarmReactServerClientModules(content, file, specifier)
3406
+ ];
3407
+ })
3408
+ ]);
3409
+ } catch (e43) {
3410
+ return null;
3411
+ }
3412
+ }
3413
+ function isFarmServerModulePlanUnchanged(file, previous) {
3414
+ const signature = serverModulePlanSignature(previous, file);
3415
+ return signature !== null && signature === serverModulePlanSignature(readSourceFileContents(file), file);
3416
+ }
3325
3417
  function exportListNames(content) {
3326
3418
  const names = [];
3327
3419
  for (const match of content.matchAll(/\bexport\s*(type\s*)?\{([^}]*)\}/g)) {
@@ -3347,7 +3439,7 @@ function scanStaticImportBindings(content) {
3347
3439
  const bindings = /* @__PURE__ */ new Map();
3348
3440
  const tokens = tokenizeModuleSource(content);
3349
3441
  for (let index = 0; index < tokens.length; index++) {
3350
- if (tokens[index].value !== "import" || _optionalChain([tokens, 'access', _177 => _177[index - 1], 'optionalAccess', _178 => _178.value]) === ".") continue;
3442
+ if (tokens[index].value !== "import" || _optionalChain([tokens, 'access', _182 => _182[index - 1], 'optionalAccess', _183 => _183.value]) === ".") continue;
3351
3443
  const first = tokens[index + 1];
3352
3444
  if (!first || first.value === "type" || first.value === "(" || first.kind === "string") {
3353
3445
  continue;
@@ -3355,7 +3447,7 @@ function scanStaticImportBindings(content) {
3355
3447
  let fromIndex = -1;
3356
3448
  for (let cursor = index + 1; cursor < tokens.length; cursor++) {
3357
3449
  if (tokens[cursor].value === ";") break;
3358
- if (tokens[cursor].value === "from" && _optionalChain([tokens, 'access', _179 => _179[cursor + 1], 'optionalAccess', _180 => _180.kind]) === "string") {
3450
+ if (tokens[cursor].value === "from" && _optionalChain([tokens, 'access', _184 => _184[cursor + 1], 'optionalAccess', _185 => _185.kind]) === "string") {
3359
3451
  fromIndex = cursor;
3360
3452
  break;
3361
3453
  }
@@ -3364,13 +3456,13 @@ function scanStaticImportBindings(content) {
3364
3456
  const specifier = tokens[fromIndex + 1].value;
3365
3457
  const clause = tokens.slice(index + 1, fromIndex);
3366
3458
  const localNames = [];
3367
- if (_optionalChain([clause, 'access', _181 => _181[0], 'optionalAccess', _182 => _182.kind]) === "identifier" && clause[0].value !== "type") {
3459
+ if (_optionalChain([clause, 'access', _186 => _186[0], 'optionalAccess', _187 => _187.kind]) === "identifier" && clause[0].value !== "type") {
3368
3460
  localNames.push(clause[0].value);
3369
3461
  }
3370
3462
  const namespaceAs = clause.findIndex(
3371
- (token, clauseIndex) => token.value === "*" && _optionalChain([clause, 'access', _183 => _183[clauseIndex + 1], 'optionalAccess', _184 => _184.value]) === "as"
3463
+ (token, clauseIndex) => token.value === "*" && _optionalChain([clause, 'access', _188 => _188[clauseIndex + 1], 'optionalAccess', _189 => _189.value]) === "as"
3372
3464
  );
3373
- if (namespaceAs !== -1 && _optionalChain([clause, 'access', _185 => _185[namespaceAs + 2], 'optionalAccess', _186 => _186.kind]) === "identifier") {
3465
+ if (namespaceAs !== -1 && _optionalChain([clause, 'access', _190 => _190[namespaceAs + 2], 'optionalAccess', _191 => _191.kind]) === "identifier") {
3374
3466
  localNames.push(clause[namespaceAs + 2].value);
3375
3467
  }
3376
3468
  const openingBrace = clause.findIndex((token) => token.value === "{");
@@ -3380,11 +3472,11 @@ function scanStaticImportBindings(content) {
3380
3472
  if (openingBrace !== -1 && closingBrace !== -1) {
3381
3473
  let entryStart = openingBrace + 1;
3382
3474
  for (let cursor = entryStart; cursor <= closingBrace; cursor++) {
3383
- if (cursor !== closingBrace && _optionalChain([clause, 'access', _187 => _187[cursor], 'optionalAccess', _188 => _188.value]) !== ",") continue;
3475
+ if (cursor !== closingBrace && _optionalChain([clause, 'access', _192 => _192[cursor], 'optionalAccess', _193 => _193.value]) !== ",") continue;
3384
3476
  const entry = clause.slice(entryStart, cursor).filter((token) => token.value !== "type");
3385
3477
  const asIndex = entry.findIndex((token) => token.value === "as");
3386
3478
  const local = asIndex === -1 ? entry[0] : entry[asIndex + 1];
3387
- if (_optionalChain([local, 'optionalAccess', _189 => _189.kind]) === "identifier") localNames.push(local.value);
3479
+ if (_optionalChain([local, 'optionalAccess', _194 => _194.kind]) === "identifier") localNames.push(local.value);
3388
3480
  entryStart = cursor + 1;
3389
3481
  }
3390
3482
  }
@@ -3421,7 +3513,7 @@ function findParserSensitiveJsxContainer(content, localBindings) {
3421
3513
  const open = [];
3422
3514
  const isSelfClosing = (openingIndex) => {
3423
3515
  for (let index = openingIndex; index < tokens.length; index++) {
3424
- if (tokens[index].value === ">") return _optionalChain([tokens, 'access', _190 => _190[index - 1], 'optionalAccess', _191 => _191.value]) === "/";
3516
+ if (tokens[index].value === ">") return _optionalChain([tokens, 'access', _195 => _195[index - 1], 'optionalAccess', _196 => _196.value]) === "/";
3425
3517
  }
3426
3518
  return false;
3427
3519
  };
@@ -3429,7 +3521,7 @@ function findParserSensitiveJsxContainer(content, localBindings) {
3429
3521
  if (tokens[index].value !== "<") continue;
3430
3522
  if (tokens[index + 1].value === "/") {
3431
3523
  const closing = tokens[index + 2];
3432
- const at = _optionalChain([closing, 'optionalAccess', _192 => _192.kind]) === "identifier" ? open.lastIndexOf(closing.value) : -1;
3524
+ const at = _optionalChain([closing, 'optionalAccess', _197 => _197.kind]) === "identifier" ? open.lastIndexOf(closing.value) : -1;
3433
3525
  if (at !== -1) open.length = at;
3434
3526
  continue;
3435
3527
  }
@@ -3472,7 +3564,7 @@ function findMatchingToken(tokens, openingIndex, opening, closing) {
3472
3564
  }
3473
3565
  function containsClientJsx(tokens, start, end, clientBindings) {
3474
3566
  for (let index = start; index < end; index++) {
3475
- if (tokens[index].value === "<" && clientBindings.has(_optionalChain([tokens, 'access', _193 => _193[index + 1], 'optionalAccess', _194 => _194.value]))) return true;
3567
+ if (tokens[index].value === "<" && clientBindings.has(_optionalChain([tokens, 'access', _198 => _198[index + 1], 'optionalAccess', _199 => _199.value]))) return true;
3476
3568
  }
3477
3569
  return false;
3478
3570
  }
@@ -3510,7 +3602,7 @@ function getClientRenderingHelpers(tokens, clientBindings) {
3510
3602
  let helperName;
3511
3603
  let bodyStart = -1;
3512
3604
  let bodyEnd = -1;
3513
- if (tokens[index].value === "function" && _optionalChain([tokens, 'access', _195 => _195[index + 1], 'optionalAccess', _196 => _196.kind]) === "identifier") {
3605
+ if (tokens[index].value === "function" && _optionalChain([tokens, 'access', _200 => _200[index + 1], 'optionalAccess', _201 => _201.kind]) === "identifier") {
3514
3606
  helperName = tokens[index + 1].value;
3515
3607
  const parametersStart = tokens.findIndex(
3516
3608
  (token, tokenIndex) => tokenIndex > index + 1 && token.value === "("
@@ -3520,21 +3612,21 @@ function getClientRenderingHelpers(tokens, clientBindings) {
3520
3612
  (token, tokenIndex) => tokenIndex > parametersEnd && token.value === "{"
3521
3613
  );
3522
3614
  if (bodyStart !== -1) bodyEnd = findMatchingToken(tokens, bodyStart, "{", "}");
3523
- } else if ((tokens[index].value === "const" || tokens[index].value === "let" || tokens[index].value === "var") && _optionalChain([tokens, 'access', _197 => _197[index + 1], 'optionalAccess', _198 => _198.kind]) === "identifier") {
3615
+ } else if ((tokens[index].value === "const" || tokens[index].value === "let" || tokens[index].value === "var") && _optionalChain([tokens, 'access', _202 => _202[index + 1], 'optionalAccess', _203 => _203.kind]) === "identifier") {
3524
3616
  helperName = tokens[index + 1].value;
3525
3617
  let assignmentIndex = -1;
3526
3618
  let arrowIndex = -1;
3527
3619
  for (let cursor = index + 2; cursor < tokens.length; cursor++) {
3528
3620
  if (tokens[cursor].value === ";") break;
3529
3621
  if (assignmentIndex === -1 && tokens[cursor].value === "=") assignmentIndex = cursor;
3530
- if (tokens[cursor].value === "=" && _optionalChain([tokens, 'access', _199 => _199[cursor + 1], 'optionalAccess', _200 => _200.value]) === ">") {
3622
+ if (tokens[cursor].value === "=" && _optionalChain([tokens, 'access', _204 => _204[cursor + 1], 'optionalAccess', _205 => _205.value]) === ">") {
3531
3623
  arrowIndex = cursor;
3532
3624
  break;
3533
3625
  }
3534
3626
  }
3535
3627
  if (arrowIndex !== -1) {
3536
3628
  bodyStart = arrowIndex + 2;
3537
- bodyEnd = _optionalChain([tokens, 'access', _201 => _201[bodyStart], 'optionalAccess', _202 => _202.value]) === "{" ? findMatchingToken(tokens, bodyStart, "{", "}") : findStatementEnd(tokens, bodyStart);
3629
+ bodyEnd = _optionalChain([tokens, 'access', _206 => _206[bodyStart], 'optionalAccess', _207 => _207.value]) === "{" ? findMatchingToken(tokens, bodyStart, "{", "}") : findStatementEnd(tokens, bodyStart);
3538
3630
  } else if (assignmentIndex !== -1) {
3539
3631
  bodyStart = assignmentIndex + 1;
3540
3632
  bodyEnd = findStatementEnd(tokens, bodyStart);
@@ -3574,14 +3666,14 @@ function passesElementValuedProps(content, localBindings) {
3574
3666
  else if (value === "}") braceDepth--;
3575
3667
  else if (value === "<" && braceDepth > 0) return true;
3576
3668
  else if (value === ">" && braceDepth === 0) {
3577
- selfClosing = _optionalChain([tokens, 'access', _203 => _203[cursor - 1], 'optionalAccess', _204 => _204.value]) === "/";
3669
+ selfClosing = _optionalChain([tokens, 'access', _208 => _208[cursor - 1], 'optionalAccess', _209 => _209.value]) === "/";
3578
3670
  break;
3579
3671
  }
3580
3672
  }
3581
3673
  if (selfClosing || cursor >= tokens.length) continue;
3582
3674
  for (let child = cursor + 1; child < tokens.length; child++) {
3583
3675
  if (tokens[child].value !== "<") continue;
3584
- const closesBoundary = _optionalChain([tokens, 'access', _205 => _205[child + 1], 'optionalAccess', _206 => _206.value]) === "/" && _optionalChain([tokens, 'access', _207 => _207[child + 2], 'optionalAccess', _208 => _208.value]) === name;
3676
+ const closesBoundary = _optionalChain([tokens, 'access', _210 => _210[child + 1], 'optionalAccess', _211 => _211.value]) === "/" && _optionalChain([tokens, 'access', _212 => _212[child + 2], 'optionalAccess', _213 => _213.value]) === name;
3585
3677
  if (!closesBoundary) return true;
3586
3678
  break;
3587
3679
  }
@@ -3603,7 +3695,7 @@ function rendersOnlyLeafElements(content, localBindings) {
3603
3695
  else if (value === "<" && braceDepth > 0) return false;
3604
3696
  else if (value === ">" && braceDepth === 0) break;
3605
3697
  }
3606
- if (cursor >= tokens.length || _optionalChain([tokens, 'access', _209 => _209[cursor - 1], 'optionalAccess', _210 => _210.value]) !== "/") return false;
3698
+ if (cursor >= tokens.length || _optionalChain([tokens, 'access', _214 => _214[cursor - 1], 'optionalAccess', _215 => _215.value]) !== "/") return false;
3607
3699
  }
3608
3700
  return true;
3609
3701
  }
@@ -3615,9 +3707,9 @@ function hasDynamicJsxCardinality(content, localBindings) {
3615
3707
  const containsDynamicRenderer = (start, end) => containsClientJsx(tokens, start, end, clientBindings) || tokens.slice(start, end).some((token) => renderingHelpers.has(token.value));
3616
3708
  for (let index = 0; index < tokens.length; index++) {
3617
3709
  let callStart = -1;
3618
- if (tokens[index].value === "." && (_optionalChain([tokens, 'access', _211 => _211[index + 1], 'optionalAccess', _212 => _212.value]) === "map" || _optionalChain([tokens, 'access', _213 => _213[index + 1], 'optionalAccess', _214 => _214.value]) === "flatMap") && _optionalChain([tokens, 'access', _215 => _215[index + 2], 'optionalAccess', _216 => _216.value]) === "(") {
3710
+ if (tokens[index].value === "." && (_optionalChain([tokens, 'access', _216 => _216[index + 1], 'optionalAccess', _217 => _217.value]) === "map" || _optionalChain([tokens, 'access', _218 => _218[index + 1], 'optionalAccess', _219 => _219.value]) === "flatMap") && _optionalChain([tokens, 'access', _220 => _220[index + 2], 'optionalAccess', _221 => _221.value]) === "(") {
3619
3711
  callStart = index + 2;
3620
- } else if (tokens[index].value === "Array" && _optionalChain([tokens, 'access', _217 => _217[index + 1], 'optionalAccess', _218 => _218.value]) === "." && _optionalChain([tokens, 'access', _219 => _219[index + 2], 'optionalAccess', _220 => _220.value]) === "from" && _optionalChain([tokens, 'access', _221 => _221[index + 3], 'optionalAccess', _222 => _222.value]) === "(") {
3712
+ } else if (tokens[index].value === "Array" && _optionalChain([tokens, 'access', _222 => _222[index + 1], 'optionalAccess', _223 => _223.value]) === "." && _optionalChain([tokens, 'access', _224 => _224[index + 2], 'optionalAccess', _225 => _225.value]) === "from" && _optionalChain([tokens, 'access', _226 => _226[index + 3], 'optionalAccess', _227 => _227.value]) === "(") {
3621
3713
  callStart = index + 3;
3622
3714
  }
3623
3715
  if (callStart !== -1) {
@@ -3626,10 +3718,10 @@ function hasDynamicJsxCardinality(content, localBindings) {
3626
3718
  index = callEnd;
3627
3719
  continue;
3628
3720
  }
3629
- if ((tokens[index].value === "for" || tokens[index].value === "while") && _optionalChain([tokens, 'access', _223 => _223[index + 1], 'optionalAccess', _224 => _224.value]) === "(") {
3721
+ if ((tokens[index].value === "for" || tokens[index].value === "while") && _optionalChain([tokens, 'access', _228 => _228[index + 1], 'optionalAccess', _229 => _229.value]) === "(") {
3630
3722
  const conditionEnd = findMatchingToken(tokens, index + 1, "(", ")");
3631
3723
  const bodyStart = conditionEnd + 1;
3632
- const bodyEnd = _optionalChain([tokens, 'access', _225 => _225[bodyStart], 'optionalAccess', _226 => _226.value]) === "{" ? findMatchingToken(tokens, bodyStart, "{", "}") : tokens.findIndex((token, tokenIndex) => tokenIndex > bodyStart && token.value === ";");
3724
+ const bodyEnd = _optionalChain([tokens, 'access', _230 => _230[bodyStart], 'optionalAccess', _231 => _231.value]) === "{" ? findMatchingToken(tokens, bodyStart, "{", "}") : tokens.findIndex((token, tokenIndex) => tokenIndex > bodyStart && token.value === ";");
3633
3725
  if (containsDynamicRenderer(bodyStart, bodyEnd === -1 ? tokens.length : bodyEnd)) return true;
3634
3726
  }
3635
3727
  }
@@ -3748,7 +3840,7 @@ function collectIsolatedClientBoundaries(ownerPath, root, options = {}) {
3748
3840
  const localBindings = _nullishCoalesce(importedBindings.get(specifier), () => ( []));
3749
3841
  const staticUses = countStaticJsxUses(content, localBindings);
3750
3842
  if (staticUses > 0) {
3751
- const grows = options.packageReferences === true && projectRoot !== void 0 && (_nullishCoalesce(_optionalChain([findFarmIslandContainers, 'call', _227 => _227(_nullishCoalesce(content, () => ( "")), moduleSourcePath, localBindings), 'optionalAccess', _228 => _228.length]), () => ( 0))) > 0;
3843
+ const grows = options.packageReferences === true && projectRoot !== void 0 && (_nullishCoalesce(_optionalChain([findFarmIslandContainers, 'call', _232 => _232(_nullishCoalesce(content, () => ( "")), moduleSourcePath, localBindings), 'optionalAccess', _233 => _233.length]), () => ( 0))) > 0;
3752
3844
  if (grows) visit(ensureFarmIslandContainerReference(projectRoot));
3753
3845
  const container = grows ? void 0 : findParserSensitiveJsxContainer(content, localBindings);
3754
3846
  if (container) {
@@ -3848,7 +3940,7 @@ function realpathOrSelf(file) {
3848
3940
  () => {
3849
3941
  try {
3850
3942
  return _fs2.default.realpathSync(file);
3851
- } catch (e42) {
3943
+ } catch (e44) {
3852
3944
  return null;
3853
3945
  }
3854
3946
  },
@@ -3879,7 +3971,7 @@ function getBarePackageReexports(content) {
3879
3971
  function inspectPackageClientBoundary(importedPath, root, visited) {
3880
3972
  const resolvedPath = importedPath && installedRealPath(importedPath);
3881
3973
  const cache2 = getPackageClientBoundaryCache();
3882
- if (!cache2 || !resolvedPath || _optionalChain([visited, 'optionalAccess', _229 => _229.has, 'call', _230 => _230(resolvedPath)])) {
3974
+ if (!cache2 || !resolvedPath || _optionalChain([visited, 'optionalAccess', _234 => _234.has, 'call', _235 => _235(resolvedPath)])) {
3883
3975
  return traversePackageClientBoundary(resolvedPath, root, _nullishCoalesce(visited, () => ( /* @__PURE__ */ new Set())));
3884
3976
  }
3885
3977
  const key = `${_nullishCoalesce(root, () => ( ""))}\0${resolvedPath}`;
@@ -3896,7 +3988,7 @@ function inspectPackageClientBoundary(importedPath, root, visited) {
3896
3988
  }
3897
3989
  function traversePackageClientBoundary(resolvedPath, root, visited, trace2) {
3898
3990
  if (!resolvedPath || visited.has(resolvedPath)) {
3899
- if (resolvedPath) _optionalChain([trace2, 'optionalAccess', _231 => _231.stop, 'call', _232 => _232(resolvedPath)]);
3991
+ if (resolvedPath) _optionalChain([trace2, 'optionalAccess', _236 => _236.stop, 'call', _237 => _237(resolvedPath)]);
3900
3992
  return {
3901
3993
  isClientComponent: false,
3902
3994
  shouldHydrate: false,
@@ -3904,7 +3996,7 @@ function traversePackageClientBoundary(resolvedPath, root, visited, trace2) {
3904
3996
  };
3905
3997
  }
3906
3998
  visited.add(resolvedPath);
3907
- _optionalChain([trace2, 'optionalAccess', _233 => _233.visit, 'call', _234 => _234(resolvedPath)]);
3999
+ _optionalChain([trace2, 'optionalAccess', _238 => _238.visit, 'call', _239 => _239(resolvedPath)]);
3908
4000
  const content = readIfExists(resolvedPath);
3909
4001
  const parsed = parseImportedModuleMetadata(content);
3910
4002
  let importsClientBoundary = false;
@@ -3962,7 +4054,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
3962
4054
  braceDepth = Math.max(0, braceDepth - 1);
3963
4055
  continue;
3964
4056
  }
3965
- if (dynamic && keyword.kind === "identifier" && keyword.value === "import" && _optionalChain([tokens, 'access', _235 => _235[index - 1], 'optionalAccess', _236 => _236.value]) !== "." && _optionalChain([tokens, 'access', _237 => _237[index + 1], 'optionalAccess', _238 => _238.value]) === "(" && _optionalChain([tokens, 'access', _239 => _239[index + 2], 'optionalAccess', _240 => _240.kind]) === "string") {
4057
+ if (dynamic && keyword.kind === "identifier" && keyword.value === "import" && _optionalChain([tokens, 'access', _240 => _240[index - 1], 'optionalAccess', _241 => _241.value]) !== "." && _optionalChain([tokens, 'access', _242 => _242[index + 1], 'optionalAccess', _243 => _243.value]) === "(" && _optionalChain([tokens, 'access', _244 => _244[index + 2], 'optionalAccess', _245 => _245.kind]) === "string") {
3966
4058
  matches.add(tokens[index + 2].value);
3967
4059
  continue;
3968
4060
  }
@@ -3972,7 +4064,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
3972
4064
  }
3973
4065
  if (reexportsOnly && keyword.value !== "export") continue;
3974
4066
  const previous = tokens[index - 1];
3975
- if (_optionalChain([previous, 'optionalAccess', _241 => _241.value]) === ".") continue;
4067
+ if (_optionalChain([previous, 'optionalAccess', _246 => _246.value]) === ".") continue;
3976
4068
  const first = tokens[index + 1];
3977
4069
  if (!first || first.value === "type" || first.value === "(" || first.value === ".") {
3978
4070
  continue;
@@ -3988,7 +4080,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
3988
4080
  for (let cursor = index + 1; cursor < tokens.length; cursor++) {
3989
4081
  const token = tokens[cursor];
3990
4082
  if (token.value === ";") break;
3991
- if (token.value === "from" && _optionalChain([tokens, 'access', _242 => _242[cursor + 1], 'optionalAccess', _243 => _243.kind]) === "string") {
4083
+ if (token.value === "from" && _optionalChain([tokens, 'access', _247 => _247[cursor + 1], 'optionalAccess', _248 => _248.kind]) === "string") {
3992
4084
  fromIndex = cursor;
3993
4085
  break;
3994
4086
  }
@@ -4006,7 +4098,7 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
4006
4098
  return Array.from(matches);
4007
4099
  }
4008
4100
  function isTypeOnlyNamedClause(tokens, startIndex, endIndex) {
4009
- if (_optionalChain([tokens, 'access', _244 => _244[startIndex], 'optionalAccess', _245 => _245.value]) !== "{") return false;
4101
+ if (_optionalChain([tokens, 'access', _249 => _249[startIndex], 'optionalAccess', _250 => _250.value]) !== "{") return false;
4010
4102
  let closingBraceIndex = -1;
4011
4103
  for (let index = startIndex + 1; index < endIndex; index++) {
4012
4104
  if (tokens[index].value !== "}") continue;
@@ -4016,7 +4108,7 @@ function isTypeOnlyNamedClause(tokens, startIndex, endIndex) {
4016
4108
  if (closingBraceIndex === -1) return false;
4017
4109
  let entryStartsAt = startIndex + 1;
4018
4110
  for (let index = entryStartsAt; index <= closingBraceIndex; index++) {
4019
- if (index !== closingBraceIndex && _optionalChain([tokens, 'access', _246 => _246[index], 'optionalAccess', _247 => _247.value]) !== ",") continue;
4111
+ if (index !== closingBraceIndex && _optionalChain([tokens, 'access', _251 => _251[index], 'optionalAccess', _252 => _252.value]) !== ",") continue;
4020
4112
  const entry = tokens.slice(entryStartsAt, index);
4021
4113
  if (entry.length > 0 && entry[0].value !== "type") return false;
4022
4114
  entryStartsAt = index + 1;
@@ -4056,7 +4148,7 @@ function warnUnresolvedAliasImport(importerPath, specifier, root) {
4056
4148
  if (!ALIAS_IMPORT.test(specifier) || warnedUnresolvedAliasImports.has(specifier)) return;
4057
4149
  warnedUnresolvedAliasImports.add(specifier);
4058
4150
  const importer = root ? _path2.default.relative(root, importerPath) : importerPath;
4059
- _chunk7U4XF76Rcjs.logger.warn(
4151
+ _chunk7ZDLE77Pcjs.logger.warn(
4060
4152
  `Could not resolve "${specifier}" (imported by ${importer}) while checking which pages need client JavaScript. If it holds client components, they will not hydrate. Map the alias in tsconfig.json "paths" or package.json "imports".`
4061
4153
  );
4062
4154
  }
@@ -4087,17 +4179,25 @@ function matchProjectImportAlias(alias, specifier) {
4087
4179
  return specifier.slice(alias.prefix.length, specifier.length - alias.suffix.length);
4088
4180
  }
4089
4181
  function getProjectImportAliases(projectRoot) {
4090
- const sourceDir = _chunkMNUYXZV7cjs.getFarmProjectSourceDir.call(void 0, projectRoot);
4182
+ return memoizeInFarmSourceSnapshot(
4183
+ "project-aliases",
4184
+ farmSourceSnapshotPathKey(projectRoot),
4185
+ () => readProjectImportAliases(projectRoot),
4186
+ () => false
4187
+ );
4188
+ }
4189
+ function readProjectImportAliases(projectRoot) {
4190
+ const sourceDir = _chunkBNWADCG2cjs.getFarmProjectSourceDir.call(void 0, projectRoot);
4091
4191
  const cached = projectImportAliasCache.get(projectRoot);
4092
4192
  const dependencies = new Set(
4093
- _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _248 => _248.stamps, 'access', _249 => _249.keys, 'call', _250 => _250()]), () => ( PROJECT_ALIAS_FILES.map((file) => _path2.default.join(projectRoot, file))))
4193
+ _nullishCoalesce(_optionalChain([cached, 'optionalAccess', _253 => _253.stamps, 'access', _254 => _254.keys, 'call', _255 => _255()]), () => ( PROJECT_ALIAS_FILES.map((file) => _path2.default.join(projectRoot, file))))
4094
4194
  );
4095
4195
  const stamps = /* @__PURE__ */ new Map();
4096
4196
  for (const file of dependencies) {
4097
4197
  noteFarmSourceRead(file);
4098
4198
  stamps.set(file, getFarmSourceStamp(file));
4099
4199
  }
4100
- if (_optionalChain([cached, 'optionalAccess', _251 => _251.sourceDir]) === sourceDir && [...stamps].every(([file, stamp]) => cached.stamps.get(file) === stamp))
4200
+ if (_optionalChain([cached, 'optionalAccess', _256 => _256.sourceDir]) === sourceDir && [...stamps].every(([file, stamp]) => cached.stamps.get(file) === stamp))
4101
4201
  return cached.aliases;
4102
4202
  dependencies.clear();
4103
4203
  for (const file of PROJECT_ALIAS_FILES) dependencies.add(_path2.default.join(projectRoot, file));
@@ -4126,7 +4226,7 @@ function readTsconfigPathAliases(projectRoot, dependencies) {
4126
4226
  const configPath = _path2.default.join(projectRoot, name);
4127
4227
  if (!_fs2.default.existsSync(configPath)) continue;
4128
4228
  const resolved = readTsconfigPaths(configPath, /* @__PURE__ */ new Set(), dependencies);
4129
- if (!_optionalChain([resolved, 'optionalAccess', _252 => _252.paths])) return [];
4229
+ if (!_optionalChain([resolved, 'optionalAccess', _257 => _257.paths])) return [];
4130
4230
  const base2 = _nullishCoalesce(resolved.baseUrl, () => ( resolved.pathsDirectory));
4131
4231
  return Object.entries(resolved.paths).flatMap(([pattern, targets]) => {
4132
4232
  if (!Array.isArray(targets)) return [];
@@ -4162,18 +4262,18 @@ function readTsconfigPaths(configPath, visited, dependencies) {
4162
4262
  inherited = _nullishCoalesce(readTsconfigPaths(parentPath, visited, dependencies), () => ( inherited));
4163
4263
  }
4164
4264
  const options = _nullishCoalesce(config.compilerOptions, () => ( {}));
4165
- const baseUrl = typeof options.baseUrl === "string" ? _path2.default.resolve(directory, options.baseUrl) : _optionalChain([inherited, 'optionalAccess', _253 => _253.baseUrl]);
4265
+ const baseUrl = typeof options.baseUrl === "string" ? _path2.default.resolve(directory, options.baseUrl) : _optionalChain([inherited, 'optionalAccess', _258 => _258.baseUrl]);
4166
4266
  if (options.paths && typeof options.paths === "object") {
4167
4267
  return { paths: options.paths, pathsDirectory: directory, baseUrl };
4168
4268
  }
4169
4269
  return inherited ? { ...inherited, baseUrl } : { pathsDirectory: directory, baseUrl };
4170
4270
  }
4171
4271
  function readPackageImportAliases(projectRoot) {
4172
- const imports = _optionalChain([readPackageJson, 'call', _254 => _254(_path2.default.join(projectRoot, "package.json")), 'optionalAccess', _255 => _255.imports]);
4272
+ const imports = _optionalChain([readFarmPackageManifest, 'call', _259 => _259(_path2.default.join(projectRoot, "package.json")), 'optionalAccess', _260 => _260.imports]);
4173
4273
  if (!imports || typeof imports !== "object") return [];
4174
4274
  return Object.entries(imports).flatMap(([pattern, value]) => {
4175
4275
  const target = resolveConditionalExportTarget(value);
4176
- if (!pattern.startsWith("#") || !_optionalChain([target, 'optionalAccess', _256 => _256.startsWith, 'call', _257 => _257("./")])) return [];
4276
+ if (!pattern.startsWith("#") || !_optionalChain([target, 'optionalAccess', _261 => _261.startsWith, 'call', _262 => _262("./")])) return [];
4177
4277
  const wildcardIndex = pattern.indexOf("*");
4178
4278
  return [
4179
4279
  {
@@ -4189,7 +4289,7 @@ function readJsonWithComments(filePath) {
4189
4289
  let source;
4190
4290
  try {
4191
4291
  source = _fs2.default.readFileSync(filePath, "utf8");
4192
- } catch (e43) {
4292
+ } catch (e45) {
4193
4293
  return null;
4194
4294
  }
4195
4295
  let output = "";
@@ -4217,7 +4317,7 @@ function readJsonWithComments(filePath) {
4217
4317
  }
4218
4318
  try {
4219
4319
  return JSON.parse(output.replace(/,(\s*[}\]])/g, "$1"));
4220
- } catch (e44) {
4320
+ } catch (e46) {
4221
4321
  return null;
4222
4322
  }
4223
4323
  }
@@ -4237,17 +4337,17 @@ function resolvePackageModuleSourcePath(importerPath, specifier, root) {
4237
4337
  const packageDirectory = findPackageDirectory2(importerPath, packageName, root);
4238
4338
  if (!packageDirectory) return null;
4239
4339
  const packageJsonPath = _path2.default.join(packageDirectory, "package.json");
4240
- const packageJson = readPackageJson(packageJsonPath);
4340
+ const packageJson = readFarmPackageManifest(packageJsonPath);
4241
4341
  const exportKey = packageSubpath ? `./${packageSubpath}` : ".";
4242
- const exportTarget = resolvePackageExport(_optionalChain([packageJson, 'optionalAccess', _258 => _258.exports]), exportKey);
4342
+ const exportTarget = resolvePackageExport(_optionalChain([packageJson, 'optionalAccess', _263 => _263.exports]), exportKey);
4243
4343
  const candidates = /* @__PURE__ */ new Set();
4244
- if (_optionalChain([exportTarget, 'optionalAccess', _259 => _259.startsWith, 'call', _260 => _260("./")])) {
4344
+ if (_optionalChain([exportTarget, 'optionalAccess', _264 => _264.startsWith, 'call', _265 => _265("./")])) {
4245
4345
  candidates.add(_path2.default.resolve(packageDirectory, exportTarget));
4246
4346
  }
4247
4347
  if (packageSubpath) {
4248
4348
  candidates.add(_path2.default.join(packageDirectory, packageSubpath));
4249
4349
  } else {
4250
- for (const entry of [_optionalChain([packageJson, 'optionalAccess', _261 => _261.browser]), _optionalChain([packageJson, 'optionalAccess', _262 => _262.module]), _optionalChain([packageJson, 'optionalAccess', _263 => _263.main])]) {
4350
+ for (const entry of [_optionalChain([packageJson, 'optionalAccess', _266 => _266.browser]), _optionalChain([packageJson, 'optionalAccess', _267 => _267.module]), _optionalChain([packageJson, 'optionalAccess', _268 => _268.main])]) {
4251
4351
  if (typeof entry === "string") candidates.add(_path2.default.resolve(packageDirectory, entry));
4252
4352
  }
4253
4353
  candidates.add(_path2.default.join(packageDirectory, "index"));
@@ -4273,6 +4373,7 @@ function findPackageDirectory2(importerPath, packageName, root) {
4273
4373
  }
4274
4374
  }
4275
4375
  for (const searchRoot of searchRoots) {
4376
+ if (!hasFarmNodeModulesDirectory(searchRoot)) continue;
4276
4377
  const packageDirectory = _path2.default.join(searchRoot, "node_modules", packageName);
4277
4378
  if (_fs2.default.existsSync(_path2.default.join(packageDirectory, "package.json"))) {
4278
4379
  return packageDirectory;
@@ -4280,13 +4381,6 @@ function findPackageDirectory2(importerPath, packageName, root) {
4280
4381
  }
4281
4382
  return null;
4282
4383
  }
4283
- function readPackageJson(packageJsonPath) {
4284
- try {
4285
- return JSON.parse(_fs2.default.readFileSync(packageJsonPath, "utf8"));
4286
- } catch (e45) {
4287
- return null;
4288
- }
4289
- }
4290
4384
  function resolvePackageExport(exportsField, exportKey) {
4291
4385
  if (typeof exportsField === "string") {
4292
4386
  return exportKey === "." ? exportsField : null;
@@ -4312,7 +4406,7 @@ function resolvePackageExport(exportsField, exportKey) {
4312
4406
  if (!exportKey.startsWith(prefix) || !exportKey.endsWith(suffix)) continue;
4313
4407
  const wildcard = exportKey.slice(prefix.length, exportKey.length - suffix.length);
4314
4408
  const target = resolveConditionalExportTarget(value);
4315
- return _nullishCoalesce(_optionalChain([target, 'optionalAccess', _264 => _264.replace, 'call', _265 => _265("*", wildcard)]), () => ( null));
4409
+ return _nullishCoalesce(_optionalChain([target, 'optionalAccess', _269 => _269.replace, 'call', _270 => _270("*", wildcard)]), () => ( null));
4316
4410
  }
4317
4411
  return null;
4318
4412
  }
@@ -4355,8 +4449,8 @@ function resolveSourceCandidatePath(candidate) {
4355
4449
  }
4356
4450
  for (const sourcePath of paths) {
4357
4451
  try {
4358
- if (_optionalChain([_fs2.default, 'access', _266 => _266.statSync, 'call', _267 => _267(sourcePath, { throwIfNoEntry: false }), 'optionalAccess', _268 => _268.isFile, 'call', _269 => _269()])) return sourcePath;
4359
- } catch (e46) {
4452
+ if (_optionalChain([_fs2.default, 'access', _271 => _271.statSync, 'call', _272 => _272(sourcePath, { throwIfNoEntry: false }), 'optionalAccess', _273 => _273.isFile, 'call', _274 => _274()])) return sourcePath;
4453
+ } catch (e47) {
4360
4454
  }
4361
4455
  }
4362
4456
  return null;
@@ -4398,7 +4492,7 @@ function scanFarmPackageImports(directory, root) {
4398
4492
  let entries;
4399
4493
  try {
4400
4494
  entries = _fs2.default.readdirSync(current, { withFileTypes: true });
4401
- } catch (e47) {
4495
+ } catch (e48) {
4402
4496
  return;
4403
4497
  }
4404
4498
  for (const entry of entries) {
@@ -4431,7 +4525,7 @@ function collectFarmServerBundledPackageInfo(directory) {
4431
4525
  let entries;
4432
4526
  try {
4433
4527
  entries = _fs2.default.readdirSync(current, { withFileTypes: true });
4434
- } catch (e48) {
4528
+ } catch (e49) {
4435
4529
  return;
4436
4530
  }
4437
4531
  for (const entry of entries) {
@@ -4496,7 +4590,7 @@ function getFarmClientReachableModules(directory, root) {
4496
4590
  let entries;
4497
4591
  try {
4498
4592
  entries = _fs2.default.readdirSync(current, { withFileTypes: true });
4499
- } catch (e49) {
4593
+ } catch (e50) {
4500
4594
  return;
4501
4595
  }
4502
4596
  for (const entry of entries) {
@@ -4536,7 +4630,7 @@ function resolveFarmClientOptimizeDeps(directory, root) {
4536
4630
  const imports = scanFarmPackageImports(directory, root);
4537
4631
  for (const specifier of imports.client) {
4538
4632
  const fonts = findFarmServerBundledPackage(importer, specifier);
4539
- if (_optionalChain([fonts, 'optionalAccess', _270 => _270.fonts])) {
4633
+ if (_optionalChain([fonts, 'optionalAccess', _275 => _275.fonts])) {
4540
4634
  exclude.add(fonts.name);
4541
4635
  continue;
4542
4636
  }
@@ -4605,20 +4699,20 @@ function transformEnvironmentFunctions(options) {
4605
4699
  function farmEnvironmentFunctionsPlugin(options = {}) {
4606
4700
  let routesFiles = /* @__PURE__ */ new Set();
4607
4701
  const componentExtensions = new Set(
4608
- _chunkT7UC2ORAcjs.getFarmRendererComponentExtensions.call(void 0, options.renderer || void 0)
4702
+ _chunkLEZJZX4Ccjs.getFarmRendererComponentExtensions.call(void 0, options.renderer || void 0)
4609
4703
  );
4610
4704
  let farmApi;
4611
4705
  let isBuild = false;
4612
4706
  let projectRoot = process.cwd();
4613
4707
  let sources;
4614
4708
  const routeSourceFiles = () => {
4615
- const clientRoutes = _optionalChain([farmApi, 'optionalAccess', _271 => _271.getProgrammaticClientRoutes, 'call', _272 => _272()]);
4616
- if (_optionalChain([sources, 'optionalAccess', _273 => _273.for]) !== clientRoutes || !sources) {
4709
+ const clientRoutes = _optionalChain([farmApi, 'optionalAccess', _276 => _276.getProgrammaticClientRoutes, 'call', _277 => _277()]);
4710
+ if (_optionalChain([sources, 'optionalAccess', _278 => _278.for]) !== clientRoutes || !sources) {
4617
4711
  sources = {
4618
4712
  for: clientRoutes,
4619
4713
  files: /* @__PURE__ */ new Set([
4620
4714
  ...routesFiles,
4621
- ...[..._nullishCoalesce(_optionalChain([clientRoutes, 'optionalAccess', _274 => _274.routeSourceFiles]), () => ( []))].map(resolvedFile)
4715
+ ...[..._nullishCoalesce(_optionalChain([clientRoutes, 'optionalAccess', _279 => _279.routeSourceFiles]), () => ( []))].map(resolvedFile)
4622
4716
  ])
4623
4717
  };
4624
4718
  }
@@ -4639,11 +4733,11 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4639
4733
  configResolved(config) {
4640
4734
  isBuild = config.command === "build";
4641
4735
  projectRoot = config.root;
4642
- farmApi = _optionalChain([config, 'access', _275 => _275.plugins, 'access', _276 => _276.find, 'call', _277 => _277((plugin) => plugin.name === "farm"), 'optionalAccess', _278 => _278.api]);
4736
+ farmApi = _optionalChain([config, 'access', _280 => _280.plugins, 'access', _281 => _281.find, 'call', _282 => _282((plugin) => plugin.name === "farm"), 'optionalAccess', _283 => _283.api]);
4643
4737
  sources = void 0;
4644
4738
  routesFiles = new Set(
4645
- _chunk52Q4OB4Acjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
4646
- (source) => _chunkYUCU6XB4cjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
4739
+ _chunkPFVNPOKNcjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
4740
+ (source) => _chunkPYPHM7AScjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
4647
4741
  (name) => resolvedFile(_path2.default.resolve(source.root, source.srcDir, name))
4648
4742
  )
4649
4743
  )
@@ -4652,7 +4746,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4652
4746
  transform(code, id, transformOptions) {
4653
4747
  const environment = resolveBuildEnvironment(
4654
4748
  this,
4655
- _optionalChain([transformOptions, 'optionalAccess', _279 => _279.ssr])
4749
+ _optionalChain([transformOptions, 'optionalAccess', _284 => _284.ssr])
4656
4750
  );
4657
4751
  const parse3 = (source) => this.parse(source);
4658
4752
  const result = transformEnvironmentFunctions({
@@ -4662,10 +4756,10 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4662
4756
  parse: parse3,
4663
4757
  componentExtensions
4664
4758
  });
4665
- if (environment === "client" && !isBuild && !_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id) && routeSourceFiles().has(moduleFile(id)) && !isProgrammaticRouteActionProxy(code)) {
4759
+ if (environment === "client" && !isBuild && !_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id) && routeSourceFiles().has(moduleFile(id)) && !isProgrammaticRouteActionProxy(code)) {
4666
4760
  this.error(routeSourceError(moduleFile(id)));
4667
4761
  }
4668
- if (environment === "server" && _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([options, 'access', _280 => _280.experimental, 'optionalAccess', _281 => _281.serverComponents])) === "islands" && isApplicationScript(id)) {
4762
+ if (environment === "server" && _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, options)) === "islands" && isApplicationScript(id)) {
4669
4763
  const file = id.split("?", 1)[0];
4670
4764
  const root = _fs.realpathSync.call(void 0, _nullishCoalesce(options.root, () => ( projectRoot)));
4671
4765
  const clientCode = getFarmClientReachableModules(root, root).has(_path2.default.resolve(file)) || _fs.existsSync.call(void 0, file) && hasUseClientDirective(_fs.readFileSync.call(void 0, file, "utf8"));
@@ -4697,9 +4791,9 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4697
4791
  if (resolveBuildEnvironment(context, false) !== "client") return;
4698
4792
  const forbidden = routeSourceFiles();
4699
4793
  for (const id of this.getModuleIds()) {
4700
- if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4794
+ if (_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4701
4795
  const chain = findClientNodeBuiltinChain(id, (moduleId) => {
4702
- return _optionalChain([this, 'access', _282 => _282.getModuleInfo, 'call', _283 => _283(moduleId), 'optionalAccess', _284 => _284.importedIds]);
4796
+ return _optionalChain([this, 'access', _285 => _285.getModuleInfo, 'call', _286 => _286(moduleId), 'optionalAccess', _287 => _287.importedIds]);
4703
4797
  });
4704
4798
  if (chain) {
4705
4799
  this.error(
@@ -4717,8 +4811,8 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
4717
4811
  }
4718
4812
  if (!forbidden.has(moduleFile(id))) continue;
4719
4813
  const info = this.getModuleInfo(id);
4720
- if (isProgrammaticRouteActionProxy(_optionalChain([info, 'optionalAccess', _285 => _285.code]))) continue;
4721
- this.error(routeSourceError(moduleFile(id), _optionalChain([info, 'optionalAccess', _286 => _286.importers, 'access', _287 => _287.map, 'call', _288 => _288(moduleFile)])));
4814
+ if (isProgrammaticRouteActionProxy(_optionalChain([info, 'optionalAccess', _288 => _288.code]))) continue;
4815
+ this.error(routeSourceError(moduleFile(id), _optionalChain([info, 'optionalAccess', _289 => _289.importers, 'access', _290 => _290.map, 'call', _291 => _291(moduleFile)])));
4722
4816
  }
4723
4817
  }
4724
4818
  };
@@ -4732,13 +4826,13 @@ function moduleFile(id) {
4732
4826
  function resolvedFile(filePath) {
4733
4827
  try {
4734
4828
  return moduleFile(_fs.realpathSync.call(void 0, filePath));
4735
- } catch (e50) {
4829
+ } catch (e51) {
4736
4830
  return moduleFile(filePath);
4737
4831
  }
4738
4832
  }
4739
4833
  function resolveBuildEnvironment(context, ssr) {
4740
- if (_optionalChain([context, 'access', _289 => _289.environment, 'optionalAccess', _290 => _290.name]) === "client") return "client";
4741
- if (_optionalChain([context, 'access', _291 => _291.environment, 'optionalAccess', _292 => _292.name]) === "rsc" || _optionalChain([context, 'access', _293 => _293.environment, 'optionalAccess', _294 => _294.name]) === "ssr") {
4834
+ if (_optionalChain([context, 'access', _292 => _292.environment, 'optionalAccess', _293 => _293.name]) === "client") return "client";
4835
+ if (_optionalChain([context, 'access', _294 => _294.environment, 'optionalAccess', _295 => _295.name]) === "rsc" || _optionalChain([context, 'access', _296 => _296.environment, 'optionalAccess', _297 => _297.name]) === "ssr") {
4742
4836
  return "server";
4743
4837
  }
4744
4838
  return ssr ? "server" : "client";
@@ -5068,4 +5162,7 @@ function transformError(id, message) {
5068
5162
 
5069
5163
 
5070
5164
 
5071
- exports.FARM_BROWSER_BUILTIN_PREFIX = FARM_BROWSER_BUILTIN_PREFIX; exports.resolveFarmBrowserBuiltin = resolveFarmBrowserBuiltin; exports.loadFarmBrowserBuiltin = loadFarmBrowserBuiltin; exports.farmBrowserBuiltinsOptimizerPlugin = farmBrowserBuiltinsOptimizerPlugin; exports.programmaticClientRouteKey = programmaticClientRouteKey; exports.resolveProgrammaticClientRoutes = resolveProgrammaticClientRoutes; exports.createEvaluatedRouteGraph = createEvaluatedRouteGraph; exports.mergeProgrammaticClientRoutes = mergeProgrammaticClientRoutes; exports.generateProgrammaticClientRouteModule = generateProgrammaticClientRouteModule; exports.getFarmSourceStamp = getFarmSourceStamp; exports.FarmSourceSnapshotStore = FarmSourceSnapshotStore; exports.withFarmSourceSnapshot = withFarmSourceSnapshot; exports.withFarmSourceSnapshotOf = withFarmSourceSnapshotOf; exports.memoizeInFarmSourceSnapshot = memoizeInFarmSourceSnapshot; exports.noteFarmSourceRead = noteFarmSourceRead; exports.traceFarmSourceReads = traceFarmSourceReads; exports.traceFarmSourceReadGroups = traceFarmSourceReadGroups; exports.rewriteFarmReactServerClientModuleImports = rewriteFarmReactServerClientModuleImports; exports.rewriteFarmReactServerImports = rewriteFarmReactServerImports; exports.invalidateFarmClientOnlyScan = invalidateFarmClientOnlyScan; exports.farmRelativeImportFiles = farmRelativeImportFiles; exports.usePackageScanCacheFile = usePackageScanCacheFile; exports.persistPackageScanCache = persistPackageScanCache; exports.FARM_CLIENT_REFERENCE_PRAGMA = FARM_CLIENT_REFERENCE_PRAGMA; exports.FARM_CLIENT_REFERENCE_DIRECTORY = FARM_CLIENT_REFERENCE_DIRECTORY; exports.FARM_RESOLVE_FROM_PREFIX = FARM_RESOLVE_FROM_PREFIX; exports.parseFarmResolveFrom = parseFarmResolveFrom; exports.ensureFarmPackageClientReference = ensureFarmPackageClientReference; exports.ensureFarmInternalClientReference = ensureFarmInternalClientReference; exports.rewriteFarmPackageClientImports = rewriteFarmPackageClientImports; exports.farmIslandContainerReferencePath = farmIslandContainerReferencePath; exports.ensureFarmIslandContainerReference = ensureFarmIslandContainerReference; exports.wrapFarmIslandContainers = wrapFarmIslandContainers; exports.withPackageClientBoundaryCache = withPackageClientBoundaryCache; exports.bindPackageClientBoundaryCache = bindPackageClientBoundaryCache; exports.usePackageClientBoundaryCacheFile = usePackageClientBoundaryCacheFile; exports.resolvePackageClientBoundaryCacheFile = resolvePackageClientBoundaryCacheFile; exports.runWithPackageClientBoundaryCacheFile = runWithPackageClientBoundaryCacheFile; exports.runWithLatestPackageClientBoundaryCache = runWithLatestPackageClientBoundaryCache; exports.dropLatestPackageClientBoundaryCache = dropLatestPackageClientBoundaryCache; exports.setFarmRendererHydrationScope = setFarmRendererHydrationScope; exports.resolveModuleSourcePath = resolveModuleSourcePath; exports.getFarmClientHydrationPlanOptions = getFarmClientHydrationPlanOptions; exports.describeSuppressedAsyncHydration = describeSuppressedAsyncHydration; exports.resolveFarmIsolatedClientHydrationMode = resolveFarmIsolatedClientHydrationMode; exports.hasUseClientDirective = hasUseClientDirective; exports.getIslandStrategyExport = getIslandStrategyExport; exports.stripUseClientDirective = stripUseClientDirective; exports.getFarmClientRenderingBindings = getFarmClientRenderingBindings; exports.collectFarmRenderedClientModules = collectFarmRenderedClientModules; exports.collectFarmServerStylesheets = collectFarmServerStylesheets; exports.getClientModuleMetadata = getClientModuleMetadata; exports.getClientModuleHydrationPlanKey = getClientModuleHydrationPlanKey; exports.getClientModuleHydrationPlan = getClientModuleHydrationPlan; exports.usesFarmServerTree = usesFarmServerTree; exports.createMarkdownPageHydrationPlanner = createMarkdownPageHydrationPlanner; exports.enforceFarmIsolatedHydrationRouteBudget = enforceFarmIsolatedHydrationRouteBudget; exports.isIsolatableClientBoundarySource = isIsolatableClientBoundarySource; exports.isFarmClientModulePlanUnchanged = isFarmClientModulePlanUnchanged; exports.getInstalledPackageDirectory = getInstalledPackageDirectory; exports.resolveImportedModule = resolveImportedModule; exports.isFarmPackageClientBoundary = isFarmPackageClientBoundary; exports.collectFarmClientPackageImports = collectFarmClientPackageImports; exports.collectFarmServerBundledPackageInfo = collectFarmServerBundledPackageInfo; exports.noteFarmClientReachableModuleChange = noteFarmClientReachableModuleChange; exports.getFarmClientReachableModules = getFarmClientReachableModules; exports.resolveFarmClientOptimizeDeps = resolveFarmClientOptimizeDeps; exports.createFarmDiagnostic = createFarmDiagnostic; exports.formatFarmDiagnostic = formatFarmDiagnostic; exports.createFarmSourceLocator = createFarmSourceLocator; exports.transformEnvironmentFunctions = transformEnvironmentFunctions; exports.farmEnvironmentFunctionsPlugin = farmEnvironmentFunctionsPlugin;
5165
+
5166
+
5167
+
5168
+ exports.FARM_BROWSER_BUILTIN_PREFIX = FARM_BROWSER_BUILTIN_PREFIX; exports.resolveFarmBrowserBuiltin = resolveFarmBrowserBuiltin; exports.loadFarmBrowserBuiltin = loadFarmBrowserBuiltin; exports.farmBrowserBuiltinsOptimizerPlugin = farmBrowserBuiltinsOptimizerPlugin; exports.programmaticClientRouteKey = programmaticClientRouteKey; exports.resolveProgrammaticClientRoutes = resolveProgrammaticClientRoutes; exports.createEvaluatedRouteGraph = createEvaluatedRouteGraph; exports.mergeProgrammaticClientRoutes = mergeProgrammaticClientRoutes; exports.generateProgrammaticClientRouteModule = generateProgrammaticClientRouteModule; exports.getFarmSourceStamp = getFarmSourceStamp; exports.FarmSourceSnapshotStore = FarmSourceSnapshotStore; exports.withFarmSourceSnapshot = withFarmSourceSnapshot; exports.withFarmSourceSnapshotOf = withFarmSourceSnapshotOf; exports.withFarmSourceSnapshotAside = withFarmSourceSnapshotAside; exports.memoizeInFarmSourceSnapshot = memoizeInFarmSourceSnapshot; exports.noteFarmSourceRead = noteFarmSourceRead; exports.traceFarmSourceReads = traceFarmSourceReads; exports.traceFarmSourceReadGroups = traceFarmSourceReadGroups; exports.rewriteFarmReactServerClientModuleImports = rewriteFarmReactServerClientModuleImports; exports.rewriteFarmReactServerImports = rewriteFarmReactServerImports; exports.invalidateFarmClientOnlyScan = invalidateFarmClientOnlyScan; exports.farmRelativeImportFiles = farmRelativeImportFiles; exports.usePackageScanCacheFile = usePackageScanCacheFile; exports.persistPackageScanCache = persistPackageScanCache; exports.FARM_CLIENT_REFERENCE_PRAGMA = FARM_CLIENT_REFERENCE_PRAGMA; exports.FARM_CLIENT_REFERENCE_DIRECTORY = FARM_CLIENT_REFERENCE_DIRECTORY; exports.FARM_RESOLVE_FROM_PREFIX = FARM_RESOLVE_FROM_PREFIX; exports.parseFarmResolveFrom = parseFarmResolveFrom; exports.ensureFarmPackageClientReference = ensureFarmPackageClientReference; exports.ensureFarmInternalClientReference = ensureFarmInternalClientReference; exports.rewriteFarmPackageClientImports = rewriteFarmPackageClientImports; exports.FARM_ISLAND_CONTAINER_TAG = FARM_ISLAND_CONTAINER_TAG; exports.farmIslandContainerReferencePath = farmIslandContainerReferencePath; exports.ensureFarmIslandContainerReference = ensureFarmIslandContainerReference; exports.wrapFarmIslandContainers = wrapFarmIslandContainers; exports.withPackageClientBoundaryCache = withPackageClientBoundaryCache; exports.bindPackageClientBoundaryCache = bindPackageClientBoundaryCache; exports.usePackageClientBoundaryCacheFile = usePackageClientBoundaryCacheFile; exports.resolvePackageClientBoundaryCacheFile = resolvePackageClientBoundaryCacheFile; exports.runWithPackageClientBoundaryCacheFile = runWithPackageClientBoundaryCacheFile; exports.runWithLatestPackageClientBoundaryCache = runWithLatestPackageClientBoundaryCache; exports.dropLatestPackageClientBoundaryCache = dropLatestPackageClientBoundaryCache; exports.setFarmRendererHydrationScope = setFarmRendererHydrationScope; exports.resolveModuleSourcePath = resolveModuleSourcePath; exports.getFarmClientHydrationPlanOptions = getFarmClientHydrationPlanOptions; exports.describeSuppressedAsyncHydration = describeSuppressedAsyncHydration; exports.resolveFarmIsolatedClientHydrationMode = resolveFarmIsolatedClientHydrationMode; exports.hasUseClientDirective = hasUseClientDirective; exports.getIslandStrategyExport = getIslandStrategyExport; exports.stripUseClientDirective = stripUseClientDirective; exports.getFarmClientRenderingBindings = getFarmClientRenderingBindings; exports.collectFarmRenderedClientModules = collectFarmRenderedClientModules; exports.collectFarmServerStylesheets = collectFarmServerStylesheets; exports.getClientModuleMetadata = getClientModuleMetadata; exports.getClientModuleHydrationPlanKey = getClientModuleHydrationPlanKey; exports.getClientModuleHydrationPlan = getClientModuleHydrationPlan; exports.usesFarmServerTree = usesFarmServerTree; exports.createMarkdownPageHydrationPlanner = createMarkdownPageHydrationPlanner; exports.enforceFarmIsolatedHydrationRouteBudget = enforceFarmIsolatedHydrationRouteBudget; exports.isIsolatableClientBoundarySource = isIsolatableClientBoundarySource; exports.isFarmClientModulePlanUnchanged = isFarmClientModulePlanUnchanged; exports.isFarmServerModulePlanUnchanged = isFarmServerModulePlanUnchanged; exports.getInstalledPackageDirectory = getInstalledPackageDirectory; exports.resolveImportedModule = resolveImportedModule; exports.isFarmPackageClientBoundary = isFarmPackageClientBoundary; exports.collectFarmClientPackageImports = collectFarmClientPackageImports; exports.collectFarmServerBundledPackageInfo = collectFarmServerBundledPackageInfo; exports.noteFarmClientReachableModuleChange = noteFarmClientReachableModuleChange; exports.getFarmClientReachableModules = getFarmClientReachableModules; exports.resolveFarmClientOptimizeDeps = resolveFarmClientOptimizeDeps; exports.createFarmDiagnostic = createFarmDiagnostic; exports.formatFarmDiagnostic = formatFarmDiagnostic; exports.createFarmSourceLocator = createFarmSourceLocator; exports.transformEnvironmentFunctions = transformEnvironmentFunctions; exports.farmEnvironmentFunctionsPlugin = farmEnvironmentFunctionsPlugin;