@agent-profile/web 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +70 -29
  2. package/build/client/_app/immutable/assets/{0.BG6jUcBX.css → 0.8hVtEx5X.css} +1 -1
  3. package/build/client/_app/immutable/assets/0.8hVtEx5X.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.8hVtEx5X.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/9.BsbC-D7w.css +1 -0
  6. package/build/client/_app/immutable/assets/9.BsbC-D7w.css.br +0 -0
  7. package/build/client/_app/immutable/assets/9.BsbC-D7w.css.gz +0 -0
  8. package/build/client/_app/immutable/chunks/4FiW6_9u.js +1 -0
  9. package/build/client/_app/immutable/chunks/4FiW6_9u.js.br +2 -0
  10. package/build/client/_app/immutable/chunks/4FiW6_9u.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/CF39CcoQ.js +3 -0
  12. package/build/client/_app/immutable/chunks/CF39CcoQ.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/CF39CcoQ.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/CRcOA4L4.js +3 -0
  15. package/build/client/_app/immutable/chunks/CRcOA4L4.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/CRcOA4L4.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/Cc9Av3g9.js +2 -0
  18. package/build/client/_app/immutable/chunks/Cc9Av3g9.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/Cc9Av3g9.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/DUEBfJ-c.js +1 -0
  21. package/build/client/_app/immutable/chunks/DUEBfJ-c.js.br +4 -0
  22. package/build/client/_app/immutable/chunks/DUEBfJ-c.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/DvNNrklS.js +1 -0
  24. package/build/client/_app/immutable/chunks/DvNNrklS.js.br +2 -0
  25. package/build/client/_app/immutable/chunks/DvNNrklS.js.gz +0 -0
  26. package/build/client/_app/immutable/entry/app.ZULfIbKE.js +2 -0
  27. package/build/client/_app/immutable/entry/app.ZULfIbKE.js.br +0 -0
  28. package/build/client/_app/immutable/entry/app.ZULfIbKE.js.gz +0 -0
  29. package/build/client/_app/immutable/entry/start.XwZvWTgq.js +1 -0
  30. package/build/client/_app/immutable/entry/start.XwZvWTgq.js.br +0 -0
  31. package/build/client/_app/immutable/entry/start.XwZvWTgq.js.gz +0 -0
  32. package/build/client/_app/immutable/nodes/0.BTaKrNnR.js +1 -0
  33. package/build/client/_app/immutable/nodes/0.BTaKrNnR.js.br +0 -0
  34. package/build/client/_app/immutable/nodes/0.BTaKrNnR.js.gz +0 -0
  35. package/build/client/_app/immutable/nodes/1.B4GcuHvH.js +1 -0
  36. package/build/client/_app/immutable/nodes/1.B4GcuHvH.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/1.B4GcuHvH.js.gz +0 -0
  38. package/build/client/_app/immutable/nodes/{10.BOQgahuX.js → 10.IHQDAuDz.js} +2 -2
  39. package/build/client/_app/immutable/nodes/10.IHQDAuDz.js.br +0 -0
  40. package/build/client/_app/immutable/nodes/10.IHQDAuDz.js.gz +0 -0
  41. package/build/client/_app/immutable/nodes/11.B5APptAv.js +1 -0
  42. package/build/client/_app/immutable/nodes/11.B5APptAv.js.br +0 -0
  43. package/build/client/_app/immutable/nodes/11.B5APptAv.js.gz +0 -0
  44. package/build/client/_app/immutable/nodes/2.BHUaWFMZ.js +10 -0
  45. package/build/client/_app/immutable/nodes/2.BHUaWFMZ.js.br +0 -0
  46. package/build/client/_app/immutable/nodes/2.BHUaWFMZ.js.gz +0 -0
  47. package/build/client/_app/immutable/nodes/3.DIhh3cSh.js +2 -0
  48. package/build/client/_app/immutable/nodes/3.DIhh3cSh.js.br +0 -0
  49. package/build/client/_app/immutable/nodes/3.DIhh3cSh.js.gz +0 -0
  50. package/build/client/_app/immutable/nodes/4.DjkBBmOF.js +4 -0
  51. package/build/client/_app/immutable/nodes/4.DjkBBmOF.js.br +0 -0
  52. package/build/client/_app/immutable/nodes/4.DjkBBmOF.js.gz +0 -0
  53. package/build/client/_app/immutable/nodes/5.BPcSAYs6.js +2 -0
  54. package/build/client/_app/immutable/nodes/5.BPcSAYs6.js.br +0 -0
  55. package/build/client/_app/immutable/nodes/5.BPcSAYs6.js.gz +0 -0
  56. package/build/client/_app/immutable/nodes/6.DZa-5yoH.js +5 -0
  57. package/build/client/_app/immutable/nodes/6.DZa-5yoH.js.br +0 -0
  58. package/build/client/_app/immutable/nodes/6.DZa-5yoH.js.gz +0 -0
  59. package/build/client/_app/immutable/nodes/7.v6t5o5IK.js +4 -0
  60. package/build/client/_app/immutable/nodes/7.v6t5o5IK.js.br +0 -0
  61. package/build/client/_app/immutable/nodes/7.v6t5o5IK.js.gz +0 -0
  62. package/build/client/_app/immutable/nodes/8.UWqOmBTc.js +1 -0
  63. package/build/client/_app/immutable/nodes/8.UWqOmBTc.js.br +0 -0
  64. package/build/client/_app/immutable/nodes/8.UWqOmBTc.js.gz +0 -0
  65. package/build/client/_app/immutable/nodes/9.xVCOCMfn.js +3 -0
  66. package/build/client/_app/immutable/nodes/9.xVCOCMfn.js.br +0 -0
  67. package/build/client/_app/immutable/nodes/9.xVCOCMfn.js.gz +0 -0
  68. package/build/client/_app/version.json +1 -1
  69. package/build/client/_app/version.json.br +0 -0
  70. package/build/client/_app/version.json.gz +0 -0
  71. package/build/client/marketing.js +105 -0
  72. package/build/client/marketing.js.br +0 -0
  73. package/build/client/marketing.js.gz +0 -0
  74. package/build/server/chunks/{0-aBAedq2p.js → 0-IAeZ4YD5.js} +17 -11
  75. package/build/server/chunks/0-IAeZ4YD5.js.map +1 -0
  76. package/build/server/chunks/{1-7SwLsXP7.js → 1--R3gZqoU.js} +3 -3
  77. package/build/server/chunks/{1-7SwLsXP7.js.map → 1--R3gZqoU.js.map} +1 -1
  78. package/build/server/chunks/10-B2v4GVik.js +9 -0
  79. package/build/server/chunks/{10-B1aX7ZZ8.js.map → 10-B2v4GVik.js.map} +1 -1
  80. package/build/server/chunks/{11-4z6b2WB8.js → 11-DbxvesJH.js} +6 -6
  81. package/build/server/chunks/{11-4z6b2WB8.js.map → 11-DbxvesJH.js.map} +1 -1
  82. package/build/server/chunks/2-CHviyPyI.js +21 -0
  83. package/build/server/chunks/2-CHviyPyI.js.map +1 -0
  84. package/build/server/chunks/3-CdNRNP5d.js +9 -0
  85. package/build/server/chunks/{3-CLWhM7Et.js.map → 3-CdNRNP5d.js.map} +1 -1
  86. package/build/server/chunks/{4-BehBrXcu.js → 4-CCj_Mhpz.js} +6 -6
  87. package/build/server/chunks/{4-BehBrXcu.js.map → 4-CCj_Mhpz.js.map} +1 -1
  88. package/build/server/chunks/5-CqBVRlNU.js +9 -0
  89. package/build/server/chunks/{5-C1YtO2Ru.js.map → 5-CqBVRlNU.js.map} +1 -1
  90. package/build/server/chunks/{6-DJ03bQJy.js → 6-BHxeFzUE.js} +3 -3
  91. package/build/server/chunks/{6-DJ03bQJy.js.map → 6-BHxeFzUE.js.map} +1 -1
  92. package/build/server/chunks/{7-BHefj3jR.js → 7-BUFOaHdC.js} +8 -8
  93. package/build/server/chunks/{7-BHefj3jR.js.map → 7-BUFOaHdC.js.map} +1 -1
  94. package/build/server/chunks/8-BbviFV5J.js +9 -0
  95. package/build/server/chunks/{8-BNb36pCU.js.map → 8-BbviFV5J.js.map} +1 -1
  96. package/build/server/chunks/9-kCTRECfO.js +67 -0
  97. package/build/server/chunks/9-kCTRECfO.js.map +1 -0
  98. package/build/server/chunks/{Badge-BrV_lIru.js → Badge-DCQxSQCS.js} +2 -2
  99. package/build/server/chunks/{Badge-BrV_lIru.js.map → Badge-DCQxSQCS.js.map} +1 -1
  100. package/build/server/chunks/{SafetyBadge-BSDbVVMY.js → SafetyBadge-BxEGojgX.js} +2 -2
  101. package/build/server/chunks/{SafetyBadge-BSDbVVMY.js.map → SafetyBadge-BxEGojgX.js.map} +1 -1
  102. package/build/server/chunks/{_layout.svelte-C6Ru_7YV.js → _layout.svelte-CQM4xaaq.js} +8 -8
  103. package/build/server/chunks/_layout.svelte-CQM4xaaq.js.map +1 -0
  104. package/build/server/chunks/{_page.svelte-Bv-w7cKm.js → _page.svelte-1wUrXGW-.js} +3 -3
  105. package/build/server/chunks/{_page.svelte-Bv-w7cKm.js.map → _page.svelte-1wUrXGW-.js.map} +1 -1
  106. package/build/server/chunks/{_page.svelte-BS9xpx67.js → _page.svelte-2W3EhlSt.js} +141 -60
  107. package/build/server/chunks/_page.svelte-2W3EhlSt.js.map +1 -0
  108. package/build/server/chunks/{_page.svelte-C8HqSRYY.js → _page.svelte-B3CasgD8.js} +2 -2
  109. package/build/server/chunks/{_page.svelte-C8HqSRYY.js.map → _page.svelte-B3CasgD8.js.map} +1 -1
  110. package/build/server/chunks/{_page.svelte-QyOMa9Ce.js → _page.svelte-B6d3qwTm.js} +5 -5
  111. package/build/server/chunks/{_page.svelte-QyOMa9Ce.js.map → _page.svelte-B6d3qwTm.js.map} +1 -1
  112. package/build/server/chunks/{_page.svelte-DRj4L7XZ.js → _page.svelte-BikYFdJv.js} +4 -4
  113. package/build/server/chunks/{_page.svelte-DRj4L7XZ.js.map → _page.svelte-BikYFdJv.js.map} +1 -1
  114. package/build/server/chunks/{_page.svelte-r2AHAn4f.js → _page.svelte-D8ffqrO3.js} +3 -3
  115. package/build/server/chunks/{_page.svelte-r2AHAn4f.js.map → _page.svelte-D8ffqrO3.js.map} +1 -1
  116. package/build/server/chunks/_page.svelte-DfUc4h7g.js +435 -0
  117. package/build/server/chunks/_page.svelte-DfUc4h7g.js.map +1 -0
  118. package/build/server/chunks/{_page.svelte-DYBnVmA8.js → _page.svelte-sygmDxbg.js} +6 -6
  119. package/build/server/chunks/{_page.svelte-DYBnVmA8.js.map → _page.svelte-sygmDxbg.js.map} +1 -1
  120. package/build/server/chunks/{_page.svelte-DyYKrY-D.js → _page.svelte-wL3fdD1l.js} +4 -4
  121. package/build/server/chunks/{_page.svelte-DyYKrY-D.js.map → _page.svelte-wL3fdD1l.js.map} +1 -1
  122. package/build/server/chunks/{_page.svelte-DuJcNgye.js → _page.svelte-xTZOj1o8.js} +3 -3
  123. package/build/server/chunks/{_page.svelte-DuJcNgye.js.map → _page.svelte-xTZOj1o8.js.map} +1 -1
  124. package/build/server/chunks/_server.ts-B7znNtap.js +100 -0
  125. package/build/server/chunks/_server.ts-B7znNtap.js.map +1 -0
  126. package/build/server/chunks/_server.ts-BjPyYUki.js +85 -0
  127. package/build/server/chunks/_server.ts-BjPyYUki.js.map +1 -0
  128. package/build/server/chunks/_server.ts-C8Fe0kql.js +8 -0
  129. package/build/server/chunks/_server.ts-C8Fe0kql.js.map +1 -0
  130. package/build/server/chunks/_server.ts-D1Ja2hnG.js +8 -0
  131. package/build/server/chunks/_server.ts-D1Ja2hnG.js.map +1 -0
  132. package/build/server/chunks/_server.ts-DsbQ4b7x.js +43 -0
  133. package/build/server/chunks/_server.ts-DsbQ4b7x.js.map +1 -0
  134. package/build/server/chunks/_server.ts-hEGlXjuB.js +8 -0
  135. package/build/server/chunks/_server.ts-hEGlXjuB.js.map +1 -0
  136. package/build/server/chunks/{client-CBew73li.js → client-h6Frgnzt.js} +3 -3
  137. package/build/server/chunks/{client-CBew73li.js.map → client-h6Frgnzt.js.map} +1 -1
  138. package/build/server/chunks/{dev-CrqJ3ZR3.js → dev-BdIdjvaY.js} +216 -82
  139. package/build/server/chunks/dev-BdIdjvaY.js.map +1 -0
  140. package/build/server/chunks/{doctorSummary-CGjSiyKU.js → doctorSummary-FyoWuR3R.js} +3 -3
  141. package/build/server/chunks/{doctorSummary-CGjSiyKU.js.map → doctorSummary-FyoWuR3R.js.map} +1 -1
  142. package/build/server/chunks/{error.svelte-C78Jl1J5.js → error.svelte-DYzh-S9t.js} +5 -5
  143. package/build/server/chunks/{error.svelte-C78Jl1J5.js.map → error.svelte-DYzh-S9t.js.map} +1 -1
  144. package/build/server/chunks/hooks.server-BKavEpqC.js +81 -0
  145. package/build/server/chunks/hooks.server-BKavEpqC.js.map +1 -0
  146. package/build/server/chunks/index-CLnuRv4X.js +134 -0
  147. package/build/server/chunks/index-CLnuRv4X.js.map +1 -0
  148. package/build/server/chunks/index-DBqjc0Yf.js +77 -0
  149. package/build/server/chunks/index-DBqjc0Yf.js.map +1 -0
  150. package/build/server/chunks/{internal-WBaPpipk.js → internal-Dz8-ksla.js} +23 -93
  151. package/build/server/chunks/internal-Dz8-ksla.js.map +1 -0
  152. package/build/server/chunks/marketingSeo-6Ec8IVzY.js +132 -0
  153. package/build/server/chunks/marketingSeo-6Ec8IVzY.js.map +1 -0
  154. package/build/server/chunks/profileApiHelpers-CUuQdn1G.js +180 -0
  155. package/build/server/chunks/profileApiHelpers-CUuQdn1G.js.map +1 -0
  156. package/build/server/chunks/{projectContext-C4-xYqFg.js → projectContext-fk5wtjwg.js} +1393 -69
  157. package/build/server/chunks/projectContext-fk5wtjwg.js.map +1 -0
  158. package/build/server/chunks/src2-BFardyAd.js +12 -0
  159. package/build/server/chunks/src2-BFardyAd.js.map +1 -0
  160. package/build/server/chunks/{dist--t-UlYlZ.js → src3-vKD2iyNK.js} +135 -3
  161. package/build/server/chunks/src3-vKD2iyNK.js.map +1 -0
  162. package/build/server/chunks/tokenStore-DQfTa-N3.js +57 -0
  163. package/build/server/chunks/tokenStore-DQfTa-N3.js.map +1 -0
  164. package/build/server/index.js +4592 -4
  165. package/build/server/index.js.map +1 -1
  166. package/build/server/manifest.js +57 -15
  167. package/build/server/manifest.js.map +1 -1
  168. package/package.json +12 -9
  169. package/build/client/_app/immutable/assets/0.BG6jUcBX.css.br +0 -0
  170. package/build/client/_app/immutable/assets/0.BG6jUcBX.css.gz +0 -0
  171. package/build/client/_app/immutable/chunks/B-io8J2C.js +0 -1
  172. package/build/client/_app/immutable/chunks/B-io8J2C.js.br +0 -2
  173. package/build/client/_app/immutable/chunks/B-io8J2C.js.gz +0 -0
  174. package/build/client/_app/immutable/chunks/BWDgWdtq.js +0 -3
  175. package/build/client/_app/immutable/chunks/BWDgWdtq.js.br +0 -0
  176. package/build/client/_app/immutable/chunks/BWDgWdtq.js.gz +0 -0
  177. package/build/client/_app/immutable/chunks/CBvCQPh1.js +0 -1
  178. package/build/client/_app/immutable/chunks/CBvCQPh1.js.br +0 -2
  179. package/build/client/_app/immutable/chunks/CBvCQPh1.js.gz +0 -0
  180. package/build/client/_app/immutable/chunks/DAWBIq3g.js +0 -2
  181. package/build/client/_app/immutable/chunks/DAWBIq3g.js.br +0 -0
  182. package/build/client/_app/immutable/chunks/DAWBIq3g.js.gz +0 -0
  183. package/build/client/_app/immutable/chunks/DCJP-V9E.js +0 -3
  184. package/build/client/_app/immutable/chunks/DCJP-V9E.js.br +0 -0
  185. package/build/client/_app/immutable/chunks/DCJP-V9E.js.gz +0 -0
  186. package/build/client/_app/immutable/chunks/SOrpfga1.js +0 -1
  187. package/build/client/_app/immutable/chunks/SOrpfga1.js.br +0 -0
  188. package/build/client/_app/immutable/chunks/SOrpfga1.js.gz +0 -0
  189. package/build/client/_app/immutable/entry/app.CvfSMy7S.js +0 -2
  190. package/build/client/_app/immutable/entry/app.CvfSMy7S.js.br +0 -0
  191. package/build/client/_app/immutable/entry/app.CvfSMy7S.js.gz +0 -0
  192. package/build/client/_app/immutable/entry/start.nKIgWfXU.js +0 -1
  193. package/build/client/_app/immutable/entry/start.nKIgWfXU.js.br +0 -0
  194. package/build/client/_app/immutable/entry/start.nKIgWfXU.js.gz +0 -0
  195. package/build/client/_app/immutable/nodes/0.l1JjQQQj.js +0 -1
  196. package/build/client/_app/immutable/nodes/0.l1JjQQQj.js.br +0 -0
  197. package/build/client/_app/immutable/nodes/0.l1JjQQQj.js.gz +0 -0
  198. package/build/client/_app/immutable/nodes/1.BzbldZDH.js +0 -1
  199. package/build/client/_app/immutable/nodes/1.BzbldZDH.js.br +0 -4
  200. package/build/client/_app/immutable/nodes/1.BzbldZDH.js.gz +0 -0
  201. package/build/client/_app/immutable/nodes/10.BOQgahuX.js.br +0 -0
  202. package/build/client/_app/immutable/nodes/10.BOQgahuX.js.gz +0 -0
  203. package/build/client/_app/immutable/nodes/11.BjwWla8T.js +0 -1
  204. package/build/client/_app/immutable/nodes/11.BjwWla8T.js.br +0 -0
  205. package/build/client/_app/immutable/nodes/11.BjwWla8T.js.gz +0 -0
  206. package/build/client/_app/immutable/nodes/2.BDMGSS6l.js +0 -9
  207. package/build/client/_app/immutable/nodes/2.BDMGSS6l.js.br +0 -0
  208. package/build/client/_app/immutable/nodes/2.BDMGSS6l.js.gz +0 -0
  209. package/build/client/_app/immutable/nodes/3.NnDkXnSG.js +0 -2
  210. package/build/client/_app/immutable/nodes/3.NnDkXnSG.js.br +0 -0
  211. package/build/client/_app/immutable/nodes/3.NnDkXnSG.js.gz +0 -0
  212. package/build/client/_app/immutable/nodes/4.8sZ5zCiS.js +0 -4
  213. package/build/client/_app/immutable/nodes/4.8sZ5zCiS.js.br +0 -0
  214. package/build/client/_app/immutable/nodes/4.8sZ5zCiS.js.gz +0 -0
  215. package/build/client/_app/immutable/nodes/5.CSOalQ9R.js +0 -2
  216. package/build/client/_app/immutable/nodes/5.CSOalQ9R.js.br +0 -0
  217. package/build/client/_app/immutable/nodes/5.CSOalQ9R.js.gz +0 -0
  218. package/build/client/_app/immutable/nodes/6.BMBuGW7y.js +0 -5
  219. package/build/client/_app/immutable/nodes/6.BMBuGW7y.js.br +0 -0
  220. package/build/client/_app/immutable/nodes/6.BMBuGW7y.js.gz +0 -0
  221. package/build/client/_app/immutable/nodes/7.CKFnFT6B.js +0 -4
  222. package/build/client/_app/immutable/nodes/7.CKFnFT6B.js.br +0 -0
  223. package/build/client/_app/immutable/nodes/7.CKFnFT6B.js.gz +0 -0
  224. package/build/client/_app/immutable/nodes/8.Dw5huUXy.js +0 -1
  225. package/build/client/_app/immutable/nodes/8.Dw5huUXy.js.br +0 -0
  226. package/build/client/_app/immutable/nodes/8.Dw5huUXy.js.gz +0 -0
  227. package/build/client/_app/immutable/nodes/9.CnkwRoxn.js +0 -5
  228. package/build/client/_app/immutable/nodes/9.CnkwRoxn.js.br +0 -0
  229. package/build/client/_app/immutable/nodes/9.CnkwRoxn.js.gz +0 -0
  230. package/build/server/chunks/0-aBAedq2p.js.map +0 -1
  231. package/build/server/chunks/10-B1aX7ZZ8.js +0 -9
  232. package/build/server/chunks/2-BT3hDge_.js +0 -9
  233. package/build/server/chunks/2-BT3hDge_.js.map +0 -1
  234. package/build/server/chunks/3-CLWhM7Et.js +0 -9
  235. package/build/server/chunks/5-C1YtO2Ru.js +0 -9
  236. package/build/server/chunks/8-BNb36pCU.js +0 -9
  237. package/build/server/chunks/9-LeS-ldcl.js +0 -57
  238. package/build/server/chunks/9-LeS-ldcl.js.map +0 -1
  239. package/build/server/chunks/_layout.svelte-C6Ru_7YV.js.map +0 -1
  240. package/build/server/chunks/_page.svelte-BS9xpx67.js.map +0 -1
  241. package/build/server/chunks/_page.svelte-IYyXbXcB.js +0 -424
  242. package/build/server/chunks/_page.svelte-IYyXbXcB.js.map +0 -1
  243. package/build/server/chunks/dev-CrqJ3ZR3.js.map +0 -1
  244. package/build/server/chunks/dist--t-UlYlZ.js.map +0 -1
  245. package/build/server/chunks/hooks.server-BU12K8IL.js +0 -38
  246. package/build/server/chunks/hooks.server-BU12K8IL.js.map +0 -1
  247. package/build/server/chunks/index-CNsiSQmW.js +0 -4727
  248. package/build/server/chunks/index-CNsiSQmW.js.map +0 -1
  249. package/build/server/chunks/internal-WBaPpipk.js.map +0 -1
  250. package/build/server/chunks/projectContext-C4-xYqFg.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { a as resolveProjectRoot } from './projectContext-C4-xYqFg.js';
