@axerity/cli 0.3.4 → 0.3.6

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 (272) hide show
  1. package/dist/client/_app/immutable/assets/0.D_9a5iYh.css +1 -0
  2. package/dist/client/_app/immutable/chunks/4WKVz0dQ2.js +8 -0
  3. package/dist/client/_app/immutable/chunks/{BxHXOXhk.js → 5Snhw0Ea.js} +1 -1
  4. package/dist/client/_app/immutable/chunks/{CU8220Uu.js → 7mNMRbyk.js} +7 -7
  5. package/dist/client/_app/immutable/chunks/8HqVteX22.js +132 -0
  6. package/dist/client/_app/immutable/chunks/B1bQHaXp2.js +1 -0
  7. package/dist/client/_app/immutable/chunks/B1vLyBkH.js +1 -0
  8. package/dist/client/_app/immutable/chunks/B38mTxN_2.js +1 -0
  9. package/dist/client/_app/immutable/chunks/B6Q2kmfG.js +1 -0
  10. package/dist/client/_app/immutable/chunks/B8df50Oe.js +1 -0
  11. package/dist/client/_app/immutable/chunks/B8pCsplA.js +4 -0
  12. package/dist/client/_app/immutable/chunks/BBJaonHc.js +7 -0
  13. package/dist/client/_app/immutable/chunks/BC0Z6JSt.js +127 -0
  14. package/dist/client/_app/immutable/chunks/BIZlbVKk.js +1 -0
  15. package/dist/client/_app/immutable/chunks/BLTdZGww.js +10 -0
  16. package/dist/client/_app/immutable/chunks/BO5quTzD2.js +1 -0
  17. package/dist/client/_app/immutable/chunks/BVDV3lUS.js +1 -0
  18. package/dist/client/_app/immutable/chunks/{D1JHp0AN.js → BYhISeFr2.js} +3 -3
  19. package/dist/client/_app/immutable/chunks/B_cUqGeH.js +2 -0
  20. package/dist/client/_app/immutable/chunks/Bb7SY-Hh.js +2 -0
  21. package/dist/client/_app/immutable/chunks/{BmELG9zI.js → BbOlTtur.js} +1 -1
  22. package/dist/client/_app/immutable/chunks/Bf-rMgGa.js +1 -0
  23. package/dist/client/_app/immutable/chunks/{CrHSbMyX.js → Bg_yhsUP.js} +1 -1
  24. package/dist/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  25. package/dist/client/_app/immutable/chunks/Bq8Occ6m.js +1 -0
  26. package/dist/client/_app/immutable/chunks/Bs-bH16d2.js +36 -0
  27. package/dist/client/_app/immutable/chunks/BtTEEMTW.js +1 -0
  28. package/dist/client/_app/immutable/chunks/{BR2ZZ_D-.js → Bu2P_wCT.js} +9 -9
  29. package/dist/client/_app/immutable/chunks/C1MWiow4.js +1 -0
  30. package/dist/client/_app/immutable/chunks/{fbLwfhmm.js → C2-00Pdo.js} +8 -8
  31. package/dist/client/_app/immutable/chunks/C2FXoa5Z.js +1 -0
  32. package/dist/client/_app/immutable/chunks/CCHqIdNO.js +3 -0
  33. package/dist/client/_app/immutable/chunks/CDyVd27m2.js +1 -0
  34. package/dist/client/_app/immutable/chunks/{CrFMGgWF.js → CF0onlHk2.js} +1 -1
  35. package/dist/client/_app/immutable/chunks/CFMX0wTB2.js +2 -0
  36. package/dist/client/_app/immutable/chunks/CGzhSlOG2.js +88 -0
  37. package/dist/client/_app/immutable/chunks/{D1OSA14p2.js → CHdTS7qa2.js} +1 -1
  38. package/dist/client/_app/immutable/chunks/{CKUCToaK2.js → CHnO8ozm.js} +6 -6
  39. package/dist/client/_app/immutable/chunks/CIA0ThW0.js +1 -0
  40. package/dist/client/_app/immutable/chunks/CIFyFl372.js +2 -0
  41. package/dist/client/_app/immutable/chunks/CK1Au-AH.js +1 -0
  42. package/dist/client/_app/immutable/chunks/CORzmJfE2.js +1 -0
  43. package/dist/client/_app/immutable/chunks/{CrvMImwA.js → CP8i6059.js} +2 -2
  44. package/dist/client/_app/immutable/chunks/CR4TeO0O.js +156 -0
  45. package/dist/client/_app/immutable/chunks/CTgm3pse.js +1 -0
  46. package/dist/client/_app/immutable/chunks/CWKhPslf.js +1 -0
  47. package/dist/client/_app/immutable/chunks/{DWEIbyGx2.js → CWiCMZki2.js} +1 -1
  48. package/dist/client/_app/immutable/chunks/CZBscxHQ2.js +1 -0
  49. package/dist/client/_app/immutable/chunks/{Vhh-h91d.js → CddkPoXu.js} +1 -1
  50. package/dist/client/_app/immutable/chunks/CfzXM2Sw.js +24 -0
  51. package/dist/client/_app/immutable/chunks/{DVnPUkm_2.js → CgljPyk-.js} +1 -1
  52. package/dist/client/_app/immutable/chunks/Chofv7Zs2.js +11 -0
  53. package/dist/client/_app/immutable/chunks/CkDjHmRi.js +1 -0
  54. package/dist/client/_app/immutable/chunks/CqddNm0P.js +24 -0
  55. package/dist/client/_app/immutable/chunks/CtlrWY5d.js +1 -0
  56. package/dist/client/_app/immutable/chunks/CuRJVwEq.js +1 -0
  57. package/dist/client/_app/immutable/chunks/Cwm_NK7g2.js +1 -0
  58. package/dist/client/_app/immutable/chunks/{KMes_wgj.js → CxArn52D.js} +6 -6
  59. package/dist/client/_app/immutable/chunks/D0XLW3Y72.js +1 -0
  60. package/dist/client/_app/immutable/chunks/D3baVd8h.js +39 -0
  61. package/dist/client/_app/immutable/chunks/{DyvOZK_m.js → D53c3C1L.js} +1 -1
  62. package/dist/client/_app/immutable/chunks/D9D9EADq2.js +1 -0
  63. package/dist/client/_app/immutable/chunks/DAEwZWEo.js +1 -0
  64. package/dist/client/_app/immutable/chunks/DEkYOWll.js +1 -0
  65. package/dist/client/_app/immutable/chunks/DJR_kvNW.js +1 -0
  66. package/dist/client/_app/immutable/chunks/DJmG1hmx.js +1 -0
  67. package/dist/client/_app/immutable/chunks/DLuFpqVZ.js +1 -0
  68. package/dist/client/_app/immutable/chunks/DMWLK-DU2.js +231 -0
  69. package/dist/client/_app/immutable/chunks/DNzq6p3w.js +161 -0
  70. package/dist/client/_app/immutable/chunks/DSoM-AhV.js +292 -0
  71. package/dist/client/_app/immutable/chunks/{B2siGgVq.js → DUiFqfXY.js} +24 -24
  72. package/dist/client/_app/immutable/chunks/DVuOupEf.js +1 -0
  73. package/dist/client/_app/immutable/chunks/DY1BZ4Qc2.js +1 -0
  74. package/dist/client/_app/immutable/chunks/DYYXZ3DX.js +1 -0
  75. package/dist/client/_app/immutable/chunks/DbGyXH9B.js +1 -0
  76. package/dist/client/_app/immutable/chunks/DbfGBa34.js +1 -0
  77. package/dist/client/_app/immutable/chunks/{h6BdjjI92.js → Djp6vQyU2.js} +2 -2
  78. package/dist/client/_app/immutable/chunks/DlkSjMNB.js +3 -0
  79. package/dist/client/_app/immutable/chunks/{CqOdyAh12.js → Dq77RFat2.js} +19 -19
  80. package/dist/client/_app/immutable/chunks/DsF7k-Jl.js +1 -0
  81. package/dist/client/_app/immutable/chunks/{Cnog5E312.js → GV4wa_W82.js} +6 -6
  82. package/dist/client/_app/immutable/chunks/H8ZPB3lI.js +1 -0
  83. package/dist/client/_app/immutable/chunks/{D8Ssgrsp2.js → KythIMN82.js} +1 -1
  84. package/dist/client/_app/immutable/chunks/LevMccfs.js +62 -0
  85. package/dist/client/_app/immutable/chunks/{lVEu-GjD.js → MzKa3KJg.js} +1 -1
  86. package/dist/client/_app/immutable/chunks/{CO67I5FU.js → NwNz5UVg2.js} +7 -7
  87. package/dist/client/_app/immutable/chunks/WMQzk859.js +30 -0
  88. package/dist/client/_app/immutable/chunks/WqY32s1D.js +1 -0
  89. package/dist/client/_app/immutable/chunks/Xcyiycol2.js +34 -0
  90. package/dist/client/_app/immutable/chunks/hAYnLAr22.js +1 -0
  91. package/dist/client/_app/immutable/chunks/iW3ggMaf.js +1 -0
  92. package/dist/client/_app/immutable/chunks/mm27JPdG.js +85 -0
  93. package/dist/client/_app/immutable/chunks/mo9pLZen2.js +1 -0
  94. package/dist/client/_app/immutable/chunks/oWq97GrB.js +106 -0
  95. package/dist/client/_app/immutable/chunks/p8FwW_Sl.js +2 -0
  96. package/dist/client/_app/immutable/chunks/pHJTmPlB.js +41 -0
  97. package/dist/client/_app/immutable/chunks/qYxEWMoP2.js +1 -0
  98. package/dist/client/_app/immutable/chunks/snDW7wxp2.js +7 -0
  99. package/dist/client/_app/immutable/chunks/tvl5MGrS.js +62 -0
  100. package/dist/client/_app/immutable/entry/{app.BkF-rBjA.js → app.CWJWi65e.js} +2 -2
  101. package/dist/client/_app/immutable/entry/start.BnjVfvzh.js +1 -0
  102. package/dist/client/_app/immutable/nodes/0.KjaOE5W4.js +1 -0
  103. package/dist/client/_app/immutable/nodes/{1.D03cx22k.js → 1.BQfw1BrI.js} +1 -1
  104. package/dist/client/_app/immutable/nodes/2.Bm2kCMEX.js +21 -0
  105. package/dist/client/_app/version.json +1 -1
  106. package/dist/env.js +9 -33
  107. package/dist/env.js.map +1 -0
  108. package/dist/handler.js +23 -1493
  109. package/dist/handler.js.map +1 -0
  110. package/dist/index.js +33 -231
  111. package/dist/index.js.map +1 -0
  112. package/dist/server/chunks/{Icon-B39GsOhr.js → chunks/Icon.js-BuPXv_NW.js} +16 -14
  113. package/dist/server/chunks/chunks/Icon.js-BuPXv_NW.js.map +1 -0
  114. package/dist/server/chunks/{content-store-CkGb0SWT.js → chunks/content-store.js-BvDwR1n-.js} +7 -5
  115. package/dist/server/chunks/chunks/content-store.js-BvDwR1n-.js.map +1 -0
  116. package/dist/server/chunks/chunks/content.js-Ck7_Is4v.js +13 -0
  117. package/dist/server/chunks/chunks/content.js-Ck7_Is4v.js.map +1 -0
  118. package/dist/server/chunks/chunks/env.js-l0sNRNKZ.js +2 -0
  119. package/dist/server/chunks/chunks/env.js-l0sNRNKZ.js.map +1 -0
  120. package/dist/server/chunks/chunks/exports.js-DKNfc8Xi.js +152 -0
  121. package/dist/server/chunks/chunks/exports.js-DKNfc8Xi.js.map +1 -0
  122. package/dist/server/chunks/{internal2-Cc9tn9q-.js → chunks/internal.js-CS2S4fsh.js} +2931 -3573
  123. package/dist/server/chunks/chunks/internal.js-CS2S4fsh.js.map +1 -0
  124. package/dist/server/chunks/chunks/internal2.js-DnoW9Dd1.js +475 -0
  125. package/dist/server/chunks/chunks/internal2.js-DnoW9Dd1.js.map +1 -0
  126. package/dist/server/chunks/chunks/paths.js-BmhPy-Zq.js +4 -0
  127. package/dist/server/chunks/chunks/paths.js-BmhPy-Zq.js.map +1 -0
  128. package/dist/server/chunks/chunks/routing.js-CBkoLhW9.js +215 -0
  129. package/dist/server/chunks/chunks/routing.js-CBkoLhW9.js.map +1 -0
  130. package/dist/server/chunks/{exports-BYLl3AJT.js → chunks/shared.js-DL3We7L2.js} +13 -195
  131. package/dist/server/chunks/chunks/shared.js-DL3We7L2.js.map +1 -0
  132. package/dist/server/chunks/{site-BzEriToh.js → chunks/site.js-B9j7u8c5.js} +4 -2
  133. package/dist/server/chunks/chunks/site.js-B9j7u8c5.js.map +1 -0
  134. package/dist/server/chunks/chunks/utils.js-BqOwS4Ug.js +740 -0
  135. package/dist/server/chunks/chunks/utils.js-BqOwS4Ug.js.map +1 -0
  136. package/dist/server/chunks/{_server.ts-Ct0Ll5bb.js → entries/endpoints/_...path_mdfile_/_server.ts.js-Om7bYZKj.js} +5 -3
  137. package/dist/server/chunks/entries/endpoints/_...path_mdfile_/_server.ts.js-Om7bYZKj.js.map +1 -0
  138. package/dist/server/chunks/{_server.ts-CJRyggfF.js → entries/endpoints/__manifest/_server.ts.js-DDaYEkp-.js} +6 -4
  139. package/dist/server/chunks/entries/endpoints/__manifest/_server.ts.js-DDaYEkp-.js.map +1 -0
  140. package/dist/server/chunks/{_server.ts--AQtsWl0.js → entries/endpoints/llms-full.txt/_server.ts.js-DMfWG5dX.js} +6 -4
  141. package/dist/server/chunks/entries/endpoints/llms-full.txt/_server.ts.js-DMfWG5dX.js.map +1 -0
  142. package/dist/server/chunks/{_server.ts-BWRlkeWL.js → entries/endpoints/llms.txt/_server.ts.js-DriAXFu-.js} +6 -4
  143. package/dist/server/chunks/entries/endpoints/llms.txt/_server.ts.js-DriAXFu-.js.map +1 -0
  144. package/dist/server/chunks/{_server.ts-vfrX_ASl.js → entries/endpoints/og/_...slug_/_server.ts.js-DD3q5If5.js} +6 -4
  145. package/dist/server/chunks/entries/endpoints/og/_...slug_/_server.ts.js-DD3q5If5.js.map +1 -0
  146. package/dist/server/chunks/{_server.ts-D6CFL-gk.js → entries/endpoints/rss.xml/_server.ts.js-DaeHUkNT.js} +6 -4
  147. package/dist/server/chunks/entries/endpoints/rss.xml/_server.ts.js-DaeHUkNT.js.map +1 -0
  148. package/dist/server/chunks/{_server.ts-DrcvZqTi.js → entries/endpoints/search.json/_server.ts.js-BTKtjtuB.js} +5 -3
  149. package/dist/server/chunks/entries/endpoints/search.json/_server.ts.js-BTKtjtuB.js.map +1 -0
  150. package/dist/server/chunks/{_server.ts-C1Vx_DWq.js → entries/endpoints/sitemap.xml/_server.ts.js-AjE0bYBX.js} +6 -4
  151. package/dist/server/chunks/entries/endpoints/sitemap.xml/_server.ts.js-AjE0bYBX.js.map +1 -0
  152. package/dist/server/chunks/{hooks.server-CB5GWVYz.js → entries/hooks.server.js-DgpmswzZ.js} +5 -3
  153. package/dist/server/chunks/entries/hooks.server.js-DgpmswzZ.js.map +1 -0
  154. package/dist/server/chunks/{docpage-BkHysAhp.js → entries/matchers/docpage.js-BkHysAhp.js} +1 -1
  155. package/dist/server/chunks/entries/matchers/docpage.js-BkHysAhp.js.map +1 -0
  156. package/dist/server/chunks/{mdfile-DBiwGtNY.js → entries/matchers/mdfile.js-DBiwGtNY.js} +1 -1
  157. package/dist/server/chunks/entries/matchers/mdfile.js-DBiwGtNY.js.map +1 -0
  158. package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.server.ts.js-BLrxDWKB.js +31 -0
  159. package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.server.ts.js-BLrxDWKB.js.map +1 -0
  160. package/dist/server/chunks/{_page.svelte-Cmr6xyfK.js → entries/pages/_...slug_docpage_/_page.svelte.js-DHsQdIPq.js} +38 -34
  161. package/dist/server/chunks/entries/pages/_...slug_docpage_/_page.svelte.js-DHsQdIPq.js.map +1 -0
  162. package/dist/server/chunks/{_error.svelte-BmM3eia-.js → entries/pages/_error.svelte.js-C5IizUHI.js} +9 -6
  163. package/dist/server/chunks/entries/pages/_error.svelte.js-C5IizUHI.js.map +1 -0
  164. package/dist/server/chunks/entries/pages/_layout.server.ts.js-BVpOfaEd.js +18 -0
  165. package/dist/server/chunks/entries/pages/_layout.server.ts.js-BVpOfaEd.js.map +1 -0
  166. package/dist/server/chunks/{_layout.svelte-DN7VDoNA.js → entries/pages/_layout.svelte.js-C9fzvWFB.js} +11 -3
  167. package/dist/server/chunks/entries/pages/_layout.svelte.js-C9fzvWFB.js.map +1 -0
  168. package/dist/server/chunks/handler-ColT39Lk.js +1206 -0
  169. package/dist/server/chunks/handler-ColT39Lk.js.map +1 -0
  170. package/dist/server/{index.js → chunks/index.js-0pMmjHBu.js} +444 -1155
  171. package/dist/server/chunks/index.js-0pMmjHBu.js.map +1 -0
  172. package/dist/server/{manifest.js → chunks/manifest.js-Du2tEIKJ.js} +16 -20
  173. package/dist/server/chunks/manifest.js-Du2tEIKJ.js.map +1 -0
  174. package/dist/server/chunks/nodes/0.js-479vKOsq.js +30 -0
  175. package/dist/server/chunks/nodes/0.js-479vKOsq.js.map +1 -0
  176. package/dist/server/chunks/nodes/1.js-BUjLAE1S.js +9 -0
  177. package/dist/server/chunks/nodes/1.js-BUjLAE1S.js.map +1 -0
  178. package/dist/server/chunks/nodes/2.js-kHx_y3-d.js +32 -0
  179. package/dist/server/chunks/nodes/2.js-kHx_y3-d.js.map +1 -0
  180. package/dist/shims.js +2 -30
  181. package/dist/shims.js.map +1 -0
  182. package/package.json +26 -26
  183. package/dist/client/_app/immutable/assets/0.CZH7ZxPr.css +0 -1
  184. package/dist/client/_app/immutable/chunks/4QUyWxRp.js +0 -1
  185. package/dist/client/_app/immutable/chunks/5brL7le7.js +0 -1
  186. package/dist/client/_app/immutable/chunks/AVywM_y2.js +0 -85
  187. package/dist/client/_app/immutable/chunks/B-2v_FHk2.js +0 -36
  188. package/dist/client/_app/immutable/chunks/B2NH8-JT.js +0 -2
  189. package/dist/client/_app/immutable/chunks/B6GEGn8a.js +0 -10
  190. package/dist/client/_app/immutable/chunks/BMrnNhEK.js +0 -1
  191. package/dist/client/_app/immutable/chunks/BPr4vZF2.js +0 -292
  192. package/dist/client/_app/immutable/chunks/B_aLYNof2.js +0 -62
  193. package/dist/client/_app/immutable/chunks/Bcl_F5Rk.js +0 -162
  194. package/dist/client/_app/immutable/chunks/Bhp_hF4I.js +0 -7
  195. package/dist/client/_app/immutable/chunks/BiwHu9iZ.js +0 -34
  196. package/dist/client/_app/immutable/chunks/BncN_SFM.js +0 -1
  197. package/dist/client/_app/immutable/chunks/BqfYRTli.js +0 -1
  198. package/dist/client/_app/immutable/chunks/Bxc19hA4.js +0 -231
  199. package/dist/client/_app/immutable/chunks/C-2ebXi62.js +0 -1
  200. package/dist/client/_app/immutable/chunks/C5YJ1yll.js +0 -1
  201. package/dist/client/_app/immutable/chunks/C9ACkxc9.js +0 -1
  202. package/dist/client/_app/immutable/chunks/C9oUh5bS.js +0 -1
  203. package/dist/client/_app/immutable/chunks/CA-FvMpm2.js +0 -1
  204. package/dist/client/_app/immutable/chunks/CB683wti.js +0 -24
  205. package/dist/client/_app/immutable/chunks/CBw-Ef8i.js +0 -1
  206. package/dist/client/_app/immutable/chunks/CDzGDeIO.js +0 -2
  207. package/dist/client/_app/immutable/chunks/CGhzzHe4.js +0 -1
  208. package/dist/client/_app/immutable/chunks/CJIjuuPI.js +0 -3
  209. package/dist/client/_app/immutable/chunks/CLAkFX7S2.js +0 -1
  210. package/dist/client/_app/immutable/chunks/CNNqHIOE.js +0 -1
  211. package/dist/client/_app/immutable/chunks/COtBc-WT.js +0 -1
  212. package/dist/client/_app/immutable/chunks/CRPRTyhe2.js +0 -43
  213. package/dist/client/_app/immutable/chunks/CVwLGEVp.js +0 -9
  214. package/dist/client/_app/immutable/chunks/CYVFLYUH2.js +0 -132
  215. package/dist/client/_app/immutable/chunks/CmhcKymT2.js +0 -4
  216. package/dist/client/_app/immutable/chunks/CnsHLsSU2.js +0 -1
  217. package/dist/client/_app/immutable/chunks/D-mF3Ymq2.js +0 -1
  218. package/dist/client/_app/immutable/chunks/DFZLNBg4.js +0 -3
  219. package/dist/client/_app/immutable/chunks/DI0aitcY.js +0 -1
  220. package/dist/client/_app/immutable/chunks/DL8TMeQv.js +0 -4
  221. package/dist/client/_app/immutable/chunks/DWR0mSia.js +0 -24
  222. package/dist/client/_app/immutable/chunks/D_bFluSV2.js +0 -1
  223. package/dist/client/_app/immutable/chunks/DlpIbxXb.js +0 -159
  224. package/dist/client/_app/immutable/chunks/Drqwbptl2.js +0 -1
  225. package/dist/client/_app/immutable/chunks/DshlDaTJ.js +0 -1
  226. package/dist/client/_app/immutable/chunks/DtVGcudl.js +0 -3
  227. package/dist/client/_app/immutable/chunks/JN-hBVZx.js +0 -1
  228. package/dist/client/_app/immutable/chunks/KQRMt0jm2.js +0 -1
  229. package/dist/client/_app/immutable/chunks/KSCXtHEz.js +0 -30
  230. package/dist/client/_app/immutable/chunks/MNRJQPsd.js +0 -124
  231. package/dist/client/_app/immutable/chunks/S_AIhi7v2.js +0 -2
  232. package/dist/client/_app/immutable/chunks/hFfQmBrk2.js +0 -1
  233. package/dist/client/_app/immutable/chunks/pO9ctS3B.js +0 -1
  234. package/dist/client/_app/immutable/chunks/qKp3hrn2.js +0 -1
  235. package/dist/client/_app/immutable/chunks/uObJDEK6.js +0 -106
  236. package/dist/client/_app/immutable/chunks/vNSaohXd.js +0 -1
  237. package/dist/client/_app/immutable/chunks/wdqFE1Ck.js +0 -1
  238. package/dist/client/_app/immutable/chunks/zl68KYpW2.js +0 -10
  239. package/dist/client/_app/immutable/entry/start.2NHd-KNf.js +0 -1
  240. package/dist/client/_app/immutable/nodes/0.Dh5-dzOP.js +0 -1
  241. package/dist/client/_app/immutable/nodes/2.T06EL3l4.js +0 -21
  242. package/dist/server/chunks/0-DX38cI4t.js +0 -40
  243. package/dist/server/chunks/0-DX38cI4t.js.map +0 -1
  244. package/dist/server/chunks/1-DtLZVIEo.js +0 -9
  245. package/dist/server/chunks/1-DtLZVIEo.js.map +0 -1
  246. package/dist/server/chunks/2-D9UarvNQ.js +0 -54
  247. package/dist/server/chunks/2-D9UarvNQ.js.map +0 -1
  248. package/dist/server/chunks/Icon-B39GsOhr.js.map +0 -1
  249. package/dist/server/chunks/_error.svelte-BmM3eia-.js.map +0 -1
  250. package/dist/server/chunks/_layout.svelte-DN7VDoNA.js.map +0 -1
  251. package/dist/server/chunks/_page.svelte-Cmr6xyfK.js.map +0 -1
  252. package/dist/server/chunks/_server.ts--AQtsWl0.js.map +0 -1
  253. package/dist/server/chunks/_server.ts-BWRlkeWL.js.map +0 -1
  254. package/dist/server/chunks/_server.ts-C1Vx_DWq.js.map +0 -1
  255. package/dist/server/chunks/_server.ts-CJRyggfF.js.map +0 -1
  256. package/dist/server/chunks/_server.ts-Ct0Ll5bb.js.map +0 -1
  257. package/dist/server/chunks/_server.ts-D6CFL-gk.js.map +0 -1
  258. package/dist/server/chunks/_server.ts-DrcvZqTi.js.map +0 -1
  259. package/dist/server/chunks/_server.ts-vfrX_ASl.js.map +0 -1
  260. package/dist/server/chunks/content-store-CkGb0SWT.js.map +0 -1
  261. package/dist/server/chunks/docpage-BkHysAhp.js.map +0 -1
  262. package/dist/server/chunks/exports-BYLl3AJT.js.map +0 -1
  263. package/dist/server/chunks/hooks.server-CB5GWVYz.js.map +0 -1
  264. package/dist/server/chunks/internal2-Cc9tn9q-.js.map +0 -1
  265. package/dist/server/chunks/mdfile-DBiwGtNY.js.map +0 -1
  266. package/dist/server/chunks/site-BzEriToh.js.map +0 -1
  267. package/dist/server/index.js.map +0 -1
  268. package/dist/server/manifest.js.map +0 -1
  269. /package/dist/client/_app/immutable/chunks/{BifhSqXX.js → BifhSqXX2.js} +0 -0
  270. /package/dist/client/_app/immutable/chunks/{C8Fc0cco.js → C8Fc0cco2.js} +0 -0
  271. /package/dist/client/_app/immutable/chunks/{CSKSodPl2.js → CSKSodPl.js} +0 -0
  272. /package/dist/client/_app/immutable/chunks/{D6jRqBbL.js → D6jRqBbL2.js} +0 -0