2
- import { r as runDoctor } from './dist--t-UlYlZ.js';
1
+ import { r as resolveProjectRoot } from './projectContext-fk5wtjwg.js';
2
+ import { r as runDoctor } from './src3-vKD2iyNK.js';
3
3
 
4
4
  //#region src/lib/server/doctorSummary.ts
5
5
  var SUMMARY_CACHE_MS = 5e3;
@@ -82,4 +82,4 @@ async function loadDoctorSummary(rootDir = resolveProjectRoot()) {
82
82
  }
83
83
 
84
84
  export { bucketDoctorIssues as b, loadDoctorSummary as l };
85
- //# sourceMappingURL=doctorSummary-CGjSiyKU.js.map
85
+ //# sourceMappingURL=doctorSummary-FyoWuR3R.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctorSummary-CGjSiyKU.js","sources":["../../../.svelte-kit/adapter-node/chunks/doctorSummary.js"],"sourcesContent":["import { r as resolveProjectRoot } from \"./projectContext.js\";\nimport { t as runDoctor } from \"./dist.js\";\n//#region src/lib/server/doctorSummary.ts\nvar SUMMARY_CACHE_MS = 5e3;\nvar cachedSummary = null;\nfunction isNotVerifiableIssue(issue) {\n\treturn /not verifiable/i.test(issue.message) || /not verifiable/i.test(issue.guidance);\n}\nfunction bucketDoctorIssues(issues) {\n\tconst buckets = {\n\t\terror: [],\n\t\twarning: [],\n\t\tinfo: [],\n\t\tnot_verifiable: []\n\t};\n\tfor (const issue of issues) {\n\t\tif (isNotVerifiableIssue(issue)) {\n\t\t\tbuckets.not_verifiable.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tbuckets[issue.severity].push(issue);\n\t}\n\treturn buckets;\n}\nfunction statusLabel(status) {\n\tif (status === \"fail\") return \"failing\";\n\tif (status === \"warn\") return \"warnings\";\n\tif (status === \"pass\") return \"passing\";\n\treturn \"unavailable\";\n}\nasync function loadDoctorSummary(rootDir = resolveProjectRoot()) {\n\tconst now = Date.now();\n\tif (cachedSummary && cachedSummary.rootDir === rootDir && cachedSummary.expiresAt > now) return cachedSummary.summary;\n\tconst startedAt = process.hrtime.bigint();\n\ttry {\n\t\tconst result = await runDoctor({ rootDir });\n\t\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\t\tconst buckets = bucketDoctorIssues(result.issues);\n\t\tconst summary = {\n\t\t\tok: true,\n\t\t\tstatus: result.status,\n\t\t\tlabel: statusLabel(result.status),\n\t\t\terrorCount: buckets.error.length,\n\t\t\twarningCount: buckets.warning.length,\n\t\t\tinfoCount: buckets.info.length,\n\t\t\tnotVerifiableCount: buckets.not_verifiable.length,\n\t\t\ttotalIssues: result.issues.length,\n\t\t\tlastRunIso: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\telapsedMs,\n\t\t\tmessage: null\n\t\t};\n\t\tcachedSummary = {\n\t\t\trootDir,\n\t\t\texpiresAt: Date.now() + SUMMARY_CACHE_MS,\n\t\t\tsummary\n\t\t};\n\t\treturn summary;\n\t} catch (err) {\n\t\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\t\tconst message = err instanceof Error ? err.message : String(err);\n\t\tconst summary = {\n\t\t\tok: false,\n\t\t\tstatus: \"unknown\",\n\t\t\tlabel: statusLabel(\"unknown\"),\n\t\t\terrorCount: 0,\n\t\t\twarningCount: 0,\n\t\t\tinfoCount: 0,\n\t\t\tnotVerifiableCount: 0,\n\t\t\ttotalIssues: 0,\n\t\t\tlastRunIso: null,\n\t\t\telapsedMs,\n\t\t\tmessage\n\t\t};\n\t\tcachedSummary = {\n\t\t\trootDir,\n\t\t\texpiresAt: Date.now() + SUMMARY_CACHE_MS,\n\t\t\tsummary\n\t\t};\n\t\treturn summary;\n\t}\n}\n//#endregion\nexport { loadDoctorSummary as n, bucketDoctorIssues as t };\n"],"names":[],"mappings":";;;AAEA;AACA,IAAI,gBAAgB,GAAG,GAAG;AAC1B,IAAI,aAAa,GAAG,IAAI;AACxB,SAAS,oBAAoB,CAAC,KAAK,EAAE;AACrC,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACvF;AACA,SAAS,kBAAkB,CAAC,MAAM,EAAE;AACpC,CAAC,MAAM,OAAO,GAAG;AACjB,EAAE,KAAK,EAAE,EAAE;AACX,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,IAAI,EAAE,E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AAG,SAAS;AACZ,GAAG;AACH,GAAG;AACH,EAAE,aAAa,GAAG;AAClB,GAAG,OAAO;AACV,GAAG,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,gBAAgB;AAC3C,GAAG;AACH,GAAG;AACH,EAAE,OAAO,OAAO;AAChB,CAAC;AACD;;;;"}
1
+ {"version":3,"file":"doctorSummary-FyoWuR3R.js","sources":["../../../.svelte-kit/adapter-node/chunks/doctorSummary.js"],"sourcesContent":["import { r as resolveProjectRoot } from \"./projectContext.js\";\nimport { t as runDoctor } from \"./src3.js\";\n//#region src/lib/server/doctorSummary.ts\nvar SUMMARY_CACHE_MS = 5e3;\nvar cachedSummary = null;\nfunction isNotVerifiableIssue(issue) {\n\treturn /not verifiable/i.test(issue.message) || /not verifiable/i.test(issue.guidance);\n}\nfunction bucketDoctorIssues(issues) {\n\tconst buckets = {\n\t\terror: [],\n\t\twarning: [],\n\t\tinfo: [],\n\t\tnot_verifiable: []\n\t};\n\tfor (const issue of issues) {\n\t\tif (isNotVerifiableIssue(issue)) {\n\t\t\tbuckets.not_verifiable.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tbuckets[issue.severity].push(issue);\n\t}\n\treturn buckets;\n}\nfunction statusLabel(status) {\n\tif (status === \"fail\") return \"failing\";\n\tif (status === \"warn\") return \"warnings\";\n\tif (status === \"pass\") return \"passing\";\n\treturn \"unavailable\";\n}\nasync function loadDoctorSummary(rootDir = resolveProjectRoot()) {\n\tconst now = Date.now();\n\tif (cachedSummary && cachedSummary.rootDir === rootDir && cachedSummary.expiresAt > now) return cachedSummary.summary;\n\tconst startedAt = process.hrtime.bigint();\n\ttry {\n\t\tconst result = await runDoctor({ rootDir });\n\t\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\t\tconst buckets = bucketDoctorIssues(result.issues);\n\t\tconst summary = {\n\t\t\tok: true,\n\t\t\tstatus: result.status,\n\t\t\tlabel: statusLabel(result.status),\n\t\t\terrorCount: buckets.error.length,\n\t\t\twarningCount: buckets.warning.length,\n\t\t\tinfoCount: buckets.info.length,\n\t\t\tnotVerifiableCount: buckets.not_verifiable.length,\n\t\t\ttotalIssues: result.issues.length,\n\t\t\tlastRunIso: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\telapsedMs,\n\t\t\tmessage: null\n\t\t};\n\t\tcachedSummary = {\n\t\t\trootDir,\n\t\t\texpiresAt: Date.now() + SUMMARY_CACHE_MS,\n\t\t\tsummary\n\t\t};\n\t\treturn summary;\n\t} catch (err) {\n\t\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\t\tconst message = err instanceof Error ? err.message : String(err);\n\t\tconst summary = {\n\t\t\tok: false,\n\t\t\tstatus: \"unknown\",\n\t\t\tlabel: statusLabel(\"unknown\"),\n\t\t\terrorCount: 0,\n\t\t\twarningCount: 0,\n\t\t\tinfoCount: 0,\n\t\t\tnotVerifiableCount: 0,\n\t\t\ttotalIssues: 0,\n\t\t\tlastRunIso: null,\n\t\t\telapsedMs,\n\t\t\tmessage\n\t\t};\n\t\tcachedSummary = {\n\t\t\trootDir,\n\t\t\texpiresAt: Date.now() + SUMMARY_CACHE_MS,\n\t\t\tsummary\n\t\t};\n\t\treturn summary;\n\t}\n}\n//#endregion\nexport { loadDoctorSummary as n, bucketDoctorIssues as t };\n"],"names":[],"mappings":";;;AAEA;AACA,IAAI,gBAAgB,GAAG,GAAG;AAC1B,IAAI,aAAa,GAAG,IAAI;AACxB,SAAS,oBAAoB,CAAC,KAAK,EAAE;AACrC,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACvF;AACA,SAAS,kBAAkB,CAAC,MAAM,EAAE;AACpC,CAAC,MAAM,OAAO,GAAG;AACjB,EAAE,KAAK,EAAE,EAAE;AACX,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,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IAAI;AACnB,GAAG,SAAS;AACZ,GAAG;AACH,GAAG;AACH,EAAE,aAAa,GAAG;AAClB,GAAG,OAAO;AACV,GAAG,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,gBAAgB;AAC3C,GAAG;AACH,GAAG;AACH,EAAE,OAAO,OAAO;AAChB,CAAC;AACD;;;;"}
@@ -1,7 +1,7 @@
1
- import { d as escape_html, i as getContext } from './dev-CrqJ3ZR3.js';
2
- import 'node:module';
3
- import './client-CBew73li.js';
4
- import './internal-WBaPpipk.js';
1
+ import { e as escape_html, g as getContext } from './dev-BdIdjvaY.js';
2
+ import './client-h6Frgnzt.js';
3
+ import './internal-Dz8-ksla.js';
4
+ import './index-DBqjc0Yf.js';
5
5
 
6
6
  //#endregion
7
7
  //#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/server.js
@@ -63,4 +63,4 @@ function Error$1($$renderer, $$props) {
63
63
  }
64
64
 
65
65
  export { Error$1 as default };
66
- //# sourceMappingURL=error.svelte-C78Jl1J5.js.map
66
+ //# sourceMappingURL=error.svelte-DYzh-S9t.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.svelte-C78Jl1J5.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { W as escape_html, rt as getContext } from \"../../chunks/dev.js\";\nimport { n as navigating$1, t as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
1
+ {"version":3,"file":"error.svelte-DYzh-S9t.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { W as escape_html, rt as getContext } from \"../../chunks/dev.js\";\nimport { n as navigating$1, t as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
@@ -0,0 +1,81 @@
1
+ import { e as error } from './index-CLnuRv4X.js';
2
+ import './index-DBqjc0Yf.js';
3
+
4
+ //#region src/hooks.server.ts
5
+ var LOOPBACK_HOSTS = new Set([
6
+ "127.0.0.1",
7
+ "localhost",
8
+ "::1"
9
+ ]);
10
+ var STATE_CHANGING_METHODS = new Set([
11
+ "POST",
12
+ "PUT",
13
+ "PATCH",
14
+ "DELETE"
15
+ ]);
16
+ var handle = async ({ event, resolve }) => {
17
+ if (isMarketingBuild()) return resolve(event);
18
+ const host = event.request.headers.get("host");
19
+ const origin = event.request.headers.get("origin");
20
+ const referer = event.request.headers.get("referer");
21
+ const source = origin ?? referer;
22
+ const method = event.request.method.toUpperCase();
23
+ if (STATE_CHANGING_METHODS.has(method)) {
24
+ if (!isLocalSameOrigin(host, source, false)) error(403, "Agent Profile UI only accepts localhost requests.");
25
+ } else if (!isLocalSameOrigin(host, source, true)) error(403, "Agent Profile UI only accepts localhost requests.");
26
+ return resolve(event);
27
+ };
28
+ function isMarketingBuild() {
29
+ return process.env.AGENT_PROFILE_MARKETING_BUILD === "1";
30
+ }
31
+ function isLocalSameOrigin(hostHeader, sourceHeader, allowMissingSource) {
32
+ const host = parseHostHeader(hostHeader);
33
+ if (host === null) return false;
34
+ if (!sourceHeader) return allowMissingSource;
35
+ try {
36
+ const source = new URL(sourceHeader);
37
+ const sourceHost = normalizeHostname(source.hostname);
38
+ return source.protocol === "http:" && sourceHost === host.hostname && normalizePort(source.port, source.protocol) === host.port;
39
+ } catch {
40
+ return false;
41
+ }
42
+ }
43
+ function parseHostHeader(value) {
44
+ if (!value) return null;
45
+ let hostname;
46
+ let port = "";
47
+ if (value.startsWith("[")) {
48
+ const end = value.indexOf("]");
49
+ if (end === -1) return null;
50
+ hostname = value.slice(1, end);
51
+ const rest = value.slice(end + 1);
52
+ if (rest.length > 0) {
53
+ if (!rest.startsWith(":")) return null;
54
+ port = rest.slice(1);
55
+ }
56
+ } else {
57
+ const parts = value.split(":");
58
+ if (parts.length > 2) return null;
59
+ hostname = parts[0];
60
+ port = parts[1] ?? "";
61
+ }
62
+ hostname = normalizeHostname(hostname);
63
+ if (!LOOPBACK_HOSTS.has(hostname)) return null;
64
+ if (port !== "" && !/^\d+$/u.test(port)) return null;
65
+ return {
66
+ hostname,
67
+ port
68
+ };
69
+ }
70
+ function normalizeHostname(hostname) {
71
+ return hostname.toLowerCase();
72
+ }
73
+ function normalizePort(port, protocol) {
74
+ if (port !== "") return port;
75
+ if (protocol === "http:") return "80";
76
+ if (protocol === "https:") return "443";
77
+ return "";
78
+ }
79
+
80
+ export { handle };
81
+ //# sourceMappingURL=hooks.server-BKavEpqC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.server-BKavEpqC.js","sources":["../../../.svelte-kit/adapter-node/entries/hooks.server.js"],"sourcesContent":["import { error } from \"@sveltejs/kit\";\n//#region src/hooks.server.ts\nvar LOOPBACK_HOSTS = new Set([\n\t\"127.0.0.1\",\n\t\"localhost\",\n\t\"::1\"\n]);\nvar STATE_CHANGING_METHODS = new Set([\n\t\"POST\",\n\t\"PUT\",\n\t\"PATCH\",\n\t\"DELETE\"\n]);\nvar handle = async ({ event, resolve }) => {\n\tif (isMarketingBuild()) return resolve(event);\n\tconst host = event.request.headers.get(\"host\");\n\tconst origin = event.request.headers.get(\"origin\");\n\tconst referer = event.request.headers.get(\"referer\");\n\tconst source = origin ?? referer;\n\tconst method = event.request.method.toUpperCase();\n\tif (STATE_CHANGING_METHODS.has(method)) {\n\t\tif (!isLocalSameOrigin(host, source, false)) error(403, \"Agent Profile UI only accepts localhost requests.\");\n\t} else if (!isLocalSameOrigin(host, source, true)) error(403, \"Agent Profile UI only accepts localhost requests.\");\n\treturn resolve(event);\n};\nfunction isMarketingBuild() {\n\treturn process.env.AGENT_PROFILE_MARKETING_BUILD === \"1\";\n}\nfunction isLocalSameOrigin(hostHeader, sourceHeader, allowMissingSource) {\n\tconst host = parseHostHeader(hostHeader);\n\tif (host === null) return false;\n\tif (!sourceHeader) return allowMissingSource;\n\ttry {\n\t\tconst source = new URL(sourceHeader);\n\t\tconst sourceHost = normalizeHostname(source.hostname);\n\t\treturn source.protocol === \"http:\" && sourceHost === host.hostname && normalizePort(source.port, source.protocol) === host.port;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction parseHostHeader(value) {\n\tif (!value) return null;\n\tlet hostname;\n\tlet port = \"\";\n\tif (value.startsWith(\"[\")) {\n\t\tconst end = value.indexOf(\"]\");\n\t\tif (end === -1) return null;\n\t\thostname = value.slice(1, end);\n\t\tconst rest = value.slice(end + 1);\n\t\tif (rest.length > 0) {\n\t\t\tif (!rest.startsWith(\":\")) return null;\n\t\t\tport = rest.slice(1);\n\t\t}\n\t} else {\n\t\tconst parts = value.split(\":\");\n\t\tif (parts.length > 2) return null;\n\t\thostname = parts[0];\n\t\tport = parts[1] ?? \"\";\n\t}\n\thostname = normalizeHostname(hostname);\n\tif (!LOOPBACK_HOSTS.has(hostname)) return null;\n\tif (port !== \"\" && !/^\\d+$/u.test(port)) return null;\n\treturn {\n\t\thostname,\n\t\tport\n\t};\n}\nfunction normalizeHostname(hostname) {\n\treturn hostname.toLowerCase();\n}\nfunction normalizePort(port, protocol) {\n\tif (port !== \"\") return port;\n\tif (protocol === \"http:\") return \"80\";\n\tif (protocol === \"https:\") return \"443\";\n\treturn \"\";\n}\n//#endregion\nexport { handle };\n"],"names":[],"mappings":";;;AACA;AACA,IAAI,cAAc,GAAG,IAAI,GAAG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AAC,CAAC;AACvB,EAAE;AACF,CAAC,CAAC,MAAM;AACR,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AAChC,EAAE,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,OAAO,IAAI;AACnC,EAAE,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC;AACrB,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;AACvB,CAAC;AACD,CAAC,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC;AACvC,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,OAAO,IAAI;AAC/C,CAAC,IAAI,IAAI,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,IAAI;AACrD,CAAC,OAAO;AACR,EAAE,QAAQ;AACV,EAAE;AACF,EAAE;AACF;AACA,SAAS,iBAAiB,CAAC,QAAQ,EAAE;AACrC,CAAC,OAAO,QAAQ,CAAC,WAAW,EAAE;AAC9B;AACA,SAAS,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE;AACvC,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,OAAO,IAAI;AAC7B,CAAC,IAAI,QAAQ,KAAK,OAAO,EAAE,OAAO,IAAI;AACtC,CAAC,IAAI,QAAQ,KAAK,QAAQ,EAAE,OAAO,KAAK;AACxC,CAAC,OAAO,EAAE;AACV;;;;"}
@@ -0,0 +1,134 @@
1
+ import { H as HttpError, R as Redirect } from './index-DBqjc0Yf.js';
2
+
3
+ const text_encoder = new TextEncoder();
4
+
5
+ /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
6
+
7
+
8
+ // TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)
9
+ /**
10
+ * @template {number} TNumber
11
+ * @template {any[]} [TArray=[]]
12
+ * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan
13
+ */
14
+
15
+ /**
16
+ * @template {number} TStart
17
+ * @template {number} TEnd
18
+ * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange
19
+ */
20
+
21
+ // Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits
22
+ // (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780
23
+
24
+ // we have to repeat the JSDoc because the display for function overloads is broken
25
+ // see https://github.com/microsoft/TypeScript/issues/55056
26
+
27
+ /**
28
+ * Throws an error with a HTTP status code and an optional message.
29
+ * When called during request handling, this will cause SvelteKit to
30
+ * return an error response without invoking `handleError`.
31
+ * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
32
+ * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
33
+ * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
34
+ * @overload
35
+ * @param {number} status
36
+ * @param {App.Error} body
37
+ * @return {never}
38
+ * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
39
+ * @throws {Error} If the provided status is invalid (not between 400 and 599).
40
+ */
41
+ /**
42
+ * Throws an error with a HTTP status code and an optional message.
43
+ * When called during request handling, this will cause SvelteKit to
44
+ * return an error response without invoking `handleError`.
45
+ * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
46
+ * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
47
+ * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
48
+ * @overload
49
+ * @param {number} status
50
+ * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]
51
+ * @return {never}
52
+ * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
53
+ * @throws {Error} If the provided status is invalid (not between 400 and 599).
54
+ */
55
+ /**
56
+ * Throws an error with a HTTP status code and an optional message.
57
+ * When called during request handling, this will cause SvelteKit to
58
+ * return an error response without invoking `handleError`.
59
+ * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.
60
+ * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.
61
+ * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.
62
+ * @return {never}
63
+ * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.
64
+ * @throws {Error} If the provided status is invalid (not between 400 and 599).
65
+ */
66
+ function error(status, body) {
67
+ if ((isNaN(status) || status < 400 || status > 599)) {
68
+ throw new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);
69
+ }
70
+
71
+ throw new HttpError(status, body);
72
+ }
73
+
74
+ /**
75
+ * Checks whether this is a redirect thrown by {@link redirect}.
76
+ * @param {unknown} e The object to check.
77
+ * @return {e is Redirect}
78
+ */
79
+ function isRedirect(e) {
80
+ return e instanceof Redirect;
81
+ }
82
+
83
+ /**
84
+ * Create a JSON `Response` object from the supplied data.
85
+ * @param {any} data The value that will be serialized as JSON.
86
+ * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.
87
+ */
88
+ function json(data, init) {
89
+ // TODO deprecate this in favour of `Response.json` when it's
90
+ // more widely supported
91
+ const body = JSON.stringify(data);
92
+
93
+ // we can't just do `text(JSON.stringify(data), init)` because
94
+ // it will set a default `content-type` header. duplicated code
95
+ // means less duplicated work
96
+ const headers = new Headers(init?.headers);
97
+ if (!headers.has('content-length')) {
98
+ headers.set('content-length', text_encoder.encode(body).byteLength.toString());
99
+ }
100
+
101
+ if (!headers.has('content-type')) {
102
+ headers.set('content-type', 'application/json');
103
+ }
104
+
105
+ return new Response(body, {
106
+ ...init,
107
+ headers
108
+ });
109
+ }
110
+
111
+ /**
112
+ * Create a `Response` object from the supplied body.
113
+ * @param {string} body The value that will be used as-is.
114
+ * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.
115
+ */
116
+ function text(body, init) {
117
+ const headers = new Headers(init?.headers);
118
+ if (!headers.has('content-length')) {
119
+ const encoded = text_encoder.encode(body);
120
+ headers.set('content-length', encoded.byteLength.toString());
121
+ return new Response(encoded, {
122
+ ...init,
123
+ headers
124
+ });
125
+ }
126
+
127
+ return new Response(body, {
128
+ ...init,
129
+ headers
130
+ });
131
+ }
132
+
133
+ export { error as e, isRedirect as i, json as j, text as t };
134
+ //# sourceMappingURL=index-CLnuRv4X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CLnuRv4X.js","sources":["../../../../../node_modules/@sveltejs/kit/src/runtime/utils.js","../../../../../node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid or the location cannot be used as a header value.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'a://a');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"names":[],"mappings":";;AAEO,MAAM,YAAY,GAAG,IAAI,WAAW,EAAE;;ACF7C;;;AAgBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;AACpC,CAAC,IAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE;AAC3E,EAAE,MAAM,IAAI,KAAK,CAAC,CAAC,sDAAsD,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;AAC/F,CAAC;;AAED,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;AAClC;;AA2CA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,CAAC,EAAE;AAC9B,CAAC,OAAO,CAAC,YAAY,QAAQ;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AACjC;AACA;AACA,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAA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*/
2
+
3
+ class HttpError {
4
+ /**
5
+ * @param {number} status
6
+ * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body
7
+ */
8
+ constructor(status, body) {
9
+ this.status = status;
10
+ if (typeof body === 'string') {
11
+ this.body = { message: body };
12
+ } else if (body) {
13
+ this.body = body;
14
+ } else {
15
+ this.body = { message: `Error: ${status}` };
16
+ }
17
+ }
18
+
19
+ toString() {
20
+ return JSON.stringify(this.body);
21
+ }
22
+ }
23
+
24
+ class Redirect {
25
+ /**
26
+ * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status
27
+ * @param {string} location
28
+ */
29
+ constructor(status, location) {
30
+ try {
31
+ new Headers({ location });
32
+ } catch {
33
+ throw new Error(
34
+ `Invalid redirect location ${JSON.stringify(location)}: ` +
35
+ 'this string contains characters that cannot be used in HTTP headers'
36
+ );
37
+ }
38
+
39
+ this.status = status;
40
+ this.location = location;
41
+ }
42
+ }
43
+
44
+ /**
45
+ * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.
46
+ * `SvelteKitError` goes through `handleError`.
47
+ * @extends Error
48
+ */
49
+ class SvelteKitError extends Error {
50
+ /**
51
+ * @param {number} status
52
+ * @param {string} text
53
+ * @param {string} message
54
+ */
55
+ constructor(status, text, message) {
56
+ super(message);
57
+ this.status = status;
58
+ this.text = text;
59
+ }
60
+ }
61
+
62
+ /**
63
+ * @template [T=undefined]
64
+ */
65
+ class ActionFailure {
66
+ /**
67
+ * @param {number} status
68
+ * @param {T} data
69
+ */
70
+ constructor(status, data) {
71
+ this.status = status;
72
+ this.data = data;
73
+ }
74
+ }
75
+
76
+ export { ActionFailure as A, HttpError as H, Redirect as R, SvelteKitError as S };
77
+ //# sourceMappingURL=index-DBqjc0Yf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DBqjc0Yf.js","sources":["../../../../../node_modules/@sveltejs/kit/src/exports/internal/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\ttry {\n\t\t\tnew Headers({ location });\n\t\t} catch {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid redirect location ${JSON.stringify(location)}: ` +\n\t\t\t\t\t'this string contains characters that cannot be used in HTTP headers'\n\t\t\t);\n\t\t}\n\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.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AAK,CAAC,OAAO,CAAC;AAChB,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM;AACtB,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI;AAClB,CAAC;AACD;;AAEA;AACA;AACA;AACO,MAAM,aAAa,CAAC;AAC3B;AACA;AACA;AACA;AACA,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE;AAC3B,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM;AACtB,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI;AAClB,CAAC;AACD;;;;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
- import { D as DevalueError, m as is_primitive, o as get_type, p as is_plain_object, q as enumerable_symbols, t as stringify_key, v as stringify_string, x as valid_array_indices, y as run$1, z as setContext, n as noop$1, A as hasContext, i as getContext, B as getAllContexts, C as getAbortSignal, E as createContext, F as ssr_context, G as lifecycle_function_unavailable, H as experimental_async_required, I as get_render_context, u as uneval, J as hydratable_serialization_failed, K as render, L as set, M as LEGACY_PROPS, N as get, O as flushSync, P as define_property, Q as mutable_source, R as init_operations, S as get_first_child, T as get_next_sibling, U as HYDRATION_ERROR, V as set_hydrating, W as set_hydrate_node, X as hydration_failed, Y as clear_text_content, Z as component_root, _ as hydrate_node, $ as create_text, a0 as boundary, a1 as array_from, a2 as is_passive_event, a3 as set_active_reaction, a4 as set_active_effect, a5 as active_reaction, a6 as active_effect, f as derived, a7 as hydrating, a8 as push, a9 as component_context, aa as hydration_mismatch, ab as pop } from './dev-CrqJ3ZR3.js';
2
- import 'node:module';
1
+ import { U as UNDEFINED, N as NAN, P as POSITIVE_INFINITY, o as NEGATIVE_INFINITY, p as NEGATIVE_ZERO, S as SPARSE, q as is_valid_array_len, M as MAX_ARRAY_INDEX, t as is_valid_array_index, H as HOLE, D as DevalueError, v as is_primitive, x as get_type, y as is_plain_object, z as enumerable_symbols, A as stringify_key, B as stringify_string, C as valid_array_indices, E as run$1, F as setContext, n as noop$1, G as hasContext, g as getContext, I as getAllContexts, J as getAbortSignal, K as createContext, L as ssr_context, O as lifecycle_function_unavailable, Q as experimental_async_required, R as get_render_context, m as uneval, T as hydratable_serialization_failed, V as render, W as set, X as LEGACY_PROPS, Y as get, Z as flushSync, _ as define_property, $ as mutable_source, a0 as init_operations, a1 as get_first_child, a2 as get_next_sibling, a3 as HYDRATION_ERROR, a4 as set_hydrating, a5 as set_hydrate_node, a6 as hydration_failed, a7 as clear_text_content, a8 as component_root, a9 as hydrate_node, aa as create_text, ab as boundary, ac as array_from, ad as is_passive_event, ae as set_active_reaction, af as set_active_effect, ag as active_reaction, ah as active_effect, f as derived, ai as hydrating, aj as push, ak as component_context, al as hydration_mismatch, am as pop } from './dev-BdIdjvaY.js';
2
+ import { H as HttpError, S as SvelteKitError } from './index-DBqjc0Yf.js';
3
3
 