@@ -1,741 +1,14 @@
1
- import { u as uneval, _ as __commonJSMin, o as options, s as set_private_env, a as set_public_env, g as get_hooks, b as base, d as decode_pathname, f as find_route, n as normalize_path, c as disable_search, p as public_env, r as resolve, e as read_implementation, h as reset, i as assets, j as app_dir, m as make_trackable, w as writable, k as readable, l as set_read_implementation } from './chunks/internal2-Cc9tn9q-.js';
2
- import { c as coalesce_to_error, g as get_status, a as get_message, p as parse, n as noop, h as has_resolution_suffix, b as has_data_suffix, s as strip_resolution_suffix, d as strip_data_suffix, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, e as add_data_suffix, f as add_resolution_suffix, v as validate_layout_server_exports, i as validate_layout_exports, j as validate_page_server_exports, k as validate_page_exports, l as noop_span, m as create_remote_key, o as hash, t as text_encoder, q as compact, r as once, u as normalize_error, w as parse_remote_arg, x as stringify, y as stringify$1, z as split_remote_key, A as base64_encode } from './chunks/exports-BYLl3AJT.js';
1
+ import { _ as __commonJSMin, o as options, g as get_hooks, r as read_implementation, w as writable, a as readable, s as set_read_implementation } from './chunks/internal.js-CS2S4fsh.js';
2
+ import { n as noop, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, g as get_status, t as text_encoder, o as once, b as normalize_error, d as create_remote_key, e as parse_remote_arg, s as stringify, f as stringify$1, h as split_remote_key, i as base64_encode } from './chunks/shared.js-DL3We7L2.js';
3
+ import { f as set_private_env, h as set_public_env, j as base, u as uneval, p as public_env, r as reset, k as assets, l as app_dir } from './chunks/internal2.js-DnoW9Dd1.js';
4
+ import { f as format_server_error, i as is_form_content_type, h as has_prerendered_path, a as handle_fatal_error, r as redirect_response, g as get_set_cookies, n as negotiate, m as method_not_allowed, p as parseString, s, b as static_error_page, c as handle_error_and_jsonify, d as get_global_name, e as create_replacer, j as serialize_uses, k as clarify_devalue_error, E as ENDPOINT_METHODS, P as PAGE_METHODS, l as get_node_type, o as escape_html, q as deserialize_binary_form } from './chunks/utils.js-BqOwS4Ug.js';
5
+ import { v as validate_layout_server_exports, a as validate_layout_exports, b as validate_page_server_exports, c as validate_page_exports, n as noop_span, h as hash, d as compact } from './chunks/exports.js-DKNfc8Xi.js';
6
+ import { h as has_resolution_suffix, a as has_data_suffix, s as strip_resolution_suffix, b as strip_data_suffix, d as decode_pathname, c as add_data_suffix, e as add_resolution_suffix, f as find_route, n as normalize_path, g as disable_search, r as resolve, m as make_trackable } from './chunks/routing.js-CBkoLhW9.js';
3
7
  import { json, text, isRedirect, error } from '@sveltejs/kit';