4
4
  /* Baseline 2025 runtimes */
5
5
 
@@ -62,14 +62,6 @@ const buffer = typeof process === 'object' && process.versions?.node !== undefin
62
62
  const encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;
63
63
  const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
64
64
 
65
- const UNDEFINED = -1;
66
- const HOLE = -2;
67
- const NAN = -3;
68
- const POSITIVE_INFINITY = -4;
69
- const NEGATIVE_INFINITY = -5;
70
- const NEGATIVE_ZERO = -6;
71
- const SPARSE = -7;
72
-
73
65
  /**
74
66
  * Revive a value serialized with `devalue.stringify`
75
67
  * @param {string} serialized
@@ -280,22 +272,35 @@ function unflatten(parsed, revivers) {
280
272
  // Sparse array encoding: [SPARSE, length, idx, val, idx, val, ...]
281
273
  const len = value[1];
282
274
 
283
- if (!Number.isInteger(len) || len < 0) {
275
+ if (!is_valid_array_len(len)) {
284
276
  throw new Error('Invalid input');
285
277
  }
286
278
 
287
- const array = new Array(len);
279
+ /** @type {any[]} */
280
+ const array = [];
288
281
  hydrated[index] = array;
289
282
 
283
+ // Setting `array.length = len` (or equivalently calling `new Array(len)`)
284
+ // on an untrusted `len` is a DoS vector: V8 eagerly allocates a
285
+ // contiguous backing store for array lengths below ~10^8, so a
286
+ // small payload with a huge declared length can force arbitrary
287
+ // memory allocation. Touching the largest-possible index first
288
+ // forces V8 into dictionary-elements mode, where `length` is
289
+ // just a number and no contiguous allocation occurs.
290
+ array[MAX_ARRAY_INDEX] = undefined;
291
+ delete array[MAX_ARRAY_INDEX];
292
+
290
293
  for (let i = 2; i < value.length; i += 2) {
291
294
  const idx = value[i];
292
295
 
293
- if (!Number.isInteger(idx) || idx < 0 || idx >= len) {
296
+ if (!is_valid_array_index(idx) || idx >= len) {
294
297
  throw new Error('Invalid input');
295
298
  }
296
299
 
297
300
  array[idx] = hydrate(value[i + 1]);
298
301
  }
302
+
303
+ array.length = len;
299
304
  } else {
300
305
  const array = new Array(value.length);
301
306
  hydrated[index] = array;
@@ -743,7 +748,7 @@ function encode(key, value, unresolved) {
743
748
  if (is_promise(value)) {
744
749
  const placeholder = `"${uid++}"`;
745
750
  const p = value.then((v) => {
746
- entry.serialized = entry.serialized.replace(placeholder, `r(${uneval(v)})`);
751
+ entry.serialized = entry.serialized.replace(placeholder, () => `r(${uneval(v)})`);
747
752
  }).catch((devalue_error) => hydratable_serialization_failed(key, serialization_stack(entry.stack, devalue_error?.stack)));
748
753
  p.catch(() => {}).finally(() => unresolved?.delete(p));
749
754
  (entry.promises ??= []).push(p);
@@ -838,81 +843,6 @@ function fork() {
838
843
  async function tick() {}
839
844
  async function settled() {}
840
845
 
841
- /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
842
-
843
- class HttpError {
844
- /**
845
- * @param {number} status
846
- * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body
847
- */
848
- constructor(status, body) {
849
- this.status = status;
850
- if (typeof body === 'string') {
851
- this.body = { message: body };
852
- } else if (body) {
853
- this.body = body;
854
- } else {
855
- this.body = { message: `Error: ${status}` };
856
- }
857
- }
858
-
859
- toString() {
860
- return JSON.stringify(this.body);
861
- }
862
- }
863
-
864
- class Redirect {
865
- /**
866
- * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status
867
- * @param {string} location
868
- */
869
- constructor(status, location) {
870
- try {
871
- new Headers({ location });
872
- } catch {
873
- throw new Error(
874
- `Invalid redirect location ${JSON.stringify(location)}: ` +
875
- 'this string contains characters that cannot be used in HTTP headers'
876
- );
877
- }
878
-
879
- this.status = status;
880
- this.location = location;
881
- }
882
- }
883
-
884
- /**
885
- * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.
886
- * `SvelteKitError` goes through `handleError`.
887
- * @extends Error
888
- */
889
- class SvelteKitError extends Error {
890
- /**
891
- * @param {number} status
892
- * @param {string} text
893
- * @param {string} message
894
- */
895
- constructor(status, text, message) {
896
- super(message);
897
- this.status = status;
898
- this.text = text;
899
- }
900
- }
901
-
902
- /**
903
- * @template [T=undefined]
904
- */
905
- class ActionFailure {
906
- /**
907
- * @param {number} status
908
- * @param {T} data
909
- */
910
- constructor(status, data) {
911
- this.status = status;
912
- this.data = data;
913
- }
914
- }
915
-
916
846
  //#region ../../node_modules/@sveltejs/kit/src/utils/functions.js
917
847
  function noop() {}
918
848
  /**
@@ -2042,7 +1972,7 @@ var options = {
2042
1972
  app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"dark\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"referrer\" content=\"no-referrer\" />\n <meta name=\"color-scheme\" content=\"dark\" />\n <link rel=\"icon\" href=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%234b8bf5'/%3E%3Crect x='9' y='9' width='14' height='14' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E\" />\n <title>agent-profile</title>\n " + head + "\n </head>\n <body>\n <div id=\"app\">" + body + "</div>\n </body>\n</html>\n",
2043
1973
  error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <title>" + message + "</title>\n\n <style>\n body {\n --bg: white;\n --fg: #222;\n --divider: #ccc;\n background: var(--bg);\n color: var(--fg);\n font-family:\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n 'Segoe UI',\n Roboto,\n Oxygen,\n Ubuntu,\n Cantarell,\n 'Open Sans',\n 'Helvetica Neue',\n sans-serif;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100vh;\n margin: 0;\n }\n\n .error {\n display: flex;\n align-items: center;\n max-width: 32rem;\n margin: 0 1rem;\n }\n\n .status {\n font-weight: 200;\n font-size: 3rem;\n line-height: 1;\n position: relative;\n top: -0.05rem;\n }\n\n .message {\n border-left: 1px solid var(--divider);\n padding: 0 0 0 1rem;\n margin: 0 0 0 1rem;\n min-height: 2.5rem;\n display: flex;\n align-items: center;\n }\n\n .message h1 {\n font-weight: 400;\n font-size: 1em;\n margin: 0;\n }\n\n @media (prefers-color-scheme: dark) {\n body {\n --bg: #222;\n --fg: #ddd;\n --divider: #666;\n }\n }\n </style>\n </head>\n <body>\n <div class=\"error\">\n <span class=\"status\">" + status + "</span>\n <div class=\"message\">\n <h1>" + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
2044
1974
  },
2045
- version_hash: "1kkewih"
1975
+ version_hash: "vo4ovz"
2046
1976
  };
2047
1977
  async function get_hooks() {
2048
1978
  let handle;
@@ -2050,7 +1980,7 @@ async function get_hooks() {
2050
1980
  let handleError;
2051
1981
  let handleValidationError;
2052
1982
  let init;
2053
- ({handle, handleFetch, handleError, handleValidationError, init} = await import('./hooks.server-BU12K8IL.js'));
1983
+ ({handle, handleFetch, handleError, handleValidationError, init} = await import('./hooks.server-BKavEpqC.js'));
2054
1984
  let reroute;
2055
1985
  let transport;
2056
1986
  return {
@@ -2064,5 +1994,5 @@ async function get_hooks() {
2064
1994
  };
2065
1995
  }
2066
1996
 
2067
- export { index_server_exports as $, noop_span as A, assets as B, app_dir as C, create_remote_key as D, hash as E, text_encoder as F, compact as G, HttpError as H, INVALIDATED_PARAM as I, once as J, normalize_error as K, resolve as L, parse_remote_arg as M, stringify as N, make_trackable as O, stringify$1 as P, ActionFailure as Q, Redirect as R, SvelteKitError as S, TRAILING_SLASH_PARAM as T, read_implementation as U, split_remote_key as V, get_relative_path as W, base64_encode as X, override as Y, reset as Z, set_read_implementation as _, get_message as a, set_public_env as b, coalesce_to_error as c, get_hooks as d, has_data_suffix as e, base as f, get_status as g, has_resolution_suffix as h, strip_resolution_suffix as i, strip_data_suffix as j, decode_pathname as k, add_data_suffix as l, add_resolution_suffix as m, noop as n, options as o, parse as p, find_route as q, normalize_path as r, set_private_env as s, disable_search as t, public_env as u, validate_layout_server_exports as v, with_request_store as w, validate_layout_exports as x, validate_page_server_exports as y, validate_page_exports as z };
2068
- //# sourceMappingURL=internal-WBaPpipk.js.map
1997
+ export { validate_page_exports as A, noop_span as B, assets as C, app_dir as D, create_remote_key as E, hash as F, text_encoder as G, compact as H, INVALIDATED_PARAM as I, once as J, normalize_error as K, resolve as L, parse_remote_arg as M, stringify as N, make_trackable as O, stringify$1 as P, read_implementation as Q, split_remote_key as R, get_relative_path as S, TRAILING_SLASH_PARAM as T, base64_encode as U, override as V, reset as W, set_read_implementation as X, get_message as a, set_public_env as b, coalesce_to_error as c, get_hooks as d, has_data_suffix as e, base as f, get_status as g, has_resolution_suffix as h, index_server_exports as i, strip_resolution_suffix as j, strip_data_suffix as k, decode_pathname as l, add_data_suffix as m, noop as n, options as o, parse as p, add_resolution_suffix as q, find_route as r, set_private_env as s, normalize_path as t, disable_search as u, public_env as v, with_request_store as w, validate_layout_server_exports as x, validate_layout_exports as y, validate_page_server_exports as z };
1998
+ //# sourceMappingURL=internal-Dz8-ksla.js.map