4
- import { HttpError, SvelteKitError, Redirect, ActionFailure } from '@sveltejs/kit/internal';
8
+ import { Redirect, SvelteKitError, HttpError, ActionFailure } from '@sveltejs/kit/internal';
5
9
  import { with_request_store, merge_tracing } from '@sveltejs/kit/internal/server';
6
10
 
7
- var ENDPOINT_METHODS = [
8
- "GET",
9
- "POST",
10
- "PUT",
11
- "PATCH",
12
- "DELETE",
13
- "OPTIONS",
14
- "HEAD"
15
- ];
16
- var PAGE_METHODS = [
17
- "GET",
18
- "POST",
19
- "HEAD"
20
- ];
21
- //#endregion
22
- //#region node_modules/.pnpm/set-cookie-parser@3.1.0/node_modules/set-cookie-parser/lib/set-cookie.js
23
- var defaultParseOptions = {
24
- decodeValues: true,
25
- map: false,
26
- silent: false,
27
- split: "auto"
28
- };
29
- function isForbiddenKey(key) {
30
- return typeof key !== "string" || key in {};
31
- }
32
- function createNullObj() {
33
- return Object.create(null);
34
- }
35
- function isNonEmptyString(str) {
36
- return typeof str === "string" && !!str.trim();
37
- }
38
- function parseString(setCookieValue, options) {
39
- var parts = setCookieValue.split(";").filter(isNonEmptyString);
40
- var parsed = parseNameValuePair(parts.shift());
41
- var name = parsed.name;
42
- var value = parsed.value;
43
- options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
44
- if (isForbiddenKey(name)) return null;
45
- try {
46
- value = options.decodeValues ? decodeURIComponent(value) : value;
47
- } catch (e) {
48
- console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.", e);
49
- }
50
- var cookie = createNullObj();
51
- cookie.name = name;
52
- cookie.value = value;
53
- parts.forEach(function(part) {
54
- var sides = part.split("=");
55
- var key = sides.shift().trimLeft().toLowerCase();
56
- if (isForbiddenKey(key)) return;
57
- var value = sides.join("=");
58
- if (key === "expires") cookie.expires = new Date(value);
59
- else if (key === "max-age") {
60
- var n = parseInt(value, 10);
61
- if (!Number.isNaN(n)) cookie.maxAge = n;
62
- } else if (key === "secure") cookie.secure = true;
63
- else if (key === "httponly") cookie.httpOnly = true;
64
- else if (key === "samesite") cookie.sameSite = value;
65
- else if (key === "partitioned") cookie.partitioned = true;
66
- else if (key) cookie[key] = value;
67
- });
68
- return cookie;
69
- }
70
- function parseNameValuePair(nameValuePairStr) {
71
- var name = "";
72
- var value = "";
73
- var nameValueArr = nameValuePairStr.split("=");
74
- if (nameValueArr.length > 1) {
75
- name = nameValueArr.shift();
76
- value = nameValueArr.join("=");
77
- } else value = nameValuePairStr;
78
- return {
79
- name,
80
- value
81
- };
82
- }
83
- function parseSetCookie(input, options) {
84
- options = options ? Object.assign({}, defaultParseOptions, options) : defaultParseOptions;
85
- if (!input) if (!options.map) return [];
86
- else return createNullObj();
87
- if (input.headers) if (typeof input.headers.getSetCookie === "function") input = input.headers.getSetCookie();
88
- else if (input.headers["set-cookie"]) input = input.headers["set-cookie"];
89
- else {
90
- var sch = input.headers[Object.keys(input.headers).find(function(key) {
91
- return key.toLowerCase() === "set-cookie";
92
- })];
93
- if (!sch && input.headers.cookie && !options.silent) console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning.");
94
- input = sch;
95
- }
96
- var split = options.split;
97
- var isArray = Array.isArray(input);
98
- if (split === "auto") split = !isArray;
99
- if (!isArray) input = [input];
100
- input = input.filter(isNonEmptyString);
101
- if (split) input = input.map(splitCookiesString).flat();
102
- if (!options.map) return input.map(function(str) {
103
- return parseString(str, options);
104
- }).filter(Boolean);
105
- else {
106
- var cookies = createNullObj();
107
- return input.reduce(function(cookies, str) {
108
- var cookie = parseString(str, options);
109
- if (cookie && !isForbiddenKey(cookie.name)) cookies[cookie.name] = cookie;
110
- return cookies;
111
- }, cookies);
112
- }
113
- }
114
- function splitCookiesString(cookiesString) {
115
- if (Array.isArray(cookiesString)) return cookiesString;
116
- if (typeof cookiesString !== "string") return [];
117
- var cookiesStrings = [];
118
- var pos = 0;
119
- var start;
120
- var ch;
121
- var lastComma;
122
- var nextStart;
123
- var cookiesSeparatorFound;
124
- function skipWhitespace() {
125
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
126
- return pos < cookiesString.length;
127
- }
128
- function notSpecialChar() {
129
- ch = cookiesString.charAt(pos);
130
- return ch !== "=" && ch !== ";" && ch !== ",";
131
- }
132
- while (pos < cookiesString.length) {
133
- start = pos;
134
- cookiesSeparatorFound = false;
135
- while (skipWhitespace()) {
136
- ch = cookiesString.charAt(pos);
137
- if (ch === ",") {
138
- lastComma = pos;
139
- pos += 1;
140
- skipWhitespace();
141
- nextStart = pos;
142
- while (pos < cookiesString.length && notSpecialChar()) pos += 1;
143
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
144
- cookiesSeparatorFound = true;
145
- pos = nextStart;
146
- cookiesStrings.push(cookiesString.substring(start, lastComma));
147
- start = pos;
148
- } else pos = lastComma + 1;
149
- } else pos += 1;
150
- }
151
- if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
152
- }
153
- return cookiesStrings;
154
- }
155
- parseSetCookie.parseSetCookie = parseSetCookie;
156
- parseSetCookie.parse = parseSetCookie;
157
- parseSetCookie.parseString = parseString;
158
- parseSetCookie.splitCookiesString = splitCookiesString;
159
- //#endregion
160
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/form-utils.js
161
- /** @import { RemoteForm } from '@sveltejs/kit' */
162
- /** @import { BinaryFormMeta, InternalRemoteFormIssue } from 'types' */
163
- /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
164
- var decoder = new TextDecoder();
165
- /**
166
- * Sets a value in a nested object using a path string, mutating the original object
167
- * @param {Record<string, any>} object
168
- * @param {string} path_string
169
- * @param {any} value
170
- */
171
- function set_nested_value(object, path_string, value) {
172
- if (path_string.startsWith("n:")) {
173
- path_string = path_string.slice(2);
174
- value = value === "" ? void 0 : parseFloat(value);
175
- } else if (path_string.startsWith("b:")) {
176
- path_string = path_string.slice(2);
177
- value = value === "on";
178
- }
179
- deep_set(object, split_path(path_string), value);
180
- }
181
- /**
182
- * Convert `FormData` into a POJO
183
- * @param {FormData} data
184
- */
185
- function convert_formdata(data) {
186
- /** @type {Record<string, any>} */
187
- const result = {};
188
- for (let key of data.keys()) {
189
- const is_array = key.endsWith("[]");
190
- /** @type {any[]} */
191
- let values = data.getAll(key);
192
- if (is_array) key = key.slice(0, -2);
193
- if (values.length > 1 && !is_array) throw new Error(`Form cannot contain duplicated keys — "${key}" has ${values.length} values`);
194
- values = values.filter((entry) => typeof entry === "string" || entry.name !== "" || entry.size > 0);
195
- if (key.startsWith("n:")) {
196
- key = key.slice(2);
197
- values = values.map((v) => v === "" ? void 0 : parseFloat(v));
198
- } else if (key.startsWith("b:")) {
199
- key = key.slice(2);
200
- values = values.map((v) => v === "on");
201
- }
202
- set_nested_value(result, key, is_array ? values : values[0]);
203
- }
204
- return result;
205
- }
206
- var BINARY_FORM_CONTENT_TYPE = "application/x-sveltekit-formdata";
207
- var BINARY_FORM_VERSION = 0;
208
- var HEADER_BYTES = 7;
209
- /**
210
- * @param {Request} request
211
- * @returns {Promise<{ data: Record<string, any>; meta: BinaryFormMeta; form_data: FormData | null }>}
212
- */
213
- async function deserialize_binary_form(request) {
214
- if (request.headers.get("content-type") !== "application/x-sveltekit-formdata") {
215
- const form_data = await request.formData();
216
- return {
217
- data: convert_formdata(form_data),
218
- meta: {},
219
- form_data
220
- };
221
- }
222
- if (!request.body) throw deserialize_error("no body");
223
- const reader = request.body.getReader();
224
- /** @type {Array<Promise<Uint8Array<ArrayBuffer> | undefined>>} */
225
- const chunks = [];
226
- /**
227
- * @param {number} index
228
- * @returns {Promise<Uint8Array<ArrayBuffer> | undefined>}
229
- */
230
- function get_chunk(index) {
231
- if (index in chunks) return chunks[index];
232
- let i = chunks.length;
233
- while (i <= index) {
234
- chunks[i] = reader.read().then((chunk) => chunk.value);
235
- i++;
236
- }
237
- return chunks[index];
238
- }
239
- /**
240
- * @param {number} offset
241
- * @param {number} length
242
- * @returns {Promise<Uint8Array | null>}
243
- */
244
- async function get_buffer(offset, length) {
245
- /** @type {Uint8Array} */
246
- let start_chunk;
247
- let chunk_start = 0;
248
- /** @type {number} */
249
- let chunk_index;
250
- for (chunk_index = 0;; chunk_index++) {
251
- const chunk = await get_chunk(chunk_index);
252
- if (!chunk) return null;
253
- const chunk_end = chunk_start + chunk.byteLength;
254
- if (offset >= chunk_start && offset < chunk_end) {
255
- start_chunk = chunk;
256
- break;
257
- }
258
- chunk_start = chunk_end;
259
- }
260
- if (offset + length <= chunk_start + start_chunk.byteLength) return start_chunk.subarray(offset - chunk_start, offset + length - chunk_start);
261
- const chunks = [start_chunk.subarray(offset - chunk_start)];
262
- let cursor = start_chunk.byteLength - offset + chunk_start;
263
- while (cursor < length) {
264
- chunk_index++;
265
- let chunk = await get_chunk(chunk_index);
266
- if (!chunk) return null;
267
- if (chunk.byteLength > length - cursor) chunk = chunk.subarray(0, length - cursor);
268
- chunks.push(chunk);
269
- cursor += chunk.byteLength;
270
- }
271
- const buffer = new Uint8Array(length);
272
- cursor = 0;
273
- for (const chunk of chunks) {
274
- buffer.set(chunk, cursor);
275
- cursor += chunk.byteLength;
276
- }
277
- return buffer;
278
- }
279
- const header = await get_buffer(0, HEADER_BYTES);
280
- if (!header) throw deserialize_error("too short");
281
- if (header[0] !== BINARY_FORM_VERSION) throw deserialize_error(`got version ${header[0]}, expected version ${BINARY_FORM_VERSION}`);
282
- const header_view = new DataView(header.buffer, header.byteOffset, header.byteLength);
283
- const data_length = header_view.getUint32(1, true);
284
- const file_offsets_length = header_view.getUint16(5, true);
285
- const data_buffer = await get_buffer(HEADER_BYTES, data_length);
286
- if (!data_buffer) throw deserialize_error("data too short");
287
- /** @type {Array<number | undefined>} */
288
- let file_offsets;
289
- /** @type {number} */
290
- let files_start_offset;
291
- if (file_offsets_length > 0) {
292
- const file_offsets_buffer = await get_buffer(HEADER_BYTES + data_length, file_offsets_length);
293
- if (!file_offsets_buffer) throw deserialize_error("file offset table too short");
294
- const parsed_offsets = JSON.parse(decoder.decode(file_offsets_buffer));
295
- if (!Array.isArray(parsed_offsets) || parsed_offsets.some((n) => typeof n !== "number" || !Number.isInteger(n) || n < 0)) throw deserialize_error("invalid file offset table");
296
- file_offsets = parsed_offsets;
297
- files_start_offset = HEADER_BYTES + data_length + file_offsets_length;
298
- }
299
- /** @type {Array<{ offset: number, size: number }>} */
300
- const file_spans = [];
301
- const [data, meta] = parse(decoder.decode(data_buffer), { File: ([name, type, size, last_modified, index]) => {
302
- if (typeof name !== "string" || typeof type !== "string" || typeof size !== "number" || typeof last_modified !== "number" || typeof index !== "number") throw deserialize_error("invalid file metadata");
303
- let offset = file_offsets[index];
304
- if (offset === void 0) throw deserialize_error("duplicate file offset table index");
305
- file_offsets[index] = void 0;
306
- offset += files_start_offset;
307
- file_spans.push({
308
- offset,
309
- size
310
- });
311
- return new Proxy(new LazyFile(name, type, size, last_modified, get_chunk, offset), { getPrototypeOf() {
312
- return File.prototype;
313
- } });
314
- } });
315
- file_spans.sort((a, b) => a.offset - b.offset || a.size - b.size);
316
- for (let i = 1; i < file_spans.length; i++) {
317
- const previous = file_spans[i - 1];
318
- const current = file_spans[i];
319
- const previous_end = previous.offset + previous.size;
320
- if (previous_end < current.offset) throw deserialize_error("gaps in file data");
321
- if (previous_end > current.offset) throw deserialize_error("overlapping file data");
322
- }
323
- (async () => {
324
- let has_more = true;
325
- while (has_more) has_more = !!await get_chunk(chunks.length);
326
- })();
327
- return {
328
- data,
329
- meta,
330
- form_data: null
331
- };
332
- }
333
- /**
334
- * @param {string} message
335
- */
336
- function deserialize_error(message) {
337
- return new SvelteKitError(400, "Bad Request", `Could not deserialize binary form: ${message}`);
338
- }
339
- /** @implements {File} */
340
- var LazyFile = class LazyFile {
341
- /** @type {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} */
342
- #get_chunk;
343
- /** @type {number} */
344
- #offset;
345
- /**
346
- * @param {string} name
347
- * @param {string} type
348
- * @param {number} size
349
- * @param {number} last_modified
350
- * @param {(index: number) => Promise<Uint8Array<ArrayBuffer> | undefined>} get_chunk
351
- * @param {number} offset
352
- */
353
- constructor(name, type, size, last_modified, get_chunk, offset) {
354
- this.name = name;
355
- this.type = type;
356
- this.size = size;
357
- this.lastModified = last_modified;
358
- this.webkitRelativePath = "";
359
- this.#get_chunk = get_chunk;
360
- this.#offset = offset;
361
- this.arrayBuffer = this.arrayBuffer.bind(this);
362
- this.bytes = this.bytes.bind(this);
363
- this.slice = this.slice.bind(this);
364
- this.stream = this.stream.bind(this);
365
- this.text = this.text.bind(this);
366
- }
367
- /** @type {ArrayBuffer | undefined} */
368
- #buffer;
369
- async arrayBuffer() {
370
- this.#buffer ??= await new Response(this.stream()).arrayBuffer();
371
- return this.#buffer;
372
- }
373
- async bytes() {
374
- return new Uint8Array(await this.arrayBuffer());
375
- }
376
- /**
377
- * @param {number=} start
378
- * @param {number=} end
379
- * @param {string=} contentType
380
- */
381
- slice(start = 0, end = this.size, contentType = this.type) {
382
- if (start < 0) start = Math.max(this.size + start, 0);
383
- else start = Math.min(start, this.size);
384
- if (end < 0) end = Math.max(this.size + end, 0);
385
- else end = Math.min(end, this.size);
386
- const size = Math.max(end - start, 0);
387
- return new LazyFile(this.name, contentType, size, this.lastModified, this.#get_chunk, this.#offset + start);
388
- }
389
- stream() {
390
- let cursor = 0;
391
- let chunk_index = 0;
392
- return new ReadableStream({
393
- start: async (controller) => {
394
- let chunk_start = 0;
395
- /** @type {Uint8Array} */
396
- let start_chunk;
397
- for (chunk_index = 0;; chunk_index++) {
398
- const chunk = await this.#get_chunk(chunk_index);
399
- if (!chunk) return null;
400
- const chunk_end = chunk_start + chunk.byteLength;
401
- if (this.#offset >= chunk_start && this.#offset < chunk_end) {
402
- start_chunk = chunk;
403
- break;
404
- }
405
- chunk_start = chunk_end;
406
- }
407
- if (this.#offset + this.size <= chunk_start + start_chunk.byteLength) {
408
- controller.enqueue(start_chunk.subarray(this.#offset - chunk_start, this.#offset + this.size - chunk_start));
409
- controller.close();
410
- } else {
411
- controller.enqueue(start_chunk.subarray(this.#offset - chunk_start));
412
- cursor = start_chunk.byteLength - this.#offset + chunk_start;
413
- }
414
- },
415
- pull: async (controller) => {
416
- chunk_index++;
417
- let chunk = await this.#get_chunk(chunk_index);
418
- if (!chunk) {
419
- controller.error("incomplete file data");
420
- controller.close();
421
- return;
422
- }
423
- if (chunk.byteLength > this.size - cursor) chunk = chunk.subarray(0, this.size - cursor);
424
- controller.enqueue(chunk);
425
- cursor += chunk.byteLength;
426
- if (cursor >= this.size) controller.close();
427
- }
428
- });
429
- }
430
- async text() {
431
- return decoder.decode(await this.arrayBuffer());
432
- }
433
- };
434
- var path_regex = /^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;
435
- /**
436
- * @param {string} path
437
- */
438
- function split_path(path) {
439
- if (!path_regex.test(path)) throw new Error(`Invalid path ${path}`);
440
- return path.split(/\.|\[|\]/).filter(Boolean);
441
- }
442
- /**
443
- * Check if a property key is dangerous and could lead to prototype pollution
444
- * @param {string} key
445
- */
446
- function check_prototype_pollution(key) {
447
- if (key === "__proto__" || key === "constructor" || key === "prototype") throw new Error(`Invalid key "${key}"`);
448
- }
449
- /**
450
- * Sets a value in a nested object using an array of keys, mutating the original object.
451
- * @param {Record<string, any>} object
452
- * @param {string[]} keys
453
- * @param {any} value
454
- */
455
- function deep_set(object, keys, value) {
456
- let current = object;
457
- for (let i = 0; i < keys.length - 1; i += 1) {
458
- const key = keys[i];
459
- check_prototype_pollution(key);
460
- const is_array = /^\d+$/.test(keys[i + 1]);
461
- const inner = Object.hasOwn(current, key) ? current[key] : void 0;
462
- const exists = inner != null;
463
- if (exists && is_array !== Array.isArray(inner)) throw new Error(`Invalid array key ${keys[i + 1]}`);
464
- if (!exists) current[key] = is_array ? [] : {};
465
- current = current[key];
466
- }
467
- const final_key = keys[keys.length - 1];
468
- check_prototype_pollution(final_key);
469
- current[final_key] = value;
470
- }
471
- //#endregion
472
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/http.js
473
- /**
474
- * Given an Accept header and a list of possible content types, pick
475
- * the most suitable one to respond with
476
- * @param {string} accept
477
- * @param {string[]} types
478
- */
479
- function negotiate(accept, types) {
480
- /** @type {Array<{ type: string, subtype: string, q: number, i: number }>} */
481
- const parts = [];
482
- accept.split(",").forEach((str, i) => {
483
- const match = /([^/ \t]+)\/([^; \t]+)[ \t]*(?:;[ \t]*q=([0-9.]+))?/.exec(str);
484
- if (match) {
485
- const [, type, subtype, q = "1"] = match;
486
- parts.push({
487
- type,
488
- subtype,
489
- q: +q,
490
- i
491
- });
492
- }
493
- });
494
- parts.sort((a, b) => {
495
- if (a.q !== b.q) return b.q - a.q;
496
- if (a.subtype === "*" !== (b.subtype === "*")) return a.subtype === "*" ? 1 : -1;
497
- if (a.type === "*" !== (b.type === "*")) return a.type === "*" ? 1 : -1;
498
- return a.i - b.i;
499
- });
500
- let accepted;
501
- let min_priority = Infinity;
502
- for (const mimetype of types) {
503
- const [type, subtype] = mimetype.split("/");
504
- const priority = parts.findIndex((part) => (part.type === type || part.type === "*") && (part.subtype === subtype || part.subtype === "*"));
505
- if (priority !== -1 && priority < min_priority) {
506
- accepted = mimetype;
507
- min_priority = priority;
508
- }
509
- }
510
- return accepted;
511
- }
512
- /**
513
- * Reads all `Set-Cookie` headers as separate values. `Headers.get('set-cookie')`
514
- * collapses them into a single comma-joined string that browsers cannot parse, so
515
- * we use `Headers.getSetCookie()` where available and fall back to splitting the
516
- * joined string otherwise.
517
- *
518
- * TODO 3.0 `getSetCookie` is available in Node 19.7+; once we drop support for
519
- * older versions we can use it directly and remove the `splitCookiesString` fallback
520
- * @param {Headers} headers
521
- * @returns {string[]}
522
- */
523
- function get_set_cookies(headers) {
524
- if (typeof headers.getSetCookie === "function") return headers.getSetCookie();
525
- const set_cookie = headers.get("set-cookie");
526
- return set_cookie ? splitCookiesString(set_cookie) : [];
527
- }
528
- /**
529
- * Returns `true` if the request contains a `content-type` header with the given type
530
- * @param {Request} request
531
- * @param {...string} types
532
- */
533
- function is_content_type(request, ...types) {
534
- const type = request.headers.get("content-type")?.split(";", 1)[0].trim() ?? "";
535
- return types.includes(type.toLowerCase());
536
- }
537
- /**
538
- * @param {Request} request
539
- */
540
- function is_form_content_type(request) {
541
- return is_content_type(request, "application/x-www-form-urlencoded", "multipart/form-data", "text/plain", BINARY_FORM_CONTENT_TYPE);
542
- }
543
- //#endregion
544
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/misc.js
545
- var s = JSON.stringify;
546
- //#endregion
547
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/escape.js
548
- /**
549
- * When inside a double-quoted attribute value, only `&` and `"` hold special meaning.
550
- * @see https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state
551
- * @type {Record<string, string>}
552
- */
553
- var escape_html_attr_dict = {
554
- "&": "&amp;",
555
- "\"": "&quot;"
556
- };
557
- /**
558
- * @type {Record<string, string>}
559
- */
560
- var escape_html_dict = {
561
- "&": "&amp;",
562
- "<": "&lt;"
563
- };
564
- var escape_html_attr_regex = new RegExp(`[${Object.keys(escape_html_attr_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
565
- var escape_html_regex = new RegExp(`[${Object.keys(escape_html_dict).join("")}]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\udc00-\\udfff]`, "g");
566
- /**
567
- * Escapes unpaired surrogates (which are allowed in js strings but invalid in HTML) and
568
- * escapes characters that are special.
569
- *
570
- * @param {string} str
571
- * @param {boolean} [is_attr]
572
- * @returns {string} escaped string
573
- * @example const html = `<tag data-value="${escape_html('value', true)}">...</tag>`;
574
- */
575
- function escape_html(str, is_attr) {
576
- const dict = is_attr ? escape_html_attr_dict : escape_html_dict;
577
- return str.replace(is_attr ? escape_html_attr_regex : escape_html_regex, (match) => {
578
- if (match.length === 2) return match;
579
- return dict[match] ?? `&#${match.charCodeAt(0)};`;
580
- });
581
- }
582
- //#endregion
583
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/utils.js
584
- /** @import { ServerHooks } from 'types' */
585
- /**
586
- * @param {Partial<Record<import('types').HttpMethod, any>>} mod
587
- * @param {import('types').HttpMethod} method
588
- */
589
- function method_not_allowed(mod, method) {
590
- return text(`${method} method not allowed`, {
591
- status: 405,
592
- headers: { allow: allowed_methods(mod).join(", ") }
593
- });
594
- }
595
- /** @param {Partial<Record<import('types').HttpMethod, any>>} mod */
596
- function allowed_methods(mod) {
597
- const allowed = ENDPOINT_METHODS.filter((method) => method in mod);
598
- if ("GET" in mod && !("HEAD" in mod)) allowed.push("HEAD");
599
- return allowed;
600
- }
601
- /**
602
- * @param {import('types').SSROptions} options
603
- */
604
- function get_global_name(options) {
605
- return `__sveltekit_${options.version_hash}`;
606
- }
607
- /**
608
- * Return as a response that renders the error.html
609
- *
610
- * @param {import('types').SSROptions} options
611
- * @param {number} status
612
- * @param {string} message
613
- */
614
- function static_error_page(options, status, message) {
615
- return text(options.templates.error({
616
- status,
617
- message: escape_html(message)
618
- }), {
619
- headers: { "content-type": "text/html; charset=utf-8" },
620
- status
621
- });
622
- }
623
- /**
624
- * @param {import('@sveltejs/kit').RequestEvent} event
625
- * @param {import('types').RequestState} state
626
- * @param {import('types').SSROptions} options
627
- * @param {unknown} error
628
- */
629
- async function handle_fatal_error(event, state, options, error) {
630
- error = error instanceof HttpError ? error : coalesce_to_error(error);
631
- const status = get_status(error);
632
- const body = await handle_error_and_jsonify(event, state, options, error);
633
- const type = negotiate(event.request.headers.get("accept") || "text/html", ["application/json", "text/html"]);
634
- if (event.isDataRequest || type === "application/json") return json(body, { status });
635
- return static_error_page(options, status, body.message);
636
- }
637
- /**
638
- * @param {import('@sveltejs/kit').RequestEvent} event
639
- * @param {import('types').RequestState} state
640
- * @param {import('types').SSROptions} options
641
- * @param {any} error
642
- * @returns {Promise<App.Error>}
643
- */
644
- async function handle_error_and_jsonify(event, state, options, error) {
645
- if (error instanceof HttpError) return {
646
- message: "Unknown Error",
647
- ...error.body
648
- };
649
- const status = get_status(error);
650
- const message = get_message(error);
651
- return await with_request_store({
652
- event,
653
- state
654
- }, () => options.hooks.handleError({
655
- error,
656
- event,
657
- status,
658
- message
659
- })) ?? { message };
660
- }
661
- /**
662
- * @param {number} status
663
- * @param {string} location
664
- */
665
- function redirect_response(status, location) {
666
- return new Response(void 0, {
667
- status,
668
- headers: { location }
669
- });
670
- }
671
- /**
672
- * @param {import('@sveltejs/kit').RequestEvent} event
673
- * @param {Error & { path: string }} error
674
- */
675
- function clarify_devalue_error(event, error) {
676
- if (error.path) return `Data returned from \`load\` while rendering ${event.route.id} is not serializable: ${error.message} (${error.path}). If you need to serialize/deserialize custom types, use transport hooks: https://svelte.dev/docs/kit/hooks#Universal-hooks-transport.`;
677
- if (error.path === "") return `Data returned from \`load\` while rendering ${event.route.id} is not a plain object`;
678
- return error.message;
679
- }
680
- /**
681
- * @param {import('types').ServerDataNode} node
682
- */
683
- function serialize_uses(node) {
684
- const uses = {};
685
- if (node.uses && node.uses.dependencies.size > 0) uses.dependencies = Array.from(node.uses.dependencies);
686
- if (node.uses && node.uses.search_params.size > 0) uses.search_params = Array.from(node.uses.search_params);
687
- if (node.uses && node.uses.params.size > 0) uses.params = Array.from(node.uses.params);
688
- if (node.uses?.parent) uses.parent = 1;
689
- if (node.uses?.route) uses.route = 1;
690
- if (node.uses?.url) uses.url = 1;
691
- return uses;
692
- }
693
- /**
694
- * Returns `true` if the given path was prerendered
695
- * @param {import('@sveltejs/kit').SSRManifest} manifest
696
- * @param {string} pathname Should include the base and be decoded
697
- */
698
- function has_prerendered_path(manifest, pathname) {
699
- return manifest._.prerendered_routes.has(pathname) || pathname.at(-1) === "/" && manifest._.prerendered_routes.has(pathname.slice(0, -1));
700
- }
701
- /**
702
- * Formats the error into a nice message with sanitized stack trace
703
- * @param {number} status
704
- * @param {Error} error
705
- * @param {import('@sveltejs/kit').RequestEvent} event
706
- */
707
- function format_server_error(status, error, event) {
708
- const formatted_text = `\n\x1b[1;31m[${status}] ${event.request.method} ${event.url.pathname}\x1b[0m`;
709
- if (status === 404) return formatted_text;
710
- return `${formatted_text}\n${error.stack}`;
711
- }
712
- /**
713
- * Returns the filename without the extension. e.g., `+page.server`, `+page`, etc.
714
- * @param {string | undefined} node_id
715
- * @returns {string}
716
- */
717
- function get_node_type(node_id) {
718
- const filename = (node_id?.split("/"))?.at(-1);
719
- if (!filename) return "unknown";
720
- return filename.split(".").slice(0, -1).join(".");
721
- }
722
- /**
723
- * Creates a serialiser for non-arbitrary POJOs using the app's transport hook
724
- * @param {ServerHooks['transport']} transport
725
- * @returns {(thing: unknown) => string | undefined}
726
- */
727
- function create_replacer(transport) {
728
- /** @param {unknown} thing */
729
- const replacer = (thing) => {
730
- for (const key in transport) {
731
- const encoded = transport[key].encode(thing);
732
- if (encoded) return `app.decode('${key}', ${uneval(encoded, replacer)})`;
733
- }
734
- };
735
- return replacer;
736
- }
737
-
738
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/promise.js
11
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/promise.js
739
12
  /** @see https://github.com/microsoft/TypeScript/blob/904e7dd97dc8da1352c8e05d70829dff17c73214/src/lib/es2024.promise.d.ts */
740
13
  /**
741
14
  * @template T
@@ -764,7 +37,7 @@ function with_resolvers() {
764
37
  };
765
38
  }
766
39
  //#endregion
767
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/constants.js
40
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/constants.js
768
41
  var NULL_BODY_STATUS = [
769
42
  101,
770
43
  103,
@@ -774,7 +47,7 @@ var NULL_BODY_STATUS = [
774
47
  ];
775
48
  var IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
776
49
  //#endregion
777
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js
50
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js
778
51
  /**
779
52
  * @param {import('@sveltejs/kit').RequestEvent} event
780
53
  * @param {import('types').RequestState} event_state
@@ -831,14 +104,14 @@ function is_endpoint_request(event) {
831
104
  return negotiate(event.request.headers.get("accept") ?? "*/*", ["*", "text/html"]) !== "text/html";
832
105
  }
833
106
  //#endregion
834
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/telemetry/record_span.js
107
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/telemetry/record_span.js
835
108
  /** @import { RecordSpan } from 'types' */
836
109
  /** @type {RecordSpan} */
837
110
  async function record_span({ name, attributes, fn }) {
838
111
  return fn(noop_span);
839
112
  }
840
113
  //#endregion
841
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js
114
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/actions.js
842
115
  /** @import { RequestEvent, ActionResult, Actions } from '@sveltejs/kit' */
843
116
  /** @import { SSROptions, SSRNode, ServerNode, ServerHooks } from 'types' */
844
117
  /** @param {RequestEvent} event */
@@ -1037,7 +310,7 @@ function try_serialize(data, fn, route_id) {
1037
310
  }
1038
311
  }
1039
312
  //#endregion
1040
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/streaming.js
313
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/streaming.js
1041
314
  /**
1042
315
  * Create an async iterator and a function to push values into it
1043
316
  * @template T
@@ -1076,7 +349,7 @@ function create_async_iterator() {
1076
349
  };
1077
350
  }
1078
351
  //#endregion
1079
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/data_serializer.js
352
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/data_serializer.js
1080
353
  /**
1081
354
  * If the serialized data contains promises, `chunks` will be an
1082
355
  * async iterable containing their resolutions
@@ -1235,7 +508,7 @@ function server_data_serializer_json(event, event_state, options) {
1235
508
  };
1236
509
  }
1237
510
  //#endregion
1238
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js
511
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js
1239
512
  /**
1240
513
  * Calls the user's server `load` function.
1241
514
  * @param {{
@@ -1439,7 +712,7 @@ function create_universal_fetch(event, state, fetched, csr, resolve_opts) {
1439
712
  if (teed_body) return teed_body;
1440
713
  const [a, b] = response.body.tee();
1441
714
  (async () => {
1442
- let result = new Uint8Array();
715
+ let result = /* @__PURE__ */ new Uint8Array();
1443
716
  for await (const chunk of a) {
1444
717
  const combined = new Uint8Array(result.length + chunk.length);
1445
718
  combined.set(result, 0);
@@ -1525,7 +798,7 @@ async function stream_to_string(stream) {
1525
798
  return result;
1526
799
  }
1527
800
  //#endregion
1528
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/serialize_data.js
801
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/serialize_data.js
1529
802
  /**
1530
803
  * Inside a script element, only `<\/script` and `<!--` hold special meaning to the HTML parser.
1531
804
  *
@@ -1605,7 +878,7 @@ function serialize_data(fetched, filter, prerendering = false) {
1605
878
  return `<script ${attrs.join(" ")}>${safe_payload}<\/script>`;
1606
879
  }
1607
880
  //#endregion
1608
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/crypto.js
881
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/crypto.js
1609
882
  /**
1610
883
  * SHA-256 hashing function adapted from https://bitwiseshiftleft.github.io/sjcl
1611
884
  * modified and redistributed under BSD license
@@ -1659,9 +932,9 @@ function sha256(data) {
1659
932
  return btoa(String.fromCharCode(...bytes));
1660
933
  }
1661
934
  /** The SHA-256 initialization vector */
1662
- var init = new Uint32Array(8);
935
+ var init = /* @__PURE__ */ new Uint32Array(8);
1663
936
  /** The SHA-256 hash key */
1664
- var key = new Uint32Array(64);
937
+ var key = /* @__PURE__ */ new Uint32Array(64);
1665
938
  /** Function to precompute init and key. */
1666
939
  function precompute() {
1667
940
  /** @param {number} x */
@@ -1710,13 +983,13 @@ function encode(str) {
1710
983
  return words;
1711
984
  }
1712
985
  //#endregion
1713
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/csp.js
1714
- var array = new Uint8Array(16);
986
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/csp.js
987
+ var array = /* @__PURE__ */ new Uint8Array(16);
1715
988
  function generate_nonce() {
1716
989
  crypto.getRandomValues(array);
1717
990
  return btoa(String.fromCharCode(...array));
1718
991
  }
1719
- var quoted = new Set([
992
+ var quoted = /* @__PURE__ */ new Set([
1720
993
  "self",
1721
994
  "unsafe-eval",
1722
995
  "unsafe-hashes",
@@ -1918,20 +1191,21 @@ var Csp = class {
1918
1191
  }
1919
1192
  };
1920
1193
  //#endregion
1921
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/server_routing.js
1194
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/server_routing.js
1195
+ /** @import { SSRManifest } from '@sveltejs/kit' */
1922
1196
  /**
1923
1197
  * @param {import('types').SSRClientRoute} route
1924
1198
  * @param {URL} url
1925
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1199
+ * @param {NonNullable<SSRManifest['_']['client']>} client
1926
1200
  * @returns {string}
1927
1201
  */
1928
- function generate_route_object(route, url, manifest) {
1202
+ function generate_route_object(route, url, client) {
1929
1203
  const { errors, layouts, leaf } = route;
1930
1204
  const nodes = [
1931
1205
  ...errors,
1932
1206
  ...layouts.map((l) => l?.[1]),
1933
1207
  leaf[1]
1934
- ].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(manifest._.client.nodes?.[n])}`).join(",\n ");
1208
+ ].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(client.nodes?.[n])}`).join(",\n ");
1935
1209
  /** @type {import('types').CSRRouteServer} */
1936
1210
  return [
1937
1211
  `{\n\tid: ${s(route.id)}`,
@@ -1954,27 +1228,27 @@ function create_client_import(import_path, url) {
1954
1228
  /**
1955
1229
  * @param {string} resolved_path
1956
1230
  * @param {URL} url
1957
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1231
+ * @param {SSRManifest} manifest
1958
1232
  * @returns {Promise<Response>}
1959
1233
  */
1960
1234
  async function resolve_route(resolved_path, url, manifest) {
1961
- if (!manifest._.client.routes) return text("Server-side route resolution disabled", { status: 400 });
1235
+ if (!manifest._.client?.routes) return text("Server-side route resolution disabled", { status: 400 });
1962
1236
  const matchers = await manifest._.matchers();
1963
1237
  const result = find_route(resolved_path, manifest._.client.routes, matchers);
1964
- return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest).response;
1238
+ return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest._.client).response;
1965
1239
  }
1966
1240
  /**
1967
1241
  * @param {import('types').SSRClientRoute | null} route
1968
1242
  * @param {Partial<Record<string, string>>} params
1969
1243
  * @param {URL} url
1970
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1244
+ * @param {NonNullable<SSRManifest['_']['client']>} client
1971
1245
  * @returns {{response: Response, body: string}}
1972
1246
  */
1973
- function create_server_routing_response(route, params, url, manifest) {
1247
+ function create_server_routing_response(route, params, url, client) {
1974
1248
  const headers = new Headers({ "content-type": "application/javascript; charset=utf-8" });
1975
1249
  if (route) {
1976
- const csr_route = generate_route_object(route, url, manifest);
1977
- const body = `${create_css_import(route, url, manifest)}\nexport const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
1250
+ const csr_route = generate_route_object(route, url, client);
1251
+ const body = `${create_css_import(route, url, client)}\nexport const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
1978
1252
  return {
1979
1253
  response: text(body, { headers }),
1980
1254
  body
@@ -1992,10 +1266,10 @@ function create_server_routing_response(route, params, url, manifest) {
1992
1266
  *
1993
1267
  * @param {import('types').SSRClientRoute} route
1994
1268
  * @param {URL} url
1995
- * @param {import('@sveltejs/kit').SSRManifest} manifest
1269
+ * @param {NonNullable<SSRManifest['_']['client']>} client
1996
1270
  * @returns {string}
1997
1271
  */
1998
- function create_css_import(route, url, manifest) {
1272
+ function create_css_import(route, url, client) {
1999
1273
  const { errors, layouts, leaf } = route;
2000
1274
  let css = "";
2001
1275
  for (const node of [
@@ -2004,52 +1278,384 @@ function create_css_import(route, url, manifest) {
2004
1278
  leaf[1]
2005
1279
  ]) {
2006
1280
  if (typeof node !== "number") continue;
2007
- const node_css = manifest._.client.css?.[node];
1281
+ const node_css = client.css?.[node];
2008
1282
  for (const css_path of node_css ?? []) css += `'${assets || base}/${css_path}',`;
2009
1283
  }
2010
1284
  if (!css) return "";
2011
- return `${create_client_import(manifest._.client.start)}.then(x => x.load_css([${css}]));`;
1285
+ return `${create_client_import(client.start)}.then(x => x.load_css([${css}]));`;
2012
1286
  }
2013
1287
  //#endregion
2014
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/render.js
2015
- var updated = {
2016
- ...readable(false),
2017
- check: () => false
2018
- };
1288
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/remote.js
1289
+ /** @import { ActionResult, RemoteForm, RequestEvent, SSRManifest } from '@sveltejs/kit' */
1290
+ /** @import { RemoteFormInternals, RemoteFunctionData, RemoteFunctionResponse, RemoteInternals, RequestState, SSROptions } from 'types' */
1291
+ /** @type {typeof handle_remote_call_internal} */
1292
+ async function handle_remote_call(event, state, options, manifest, id) {
1293
+ return record_span({
1294
+ name: "sveltekit.remote.call",
1295
+ attributes: { },
1296
+ fn: (current) => {
1297
+ const traced_event = merge_tracing(event, current);
1298
+ return with_request_store({
1299
+ event: traced_event,
1300
+ state
1301
+ }, () => handle_remote_call_internal(traced_event, state, options, manifest, id));
1302
+ }
1303
+ });
1304
+ }
2019
1305
  /**
2020
- * Creates the HTML response.
2021
- * @param {{
2022
- * branch: Array<import('./types.js').Loaded>;
2023
- * fetched: Array<import('./types.js').Fetched>;
2024
- * options: import('types').SSROptions;
2025
- * manifest: import('@sveltejs/kit').SSRManifest;
2026
- * state: import('types').SSRState;
2027
- * page_config: { ssr: boolean; csr: boolean };
2028
- * status: number;
2029
- * error: App.Error | null;
2030
- * event: import('@sveltejs/kit').RequestEvent;
2031
- * event_state: import('types').RequestState;
2032
- * resolve_opts: import('types').RequiredResolveOptions;
2033
- * action_result?: import('@sveltejs/kit').ActionResult;
2034
- * data_serializer: import('./types.js').ServerDataSerializer;
2035
- * error_components?: Array<import('types').SSRComponent | undefined>
2036
- * }} opts
1306
+ * @param {RequestEvent} event
1307
+ * @param {RequestState} state
1308
+ * @param {SSROptions} options
1309
+ * @param {SSRManifest} manifest
1310
+ * @param {string} id
2037
1311
  */
2038
- async function render_response({ branch, fetched, options, manifest, state, page_config, status, error = null, event, event_state, resolve_opts, action_result, data_serializer, error_components }) {
2039
- if (state.prerendering) {
2040
- if (options.csp.mode === "nonce") throw new Error("Cannot use prerendering if config.kit.csp.mode === \"nonce\"");
2041
- if (options.app_template_contains_nonce) throw new Error("Cannot use prerendering if page template contains %sveltekit.nonce%");
2042
- }
2043
- const { client } = manifest._;
2044
- const modulepreloads = new Set(client.imports);
2045
- const stylesheets = new Set(client.stylesheets);
2046
- const fonts = new Set(client.fonts);
2047
- /**
2048
- * The value of the Link header that is added to the response when not prerendering
2049
- * @type {Set<string>}
2050
- */
2051
- const link_headers = /* @__PURE__ */ new Set();
2052
- /** @type {Map<string, string>} */
1312
+ async function handle_remote_call_internal(event, state, options, manifest, id) {
1313
+ const [hash, name, additional_args] = id.split("/");
1314
+ const remotes = manifest._.remotes;
1315
+ if (!remotes[hash]) error(404);
1316
+ const fn = (await remotes[hash]()).default[name];
1317
+ if (!fn) error(404);
1318
+ /** @type {RemoteInternals} */
1319
+ const internals = fn.__;
1320
+ const transport = options.hooks.transport;
1321
+ event.tracing.current.setAttributes({
1322
+ "sveltekit.remote.call.type": internals.type,
1323
+ "sveltekit.remote.call.name": internals.name
1324
+ });
1325
+ /** @type {HeadersInit | undefined} */
1326
+ const headers = state.prerendering ? void 0 : { "cache-control": "private, no-store" };
1327
+ try {
1328
+ /** @type {RemoteFunctionData} */
1329
+ const data = {};
1330
+ switch (internals.type) {
1331
+ case "query_live": {
1332
+ if (event.request.method !== "GET") throw new SvelteKitError(405, "Method Not Allowed", `\`query.live\` functions must be invoked via GET request, not ${event.request.method}`);
1333
+ const payload = new URL(event.request.url).searchParams.get("payload");
1334
+ const generator = internals.run(event, state, parse_remote_arg(payload, transport));
1335
+ const encoder = new TextEncoder();
1336
+ /**
1337
+ * @param {ReadableStreamDefaultController} controller
1338
+ * @param {any} payload
1339
+ */
1340
+ function send(controller, payload) {
1341
+ controller.enqueue(encoder.encode("data: " + JSON.stringify(payload) + "\n\n"));
1342
+ }
1343
+ let closed = false;
1344
+ /** @type {string | undefined} */
1345
+ let result = void 0;
1346
+ async function cancel() {
1347
+ if (closed) return;
1348
+ closed = true;
1349
+ await generator.return(void 0);
1350
+ }
1351
+ event.request.signal.addEventListener("abort", cancel, { once: true });
1352
+ return new Response(new ReadableStream({
1353
+ async pull(controller) {
1354
+ if (event.request.signal.aborted) {
1355
+ await cancel();
1356
+ controller.close();
1357
+ return;
1358
+ }
1359
+ try {
1360
+ while (true) {
1361
+ const { value, done } = await generator.next();
1362
+ if (done) {
1363
+ await cancel();
1364
+ controller.close();
1365
+ return;
1366
+ }
1367
+ if (result !== (result = stringify(value, transport))) {
1368
+ send(controller, {
1369
+ type: "result",
1370
+ result
1371
+ });
1372
+ return;
1373
+ }
1374
+ }
1375
+ } catch (error) {
1376
+ if (!event.request.signal.aborted) if (error instanceof Redirect) send(controller, {
1377
+ type: "redirect",
1378
+ location: error.location
1379
+ });
1380
+ else {
1381
+ const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
1382
+ send(controller, {
1383
+ type: "error",
1384
+ error: await handle_error_and_jsonify(event, state, options, error),
1385
+ status
1386
+ });
1387
+ }
1388
+ await cancel();
1389
+ controller.close();
1390
+ }
1391
+ },
1392
+ cancel
1393
+ }), { headers: {
1394
+ "cache-control": "private, no-store",
1395
+ "content-type": "text/event-stream"
1396
+ } });
1397
+ }
1398
+ case "query_batch": {
1399
+ if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`query.batch\` functions must be invoked via POST request, not ${event.request.method}`);
1400
+ /** @type {{ payloads: string[] }} */
1401
+ const { payloads } = await event.request.json();
1402
+ const args = await Promise.all(payloads.map((payload) => parse_remote_arg(payload, transport)));
1403
+ data._ = await with_request_store({
1404
+ event,
1405
+ state
1406
+ }, () => internals.run(args, options));
1407
+ break;
1408
+ }
1409
+ case "form": {
1410
+ if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`form\` functions must be invoked via POST request, not ${event.request.method}`);
1411
+ if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `\`form\` functions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
1412
+ const { data: input, meta, form_data } = await deserialize_binary_form(event.request);
1413
+ state.remote.requested = create_requested_map(meta.remote_refreshes);
1414
+ if (additional_args && !("id" in input)) input.id = JSON.parse(decodeURIComponent(additional_args));
1415
+ const fn = internals.fn;
1416
+ data._ = await with_request_store({
1417
+ event,
1418
+ state: {
1419
+ ...state,
1420
+ is_in_remote_form_or_command: true
1421
+ }
1422
+ }, () => fn(input, meta, form_data));
1423
+ if (data._.issues) return json({
1424
+ type: "result",
1425
+ data: stringify(data, transport)
1426
+ }, { headers });
1427
+ break;
1428
+ }
1429
+ case "command": {
1430
+ /** @type {{ payload: string, refreshes?: string[] }} */
1431
+ const { payload, refreshes } = await event.request.json();
1432
+ state.remote.requested = create_requested_map(refreshes);
1433
+ const arg = parse_remote_arg(payload, transport);
1434
+ data._ = await with_request_store({
1435
+ event,
1436
+ state: {
1437
+ ...state,
1438
+ is_in_remote_form_or_command: true
1439
+ }
1440
+ }, () => fn(arg));
1441
+ break;
1442
+ }
1443
+ case "prerender":
1444
+ data._ = await with_request_store({
1445
+ event,
1446
+ state
1447
+ }, () => fn(parse_remote_arg(additional_args, transport)));
1448
+ break;
1449
+ case "query": {
1450
+ const payload = new URL(event.request.url).searchParams.get("payload");
1451
+ data._ = await with_request_store({
1452
+ event,
1453
+ state
1454
+ }, () => fn(parse_remote_arg(payload, transport)));
1455
+ break;
1456
+ }
1457
+ }
1458
+ await collect_remote_data(data, event, state, options);
1459
+ return json({
1460
+ type: "result",
1461
+ data: stringify(data, transport)
1462
+ }, { headers });
1463
+ } catch (error) {
1464
+ if (error instanceof Redirect) return json({
1465
+ type: "result",
1466
+ data: stringify(await collect_remote_data({ redirect: error.location }, event, state, options), transport)
1467
+ }, { headers });
1468
+ const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
1469
+ return json({
1470
+ type: "error",
1471
+ error: await handle_error_and_jsonify(event, state, options, error),
1472
+ status
1473
+ }, {
1474
+ status: state.prerendering ? status : void 0,
1475
+ headers: { "cache-control": "private, no-store" }
1476
+ });
1477
+ }
1478
+ }
1479
+ /**
1480
+ * Collects all the query/prerender data that was retrieved
1481
+ * during the request and adds it to `data`
1482
+ * @param {RemoteFunctionData} data
1483
+ * @param {RequestEvent} event
1484
+ * @param {RequestState} state
1485
+ * @param {SSROptions} options
1486
+ */
1487
+ async function collect_remote_data(data, event, state, options) {
1488
+ /**
1489
+ *
1490
+ * @param {unknown} error
1491
+ * @returns {Promise<[status: number, error: App.Error]>}
1492
+ */
1493
+ async function convert_error(error) {
1494
+ return [error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500, await handle_error_and_jsonify(event, state, options, error)];
1495
+ }
1496
+ /** @type {Promise<any>[]} */
1497
+ const promises = [];
1498
+ if (state.remote.explicit) for (const [remote_key, { internals, promise }] of state.remote.explicit) {
1499
+ data.r = true;
1500
+ const type = internals.type === "query_live" ? "l" : internals.type[0];
1501
+ await promise.then((v) => {
1502
+ ((data[type] ??= {})[remote_key] ??= {}).v = v;
1503
+ }, async (e) => {
1504
+ if (e instanceof Redirect) return;
1505
+ ((data[type] ??= {})[remote_key] ??= {}).e = await convert_error(e);
1506
+ });
1507
+ }
1508
+ await Promise.all(promises);
1509
+ if (state.remote.implicit) for (const [internals, record] of state.remote.implicit) {
1510
+ if (!internals.id) continue;
1511
+ for (const key in record) {
1512
+ const remote_key = internals.type === "form" ? key : create_remote_key(internals.id, key);
1513
+ const type = internals.type === "query_live" ? "l" : internals.type[0];
1514
+ const promise = state.remote.data?.get(internals)?.[key] ?? record[key]();
1515
+ let resolved = true;
1516
+ await Promise.race([Promise.resolve(promise).then((v) => {
1517
+ if (resolved) ((data[type] ??= {})[remote_key] ??= {}).v = v;
1518
+ }, (e) => {
1519
+ if (e instanceof Redirect) return;
1520
+ if (resolved) promises.push(convert_error(e).then((e) => {
1521
+ ((data[type] ??= {})[remote_key] ??= {}).e = e;
1522
+ }));
1523
+ }), Promise.resolve().then(() => resolved = false)]);
1524
+ }
1525
+ }
1526
+ await Promise.all(promises);
1527
+ return data;
1528
+ }
1529
+ /**
1530
+ * @param {string[] | undefined} refreshes
1531
+ */
1532
+ function create_requested_map(refreshes) {
1533
+ /** @type {Map<string, string[]>} */
1534
+ const requested = /* @__PURE__ */ new Map();
1535
+ for (const key of refreshes ?? []) {
1536
+ const parts = split_remote_key(key);
1537
+ const existing = requested.get(parts.id);
1538
+ if (existing) existing.push(parts.payload);
1539
+ else requested.set(parts.id, [parts.payload]);
1540
+ }
1541
+ return requested;
1542
+ }
1543
+ /** @type {typeof handle_remote_form_post_internal} */
1544
+ async function handle_remote_form_post(event, state, manifest, id) {
1545
+ return record_span({
1546
+ name: "sveltekit.remote.form.post",
1547
+ attributes: { },
1548
+ fn: (current) => {
1549
+ const traced_event = merge_tracing(event, current);
1550
+ return with_request_store({
1551
+ event: traced_event,
1552
+ state
1553
+ }, () => handle_remote_form_post_internal(traced_event, state, manifest, id));
1554
+ }
1555
+ });
1556
+ }
1557
+ /**
1558
+ * @param {RequestEvent} event
1559
+ * @param {RequestState} state
1560
+ * @param {SSRManifest} manifest
1561
+ * @param {string} id
1562
+ * @returns {Promise<ActionResult>}
1563
+ */
1564
+ async function handle_remote_form_post_internal(event, state, manifest, id) {
1565
+ const [hash, name, ...rest] = id.split("/");
1566
+ const action_id = rest.join("/");
1567
+ let form = (await manifest._.remotes[hash]?.())?.default[name];
1568
+ if (!form) {
1569
+ event.setHeaders({ allow: "GET" });
1570
+ return {
1571
+ type: "error",
1572
+ error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
1573
+ };
1574
+ }
1575
+ if (action_id) form = with_request_store({
1576
+ event,
1577
+ state
1578
+ }, () => form.for(JSON.parse(action_id)));
1579
+ try {
1580
+ const fn = form.__.fn;
1581
+ const { data, meta, form_data } = await deserialize_binary_form(event.request);
1582
+ if (action_id && !("id" in data)) data.id = JSON.parse(decodeURIComponent(action_id));
1583
+ await with_request_store({
1584
+ event,
1585
+ state: {
1586
+ ...state,
1587
+ is_in_remote_form_or_command: true
1588
+ }
1589
+ }, () => fn(data, meta, form_data));
1590
+ return {
1591
+ type: "success",
1592
+ status: 200
1593
+ };
1594
+ } catch (e) {
1595
+ const err = normalize_error(e);
1596
+ if (err instanceof Redirect) return {
1597
+ type: "redirect",
1598
+ status: err.status,
1599
+ location: err.location
1600
+ };
1601
+ return {
1602
+ type: "error",
1603
+ error: check_incorrect_fail_use(err)
1604
+ };
1605
+ }
1606
+ }
1607
+ /**
1608
+ * @param {URL} url
1609
+ */
1610
+ function get_remote_id(url) {
1611
+ return url.pathname.startsWith(`${base}/_app/remote/`) && url.pathname.replace(`${base}/_app/remote/`, "");
1612
+ }
1613
+ /**
1614
+ * @param {URL} url
1615
+ */
1616
+ function get_remote_action(url) {
1617
+ return url.searchParams.get("/remote");
1618
+ }
1619
+ //#endregion
1620
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/render.js
1621
+ var updated = {
1622
+ ...readable(false),
1623
+ check: () => false
1624
+ };
1625
+ /**
1626
+ * Creates the HTML response.
1627
+ * @param {{
1628
+ * branch: Array<import('./types.js').Loaded>;
1629
+ * fetched: Array<import('./types.js').Fetched>;
1630
+ * options: import('types').SSROptions;
1631
+ * manifest: import('@sveltejs/kit').SSRManifest;
1632
+ * state: import('types').SSRState;
1633
+ * page_config: { ssr: boolean; csr: boolean };
1634
+ * status: number;
1635
+ * error: App.Error | null;
1636
+ * event: import('@sveltejs/kit').RequestEvent;
1637
+ * event_state: import('types').RequestState;
1638
+ * resolve_opts: import('types').RequiredResolveOptions;
1639
+ * action_result?: import('@sveltejs/kit').ActionResult;
1640
+ * data_serializer: import('./types.js').ServerDataSerializer;
1641
+ * error_components?: Array<import('types').SSRComponent | undefined>
1642
+ * }} opts
1643
+ */
1644
+ async function render_response({ branch, fetched, options, manifest, state, page_config, status, error = null, event, event_state, resolve_opts, action_result, data_serializer, error_components }) {
1645
+ if (state.prerendering) {
1646
+ if (options.csp.mode === "nonce") throw new Error("Cannot use prerendering if config.kit.csp.mode === \"nonce\"");
1647
+ if (options.app_template_contains_nonce) throw new Error("Cannot use prerendering if page template contains %sveltekit.nonce%");
1648
+ }
1649
+ const { client } = manifest._;
1650
+ const modulepreloads = new Set(client?.imports);
1651
+ const stylesheets = new Set(client?.stylesheets);
1652
+ const fonts = new Set(client?.fonts);
1653
+ /**
1654
+ * The value of the Link header that is added to the response when not prerendering
1655
+ * @type {Set<string>}
1656
+ */
1657
+ const link_headers = /* @__PURE__ */ new Set();
1658
+ /** @type {Map<string, string>} */
2053
1659
  const inline_styles = /* @__PURE__ */ new Map();
2054
1660
  /** @type {ReturnType<typeof options.root.render>} */
2055
1661
  let rendered;
@@ -2101,7 +1707,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2101
1707
  state: {}
2102
1708
  };
2103
1709
  const render_opts = {
2104
- context: new Map([["__request__", { page: props.page }]]),
1710
+ context: /* @__PURE__ */ new Map([["__request__", { page: props.page }]]),
2105
1711
  csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash },
2106
1712
  transformError: error_components ? async (e) => {
2107
1713
  if (isRedirect(e)) throw e;
@@ -2147,7 +1753,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2147
1753
  for (const url of node.imports) modulepreloads.add(url);
2148
1754
  for (const url of node.stylesheets) stylesheets.add(url);
2149
1755
  for (const url of node.fonts) fonts.add(url);
2150
- if (node.inline_styles && !client.inline) Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
1756
+ if (node.inline_styles && !client?.inline) Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
2151
1757
  if (typeof css === "string") {
2152
1758
  inline_styles.set(filename, css);
2153
1759
  return;
@@ -2162,7 +1768,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2162
1768
  if (path.startsWith("/")) return base + path;
2163
1769
  return `${assets$1}/${path}`;
2164
1770
  };
2165
- const style = client.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
1771
+ const style = client?.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
2166
1772
  if (style) {
2167
1773
  const attributes = [];
2168
1774
  if (csp.style_needs_nonce) attributes.push(`nonce="${csp.nonce}"`);
@@ -2198,9 +1804,10 @@ async function render_response({ branch, fetched, options, manifest, state, page
2198
1804
  const global = get_global_name(options);
2199
1805
  const { data, chunks } = data_serializer.get_data(csp);
2200
1806
  if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!state.prerendering)).join("\n ")}`;
2201
- if (page_config.csr) {
2202
- const route = manifest._.client.routes?.find((r) => r.id === event.route.id) ?? null;
2203
- if (client.uses_env_dynamic_public && state.prerendering) modulepreloads.add(`${app_dir}/env.js`);
1807
+ if (page_config.csr && client) {
1808
+ const route = client.routes?.find((r) => r.id === event.route.id) ?? null;
1809
+ const load_env_eagerly = client.uses_env_dynamic_public && !!state.prerendering;
1810
+ if (load_env_eagerly) modulepreloads.add(`${app_dir}/env.js`);
2204
1811
  if (!client.inline) {
2205
1812
  const included_modulepreloads = Array.from(modulepreloads, (dep) => prefixed(dep)).filter((path) => resolve_opts.preload({
2206
1813
  type: "js",
@@ -2212,12 +1819,11 @@ async function render_response({ branch, fetched, options, manifest, state, page
2212
1819
  else head.add_link_tag(path, ["rel=\"modulepreload\""]);
2213
1820
  }
2214
1821
  }
2215
- if (manifest._.client.routes && state.prerendering && !state.prerendering.fallback) {
1822
+ if (client.routes && state.prerendering && !state.prerendering.fallback) {
2216
1823
  const pathname = add_resolution_suffix(event.url.pathname);
2217
- state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), manifest));
1824
+ state.prerendering.dependencies.set(pathname, create_server_routing_response(route, event.params, new URL(pathname, event.url), client));
2218
1825
  }
2219
1826
  const blocks = [];
2220
- const load_env_eagerly = client.uses_env_dynamic_public && state.prerendering;
2221
1827
  const properties = [`base: ${base_expression}`];
2222
1828
  if (assets) properties.push(`assets: ${s(assets)}`);
2223
1829
  if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : s(public_env)}`);
@@ -2227,7 +1833,7 @@ async function render_response({ branch, fetched, options, manifest, state, page
2227
1833
  deferred.set(id, { fulfil, reject });
2228
1834
  })`);
2229
1835
  let app_declaration = "";
2230
- if (Object.keys(options.hooks.transport).length > 0) if (client.inline) app_declaration = `const app = __sveltekit_${options.version_hash}.app.app;`;
1836
+ if (Object.keys(options.hooks.transport).length > 0) if (client.inline) app_declaration = `const app = ${global}.app.app;`;
2231
1837
  else if (client.app) app_declaration = `const app = await import(${s(prefixed(client.app))});`;
2232
1838
  else app_declaration = `const { app } = await import(${s(prefixed(client.start))});`;
2233
1839
  const prelude = app_declaration ? `${app_declaration}
@@ -2267,62 +1873,26 @@ async function render_response({ branch, fetched, options, manifest, state, page
2267
1873
  `error: ${serialized.error}`
2268
1874
  ];
2269
1875
  if (status !== 200) hydrate.push(`status: ${status}`);
2270
- if (manifest._.client.routes) {
1876
+ if (client.routes) {
2271
1877
  if (route) {
2272
- const stringified = generate_route_object(route, event.url, manifest).replaceAll("\n", "\n ");
1878
+ const stringified = generate_route_object(route, event.url, client).replaceAll("\n", "\n ");
2273
1879
  hydrate.push(`params: ${uneval(event.params)}`, `server_route: ${stringified}`);
2274
1880
  }
2275
1881
  } else if (options.embedded) hydrate.push(`params: ${uneval(event.params)}`, `route: ${s(event.route)}`);
2276
1882
  const indent = " ".repeat(load_env_eagerly ? 7 : 6);
2277
1883
  args.push(`{\n${indent}\t${hydrate.join(`,\n${indent}\t`)}\n${indent}}`);
2278
1884
  }
2279
- const { remote } = event_state;
2280
- let serialized_query_data = "";
2281
- let serialized_prerender_data = "";
2282
- if (remote.data) {
2283
- /** @type {Record<string, any>} */
2284
- const query = {};
2285
- /** @type {Record<string, any>} */
2286
- const prerender = {};
2287
- for (const [internals, cache] of remote.data) {
2288
- if (!internals.id) continue;
2289
- for (const key in cache) {
2290
- const entry = cache[key];
2291
- if (!entry.serialize) continue;
2292
- const remote_key = create_remote_key(internals.id, key);
2293
- const store = internals.type === "prerender" ? prerender : query;
2294
- if (event_state.remote.refreshes?.has(remote_key) || event_state.remote.reconnects?.has(remote_key)) store[remote_key] = await entry.data;
2295
- else {
2296
- const result = await Promise.race([Promise.resolve(entry.data).then((v) => ({
2297
- settled: true,
2298
- value: v
2299
- }), (e) => ({
2300
- settled: true,
2301
- error: e
2302
- })), new Promise((resolve) => {
2303
- queueMicrotask(() => resolve({ settled: false }));
2304
- })]);
2305
- if (result.settled) {
2306
- if ("error" in result) throw result.error;
2307
- store[remote_key] = result.value;
2308
- }
2309
- }
2310
- }
2311
- }
2312
- const replacer = create_replacer(options.hooks.transport);
2313
- if (Object.keys(query).length > 0) serialized_query_data = `${global}.query = ${uneval(query, replacer)};\n\n\t\t\t\t\t\t`;
2314
- if (Object.keys(prerender).length > 0) serialized_prerender_data = `${global}.prerender = ${uneval(prerender, replacer)};\n\n\t\t\t\t\t\t`;
2315
- }
2316
- const serialized_remote_data = `${serialized_query_data}${serialized_prerender_data}`;
1885
+ const remote_data = await collect_remote_data({}, event, event_state, options);
1886
+ const serialized_data = Object.keys(remote_data).length > 0 ? `${global}.data = ${uneval(remote_data, create_replacer(options.hooks.transport))};\n\n\t\t\t\t\t\t` : "";
2317
1887
  const boot = client.inline ? `${client.inline.script}
2318
1888
 
2319
- ${serialized_remote_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
1889
+ ${serialized_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
2320
1890
  import(${s(prefixed(client.start))}),
2321
1891
  import(${s(prefixed(client.app))})
2322
1892
  ]).then(([kit, app]) => {
2323
- ${serialized_remote_data}kit.start(app, ${args.join(", ")});
1893
+ ${serialized_data}kit.start(app, ${args.join(", ")});
2324
1894
  });` : `import(${s(prefixed(client.start))}).then((app) => {
2325
- ${serialized_remote_data}app.start(${args.join(", ")})
1895
+ ${serialized_data}app.start(${args.join(", ")})
2326
1896
  });`;
2327
1897
  if (load_env_eagerly) blocks.push(`import(${s(`${base$1}/${app_dir}/env.js`)}).then(({ env }) => {
2328
1898
  ${global}.env = env;
@@ -2456,7 +2026,7 @@ var Head = class {
2456
2026
  }
2457
2027
  };
2458
2028
  //#endregion
2459
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/page_nodes.js
2029
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/page_nodes.js
2460
2030
  var PageNodes = class {
2461
2031
  /** All layout nodes and the page node, if any */
2462
2032
  data;
@@ -2524,7 +2094,7 @@ var PageNodes = class {
2524
2094
  }
2525
2095
  };
2526
2096
  //#endregion
2527
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js
2097
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js
2528
2098
  /**
2529
2099
  * @typedef {import('./types.js').Loaded} Loaded
2530
2100
  */
@@ -2612,290 +2182,7 @@ async function respond_with_error({ event, event_state, options, manifest, state
2612
2182
  }
2613
2183
  }
2614
2184
  //#endregion
2615
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/remote.js
2616
- /** @import { ActionResult, RemoteForm, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2617
- /** @import { RemoteFormInternals, RemoteFunctionResponse, RemoteInternals, RequestState, SSROptions } from 'types' */
2618
- /** @type {typeof handle_remote_call_internal} */
2619
- async function handle_remote_call(event, state, options, manifest, id) {
2620
- return record_span({
2621
- name: "sveltekit.remote.call",
2622
- attributes: { },
2623
- fn: (current) => {
2624
- const traced_event = merge_tracing(event, current);
2625
- return with_request_store({
2626
- event: traced_event,
2627
- state
2628
- }, () => handle_remote_call_internal(traced_event, state, options, manifest, id));
2629
- }
2630
- });
2631
- }
2632
- /**
2633
- * @param {RequestEvent} event
2634
- * @param {RequestState} state
2635
- * @param {SSROptions} options
2636
- * @param {SSRManifest} manifest
2637
- * @param {string} id
2638
- */
2639
- async function handle_remote_call_internal(event, state, options, manifest, id) {
2640
- const [hash, name, additional_args] = id.split("/");
2641
- const remotes = manifest._.remotes;
2642
- if (!remotes[hash]) error(404);
2643
- const fn = (await remotes[hash]()).default[name];
2644
- if (!fn) error(404);
2645
- /** @type {RemoteInternals} */
2646
- const internals = fn.__;
2647
- const transport = options.hooks.transport;
2648
- event.tracing.current.setAttributes({
2649
- "sveltekit.remote.call.type": internals.type,
2650
- "sveltekit.remote.call.name": internals.name
2651
- });
2652
- try {
2653
- if (internals.type === "query_batch") {
2654
- if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`query.batch\` functions must be invoked via POST request, not ${event.request.method}`);
2655
- /** @type {{ payloads: string[] }} */
2656
- const { payloads } = await event.request.json();
2657
- const args = await Promise.all(payloads.map((payload) => parse_remote_arg(payload, transport)));
2658
- return json({
2659
- type: "result",
2660
- result: stringify(await with_request_store({
2661
- event,
2662
- state
2663
- }, () => internals.run(args, options)), transport)
2664
- });
2665
- }
2666
- if (internals.type === "form") {
2667
- if (event.request.method !== "POST") throw new SvelteKitError(405, "Method Not Allowed", `\`form\` functions must be invoked via POST request, not ${event.request.method}`);
2668
- if (!is_form_content_type(event.request)) throw new SvelteKitError(415, "Unsupported Media Type", `\`form\` functions expect form-encoded data — received ${event.request.headers.get("content-type")}`);
2669
- const { data, meta, form_data } = await deserialize_binary_form(event.request);
2670
- state.remote.requested = create_requested_map(meta.remote_refreshes);
2671
- if (additional_args && !("id" in data)) data.id = JSON.parse(decodeURIComponent(additional_args));
2672
- const fn = internals.fn;
2673
- const result = await with_request_store({
2674
- event,
2675
- state
2676
- }, () => fn(data, meta, form_data));
2677
- return json({
2678
- type: "result",
2679
- result: stringify(result, transport),
2680
- refreshes: result.issues ? void 0 : await serialize_singleflight(state.remote.refreshes),
2681
- reconnects: result.issues ? void 0 : await serialize_singleflight(state.remote.reconnects)
2682
- });
2683
- }
2684
- if (internals.type === "command") {
2685
- /** @type {{ payload: string, refreshes?: string[] }} */
2686
- const { payload, refreshes } = await event.request.json();
2687
- state.remote.requested = create_requested_map(refreshes);
2688
- const arg = parse_remote_arg(payload, transport);
2689
- return json({
2690
- type: "result",
2691
- result: stringify(await with_request_store({
2692
- event,
2693
- state
2694
- }, () => fn(arg)), transport),
2695
- refreshes: await serialize_singleflight(state.remote.refreshes),
2696
- reconnects: await serialize_singleflight(state.remote.reconnects)
2697
- });
2698
- }
2699
- if (internals.type === "query_live") {
2700
- if (event.request.method !== "GET") throw new SvelteKitError(405, "Method Not Allowed", `\`query.live\` functions must be invoked via GET request, not ${event.request.method}`);
2701
- const payload = new URL(event.request.url).searchParams.get("payload");
2702
- const generator = internals.run(event, state, parse_remote_arg(payload, transport));
2703
- const encoder = new TextEncoder();
2704
- /**
2705
- * @param {ReadableStreamDefaultController} controller
2706
- * @param {any} payload
2707
- */
2708
- function send(controller, payload) {
2709
- controller.enqueue(encoder.encode(JSON.stringify(payload) + "\n"));
2710
- }
2711
- let closed = false;
2712
- /** @type {string | undefined} */
2713
- let result = void 0;
2714
- async function cancel() {
2715
- if (closed) return;
2716
- closed = true;
2717
- await generator.return(void 0);
2718
- }
2719
- event.request.signal.addEventListener("abort", cancel, { once: true });
2720
- return new Response(new ReadableStream({
2721
- async pull(controller) {
2722
- if (event.request.signal.aborted) {
2723
- await cancel();
2724
- controller.close();
2725
- return;
2726
- }
2727
- try {
2728
- while (true) {
2729
- const { value, done } = await generator.next();
2730
- if (done) {
2731
- await cancel();
2732
- controller.close();
2733
- return;
2734
- }
2735
- if (result !== (result = stringify(value, transport))) {
2736
- send(controller, {
2737
- type: "result",
2738
- result
2739
- });
2740
- return;
2741
- }
2742
- }
2743
- } catch (error) {
2744
- if (!event.request.signal.aborted) if (error instanceof Redirect) send(controller, {
2745
- type: "redirect",
2746
- location: error.location
2747
- });
2748
- else {
2749
- const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2750
- send(controller, {
2751
- type: "error",
2752
- error: await handle_error_and_jsonify(event, state, options, error),
2753
- status
2754
- });
2755
- }
2756
- await cancel();
2757
- controller.close();
2758
- }
2759
- },
2760
- cancel
2761
- }), { headers: {
2762
- "cache-control": "private, no-store",
2763
- "content-type": "application/x-ndjson"
2764
- } });
2765
- }
2766
- const payload = internals.type === "prerender" ? additional_args : new URL(event.request.url).searchParams.get("payload");
2767
- return json({
2768
- type: "result",
2769
- result: stringify(await with_request_store({
2770
- event,
2771
- state
2772
- }, () => fn(parse_remote_arg(payload, transport))), transport)
2773
- });
2774
- } catch (error) {
2775
- if (error instanceof Redirect) return json({
2776
- type: "redirect",
2777
- location: error.location,
2778
- refreshes: await serialize_singleflight(state.remote.refreshes),
2779
- reconnects: await serialize_singleflight(state.remote.reconnects)
2780
- });
2781
- const status = error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
2782
- return json({
2783
- type: "error",
2784
- error: await handle_error_and_jsonify(event, state, options, error),
2785
- status
2786
- }, {
2787
- status: state.prerendering ? status : void 0,
2788
- headers: { "cache-control": "private, no-store" }
2789
- });
2790
- }
2791
- /** @param {Map<string, Promise<any>> | null} map */
2792
- async function serialize_singleflight(map) {
2793
- if (!map || map.size === 0) return;
2794
- const results = await Promise.all(Array.from(map, async ([key, promise]) => {
2795
- try {
2796
- return [key, {
2797
- type: "result",
2798
- data: await promise
2799
- }];
2800
- } catch (error) {
2801
- return [key, {
2802
- type: "error",
2803
- status: error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500,
2804
- error: await handle_error_and_jsonify(event, state, options, error)
2805
- }];
2806
- }
2807
- }));
2808
- return stringify(Object.fromEntries(results), transport);
2809
- }
2810
- }
2811
- /**
2812
- * @param {string[] | undefined} refreshes
2813
- */
2814
- function create_requested_map(refreshes) {
2815
- /** @type {Map<string, string[]>} */
2816
- const requested = /* @__PURE__ */ new Map();
2817
- for (const key of refreshes ?? []) {
2818
- const parts = split_remote_key(key);
2819
- const existing = requested.get(parts.id);
2820
- if (existing) existing.push(parts.payload);
2821
- else requested.set(parts.id, [parts.payload]);
2822
- }
2823
- return requested;
2824
- }
2825
- /** @type {typeof handle_remote_form_post_internal} */
2826
- async function handle_remote_form_post(event, state, manifest, id) {
2827
- return record_span({
2828
- name: "sveltekit.remote.form.post",
2829
- attributes: { },
2830
- fn: (current) => {
2831
- const traced_event = merge_tracing(event, current);
2832
- return with_request_store({
2833
- event: traced_event,
2834
- state
2835
- }, () => handle_remote_form_post_internal(traced_event, state, manifest, id));
2836
- }
2837
- });
2838
- }
2839
- /**
2840
- * @param {RequestEvent} event
2841
- * @param {RequestState} state
2842
- * @param {SSRManifest} manifest
2843
- * @param {string} id
2844
- * @returns {Promise<ActionResult>}
2845
- */
2846
- async function handle_remote_form_post_internal(event, state, manifest, id) {
2847
- const [hash, name, action_id] = id.split("/");
2848
- let form = (await manifest._.remotes[hash]?.())?.default[name];
2849
- if (!form) {
2850
- event.setHeaders({ allow: "GET" });
2851
- return {
2852
- type: "error",
2853
- error: new SvelteKitError(405, "Method Not Allowed", `POST method not allowed. No form actions exist for this page`)
2854
- };
2855
- }
2856
- if (action_id) form = with_request_store({
2857
- event,
2858
- state
2859
- }, () => form.for(JSON.parse(action_id)));
2860
- try {
2861
- const fn = form.__.fn;
2862
- const { data, meta, form_data } = await deserialize_binary_form(event.request);
2863
- if (action_id && !("id" in data)) data.id = JSON.parse(decodeURIComponent(action_id));
2864
- await with_request_store({
2865
- event,
2866
- state
2867
- }, () => fn(data, meta, form_data));
2868
- return {
2869
- type: "success",
2870
- status: 200
2871
- };
2872
- } catch (e) {
2873
- const err = normalize_error(e);
2874
- if (err instanceof Redirect) return {
2875
- type: "redirect",
2876
- status: err.status,
2877
- location: err.location
2878
- };
2879
- return {
2880
- type: "error",
2881
- error: check_incorrect_fail_use(err)
2882
- };
2883
- }
2884
- }
2885
- /**
2886
- * @param {URL} url
2887
- */
2888
- function get_remote_id(url) {
2889
- return url.pathname.startsWith(`${base}/_app/remote/`) && url.pathname.replace(`${base}/_app/remote/`, "");
2890
- }
2891
- /**
2892
- * @param {URL} url
2893
- */
2894
- function get_remote_action(url) {
2895
- return url.searchParams.get("/remote");
2896
- }
2897
- //#endregion
2898
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/page/index.js
2185
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/page/index.js
2899
2186
  /** @import { ActionResult, RequestEvent, SSRManifest } from '@sveltejs/kit' */
2900
2187
  /** @import { PageNodeIndexes, RequestState, RequiredResolveOptions, ServerDataNode, SSRComponent, SSRNode, SSROptions, SSRState } from 'types' */
2901
2188
  /**
@@ -3158,7 +2445,7 @@ async function load_error_components(options, ssr, branch, page, manifest) {
3158
2445
  return error_components;
3159
2446
  }
3160
2447
  //#endregion
3161
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/data/index.js
2448
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/data/index.js
3162
2449
  /**
3163
2450
  * @param {import('@sveltejs/kit').RequestEvent} event
3164
2451
  * @param {import('types').RequestState} event_state
@@ -3271,7 +2558,7 @@ function redirect_json_response(redirect) {
3271
2558
  * MIT Licensed
3272
2559
  */
3273
2560
  //#endregion
3274
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/cookie.js
2561
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/cookie.js
3275
2562
  var import_cookie = (/* @__PURE__ */ __commonJSMin(((exports) => {
3276
2563
  /**
3277
2564
  * Module exports.
@@ -3648,7 +2935,7 @@ function add_cookies_to_headers(headers, cookies) {
3648
2935
  }
3649
2936
  }
3650
2937
  //#endregion
3651
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/fetch.js
2938
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/fetch.js
3652
2939
  /**
3653
2940
  * @param {{
3654
2941
  * event: import('@sveltejs/kit').RequestEvent;
@@ -3776,7 +3063,7 @@ async function internal_fetch(request, options, manifest, state) {
3776
3063
  });
3777
3064
  }
3778
3065
  //#endregion
3779
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/env_module.js
3066
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/env_module.js
3780
3067
  /** @type {string} */
3781
3068
  var payload;
3782
3069
  /** @type {string} */
@@ -3803,7 +3090,7 @@ function get_public_env(request) {
3803
3090
  return new Response(`export const env=${payload}`, { headers });
3804
3091
  }
3805
3092
  //#endregion
3806
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/respond.js
3093
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/respond.js
3807
3094
  /** @import { RequestState, SSRNode } from 'types' */
3808
3095
  /** @type {import('types').RequiredResolveOptions['transformPageChunk']} */
3809
3096
  var default_transform = ({ html }) => html;
@@ -3811,12 +3098,12 @@ var default_transform = ({ html }) => html;
3811
3098
  var default_filter = () => false;
3812
3099
  /** @type {import('types').RequiredResolveOptions['preload']} */
3813
3100
  var default_preload = ({ type }) => type === "js" || type === "css";
3814
- var page_methods = new Set([
3101
+ var page_methods = /* @__PURE__ */ new Set([
3815
3102
  "GET",
3816
3103
  "HEAD",
3817
3104
  "POST"
3818
3105
  ]);
3819
- var allowed_page_methods = new Set([
3106
+ var allowed_page_methods = /* @__PURE__ */ new Set([
3820
3107
  "GET",
3821
3108
  "HEAD",
3822
3109
  "OPTIONS"
@@ -3877,14 +3164,16 @@ async function internal_respond(request, options, manifest, state) {
3877
3164
  tracing: { record_span },
3878
3165
  remote: {
3879
3166
  data: null,
3167
+ explicit: null,
3168
+ implicit: null,
3880
3169
  forms: null,
3881
- refreshes: null,
3882
3170
  requested: null,
3883
- reconnects: null,
3884
3171
  batches: null,
3885
3172
  live_iterators: null
3886
3173
  },
3887
3174
  is_in_remote_function: false,
3175
+ is_in_remote_form_or_command: false,
3176
+ is_in_remote_query: false,
3888
3177
  is_in_render: false,
3889
3178
  is_in_universal_load: false
3890
3179
  };
@@ -4179,7 +3468,7 @@ async function internal_respond(request, options, manifest, state) {
4179
3468
  /** @type {Response} */
4180
3469
  let response;
4181
3470
  if (is_data_request) response = await render_data(event, event_state, route, options, manifest, state, invalidated_data_nodes, trailing_slash);
4182
- else if (route.endpoint && (!route.page || is_endpoint_request(event))) response = await render_endpoint(event, event_state, await route.endpoint(), state);
3471
+ else if (route.endpoint && (!route.page || !state.prerendering && is_endpoint_request(event))) response = await render_endpoint(event, event_state, await route.endpoint(), state);
4183
3472
  else if (route.page) if (!page_nodes) throw new Error("page_nodes not found. This should never happen");
4184
3473
  else if (page_methods.has(method)) response = await render_page(event, event_state, route.page, options, manifest, state, page_nodes, resolve_opts);
4185
3474
  else {
@@ -4260,7 +3549,7 @@ function propagate_context(fn) {
4260
3549
  };
4261
3550
  }
4262
3551
  //#endregion
4263
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/utils/env.js
3552
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/utils/env.js
4264
3553
  /**
4265
3554
  * @param {Record<string, string>} env
4266
3555
  * @param {string} allowed
@@ -4271,7 +3560,7 @@ function filter_env(env, allowed, disallowed) {
4271
3560
  return Object.fromEntries(Object.entries(env).filter(([k]) => k.startsWith(allowed) && (disallowed === "" || !k.startsWith(disallowed))));
4272
3561
  }
4273
3562
  //#endregion
4274
- //#region node_modules/.pnpm/@sveltejs+kit@2.63.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.2_@typescript-eslin_9ed2d7f3800a1c77eec55a1d66c8792d/node_modules/@sveltejs/kit/src/runtime/server/index.js
3563
+ //#region node_modules/.pnpm/@sveltejs+kit@2.68.0_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.4_@typescript-eslin_dc42cfaaf25d0a7b8c590c984c4ca6a7/node_modules/@sveltejs/kit/src/runtime/server/index.js
4275
3564
  /** @import { PromiseWithResolvers } from '../../utils/promise.js' */
4276
3565
  /** @type {Promise<any>} */
4277
3566
  var init_promise;
@@ -4369,5 +3658,5 @@ var Server = class {
4369
3658
  }
4370
3659
  };
4371
3660
 
4372
- export { Server };
4373
- //# sourceMappingURL=index.js.map
3661
+ export { Server as S };
3662
+ //# sourceMappingURL=index.js-0pMmjHBu.js.map