@recombine-ai/bosun 0.18.0 → 0.20.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 (1358) hide show
  1. package/build/_app/immutable/assets/0.CDmx-FLf.css +1 -0
  2. package/build/_app/immutable/assets/0.CDmx-FLf.css.br +0 -0
  3. package/build/_app/immutable/assets/0.CDmx-FLf.css.gz +0 -0
  4. package/build/_app/immutable/assets/17.BR6pkKJY.css +1 -0
  5. package/build/_app/immutable/assets/17.BR6pkKJY.css.br +0 -0
  6. package/build/_app/immutable/assets/17.BR6pkKJY.css.gz +0 -0
  7. package/build/_app/immutable/assets/2.C-ckNQUz.css +1 -0
  8. package/build/_app/immutable/assets/2.C-ckNQUz.css.br +0 -0
  9. package/build/_app/immutable/assets/2.C-ckNQUz.css.gz +0 -0
  10. package/build/_app/immutable/assets/3.Dd6QwpRZ.css +1 -0
  11. package/build/_app/immutable/assets/3.Dd6QwpRZ.css.br +0 -0
  12. package/build/_app/immutable/assets/3.Dd6QwpRZ.css.gz +0 -0
  13. package/build/_app/immutable/assets/5.CAILVfho.css +1 -0
  14. package/build/_app/immutable/assets/5.CAILVfho.css.br +0 -0
  15. package/build/_app/immutable/assets/5.CAILVfho.css.gz +0 -0
  16. package/build/_app/immutable/assets/8.y1S06Rrw.css +1 -0
  17. package/build/_app/immutable/assets/8.y1S06Rrw.css.br +0 -0
  18. package/build/_app/immutable/assets/8.y1S06Rrw.css.gz +0 -0
  19. package/build/_app/immutable/assets/9.bqwywlK9.css +1 -0
  20. package/build/_app/immutable/assets/9.bqwywlK9.css.br +0 -0
  21. package/build/_app/immutable/assets/9.bqwywlK9.css.gz +0 -0
  22. package/build/_app/immutable/assets/AgentSidebar.gt4PImXZ.css +1 -0
  23. package/build/_app/immutable/assets/AgentSidebar.gt4PImXZ.css.br +0 -0
  24. package/build/_app/immutable/assets/AgentSidebar.gt4PImXZ.css.gz +0 -0
  25. package/build/_app/immutable/assets/ChatStepTrace.BhjSq1f6.css +1 -0
  26. package/build/_app/immutable/assets/ChatStepTrace.BhjSq1f6.css.br +0 -0
  27. package/build/_app/immutable/assets/ChatStepTrace.BhjSq1f6.css.gz +0 -0
  28. package/build/_app/immutable/assets/Input.BYwaxgM_.css +1 -0
  29. package/build/_app/immutable/assets/Input.BYwaxgM_.css.br +5 -0
  30. package/build/_app/immutable/assets/Input.BYwaxgM_.css.gz +0 -0
  31. package/build/_app/immutable/assets/Modal.Ba-kUPX7.css +1 -0
  32. package/build/_app/immutable/assets/Modal.Ba-kUPX7.css.br +0 -0
  33. package/build/_app/immutable/assets/Modal.Ba-kUPX7.css.gz +0 -0
  34. package/build/_app/immutable/assets/Popper.BKFfO-Eu.css +1 -0
  35. package/build/_app/immutable/assets/Popper.BKFfO-Eu.css.br +0 -0
  36. package/build/_app/immutable/assets/Popper.BKFfO-Eu.css.gz +0 -0
  37. package/build/_app/immutable/assets/Tab.DEEG0ES_.css +1 -0
  38. package/build/_app/immutable/assets/Tab.DEEG0ES_.css.br +0 -0
  39. package/build/_app/immutable/assets/Tab.DEEG0ES_.css.gz +0 -0
  40. package/build/_app/immutable/assets/editor.BoJhDcRF.css +1 -0
  41. package/build/_app/immutable/assets/editor.BoJhDcRF.css.br +0 -0
  42. package/build/_app/immutable/assets/editor.BoJhDcRF.css.gz +0 -0
  43. package/build/_app/immutable/assets/editor.chSTM-fo.css +1 -0
  44. package/build/_app/immutable/assets/editor.chSTM-fo.css.br +0 -0
  45. package/build/_app/immutable/assets/editor.chSTM-fo.css.gz +0 -0
  46. package/build/_app/immutable/chunks/08VXUWAP.js +1 -0
  47. package/build/_app/immutable/chunks/08VXUWAP.js.br +0 -0
  48. package/build/_app/immutable/chunks/08VXUWAP.js.gz +0 -0
  49. package/build/_app/immutable/chunks/12bfCwgn.js +2 -0
  50. package/build/_app/immutable/chunks/12bfCwgn.js.br +0 -0
  51. package/build/_app/immutable/chunks/12bfCwgn.js.gz +0 -0
  52. package/build/_app/immutable/chunks/43DmfD33.js +1 -0
  53. package/build/_app/immutable/chunks/43DmfD33.js.br +0 -0
  54. package/build/_app/immutable/chunks/43DmfD33.js.gz +0 -0
  55. package/build/_app/immutable/chunks/6OCsQ6r7.js +11 -0
  56. package/build/_app/immutable/chunks/6OCsQ6r7.js.br +0 -0
  57. package/build/_app/immutable/chunks/6OCsQ6r7.js.gz +0 -0
  58. package/build/_app/immutable/chunks/6RTg0lbw.js +1 -0
  59. package/build/_app/immutable/chunks/6RTg0lbw.js.br +0 -0
  60. package/build/_app/immutable/chunks/6RTg0lbw.js.gz +0 -0
  61. package/build/_app/immutable/chunks/AvXp07rr.js +1 -0
  62. package/build/_app/immutable/chunks/AvXp07rr.js.br +2 -0
  63. package/build/_app/immutable/chunks/AvXp07rr.js.gz +0 -0
  64. package/build/_app/immutable/chunks/B0qVs-E9.js +1 -0
  65. package/build/_app/immutable/chunks/B0qVs-E9.js.br +0 -0
  66. package/build/_app/immutable/chunks/B0qVs-E9.js.gz +0 -0
  67. package/build/_app/immutable/chunks/B434V0h8.js +1 -0
  68. package/build/_app/immutable/chunks/B434V0h8.js.br +0 -0
  69. package/build/_app/immutable/chunks/B434V0h8.js.gz +0 -0
  70. package/build/_app/immutable/chunks/B5-_aFwp.js +2 -0
  71. package/build/_app/immutable/chunks/B5-_aFwp.js.br +0 -0
  72. package/build/_app/immutable/chunks/B5-_aFwp.js.gz +0 -0
  73. package/build/_app/immutable/chunks/B8J7ngcE.js +1 -0
  74. package/build/_app/immutable/chunks/B8J7ngcE.js.br +0 -0
  75. package/build/_app/immutable/chunks/B8J7ngcE.js.gz +0 -0
  76. package/build/_app/immutable/chunks/B9JPFI3C.js +2 -0
  77. package/build/_app/immutable/chunks/B9JPFI3C.js.br +0 -0
  78. package/build/_app/immutable/chunks/B9JPFI3C.js.gz +0 -0
  79. package/build/_app/immutable/chunks/B9YnyJ2j.js +1 -0
  80. package/build/_app/immutable/chunks/B9YnyJ2j.js.br +0 -0
  81. package/build/_app/immutable/chunks/B9YnyJ2j.js.gz +0 -0
  82. package/build/_app/immutable/chunks/BEEn4gHE.js +1 -0
  83. package/build/_app/immutable/chunks/BEEn4gHE.js.br +0 -0
  84. package/build/_app/immutable/chunks/BEEn4gHE.js.gz +0 -0
  85. package/build/_app/immutable/chunks/BEtHBSE6.js +1 -0
  86. package/build/_app/immutable/chunks/BEtHBSE6.js.br +0 -0
  87. package/build/_app/immutable/chunks/BEtHBSE6.js.gz +0 -0
  88. package/build/_app/immutable/chunks/BJqZY8o2.js +1 -0
  89. package/build/_app/immutable/chunks/BJqZY8o2.js.br +0 -0
  90. package/build/_app/immutable/chunks/BJqZY8o2.js.gz +0 -0
  91. package/build/_app/immutable/chunks/BKQbRSey.js +1 -0
  92. package/build/_app/immutable/chunks/BKQbRSey.js.br +0 -0
  93. package/build/_app/immutable/chunks/BKQbRSey.js.gz +0 -0
  94. package/build/_app/immutable/chunks/BKxtCVv1.js +1 -0
  95. package/build/_app/immutable/chunks/BKxtCVv1.js.br +0 -0
  96. package/build/_app/immutable/chunks/BKxtCVv1.js.gz +0 -0
  97. package/build/_app/immutable/chunks/BOHUKGg_.js +1 -0
  98. package/build/_app/immutable/chunks/BOHUKGg_.js.br +0 -0
  99. package/build/_app/immutable/chunks/BOHUKGg_.js.gz +0 -0
  100. package/build/_app/immutable/chunks/BP0Xadq7.js +5 -0
  101. package/build/_app/immutable/chunks/BP0Xadq7.js.br +0 -0
  102. package/build/_app/immutable/chunks/BP0Xadq7.js.gz +0 -0
  103. package/build/_app/immutable/chunks/BSnTSnag.js +1 -0
  104. package/build/_app/immutable/chunks/BSnTSnag.js.br +0 -0
  105. package/build/_app/immutable/chunks/BSnTSnag.js.gz +0 -0
  106. package/build/_app/immutable/chunks/BT98u4gR.js +35 -0
  107. package/build/_app/immutable/chunks/BT98u4gR.js.br +0 -0
  108. package/build/_app/immutable/chunks/BT98u4gR.js.gz +0 -0
  109. package/build/_app/immutable/chunks/BWPQTe0t.js +1 -0
  110. package/build/_app/immutable/chunks/BWPQTe0t.js.br +0 -0
  111. package/build/_app/immutable/chunks/BWPQTe0t.js.gz +0 -0
  112. package/build/_app/immutable/chunks/BYgofb2h.js +1 -0
  113. package/build/_app/immutable/chunks/BYgofb2h.js.br +0 -0
  114. package/build/_app/immutable/chunks/BYgofb2h.js.gz +0 -0
  115. package/build/_app/immutable/chunks/Ba7i2nA0.js +1 -0
  116. package/build/_app/immutable/chunks/Ba7i2nA0.js.br +0 -0
  117. package/build/_app/immutable/chunks/Ba7i2nA0.js.gz +0 -0
  118. package/build/_app/immutable/chunks/Bc1oIj2c.js +1 -0
  119. package/build/_app/immutable/chunks/Bc1oIj2c.js.br +0 -0
  120. package/build/_app/immutable/chunks/Bc1oIj2c.js.gz +0 -0
  121. package/build/_app/immutable/chunks/Bc_sGQ0U.js +1 -0
  122. package/build/_app/immutable/chunks/Bc_sGQ0U.js.br +3 -0
  123. package/build/_app/immutable/chunks/Bc_sGQ0U.js.gz +0 -0
  124. package/build/_app/immutable/chunks/BeGwcela.js +1 -0
  125. package/build/_app/immutable/chunks/BeGwcela.js.br +0 -0
  126. package/build/_app/immutable/chunks/BeGwcela.js.gz +0 -0
  127. package/build/_app/immutable/chunks/BiDy9-HP.js +1 -0
  128. package/build/_app/immutable/chunks/BiDy9-HP.js.br +0 -0
  129. package/build/_app/immutable/chunks/BiDy9-HP.js.gz +0 -0
  130. package/build/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  131. package/build/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
  132. package/build/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
  133. package/build/_app/immutable/chunks/Bri6UV-V.js +1 -0
  134. package/build/_app/immutable/chunks/Bri6UV-V.js.br +0 -0
  135. package/build/_app/immutable/chunks/Bri6UV-V.js.gz +0 -0
  136. package/build/_app/immutable/chunks/BwWrilGY.js +1 -0
  137. package/build/_app/immutable/chunks/BwWrilGY.js.br +0 -0
  138. package/build/_app/immutable/chunks/BwWrilGY.js.gz +0 -0
  139. package/build/_app/immutable/chunks/Bxkupp3x.js +1 -0
  140. package/build/_app/immutable/chunks/Bxkupp3x.js.br +0 -0
  141. package/build/_app/immutable/chunks/Bxkupp3x.js.gz +0 -0
  142. package/build/_app/immutable/chunks/By9tvIIw.js +1 -0
  143. package/build/_app/immutable/chunks/By9tvIIw.js.br +0 -0
  144. package/build/_app/immutable/chunks/By9tvIIw.js.gz +0 -0
  145. package/build/_app/immutable/chunks/Byx1piFp.js +3 -0
  146. package/build/_app/immutable/chunks/Byx1piFp.js.br +0 -0
  147. package/build/_app/immutable/chunks/Byx1piFp.js.gz +0 -0
  148. package/build/_app/immutable/chunks/Bz4Y3fRF.js +1 -0
  149. package/build/_app/immutable/chunks/Bz4Y3fRF.js.br +0 -0
  150. package/build/_app/immutable/chunks/Bz4Y3fRF.js.gz +0 -0
  151. package/build/_app/immutable/chunks/C-y9NEjX.js +1 -0
  152. package/build/_app/immutable/chunks/C-y9NEjX.js.br +0 -0
  153. package/build/_app/immutable/chunks/C-y9NEjX.js.gz +0 -0
  154. package/build/_app/immutable/chunks/C1TsmEOe.js +1 -0
  155. package/build/_app/immutable/chunks/C1TsmEOe.js.br +0 -0
  156. package/build/_app/immutable/chunks/C1TsmEOe.js.gz +0 -0
  157. package/build/_app/immutable/chunks/C531GsRP.js +2 -0
  158. package/build/_app/immutable/chunks/C531GsRP.js.br +0 -0
  159. package/build/_app/immutable/chunks/C531GsRP.js.gz +0 -0
  160. package/build/_app/immutable/chunks/C5_-GSwl.js +1 -0
  161. package/build/_app/immutable/chunks/C5_-GSwl.js.br +0 -0
  162. package/build/_app/immutable/chunks/C5_-GSwl.js.gz +0 -0
  163. package/build/_app/immutable/chunks/C7h46wYY.js +1 -0
  164. package/build/_app/immutable/chunks/C7h46wYY.js.br +0 -0
  165. package/build/_app/immutable/chunks/C7h46wYY.js.gz +0 -0
  166. package/build/_app/immutable/chunks/C8Ef5oNN.js +1 -0
  167. package/build/_app/immutable/chunks/C8Ef5oNN.js.br +0 -0
  168. package/build/_app/immutable/chunks/C8Ef5oNN.js.gz +0 -0
  169. package/build/_app/immutable/chunks/CC2rA5mh.js +1 -0
  170. package/build/_app/immutable/chunks/CC2rA5mh.js.br +0 -0
  171. package/build/_app/immutable/chunks/CC2rA5mh.js.gz +0 -0
  172. package/build/_app/immutable/chunks/CGV7fMmX.js +1 -0
  173. package/build/_app/immutable/chunks/CGV7fMmX.js.br +0 -0
  174. package/build/_app/immutable/chunks/CGV7fMmX.js.gz +0 -0
  175. package/build/_app/immutable/chunks/CIPQ_RoX.js +1 -0
  176. package/build/_app/immutable/chunks/CIPQ_RoX.js.br +0 -0
  177. package/build/_app/immutable/chunks/CIPQ_RoX.js.gz +0 -0
  178. package/build/_app/immutable/chunks/CL717zGu.js +2 -0
  179. package/build/_app/immutable/chunks/CL717zGu.js.br +0 -0
  180. package/build/_app/immutable/chunks/CL717zGu.js.gz +0 -0
  181. package/build/_app/immutable/chunks/CPCsWwEy.js +3 -0
  182. package/build/_app/immutable/chunks/CPCsWwEy.js.br +0 -0
  183. package/build/_app/immutable/chunks/CPCsWwEy.js.gz +0 -0
  184. package/build/_app/immutable/chunks/CRfGWb83.js +1 -0
  185. package/build/_app/immutable/chunks/CRfGWb83.js.br +0 -0
  186. package/build/_app/immutable/chunks/CRfGWb83.js.gz +0 -0
  187. package/build/_app/immutable/chunks/CUZn05nQ.js +63 -0
  188. package/build/_app/immutable/chunks/CUZn05nQ.js.br +0 -0
  189. package/build/_app/immutable/chunks/CUZn05nQ.js.gz +0 -0
  190. package/build/_app/immutable/chunks/CVaqCwHa.js +1 -0
  191. package/build/_app/immutable/chunks/CVaqCwHa.js.br +0 -0
  192. package/build/_app/immutable/chunks/CVaqCwHa.js.gz +0 -0
  193. package/build/_app/immutable/chunks/CZMMlaMl.js +1 -0
  194. package/build/_app/immutable/chunks/CZMMlaMl.js.br +0 -0
  195. package/build/_app/immutable/chunks/CZMMlaMl.js.gz +0 -0
  196. package/build/_app/immutable/chunks/C_yvzB4Z.js +644 -0
  197. package/build/_app/immutable/chunks/C_yvzB4Z.js.br +0 -0
  198. package/build/_app/immutable/chunks/C_yvzB4Z.js.gz +0 -0
  199. package/build/_app/immutable/chunks/CcwsVR0C.js +1 -0
  200. package/build/_app/immutable/chunks/CcwsVR0C.js.br +0 -0
  201. package/build/_app/immutable/chunks/CcwsVR0C.js.gz +0 -0
  202. package/build/_app/immutable/chunks/Cf3l6QEG.js +2 -0
  203. package/build/_app/immutable/chunks/Cf3l6QEG.js.br +0 -0
  204. package/build/_app/immutable/chunks/Cf3l6QEG.js.gz +0 -0
  205. package/build/_app/immutable/chunks/CfSJPG6W.js +1 -0
  206. package/build/_app/immutable/chunks/CfSJPG6W.js.br +0 -0
  207. package/build/_app/immutable/chunks/CfSJPG6W.js.gz +0 -0
  208. package/build/_app/immutable/chunks/CfzHeBbL.js +1 -0
  209. package/build/_app/immutable/chunks/CfzHeBbL.js.br +1 -0
  210. package/build/_app/immutable/chunks/CfzHeBbL.js.gz +0 -0
  211. package/build/_app/immutable/chunks/Cimd5fb3.js +1 -0
  212. package/build/_app/immutable/chunks/Cimd5fb3.js.br +0 -0
  213. package/build/_app/immutable/chunks/Cimd5fb3.js.gz +0 -0
  214. package/build/_app/immutable/chunks/ClamHrr6.js +1 -0
  215. package/build/_app/immutable/chunks/ClamHrr6.js.br +0 -0
  216. package/build/_app/immutable/chunks/ClamHrr6.js.gz +0 -0
  217. package/build/_app/immutable/chunks/Cm7r79vr.js +1 -0
  218. package/build/_app/immutable/chunks/Cm7r79vr.js.br +0 -0
  219. package/build/_app/immutable/chunks/Cm7r79vr.js.gz +0 -0
  220. package/build/_app/immutable/chunks/CopQ2nXW.js +1 -0
  221. package/build/_app/immutable/chunks/CopQ2nXW.js.br +0 -0
  222. package/build/_app/immutable/chunks/CopQ2nXW.js.gz +0 -0
  223. package/build/_app/immutable/chunks/CpzslTdj.js +1 -0
  224. package/build/_app/immutable/chunks/CpzslTdj.js.br +0 -0
  225. package/build/_app/immutable/chunks/CpzslTdj.js.gz +0 -0
  226. package/build/_app/immutable/chunks/CsQS60Ue.js +1 -0
  227. package/build/_app/immutable/chunks/CsQS60Ue.js.br +0 -0
  228. package/build/_app/immutable/chunks/CsQS60Ue.js.gz +0 -0
  229. package/build/_app/immutable/chunks/D-oSqn_W.js +1 -0
  230. package/build/_app/immutable/chunks/D-oSqn_W.js.br +0 -0
  231. package/build/_app/immutable/chunks/D-oSqn_W.js.gz +0 -0
  232. package/build/_app/immutable/chunks/D-ptJ9y-.js +1 -0
  233. package/build/_app/immutable/chunks/D-ptJ9y-.js.br +0 -0
  234. package/build/_app/immutable/chunks/D-ptJ9y-.js.gz +0 -0
  235. package/build/_app/immutable/chunks/D05T4iGw.js +1 -0
  236. package/build/_app/immutable/chunks/D05T4iGw.js.br +0 -0
  237. package/build/_app/immutable/chunks/D05T4iGw.js.gz +0 -0
  238. package/build/_app/immutable/chunks/D1-opoqB.js +10 -0
  239. package/build/_app/immutable/chunks/D1-opoqB.js.br +0 -0
  240. package/build/_app/immutable/chunks/D1-opoqB.js.gz +0 -0
  241. package/build/_app/immutable/chunks/D3fLfD-Y.js +1 -0
  242. package/build/_app/immutable/chunks/D3fLfD-Y.js.br +0 -0
  243. package/build/_app/immutable/chunks/D3fLfD-Y.js.gz +0 -0
  244. package/build/_app/immutable/chunks/D3hlyOfw.js +1 -0
  245. package/build/_app/immutable/chunks/D3hlyOfw.js.br +0 -0
  246. package/build/_app/immutable/chunks/D3hlyOfw.js.gz +0 -0
  247. package/build/_app/immutable/chunks/DDZ8GqHh.js +1 -0
  248. package/build/_app/immutable/chunks/DDZ8GqHh.js.br +0 -0
  249. package/build/_app/immutable/chunks/DDZ8GqHh.js.gz +0 -0
  250. package/build/_app/immutable/chunks/DD_fL9ig.js +1 -0
  251. package/build/_app/immutable/chunks/DD_fL9ig.js.br +0 -0
  252. package/build/_app/immutable/chunks/DD_fL9ig.js.gz +0 -0
  253. package/build/_app/immutable/chunks/DHpiXF5c.js +1 -0
  254. package/build/_app/immutable/chunks/DHpiXF5c.js.br +0 -0
  255. package/build/_app/immutable/chunks/DHpiXF5c.js.gz +0 -0
  256. package/build/_app/immutable/chunks/DIMkf-bt.js +3 -0
  257. package/build/_app/immutable/chunks/DIMkf-bt.js.br +0 -0
  258. package/build/_app/immutable/chunks/DIMkf-bt.js.gz +0 -0
  259. package/build/_app/immutable/chunks/DISqw1ZD.js +1 -0
  260. package/build/_app/immutable/chunks/DISqw1ZD.js.br +0 -0
  261. package/build/_app/immutable/chunks/DISqw1ZD.js.gz +0 -0
  262. package/build/_app/immutable/chunks/DMUM7wLl.js +1 -0
  263. package/build/_app/immutable/chunks/DMUM7wLl.js.br +0 -0
  264. package/build/_app/immutable/chunks/DMUM7wLl.js.gz +0 -0
  265. package/build/_app/immutable/chunks/DT7zqm-g.js +1 -0
  266. package/build/_app/immutable/chunks/DT7zqm-g.js.br +0 -0
  267. package/build/_app/immutable/chunks/DT7zqm-g.js.gz +0 -0
  268. package/build/_app/immutable/chunks/DTj74zXo.js +1 -0
  269. package/build/_app/immutable/chunks/DTj74zXo.js.br +0 -0
  270. package/build/_app/immutable/chunks/DTj74zXo.js.gz +0 -0
  271. package/build/_app/immutable/chunks/DV3o63ZY.js +1 -0
  272. package/build/_app/immutable/chunks/DV3o63ZY.js.br +0 -0
  273. package/build/_app/immutable/chunks/DV3o63ZY.js.gz +0 -0
  274. package/build/_app/immutable/chunks/DVZC5aEW.js +3 -0
  275. package/build/_app/immutable/chunks/DVZC5aEW.js.br +0 -0
  276. package/build/_app/immutable/chunks/DVZC5aEW.js.gz +0 -0
  277. package/build/_app/immutable/chunks/DWoqp3ac.js +1 -0
  278. package/build/_app/immutable/chunks/DWoqp3ac.js.br +0 -0
  279. package/build/_app/immutable/chunks/DWoqp3ac.js.gz +0 -0
  280. package/build/_app/immutable/chunks/DZFCIeNp.js +1 -0
  281. package/build/_app/immutable/chunks/DZFCIeNp.js.br +0 -0
  282. package/build/_app/immutable/chunks/DZFCIeNp.js.gz +0 -0
  283. package/build/_app/immutable/chunks/D_Lu-MrJ.js +1 -0
  284. package/build/_app/immutable/chunks/D_Lu-MrJ.js.br +0 -0
  285. package/build/_app/immutable/chunks/D_Lu-MrJ.js.gz +0 -0
  286. package/build/_app/immutable/chunks/D_MTg6YY.js +1 -0
  287. package/build/_app/immutable/chunks/D_MTg6YY.js.br +0 -0
  288. package/build/_app/immutable/chunks/D_MTg6YY.js.gz +0 -0
  289. package/build/_app/immutable/chunks/DauUninz.js +1 -0
  290. package/build/_app/immutable/chunks/DauUninz.js.br +0 -0
  291. package/build/_app/immutable/chunks/DauUninz.js.gz +0 -0
  292. package/build/_app/immutable/chunks/DbInun42.js +1 -0
  293. package/build/_app/immutable/chunks/DbInun42.js.br +0 -0
  294. package/build/_app/immutable/chunks/DbInun42.js.gz +0 -0
  295. package/build/_app/immutable/chunks/DbZCwjKq.js +4 -0
  296. package/build/_app/immutable/chunks/DbZCwjKq.js.br +0 -0
  297. package/build/_app/immutable/chunks/DbZCwjKq.js.gz +0 -0
  298. package/build/_app/immutable/chunks/DdL9SqIa.js +1 -0
  299. package/build/_app/immutable/chunks/DdL9SqIa.js.br +0 -0
  300. package/build/_app/immutable/chunks/DdL9SqIa.js.gz +0 -0
  301. package/build/_app/immutable/chunks/De2hgUGE.js +1 -0
  302. package/build/_app/immutable/chunks/De2hgUGE.js.br +0 -0
  303. package/build/_app/immutable/chunks/De2hgUGE.js.gz +0 -0
  304. package/build/_app/immutable/chunks/DezsRK8O.js +1 -0
  305. package/build/_app/immutable/chunks/DezsRK8O.js.br +0 -0
  306. package/build/_app/immutable/chunks/DezsRK8O.js.gz +0 -0
  307. package/build/_app/immutable/chunks/DjxKCxwY.js +1 -0
  308. package/build/_app/immutable/chunks/DjxKCxwY.js.br +0 -0
  309. package/build/_app/immutable/chunks/DjxKCxwY.js.gz +0 -0
  310. package/build/_app/immutable/chunks/DkJi5BM4.js +1 -0
  311. package/build/_app/immutable/chunks/DkJi5BM4.js.br +0 -0
  312. package/build/_app/immutable/chunks/DkJi5BM4.js.gz +0 -0
  313. package/build/_app/immutable/chunks/DkqhCAOL.js +1 -0
  314. package/build/_app/immutable/chunks/DkqhCAOL.js.br +0 -0
  315. package/build/_app/immutable/chunks/DkqhCAOL.js.gz +0 -0
  316. package/build/_app/immutable/chunks/DmHpPYUd.js +1 -0
  317. package/build/_app/immutable/chunks/DmHpPYUd.js.br +0 -0
  318. package/build/_app/immutable/chunks/DmHpPYUd.js.gz +0 -0
  319. package/build/_app/immutable/chunks/Dne1wF_T.js +1 -0
  320. package/build/_app/immutable/chunks/Dne1wF_T.js.br +0 -0
  321. package/build/_app/immutable/chunks/Dne1wF_T.js.gz +0 -0
  322. package/build/_app/immutable/chunks/DoM_ZOrs.js +1 -0
  323. package/build/_app/immutable/chunks/DoM_ZOrs.js.br +2 -0
  324. package/build/_app/immutable/chunks/DoM_ZOrs.js.gz +0 -0
  325. package/build/_app/immutable/chunks/DpFanUEy.js +298 -0
  326. package/build/_app/immutable/chunks/DpFanUEy.js.br +0 -0
  327. package/build/_app/immutable/chunks/DpFanUEy.js.gz +0 -0
  328. package/build/_app/immutable/chunks/DrH0SRf2.js +1 -0
  329. package/build/_app/immutable/chunks/DrH0SRf2.js.br +0 -0
  330. package/build/_app/immutable/chunks/DrH0SRf2.js.gz +0 -0
  331. package/build/_app/immutable/chunks/Dt-HX3Vu.js +1 -0
  332. package/build/_app/immutable/chunks/Dt-HX3Vu.js.br +0 -0
  333. package/build/_app/immutable/chunks/Dt-HX3Vu.js.gz +0 -0
  334. package/build/_app/immutable/chunks/Dt1k81ic.js +1 -0
  335. package/build/_app/immutable/chunks/Dt1k81ic.js.br +0 -0
  336. package/build/_app/immutable/chunks/Dt1k81ic.js.gz +0 -0
  337. package/build/_app/immutable/chunks/DugeGFnl.js +4 -0
  338. package/build/_app/immutable/chunks/DugeGFnl.js.br +0 -0
  339. package/build/_app/immutable/chunks/DugeGFnl.js.gz +0 -0
  340. package/build/_app/immutable/chunks/DxhPVHKV.js +1 -0
  341. package/build/_app/immutable/chunks/DxhPVHKV.js.br +1 -0
  342. package/build/_app/immutable/chunks/DxhPVHKV.js.gz +0 -0
  343. package/build/_app/immutable/chunks/FvmIjYaQ.js +1 -0
  344. package/build/_app/immutable/chunks/FvmIjYaQ.js.br +0 -0
  345. package/build/_app/immutable/chunks/FvmIjYaQ.js.gz +0 -0
  346. package/build/_app/immutable/chunks/HclGiUj8.js +1 -0
  347. package/build/_app/immutable/chunks/HclGiUj8.js.br +0 -0
  348. package/build/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
  349. package/build/_app/immutable/chunks/MIEISUXS.js +64 -0
  350. package/build/_app/immutable/chunks/MIEISUXS.js.br +0 -0
  351. package/build/_app/immutable/chunks/MIEISUXS.js.gz +0 -0
  352. package/build/_app/immutable/chunks/NEE52Syq.js +1 -0
  353. package/build/_app/immutable/chunks/NEE52Syq.js.br +0 -0
  354. package/build/_app/immutable/chunks/NEE52Syq.js.gz +0 -0
  355. package/build/_app/immutable/chunks/SOo6toE5.js +1 -0
  356. package/build/_app/immutable/chunks/SOo6toE5.js.br +0 -0
  357. package/build/_app/immutable/chunks/SOo6toE5.js.gz +0 -0
  358. package/build/_app/immutable/chunks/UZ6smZpJ.js +1 -0
  359. package/build/_app/immutable/chunks/UZ6smZpJ.js.br +0 -0
  360. package/build/_app/immutable/chunks/UZ6smZpJ.js.gz +0 -0
  361. package/build/_app/immutable/chunks/Vn-6xHGu.js +1 -0
  362. package/build/_app/immutable/chunks/Vn-6xHGu.js.br +0 -0
  363. package/build/_app/immutable/chunks/Vn-6xHGu.js.gz +0 -0
  364. package/build/_app/immutable/chunks/Xth-LXaZ.js +1 -0
  365. package/build/_app/immutable/chunks/Xth-LXaZ.js.br +0 -0
  366. package/build/_app/immutable/chunks/Xth-LXaZ.js.gz +0 -0
  367. package/build/_app/immutable/chunks/Z5eAx3Zn.js +1 -0
  368. package/build/_app/immutable/chunks/Z5eAx3Zn.js.br +0 -0
  369. package/build/_app/immutable/chunks/Z5eAx3Zn.js.gz +0 -0
  370. package/build/_app/immutable/chunks/bTuwJoIa.js +1 -0
  371. package/build/_app/immutable/chunks/bTuwJoIa.js.br +0 -0
  372. package/build/_app/immutable/chunks/bTuwJoIa.js.gz +0 -0
  373. package/build/_app/immutable/chunks/fmXr3nnJ.js +1 -0
  374. package/build/_app/immutable/chunks/fmXr3nnJ.js.br +0 -0
  375. package/build/_app/immutable/chunks/fmXr3nnJ.js.gz +0 -0
  376. package/build/_app/immutable/chunks/gp-XZpBa.js +3 -0
  377. package/build/_app/immutable/chunks/gp-XZpBa.js.br +0 -0
  378. package/build/_app/immutable/chunks/gp-XZpBa.js.gz +0 -0
  379. package/build/_app/immutable/chunks/hePW80VL.js +1 -0
  380. package/build/_app/immutable/chunks/hePW80VL.js.br +0 -0
  381. package/build/_app/immutable/chunks/hePW80VL.js.gz +0 -0
  382. package/build/_app/immutable/chunks/i0X4ZdIN.js +1 -0
  383. package/build/_app/immutable/chunks/i0X4ZdIN.js.br +0 -0
  384. package/build/_app/immutable/chunks/i0X4ZdIN.js.gz +0 -0
  385. package/build/_app/immutable/chunks/krcqaNpB.js +11 -0
  386. package/build/_app/immutable/chunks/krcqaNpB.js.br +0 -0
  387. package/build/_app/immutable/chunks/krcqaNpB.js.gz +0 -0
  388. package/build/_app/immutable/chunks/nr791fC2.js +1 -0
  389. package/build/_app/immutable/chunks/nr791fC2.js.br +0 -0
  390. package/build/_app/immutable/chunks/nr791fC2.js.gz +0 -0
  391. package/build/_app/immutable/chunks/oarl--hZ.js +1 -0
  392. package/build/_app/immutable/chunks/oarl--hZ.js.br +0 -0
  393. package/build/_app/immutable/chunks/oarl--hZ.js.gz +0 -0
  394. package/build/_app/immutable/chunks/onAF5SnQ.js +1 -0
  395. package/build/_app/immutable/chunks/onAF5SnQ.js.br +0 -0
  396. package/build/_app/immutable/chunks/onAF5SnQ.js.gz +0 -0
  397. package/build/_app/immutable/chunks/oz_6vUea.js +1 -0
  398. package/build/_app/immutable/chunks/oz_6vUea.js.br +0 -0
  399. package/build/_app/immutable/chunks/oz_6vUea.js.gz +0 -0
  400. package/build/_app/immutable/chunks/sBoK_t0W.js +1 -0
  401. package/build/_app/immutable/chunks/sBoK_t0W.js.br +3 -0
  402. package/build/_app/immutable/chunks/sBoK_t0W.js.gz +0 -0
  403. package/build/_app/immutable/chunks/xihTtKlq.js +1 -0
  404. package/build/_app/immutable/chunks/xihTtKlq.js.br +1 -0
  405. package/build/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  406. package/build/_app/immutable/entry/app.B73YVKlJ.js +2 -0
  407. package/build/_app/immutable/entry/app.B73YVKlJ.js.br +0 -0
  408. package/build/_app/immutable/entry/app.B73YVKlJ.js.gz +0 -0
  409. package/build/_app/immutable/entry/start.59SUcW9F.js +1 -0
  410. package/build/_app/immutable/entry/start.59SUcW9F.js.br +0 -0
  411. package/build/_app/immutable/entry/start.59SUcW9F.js.gz +0 -0
  412. package/build/_app/immutable/nodes/0.CRuATwoa.js +3 -0
  413. package/build/_app/immutable/nodes/0.CRuATwoa.js.br +0 -0
  414. package/build/_app/immutable/nodes/0.CRuATwoa.js.gz +0 -0
  415. package/build/_app/immutable/nodes/1.BwTYt1ri.js +1 -0
  416. package/build/_app/immutable/nodes/1.BwTYt1ri.js.br +1 -0
  417. package/build/_app/immutable/nodes/1.BwTYt1ri.js.gz +0 -0
  418. package/build/_app/immutable/nodes/10.DuLkI7IT.js +1 -0
  419. package/build/_app/immutable/nodes/10.DuLkI7IT.js.br +0 -0
  420. package/build/_app/immutable/nodes/10.DuLkI7IT.js.gz +0 -0
  421. package/build/_app/immutable/nodes/11.CvQx4qsQ.js +1 -0
  422. package/build/_app/immutable/nodes/11.CvQx4qsQ.js.br +0 -0
  423. package/build/_app/immutable/nodes/11.CvQx4qsQ.js.gz +0 -0
  424. package/build/_app/immutable/nodes/12.DexCpvoJ.js +1 -0
  425. package/build/_app/immutable/nodes/12.DexCpvoJ.js.br +2 -0
  426. package/build/_app/immutable/nodes/12.DexCpvoJ.js.gz +0 -0
  427. package/build/_app/immutable/nodes/13.d5wmZHtI.js +1 -0
  428. package/build/_app/immutable/nodes/13.d5wmZHtI.js.br +0 -0
  429. package/build/_app/immutable/nodes/13.d5wmZHtI.js.gz +0 -0
  430. package/build/_app/immutable/nodes/14.DSu8i_qz.js +1 -0
  431. package/build/_app/immutable/nodes/14.DSu8i_qz.js.br +0 -0
  432. package/build/_app/immutable/nodes/14.DSu8i_qz.js.gz +0 -0
  433. package/build/_app/immutable/nodes/15.DpmLozh7.js +1 -0
  434. package/build/_app/immutable/nodes/15.DpmLozh7.js.br +0 -0
  435. package/build/_app/immutable/nodes/15.DpmLozh7.js.gz +0 -0
  436. package/build/_app/immutable/nodes/16.CyAJjPYI.js +3 -0
  437. package/build/_app/immutable/nodes/16.CyAJjPYI.js.br +0 -0
  438. package/build/_app/immutable/nodes/16.CyAJjPYI.js.gz +0 -0
  439. package/build/_app/immutable/nodes/17.BW7FjO0Q.js +10 -0
  440. package/build/_app/immutable/nodes/17.BW7FjO0Q.js.br +0 -0
  441. package/build/_app/immutable/nodes/17.BW7FjO0Q.js.gz +0 -0
  442. package/build/_app/immutable/nodes/2.Dzsy2J7Q.js +35 -0
  443. package/build/_app/immutable/nodes/2.Dzsy2J7Q.js.br +0 -0
  444. package/build/_app/immutable/nodes/2.Dzsy2J7Q.js.gz +0 -0
  445. package/build/_app/immutable/nodes/3.Cu2n_SuU.js +1 -0
  446. package/build/_app/immutable/nodes/3.Cu2n_SuU.js.br +0 -0
  447. package/build/_app/immutable/nodes/3.Cu2n_SuU.js.gz +0 -0
  448. package/build/_app/immutable/nodes/4.DfbxAWaw.js +1 -0
  449. package/build/_app/immutable/nodes/4.DfbxAWaw.js.br +0 -0
  450. package/build/_app/immutable/nodes/4.DfbxAWaw.js.gz +0 -0
  451. package/build/_app/immutable/nodes/5.B1H9pyMk.js +1 -0
  452. package/build/_app/immutable/nodes/5.B1H9pyMk.js.br +0 -0
  453. package/build/_app/immutable/nodes/5.B1H9pyMk.js.gz +0 -0
  454. package/build/_app/immutable/nodes/6.Bq16_9w3.js +1 -0
  455. package/build/_app/immutable/nodes/6.Bq16_9w3.js.br +0 -0
  456. package/build/_app/immutable/nodes/6.Bq16_9w3.js.gz +0 -0
  457. package/build/_app/immutable/nodes/7.ans9TEie.js +1 -0
  458. package/build/_app/immutable/nodes/7.ans9TEie.js.br +0 -0
  459. package/build/_app/immutable/nodes/7.ans9TEie.js.gz +0 -0
  460. package/build/_app/immutable/nodes/8.BCatMgwB.js +2 -0
  461. package/build/_app/immutable/nodes/8.BCatMgwB.js.br +0 -0
  462. package/build/_app/immutable/nodes/8.BCatMgwB.js.gz +0 -0
  463. package/build/_app/immutable/nodes/9.C2W2D2GW.js +24 -0
  464. package/build/_app/immutable/nodes/9.C2W2D2GW.js.br +0 -0
  465. package/build/_app/immutable/nodes/9.C2W2D2GW.js.gz +0 -0
  466. package/build/_app/immutable/workers/css.worker-D61Wlo1y.js +88 -0
  467. package/build/_app/immutable/workers/css.worker-D61Wlo1y.js.br +0 -0
  468. package/build/_app/immutable/workers/css.worker-D61Wlo1y.js.gz +0 -0
  469. package/build/_app/immutable/workers/editor.worker-BaAK1IVA.js +12 -0
  470. package/build/_app/immutable/workers/editor.worker-BaAK1IVA.js.br +0 -0
  471. package/build/_app/immutable/workers/editor.worker-BaAK1IVA.js.gz +0 -0
  472. package/build/_app/immutable/workers/html.worker-i4ABlmR0.js +495 -0
  473. package/build/_app/immutable/workers/html.worker-i4ABlmR0.js.br +0 -0
  474. package/build/_app/immutable/workers/html.worker-i4ABlmR0.js.gz +0 -0
  475. package/build/_app/immutable/workers/json.worker-C-kBQgxp.js +51 -0
  476. package/build/_app/immutable/workers/json.worker-C-kBQgxp.js.br +0 -0
  477. package/build/_app/immutable/workers/json.worker-C-kBQgxp.js.gz +0 -0
  478. package/build/_app/immutable/workers/ts.worker-KJ4wGYue.js +51339 -0
  479. package/build/_app/immutable/workers/ts.worker-KJ4wGYue.js.br +0 -0
  480. package/build/_app/immutable/workers/ts.worker-KJ4wGYue.js.gz +0 -0
  481. package/build/_app/version.json +1 -0
  482. package/build/_app/version.json.br +0 -0
  483. package/build/_app/version.json.gz +0 -0
  484. package/build/index.html +43 -0
  485. package/build/index.html.br +4 -0
  486. package/build/index.html.gz +0 -0
  487. package/dist/index.js +4888 -0
  488. package/dist/index.js.map +7 -0
  489. package/dist/types/backend/config/router.d.ts +16 -0
  490. package/dist/types/backend/index.d.ts +9 -0
  491. package/dist/types/backend/lib/agent-registry.d.ts +20 -0
  492. package/dist/types/backend/lib/apply-v4a-diff.d.ts +6 -0
  493. package/dist/types/backend/lib/bosun-context.d.ts +19 -0
  494. package/dist/types/backend/lib/decode-html-entities.d.ts +7 -0
  495. package/dist/types/backend/lib/options.d.ts +51 -0
  496. package/dist/types/backend/lib/trpc-context.d.ts +5 -0
  497. package/dist/types/backend/lib/voice-agent-lifecycle.d.ts +2 -0
  498. package/dist/types/backend/prompt-cache.d.ts +17 -0
  499. package/dist/types/backend/roleplay/agent-introspection.d.ts +29 -0
  500. package/dist/types/backend/roleplay/conversation-store.d.ts +23 -0
  501. package/dist/types/backend/roleplay/conversations-router.d.ts +59 -0
  502. package/dist/types/backend/roleplay/logger.d.ts +7 -0
  503. package/dist/types/backend/roleplay/prompt-edit-progress.d.ts +11 -0
  504. package/dist/types/backend/roleplay/prompt-edit-proposals.d.ts +23 -0
  505. package/dist/types/backend/roleplay/prompt-file.d.ts +8 -0
  506. package/dist/types/backend/roleplay/router.d.ts +191 -0
  507. package/dist/types/backend/roleplay/run-turn.d.ts +17 -0
  508. package/dist/types/backend/roleplay/scheduler.d.ts +20 -0
  509. package/dist/types/backend/roleplay/step-registry.d.ts +7 -0
  510. package/dist/types/backend/roleplay/suggest-file-edit.d.ts +13 -0
  511. package/dist/types/backend/roleplay/suggest-prompt-edit.d.ts +11 -0
  512. package/dist/types/backend/roleplay/suggest-test-fix.d.ts +29 -0
  513. package/dist/types/backend/roleplay/trace-serialization.d.ts +1 -0
  514. package/dist/types/backend/roleplay/variants.d.ts +18 -0
  515. package/dist/types/backend/roleplay/ws-server.d.ts +3 -0
  516. package/dist/types/backend/server.d.ts +865 -0
  517. package/dist/types/backend/telescope/router.d.ts +184 -0
  518. package/dist/types/backend/telescope/sources.d.ts +18 -0
  519. package/dist/types/backend/tests/academy.d.ts +112 -0
  520. package/dist/types/backend/tests/active-test-runs.d.ts +12 -0
  521. package/dist/types/backend/tests/analyze.d.ts +42 -0
  522. package/dist/types/backend/tests/best-effort-log-writer.d.ts +5 -0
  523. package/dist/types/backend/tests/context-utils.d.ts +2 -0
  524. package/dist/types/backend/tests/data.d.ts +95 -0
  525. package/dist/types/backend/tests/emulate-agents.d.ts +21 -0
  526. package/dist/types/backend/tests/json-field-match.d.ts +5 -0
  527. package/dist/types/backend/tests/pii-sanitized-test-drafts.d.ts +47 -0
  528. package/dist/types/backend/tests/pii-sanitizer.d.ts +61 -0
  529. package/dist/types/backend/tests/prompt-issues.d.ts +19 -0
  530. package/dist/types/backend/tests/promptfoo-runtime.d.ts +13 -0
  531. package/dist/types/backend/tests/report-files.d.ts +7 -0
  532. package/dist/types/backend/tests/router.d.ts +411 -0
  533. package/dist/types/backend/tests/suggest-test-history-edit.d.ts +21 -0
  534. package/dist/types/backend/tests/suite.d.ts +69 -0
  535. package/dist/types/backend/tests/test-edit-source.d.ts +4 -0
  536. package/dist/types/backend/tests/test-history-edit-proposals.d.ts +24 -0
  537. package/dist/types/lib/api-telescope/types.d.ts +280 -0
  538. package/dist/types/lib/conversation.d.ts +33 -0
  539. package/dist/types/lib/edit/test-ai-edit.d.ts +12 -0
  540. package/dist/types/lib/steps.d.ts +14 -0
  541. package/dist/types/lib/tests/assertion-types.d.ts +6 -0
  542. package/dist/types/lib/tests/pii-sanitized-test-draft.d.ts +52 -0
  543. package/dist/types/lib/ws-message.d.ts +41 -0
  544. package/package.json +50 -50
  545. package/.svelte-kit/tsconfig.json +0 -59
  546. package/bin/bosun.js +0 -319
  547. package/build/client/_app/immutable/assets/0.B4Hv80zl.css +0 -1
  548. package/build/client/_app/immutable/assets/0.B4Hv80zl.css.br +0 -0
  549. package/build/client/_app/immutable/assets/0.B4Hv80zl.css.gz +0 -0
  550. package/build/client/_app/immutable/assets/10.DIVePEYf.css +0 -1
  551. package/build/client/_app/immutable/assets/10.DIVePEYf.css.br +0 -0
  552. package/build/client/_app/immutable/assets/10.DIVePEYf.css.gz +0 -0
  553. package/build/client/_app/immutable/assets/18.C5apk4jm.css +0 -1
  554. package/build/client/_app/immutable/assets/18.C5apk4jm.css.br +0 -0
  555. package/build/client/_app/immutable/assets/18.C5apk4jm.css.gz +0 -0
  556. package/build/client/_app/immutable/assets/2.Bc0Sf3YD.css +0 -1
  557. package/build/client/_app/immutable/assets/2.Bc0Sf3YD.css.br +0 -0
  558. package/build/client/_app/immutable/assets/2.Bc0Sf3YD.css.gz +0 -0
  559. package/build/client/_app/immutable/assets/3.Dzh7_Q8n.css +0 -1
  560. package/build/client/_app/immutable/assets/3.Dzh7_Q8n.css.br +0 -0
  561. package/build/client/_app/immutable/assets/3.Dzh7_Q8n.css.gz +0 -0
  562. package/build/client/_app/immutable/assets/5.CZVw96CJ.css +0 -1
  563. package/build/client/_app/immutable/assets/5.CZVw96CJ.css.br +0 -0
  564. package/build/client/_app/immutable/assets/5.CZVw96CJ.css.gz +0 -0
  565. package/build/client/_app/immutable/assets/9.DlSPCZj0.css +0 -1
  566. package/build/client/_app/immutable/assets/9.DlSPCZj0.css.br +0 -0
  567. package/build/client/_app/immutable/assets/9.DlSPCZj0.css.gz +0 -0
  568. package/build/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css +0 -1
  569. package/build/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.br +0 -0
  570. package/build/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.gz +0 -0
  571. package/build/client/_app/immutable/assets/Input.CJ8KyccG.css +0 -1
  572. package/build/client/_app/immutable/assets/Input.CJ8KyccG.css.br +0 -0
  573. package/build/client/_app/immutable/assets/Input.CJ8KyccG.css.gz +0 -0
  574. package/build/client/_app/immutable/assets/Modal.iiWNRlR-.css +0 -1
  575. package/build/client/_app/immutable/assets/Modal.iiWNRlR-.css.br +0 -0
  576. package/build/client/_app/immutable/assets/Modal.iiWNRlR-.css.gz +0 -0
  577. package/build/client/_app/immutable/assets/Popper.CLTyHc88.css +0 -1
  578. package/build/client/_app/immutable/assets/Popper.CLTyHc88.css.br +0 -0
  579. package/build/client/_app/immutable/assets/Popper.CLTyHc88.css.gz +0 -0
  580. package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css +0 -1
  581. package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css.br +0 -0
  582. package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css.gz +0 -0
  583. package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css +0 -1
  584. package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css.br +0 -0
  585. package/build/client/_app/immutable/assets/chat-content.Cabnnfyv.css.gz +0 -0
  586. package/build/client/_app/immutable/assets/editor.BMIWPGx3.css +0 -1
  587. package/build/client/_app/immutable/assets/editor.BMIWPGx3.css.br +0 -0
  588. package/build/client/_app/immutable/assets/editor.BMIWPGx3.css.gz +0 -0
  589. package/build/client/_app/immutable/chunks/0cvrggvQ.js +0 -6
  590. package/build/client/_app/immutable/chunks/0cvrggvQ.js.br +0 -0
  591. package/build/client/_app/immutable/chunks/0cvrggvQ.js.gz +0 -0
  592. package/build/client/_app/immutable/chunks/25W9uPmb.js +0 -6
  593. package/build/client/_app/immutable/chunks/25W9uPmb.js.br +0 -0
  594. package/build/client/_app/immutable/chunks/25W9uPmb.js.gz +0 -0
  595. package/build/client/_app/immutable/chunks/4Ik7cdeQ.js +0 -8
  596. package/build/client/_app/immutable/chunks/4Ik7cdeQ.js.br +0 -0
  597. package/build/client/_app/immutable/chunks/4Ik7cdeQ.js.gz +0 -0
  598. package/build/client/_app/immutable/chunks/5Rap-vPy.js +0 -6
  599. package/build/client/_app/immutable/chunks/5Rap-vPy.js.br +0 -3
  600. package/build/client/_app/immutable/chunks/5Rap-vPy.js.gz +0 -0
  601. package/build/client/_app/immutable/chunks/A4HgFSOM.js +0 -1
  602. package/build/client/_app/immutable/chunks/A4HgFSOM.js.br +0 -2
  603. package/build/client/_app/immutable/chunks/A4HgFSOM.js.gz +0 -0
  604. package/build/client/_app/immutable/chunks/B00B3Gwh.js +0 -1
  605. package/build/client/_app/immutable/chunks/B00B3Gwh.js.br +0 -0
  606. package/build/client/_app/immutable/chunks/B00B3Gwh.js.gz +0 -0
  607. package/build/client/_app/immutable/chunks/B03wrqEc.js +0 -6
  608. package/build/client/_app/immutable/chunks/B03wrqEc.js.br +0 -0
  609. package/build/client/_app/immutable/chunks/B03wrqEc.js.gz +0 -0
  610. package/build/client/_app/immutable/chunks/B43-lfXY.js +0 -1
  611. package/build/client/_app/immutable/chunks/B43-lfXY.js.br +0 -0
  612. package/build/client/_app/immutable/chunks/B43-lfXY.js.gz +0 -0
  613. package/build/client/_app/immutable/chunks/B4tOnDzM.js +0 -1
  614. package/build/client/_app/immutable/chunks/B4tOnDzM.js.br +0 -2
  615. package/build/client/_app/immutable/chunks/B4tOnDzM.js.gz +0 -0
  616. package/build/client/_app/immutable/chunks/B5zXfXm9.js +0 -6
  617. package/build/client/_app/immutable/chunks/B5zXfXm9.js.br +0 -0
  618. package/build/client/_app/immutable/chunks/B5zXfXm9.js.gz +0 -0
  619. package/build/client/_app/immutable/chunks/B9Xyijhd.js +0 -6
  620. package/build/client/_app/immutable/chunks/B9Xyijhd.js.br +0 -0
  621. package/build/client/_app/immutable/chunks/B9Xyijhd.js.gz +0 -0
  622. package/build/client/_app/immutable/chunks/BDY0xZsU.js +0 -1
  623. package/build/client/_app/immutable/chunks/BDY0xZsU.js.br +0 -0
  624. package/build/client/_app/immutable/chunks/BDY0xZsU.js.gz +0 -0
  625. package/build/client/_app/immutable/chunks/BFG1Mk7z.js +0 -6
  626. package/build/client/_app/immutable/chunks/BFG1Mk7z.js.br +0 -0
  627. package/build/client/_app/immutable/chunks/BFG1Mk7z.js.gz +0 -0
  628. package/build/client/_app/immutable/chunks/BIv9DU6q.js +0 -303
  629. package/build/client/_app/immutable/chunks/BIv9DU6q.js.br +0 -0
  630. package/build/client/_app/immutable/chunks/BIv9DU6q.js.gz +0 -0
  631. package/build/client/_app/immutable/chunks/BIxSqfKT.js +0 -1
  632. package/build/client/_app/immutable/chunks/BIxSqfKT.js.br +0 -0
  633. package/build/client/_app/immutable/chunks/BIxSqfKT.js.gz +0 -0
  634. package/build/client/_app/immutable/chunks/BKlk5iyT.js +0 -6
  635. package/build/client/_app/immutable/chunks/BKlk5iyT.js.br +0 -0
  636. package/build/client/_app/immutable/chunks/BKlk5iyT.js.gz +0 -0
  637. package/build/client/_app/immutable/chunks/BMYSavKM.js +0 -6
  638. package/build/client/_app/immutable/chunks/BMYSavKM.js.br +0 -0
  639. package/build/client/_app/immutable/chunks/BMYSavKM.js.gz +0 -0
  640. package/build/client/_app/immutable/chunks/BQJs3N6E.js +0 -1
  641. package/build/client/_app/immutable/chunks/BQJs3N6E.js.br +0 -0
  642. package/build/client/_app/immutable/chunks/BQJs3N6E.js.gz +0 -0
  643. package/build/client/_app/immutable/chunks/BSkB5QuD.js +0 -6
  644. package/build/client/_app/immutable/chunks/BSkB5QuD.js.br +0 -0
  645. package/build/client/_app/immutable/chunks/BSkB5QuD.js.gz +0 -0
  646. package/build/client/_app/immutable/chunks/BXh99ZNk.js +0 -1
  647. package/build/client/_app/immutable/chunks/BXh99ZNk.js.br +0 -0
  648. package/build/client/_app/immutable/chunks/BXh99ZNk.js.gz +0 -0
  649. package/build/client/_app/immutable/chunks/BY8d35y9.js +0 -16
  650. package/build/client/_app/immutable/chunks/BY8d35y9.js.br +0 -0
  651. package/build/client/_app/immutable/chunks/BY8d35y9.js.gz +0 -0
  652. package/build/client/_app/immutable/chunks/B_RIpUuZ.js +0 -1
  653. package/build/client/_app/immutable/chunks/B_RIpUuZ.js.br +0 -0
  654. package/build/client/_app/immutable/chunks/B_RIpUuZ.js.gz +0 -0
  655. package/build/client/_app/immutable/chunks/B_c3zf-v.js +0 -6
  656. package/build/client/_app/immutable/chunks/B_c3zf-v.js.br +0 -0
  657. package/build/client/_app/immutable/chunks/B_c3zf-v.js.gz +0 -0
  658. package/build/client/_app/immutable/chunks/B_fMsGYe.js +0 -6
  659. package/build/client/_app/immutable/chunks/B_fMsGYe.js.br +0 -0
  660. package/build/client/_app/immutable/chunks/B_fMsGYe.js.gz +0 -0
  661. package/build/client/_app/immutable/chunks/BaJupSGV.js +0 -6
  662. package/build/client/_app/immutable/chunks/BaJupSGV.js.br +0 -0
  663. package/build/client/_app/immutable/chunks/BaJupSGV.js.gz +0 -0
  664. package/build/client/_app/immutable/chunks/BaLxmfj-.js +0 -6
  665. package/build/client/_app/immutable/chunks/BaLxmfj-.js.br +0 -0
  666. package/build/client/_app/immutable/chunks/BaLxmfj-.js.gz +0 -0
  667. package/build/client/_app/immutable/chunks/Bc-ZgV77.js +0 -6
  668. package/build/client/_app/immutable/chunks/Bc-ZgV77.js.br +0 -0
  669. package/build/client/_app/immutable/chunks/Bc-ZgV77.js.gz +0 -0
  670. package/build/client/_app/immutable/chunks/Bd-a6hgR.js +0 -1
  671. package/build/client/_app/immutable/chunks/Bd-a6hgR.js.br +0 -0
  672. package/build/client/_app/immutable/chunks/Bd-a6hgR.js.gz +0 -0
  673. package/build/client/_app/immutable/chunks/BfEKNvv3.js +0 -7
  674. package/build/client/_app/immutable/chunks/BfEKNvv3.js.br +0 -0
  675. package/build/client/_app/immutable/chunks/BfEKNvv3.js.gz +0 -0
  676. package/build/client/_app/immutable/chunks/BftRRaUE.js +0 -1
  677. package/build/client/_app/immutable/chunks/BftRRaUE.js.br +0 -0
  678. package/build/client/_app/immutable/chunks/BftRRaUE.js.gz +0 -0
  679. package/build/client/_app/immutable/chunks/Bhzvs7bI.js +0 -6
  680. package/build/client/_app/immutable/chunks/Bhzvs7bI.js.br +0 -0
  681. package/build/client/_app/immutable/chunks/Bhzvs7bI.js.gz +0 -0
  682. package/build/client/_app/immutable/chunks/Bio4gycK.js +0 -6
  683. package/build/client/_app/immutable/chunks/Bio4gycK.js.br +0 -0
  684. package/build/client/_app/immutable/chunks/Bio4gycK.js.gz +0 -0
  685. package/build/client/_app/immutable/chunks/Bm4FdRXc.js +0 -1
  686. package/build/client/_app/immutable/chunks/Bm4FdRXc.js.br +0 -0
  687. package/build/client/_app/immutable/chunks/Bm4FdRXc.js.gz +0 -0
  688. package/build/client/_app/immutable/chunks/BmdpEiKy.js +0 -2
  689. package/build/client/_app/immutable/chunks/BmdpEiKy.js.br +0 -0
  690. package/build/client/_app/immutable/chunks/BmdpEiKy.js.gz +0 -0
  691. package/build/client/_app/immutable/chunks/BoFRg7Ot.js +0 -6
  692. package/build/client/_app/immutable/chunks/BoFRg7Ot.js.br +0 -0
  693. package/build/client/_app/immutable/chunks/BoFRg7Ot.js.gz +0 -0
  694. package/build/client/_app/immutable/chunks/Bqgm2twL.js +0 -6
  695. package/build/client/_app/immutable/chunks/Bqgm2twL.js.br +0 -0
  696. package/build/client/_app/immutable/chunks/Bqgm2twL.js.gz +0 -0
  697. package/build/client/_app/immutable/chunks/BrgZPUOV.js +0 -6
  698. package/build/client/_app/immutable/chunks/BrgZPUOV.js.br +0 -0
  699. package/build/client/_app/immutable/chunks/BrgZPUOV.js.gz +0 -0
  700. package/build/client/_app/immutable/chunks/BsTHnhdd.js +0 -7
  701. package/build/client/_app/immutable/chunks/BsTHnhdd.js.br +0 -0
  702. package/build/client/_app/immutable/chunks/BsTHnhdd.js.gz +0 -0
  703. package/build/client/_app/immutable/chunks/BxZ1WgZm.js +0 -1
  704. package/build/client/_app/immutable/chunks/BxZ1WgZm.js.br +0 -0
  705. package/build/client/_app/immutable/chunks/BxZ1WgZm.js.gz +0 -0
  706. package/build/client/_app/immutable/chunks/C1FmrZbK.js +0 -1
  707. package/build/client/_app/immutable/chunks/C1FmrZbK.js.br +0 -0
  708. package/build/client/_app/immutable/chunks/C1FmrZbK.js.gz +0 -0
  709. package/build/client/_app/immutable/chunks/C4mbwMvt.js +0 -6
  710. package/build/client/_app/immutable/chunks/C4mbwMvt.js.br +0 -0
  711. package/build/client/_app/immutable/chunks/C4mbwMvt.js.gz +0 -0
  712. package/build/client/_app/immutable/chunks/C5WLch3f.js +0 -6
  713. package/build/client/_app/immutable/chunks/C5WLch3f.js.br +0 -0
  714. package/build/client/_app/immutable/chunks/C5WLch3f.js.gz +0 -0
  715. package/build/client/_app/immutable/chunks/C9LBPFJH.js +0 -1
  716. package/build/client/_app/immutable/chunks/C9LBPFJH.js.br +0 -0
  717. package/build/client/_app/immutable/chunks/C9LBPFJH.js.gz +0 -0
  718. package/build/client/_app/immutable/chunks/CAFoob5N.js +0 -6
  719. package/build/client/_app/immutable/chunks/CAFoob5N.js.br +0 -0
  720. package/build/client/_app/immutable/chunks/CAFoob5N.js.gz +0 -0
  721. package/build/client/_app/immutable/chunks/CCSDG5nI.js +0 -6
  722. package/build/client/_app/immutable/chunks/CCSDG5nI.js.br +0 -0
  723. package/build/client/_app/immutable/chunks/CCSDG5nI.js.gz +0 -0
  724. package/build/client/_app/immutable/chunks/CDGzqUPQ.js +0 -6
  725. package/build/client/_app/immutable/chunks/CDGzqUPQ.js.br +0 -0
  726. package/build/client/_app/immutable/chunks/CDGzqUPQ.js.gz +0 -0
  727. package/build/client/_app/immutable/chunks/CDntyWJ8.js +0 -6
  728. package/build/client/_app/immutable/chunks/CDntyWJ8.js.br +0 -0
  729. package/build/client/_app/immutable/chunks/CDntyWJ8.js.gz +0 -0
  730. package/build/client/_app/immutable/chunks/CFKIUWau.js +0 -6
  731. package/build/client/_app/immutable/chunks/CFKIUWau.js.br +0 -0
  732. package/build/client/_app/immutable/chunks/CFKIUWau.js.gz +0 -0
  733. package/build/client/_app/immutable/chunks/CFOPXBzS.js +0 -6
  734. package/build/client/_app/immutable/chunks/CFOPXBzS.js.br +0 -0
  735. package/build/client/_app/immutable/chunks/CFOPXBzS.js.gz +0 -0
  736. package/build/client/_app/immutable/chunks/CGinwM47.js +0 -8
  737. package/build/client/_app/immutable/chunks/CGinwM47.js.br +0 -0
  738. package/build/client/_app/immutable/chunks/CGinwM47.js.gz +0 -0
  739. package/build/client/_app/immutable/chunks/CH3XJDoO.js +0 -1
  740. package/build/client/_app/immutable/chunks/CH3XJDoO.js.br +0 -0
  741. package/build/client/_app/immutable/chunks/CH3XJDoO.js.gz +0 -0
  742. package/build/client/_app/immutable/chunks/CLLBncYj.js +0 -6
  743. package/build/client/_app/immutable/chunks/CLLBncYj.js.br +0 -0
  744. package/build/client/_app/immutable/chunks/CLLBncYj.js.gz +0 -0
  745. package/build/client/_app/immutable/chunks/COyEY5Pt.js +0 -7
  746. package/build/client/_app/immutable/chunks/COyEY5Pt.js.br +0 -0
  747. package/build/client/_app/immutable/chunks/COyEY5Pt.js.gz +0 -0
  748. package/build/client/_app/immutable/chunks/CPajHgWi.js +0 -6
  749. package/build/client/_app/immutable/chunks/CPajHgWi.js.br +0 -0
  750. package/build/client/_app/immutable/chunks/CPajHgWi.js.gz +0 -0
  751. package/build/client/_app/immutable/chunks/CVwtpugi.js +0 -6
  752. package/build/client/_app/immutable/chunks/CVwtpugi.js.br +0 -0
  753. package/build/client/_app/immutable/chunks/CVwtpugi.js.gz +0 -0
  754. package/build/client/_app/immutable/chunks/CWVkeRMt.js +0 -3
  755. package/build/client/_app/immutable/chunks/CWVkeRMt.js.br +0 -0
  756. package/build/client/_app/immutable/chunks/CWVkeRMt.js.gz +0 -0
  757. package/build/client/_app/immutable/chunks/CX-rkNHf.js +0 -6
  758. package/build/client/_app/immutable/chunks/CX-rkNHf.js.br +0 -0
  759. package/build/client/_app/immutable/chunks/CX-rkNHf.js.gz +0 -0
  760. package/build/client/_app/immutable/chunks/CXOwvkN_.js +0 -6
  761. package/build/client/_app/immutable/chunks/CXOwvkN_.js.br +0 -0
  762. package/build/client/_app/immutable/chunks/CXOwvkN_.js.gz +0 -0
  763. package/build/client/_app/immutable/chunks/CXfw8fai.js +0 -1
  764. package/build/client/_app/immutable/chunks/CXfw8fai.js.br +0 -2
  765. package/build/client/_app/immutable/chunks/CXfw8fai.js.gz +0 -0
  766. package/build/client/_app/immutable/chunks/CdQndTaG.js +0 -6
  767. package/build/client/_app/immutable/chunks/CdQndTaG.js.br +0 -0
  768. package/build/client/_app/immutable/chunks/CdQndTaG.js.gz +0 -0
  769. package/build/client/_app/immutable/chunks/Ce3n6wWz.js +0 -6
  770. package/build/client/_app/immutable/chunks/Ce3n6wWz.js.br +0 -0
  771. package/build/client/_app/immutable/chunks/Ce3n6wWz.js.gz +0 -0
  772. package/build/client/_app/immutable/chunks/Cg7bfA9N.js +0 -6
  773. package/build/client/_app/immutable/chunks/Cg7bfA9N.js.br +0 -0
  774. package/build/client/_app/immutable/chunks/Cg7bfA9N.js.gz +0 -0
  775. package/build/client/_app/immutable/chunks/Clfp4Zf_.js +0 -1
  776. package/build/client/_app/immutable/chunks/Clfp4Zf_.js.br +0 -0
  777. package/build/client/_app/immutable/chunks/Clfp4Zf_.js.gz +0 -0
  778. package/build/client/_app/immutable/chunks/Cp1zYvxS.js +0 -6
  779. package/build/client/_app/immutable/chunks/Cp1zYvxS.js.br +0 -0
  780. package/build/client/_app/immutable/chunks/Cp1zYvxS.js.gz +0 -0
  781. package/build/client/_app/immutable/chunks/CpIb_Oan.js +0 -6
  782. package/build/client/_app/immutable/chunks/CpIb_Oan.js.br +0 -0
  783. package/build/client/_app/immutable/chunks/CpIb_Oan.js.gz +0 -0
  784. package/build/client/_app/immutable/chunks/Cpb6xl2v.js +0 -6
  785. package/build/client/_app/immutable/chunks/Cpb6xl2v.js.br +0 -0
  786. package/build/client/_app/immutable/chunks/Cpb6xl2v.js.gz +0 -0
  787. package/build/client/_app/immutable/chunks/Cphgjts3.js +0 -6
  788. package/build/client/_app/immutable/chunks/Cphgjts3.js.br +0 -0
  789. package/build/client/_app/immutable/chunks/Cphgjts3.js.gz +0 -0
  790. package/build/client/_app/immutable/chunks/Cr5XqyuF.js +0 -1
  791. package/build/client/_app/immutable/chunks/Cr5XqyuF.js.br +0 -0
  792. package/build/client/_app/immutable/chunks/Cr5XqyuF.js.gz +0 -0
  793. package/build/client/_app/immutable/chunks/CrxwEwqu.js +0 -6
  794. package/build/client/_app/immutable/chunks/CrxwEwqu.js.br +0 -0
  795. package/build/client/_app/immutable/chunks/CrxwEwqu.js.gz +0 -0
  796. package/build/client/_app/immutable/chunks/CwNk8-XU.js +0 -6
  797. package/build/client/_app/immutable/chunks/CwNk8-XU.js.br +0 -0
  798. package/build/client/_app/immutable/chunks/CwNk8-XU.js.gz +0 -0
  799. package/build/client/_app/immutable/chunks/CwmAWymP.js +0 -6
  800. package/build/client/_app/immutable/chunks/CwmAWymP.js.br +0 -0
  801. package/build/client/_app/immutable/chunks/CwmAWymP.js.gz +0 -0
  802. package/build/client/_app/immutable/chunks/CxzD8Edk.js +0 -1
  803. package/build/client/_app/immutable/chunks/CxzD8Edk.js.br +0 -0
  804. package/build/client/_app/immutable/chunks/CxzD8Edk.js.gz +0 -0
  805. package/build/client/_app/immutable/chunks/CzKuDChf.js +0 -6
  806. package/build/client/_app/immutable/chunks/CzKuDChf.js.br +0 -0
  807. package/build/client/_app/immutable/chunks/CzKuDChf.js.gz +0 -0
  808. package/build/client/_app/immutable/chunks/D-MeaMDU.js +0 -6
  809. package/build/client/_app/immutable/chunks/D-MeaMDU.js.br +0 -0
  810. package/build/client/_app/immutable/chunks/D-MeaMDU.js.gz +0 -0
  811. package/build/client/_app/immutable/chunks/D3h14YRZ.js +0 -8
  812. package/build/client/_app/immutable/chunks/D3h14YRZ.js.br +0 -0
  813. package/build/client/_app/immutable/chunks/D3h14YRZ.js.gz +0 -0
  814. package/build/client/_app/immutable/chunks/D5C2fndG.js +0 -6
  815. package/build/client/_app/immutable/chunks/D5C2fndG.js.br +0 -0
  816. package/build/client/_app/immutable/chunks/D5C2fndG.js.gz +0 -0
  817. package/build/client/_app/immutable/chunks/D6iBTJD_.js +0 -1
  818. package/build/client/_app/immutable/chunks/D6iBTJD_.js.br +0 -0
  819. package/build/client/_app/immutable/chunks/D6iBTJD_.js.gz +0 -0
  820. package/build/client/_app/immutable/chunks/DB-s6wHX.js +0 -11
  821. package/build/client/_app/immutable/chunks/DB-s6wHX.js.br +0 -0
  822. package/build/client/_app/immutable/chunks/DB-s6wHX.js.gz +0 -0
  823. package/build/client/_app/immutable/chunks/DDMPVpvs.js +0 -6
  824. package/build/client/_app/immutable/chunks/DDMPVpvs.js.br +0 -0
  825. package/build/client/_app/immutable/chunks/DDMPVpvs.js.gz +0 -0
  826. package/build/client/_app/immutable/chunks/DDwshQtU.js +0 -6
  827. package/build/client/_app/immutable/chunks/DDwshQtU.js.br +0 -0
  828. package/build/client/_app/immutable/chunks/DDwshQtU.js.gz +0 -0
  829. package/build/client/_app/immutable/chunks/DHaeiCBh.js +0 -6
  830. package/build/client/_app/immutable/chunks/DHaeiCBh.js.br +0 -0
  831. package/build/client/_app/immutable/chunks/DHaeiCBh.js.gz +0 -0
  832. package/build/client/_app/immutable/chunks/DLQqXQ6R.js +0 -751
  833. package/build/client/_app/immutable/chunks/DLQqXQ6R.js.br +0 -0
  834. package/build/client/_app/immutable/chunks/DLQqXQ6R.js.gz +0 -0
  835. package/build/client/_app/immutable/chunks/DRIMs3uA.js +0 -6
  836. package/build/client/_app/immutable/chunks/DRIMs3uA.js.br +0 -0
  837. package/build/client/_app/immutable/chunks/DRIMs3uA.js.gz +0 -0
  838. package/build/client/_app/immutable/chunks/DSZPf7rp.js +0 -6
  839. package/build/client/_app/immutable/chunks/DSZPf7rp.js.br +0 -0
  840. package/build/client/_app/immutable/chunks/DSZPf7rp.js.gz +0 -0
  841. package/build/client/_app/immutable/chunks/DTECt2xU.js +0 -6
  842. package/build/client/_app/immutable/chunks/DTECt2xU.js.br +0 -0
  843. package/build/client/_app/immutable/chunks/DTECt2xU.js.gz +0 -0
  844. package/build/client/_app/immutable/chunks/DUeN9t8P.js +0 -6
  845. package/build/client/_app/immutable/chunks/DUeN9t8P.js.br +0 -0
  846. package/build/client/_app/immutable/chunks/DUeN9t8P.js.gz +0 -0
  847. package/build/client/_app/immutable/chunks/DWH0347h.js +0 -6
  848. package/build/client/_app/immutable/chunks/DWH0347h.js.br +0 -0
  849. package/build/client/_app/immutable/chunks/DWH0347h.js.gz +0 -0
  850. package/build/client/_app/immutable/chunks/DXyYeYxl.js +0 -6
  851. package/build/client/_app/immutable/chunks/DXyYeYxl.js.br +0 -0
  852. package/build/client/_app/immutable/chunks/DXyYeYxl.js.gz +0 -0
  853. package/build/client/_app/immutable/chunks/DZxMt77D.js +0 -6
  854. package/build/client/_app/immutable/chunks/DZxMt77D.js.br +0 -0
  855. package/build/client/_app/immutable/chunks/DZxMt77D.js.gz +0 -0
  856. package/build/client/_app/immutable/chunks/D_LCsjN0.js +0 -1
  857. package/build/client/_app/immutable/chunks/D_LCsjN0.js.br +0 -0
  858. package/build/client/_app/immutable/chunks/D_LCsjN0.js.gz +0 -0
  859. package/build/client/_app/immutable/chunks/Dd-8KgV2.js +0 -2
  860. package/build/client/_app/immutable/chunks/Dd-8KgV2.js.br +0 -0
  861. package/build/client/_app/immutable/chunks/Dd-8KgV2.js.gz +0 -0
  862. package/build/client/_app/immutable/chunks/Dd3NCNK9.js +0 -6
  863. package/build/client/_app/immutable/chunks/Dd3NCNK9.js.br +0 -0
  864. package/build/client/_app/immutable/chunks/Dd3NCNK9.js.gz +0 -0
  865. package/build/client/_app/immutable/chunks/DdmShlNz.js +0 -1
  866. package/build/client/_app/immutable/chunks/DdmShlNz.js.br +0 -0
  867. package/build/client/_app/immutable/chunks/DdmShlNz.js.gz +0 -0
  868. package/build/client/_app/immutable/chunks/Df5gZp_x.js +0 -1
  869. package/build/client/_app/immutable/chunks/Df5gZp_x.js.br +0 -0
  870. package/build/client/_app/immutable/chunks/Df5gZp_x.js.gz +0 -0
  871. package/build/client/_app/immutable/chunks/Dfg-7N3Z.js +0 -1
  872. package/build/client/_app/immutable/chunks/Dfg-7N3Z.js.br +0 -0
  873. package/build/client/_app/immutable/chunks/Dfg-7N3Z.js.gz +0 -0
  874. package/build/client/_app/immutable/chunks/DfzH4Xui.js +0 -6
  875. package/build/client/_app/immutable/chunks/DfzH4Xui.js.br +0 -0
  876. package/build/client/_app/immutable/chunks/DfzH4Xui.js.gz +0 -0
  877. package/build/client/_app/immutable/chunks/DgGeUDDh.js +0 -1
  878. package/build/client/_app/immutable/chunks/DgGeUDDh.js.br +0 -0
  879. package/build/client/_app/immutable/chunks/DgGeUDDh.js.gz +0 -0
  880. package/build/client/_app/immutable/chunks/DgyLZaXg.js +0 -6
  881. package/build/client/_app/immutable/chunks/DgyLZaXg.js.br +0 -0
  882. package/build/client/_app/immutable/chunks/DgyLZaXg.js.gz +0 -0
  883. package/build/client/_app/immutable/chunks/DjDhNM9l.js +0 -9
  884. package/build/client/_app/immutable/chunks/DjDhNM9l.js.br +0 -0
  885. package/build/client/_app/immutable/chunks/DjDhNM9l.js.gz +0 -0
  886. package/build/client/_app/immutable/chunks/DnHyzjbg.js +0 -6
  887. package/build/client/_app/immutable/chunks/DnHyzjbg.js.br +0 -0
  888. package/build/client/_app/immutable/chunks/DnHyzjbg.js.gz +0 -0
  889. package/build/client/_app/immutable/chunks/DnsnkygW.js +0 -33
  890. package/build/client/_app/immutable/chunks/DnsnkygW.js.br +0 -0
  891. package/build/client/_app/immutable/chunks/DnsnkygW.js.gz +0 -0
  892. package/build/client/_app/immutable/chunks/Do-VHn0U.js +0 -1
  893. package/build/client/_app/immutable/chunks/Do-VHn0U.js.br +0 -0
  894. package/build/client/_app/immutable/chunks/Do-VHn0U.js.gz +0 -0
  895. package/build/client/_app/immutable/chunks/DrQuvNYM.js +0 -6
  896. package/build/client/_app/immutable/chunks/DrQuvNYM.js.br +0 -0
  897. package/build/client/_app/immutable/chunks/DrQuvNYM.js.gz +0 -0
  898. package/build/client/_app/immutable/chunks/Drc7WvVn.js +0 -6
  899. package/build/client/_app/immutable/chunks/Drc7WvVn.js.br +0 -0
  900. package/build/client/_app/immutable/chunks/Drc7WvVn.js.gz +0 -0
  901. package/build/client/_app/immutable/chunks/DtC6KNFZ.js +0 -2
  902. package/build/client/_app/immutable/chunks/DtC6KNFZ.js.br +0 -0
  903. package/build/client/_app/immutable/chunks/DtC6KNFZ.js.gz +0 -0
  904. package/build/client/_app/immutable/chunks/DwJ7jVG9.js +0 -8
  905. package/build/client/_app/immutable/chunks/DwJ7jVG9.js.br +0 -0
  906. package/build/client/_app/immutable/chunks/DwJ7jVG9.js.gz +0 -0
  907. package/build/client/_app/immutable/chunks/DyP6w7ZV.js +0 -6
  908. package/build/client/_app/immutable/chunks/DyP6w7ZV.js.br +0 -0
  909. package/build/client/_app/immutable/chunks/DyP6w7ZV.js.gz +0 -0
  910. package/build/client/_app/immutable/chunks/LEDvCGy2.js +0 -1
  911. package/build/client/_app/immutable/chunks/LEDvCGy2.js.br +0 -0
  912. package/build/client/_app/immutable/chunks/LEDvCGy2.js.gz +0 -0
  913. package/build/client/_app/immutable/chunks/OA8UcISh.js +0 -1
  914. package/build/client/_app/immutable/chunks/OA8UcISh.js.br +0 -0
  915. package/build/client/_app/immutable/chunks/OA8UcISh.js.gz +0 -0
  916. package/build/client/_app/immutable/chunks/PrCSpCPg.js +0 -1
  917. package/build/client/_app/immutable/chunks/PrCSpCPg.js.br +0 -0
  918. package/build/client/_app/immutable/chunks/PrCSpCPg.js.gz +0 -0
  919. package/build/client/_app/immutable/chunks/Si6VyCMt.js +0 -8
  920. package/build/client/_app/immutable/chunks/Si6VyCMt.js.br +0 -0
  921. package/build/client/_app/immutable/chunks/Si6VyCMt.js.gz +0 -0
  922. package/build/client/_app/immutable/chunks/T0seCQS_.js +0 -1
  923. package/build/client/_app/immutable/chunks/T0seCQS_.js.br +0 -0
  924. package/build/client/_app/immutable/chunks/T0seCQS_.js.gz +0 -0
  925. package/build/client/_app/immutable/chunks/Tw7wswEv.js +0 -6
  926. package/build/client/_app/immutable/chunks/Tw7wswEv.js.br +0 -0
  927. package/build/client/_app/immutable/chunks/Tw7wswEv.js.gz +0 -0
  928. package/build/client/_app/immutable/chunks/W2LAs4ks.js +0 -2
  929. package/build/client/_app/immutable/chunks/W2LAs4ks.js.br +0 -0
  930. package/build/client/_app/immutable/chunks/W2LAs4ks.js.gz +0 -0
  931. package/build/client/_app/immutable/chunks/YWi4-JPR.js +0 -6
  932. package/build/client/_app/immutable/chunks/YWi4-JPR.js.br +0 -0
  933. package/build/client/_app/immutable/chunks/YWi4-JPR.js.gz +0 -0
  934. package/build/client/_app/immutable/chunks/ZGfwyPNq.js +0 -15
  935. package/build/client/_app/immutable/chunks/ZGfwyPNq.js.br +0 -0
  936. package/build/client/_app/immutable/chunks/ZGfwyPNq.js.gz +0 -0
  937. package/build/client/_app/immutable/chunks/Zznr-cwX.js +0 -6
  938. package/build/client/_app/immutable/chunks/Zznr-cwX.js.br +0 -0
  939. package/build/client/_app/immutable/chunks/Zznr-cwX.js.gz +0 -0
  940. package/build/client/_app/immutable/chunks/bynEV6cE.js +0 -9
  941. package/build/client/_app/immutable/chunks/bynEV6cE.js.br +0 -0
  942. package/build/client/_app/immutable/chunks/bynEV6cE.js.gz +0 -0
  943. package/build/client/_app/immutable/chunks/cxBf7mxj.js +0 -1
  944. package/build/client/_app/immutable/chunks/cxBf7mxj.js.br +0 -0
  945. package/build/client/_app/immutable/chunks/cxBf7mxj.js.gz +0 -0
  946. package/build/client/_app/immutable/chunks/dUCx_-0o.js +0 -6
  947. package/build/client/_app/immutable/chunks/dUCx_-0o.js.br +0 -0
  948. package/build/client/_app/immutable/chunks/dUCx_-0o.js.gz +0 -0
  949. package/build/client/_app/immutable/chunks/ddC1NP9R.js +0 -2
  950. package/build/client/_app/immutable/chunks/ddC1NP9R.js.br +0 -0
  951. package/build/client/_app/immutable/chunks/ddC1NP9R.js.gz +0 -0
  952. package/build/client/_app/immutable/chunks/deUWdS0T.js +0 -6
  953. package/build/client/_app/immutable/chunks/deUWdS0T.js.br +0 -0
  954. package/build/client/_app/immutable/chunks/deUWdS0T.js.gz +0 -0
  955. package/build/client/_app/immutable/chunks/g6pAcE-g.js +0 -1
  956. package/build/client/_app/immutable/chunks/g6pAcE-g.js.br +0 -0
  957. package/build/client/_app/immutable/chunks/g6pAcE-g.js.gz +0 -0
  958. package/build/client/_app/immutable/chunks/gULlE0tz.js +0 -1
  959. package/build/client/_app/immutable/chunks/gULlE0tz.js.br +0 -2
  960. package/build/client/_app/immutable/chunks/gULlE0tz.js.gz +0 -0
  961. package/build/client/_app/immutable/chunks/i9-g7ZhI.js +0 -6
  962. package/build/client/_app/immutable/chunks/i9-g7ZhI.js.br +0 -0
  963. package/build/client/_app/immutable/chunks/i9-g7ZhI.js.gz +0 -0
  964. package/build/client/_app/immutable/chunks/nf6ki56Z.js +0 -6
  965. package/build/client/_app/immutable/chunks/nf6ki56Z.js.br +0 -0
  966. package/build/client/_app/immutable/chunks/nf6ki56Z.js.gz +0 -0
  967. package/build/client/_app/immutable/chunks/nt0OWMrn.js +0 -2
  968. package/build/client/_app/immutable/chunks/nt0OWMrn.js.br +0 -0
  969. package/build/client/_app/immutable/chunks/nt0OWMrn.js.gz +0 -0
  970. package/build/client/_app/immutable/chunks/pnP8ivHi.js +0 -6
  971. package/build/client/_app/immutable/chunks/pnP8ivHi.js.br +0 -0
  972. package/build/client/_app/immutable/chunks/pnP8ivHi.js.gz +0 -0
  973. package/build/client/_app/immutable/chunks/r0jEdDRH.js +0 -1
  974. package/build/client/_app/immutable/chunks/r0jEdDRH.js.br +0 -0
  975. package/build/client/_app/immutable/chunks/r0jEdDRH.js.gz +0 -0
  976. package/build/client/_app/immutable/chunks/rUNN04Wq.js +0 -6
  977. package/build/client/_app/immutable/chunks/rUNN04Wq.js.br +0 -0
  978. package/build/client/_app/immutable/chunks/rUNN04Wq.js.gz +0 -0
  979. package/build/client/_app/immutable/chunks/tGk8EFnU.js +0 -6
  980. package/build/client/_app/immutable/chunks/tGk8EFnU.js.br +0 -0
  981. package/build/client/_app/immutable/chunks/tGk8EFnU.js.gz +0 -0
  982. package/build/client/_app/immutable/chunks/xC2C8d09.js +0 -1
  983. package/build/client/_app/immutable/chunks/xC2C8d09.js.br +0 -0
  984. package/build/client/_app/immutable/chunks/xC2C8d09.js.gz +0 -0
  985. package/build/client/_app/immutable/entry/app.C6BwoHPB.js +0 -2
  986. package/build/client/_app/immutable/entry/app.C6BwoHPB.js.br +0 -0
  987. package/build/client/_app/immutable/entry/app.C6BwoHPB.js.gz +0 -0
  988. package/build/client/_app/immutable/entry/start.DtdsXA4D.js +0 -1
  989. package/build/client/_app/immutable/entry/start.DtdsXA4D.js.br +0 -2
  990. package/build/client/_app/immutable/entry/start.DtdsXA4D.js.gz +0 -0
  991. package/build/client/_app/immutable/nodes/0.Be4zhwyU.js +0 -3
  992. package/build/client/_app/immutable/nodes/0.Be4zhwyU.js.br +0 -0
  993. package/build/client/_app/immutable/nodes/0.Be4zhwyU.js.gz +0 -0
  994. package/build/client/_app/immutable/nodes/1.DU-ZnWjM.js +0 -1
  995. package/build/client/_app/immutable/nodes/1.DU-ZnWjM.js.br +0 -0
  996. package/build/client/_app/immutable/nodes/1.DU-ZnWjM.js.gz +0 -0
  997. package/build/client/_app/immutable/nodes/10.CnYak_rj.js +0 -28
  998. package/build/client/_app/immutable/nodes/10.CnYak_rj.js.br +0 -0
  999. package/build/client/_app/immutable/nodes/10.CnYak_rj.js.gz +0 -0
  1000. package/build/client/_app/immutable/nodes/11.CsTD16Gn.js +0 -1
  1001. package/build/client/_app/immutable/nodes/11.CsTD16Gn.js.br +0 -0
  1002. package/build/client/_app/immutable/nodes/11.CsTD16Gn.js.gz +0 -0
  1003. package/build/client/_app/immutable/nodes/12.DYXd_leK.js +0 -1
  1004. package/build/client/_app/immutable/nodes/12.DYXd_leK.js.br +0 -0
  1005. package/build/client/_app/immutable/nodes/12.DYXd_leK.js.gz +0 -0
  1006. package/build/client/_app/immutable/nodes/13.DQMjAUKq.js +0 -1
  1007. package/build/client/_app/immutable/nodes/13.DQMjAUKq.js.br +0 -1
  1008. package/build/client/_app/immutable/nodes/13.DQMjAUKq.js.gz +0 -0
  1009. package/build/client/_app/immutable/nodes/14.C59tyoG0.js +0 -1
  1010. package/build/client/_app/immutable/nodes/14.C59tyoG0.js.br +0 -0
  1011. package/build/client/_app/immutable/nodes/14.C59tyoG0.js.gz +0 -0
  1012. package/build/client/_app/immutable/nodes/15.DZxmOvq_.js +0 -1
  1013. package/build/client/_app/immutable/nodes/15.DZxmOvq_.js.br +0 -0
  1014. package/build/client/_app/immutable/nodes/15.DZxmOvq_.js.gz +0 -0
  1015. package/build/client/_app/immutable/nodes/16.DRwcAQjb.js +0 -1
  1016. package/build/client/_app/immutable/nodes/16.DRwcAQjb.js.br +0 -0
  1017. package/build/client/_app/immutable/nodes/16.DRwcAQjb.js.gz +0 -0
  1018. package/build/client/_app/immutable/nodes/17.6u3BMaGP.js +0 -3
  1019. package/build/client/_app/immutable/nodes/17.6u3BMaGP.js.br +0 -0
  1020. package/build/client/_app/immutable/nodes/17.6u3BMaGP.js.gz +0 -0
  1021. package/build/client/_app/immutable/nodes/18.B74hqK3k.js +0 -11
  1022. package/build/client/_app/immutable/nodes/18.B74hqK3k.js.br +0 -0
  1023. package/build/client/_app/immutable/nodes/18.B74hqK3k.js.gz +0 -0
  1024. package/build/client/_app/immutable/nodes/2.tsu7vFWw.js +0 -35
  1025. package/build/client/_app/immutable/nodes/2.tsu7vFWw.js.br +0 -0
  1026. package/build/client/_app/immutable/nodes/2.tsu7vFWw.js.gz +0 -0
  1027. package/build/client/_app/immutable/nodes/3.uagy_HG1.js +0 -1
  1028. package/build/client/_app/immutable/nodes/3.uagy_HG1.js.br +0 -0
  1029. package/build/client/_app/immutable/nodes/3.uagy_HG1.js.gz +0 -0
  1030. package/build/client/_app/immutable/nodes/4.DMbfNKYL.js +0 -1
  1031. package/build/client/_app/immutable/nodes/4.DMbfNKYL.js.br +0 -0
  1032. package/build/client/_app/immutable/nodes/4.DMbfNKYL.js.gz +0 -0
  1033. package/build/client/_app/immutable/nodes/5.DpWrPX3L.js +0 -1
  1034. package/build/client/_app/immutable/nodes/5.DpWrPX3L.js.br +0 -0
  1035. package/build/client/_app/immutable/nodes/5.DpWrPX3L.js.gz +0 -0
  1036. package/build/client/_app/immutable/nodes/6.D7wtfdve.js +0 -1
  1037. package/build/client/_app/immutable/nodes/6.D7wtfdve.js.br +0 -0
  1038. package/build/client/_app/immutable/nodes/6.D7wtfdve.js.gz +0 -0
  1039. package/build/client/_app/immutable/nodes/7.7N4iPidV.js +0 -1
  1040. package/build/client/_app/immutable/nodes/7.7N4iPidV.js.br +0 -1
  1041. package/build/client/_app/immutable/nodes/7.7N4iPidV.js.gz +0 -0
  1042. package/build/client/_app/immutable/nodes/8.Bo50UIdy.js +0 -2
  1043. package/build/client/_app/immutable/nodes/8.Bo50UIdy.js.br +0 -0
  1044. package/build/client/_app/immutable/nodes/8.Bo50UIdy.js.gz +0 -0
  1045. package/build/client/_app/immutable/nodes/9.B2xXyeYp.js +0 -2
  1046. package/build/client/_app/immutable/nodes/9.B2xXyeYp.js.br +0 -0
  1047. package/build/client/_app/immutable/nodes/9.B2xXyeYp.js.gz +0 -0
  1048. package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js +0 -84
  1049. package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.br +0 -0
  1050. package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.gz +0 -0
  1051. package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js +0 -12
  1052. package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.br +0 -0
  1053. package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.gz +0 -0
  1054. package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js +0 -461
  1055. package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.br +0 -0
  1056. package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.gz +0 -0
  1057. package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js +0 -49
  1058. package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.br +0 -0
  1059. package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.gz +0 -0
  1060. package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js +0 -51334
  1061. package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.br +0 -0
  1062. package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.gz +0 -0
  1063. package/build/client/_app/version.json +0 -1
  1064. package/build/client/_app/version.json.br +0 -0
  1065. package/build/client/_app/version.json.gz +0 -0
  1066. package/build/env.js +0 -45
  1067. package/build/handler.js +0 -1390
  1068. package/build/index.js +0 -334
  1069. package/build/server/chunks/0-BFGwTpfy.js +0 -9
  1070. package/build/server/chunks/0-BFGwTpfy.js.map +0 -1
  1071. package/build/server/chunks/1-B_bvJcKE.js +0 -9
  1072. package/build/server/chunks/1-B_bvJcKE.js.map +0 -1
  1073. package/build/server/chunks/10-CVT4oo13.js +0 -9
  1074. package/build/server/chunks/10-CVT4oo13.js.map +0 -1
  1075. package/build/server/chunks/11-CB5q84io.js +0 -25
  1076. package/build/server/chunks/11-CB5q84io.js.map +0 -1
  1077. package/build/server/chunks/12-CfqC_Y1R.js +0 -19
  1078. package/build/server/chunks/12-CfqC_Y1R.js.map +0 -1
  1079. package/build/server/chunks/13-ByddfU7G.js +0 -21
  1080. package/build/server/chunks/13-ByddfU7G.js.map +0 -1
  1081. package/build/server/chunks/14-Dk7DCwHC.js +0 -20
  1082. package/build/server/chunks/14-Dk7DCwHC.js.map +0 -1
  1083. package/build/server/chunks/15-B6cgfT20.js +0 -9
  1084. package/build/server/chunks/15-B6cgfT20.js.map +0 -1
  1085. package/build/server/chunks/16-Y9KLA9UF.js +0 -20
  1086. package/build/server/chunks/16-Y9KLA9UF.js.map +0 -1
  1087. package/build/server/chunks/17-fi2rlX_T.js +0 -9
  1088. package/build/server/chunks/17-fi2rlX_T.js.map +0 -1
  1089. package/build/server/chunks/18-CdypjWwX.js +0 -9
  1090. package/build/server/chunks/18-CdypjWwX.js.map +0 -1
  1091. package/build/server/chunks/2-CkwyQ1U4.js +0 -9
  1092. package/build/server/chunks/2-CkwyQ1U4.js.map +0 -1
  1093. package/build/server/chunks/3-BXLsvzRq.js +0 -9
  1094. package/build/server/chunks/3-BXLsvzRq.js.map +0 -1
  1095. package/build/server/chunks/4-C3Me7zq3.js +0 -9
  1096. package/build/server/chunks/4-C3Me7zq3.js.map +0 -1
  1097. package/build/server/chunks/5-DYS5LmK2.js +0 -9
  1098. package/build/server/chunks/5-DYS5LmK2.js.map +0 -1
  1099. package/build/server/chunks/6-Cp6GA1FS.js +0 -9
  1100. package/build/server/chunks/6-Cp6GA1FS.js.map +0 -1
  1101. package/build/server/chunks/7-olXOjo4r.js +0 -25
  1102. package/build/server/chunks/7-olXOjo4r.js.map +0 -1
  1103. package/build/server/chunks/8-Csly_0ub.js +0 -9
  1104. package/build/server/chunks/8-Csly_0ub.js.map +0 -1
  1105. package/build/server/chunks/9-C1UZfJDT.js +0 -9
  1106. package/build/server/chunks/9-C1UZfJDT.js.map +0 -1
  1107. package/build/server/chunks/AgentSidebar-BqqgUCT2.js +0 -170
  1108. package/build/server/chunks/AgentSidebar-BqqgUCT2.js.map +0 -1
  1109. package/build/server/chunks/Button-Huqrc2wY.js +0 -47
  1110. package/build/server/chunks/Button-Huqrc2wY.js.map +0 -1
  1111. package/build/server/chunks/ChatStepTrace-CmyR6NOL.js +0 -572
  1112. package/build/server/chunks/ChatStepTrace-CmyR6NOL.js.map +0 -1
  1113. package/build/server/chunks/Icon-BJfQMgGu.js +0 -77
  1114. package/build/server/chunks/Icon-BJfQMgGu.js.map +0 -1
  1115. package/build/server/chunks/Input-D-uxKbuX.js +0 -22
  1116. package/build/server/chunks/Input-D-uxKbuX.js.map +0 -1
  1117. package/build/server/chunks/Modal-B_fVcSLK.js +0 -2607
  1118. package/build/server/chunks/Modal-B_fVcSLK.js.map +0 -1
  1119. package/build/server/chunks/Panel-mV52rK4D.js +0 -11
  1120. package/build/server/chunks/Panel-mV52rK4D.js.map +0 -1
  1121. package/build/server/chunks/Tab-tFWS4zzn.js +0 -80
  1122. package/build/server/chunks/Tab-tFWS4zzn.js.map +0 -1
  1123. package/build/server/chunks/_layout.svelte-BjBXlTt-.js +0 -45
  1124. package/build/server/chunks/_layout.svelte-BjBXlTt-.js.map +0 -1
  1125. package/build/server/chunks/_layout.svelte-Bv87ouh2.js +0 -59
  1126. package/build/server/chunks/_layout.svelte-Bv87ouh2.js.map +0 -1
  1127. package/build/server/chunks/_layout.svelte-CHJ_Q00I.js +0 -1886
  1128. package/build/server/chunks/_layout.svelte-CHJ_Q00I.js.map +0 -1
  1129. package/build/server/chunks/_layout.svelte-DPP4TE7p.js +0 -739
  1130. package/build/server/chunks/_layout.svelte-DPP4TE7p.js.map +0 -1
  1131. package/build/server/chunks/_page.svelte-CDGPJuVG.js +0 -1431
  1132. package/build/server/chunks/_page.svelte-CDGPJuVG.js.map +0 -1
  1133. package/build/server/chunks/_page.svelte-CXjHZqjR.js +0 -946
  1134. package/build/server/chunks/_page.svelte-CXjHZqjR.js.map +0 -1
  1135. package/build/server/chunks/_page.svelte-CZXVTrWJ.js +0 -61
  1136. package/build/server/chunks/_page.svelte-CZXVTrWJ.js.map +0 -1
  1137. package/build/server/chunks/_page.svelte-CvPyTgqp.js +0 -47
  1138. package/build/server/chunks/_page.svelte-CvPyTgqp.js.map +0 -1
  1139. package/build/server/chunks/_page.svelte-DHE9UaxV.js +0 -69
  1140. package/build/server/chunks/_page.svelte-DHE9UaxV.js.map +0 -1
  1141. package/build/server/chunks/_page.svelte-DSLYtPvs.js +0 -13
  1142. package/build/server/chunks/_page.svelte-DSLYtPvs.js.map +0 -1
  1143. package/build/server/chunks/_page.svelte-Yjru58jZ.js +0 -1732
  1144. package/build/server/chunks/_page.svelte-Yjru58jZ.js.map +0 -1
  1145. package/build/server/chunks/_page.svelte-nQ_thh1S.js +0 -2211
  1146. package/build/server/chunks/_page.svelte-nQ_thh1S.js.map +0 -1
  1147. package/build/server/chunks/_server.ts-Bn0p9hMs.js +0 -49
  1148. package/build/server/chunks/_server.ts-Bn0p9hMs.js.map +0 -1
  1149. package/build/server/chunks/_server.ts-CbcaMe9z.js +0 -38
  1150. package/build/server/chunks/_server.ts-CbcaMe9z.js.map +0 -1
  1151. package/build/server/chunks/_server.ts-CtO28tLc.js +0 -23
  1152. package/build/server/chunks/_server.ts-CtO28tLc.js.map +0 -1
  1153. package/build/server/chunks/_server.ts-D_eo_OAK.js +0 -139
  1154. package/build/server/chunks/_server.ts-D_eo_OAK.js.map +0 -1
  1155. package/build/server/chunks/agents-context-BdX2j9DI.js +0 -6
  1156. package/build/server/chunks/agents-context-BdX2j9DI.js.map +0 -1
  1157. package/build/server/chunks/chat-content.svelte-x4GXVNwU.js +0 -74
  1158. package/build/server/chunks/chat-content.svelte-x4GXVNwU.js.map +0 -1
  1159. package/build/server/chunks/client-D1Y2ZQJN.js +0 -33
  1160. package/build/server/chunks/client-D1Y2ZQJN.js.map +0 -1
  1161. package/build/server/chunks/conversation-view-memory-CMgSQUdu.js +0 -20
  1162. package/build/server/chunks/conversation-view-memory-CMgSQUdu.js.map +0 -1
  1163. package/build/server/chunks/edit-workspace-context-ClnqepZ4.js +0 -6
  1164. package/build/server/chunks/edit-workspace-context-ClnqepZ4.js.map +0 -1
  1165. package/build/server/chunks/error.svelte-B5VtiMGd.js +0 -15
  1166. package/build/server/chunks/error.svelte-B5VtiMGd.js.map +0 -1
  1167. package/build/server/chunks/hooks.universal-BJphIAi-.js +0 -8
  1168. package/build/server/chunks/hooks.universal-BJphIAi-.js.map +0 -1
  1169. package/build/server/chunks/index-Do08hKbr.js +0 -4065
  1170. package/build/server/chunks/index-Do08hKbr.js.map +0 -1
  1171. package/build/server/chunks/index-NcxaM188.js +0 -236
  1172. package/build/server/chunks/index-NcxaM188.js.map +0 -1
  1173. package/build/server/chunks/index-server-CHFC9Apw.js +0 -17
  1174. package/build/server/chunks/index-server-CHFC9Apw.js.map +0 -1
  1175. package/build/server/chunks/index2-B_Xf0ugP.js +0 -24
  1176. package/build/server/chunks/index2-B_Xf0ugP.js.map +0 -1
  1177. package/build/server/chunks/index3-C9gC86lU.js +0 -63
  1178. package/build/server/chunks/index3-C9gC86lU.js.map +0 -1
  1179. package/build/server/chunks/latency--f3JYIRg.js +0 -157
  1180. package/build/server/chunks/latency--f3JYIRg.js.map +0 -1
  1181. package/build/server/chunks/latency-recordings-CqioXMQl.js +0 -117
  1182. package/build/server/chunks/latency-recordings-CqioXMQl.js.map +0 -1
  1183. package/build/server/chunks/log-content.svelte-D5gN0L7Q.js +0 -7
  1184. package/build/server/chunks/log-content.svelte-D5gN0L7Q.js.map +0 -1
  1185. package/build/server/chunks/root-DoSdrdfw.js +0 -1266
  1186. package/build/server/chunks/root-DoSdrdfw.js.map +0 -1
  1187. package/build/server/chunks/shared-server-DaWdgxVh.js +0 -11
  1188. package/build/server/chunks/shared-server-DaWdgxVh.js.map +0 -1
  1189. package/build/server/chunks/source-selection-1aBuBpkL.js +0 -286
  1190. package/build/server/chunks/source-selection-1aBuBpkL.js.map +0 -1
  1191. package/build/server/chunks/sources.server-C2PLxQXh.js +0 -71
  1192. package/build/server/chunks/sources.server-C2PLxQXh.js.map +0 -1
  1193. package/build/server/chunks/state.svelte-B2OaeWMp.js +0 -11
  1194. package/build/server/chunks/state.svelte-B2OaeWMp.js.map +0 -1
  1195. package/build/server/chunks/steps-DzZCg39h.js +0 -8
  1196. package/build/server/chunks/steps-DzZCg39h.js.map +0 -1
  1197. package/build/server/chunks/trpc-client-D8L6vWf4.js +0 -14
  1198. package/build/server/chunks/trpc-client-D8L6vWf4.js.map +0 -1
  1199. package/build/server/index.js +0 -5995
  1200. package/build/server/index.js.map +0 -1
  1201. package/build/server/manifest.js +0 -181
  1202. package/build/server/manifest.js.map +0 -1
  1203. package/build/shims.js +0 -32
  1204. package/src/backend/lib/apply-v4a-diff.spec.ts +0 -45
  1205. package/src/backend/lib/apply-v4a-diff.ts +0 -167
  1206. package/src/backend/lib/backend-restart.ts +0 -15
  1207. package/src/backend/lib/decode-html-entities.spec.ts +0 -28
  1208. package/src/backend/lib/decode-html-entities.ts +0 -25
  1209. package/src/backend/lib/get-agent-factories.spec.ts +0 -59
  1210. package/src/backend/lib/get-agent-factories.ts +0 -118
  1211. package/src/backend/lib/get-root-path.ts +0 -89
  1212. package/src/backend/lib/import-nonce.ts +0 -10
  1213. package/src/backend/lib/middleware/cors.ts +0 -14
  1214. package/src/backend/lib/project-api.ts +0 -15
  1215. package/src/backend/lib/project-data-dir.spec.ts +0 -19
  1216. package/src/backend/lib/project-data-dir.ts +0 -9
  1217. package/src/backend/lib/trpc-context.ts +0 -8
  1218. package/src/backend/lib/voice-agent-lifecycle.test.ts +0 -31
  1219. package/src/backend/lib/voice-agent-lifecycle.ts +0 -16
  1220. package/src/backend/region/router.ts +0 -54
  1221. package/src/backend/roleplay/agent-loader.ts +0 -49
  1222. package/src/backend/roleplay/agents.ts +0 -756
  1223. package/src/backend/roleplay/fs-persistence.ts +0 -81
  1224. package/src/backend/roleplay/logger.ts +0 -30
  1225. package/src/backend/roleplay/message-dispatcher.ts +0 -93
  1226. package/src/backend/roleplay/old-server.ts +0 -96
  1227. package/src/backend/roleplay/prompt-edit-progress.ts +0 -36
  1228. package/src/backend/roleplay/prompt-edit-proposals.ts +0 -72
  1229. package/src/backend/roleplay/prompt-file.ts +0 -59
  1230. package/src/backend/roleplay/router.spec.ts +0 -75
  1231. package/src/backend/roleplay/router.ts +0 -468
  1232. package/src/backend/roleplay/scheduler.ts +0 -76
  1233. package/src/backend/roleplay/schema-file.spec.ts +0 -38
  1234. package/src/backend/roleplay/schema-file.ts +0 -33
  1235. package/src/backend/roleplay/step-registry.spec.ts +0 -20
  1236. package/src/backend/roleplay/step-registry.ts +0 -22
  1237. package/src/backend/roleplay/suggest-file-edit.ts +0 -160
  1238. package/src/backend/roleplay/suggest-prompt-edit.ts +0 -34
  1239. package/src/backend/roleplay/suggest-test-fix.spec.ts +0 -50
  1240. package/src/backend/roleplay/suggest-test-fix.ts +0 -65
  1241. package/src/backend/roleplay/test-fix-proposal-acceptance.spec.ts +0 -253
  1242. package/src/backend/roleplay/trace-serialization.spec.ts +0 -35
  1243. package/src/backend/roleplay/trace-serialization.ts +0 -57
  1244. package/src/backend/roleplay/variants.spec.ts +0 -53
  1245. package/src/backend/roleplay/variants.ts +0 -298
  1246. package/src/backend/server.ts +0 -70
  1247. package/src/backend/tests/academy-json.spec.ts +0 -97
  1248. package/src/backend/tests/academy.ts +0 -960
  1249. package/src/backend/tests/active-test-runs.spec.ts +0 -27
  1250. package/src/backend/tests/active-test-runs.ts +0 -41
  1251. package/src/backend/tests/analyze.ts +0 -533
  1252. package/src/backend/tests/best-effort-log-writer.spec.ts +0 -39
  1253. package/src/backend/tests/best-effort-log-writer.ts +0 -52
  1254. package/src/backend/tests/context-utils.ts +0 -26
  1255. package/src/backend/tests/data.spec.ts +0 -225
  1256. package/src/backend/tests/data.ts +0 -802
  1257. package/src/backend/tests/emulate-agents.spec.ts +0 -106
  1258. package/src/backend/tests/emulate-agents.ts +0 -244
  1259. package/src/backend/tests/json-field-match.ts +0 -94
  1260. package/src/backend/tests/openai-prompt-cache.ts +0 -68
  1261. package/src/backend/tests/pii-sanitized-test-drafts.spec.ts +0 -163
  1262. package/src/backend/tests/pii-sanitized-test-drafts.ts +0 -106
  1263. package/src/backend/tests/pii-sanitizer.spec.ts +0 -261
  1264. package/src/backend/tests/pii-sanitizer.ts +0 -282
  1265. package/src/backend/tests/prompt-issues.ts +0 -207
  1266. package/src/backend/tests/promptfoo-runtime.spec.ts +0 -41
  1267. package/src/backend/tests/promptfoo-runtime.ts +0 -27
  1268. package/src/backend/tests/report-files.spec.ts +0 -44
  1269. package/src/backend/tests/report-files.ts +0 -120
  1270. package/src/backend/tests/router.ts +0 -374
  1271. package/src/backend/tests/suggest-test-history-edit.spec.ts +0 -20
  1272. package/src/backend/tests/suggest-test-history-edit.ts +0 -52
  1273. package/src/backend/tests/suite.spec.ts +0 -122
  1274. package/src/backend/tests/suite.ts +0 -236
  1275. package/src/backend/tests/test-edit-source.spec.ts +0 -61
  1276. package/src/backend/tests/test-edit-source.ts +0 -34
  1277. package/src/backend/tests/test-history-edit-proposals.ts +0 -69
  1278. package/src/backend/tests/test-history-overrides.spec.ts +0 -24
  1279. package/src/backend/tests/test-selection.ts +0 -27
  1280. package/src/backend/traces/latency-recordings.ts +0 -176
  1281. package/src/lib/agent-catalog.ts +0 -4
  1282. package/src/lib/agents-context.ts +0 -8
  1283. package/src/lib/api-telescope/client.ts +0 -199
  1284. package/src/lib/api-telescope/index.ts +0 -4
  1285. package/src/lib/api-telescope/latency-timeline-view-state.spec.ts +0 -25
  1286. package/src/lib/api-telescope/latency-timeline-view-state.ts +0 -86
  1287. package/src/lib/api-telescope/latency.ts +0 -252
  1288. package/src/lib/api-telescope/source-selection.spec.ts +0 -44
  1289. package/src/lib/api-telescope/source-selection.ts +0 -48
  1290. package/src/lib/api-telescope/sources.server.ts +0 -94
  1291. package/src/lib/api-telescope/types.ts +0 -171
  1292. package/src/lib/components/Button.svelte +0 -62
  1293. package/src/lib/components/CollapseExpand.svelte +0 -425
  1294. package/src/lib/components/CopyTracesDropdown.svelte +0 -118
  1295. package/src/lib/components/Dialog.svelte +0 -69
  1296. package/src/lib/components/Dropdown.svelte +0 -111
  1297. package/src/lib/components/History.svelte +0 -174
  1298. package/src/lib/components/Icon.svelte +0 -94
  1299. package/src/lib/components/Input.svelte +0 -43
  1300. package/src/lib/components/Link.svelte +0 -45
  1301. package/src/lib/components/Modal.svelte +0 -74
  1302. package/src/lib/components/Panel.svelte +0 -12
  1303. package/src/lib/components/PopoverModal.svelte +0 -34
  1304. package/src/lib/components/Popper.svelte +0 -109
  1305. package/src/lib/components/Tab.svelte +0 -89
  1306. package/src/lib/components/Tabs.svelte +0 -140
  1307. package/src/lib/components/Textarea.svelte +0 -41
  1308. package/src/lib/components/agent-colors.ts +0 -70
  1309. package/src/lib/dom/text-selection.ts +0 -97
  1310. package/src/lib/edit/edit-vm.spec.ts +0 -115
  1311. package/src/lib/edit/edit-vm.ts +0 -169
  1312. package/src/lib/edit/edit-workspace-context.ts +0 -97
  1313. package/src/lib/edit/highlight-styles.spec.ts +0 -14
  1314. package/src/lib/edit/prompt-highlighter.spec.ts +0 -80
  1315. package/src/lib/edit/prompt-highlighter.ts +0 -155
  1316. package/src/lib/edit/quote-matching.ts +0 -97
  1317. package/src/lib/edit/test-ai-edit.spec.ts +0 -31
  1318. package/src/lib/edit/test-ai-edit.ts +0 -52
  1319. package/src/lib/monaco/bosun-theme.ts +0 -48
  1320. package/src/lib/monaco/editor-appearance.spec.ts +0 -84
  1321. package/src/lib/monaco/editor-appearance.ts +0 -154
  1322. package/src/lib/monaco/editor-decorations.spec.ts +0 -91
  1323. package/src/lib/monaco/editor-decorations.ts +0 -133
  1324. package/src/lib/monaco/font.ts +0 -2
  1325. package/src/lib/monaco-workers.ts +0 -28
  1326. package/src/lib/steps.ts +0 -19
  1327. package/src/lib/tests/assertion-types.ts +0 -74
  1328. package/src/lib/tests/pii-sanitized-test-draft.ts +0 -50
  1329. package/src/lib/trpc-client.ts +0 -16
  1330. package/src/lib/ws-client.ts +0 -144
  1331. package/src/lib/ws-message.ts +0 -157
  1332. package/tsconfig.json +0 -27
  1333. /package/build/{client/_app → _app}/immutable/assets/codicon.DCmgc-ay.ttf +0 -0
  1334. /package/build/{client/favicon.png → favicon.png} +0 -0
  1335. /package/build/{client/fonts → fonts}/DarkerGrotesque-Black.ttf +0 -0
  1336. /package/build/{client/fonts → fonts}/DarkerGrotesque-Bold.ttf +0 -0
  1337. /package/build/{client/fonts → fonts}/DarkerGrotesque-Light.ttf +0 -0
  1338. /package/build/{client/fonts → fonts}/DarkerGrotesque-Medium.ttf +0 -0
  1339. /package/build/{client/fonts → fonts}/DarkerGrotesque-Regular.ttf +0 -0
  1340. /package/build/{client/fonts → fonts}/DarkerGrotesque-SemiBold.ttf +0 -0
  1341. /package/build/{client/fonts.css → fonts.css} +0 -0
  1342. /package/build/{client/fonts.css.br → fonts.css.br} +0 -0
  1343. /package/build/{client/fonts.css.gz → fonts.css.gz} +0 -0
  1344. /package/build/{client/recombine.svg → recombine.svg} +0 -0
  1345. /package/build/{client/recombine.svg.br → recombine.svg.br} +0 -0
  1346. /package/build/{client/recombine.svg.gz → recombine.svg.gz} +0 -0
  1347. /package/build/{client/telescope-icon.svg → telescope-icon.svg} +0 -0
  1348. /package/build/{client/telescope-icon.svg.br → telescope-icon.svg.br} +0 -0
  1349. /package/build/{client/telescope-icon.svg.gz → telescope-icon.svg.gz} +0 -0
  1350. /package/build/{client/ui → ui}/arrow_tests.svg +0 -0
  1351. /package/build/{client/ui → ui}/arrow_tests.svg.br +0 -0
  1352. /package/build/{client/ui → ui}/arrow_tests.svg.gz +0 -0
  1353. /package/build/{client/ui → ui}/paperclip.svg +0 -0
  1354. /package/build/{client/ui → ui}/paperclip.svg.br +0 -0
  1355. /package/build/{client/ui → ui}/paperclip.svg.gz +0 -0
  1356. /package/build/{client/ui → ui}/send.svg +0 -0
  1357. /package/build/{client/ui → ui}/send.svg.br +0 -0
  1358. /package/build/{client/ui → ui}/send.svg.gz +0 -0
@@ -1,4065 +0,0 @@
1
- const UNDEFINED = -1;
2
- const HOLE = -2;
3
- const NAN = -3;
4
- const POSITIVE_INFINITY = -4;
5
- const NEGATIVE_INFINITY = -5;
6
- const NEGATIVE_ZERO = -6;
7
- const SPARSE = -7;
8
-
9
- // The largest valid value for a JavaScript array's `length` property,
10
- // and the largest valid array index (one less than the max length).
11
- const MAX_ARRAY_LEN = 2 ** 32 - 1;
12
- const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
13
-
14
- /** @type {Record<string, string>} */
15
- const escaped = {
16
- '<': '\\u003C',
17
- '\\': '\\\\',
18
- '\b': '\\b',
19
- '\f': '\\f',
20
- '\n': '\\n',
21
- '\r': '\\r',
22
- '\t': '\\t',
23
- '\u2028': '\\u2028',
24
- '\u2029': '\\u2029'
25
- };
26
-
27
- class DevalueError extends Error {
28
- /**
29
- * @param {string} message
30
- * @param {string[]} keys
31
- * @param {any} [value] - The value that failed to be serialized
32
- * @param {any} [root] - The root value being serialized
33
- */
34
- constructor(message, keys, value, root) {
35
- super(message);
36
- this.name = 'DevalueError';
37
- this.path = keys.join('');
38
- this.value = value;
39
- this.root = root;
40
- }
41
- }
42
-
43
- /** @param {any} thing */
44
- function is_primitive(thing) {
45
- return thing === null || (typeof thing !== 'object' && typeof thing !== 'function');
46
- }
47
-
48
- const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(Object.prototype)
49
- .sort()
50
- .join('\0');
51
-
52
- /** @param {any} thing */
53
- function is_plain_object(thing) {
54
- const proto = Object.getPrototypeOf(thing);
55
-
56
- return (
57
- proto === Object.prototype ||
58
- proto === null ||
59
- Object.getPrototypeOf(proto) === null ||
60
- Object.getOwnPropertyNames(proto).sort().join('\0') === object_proto_names
61
- );
62
- }
63
-
64
- /** @param {any} thing */
65
- function get_type(thing) {
66
- return Object.prototype.toString.call(thing).slice(8, -1);
67
- }
68
-
69
- /** @param {string} char */
70
- function get_escaped_char(char) {
71
- switch (char) {
72
- case '"':
73
- return '\\"';
74
- case '<':
75
- return '\\u003C';
76
- case '\\':
77
- return '\\\\';
78
- case '\n':
79
- return '\\n';
80
- case '\r':
81
- return '\\r';
82
- case '\t':
83
- return '\\t';
84
- case '\b':
85
- return '\\b';
86
- case '\f':
87
- return '\\f';
88
- case '\u2028':
89
- return '\\u2028';
90
- case '\u2029':
91
- return '\\u2029';
92
- default:
93
- return char < ' ' ? `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}` : '';
94
- }
95
- }
96
-
97
- /** @param {string} str */
98
- function stringify_string(str) {
99
- let result = '';
100
- let last_pos = 0;
101
- const len = str.length;
102
-
103
- for (let i = 0; i < len; i += 1) {
104
- const char = str[i];
105
- const replacement = get_escaped_char(char);
106
- if (replacement) {
107
- result += str.slice(last_pos, i) + replacement;
108
- last_pos = i + 1;
109
- }
110
- }
111
-
112
- return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
113
- }
114
-
115
- /** @param {Record<string | symbol, any>} object */
116
- function enumerable_symbols(object) {
117
- return Object.getOwnPropertySymbols(object).filter(
118
- (symbol) => Object.getOwnPropertyDescriptor(object, symbol).enumerable
119
- );
120
- }
121
-
122
- const is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
123
-
124
- /** @param {string} key */
125
- function stringify_key(key) {
126
- return is_identifier.test(key) ? '.' + key : '[' + JSON.stringify(key) + ']';
127
- }
128
-
129
- /** @param {number} n */
130
- function is_valid_array_index(n) {
131
- if (!Number.isInteger(n)) return false;
132
- if (n < 0) return false;
133
- if (n > MAX_ARRAY_INDEX) return false;
134
- return true;
135
- }
136
-
137
- /** @param {number} n */
138
- function is_valid_array_len(n) {
139
- if (!Number.isInteger(n)) return false;
140
- if (n < 0) return false;
141
- if (n > MAX_ARRAY_LEN) return false;
142
- return true;
143
- }
144
-
145
- /** @param {string} s */
146
- function is_valid_array_index_string(s) {
147
- if (s.length === 0) return false;
148
- if (s.length > 1 && s.charCodeAt(0) === 48) return false; // leading zero
149
- for (let i = 0; i < s.length; i++) {
150
- const c = s.charCodeAt(i);
151
- if (c < 48 || c > 57) return false;
152
- }
153
- // by this point we know it's a string of digits, but it has to be within
154
- // the range of valid array indices
155
- return is_valid_array_index(+s);
156
- }
157
-
158
- /**
159
- * Finds the populated indices of an array.
160
- * @param {unknown[]} array
161
- */
162
- function valid_array_indices(array) {
163
- const keys = Object.keys(array);
164
- for (var i = keys.length - 1; i >= 0; i--) {
165
- if (is_valid_array_index_string(keys[i])) {
166
- break;
167
- }
168
- }
169
- keys.length = i + 1;
170
- return keys;
171
- }
172
-
173
- const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$';
174
- const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
175
- const reserved =
176
- /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
177
-
178
- /**
179
- * Turn a value into the JavaScript that creates an equivalent value
180
- * @param {any} value
181
- * @param {(value: any, uneval: (value: any) => string) => string | void} [replacer]
182
- */
183
- function uneval(value, replacer) {
184
- const counts = new Map();
185
-
186
- /** @type {string[]} */
187
- const keys = [];
188
-
189
- const custom = new Map();
190
-
191
- /** @param {any} thing */
192
- function walk(thing) {
193
- if (!is_primitive(thing)) {
194
- if (counts.has(thing)) {
195
- counts.set(thing, counts.get(thing) + 1);
196
- return;
197
- }
198
-
199
- counts.set(thing, 1);
200
-
201
- if (replacer) {
202
- const str = replacer(thing, (value) => uneval(value, replacer));
203
-
204
- if (typeof str === 'string') {
205
- custom.set(thing, str);
206
- return;
207
- }
208
- }
209
-
210
- if (typeof thing === 'function') {
211
- throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
212
- }
213
-
214
- const type = get_type(thing);
215
-
216
- switch (type) {
217
- case 'Number':
218
- case 'BigInt':
219
- case 'String':
220
- case 'Boolean':
221
- case 'Date':
222
- case 'RegExp':
223
- case 'URL':
224
- case 'URLSearchParams':
225
- return;
226
-
227
- case 'Array':
228
- /** @type {any[]} */ (thing).forEach((value, i) => {
229
- keys.push(`[${i}]`);
230
- walk(value);
231
- keys.pop();
232
- });
233
- break;
234
-
235
- case 'Set':
236
- Array.from(thing).forEach(walk);
237
- break;
238
-
239
- case 'Map':
240
- for (const [key, value] of thing) {
241
- keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`);
242
- walk(value);
243
- keys.pop();
244
- }
245
- break;
246
-
247
- case 'Int8Array':
248
- case 'Uint8Array':
249
- case 'Uint8ClampedArray':
250
- case 'Int16Array':
251
- case 'Uint16Array':
252
- case 'Float16Array':
253
- case 'Int32Array':
254
- case 'Uint32Array':
255
- case 'Float32Array':
256
- case 'Float64Array':
257
- case 'BigInt64Array':
258
- case 'BigUint64Array':
259
- case 'DataView':
260
- walk(thing.buffer);
261
- return;
262
-
263
- case 'ArrayBuffer':
264
- return;
265
-
266
- case 'Temporal.Duration':
267
- case 'Temporal.Instant':
268
- case 'Temporal.PlainDate':
269
- case 'Temporal.PlainTime':
270
- case 'Temporal.PlainDateTime':
271
- case 'Temporal.PlainMonthDay':
272
- case 'Temporal.PlainYearMonth':
273
- case 'Temporal.ZonedDateTime':
274
- return;
275
-
276
- default:
277
- if (!is_plain_object(thing)) {
278
- throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
279
- }
280
-
281
- if (enumerable_symbols(thing).length > 0) {
282
- throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
283
- }
284
-
285
- for (const key of Object.keys(thing)) {
286
- if (key === '__proto__') {
287
- throw new DevalueError(
288
- `Cannot stringify objects with __proto__ keys`,
289
- keys,
290
- thing,
291
- value
292
- );
293
- }
294
-
295
- keys.push(stringify_key(key));
296
- walk(thing[key]);
297
- keys.pop();
298
- }
299
- }
300
- } else if (typeof thing === 'symbol') {
301
- throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
302
- }
303
- }
304
-
305
- walk(value);
306
-
307
- const names = new Map();
308
-
309
- Array.from(counts)
310
- .filter((entry) => entry[1] > 1)
311
- .sort((a, b) => b[1] - a[1])
312
- .forEach((entry, i) => {
313
- names.set(entry[0], get_name(i));
314
- });
315
-
316
- /**
317
- * @param {any} thing
318
- * @returns {string}
319
- */
320
- function stringify(thing) {
321
- if (names.has(thing)) {
322
- return names.get(thing);
323
- }
324
-
325
- if (is_primitive(thing)) {
326
- return stringify_primitive(thing);
327
- }
328
-
329
- if (custom.has(thing)) {
330
- return custom.get(thing);
331
- }
332
-
333
- const type = get_type(thing);
334
-
335
- switch (type) {
336
- case 'Number':
337
- case 'String':
338
- case 'Boolean':
339
- case 'BigInt':
340
- return `Object(${stringify(thing.valueOf())})`;
341
-
342
- case 'RegExp':
343
- const { source, flags } = thing;
344
- return flags
345
- ? `new RegExp(${stringify_string(source)},"${flags}")`
346
- : `new RegExp(${stringify_string(source)})`;
347
-
348
- case 'Date':
349
- return `new Date(${thing.getTime()})`;
350
-
351
- case 'URL':
352
- return `new URL(${stringify_string(thing.toString())})`;
353
-
354
- case 'URLSearchParams':
355
- return `new URLSearchParams(${stringify_string(thing.toString())})`;
356
-
357
- case 'Array': {
358
- // For dense arrays (no holes), we iterate normally.
359
- // When we encounter the first hole, we call Object.keys
360
- // to determine the sparseness, then decide between:
361
- // - Array literal with holes: [,"a",,] (default)
362
- // - Object.assign: Object.assign(Array(n),{...}) (for very sparse arrays)
363
- // Only the Object.assign path avoids iterating every slot, which
364
- // is what protects against the DoS of e.g. `arr[1000000] = 1`.
365
- let has_holes = false;
366
-
367
- let result = '[';
368
-
369
- for (let i = 0; i < thing.length; i += 1) {
370
- if (i > 0) result += ',';
371
-
372
- if (Object.hasOwn(thing, i)) {
373
- result += stringify(thing[i]);
374
- } else if (!has_holes) {
375
- // Decide between array literal and Object.assign.
376
- //
377
- // Array literal: holes are consecutive commas.
378
- // For example, [, "a", ,] is written as [,"a",,].
379
- // Each hole costs 1 char (a comma).
380
- //
381
- // Object.assign: populated indices are listed explicitly.
382
- // For example, [, "a", ,] would be written as
383
- // Object.assign(Array(3),{1:"a"}). This avoids paying
384
- // per-hole, but has a large fixed overhead for the
385
- // "Object.assign(Array(n),{...})" wrapper, and each
386
- // element costs extra chars for its index and colon.
387
- //
388
- // The serialized values are the same size either way, so
389
- // the choice comes down to the structural overhead:
390
- //
391
- // Array literal overhead:
392
- // 1 char per element or hole (comma separators)
393
- // + 2 chars for "[" and "]"
394
- // = L + 2
395
- //
396
- // Object.assign overhead:
397
- // "Object.assign(Array(" — 20 chars
398
- // + length — d chars
399
- // + "),{" — 3 chars
400
- // + for each populated element:
401
- // index + ":" + "," — (d + 2) chars
402
- // + "})" — 2 chars
403
- // = (25 + d) + P * (d + 2)
404
- //
405
- // where L is the array length, P is the number of
406
- // populated elements, and d is the number of digits
407
- // in L (an upper bound on the digits in any index).
408
- //
409
- // Object.assign is cheaper when:
410
- // (25 + d) + P * (d + 2) < L + 2
411
- const populated_keys = valid_array_indices(/** @type {any[]} */ (thing));
412
- const population = populated_keys.length;
413
- const d = String(thing.length).length;
414
-
415
- const hole_cost = thing.length + 2;
416
- const sparse_cost = 25 + d + population * (d + 2);
417
-
418
- if (hole_cost > sparse_cost) {
419
- const entries = populated_keys.map((k) => `${k}:${stringify(thing[k])}`).join(',');
420
- return `Object.assign(Array(${thing.length}),{${entries}})`;
421
- }
422
-
423
- // Re-process this index as a hole in the array literal
424
- has_holes = true;
425
- i -= 1;
426
- }
427
- // else: already decided on array literal, hole is just an empty slot
428
- // (the comma separator is all we need — no content for this position)
429
- }
430
-
431
- const tail = thing.length === 0 || thing.length - 1 in thing ? '' : ',';
432
- return result + tail + ']';
433
- }
434
-
435
- case 'Set':
436
- case 'Map':
437
- return `new ${type}([${Array.from(thing).map(stringify).join(',')}])`;
438
-
439
- case 'Int8Array':
440
- case 'Uint8Array':
441
- case 'Uint8ClampedArray':
442
- case 'Int16Array':
443
- case 'Uint16Array':
444
- case 'Float16Array':
445
- case 'Int32Array':
446
- case 'Uint32Array':
447
- case 'Float32Array':
448
- case 'Float64Array':
449
- case 'BigInt64Array':
450
- case 'BigUint64Array': {
451
- let str = `new ${type}`;
452
-
453
- if (!names.has(thing.buffer)) {
454
- const array = new thing.constructor(thing.buffer);
455
- str += `([${array}])`;
456
- } else {
457
- str += `(${stringify(thing.buffer)})`;
458
- }
459
-
460
- // handle subarrays
461
- if (thing.byteLength !== thing.buffer.byteLength) {
462
- const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
463
- const end = start + thing.length;
464
- str += `.subarray(${start},${end})`;
465
- }
466
-
467
- return str;
468
- }
469
-
470
- case 'DataView': {
471
- let str = `new DataView`;
472
-
473
- if (!names.has(thing.buffer)) {
474
- str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
475
- } else {
476
- str += `(${stringify(thing.buffer)}`;
477
- }
478
-
479
- // handle subviews
480
- if (thing.byteLength !== thing.buffer.byteLength) {
481
- str += `,${thing.startOffset},${thing.byteLength}`;
482
- }
483
-
484
- return str + ')';
485
- }
486
-
487
- case 'ArrayBuffer': {
488
- const ui8 = new Uint8Array(thing);
489
- return `new Uint8Array([${ui8.toString()}]).buffer`;
490
- }
491
-
492
- case 'Temporal.Duration':
493
- case 'Temporal.Instant':
494
- case 'Temporal.PlainDate':
495
- case 'Temporal.PlainTime':
496
- case 'Temporal.PlainDateTime':
497
- case 'Temporal.PlainMonthDay':
498
- case 'Temporal.PlainYearMonth':
499
- case 'Temporal.ZonedDateTime':
500
- return `${type}.from(${stringify_string(thing.toString())})`;
501
-
502
- default:
503
- const keys = Object.keys(thing);
504
- const obj = keys.map((key) => `${safe_key(key)}:${stringify(thing[key])}`).join(',');
505
- const proto = Object.getPrototypeOf(thing);
506
- if (proto === null) {
507
- return keys.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;
508
- }
509
-
510
- return `{${obj}}`;
511
- }
512
- }
513
-
514
- const str = stringify(value);
515
-
516
- if (names.size) {
517
- /** @type {string[]} */
518
- const params = [];
519
-
520
- /** @type {string[]} */
521
- const statements = [];
522
-
523
- /** @type {string[]} */
524
- const values = [];
525
-
526
- names.forEach((name, thing) => {
527
- params.push(name);
528
-
529
- if (custom.has(thing)) {
530
- values.push(/** @type {string} */ (custom.get(thing)));
531
- return;
532
- }
533
-
534
- if (is_primitive(thing)) {
535
- values.push(stringify_primitive(thing));
536
- return;
537
- }
538
-
539
- const type = get_type(thing);
540
-
541
- switch (type) {
542
- case 'Number':
543
- case 'String':
544
- case 'Boolean':
545
- case 'BigInt':
546
- values.push(`Object(${stringify(thing.valueOf())})`);
547
- break;
548
-
549
- case 'RegExp':
550
- const { source, flags } = thing;
551
- const regexp = flags
552
- ? `new RegExp(${stringify_string(source)},"${flags}")`
553
- : `new RegExp(${stringify_string(source)})`;
554
- values.push(regexp);
555
- break;
556
-
557
- case 'Date':
558
- values.push(`new Date(${thing.getTime()})`);
559
- break;
560
-
561
- case 'URL':
562
- values.push(`new URL(${stringify_string(thing.toString())})`);
563
- break;
564
-
565
- case 'URLSearchParams':
566
- values.push(`new URLSearchParams(${stringify_string(thing.toString())})`);
567
- break;
568
-
569
- case 'Array':
570
- values.push(`Array(${thing.length})`);
571
- /** @type {any[]} */ (thing).forEach((v, i) => {
572
- statements.push(`${name}[${i}]=${stringify(v)}`);
573
- });
574
- break;
575
-
576
- case 'Set':
577
- values.push(`new Set`);
578
- statements.push(
579
- `${name}.${Array.from(thing)
580
- .map((v) => `add(${stringify(v)})`)
581
- .join('.')}`
582
- );
583
- break;
584
-
585
- case 'Map':
586
- values.push(`new Map`);
587
- statements.push(
588
- `${name}.${Array.from(thing)
589
- .map(([k, v]) => `set(${stringify(k)}, ${stringify(v)})`)
590
- .join('.')}`
591
- );
592
- break;
593
-
594
- case 'Int8Array':
595
- case 'Uint8Array':
596
- case 'Uint8ClampedArray':
597
- case 'Int16Array':
598
- case 'Uint16Array':
599
- case 'Float16Array':
600
- case 'Int32Array':
601
- case 'Uint32Array':
602
- case 'Float32Array':
603
- case 'Float64Array':
604
- case 'BigInt64Array':
605
- case 'BigUint64Array': {
606
- let str = `new ${type}`;
607
-
608
- if (!names.has(thing.buffer)) {
609
- const array = new thing.constructor(thing.buffer);
610
- str += `([${array}])`;
611
- } else {
612
- str += `(${stringify(thing.buffer)})`;
613
- }
614
-
615
- // handle subarrays
616
- if (thing.byteLength !== thing.buffer.byteLength) {
617
- const start = thing.byteOffset / thing.BYTES_PER_ELEMENT;
618
- const end = start + thing.length;
619
- str += `.subarray(${start},${end})`;
620
- }
621
-
622
- values.push(`{}`);
623
- statements.push(`${name}=${str}`);
624
- break;
625
- }
626
-
627
- case 'DataView': {
628
- let str = `new DataView`;
629
-
630
- if (!names.has(thing.buffer)) {
631
- str += `(new Uint8Array([${new Uint8Array(thing.buffer)}]).buffer`;
632
- } else {
633
- str += `(${stringify(thing.buffer)}`;
634
- }
635
-
636
- // handle subviews
637
- if (thing.byteLength !== thing.buffer.byteLength) {
638
- str += `,${thing.byteOffset},${thing.byteLength}`;
639
- }
640
-
641
- str += ')';
642
-
643
- values.push(`{}`);
644
- statements.push(`${name}=${str}`);
645
- break;
646
- }
647
-
648
- case 'ArrayBuffer':
649
- values.push(`new Uint8Array([${new Uint8Array(thing)}]).buffer`);
650
- break;
651
-
652
- default:
653
- values.push(Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}');
654
- Object.keys(thing).forEach((key) => {
655
- statements.push(`${name}${safe_prop(key)}=${stringify(thing[key])}`);
656
- });
657
- }
658
- });
659
-
660
- statements.push(`return ${str}`);
661
-
662
- return `(function(${params.join(',')}){${statements.join(';')}}(${values.join(',')}))`;
663
- } else {
664
- return str;
665
- }
666
- }
667
-
668
- /** @param {number} num */
669
- function get_name(num) {
670
- let name = '';
671
-
672
- do {
673
- name = chars[num % chars.length] + name;
674
- num = ~~(num / chars.length) - 1;
675
- } while (num >= 0);
676
-
677
- return reserved.test(name) ? `${name}0` : name;
678
- }
679
-
680
- /** @param {string} c */
681
- function escape_unsafe_char(c) {
682
- return escaped[c] || c;
683
- }
684
-
685
- /** @param {string} str */
686
- function escape_unsafe_chars(str) {
687
- return str.replace(unsafe_chars, escape_unsafe_char);
688
- }
689
-
690
- /** @param {string} key */
691
- function safe_key(key) {
692
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));
693
- }
694
-
695
- /** @param {string} key */
696
- function safe_prop(key) {
697
- return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key)
698
- ? `.${key}`
699
- : `[${escape_unsafe_chars(JSON.stringify(key))}]`;
700
- }
701
-
702
- /** @param {any} thing */
703
- function stringify_primitive(thing) {
704
- const type = typeof thing;
705
- if (type === 'string') return stringify_string(thing);
706
- if (thing === void 0) return 'void 0';
707
- if (thing === 0 && 1 / thing < 0) return '-0';
708
- const str = String(thing);
709
- if (type === 'number') return str.replace(/^(-)?0\./, '$1.');
710
- if (type === 'bigint') return thing + 'n';
711
- return str;
712
- }
713
-
714
- const browser = false;
715
-
716
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx$1(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
717
-
718
- const DERIVED = 1 << 1;
719
- const EFFECT = 1 << 2;
720
- const RENDER_EFFECT = 1 << 3;
721
- const MANAGED_EFFECT = 1 << 24;
722
- const BLOCK_EFFECT = 1 << 4;
723
- const BRANCH_EFFECT = 1 << 5;
724
- const ROOT_EFFECT = 1 << 6;
725
- const BOUNDARY_EFFECT = 1 << 7;
726
- const CONNECTED = 1 << 9;
727
- const CLEAN = 1 << 10;
728
- const DIRTY = 1 << 11;
729
- const MAYBE_DIRTY = 1 << 12;
730
- const INERT = 1 << 13;
731
- const DESTROYED = 1 << 14;
732
- const REACTION_RAN = 1 << 15;
733
- const DESTROYING = 1 << 25;
734
- const EFFECT_TRANSPARENT = 1 << 16;
735
- const EAGER_EFFECT = 1 << 17;
736
- const HEAD_EFFECT = 1 << 18;
737
- const EFFECT_PRESERVED = 1 << 19;
738
- const USER_EFFECT = 1 << 20;
739
- const WAS_MARKED = 1 << 16;
740
- const REACTION_IS_UPDATING = 1 << 21;
741
- const ASYNC = 1 << 22;
742
- const ERROR_VALUE = 1 << 23;
743
- const STATE_SYMBOL = Symbol("$state");
744
- const LEGACY_PROPS = Symbol("legacy props");
745
- const ATTRIBUTES_CACHE = Symbol("attributes");
746
- const CLASS_CACHE = Symbol("class");
747
- const STYLE_CACHE = Symbol("style");
748
- const TEXT_CACHE = Symbol("text");
749
- const STALE_REACTION = new class StaleReactionError extends Error {
750
- name = "StaleReactionError";
751
- message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
752
- }();
753
- const COMMENT_NODE = 8;
754
- var is_array = Array.isArray;
755
- var index_of = Array.prototype.indexOf;
756
- var includes = Array.prototype.includes;
757
- var array_from = Array.from;
758
- var define_property = Object.defineProperty;
759
- var get_descriptor = Object.getOwnPropertyDescriptor;
760
- var object_prototype = Object.prototype;
761
- var array_prototype = Array.prototype;
762
- var get_prototype_of = Object.getPrototypeOf;
763
- var is_extensible = Object.isExtensible;
764
- var has_own_property = Object.prototype.hasOwnProperty;
765
- const noop = () => {
766
- };
767
- function run(fn) {
768
- return fn();
769
- }
770
- function run_all(arr) {
771
- for (var i = 0; i < arr.length; i++) {
772
- arr[i]();
773
- }
774
- }
775
- function deferred() {
776
- var resolve;
777
- var reject;
778
- var promise = new Promise((res, rej) => {
779
- resolve = res;
780
- reject = rej;
781
- });
782
- return { promise, resolve, reject };
783
- }
784
- function fallback(value, fallback2, lazy = false) {
785
- return value === void 0 ? lazy ? (
786
- /** @type {() => V} */
787
- fallback2()
788
- ) : (
789
- /** @type {V} */
790
- fallback2
791
- ) : value;
792
- }
793
- function equals(value) {
794
- return value === this.v;
795
- }
796
- function safe_not_equal(a, b) {
797
- return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
798
- }
799
- function safe_equals(value) {
800
- return !safe_not_equal(value, this.v);
801
- }
802
- function lifecycle_outside_component(name) {
803
- {
804
- throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);
805
- }
806
- }
807
- function missing_context() {
808
- {
809
- throw new Error(`https://svelte.dev/e/missing_context`);
810
- }
811
- }
812
- function effect_update_depth_exceeded() {
813
- {
814
- throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
815
- }
816
- }
817
- function hydration_failed() {
818
- {
819
- throw new Error(`https://svelte.dev/e/hydration_failed`);
820
- }
821
- }
822
- function state_descriptors_fixed() {
823
- {
824
- throw new Error(`https://svelte.dev/e/state_descriptors_fixed`);
825
- }
826
- }
827
- function state_prototype_fixed() {
828
- {
829
- throw new Error(`https://svelte.dev/e/state_prototype_fixed`);
830
- }
831
- }
832
- function state_unsafe_mutation() {
833
- {
834
- throw new Error(`https://svelte.dev/e/state_unsafe_mutation`);
835
- }
836
- }
837
- function svelte_boundary_reset_onerror() {
838
- {
839
- throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
840
- }
841
- }
842
- let tracing_mode_flag = false;
843
- const HYDRATION_START = "[";
844
- const HYDRATION_START_ELSE = "[!";
845
- const HYDRATION_START_FAILED = "[?";
846
- const HYDRATION_END = "]";
847
- const HYDRATION_ERROR = {};
848
- const ELEMENT_IS_NAMESPACED = 1;
849
- const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1;
850
- const ELEMENT_IS_INPUT = 1 << 2;
851
- const UNINITIALIZED = Symbol("uninitialized");
852
- let component_context = null;
853
- function set_component_context(context) {
854
- component_context = context;
855
- }
856
- function push$1(props, runes = false, fn) {
857
- component_context = {
858
- p: component_context,
859
- i: false,
860
- c: null,
861
- e: null,
862
- s: props,
863
- x: null,
864
- r: (
865
- /** @type {Effect} */
866
- active_effect
867
- ),
868
- l: null
869
- };
870
- }
871
- function pop$1(component) {
872
- var context = (
873
- /** @type {ComponentContext} */
874
- component_context
875
- );
876
- var effects = context.e;
877
- if (effects !== null) {
878
- context.e = null;
879
- for (var fn of effects) {
880
- create_user_effect(fn);
881
- }
882
- }
883
- context.i = true;
884
- component_context = context.p;
885
- return (
886
- /** @type {T} */
887
- {}
888
- );
889
- }
890
- function is_runes() {
891
- return true;
892
- }
893
- let micro_tasks = [];
894
- function run_micro_tasks() {
895
- var tasks = micro_tasks;
896
- micro_tasks = [];
897
- run_all(tasks);
898
- }
899
- function queue_micro_task(fn) {
900
- if (micro_tasks.length === 0 && !is_flushing_sync) {
901
- var tasks = micro_tasks;
902
- queueMicrotask(() => {
903
- if (tasks === micro_tasks) run_micro_tasks();
904
- });
905
- }
906
- micro_tasks.push(fn);
907
- }
908
- function flush_tasks() {
909
- while (micro_tasks.length > 0) {
910
- run_micro_tasks();
911
- }
912
- }
913
- function derived_inert() {
914
- {
915
- console.warn(`https://svelte.dev/e/derived_inert`);
916
- }
917
- }
918
- function hydration_mismatch(location) {
919
- {
920
- console.warn(`https://svelte.dev/e/hydration_mismatch`);
921
- }
922
- }
923
- function svelte_boundary_reset_noop() {
924
- {
925
- console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
926
- }
927
- }
928
- function proxy(value) {
929
- if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
930
- return value;
931
- }
932
- const prototype = get_prototype_of(value);
933
- if (prototype !== object_prototype && prototype !== array_prototype) {
934
- return value;
935
- }
936
- var sources = /* @__PURE__ */ new Map();
937
- var is_proxied_array = is_array(value);
938
- var version = /* @__PURE__ */ state(0);
939
- var parent_version = update_version;
940
- var with_parent = (fn) => {
941
- if (update_version === parent_version) {
942
- return fn();
943
- }
944
- var reaction = active_reaction;
945
- var version2 = update_version;
946
- set_active_reaction(null);
947
- set_update_version(parent_version);
948
- var result = fn();
949
- set_active_reaction(reaction);
950
- set_update_version(version2);
951
- return result;
952
- };
953
- if (is_proxied_array) {
954
- sources.set("length", /* @__PURE__ */ state(
955
- /** @type {any[]} */
956
- value.length
957
- ));
958
- }
959
- return new Proxy(
960
- /** @type {any} */
961
- value,
962
- {
963
- defineProperty(_, prop, descriptor) {
964
- if (!("value" in descriptor) || descriptor.configurable === false || descriptor.enumerable === false || descriptor.writable === false) {
965
- state_descriptors_fixed();
966
- }
967
- var s = sources.get(prop);
968
- if (s === void 0) {
969
- with_parent(() => {
970
- var s2 = /* @__PURE__ */ state(descriptor.value);
971
- sources.set(prop, s2);
972
- return s2;
973
- });
974
- } else {
975
- set(s, descriptor.value, true);
976
- }
977
- return true;
978
- },
979
- deleteProperty(target, prop) {
980
- var s = sources.get(prop);
981
- if (s === void 0) {
982
- if (prop in target) {
983
- const s2 = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED));
984
- sources.set(prop, s2);
985
- increment(version);
986
- }
987
- } else {
988
- set(s, UNINITIALIZED);
989
- increment(version);
990
- }
991
- return true;
992
- },
993
- get(target, prop, receiver) {
994
- if (prop === STATE_SYMBOL) {
995
- return value;
996
- }
997
- var s = sources.get(prop);
998
- var exists = prop in target;
999
- if (s === void 0 && (!exists || get_descriptor(target, prop)?.writable)) {
1000
- s = with_parent(() => {
1001
- var p = proxy(exists ? target[prop] : UNINITIALIZED);
1002
- var s2 = /* @__PURE__ */ state(p);
1003
- return s2;
1004
- });
1005
- sources.set(prop, s);
1006
- }
1007
- if (s !== void 0) {
1008
- var v = get(s);
1009
- return v === UNINITIALIZED ? void 0 : v;
1010
- }
1011
- return Reflect.get(target, prop, receiver);
1012
- },
1013
- getOwnPropertyDescriptor(target, prop) {
1014
- var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
1015
- if (descriptor && "value" in descriptor) {
1016
- var s = sources.get(prop);
1017
- if (s) descriptor.value = get(s);
1018
- } else if (descriptor === void 0) {
1019
- var source2 = sources.get(prop);
1020
- var value2 = source2?.v;
1021
- if (source2 !== void 0 && value2 !== UNINITIALIZED) {
1022
- return {
1023
- enumerable: true,
1024
- configurable: true,
1025
- value: value2,
1026
- writable: true
1027
- };
1028
- }
1029
- }
1030
- return descriptor;
1031
- },
1032
- has(target, prop) {
1033
- if (prop === STATE_SYMBOL) {
1034
- return true;
1035
- }
1036
- var s = sources.get(prop);
1037
- var has = s !== void 0 && s.v !== UNINITIALIZED || Reflect.has(target, prop);
1038
- if (s !== void 0 || active_effect !== null && (!has || get_descriptor(target, prop)?.writable)) {
1039
- if (s === void 0) {
1040
- s = with_parent(() => {
1041
- var p = has ? proxy(target[prop]) : UNINITIALIZED;
1042
- var s2 = /* @__PURE__ */ state(p);
1043
- return s2;
1044
- });
1045
- sources.set(prop, s);
1046
- }
1047
- var value2 = get(s);
1048
- if (value2 === UNINITIALIZED) {
1049
- return false;
1050
- }
1051
- }
1052
- return has;
1053
- },
1054
- set(target, prop, value2, receiver) {
1055
- var s = sources.get(prop);
1056
- var has = prop in target;
1057
- if (is_proxied_array && prop === "length") {
1058
- for (var i = value2; i < /** @type {Source<number>} */
1059
- s.v; i += 1) {
1060
- var other_s = sources.get(i + "");
1061
- if (other_s !== void 0) {
1062
- set(other_s, UNINITIALIZED);
1063
- } else if (i in target) {
1064
- other_s = with_parent(() => /* @__PURE__ */ state(UNINITIALIZED));
1065
- sources.set(i + "", other_s);
1066
- }
1067
- }
1068
- }
1069
- if (s === void 0) {
1070
- if (!has || get_descriptor(target, prop)?.writable) {
1071
- s = with_parent(() => /* @__PURE__ */ state(void 0));
1072
- set(s, proxy(value2));
1073
- sources.set(prop, s);
1074
- }
1075
- } else {
1076
- has = s.v !== UNINITIALIZED;
1077
- var p = with_parent(() => proxy(value2));
1078
- set(s, p);
1079
- }
1080
- var descriptor = Reflect.getOwnPropertyDescriptor(target, prop);
1081
- if (descriptor?.set) {
1082
- descriptor.set.call(receiver, value2);
1083
- }
1084
- if (!has) {
1085
- if (is_proxied_array && typeof prop === "string") {
1086
- var ls = (
1087
- /** @type {Source<number>} */
1088
- sources.get("length")
1089
- );
1090
- var n = Number(prop);
1091
- if (Number.isInteger(n) && n >= ls.v) {
1092
- set(ls, n + 1);
1093
- }
1094
- }
1095
- increment(version);
1096
- }
1097
- return true;
1098
- },
1099
- ownKeys(target) {
1100
- get(version);
1101
- var own_keys = Reflect.ownKeys(target).filter((key2) => {
1102
- var source3 = sources.get(key2);
1103
- return source3 === void 0 || source3.v !== UNINITIALIZED;
1104
- });
1105
- for (var [key, source2] of sources) {
1106
- if (source2.v !== UNINITIALIZED && !(key in target)) {
1107
- own_keys.push(key);
1108
- }
1109
- }
1110
- return own_keys;
1111
- },
1112
- setPrototypeOf() {
1113
- state_prototype_fixed();
1114
- }
1115
- }
1116
- );
1117
- }
1118
- var $window;
1119
- var first_child_getter;
1120
- var next_sibling_getter;
1121
- function init_operations() {
1122
- if ($window !== void 0) {
1123
- return;
1124
- }
1125
- $window = window;
1126
- var element_prototype = Element.prototype;
1127
- var node_prototype = Node.prototype;
1128
- var text_prototype = Text.prototype;
1129
- first_child_getter = get_descriptor(node_prototype, "firstChild").get;
1130
- next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
1131
- if (is_extensible(element_prototype)) {
1132
- element_prototype[CLASS_CACHE] = void 0;
1133
- element_prototype[ATTRIBUTES_CACHE] = null;
1134
- element_prototype[STYLE_CACHE] = void 0;
1135
- element_prototype.__e = void 0;
1136
- }
1137
- if (is_extensible(text_prototype)) {
1138
- text_prototype[TEXT_CACHE] = void 0;
1139
- }
1140
- }
1141
- function create_text(value = "") {
1142
- return document.createTextNode(value);
1143
- }
1144
- // @__NO_SIDE_EFFECTS__
1145
- function get_first_child(node) {
1146
- return (
1147
- /** @type {TemplateNode | null} */
1148
- first_child_getter.call(node)
1149
- );
1150
- }
1151
- // @__NO_SIDE_EFFECTS__
1152
- function get_next_sibling(node) {
1153
- return (
1154
- /** @type {TemplateNode | null} */
1155
- next_sibling_getter.call(node)
1156
- );
1157
- }
1158
- function clear_text_content(node) {
1159
- node.textContent = "";
1160
- }
1161
- function handle_error(error) {
1162
- var effect = active_effect;
1163
- if (effect === null) {
1164
- active_reaction.f |= ERROR_VALUE;
1165
- return error;
1166
- }
1167
- if ((effect.f & REACTION_RAN) === 0 && (effect.f & EFFECT) === 0) {
1168
- throw error;
1169
- }
1170
- invoke_error_boundary(error, effect);
1171
- }
1172
- function invoke_error_boundary(error, effect) {
1173
- if (effect !== null && (effect.f & DESTROYED) !== 0) {
1174
- return;
1175
- }
1176
- while (effect !== null) {
1177
- if ((effect.f & BOUNDARY_EFFECT) !== 0) {
1178
- if ((effect.f & REACTION_RAN) === 0) {
1179
- throw error;
1180
- }
1181
- try {
1182
- effect.b.error(error);
1183
- return;
1184
- } catch (e) {
1185
- error = e;
1186
- }
1187
- }
1188
- effect = effect.parent;
1189
- }
1190
- throw error;
1191
- }
1192
- const STATUS_MASK = -7169;
1193
- function set_signal_status(signal, status) {
1194
- signal.f = signal.f & STATUS_MASK | status;
1195
- }
1196
- function update_derived_status(derived2) {
1197
- if ((derived2.f & CONNECTED) !== 0 || derived2.deps === null) {
1198
- set_signal_status(derived2, CLEAN);
1199
- } else {
1200
- set_signal_status(derived2, MAYBE_DIRTY);
1201
- }
1202
- }
1203
- function clear_marked(deps) {
1204
- if (deps === null) return;
1205
- for (const dep of deps) {
1206
- if ((dep.f & DERIVED) === 0 || (dep.f & WAS_MARKED) === 0) {
1207
- continue;
1208
- }
1209
- dep.f ^= WAS_MARKED;
1210
- clear_marked(
1211
- /** @type {Derived} */
1212
- dep.deps
1213
- );
1214
- }
1215
- }
1216
- function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
1217
- if ((effect.f & DIRTY) !== 0) {
1218
- dirty_effects.add(effect);
1219
- } else if ((effect.f & MAYBE_DIRTY) !== 0) {
1220
- maybe_dirty_effects.add(effect);
1221
- }
1222
- clear_marked(effect.deps);
1223
- set_signal_status(effect, CLEAN);
1224
- }
1225
- function subscribe_to_store(store, run2, invalidate) {
1226
- if (store == null) {
1227
- run2(void 0);
1228
- return noop;
1229
- }
1230
- const unsub = untrack(
1231
- () => store.subscribe(
1232
- run2,
1233
- // @ts-expect-error
1234
- invalidate
1235
- )
1236
- );
1237
- return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
1238
- }
1239
- const OBSOLETE = Symbol("obsolete");
1240
- function destroy_derived_effects(derived2) {
1241
- var effects = derived2.effects;
1242
- if (effects !== null) {
1243
- derived2.effects = null;
1244
- for (var i = 0; i < effects.length; i += 1) {
1245
- destroy_effect(
1246
- /** @type {Effect} */
1247
- effects[i]
1248
- );
1249
- }
1250
- }
1251
- }
1252
- function execute_derived(derived2) {
1253
- var value;
1254
- var prev_active_effect = active_effect;
1255
- var parent = derived2.parent;
1256
- if (!is_destroying_effect && parent !== null && derived2.v !== UNINITIALIZED && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
1257
- (parent.f & (DESTROYED | INERT)) !== 0) {
1258
- derived_inert();
1259
- return derived2.v;
1260
- }
1261
- set_active_effect(parent);
1262
- {
1263
- try {
1264
- derived2.f &= ~WAS_MARKED;
1265
- destroy_derived_effects(derived2);
1266
- value = update_reaction(derived2);
1267
- } finally {
1268
- set_active_effect(prev_active_effect);
1269
- }
1270
- }
1271
- return value;
1272
- }
1273
- function update_derived(derived2) {
1274
- var value = execute_derived(derived2);
1275
- if (!derived2.equals(value)) {
1276
- derived2.wv = increment_write_version();
1277
- if (!current_batch?.is_fork || derived2.deps === null) {
1278
- if (current_batch !== null) {
1279
- current_batch.capture(derived2, value, true);
1280
- previous_batch?.capture(derived2, value, true);
1281
- } else {
1282
- derived2.v = value;
1283
- }
1284
- if (derived2.deps === null) {
1285
- set_signal_status(derived2, CLEAN);
1286
- return;
1287
- }
1288
- }
1289
- }
1290
- if (is_destroying_effect) {
1291
- return;
1292
- }
1293
- if (batch_values !== null) {
1294
- if (effect_tracking() || current_batch?.is_fork) {
1295
- batch_values.set(derived2, value);
1296
- }
1297
- } else {
1298
- update_derived_status(derived2);
1299
- }
1300
- }
1301
- function freeze_derived_effects(derived2) {
1302
- if (derived2.effects === null) return;
1303
- for (const e of derived2.effects) {
1304
- if (e.teardown || e.ac) {
1305
- e.teardown?.();
1306
- e.ac?.abort(STALE_REACTION);
1307
- if (e.fn !== null) e.teardown = noop;
1308
- e.ac = null;
1309
- remove_reactions(e, 0);
1310
- destroy_effect_children(e);
1311
- }
1312
- }
1313
- }
1314
- function unfreeze_derived_effects(derived2) {
1315
- if (derived2.effects === null) return;
1316
- for (const e of derived2.effects) {
1317
- if (e.teardown && e.fn !== null) {
1318
- update_effect(e);
1319
- }
1320
- }
1321
- }
1322
- let first_batch = null;
1323
- let last_batch = null;
1324
- let current_batch = null;
1325
- let previous_batch = null;
1326
- let batch_values = null;
1327
- let last_scheduled_effect = null;
1328
- let is_flushing_sync = false;
1329
- let is_processing = false;
1330
- let collected_effects = null;
1331
- let legacy_updates = null;
1332
- var flush_count = 0;
1333
- let uid = 1;
1334
- class Batch {
1335
- id = uid++;
1336
- /** True as soon as `#process` was called */
1337
- #started = false;
1338
- linked = true;
1339
- /** @type {Batch | null} */
1340
- #prev = null;
1341
- /** @type {Batch | null} */
1342
- #next = null;
1343
- /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
1344
- async_deriveds = /* @__PURE__ */ new Map();
1345
- /**
1346
- * The current values of any signals that are updated in this batch.
1347
- * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
1348
- * They keys of this map are identical to `this.#previous`
1349
- * @type {Map<Value, [any, boolean]>}
1350
- */
1351
- current = /* @__PURE__ */ new Map();
1352
- /**
1353
- * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
1354
- * They keys of this map are identical to `this.#current`
1355
- * @type {Map<Value, any>}
1356
- */
1357
- previous = /* @__PURE__ */ new Map();
1358
- /**
1359
- * When the batch is committed (and the DOM is updated), we need to remove old branches
1360
- * and append new ones by calling the functions added inside (if/each/key/etc) blocks
1361
- * @type {Set<(batch: Batch) => void>}
1362
- */
1363
- #commit_callbacks = /* @__PURE__ */ new Set();
1364
- /**
1365
- * If a fork is discarded, we need to destroy any effects that are no longer needed
1366
- * @type {Set<(batch: Batch) => void>}
1367
- */
1368
- #discard_callbacks = /* @__PURE__ */ new Set();
1369
- /**
1370
- * The number of async effects that are currently in flight
1371
- */
1372
- #pending = 0;
1373
- /**
1374
- * Async effects that are currently in flight, _not_ inside a pending boundary
1375
- * @type {Map<Effect, number>}
1376
- */
1377
- #blocking_pending = /* @__PURE__ */ new Map();
1378
- /**
1379
- * A deferred that resolves when the batch is committed, used with `settled()`
1380
- * TODO replace with Promise.withResolvers once supported widely enough
1381
- * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
1382
- */
1383
- #deferred = null;
1384
- /**
1385
- * The root effects that need to be flushed
1386
- * @type {Effect[]}
1387
- */
1388
- #roots = [];
1389
- /**
1390
- * Effects created while this batch was active.
1391
- * @type {Effect[]}
1392
- */
1393
- #new_effects = [];
1394
- /**
1395
- * Deferred effects (which run after async work has completed) that are DIRTY
1396
- * @type {Set<Effect>}
1397
- */
1398
- #dirty_effects = /* @__PURE__ */ new Set();
1399
- /**
1400
- * Deferred effects that are MAYBE_DIRTY
1401
- * @type {Set<Effect>}
1402
- */
1403
- #maybe_dirty_effects = /* @__PURE__ */ new Set();
1404
- /**
1405
- * A map of branches that still exist, but will be destroyed when this batch
1406
- * is committed — we skip over these during `process`.
1407
- * The value contains child effects that were dirty/maybe_dirty before being reset,
1408
- * so they can be rescheduled if the branch survives.
1409
- * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
1410
- */
1411
- #skipped_branches = /* @__PURE__ */ new Map();
1412
- /**
1413
- * Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
1414
- * @type {Set<Effect>}
1415
- */
1416
- #unskipped_branches = /* @__PURE__ */ new Set();
1417
- is_fork = false;
1418
- #decrement_queued = false;
1419
- constructor() {
1420
- if (last_batch === null) {
1421
- first_batch = last_batch = this;
1422
- } else {
1423
- last_batch.#next = this;
1424
- this.#prev = last_batch;
1425
- }
1426
- last_batch = this;
1427
- }
1428
- #is_deferred() {
1429
- if (this.is_fork) return true;
1430
- for (const effect of this.#blocking_pending.keys()) {
1431
- var e = effect;
1432
- var skipped = false;
1433
- while (e.parent !== null) {
1434
- if (this.#skipped_branches.has(e)) {
1435
- skipped = true;
1436
- break;
1437
- }
1438
- e = e.parent;
1439
- }
1440
- if (!skipped) {
1441
- return true;
1442
- }
1443
- }
1444
- return false;
1445
- }
1446
- /**
1447
- * Add an effect to the #skipped_branches map and reset its children
1448
- * @param {Effect} effect
1449
- */
1450
- skip_effect(effect) {
1451
- if (!this.#skipped_branches.has(effect)) {
1452
- this.#skipped_branches.set(effect, { d: [], m: [] });
1453
- }
1454
- this.#unskipped_branches.delete(effect);
1455
- }
1456
- /**
1457
- * Remove an effect from the #skipped_branches map and reschedule
1458
- * any tracked dirty/maybe_dirty child effects
1459
- * @param {Effect} effect
1460
- * @param {(e: Effect) => void} callback
1461
- */
1462
- unskip_effect(effect, callback = (e) => this.schedule(e)) {
1463
- var tracked = this.#skipped_branches.get(effect);
1464
- if (tracked) {
1465
- this.#skipped_branches.delete(effect);
1466
- for (var e of tracked.d) {
1467
- set_signal_status(e, DIRTY);
1468
- callback(e);
1469
- }
1470
- for (e of tracked.m) {
1471
- set_signal_status(e, MAYBE_DIRTY);
1472
- callback(e);
1473
- }
1474
- }
1475
- this.#unskipped_branches.add(effect);
1476
- }
1477
- #process() {
1478
- this.#started = true;
1479
- if (flush_count++ > 1e3) {
1480
- this.#unlink();
1481
- infinite_loop_guard();
1482
- }
1483
- for (const e of this.#dirty_effects) {
1484
- this.#maybe_dirty_effects.delete(e);
1485
- set_signal_status(e, DIRTY);
1486
- this.schedule(e);
1487
- }
1488
- for (const e of this.#maybe_dirty_effects) {
1489
- set_signal_status(e, MAYBE_DIRTY);
1490
- this.schedule(e);
1491
- }
1492
- const roots = this.#roots;
1493
- this.#roots = [];
1494
- this.apply();
1495
- var effects = collected_effects = [];
1496
- var render_effects = [];
1497
- var updates = legacy_updates = [];
1498
- for (const root of roots) {
1499
- try {
1500
- this.#traverse(root, effects, render_effects);
1501
- } catch (e) {
1502
- reset_all(root);
1503
- if (!this.#is_deferred()) this.discard();
1504
- throw e;
1505
- }
1506
- }
1507
- current_batch = null;
1508
- if (updates.length > 0) {
1509
- var batch = Batch.ensure();
1510
- for (const e of updates) {
1511
- batch.schedule(e);
1512
- }
1513
- }
1514
- collected_effects = null;
1515
- legacy_updates = null;
1516
- if (this.#is_deferred()) {
1517
- this.#defer_effects(render_effects);
1518
- this.#defer_effects(effects);
1519
- for (const [e, t] of this.#skipped_branches) {
1520
- reset_branch(e, t);
1521
- }
1522
- if (updates.length > 0) {
1523
- /** @type {unknown} */
1524
- current_batch.#process();
1525
- }
1526
- return;
1527
- }
1528
- const earlier_batch = this.#find_earlier_batch();
1529
- if (earlier_batch) {
1530
- this.#defer_effects(render_effects);
1531
- this.#defer_effects(effects);
1532
- earlier_batch.#merge(this);
1533
- return;
1534
- }
1535
- this.#dirty_effects.clear();
1536
- this.#maybe_dirty_effects.clear();
1537
- for (const fn of this.#commit_callbacks) fn(this);
1538
- this.#commit_callbacks.clear();
1539
- previous_batch = this;
1540
- flush_queued_effects(render_effects);
1541
- flush_queued_effects(effects);
1542
- previous_batch = null;
1543
- this.#deferred?.resolve();
1544
- var next_batch = (
1545
- /** @type {Batch | null} */
1546
- /** @type {unknown} */
1547
- current_batch
1548
- );
1549
- if (this.#pending === 0 && (this.#roots.length === 0 || next_batch !== null)) {
1550
- this.#unlink();
1551
- }
1552
- if (this.#roots.length > 0) {
1553
- if (next_batch !== null) {
1554
- const batch2 = next_batch;
1555
- batch2.#roots.push(...this.#roots.filter((r) => !batch2.#roots.includes(r)));
1556
- } else {
1557
- next_batch = this;
1558
- }
1559
- }
1560
- if (next_batch !== null) {
1561
- next_batch.#process();
1562
- }
1563
- }
1564
- /**
1565
- * Traverse the effect tree, executing effects or stashing
1566
- * them for later execution as appropriate
1567
- * @param {Effect} root
1568
- * @param {Effect[]} effects
1569
- * @param {Effect[]} render_effects
1570
- */
1571
- #traverse(root, effects, render_effects) {
1572
- root.f ^= CLEAN;
1573
- var effect = root.first;
1574
- while (effect !== null) {
1575
- var flags = effect.f;
1576
- var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0;
1577
- var is_skippable_branch = is_branch && (flags & CLEAN) !== 0;
1578
- var skip = is_skippable_branch || (flags & INERT) !== 0 || this.#skipped_branches.has(effect);
1579
- if (!skip && effect.fn !== null) {
1580
- if (is_branch) {
1581
- effect.f ^= CLEAN;
1582
- } else if ((flags & EFFECT) !== 0) {
1583
- effects.push(effect);
1584
- } else if (is_dirty(effect)) {
1585
- if ((flags & BLOCK_EFFECT) !== 0) this.#maybe_dirty_effects.add(effect);
1586
- update_effect(effect);
1587
- }
1588
- var child = effect.first;
1589
- if (child !== null) {
1590
- effect = child;
1591
- continue;
1592
- }
1593
- }
1594
- while (effect !== null) {
1595
- var next = effect.next;
1596
- if (next !== null) {
1597
- effect = next;
1598
- break;
1599
- }
1600
- effect = effect.parent;
1601
- }
1602
- }
1603
- }
1604
- #find_earlier_batch() {
1605
- var batch = this.#prev;
1606
- while (batch !== null) {
1607
- if (!batch.is_fork) {
1608
- for (const [value, [, is_derived]] of this.current) {
1609
- if (batch.current.has(value) && !is_derived) {
1610
- return batch;
1611
- }
1612
- }
1613
- }
1614
- batch = batch.#prev;
1615
- }
1616
- return null;
1617
- }
1618
- /**
1619
- * @param {Batch} batch
1620
- */
1621
- #merge(batch) {
1622
- for (const [source2, value] of batch.current) {
1623
- if (!this.previous.has(source2) && batch.previous.has(source2)) {
1624
- this.previous.set(source2, batch.previous.get(source2));
1625
- }
1626
- this.current.set(source2, value);
1627
- }
1628
- for (const [effect, deferred2] of batch.async_deriveds) {
1629
- const d = this.async_deriveds.get(effect);
1630
- if (d) deferred2.promise.then(d.resolve).catch(d.reject);
1631
- }
1632
- batch.async_deriveds.clear();
1633
- this.transfer_effects(batch.#dirty_effects, batch.#maybe_dirty_effects);
1634
- const mark = (value) => {
1635
- var reactions = value.reactions;
1636
- if (reactions === null) return;
1637
- for (const reaction of reactions) {
1638
- var flags = reaction.f;
1639
- if ((flags & DERIVED) !== 0) {
1640
- mark(
1641
- /** @type {Derived} */
1642
- reaction
1643
- );
1644
- } else {
1645
- var effect = (
1646
- /** @type {Effect} */
1647
- reaction
1648
- );
1649
- if (flags & (ASYNC | BLOCK_EFFECT) && !this.async_deriveds.has(effect)) {
1650
- this.#maybe_dirty_effects.delete(effect);
1651
- set_signal_status(effect, DIRTY);
1652
- this.schedule(effect);
1653
- }
1654
- }
1655
- }
1656
- };
1657
- for (const source2 of this.current.keys()) {
1658
- mark(source2);
1659
- }
1660
- this.oncommit(() => batch.discard());
1661
- batch.#unlink();
1662
- current_batch = this;
1663
- this.#process();
1664
- }
1665
- /**
1666
- * @param {Effect[]} effects
1667
- */
1668
- #defer_effects(effects) {
1669
- for (var i = 0; i < effects.length; i += 1) {
1670
- defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects);
1671
- }
1672
- }
1673
- /**
1674
- * Associate a change to a given source with the current
1675
- * batch, noting its previous and current values
1676
- * @param {Value} source
1677
- * @param {any} value
1678
- * @param {boolean} [is_derived]
1679
- */
1680
- capture(source2, value, is_derived = false) {
1681
- if (source2.v !== UNINITIALIZED && !this.previous.has(source2)) {
1682
- this.previous.set(source2, source2.v);
1683
- }
1684
- if ((source2.f & ERROR_VALUE) === 0) {
1685
- this.current.set(source2, [value, is_derived]);
1686
- batch_values?.set(source2, value);
1687
- }
1688
- if (!this.is_fork) {
1689
- source2.v = value;
1690
- }
1691
- }
1692
- activate() {
1693
- current_batch = this;
1694
- }
1695
- deactivate() {
1696
- current_batch = null;
1697
- batch_values = null;
1698
- }
1699
- flush() {
1700
- try {
1701
- if (browser) ;
1702
- is_processing = true;
1703
- current_batch = this;
1704
- this.#process();
1705
- } finally {
1706
- flush_count = 0;
1707
- last_scheduled_effect = null;
1708
- collected_effects = null;
1709
- legacy_updates = null;
1710
- is_processing = false;
1711
- current_batch = null;
1712
- batch_values = null;
1713
- old_values.clear();
1714
- }
1715
- }
1716
- discard() {
1717
- for (const fn of this.#discard_callbacks) fn(this);
1718
- this.#discard_callbacks.clear();
1719
- for (const deferred2 of this.async_deriveds.values()) {
1720
- deferred2.reject(OBSOLETE);
1721
- }
1722
- this.#unlink();
1723
- this.#deferred?.resolve();
1724
- }
1725
- /**
1726
- * @param {Effect} effect
1727
- */
1728
- register_created_effect(effect) {
1729
- this.#new_effects.push(effect);
1730
- }
1731
- #commit() {
1732
- for (let batch = first_batch; batch !== null; batch = batch.#next) {
1733
- var is_earlier = batch.id < this.id;
1734
- var sources = [];
1735
- for (const [source3, [value, is_derived]] of this.current) {
1736
- if (batch.current.has(source3)) {
1737
- var batch_value = (
1738
- /** @type {[any, boolean]} */
1739
- batch.current.get(source3)[0]
1740
- );
1741
- if (is_earlier && value !== batch_value) {
1742
- batch.current.set(source3, [value, is_derived]);
1743
- } else {
1744
- continue;
1745
- }
1746
- }
1747
- sources.push(source3);
1748
- }
1749
- if (is_earlier) {
1750
- for (const [effect, deferred2] of this.async_deriveds) {
1751
- const d = batch.async_deriveds.get(effect);
1752
- if (d) deferred2.promise.then(d.resolve).catch(d.reject);
1753
- }
1754
- }
1755
- var current = [...batch.current.keys()].filter(
1756
- (source3) => !/** @type {[any, boolean]} */
1757
- batch.current.get(source3)[1]
1758
- );
1759
- if (!batch.#started || current.length === 0) continue;
1760
- var others = current.filter((source3) => !this.current.has(source3));
1761
- if (others.length === 0) {
1762
- if (is_earlier) {
1763
- batch.discard();
1764
- }
1765
- } else if (sources.length > 0) {
1766
- if (is_earlier) {
1767
- for (const unskipped of this.#unskipped_branches) {
1768
- batch.unskip_effect(unskipped, (e) => {
1769
- if ((e.f & (BLOCK_EFFECT | ASYNC)) !== 0) {
1770
- batch.schedule(e);
1771
- } else {
1772
- batch.#defer_effects([e]);
1773
- }
1774
- });
1775
- }
1776
- }
1777
- batch.activate();
1778
- var marked = /* @__PURE__ */ new Set();
1779
- var checked = /* @__PURE__ */ new Map();
1780
- for (var source2 of sources) {
1781
- mark_effects(source2, others, marked, checked);
1782
- }
1783
- checked = /* @__PURE__ */ new Map();
1784
- var current_unequal = [...batch.current].filter(([c, v1]) => {
1785
- const v2 = this.current.get(c);
1786
- if (!v2) return true;
1787
- return v2[0] !== v1[0] || v2[1] !== v1[1];
1788
- }).map(([c]) => c);
1789
- if (current_unequal.length > 0) {
1790
- for (const effect of this.#new_effects) {
1791
- if ((effect.f & (DESTROYED | INERT | EAGER_EFFECT)) === 0 && depends_on(effect, current_unequal, checked)) {
1792
- if ((effect.f & (ASYNC | BLOCK_EFFECT)) !== 0) {
1793
- set_signal_status(effect, DIRTY);
1794
- batch.schedule(effect);
1795
- } else {
1796
- batch.#dirty_effects.add(effect);
1797
- }
1798
- }
1799
- }
1800
- }
1801
- if (batch.#roots.length > 0 && !batch.#decrement_queued) {
1802
- batch.apply();
1803
- for (var root of batch.#roots) {
1804
- batch.#traverse(root, [], []);
1805
- }
1806
- batch.#roots = [];
1807
- }
1808
- batch.deactivate();
1809
- }
1810
- }
1811
- }
1812
- /**
1813
- * @param {boolean} blocking
1814
- * @param {Effect} effect
1815
- */
1816
- increment(blocking, effect) {
1817
- this.#pending += 1;
1818
- if (blocking) {
1819
- let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0;
1820
- this.#blocking_pending.set(effect, blocking_pending_count + 1);
1821
- }
1822
- }
1823
- /**
1824
- * @param {boolean} blocking
1825
- * @param {Effect} effect
1826
- */
1827
- decrement(blocking, effect) {
1828
- this.#pending -= 1;
1829
- if (blocking) {
1830
- let blocking_pending_count = this.#blocking_pending.get(effect) ?? 0;
1831
- if (blocking_pending_count === 1) {
1832
- this.#blocking_pending.delete(effect);
1833
- } else {
1834
- this.#blocking_pending.set(effect, blocking_pending_count - 1);
1835
- }
1836
- }
1837
- if (this.#decrement_queued) return;
1838
- this.#decrement_queued = true;
1839
- queue_micro_task(() => {
1840
- this.#decrement_queued = false;
1841
- if (this.linked) {
1842
- this.flush();
1843
- }
1844
- });
1845
- }
1846
- /**
1847
- * @param {Set<Effect>} dirty_effects
1848
- * @param {Set<Effect>} maybe_dirty_effects
1849
- */
1850
- transfer_effects(dirty_effects, maybe_dirty_effects) {
1851
- for (const e of dirty_effects) {
1852
- this.#dirty_effects.add(e);
1853
- }
1854
- for (const e of maybe_dirty_effects) {
1855
- this.#maybe_dirty_effects.add(e);
1856
- }
1857
- dirty_effects.clear();
1858
- maybe_dirty_effects.clear();
1859
- }
1860
- /** @param {(batch: Batch) => void} fn */
1861
- oncommit(fn) {
1862
- this.#commit_callbacks.add(fn);
1863
- }
1864
- /** @param {(batch: Batch) => void} fn */
1865
- ondiscard(fn) {
1866
- this.#discard_callbacks.add(fn);
1867
- }
1868
- settled() {
1869
- return (this.#deferred ??= deferred()).promise;
1870
- }
1871
- static ensure() {
1872
- if (current_batch === null) {
1873
- const batch = current_batch = new Batch();
1874
- if (!is_processing && !is_flushing_sync) {
1875
- queue_micro_task(() => {
1876
- if (!batch.#started) {
1877
- batch.flush();
1878
- }
1879
- });
1880
- }
1881
- }
1882
- return current_batch;
1883
- }
1884
- apply() {
1885
- {
1886
- batch_values = null;
1887
- return;
1888
- }
1889
- }
1890
- /**
1891
- *
1892
- * @param {Effect} effect
1893
- */
1894
- schedule(effect) {
1895
- last_scheduled_effect = effect;
1896
- if (effect.b?.is_pending && (effect.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (effect.f & REACTION_RAN) === 0) {
1897
- effect.b.defer_effect(effect);
1898
- return;
1899
- }
1900
- var e = effect;
1901
- while (e.parent !== null) {
1902
- e = e.parent;
1903
- var flags = e.f;
1904
- if (collected_effects !== null && e === active_effect) {
1905
- if ((active_reaction === null || (active_reaction.f & DERIVED) === 0) && true) {
1906
- return;
1907
- }
1908
- }
1909
- if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
1910
- if ((flags & CLEAN) === 0) {
1911
- return;
1912
- }
1913
- e.f ^= CLEAN;
1914
- }
1915
- }
1916
- this.#roots.push(e);
1917
- }
1918
- #unlink() {
1919
- if (!this.linked) return;
1920
- var prev = this.#prev;
1921
- var next = this.#next;
1922
- if (prev === null) {
1923
- first_batch = next;
1924
- } else {
1925
- prev.#next = next;
1926
- }
1927
- if (next === null) {
1928
- last_batch = prev;
1929
- } else {
1930
- next.#prev = prev;
1931
- }
1932
- this.linked = false;
1933
- }
1934
- }
1935
- function flushSync(fn) {
1936
- var was_flushing_sync = is_flushing_sync;
1937
- is_flushing_sync = true;
1938
- try {
1939
- var result;
1940
- if (fn) ;
1941
- while (true) {
1942
- flush_tasks();
1943
- if (current_batch === null) {
1944
- return (
1945
- /** @type {T} */
1946
- result
1947
- );
1948
- }
1949
- current_batch.flush();
1950
- }
1951
- } finally {
1952
- is_flushing_sync = was_flushing_sync;
1953
- }
1954
- }
1955
- function infinite_loop_guard() {
1956
- try {
1957
- effect_update_depth_exceeded();
1958
- } catch (error) {
1959
- invoke_error_boundary(error, last_scheduled_effect);
1960
- }
1961
- }
1962
- let eager_block_effects = null;
1963
- function flush_queued_effects(effects) {
1964
- var length = effects.length;
1965
- if (length === 0) return;
1966
- var i = 0;
1967
- while (i < length) {
1968
- var effect = effects[i++];
1969
- if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) {
1970
- eager_block_effects = /* @__PURE__ */ new Set();
1971
- update_effect(effect);
1972
- if (effect.deps === null && effect.first === null && effect.nodes === null && effect.teardown === null && effect.ac === null) {
1973
- unlink_effect(effect);
1974
- }
1975
- if (eager_block_effects?.size > 0) {
1976
- old_values.clear();
1977
- for (const e of eager_block_effects) {
1978
- if ((e.f & (DESTROYED | INERT)) !== 0) continue;
1979
- const ordered_effects = [e];
1980
- let ancestor = e.parent;
1981
- while (ancestor !== null) {
1982
- if (eager_block_effects.has(ancestor)) {
1983
- eager_block_effects.delete(ancestor);
1984
- ordered_effects.push(ancestor);
1985
- }
1986
- ancestor = ancestor.parent;
1987
- }
1988
- for (let j = ordered_effects.length - 1; j >= 0; j--) {
1989
- const e2 = ordered_effects[j];
1990
- if ((e2.f & (DESTROYED | INERT)) !== 0) continue;
1991
- update_effect(e2);
1992
- }
1993
- }
1994
- eager_block_effects.clear();
1995
- }
1996
- }
1997
- }
1998
- eager_block_effects = null;
1999
- }
2000
- function mark_effects(value, sources, marked, checked) {
2001
- if (marked.has(value)) return;
2002
- marked.add(value);
2003
- if (value.reactions !== null) {
2004
- for (const reaction of value.reactions) {
2005
- const flags = reaction.f;
2006
- if ((flags & DERIVED) !== 0) {
2007
- mark_effects(
2008
- /** @type {Derived} */
2009
- reaction,
2010
- sources,
2011
- marked,
2012
- checked
2013
- );
2014
- } else if ((flags & (ASYNC | BLOCK_EFFECT)) !== 0 && (flags & DIRTY) === 0 && depends_on(reaction, sources, checked)) {
2015
- set_signal_status(reaction, DIRTY);
2016
- schedule_effect(
2017
- /** @type {Effect} */
2018
- reaction
2019
- );
2020
- }
2021
- }
2022
- }
2023
- }
2024
- function depends_on(reaction, sources, checked) {
2025
- const depends = checked.get(reaction);
2026
- if (depends !== void 0) return depends;
2027
- if (reaction.deps !== null) {
2028
- for (const dep of reaction.deps) {
2029
- if (includes.call(sources, dep)) {
2030
- return true;
2031
- }
2032
- if ((dep.f & DERIVED) !== 0 && depends_on(
2033
- /** @type {Derived} */
2034
- dep,
2035
- sources,
2036
- checked
2037
- )) {
2038
- checked.set(
2039
- /** @type {Derived} */
2040
- dep,
2041
- true
2042
- );
2043
- return true;
2044
- }
2045
- }
2046
- }
2047
- checked.set(reaction, false);
2048
- return false;
2049
- }
2050
- function schedule_effect(effect) {
2051
- current_batch.schedule(effect);
2052
- }
2053
- function reset_branch(effect, tracked) {
2054
- if ((effect.f & BRANCH_EFFECT) !== 0 && (effect.f & CLEAN) !== 0) {
2055
- return;
2056
- }
2057
- if ((effect.f & DIRTY) !== 0) {
2058
- tracked.d.push(effect);
2059
- } else if ((effect.f & MAYBE_DIRTY) !== 0) {
2060
- tracked.m.push(effect);
2061
- }
2062
- set_signal_status(effect, CLEAN);
2063
- var e = effect.first;
2064
- while (e !== null) {
2065
- reset_branch(e, tracked);
2066
- e = e.next;
2067
- }
2068
- }
2069
- function reset_all(effect) {
2070
- set_signal_status(effect, CLEAN);
2071
- var e = effect.first;
2072
- while (e !== null) {
2073
- reset_all(e);
2074
- e = e.next;
2075
- }
2076
- }
2077
- let eager_effects = /* @__PURE__ */ new Set();
2078
- const old_values = /* @__PURE__ */ new Map();
2079
- let eager_effects_deferred = false;
2080
- function source(v, stack) {
2081
- var signal = {
2082
- f: 0,
2083
- // TODO ideally we could skip this altogether, but it causes type errors
2084
- v,
2085
- reactions: null,
2086
- equals,
2087
- rv: 0,
2088
- wv: 0
2089
- };
2090
- return signal;
2091
- }
2092
- // @__NO_SIDE_EFFECTS__
2093
- function state(v, stack) {
2094
- const s = source(v);
2095
- push_reaction_value(s);
2096
- return s;
2097
- }
2098
- // @__NO_SIDE_EFFECTS__
2099
- function mutable_source(initial_value, immutable = false, trackable = true) {
2100
- const s = source(initial_value);
2101
- if (!immutable) {
2102
- s.equals = safe_equals;
2103
- }
2104
- return s;
2105
- }
2106
- function set(source2, value, should_proxy = false) {
2107
- if (active_reaction !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
2108
- // to ensure we error if state is set inside an inspect effect
2109
- (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && (current_sources === null || !current_sources.has(source2))) {
2110
- state_unsafe_mutation();
2111
- }
2112
- let new_value = should_proxy ? proxy(value) : value;
2113
- return internal_set(source2, new_value, legacy_updates);
2114
- }
2115
- function internal_set(source2, value, updated_during_traversal = null) {
2116
- if (!source2.equals(value)) {
2117
- old_values.set(source2, is_destroying_effect ? value : source2.v);
2118
- var batch = Batch.ensure();
2119
- batch.capture(source2, value);
2120
- if ((source2.f & DERIVED) !== 0) {
2121
- const derived2 = (
2122
- /** @type {Derived} */
2123
- source2
2124
- );
2125
- if ((source2.f & DIRTY) !== 0) {
2126
- execute_derived(derived2);
2127
- }
2128
- if (batch_values === null) {
2129
- update_derived_status(derived2);
2130
- }
2131
- }
2132
- source2.wv = increment_write_version();
2133
- mark_reactions(source2, DIRTY, updated_during_traversal);
2134
- if (active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
2135
- if (untracked_writes === null) {
2136
- set_untracked_writes([source2]);
2137
- } else {
2138
- untracked_writes.push(source2);
2139
- }
2140
- }
2141
- if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) {
2142
- flush_eager_effects();
2143
- }
2144
- }
2145
- return value;
2146
- }
2147
- function flush_eager_effects() {
2148
- eager_effects_deferred = false;
2149
- for (const effect of eager_effects) {
2150
- if ((effect.f & CLEAN) !== 0) {
2151
- set_signal_status(effect, MAYBE_DIRTY);
2152
- }
2153
- let dirty;
2154
- try {
2155
- dirty = is_dirty(effect);
2156
- } catch {
2157
- dirty = true;
2158
- }
2159
- if (dirty) {
2160
- update_effect(effect);
2161
- }
2162
- }
2163
- eager_effects.clear();
2164
- }
2165
- function increment(source2) {
2166
- set(source2, source2.v + 1);
2167
- }
2168
- function mark_reactions(signal, status, updated_during_traversal) {
2169
- var reactions = signal.reactions;
2170
- if (reactions === null) return;
2171
- var length = reactions.length;
2172
- for (var i = 0; i < length; i++) {
2173
- var reaction = reactions[i];
2174
- var flags = reaction.f;
2175
- var not_dirty = (flags & DIRTY) === 0;
2176
- if (not_dirty) {
2177
- set_signal_status(reaction, status);
2178
- }
2179
- if ((flags & EAGER_EFFECT) !== 0) {
2180
- eager_effects.add(
2181
- /** @type {Effect} */
2182
- reaction
2183
- );
2184
- } else if ((flags & DERIVED) !== 0) {
2185
- var derived2 = (
2186
- /** @type {Derived} */
2187
- reaction
2188
- );
2189
- batch_values?.delete(derived2);
2190
- if ((flags & WAS_MARKED) === 0) {
2191
- if (flags & CONNECTED && (active_effect === null || (active_effect.f & REACTION_IS_UPDATING) === 0)) {
2192
- reaction.f |= WAS_MARKED;
2193
- }
2194
- mark_reactions(derived2, MAYBE_DIRTY, updated_during_traversal);
2195
- }
2196
- } else if (not_dirty) {
2197
- var effect = (
2198
- /** @type {Effect} */
2199
- reaction
2200
- );
2201
- if ((flags & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) {
2202
- eager_block_effects.add(effect);
2203
- }
2204
- if (updated_during_traversal !== null) {
2205
- updated_during_traversal.push(effect);
2206
- } else {
2207
- schedule_effect(effect);
2208
- }
2209
- }
2210
- }
2211
- }
2212
- function without_reactive_context(fn) {
2213
- var previous_reaction = active_reaction;
2214
- var previous_effect = active_effect;
2215
- set_active_reaction(null);
2216
- set_active_effect(null);
2217
- try {
2218
- return fn();
2219
- } finally {
2220
- set_active_reaction(previous_reaction);
2221
- set_active_effect(previous_effect);
2222
- }
2223
- }
2224
- let is_updating_effect = false;
2225
- let is_destroying_effect = false;
2226
- function set_is_destroying_effect(value) {
2227
- is_destroying_effect = value;
2228
- }
2229
- let active_reaction = null;
2230
- let untracking = false;
2231
- function set_active_reaction(reaction) {
2232
- active_reaction = reaction;
2233
- }
2234
- let active_effect = null;
2235
- function set_active_effect(effect) {
2236
- active_effect = effect;
2237
- }
2238
- let current_sources = null;
2239
- function push_reaction_value(value) {
2240
- if (active_reaction !== null && true) {
2241
- (current_sources ??= /* @__PURE__ */ new Set()).add(value);
2242
- }
2243
- }
2244
- let new_deps = null;
2245
- let skipped_deps = 0;
2246
- let untracked_writes = null;
2247
- function set_untracked_writes(value) {
2248
- untracked_writes = value;
2249
- }
2250
- let write_version = 1;
2251
- let read_version = 0;
2252
- let update_version = read_version;
2253
- function set_update_version(value) {
2254
- update_version = value;
2255
- }
2256
- function increment_write_version() {
2257
- return ++write_version;
2258
- }
2259
- function is_dirty(reaction) {
2260
- var flags = reaction.f;
2261
- if ((flags & DIRTY) !== 0) {
2262
- return true;
2263
- }
2264
- if (flags & DERIVED) {
2265
- reaction.f &= ~WAS_MARKED;
2266
- }
2267
- if ((flags & MAYBE_DIRTY) !== 0) {
2268
- var dependencies = (
2269
- /** @type {Value[]} */
2270
- reaction.deps
2271
- );
2272
- var length = dependencies.length;
2273
- for (var i = 0; i < length; i++) {
2274
- var dependency = dependencies[i];
2275
- if (is_dirty(
2276
- /** @type {Derived} */
2277
- dependency
2278
- )) {
2279
- update_derived(
2280
- /** @type {Derived} */
2281
- dependency
2282
- );
2283
- }
2284
- if (dependency.wv > reaction.wv) {
2285
- return true;
2286
- }
2287
- }
2288
- if ((flags & CONNECTED) !== 0 && // During time traveling we don't want to reset the status so that
2289
- // traversal of the graph in the other batches still happens
2290
- batch_values === null) {
2291
- set_signal_status(reaction, CLEAN);
2292
- }
2293
- }
2294
- return false;
2295
- }
2296
- function schedule_possible_effect_self_invalidation(signal, effect, root = true) {
2297
- var reactions = signal.reactions;
2298
- if (reactions === null) return;
2299
- if (current_sources !== null && current_sources.has(signal)) {
2300
- return;
2301
- }
2302
- for (var i = 0; i < reactions.length; i++) {
2303
- var reaction = reactions[i];
2304
- if ((reaction.f & DERIVED) !== 0) {
2305
- schedule_possible_effect_self_invalidation(
2306
- /** @type {Derived} */
2307
- reaction,
2308
- effect,
2309
- false
2310
- );
2311
- } else if (effect === reaction) {
2312
- if (root) {
2313
- set_signal_status(reaction, DIRTY);
2314
- } else if ((reaction.f & CLEAN) !== 0) {
2315
- set_signal_status(reaction, MAYBE_DIRTY);
2316
- }
2317
- schedule_effect(
2318
- /** @type {Effect} */
2319
- reaction
2320
- );
2321
- }
2322
- }
2323
- }
2324
- function update_reaction(reaction) {
2325
- var previous_deps = new_deps;
2326
- var previous_skipped_deps = skipped_deps;
2327
- var previous_untracked_writes = untracked_writes;
2328
- var previous_reaction = active_reaction;
2329
- var previous_sources = current_sources;
2330
- var previous_component_context = component_context;
2331
- var previous_untracking = untracking;
2332
- var previous_update_version = update_version;
2333
- var flags = reaction.f;
2334
- new_deps = /** @type {null | Value[]} */
2335
- null;
2336
- skipped_deps = 0;
2337
- untracked_writes = null;
2338
- active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null;
2339
- current_sources = null;
2340
- set_component_context(reaction.ctx);
2341
- untracking = false;
2342
- update_version = ++read_version;
2343
- if (reaction.ac !== null) {
2344
- without_reactive_context(() => {
2345
- reaction.ac.abort(STALE_REACTION);
2346
- });
2347
- reaction.ac = null;
2348
- }
2349
- try {
2350
- reaction.f |= REACTION_IS_UPDATING;
2351
- var fn = (
2352
- /** @type {Function} */
2353
- reaction.fn
2354
- );
2355
- var result = fn();
2356
- reaction.f |= REACTION_RAN;
2357
- var deps = reaction.deps;
2358
- var is_fork = current_batch?.is_fork;
2359
- if (new_deps !== null) {
2360
- var i;
2361
- if (!is_fork) {
2362
- remove_reactions(reaction, skipped_deps);
2363
- }
2364
- if (deps !== null && skipped_deps > 0) {
2365
- deps.length = skipped_deps + new_deps.length;
2366
- for (i = 0; i < new_deps.length; i++) {
2367
- deps[skipped_deps + i] = new_deps[i];
2368
- }
2369
- } else {
2370
- reaction.deps = deps = new_deps;
2371
- }
2372
- if (effect_tracking() && (reaction.f & CONNECTED) !== 0) {
2373
- for (i = skipped_deps; i < deps.length; i++) {
2374
- (deps[i].reactions ??= []).push(reaction);
2375
- }
2376
- }
2377
- } else if (!is_fork && deps !== null && skipped_deps < deps.length) {
2378
- remove_reactions(reaction, skipped_deps);
2379
- deps.length = skipped_deps;
2380
- }
2381
- if (is_runes() && untracked_writes !== null && !untracking && deps !== null && (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0) {
2382
- for (i = 0; i < /** @type {Source[]} */
2383
- untracked_writes.length; i++) {
2384
- schedule_possible_effect_self_invalidation(
2385
- untracked_writes[i],
2386
- /** @type {Effect} */
2387
- reaction
2388
- );
2389
- }
2390
- }
2391
- if (previous_reaction !== null && previous_reaction !== reaction) {
2392
- read_version++;
2393
- if (previous_reaction.deps !== null) {
2394
- for (let i2 = 0; i2 < previous_skipped_deps; i2 += 1) {
2395
- previous_reaction.deps[i2].rv = read_version;
2396
- }
2397
- }
2398
- if (previous_deps !== null) {
2399
- for (const dep of previous_deps) {
2400
- dep.rv = read_version;
2401
- }
2402
- }
2403
- if (untracked_writes !== null) {
2404
- if (previous_untracked_writes === null) {
2405
- previous_untracked_writes = untracked_writes;
2406
- } else {
2407
- previous_untracked_writes.push(.../** @type {Source[]} */
2408
- untracked_writes);
2409
- }
2410
- }
2411
- }
2412
- if ((reaction.f & ERROR_VALUE) !== 0) {
2413
- reaction.f ^= ERROR_VALUE;
2414
- }
2415
- return result;
2416
- } catch (error) {
2417
- return handle_error(error);
2418
- } finally {
2419
- reaction.f ^= REACTION_IS_UPDATING;
2420
- new_deps = previous_deps;
2421
- skipped_deps = previous_skipped_deps;
2422
- untracked_writes = previous_untracked_writes;
2423
- active_reaction = previous_reaction;
2424
- current_sources = previous_sources;
2425
- set_component_context(previous_component_context);
2426
- untracking = previous_untracking;
2427
- update_version = previous_update_version;
2428
- }
2429
- }
2430
- function remove_reaction(signal, dependency) {
2431
- let reactions = dependency.reactions;
2432
- if (reactions !== null) {
2433
- var index = index_of.call(reactions, signal);
2434
- if (index !== -1) {
2435
- var new_length = reactions.length - 1;
2436
- if (new_length === 0) {
2437
- reactions = dependency.reactions = null;
2438
- } else {
2439
- reactions[index] = reactions[new_length];
2440
- reactions.pop();
2441
- }
2442
- }
2443
- }
2444
- if (reactions === null && (dependency.f & DERIVED) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
2445
- // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
2446
- // allows us to skip the expensive work of disconnecting and immediately reconnecting it
2447
- (new_deps === null || !includes.call(new_deps, dependency))) {
2448
- var derived2 = (
2449
- /** @type {Derived} */
2450
- dependency
2451
- );
2452
- if ((derived2.f & CONNECTED) !== 0) {
2453
- derived2.f ^= CONNECTED;
2454
- derived2.f &= ~WAS_MARKED;
2455
- }
2456
- if (derived2.v !== UNINITIALIZED) {
2457
- update_derived_status(derived2);
2458
- }
2459
- freeze_derived_effects(derived2);
2460
- remove_reactions(derived2, 0);
2461
- }
2462
- }
2463
- function remove_reactions(signal, start_index) {
2464
- var dependencies = signal.deps;
2465
- if (dependencies === null) return;
2466
- for (var i = start_index; i < dependencies.length; i++) {
2467
- remove_reaction(signal, dependencies[i]);
2468
- }
2469
- }
2470
- function update_effect(effect) {
2471
- var flags = effect.f;
2472
- if ((flags & DESTROYED) !== 0) {
2473
- return;
2474
- }
2475
- set_signal_status(effect, CLEAN);
2476
- var previous_effect = active_effect;
2477
- var was_updating_effect = is_updating_effect;
2478
- active_effect = effect;
2479
- is_updating_effect = true;
2480
- try {
2481
- if ((flags & (BLOCK_EFFECT | MANAGED_EFFECT)) !== 0) {
2482
- destroy_block_effect_children(effect);
2483
- } else {
2484
- destroy_effect_children(effect);
2485
- }
2486
- execute_effect_teardown(effect);
2487
- var teardown = update_reaction(effect);
2488
- effect.teardown = typeof teardown === "function" ? teardown : null;
2489
- effect.wv = write_version;
2490
- var dep;
2491
- if (browser && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) ;
2492
- } finally {
2493
- is_updating_effect = was_updating_effect;
2494
- active_effect = previous_effect;
2495
- }
2496
- }
2497
- function get(signal) {
2498
- var flags = signal.f;
2499
- var is_derived = (flags & DERIVED) !== 0;
2500
- if (active_reaction !== null && !untracking) {
2501
- var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0;
2502
- if (!destroyed && (current_sources === null || !current_sources.has(signal))) {
2503
- var deps = active_reaction.deps;
2504
- if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) {
2505
- if (signal.rv < read_version) {
2506
- signal.rv = read_version;
2507
- if (new_deps === null && deps !== null && deps[skipped_deps] === signal) {
2508
- skipped_deps++;
2509
- } else if (new_deps === null) {
2510
- new_deps = [signal];
2511
- } else {
2512
- new_deps.push(signal);
2513
- }
2514
- }
2515
- } else {
2516
- active_reaction.deps ??= [];
2517
- if (!includes.call(active_reaction.deps, signal)) {
2518
- active_reaction.deps.push(signal);
2519
- }
2520
- var reactions = signal.reactions;
2521
- if (reactions === null) {
2522
- signal.reactions = [active_reaction];
2523
- } else if (!includes.call(reactions, active_reaction)) {
2524
- reactions.push(active_reaction);
2525
- }
2526
- }
2527
- }
2528
- }
2529
- if (is_destroying_effect && old_values.has(signal)) {
2530
- return old_values.get(signal);
2531
- }
2532
- if (is_derived) {
2533
- var derived2 = (
2534
- /** @type {Derived} */
2535
- signal
2536
- );
2537
- if (is_destroying_effect) {
2538
- var value = derived2.v;
2539
- if ((derived2.f & CLEAN) === 0 && derived2.reactions !== null || depends_on_old_values(derived2)) {
2540
- value = execute_derived(derived2);
2541
- }
2542
- old_values.set(derived2, value);
2543
- return value;
2544
- }
2545
- var should_connect = (derived2.f & CONNECTED) === 0 && !untracking && active_reaction !== null && (is_updating_effect || (active_reaction.f & CONNECTED) !== 0);
2546
- var is_new = (derived2.f & REACTION_RAN) === 0;
2547
- if (is_dirty(derived2)) {
2548
- if (should_connect) {
2549
- derived2.f |= CONNECTED;
2550
- }
2551
- update_derived(derived2);
2552
- }
2553
- if (should_connect && !is_new) {
2554
- unfreeze_derived_effects(derived2);
2555
- reconnect(derived2);
2556
- }
2557
- }
2558
- if (batch_values?.has(signal)) {
2559
- return batch_values.get(signal);
2560
- }
2561
- if ((signal.f & ERROR_VALUE) !== 0) {
2562
- throw signal.v;
2563
- }
2564
- return signal.v;
2565
- }
2566
- function reconnect(derived2) {
2567
- derived2.f |= CONNECTED;
2568
- if (derived2.deps === null) return;
2569
- for (const dep of derived2.deps) {
2570
- (dep.reactions ??= []).push(derived2);
2571
- if ((dep.f & DERIVED) !== 0 && (dep.f & CONNECTED) === 0) {
2572
- unfreeze_derived_effects(
2573
- /** @type {Derived} */
2574
- dep
2575
- );
2576
- reconnect(
2577
- /** @type {Derived} */
2578
- dep
2579
- );
2580
- }
2581
- }
2582
- }
2583
- function depends_on_old_values(derived2) {
2584
- if (derived2.v === UNINITIALIZED) return true;
2585
- if (derived2.deps === null) return false;
2586
- for (const dep of derived2.deps) {
2587
- if (old_values.has(dep)) {
2588
- return true;
2589
- }
2590
- if ((dep.f & DERIVED) !== 0 && depends_on_old_values(
2591
- /** @type {Derived} */
2592
- dep
2593
- )) {
2594
- return true;
2595
- }
2596
- }
2597
- return false;
2598
- }
2599
- function untrack(fn) {
2600
- var previous_untracking = untracking;
2601
- try {
2602
- untracking = true;
2603
- return fn();
2604
- } finally {
2605
- untracking = previous_untracking;
2606
- }
2607
- }
2608
- function push_effect(effect, parent_effect) {
2609
- var parent_last = parent_effect.last;
2610
- if (parent_last === null) {
2611
- parent_effect.last = parent_effect.first = effect;
2612
- } else {
2613
- parent_last.next = effect;
2614
- effect.prev = parent_last;
2615
- parent_effect.last = effect;
2616
- }
2617
- }
2618
- function create_effect(type, fn) {
2619
- var parent = active_effect;
2620
- if (parent !== null && (parent.f & INERT) !== 0) {
2621
- type |= INERT;
2622
- }
2623
- var effect = {
2624
- ctx: component_context,
2625
- deps: null,
2626
- nodes: null,
2627
- f: type | DIRTY | CONNECTED,
2628
- first: null,
2629
- fn,
2630
- last: null,
2631
- next: null,
2632
- parent,
2633
- b: parent && parent.b,
2634
- prev: null,
2635
- teardown: null,
2636
- wv: 0,
2637
- ac: null
2638
- };
2639
- current_batch?.register_created_effect(effect);
2640
- var e = effect;
2641
- if ((type & EFFECT) !== 0) {
2642
- if (collected_effects !== null) {
2643
- collected_effects.push(effect);
2644
- } else {
2645
- Batch.ensure().schedule(effect);
2646
- }
2647
- } else if (fn !== null) {
2648
- try {
2649
- update_effect(effect);
2650
- } catch (e2) {
2651
- destroy_effect(effect);
2652
- throw e2;
2653
- }
2654
- if (e.deps === null && e.teardown === null && e.nodes === null && e.first === e.last && // either `null`, or a singular child
2655
- (e.f & EFFECT_PRESERVED) === 0) {
2656
- e = e.first;
2657
- if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) {
2658
- e.f |= EFFECT_TRANSPARENT;
2659
- }
2660
- }
2661
- }
2662
- if (e !== null) {
2663
- e.parent = parent;
2664
- if (parent !== null) {
2665
- push_effect(e, parent);
2666
- }
2667
- if (active_reaction !== null && (active_reaction.f & DERIVED) !== 0 && (type & ROOT_EFFECT) === 0) {
2668
- var derived2 = (
2669
- /** @type {Derived} */
2670
- active_reaction
2671
- );
2672
- (derived2.effects ??= []).push(e);
2673
- }
2674
- }
2675
- return effect;
2676
- }
2677
- function effect_tracking() {
2678
- return active_reaction !== null && !untracking;
2679
- }
2680
- function create_user_effect(fn) {
2681
- return create_effect(EFFECT | USER_EFFECT, fn);
2682
- }
2683
- function component_root(fn) {
2684
- Batch.ensure();
2685
- const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn);
2686
- return (options = {}) => {
2687
- return new Promise((fulfil) => {
2688
- if (options.outro) {
2689
- pause_effect(effect, () => {
2690
- destroy_effect(effect);
2691
- fulfil(void 0);
2692
- });
2693
- } else {
2694
- destroy_effect(effect);
2695
- fulfil(void 0);
2696
- }
2697
- });
2698
- };
2699
- }
2700
- function render_effect(fn, flags = 0) {
2701
- return create_effect(RENDER_EFFECT | flags, fn);
2702
- }
2703
- function block(fn, flags = 0) {
2704
- var effect = create_effect(BLOCK_EFFECT | flags, fn);
2705
- return effect;
2706
- }
2707
- function branch(fn) {
2708
- return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn);
2709
- }
2710
- function execute_effect_teardown(effect) {
2711
- var teardown = effect.teardown;
2712
- if (teardown !== null) {
2713
- const previously_destroying_effect = is_destroying_effect;
2714
- const previous_reaction = active_reaction;
2715
- set_is_destroying_effect(true);
2716
- set_active_reaction(null);
2717
- try {
2718
- teardown.call(null);
2719
- } finally {
2720
- set_is_destroying_effect(previously_destroying_effect);
2721
- set_active_reaction(previous_reaction);
2722
- }
2723
- }
2724
- }
2725
- function destroy_effect_children(signal, remove_dom = false) {
2726
- var effect = signal.first;
2727
- signal.first = signal.last = null;
2728
- while (effect !== null) {
2729
- const controller2 = effect.ac;
2730
- if (controller2 !== null) {
2731
- without_reactive_context(() => {
2732
- controller2.abort(STALE_REACTION);
2733
- });
2734
- }
2735
- var next = effect.next;
2736
- if ((effect.f & ROOT_EFFECT) !== 0) {
2737
- effect.parent = null;
2738
- } else {
2739
- destroy_effect(effect, remove_dom);
2740
- }
2741
- effect = next;
2742
- }
2743
- }
2744
- function destroy_block_effect_children(signal) {
2745
- var effect = signal.first;
2746
- while (effect !== null) {
2747
- var next = effect.next;
2748
- if ((effect.f & BRANCH_EFFECT) === 0) {
2749
- destroy_effect(effect);
2750
- }
2751
- effect = next;
2752
- }
2753
- }
2754
- function destroy_effect(effect, remove_dom = true) {
2755
- var removed = false;
2756
- if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
2757
- remove_effect_dom(
2758
- effect.nodes.start,
2759
- /** @type {TemplateNode} */
2760
- effect.nodes.end
2761
- );
2762
- removed = true;
2763
- }
2764
- effect.f |= DESTROYING;
2765
- destroy_effect_children(effect, remove_dom && !removed);
2766
- remove_reactions(effect, 0);
2767
- var transitions = effect.nodes && effect.nodes.t;
2768
- if (transitions !== null) {
2769
- for (const transition of transitions) {
2770
- transition.stop();
2771
- }
2772
- }
2773
- execute_effect_teardown(effect);
2774
- effect.f ^= DESTROYING;
2775
- effect.f |= DESTROYED;
2776
- var parent = effect.parent;
2777
- if (parent !== null && parent.first !== null) {
2778
- unlink_effect(effect);
2779
- }
2780
- effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = effect.b = null;
2781
- }
2782
- function remove_effect_dom(node, end) {
2783
- while (node !== null) {
2784
- var next = node === end ? null : /* @__PURE__ */ get_next_sibling(node);
2785
- node.remove();
2786
- node = next;
2787
- }
2788
- }
2789
- function unlink_effect(effect) {
2790
- var parent = effect.parent;
2791
- var prev = effect.prev;
2792
- var next = effect.next;
2793
- if (prev !== null) prev.next = next;
2794
- if (next !== null) next.prev = prev;
2795
- if (parent !== null) {
2796
- if (parent.first === effect) parent.first = next;
2797
- if (parent.last === effect) parent.last = prev;
2798
- }
2799
- }
2800
- function pause_effect(effect, callback, destroy = true) {
2801
- var transitions = [];
2802
- pause_children(effect, transitions, true);
2803
- var fn = () => {
2804
- if (destroy) destroy_effect(effect);
2805
- if (callback) callback();
2806
- };
2807
- var remaining = transitions.length;
2808
- if (remaining > 0) {
2809
- var check = () => --remaining || fn();
2810
- for (var transition of transitions) {
2811
- transition.out(check);
2812
- }
2813
- } else {
2814
- fn();
2815
- }
2816
- }
2817
- function pause_children(effect, transitions, local) {
2818
- if ((effect.f & INERT) !== 0) return;
2819
- effect.f ^= INERT;
2820
- var t = effect.nodes && effect.nodes.t;
2821
- if (t !== null) {
2822
- for (const transition of t) {
2823
- if (transition.is_global || local) {
2824
- transitions.push(transition);
2825
- }
2826
- }
2827
- }
2828
- var child = effect.first;
2829
- while (child !== null) {
2830
- var sibling = child.next;
2831
- if ((child.f & ROOT_EFFECT) === 0) {
2832
- var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || // If this is a branch effect without a block effect parent,
2833
- // it means the parent block effect was pruned. In that case,
2834
- // transparency information was transferred to the branch effect.
2835
- (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
2836
- pause_children(child, transitions, transparent ? local : false);
2837
- }
2838
- child = sibling;
2839
- }
2840
- }
2841
- function move_effect(effect, fragment) {
2842
- if (!effect.nodes) return;
2843
- var node = effect.nodes.start;
2844
- var end = effect.nodes.end;
2845
- while (node !== null) {
2846
- var next = node === end ? null : /* @__PURE__ */ get_next_sibling(node);
2847
- fragment.append(node);
2848
- node = next;
2849
- }
2850
- }
2851
- const DOM_BOOLEAN_ATTRIBUTES = [
2852
- "allowfullscreen",
2853
- "async",
2854
- "autofocus",
2855
- "autoplay",
2856
- "checked",
2857
- "controls",
2858
- "default",
2859
- "disabled",
2860
- "formnovalidate",
2861
- "indeterminate",
2862
- "inert",
2863
- "ismap",
2864
- "loop",
2865
- "multiple",
2866
- "muted",
2867
- "nomodule",
2868
- "novalidate",
2869
- "open",
2870
- "playsinline",
2871
- "readonly",
2872
- "required",
2873
- "reversed",
2874
- "seamless",
2875
- "selected",
2876
- "webkitdirectory",
2877
- "defer",
2878
- "disablepictureinpicture",
2879
- "disableremoteplayback"
2880
- ];
2881
- function is_boolean_attribute(name) {
2882
- return DOM_BOOLEAN_ATTRIBUTES.includes(name);
2883
- }
2884
- const PASSIVE_EVENTS = ["touchstart", "touchmove"];
2885
- function is_passive_event(name) {
2886
- return PASSIVE_EVENTS.includes(name);
2887
- }
2888
- const ATTR_REGEX = /[&"<]/g;
2889
- const CONTENT_REGEX = /[&<]/g;
2890
- function escape_html(value, is_attr) {
2891
- const str = String(value ?? "");
2892
- const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;
2893
- pattern.lastIndex = 0;
2894
- let escaped = "";
2895
- let last = 0;
2896
- while (pattern.test(str)) {
2897
- const i = pattern.lastIndex - 1;
2898
- const ch = str[i];
2899
- escaped += str.substring(last, i) + (ch === "&" ? "&amp;" : ch === '"' ? "&quot;" : "&lt;");
2900
- last = i + 1;
2901
- }
2902
- return escaped + str.substring(last);
2903
- }
2904
- const replacements = {
2905
- translate: /* @__PURE__ */ new Map([
2906
- [true, "yes"],
2907
- [false, "no"]
2908
- ])
2909
- };
2910
- function attr(name, value, is_boolean = false) {
2911
- if (name === "hidden" && value !== "until-found") {
2912
- is_boolean = true;
2913
- }
2914
- if (value == null || !value && is_boolean) return "";
2915
- const normalized = has_own_property.call(replacements, name) && replacements[name].get(value) || value;
2916
- const assignment = is_boolean ? `=""` : `="${escape_html(normalized, true)}"`;
2917
- return ` ${name}${assignment}`;
2918
- }
2919
- function clsx(value) {
2920
- if (typeof value === "object") {
2921
- return clsx$1(value);
2922
- } else {
2923
- return value ?? "";
2924
- }
2925
- }
2926
- const whitespace = [..." \n\r\f \v\uFEFF"];
2927
- function to_class(value, hash, directives) {
2928
- var classname = value == null ? "" : "" + value;
2929
- if (hash) {
2930
- classname = classname ? classname + " " + hash : hash;
2931
- }
2932
- if (directives) {
2933
- for (var key of Object.keys(directives)) {
2934
- if (directives[key]) {
2935
- classname = classname ? classname + " " + key : key;
2936
- } else if (classname.length) {
2937
- var len = key.length;
2938
- var a = 0;
2939
- while ((a = classname.indexOf(key, a)) >= 0) {
2940
- var b = a + len;
2941
- if ((a === 0 || whitespace.includes(classname[a - 1])) && (b === classname.length || whitespace.includes(classname[b]))) {
2942
- classname = (a === 0 ? "" : classname.substring(0, a)) + classname.substring(b + 1);
2943
- } else {
2944
- a = b;
2945
- }
2946
- }
2947
- }
2948
- }
2949
- }
2950
- return classname === "" ? null : classname;
2951
- }
2952
- function append_styles(styles, important = false) {
2953
- var separator = important ? " !important;" : ";";
2954
- var css = "";
2955
- for (var key of Object.keys(styles)) {
2956
- var value = styles[key];
2957
- if (value != null && value !== "") {
2958
- css += " " + key + ": " + value + separator;
2959
- }
2960
- }
2961
- return css;
2962
- }
2963
- function to_css_name(name) {
2964
- if (name[0] !== "-" || name[1] !== "-") {
2965
- return name.toLowerCase();
2966
- }
2967
- return name;
2968
- }
2969
- function to_style(value, styles) {
2970
- if (styles) {
2971
- var new_style = "";
2972
- var normal_styles;
2973
- var important_styles;
2974
- if (Array.isArray(styles)) {
2975
- normal_styles = styles[0];
2976
- important_styles = styles[1];
2977
- } else {
2978
- normal_styles = styles;
2979
- }
2980
- if (value) {
2981
- value = String(value).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2982
- var in_str = false;
2983
- var in_apo = 0;
2984
- var in_comment = false;
2985
- var reserved_names = [];
2986
- if (normal_styles) {
2987
- reserved_names.push(...Object.keys(normal_styles).map(to_css_name));
2988
- }
2989
- if (important_styles) {
2990
- reserved_names.push(...Object.keys(important_styles).map(to_css_name));
2991
- }
2992
- var start_index = 0;
2993
- var name_index = -1;
2994
- const len = value.length;
2995
- for (var i = 0; i < len; i++) {
2996
- var c = value[i];
2997
- if (in_comment) {
2998
- if (c === "/" && value[i - 1] === "*") {
2999
- in_comment = false;
3000
- }
3001
- } else if (in_str) {
3002
- if (in_str === c) {
3003
- in_str = false;
3004
- }
3005
- } else if (c === "/" && value[i + 1] === "*") {
3006
- in_comment = true;
3007
- } else if (c === '"' || c === "'") {
3008
- in_str = c;
3009
- } else if (c === "(") {
3010
- in_apo++;
3011
- } else if (c === ")") {
3012
- in_apo--;
3013
- }
3014
- if (!in_comment && in_str === false && in_apo === 0) {
3015
- if (c === ":" && name_index === -1) {
3016
- name_index = i;
3017
- } else if (c === ";" || i === len - 1) {
3018
- if (name_index !== -1) {
3019
- var name = to_css_name(value.substring(start_index, name_index).trim());
3020
- if (!reserved_names.includes(name)) {
3021
- if (c !== ";") {
3022
- i++;
3023
- }
3024
- var property = value.substring(start_index, i).trim();
3025
- new_style += " " + property + ";";
3026
- }
3027
- }
3028
- start_index = i + 1;
3029
- name_index = -1;
3030
- }
3031
- }
3032
- }
3033
- }
3034
- if (normal_styles) {
3035
- new_style += append_styles(normal_styles);
3036
- }
3037
- if (important_styles) {
3038
- new_style += append_styles(important_styles, true);
3039
- }
3040
- new_style = new_style.trim();
3041
- return new_style === "" ? null : new_style;
3042
- }
3043
- return value == null ? null : String(value);
3044
- }
3045
- const BLOCK_OPEN = `<!--${HYDRATION_START}-->`;
3046
- const BLOCK_CLOSE = `<!--${HYDRATION_END}-->`;
3047
- const EMPTY_COMMENT = `<!---->`;
3048
- let controller = null;
3049
- function abort() {
3050
- controller?.abort(STALE_REACTION);
3051
- controller = null;
3052
- }
3053
- function await_invalid() {
3054
- const error = new Error(`await_invalid
3055
- Encountered asynchronous work while rendering synchronously.
3056
- https://svelte.dev/e/await_invalid`);
3057
- error.name = "Svelte error";
3058
- throw error;
3059
- }
3060
- function invalid_csp() {
3061
- const error = new Error(`invalid_csp
3062
- \`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.
3063
- https://svelte.dev/e/invalid_csp`);
3064
- error.name = "Svelte error";
3065
- throw error;
3066
- }
3067
- function invalid_id_prefix() {
3068
- const error = new Error(`invalid_id_prefix
3069
- The \`idPrefix\` option cannot include \`--\`.
3070
- https://svelte.dev/e/invalid_id_prefix`);
3071
- error.name = "Svelte error";
3072
- throw error;
3073
- }
3074
- function lifecycle_function_unavailable(name) {
3075
- const error = new Error(`lifecycle_function_unavailable
3076
- \`${name}(...)\` is not available on the server
3077
- https://svelte.dev/e/lifecycle_function_unavailable`);
3078
- error.name = "Svelte error";
3079
- throw error;
3080
- }
3081
- function server_context_required() {
3082
- const error = new Error(`server_context_required
3083
- Could not resolve \`render\` context.
3084
- https://svelte.dev/e/server_context_required`);
3085
- error.name = "Svelte error";
3086
- throw error;
3087
- }
3088
- var ssr_context = null;
3089
- function set_ssr_context(v) {
3090
- ssr_context = v;
3091
- }
3092
- function createContext() {
3093
- const key = {};
3094
- return [
3095
- () => {
3096
- if (!hasContext(key)) {
3097
- missing_context();
3098
- }
3099
- return getContext(key);
3100
- },
3101
- (context) => setContext(key, context)
3102
- ];
3103
- }
3104
- function getContext(key) {
3105
- const context_map = get_or_init_context_map();
3106
- const result = (
3107
- /** @type {T} */
3108
- context_map.get(key)
3109
- );
3110
- return result;
3111
- }
3112
- function setContext(key, context) {
3113
- get_or_init_context_map().set(key, context);
3114
- return context;
3115
- }
3116
- function hasContext(key) {
3117
- return get_or_init_context_map().has(key);
3118
- }
3119
- function getAllContexts() {
3120
- return get_or_init_context_map();
3121
- }
3122
- function get_or_init_context_map(name) {
3123
- if (ssr_context === null) {
3124
- lifecycle_outside_component();
3125
- }
3126
- return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0);
3127
- }
3128
- function push(fn) {
3129
- ssr_context = { p: ssr_context, c: null, r: null };
3130
- }
3131
- function pop() {
3132
- ssr_context = /** @type {SSRContext} */
3133
- ssr_context.p;
3134
- }
3135
- function get_parent_context(ssr_context2) {
3136
- let parent = ssr_context2.p;
3137
- while (parent !== null) {
3138
- const context_map = parent.c;
3139
- if (context_map !== null) {
3140
- return context_map;
3141
- }
3142
- parent = parent.p;
3143
- }
3144
- return null;
3145
- }
3146
- function unresolved_hydratable(key, stack) {
3147
- {
3148
- console.warn(`https://svelte.dev/e/unresolved_hydratable`);
3149
- }
3150
- }
3151
- function get_render_context() {
3152
- const store = als?.getStore();
3153
- {
3154
- server_context_required();
3155
- }
3156
- return store;
3157
- }
3158
- let als = null;
3159
- let text_encoder;
3160
- let crypto;
3161
- const obfuscated_import = (module_name) => import(
3162
- /* @vite-ignore */
3163
- module_name
3164
- );
3165
- async function sha256(data) {
3166
- text_encoder ??= new TextEncoder();
3167
- crypto ??= globalThis.crypto?.subtle?.digest ? globalThis.crypto : (
3168
- // @ts-ignore - we don't install node types in the prod build
3169
- // don't use import('node:crypto') directly because static analysers will think we rely on node when we don't
3170
- (await obfuscated_import("node:crypto")).webcrypto
3171
- );
3172
- const hash_buffer = await crypto.subtle.digest("SHA-256", text_encoder.encode(data));
3173
- return base64_encode(hash_buffer);
3174
- }
3175
- function base64_encode(bytes) {
3176
- if (globalThis.Buffer) {
3177
- return globalThis.Buffer.from(bytes).toString("base64");
3178
- }
3179
- let binary = "";
3180
- for (let i = 0; i < bytes.length; i++) {
3181
- binary += String.fromCharCode(bytes[i]);
3182
- }
3183
- return btoa(binary);
3184
- }
3185
- class Renderer {
3186
- /**
3187
- * The contents of the renderer.
3188
- * @type {RendererItem[]}
3189
- */
3190
- #out = [];
3191
- /**
3192
- * Any `onDestroy` callbacks registered during execution of this renderer.
3193
- * @type {(() => void)[] | undefined}
3194
- */
3195
- #on_destroy = void 0;
3196
- /**
3197
- * Whether this renderer is a component body.
3198
- * @type {boolean}
3199
- */
3200
- #is_component_body = false;
3201
- /**
3202
- * If set, this renderer is an error boundary. When async collection
3203
- * of the children fails, the failed snippet is rendered instead.
3204
- * @type {{
3205
- * failed: (renderer: Renderer, error: unknown, reset: () => void) => void;
3206
- * transformError: (error: unknown) => unknown;
3207
- * context: SSRContext | null;
3208
- * } | null}
3209
- */
3210
- #boundary = null;
3211
- /**
3212
- * The type of string content that this renderer is accumulating.
3213
- * @type {RendererType}
3214
- */
3215
- type;
3216
- /** @type {Renderer | undefined} */
3217
- #parent;
3218
- /**
3219
- * Asynchronous work associated with this renderer
3220
- * @type {Promise<void> | undefined}
3221
- */
3222
- promise = void 0;
3223
- /**
3224
- * State which is associated with the content tree as a whole.
3225
- * It will be re-exposed, uncopied, on all children.
3226
- * @type {SSRState}
3227
- * @readonly
3228
- */
3229
- global;
3230
- /**
3231
- * State that is local to the branch it is declared in.
3232
- * It will be shallow-copied to all children.
3233
- *
3234
- * @type {{ select_value: string | undefined }}
3235
- */
3236
- local;
3237
- /**
3238
- * @param {SSRState} global
3239
- * @param {Renderer | undefined} [parent]
3240
- */
3241
- constructor(global, parent) {
3242
- this.#parent = parent;
3243
- this.global = global;
3244
- this.local = parent ? { ...parent.local } : { select_value: void 0 };
3245
- this.type = parent ? parent.type : "body";
3246
- }
3247
- /**
3248
- * @param {(renderer: Renderer) => void} fn
3249
- */
3250
- head(fn) {
3251
- const head2 = new Renderer(this.global, this);
3252
- head2.type = "head";
3253
- this.#out.push(head2);
3254
- head2.child(fn);
3255
- }
3256
- /**
3257
- * @param {Array<Promise<void>>} blockers
3258
- * @param {(renderer: Renderer) => void} fn
3259
- */
3260
- async_block(blockers, fn) {
3261
- this.#out.push(BLOCK_OPEN);
3262
- this.async(blockers, fn);
3263
- this.#out.push(BLOCK_CLOSE);
3264
- }
3265
- /**
3266
- * @param {Array<Promise<void>>} blockers
3267
- * @param {(renderer: Renderer) => void} fn
3268
- */
3269
- async(blockers, fn) {
3270
- let callback = fn;
3271
- if (blockers.length > 0) {
3272
- const context = ssr_context;
3273
- callback = (renderer) => {
3274
- return Promise.all(blockers).then(() => {
3275
- const previous_context = ssr_context;
3276
- try {
3277
- set_ssr_context(context);
3278
- return fn(renderer);
3279
- } finally {
3280
- set_ssr_context(previous_context);
3281
- }
3282
- });
3283
- };
3284
- }
3285
- this.child(callback);
3286
- }
3287
- /**
3288
- * @param {Array<() => void>} thunks
3289
- */
3290
- run(thunks) {
3291
- const context = ssr_context;
3292
- let promise = Promise.resolve(thunks[0]());
3293
- const promises = [promise];
3294
- for (const fn of thunks.slice(1)) {
3295
- promise = promise.then(() => {
3296
- const previous_context = ssr_context;
3297
- set_ssr_context(context);
3298
- try {
3299
- return fn();
3300
- } finally {
3301
- set_ssr_context(previous_context);
3302
- }
3303
- });
3304
- promises.push(promise);
3305
- }
3306
- promise.catch(noop);
3307
- this.promise = promise;
3308
- return promises;
3309
- }
3310
- /**
3311
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
3312
- */
3313
- child_block(fn) {
3314
- this.#out.push(BLOCK_OPEN);
3315
- this.child(fn);
3316
- this.#out.push(BLOCK_CLOSE);
3317
- }
3318
- /**
3319
- * Create a child renderer. The child renderer inherits the state from the parent,
3320
- * but has its own content.
3321
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
3322
- */
3323
- child(fn) {
3324
- const child = new Renderer(this.global, this);
3325
- this.#out.push(child);
3326
- const parent = ssr_context;
3327
- set_ssr_context({
3328
- ...ssr_context,
3329
- p: parent,
3330
- c: null,
3331
- r: child
3332
- });
3333
- const result = fn(child);
3334
- set_ssr_context(parent);
3335
- if (result instanceof Promise) {
3336
- result.catch(noop);
3337
- result.finally(() => set_ssr_context(null)).catch(noop);
3338
- if (child.global.mode === "sync") {
3339
- await_invalid();
3340
- }
3341
- child.promise = result;
3342
- }
3343
- return child;
3344
- }
3345
- /**
3346
- * Render children inside an error boundary. If the children throw and the API-level
3347
- * `transformError` transform handles the error (doesn't re-throw), the `failed` snippet is
3348
- * rendered instead. Otherwise the error propagates.
3349
- *
3350
- * @param {{ failed?: (renderer: Renderer, error: unknown, reset: () => void) => void }} props
3351
- * @param {(renderer: Renderer) => MaybePromise<void>} children_fn
3352
- */
3353
- boundary(props, children_fn) {
3354
- const child = new Renderer(this.global, this);
3355
- this.#out.push(child);
3356
- const parent_context = ssr_context;
3357
- if (props.failed) {
3358
- child.#boundary = {
3359
- failed: props.failed,
3360
- transformError: this.global.transformError,
3361
- context: parent_context
3362
- };
3363
- }
3364
- set_ssr_context({
3365
- ...ssr_context,
3366
- p: parent_context,
3367
- c: null,
3368
- r: child
3369
- });
3370
- try {
3371
- const result = children_fn(child);
3372
- set_ssr_context(parent_context);
3373
- if (result instanceof Promise) {
3374
- if (child.global.mode === "sync") {
3375
- await_invalid();
3376
- }
3377
- result.catch(noop);
3378
- child.promise = result;
3379
- }
3380
- } catch (error) {
3381
- set_ssr_context(parent_context);
3382
- const failed_snippet = props.failed;
3383
- if (!failed_snippet) throw error;
3384
- const result = this.global.transformError(error);
3385
- child.#out.length = 0;
3386
- child.#boundary = null;
3387
- if (result instanceof Promise) {
3388
- if (this.global.mode === "sync") {
3389
- await_invalid();
3390
- }
3391
- child.promise = /** @type {Promise<unknown>} */
3392
- result.then((transformed) => {
3393
- set_ssr_context(parent_context);
3394
- child.#out.push(Renderer.#serialize_failed_boundary(transformed));
3395
- failed_snippet(child, transformed, noop);
3396
- child.#out.push(BLOCK_CLOSE);
3397
- });
3398
- child.promise.catch(noop);
3399
- } else {
3400
- child.#out.push(Renderer.#serialize_failed_boundary(result));
3401
- failed_snippet(child, result, noop);
3402
- child.#out.push(BLOCK_CLOSE);
3403
- }
3404
- }
3405
- }
3406
- /**
3407
- * Create a component renderer. The component renderer inherits the state from the parent,
3408
- * but has its own content. It is treated as an ordering boundary for ondestroy callbacks.
3409
- * @param {(renderer: Renderer) => MaybePromise<void>} fn
3410
- * @param {Function} [component_fn]
3411
- * @returns {void}
3412
- */
3413
- component(fn, component_fn) {
3414
- push();
3415
- const child = this.child(fn);
3416
- child.#is_component_body = true;
3417
- pop();
3418
- }
3419
- /**
3420
- * @param {Record<string, any>} attrs
3421
- * @param {(renderer: Renderer) => void} fn
3422
- * @param {string | undefined} [css_hash]
3423
- * @param {Record<string, boolean> | undefined} [classes]
3424
- * @param {Record<string, string> | undefined} [styles]
3425
- * @param {number | undefined} [flags]
3426
- * @param {boolean | undefined} [is_rich]
3427
- * @returns {void}
3428
- */
3429
- select(attrs, fn, css_hash, classes, styles, flags, is_rich) {
3430
- const { value, ...select_attrs } = attrs;
3431
- this.push(`<select${attributes(select_attrs, css_hash, classes, styles, flags)}>`);
3432
- this.child((renderer) => {
3433
- renderer.local.select_value = value;
3434
- fn(renderer);
3435
- });
3436
- this.push(`${is_rich ? "<!>" : ""}</select>`);
3437
- }
3438
- /**
3439
- * @param {Record<string, any>} attrs
3440
- * @param {string | number | boolean | ((renderer: Renderer) => void)} body
3441
- * @param {string | undefined} [css_hash]
3442
- * @param {Record<string, boolean> | undefined} [classes]
3443
- * @param {Record<string, string> | undefined} [styles]
3444
- * @param {number | undefined} [flags]
3445
- * @param {boolean | undefined} [is_rich]
3446
- */
3447
- option(attrs, body, css_hash, classes, styles, flags, is_rich) {
3448
- this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags)}`);
3449
- const close = (renderer, value, { head: head2, body: body2 }) => {
3450
- if (has_own_property.call(attrs, "value")) {
3451
- value = attrs.value;
3452
- }
3453
- if (value === this.local.select_value) {
3454
- renderer.#out.push(' selected=""');
3455
- }
3456
- renderer.#out.push(`>${body2}${is_rich ? "<!>" : ""}</option>`);
3457
- if (head2) {
3458
- renderer.head((child) => child.push(head2));
3459
- }
3460
- };
3461
- if (typeof body === "function") {
3462
- this.child((renderer) => {
3463
- const r = new Renderer(this.global, this);
3464
- body(r);
3465
- if (this.global.mode === "async") {
3466
- return r.#collect_content_async().then((content) => {
3467
- close(renderer, content.body.replaceAll("<!---->", ""), content);
3468
- });
3469
- } else {
3470
- const content = r.#collect_content();
3471
- close(renderer, content.body.replaceAll("<!---->", ""), content);
3472
- }
3473
- });
3474
- } else {
3475
- close(this, body, { body: escape_html(body) });
3476
- }
3477
- }
3478
- /**
3479
- * @param {(renderer: Renderer) => void} fn
3480
- */
3481
- title(fn) {
3482
- const path = this.get_path();
3483
- const close = (head2) => {
3484
- this.global.set_title(head2, path);
3485
- };
3486
- this.child((renderer) => {
3487
- const r = new Renderer(renderer.global, renderer);
3488
- fn(r);
3489
- if (renderer.global.mode === "async") {
3490
- return r.#collect_content_async().then((content) => {
3491
- close(content.head);
3492
- });
3493
- } else {
3494
- const content = r.#collect_content();
3495
- close(content.head);
3496
- }
3497
- });
3498
- }
3499
- /**
3500
- * @param {string | (() => Promise<string>)} content
3501
- */
3502
- push(content) {
3503
- if (typeof content === "function") {
3504
- this.child(async (renderer) => renderer.push(await content()));
3505
- } else {
3506
- this.#out.push(content);
3507
- }
3508
- }
3509
- /**
3510
- * @param {() => void} fn
3511
- */
3512
- on_destroy(fn) {
3513
- (this.#on_destroy ??= []).push(fn);
3514
- }
3515
- /**
3516
- * @returns {number[]}
3517
- */
3518
- get_path() {
3519
- return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : [];
3520
- }
3521
- /**
3522
- * @deprecated this is needed for legacy component bindings
3523
- */
3524
- copy() {
3525
- const copy = new Renderer(this.global, this.#parent);
3526
- copy.#out = this.#out.map((item) => item instanceof Renderer ? item.copy() : item);
3527
- copy.promise = this.promise;
3528
- return copy;
3529
- }
3530
- /**
3531
- * @param {Renderer} other
3532
- * @deprecated this is needed for legacy component bindings
3533
- */
3534
- subsume(other) {
3535
- if (this.global.mode !== other.global.mode) {
3536
- throw new Error(
3537
- "invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!"
3538
- );
3539
- }
3540
- this.local = other.local;
3541
- this.#out = other.#out.map((item, i) => {
3542
- const current = this.#out[i];
3543
- if (current instanceof Renderer && item instanceof Renderer) {
3544
- current.subsume(item);
3545
- return current;
3546
- }
3547
- return item;
3548
- });
3549
- this.promise = other.promise;
3550
- this.type = other.type;
3551
- }
3552
- get length() {
3553
- return this.#out.length;
3554
- }
3555
- /**
3556
- * Creates the hydration comment that marks the start of a failed boundary.
3557
- * The error is JSON-serialized and embedded inside an HTML comment for the client
3558
- * to parse during hydration. The JSON is escaped to prevent `-->` or `<!--` sequences
3559
- * from breaking out of the comment (XSS). Uses unicode escapes which `JSON.parse()`
3560
- * handles transparently.
3561
- * @param {unknown} error
3562
- * @returns {string}
3563
- */
3564
- static #serialize_failed_boundary(error) {
3565
- var json = JSON.stringify(error);
3566
- var escaped = json.replace(/>/g, "\\u003e").replace(/</g, "\\u003c");
3567
- return `<!--${HYDRATION_START_FAILED}${escaped}-->`;
3568
- }
3569
- /**
3570
- * Only available on the server and when compiling with the `server` option.
3571
- * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app.
3572
- * @template {Record<string, any>} Props
3573
- * @param {Component<Props>} component
3574
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} [options]
3575
- * @returns {RenderOutput}
3576
- */
3577
- static render(component, options = {}) {
3578
- let sync;
3579
- const result = (
3580
- /** @type {RenderOutput} */
3581
- {}
3582
- );
3583
- Object.defineProperties(result, {
3584
- html: {
3585
- get: () => {
3586
- return (sync ??= Renderer.#render(component, options)).body;
3587
- }
3588
- },
3589
- head: {
3590
- get: () => {
3591
- return (sync ??= Renderer.#render(component, options)).head;
3592
- }
3593
- },
3594
- body: {
3595
- get: () => {
3596
- return (sync ??= Renderer.#render(component, options)).body;
3597
- }
3598
- },
3599
- hashes: {
3600
- value: {
3601
- script: ""
3602
- }
3603
- },
3604
- then: {
3605
- value: (
3606
- /**
3607
- * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function.
3608
- *
3609
- * @template TResult1
3610
- * @template [TResult2=never]
3611
- * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled
3612
- * @param { (reason: unknown) => TResult2 } onrejected
3613
- */
3614
- (onfulfilled, onrejected) => {
3615
- {
3616
- const result2 = sync ??= Renderer.#render(component, options);
3617
- const user_result = onfulfilled({
3618
- head: result2.head,
3619
- body: result2.body,
3620
- html: result2.body,
3621
- hashes: { script: [] }
3622
- });
3623
- return Promise.resolve(user_result);
3624
- }
3625
- }
3626
- )
3627
- }
3628
- });
3629
- return result;
3630
- }
3631
- /**
3632
- * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call
3633
- * after awaiting `collect_async`.
3634
- *
3635
- * Child renderers are "porous" and don't affect execution order, but component body renderers
3636
- * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary.
3637
- * @returns {Iterable<() => void>}
3638
- */
3639
- *#collect_on_destroy() {
3640
- for (const component of this.#traverse_components()) {
3641
- yield* component.#collect_ondestroy();
3642
- }
3643
- }
3644
- /**
3645
- * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree.
3646
- * @returns {Iterable<Renderer>}
3647
- */
3648
- *#traverse_components() {
3649
- for (const child of this.#out) {
3650
- if (typeof child !== "string") {
3651
- yield* child.#traverse_components();
3652
- }
3653
- }
3654
- if (this.#is_component_body) {
3655
- yield this;
3656
- }
3657
- }
3658
- /**
3659
- * @returns {Iterable<() => void>}
3660
- */
3661
- *#collect_ondestroy() {
3662
- if (this.#on_destroy) {
3663
- for (const fn of this.#on_destroy) {
3664
- yield fn;
3665
- }
3666
- }
3667
- for (const child of this.#out) {
3668
- if (child instanceof Renderer && !child.#is_component_body) {
3669
- yield* child.#collect_ondestroy();
3670
- }
3671
- }
3672
- }
3673
- /**
3674
- * Render a component. Throws if any of the children are performing asynchronous work.
3675
- *
3676
- * @template {Record<string, any>} Props
3677
- * @param {Component<Props>} component
3678
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string }} options
3679
- * @returns {AccumulatedContent}
3680
- */
3681
- static #render(component, options) {
3682
- var previous_context = ssr_context;
3683
- try {
3684
- const renderer = Renderer.#open_render("sync", component, options);
3685
- const content = renderer.#collect_content();
3686
- return Renderer.#close_render(content, renderer);
3687
- } finally {
3688
- abort();
3689
- set_ssr_context(previous_context);
3690
- }
3691
- }
3692
- /**
3693
- * Render a component.
3694
- *
3695
- * @template {Record<string, any>} Props
3696
- * @param {Component<Props>} component
3697
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp }} options
3698
- * @returns {Promise<AccumulatedContent & { hashes: { script: Sha256Source[] } }>}
3699
- */
3700
- static async #render_async(component, options) {
3701
- const previous_context = ssr_context;
3702
- try {
3703
- const renderer = Renderer.#open_render("async", component, options);
3704
- const content = await renderer.#collect_content_async();
3705
- const hydratables = await renderer.#collect_hydratables();
3706
- if (hydratables !== null) {
3707
- content.head = hydratables + content.head;
3708
- }
3709
- return Renderer.#close_render(content, renderer);
3710
- } finally {
3711
- set_ssr_context(previous_context);
3712
- abort();
3713
- }
3714
- }
3715
- /**
3716
- * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string.
3717
- * @param {AccumulatedContent} content
3718
- * @returns {AccumulatedContent}
3719
- */
3720
- #collect_content(content = { head: "", body: "" }) {
3721
- for (const item of this.#out) {
3722
- if (typeof item === "string") {
3723
- content[this.type] += item;
3724
- } else if (item instanceof Renderer) {
3725
- item.#collect_content(content);
3726
- }
3727
- }
3728
- return content;
3729
- }
3730
- /**
3731
- * Collect all of the code from the `out` array and return it as a string.
3732
- * @param {AccumulatedContent} content
3733
- * @returns {Promise<AccumulatedContent>}
3734
- */
3735
- async #collect_content_async(content = { head: "", body: "" }) {
3736
- await this.promise;
3737
- for (const item of this.#out) {
3738
- if (typeof item === "string") {
3739
- content[this.type] += item;
3740
- } else if (item instanceof Renderer) {
3741
- if (item.#boundary) {
3742
- const boundary_content = { head: "", body: "" };
3743
- try {
3744
- await item.#collect_content_async(boundary_content);
3745
- content.head += boundary_content.head;
3746
- content.body += boundary_content.body;
3747
- } catch (error) {
3748
- const { context, failed, transformError } = item.#boundary;
3749
- set_ssr_context(context);
3750
- let promise = transformError(error);
3751
- set_ssr_context(null);
3752
- let transformed = await promise;
3753
- set_ssr_context(context);
3754
- const failed_renderer = new Renderer(item.global, item);
3755
- failed_renderer.type = item.type;
3756
- failed_renderer.#out.push(Renderer.#serialize_failed_boundary(transformed));
3757
- failed(failed_renderer, transformed, noop);
3758
- failed_renderer.#out.push(BLOCK_CLOSE);
3759
- await failed_renderer.#collect_content_async(content);
3760
- }
3761
- } else {
3762
- await item.#collect_content_async(content);
3763
- }
3764
- }
3765
- }
3766
- return content;
3767
- }
3768
- async #collect_hydratables() {
3769
- const ctx = get_render_context().hydratable;
3770
- for (const [_, key] of ctx.unresolved_promises) {
3771
- unresolved_hydratable(key, ctx.lookup.get(key)?.stack ?? "<missing stack trace>");
3772
- }
3773
- for (const comparison of ctx.comparisons) {
3774
- await comparison;
3775
- }
3776
- return await this.#hydratable_block(ctx);
3777
- }
3778
- /**
3779
- * @template {Record<string, any>} Props
3780
- * @param {'sync' | 'async'} mode
3781
- * @param {import('svelte').Component<Props>} component
3782
- * @param {{ props?: Omit<Props, '$$slots' | '$$events'>; context?: Map<any, any>; idPrefix?: string; csp?: Csp; transformError?: (error: unknown) => unknown }} options
3783
- * @returns {Renderer}
3784
- */
3785
- static #open_render(mode, component, options) {
3786
- if (options.idPrefix?.includes("--")) {
3787
- invalid_id_prefix();
3788
- }
3789
- var previous_context = ssr_context;
3790
- try {
3791
- const renderer = new Renderer(
3792
- new SSRState(
3793
- mode,
3794
- options.idPrefix ? options.idPrefix + "-" : "",
3795
- options.csp,
3796
- options.transformError
3797
- )
3798
- );
3799
- const context = { p: null, c: options.context ?? null, r: renderer };
3800
- set_ssr_context(context);
3801
- renderer.push(BLOCK_OPEN);
3802
- component(renderer, options.props ?? {});
3803
- renderer.push(BLOCK_CLOSE);
3804
- return renderer;
3805
- } finally {
3806
- set_ssr_context(previous_context);
3807
- }
3808
- }
3809
- /**
3810
- * @param {AccumulatedContent} content
3811
- * @param {Renderer} renderer
3812
- * @returns {AccumulatedContent & { hashes: { script: Sha256Source[] } }}
3813
- */
3814
- static #close_render(content, renderer) {
3815
- for (const cleanup of renderer.#collect_on_destroy()) {
3816
- cleanup();
3817
- }
3818
- let head2 = content.head + renderer.global.get_title();
3819
- let body = content.body;
3820
- for (const { hash, code } of renderer.global.css) {
3821
- head2 += `<style id="${hash}">${code}</style>`;
3822
- }
3823
- return {
3824
- head: head2,
3825
- body,
3826
- hashes: {
3827
- script: renderer.global.csp.script_hashes
3828
- }
3829
- };
3830
- }
3831
- /**
3832
- * @param {HydratableContext} ctx
3833
- */
3834
- async #hydratable_block(ctx) {
3835
- if (ctx.lookup.size === 0) {
3836
- return null;
3837
- }
3838
- let entries = [];
3839
- let has_promises = false;
3840
- for (const [k, v] of ctx.lookup) {
3841
- if (v.promises) {
3842
- has_promises = true;
3843
- for (const p of v.promises) await p;
3844
- }
3845
- entries.push(`[${uneval(k)},${v.serialized}]`);
3846
- }
3847
- let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`;
3848
- if (has_promises) {
3849
- prelude = `const r = (v) => Promise.resolve(v);
3850
- ${prelude}`;
3851
- }
3852
- const body = `
3853
- {
3854
- ${prelude}
3855
-
3856
- for (const [k, v] of [
3857
- ${entries.join(",\n ")}
3858
- ]) {
3859
- h.set(k, v);
3860
- }
3861
- }
3862
- `;
3863
- let csp_attr = "";
3864
- if (this.global.csp.nonce) {
3865
- csp_attr = ` nonce="${this.global.csp.nonce}"`;
3866
- } else if (this.global.csp.hash) {
3867
- const hash = await sha256(body);
3868
- this.global.csp.script_hashes.push(`sha256-${hash}`);
3869
- }
3870
- return `
3871
- <script${csp_attr}>${body}<\/script>`;
3872
- }
3873
- }
3874
- class SSRState {
3875
- /** @readonly @type {Csp & { script_hashes: Sha256Source[] }} */
3876
- csp;
3877
- /** @readonly @type {'sync' | 'async'} */
3878
- mode;
3879
- /** @readonly @type {() => string} */
3880
- uid;
3881
- /** @readonly @type {Set<{ hash: string; code: string }>} */
3882
- css = /* @__PURE__ */ new Set();
3883
- /**
3884
- * `transformError` passed to `render`. Called when an error boundary catches an error.
3885
- * Throws by default if unset in `render`.
3886
- * @type {(error: unknown) => unknown}
3887
- */
3888
- transformError;
3889
- /** @type {{ path: number[], value: string }} */
3890
- #title = { path: [], value: "" };
3891
- /**
3892
- * @param {'sync' | 'async'} mode
3893
- * @param {string} id_prefix
3894
- * @param {Csp} csp
3895
- * @param {((error: unknown) => unknown) | undefined} [transformError]
3896
- */
3897
- constructor(mode, id_prefix = "", csp = { hash: false }, transformError) {
3898
- this.mode = mode;
3899
- this.csp = { ...csp, script_hashes: [] };
3900
- this.transformError = transformError ?? ((error) => {
3901
- throw error;
3902
- });
3903
- let uid2 = 1;
3904
- this.uid = () => `${id_prefix}s${uid2++}`;
3905
- }
3906
- get_title() {
3907
- return this.#title.value;
3908
- }
3909
- /**
3910
- * Performs a depth-first (lexicographic) comparison using the path. Rejects sets
3911
- * from earlier than or equal to the current value.
3912
- * @param {string} value
3913
- * @param {number[]} path
3914
- */
3915
- set_title(value, path) {
3916
- const current = this.#title.path;
3917
- let i = 0;
3918
- let l = Math.min(path.length, current.length);
3919
- while (i < l && path[i] === current[i]) i += 1;
3920
- if (path[i] === void 0) return;
3921
- if (current[i] === void 0 || path[i] > current[i]) {
3922
- this.#title.path = path;
3923
- this.#title.value = value;
3924
- }
3925
- }
3926
- }
3927
- const INVALID_ATTR_NAME_CHAR_REGEX = /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;
3928
- function render(component, options = {}) {
3929
- if (options.csp?.hash && options.csp.nonce) {
3930
- invalid_csp();
3931
- }
3932
- return Renderer.render(
3933
- /** @type {Component<Props>} */
3934
- component,
3935
- options
3936
- );
3937
- }
3938
- function head(hash, renderer, fn) {
3939
- renderer.head((renderer2) => {
3940
- renderer2.push(`<!--${hash}-->`);
3941
- renderer2.child(fn);
3942
- renderer2.push(EMPTY_COMMENT);
3943
- });
3944
- }
3945
- function attributes(attrs, css_hash, classes, styles, flags = 0) {
3946
- if (styles) {
3947
- attrs.style = to_style(attrs.style, styles);
3948
- }
3949
- if (attrs.class) {
3950
- attrs.class = clsx(attrs.class);
3951
- }
3952
- if (css_hash || classes) {
3953
- attrs.class = to_class(attrs.class, css_hash, classes);
3954
- }
3955
- let attr_str = "";
3956
- let name;
3957
- const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0;
3958
- const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0;
3959
- const is_input = (flags & ELEMENT_IS_INPUT) !== 0;
3960
- for (name of Object.keys(attrs)) {
3961
- if (typeof attrs[name] === "function") continue;
3962
- if (name[0] === "$" && name[1] === "$") continue;
3963
- if (name === "" || INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue;
3964
- var value = attrs[name];
3965
- var lower = name.toLowerCase();
3966
- if (lowercase) name = lower;
3967
- if (lower.length > 2 && lower.startsWith("on")) continue;
3968
- if (is_input) {
3969
- if (name === "defaultvalue" || name === "defaultchecked") {
3970
- name = name === "defaultvalue" ? "value" : "checked";
3971
- if (attrs[name]) continue;
3972
- }
3973
- }
3974
- attr_str += attr(name, value, is_html && is_boolean_attribute(name));
3975
- }
3976
- return attr_str;
3977
- }
3978
- function spread_props(props) {
3979
- const merged_props = {};
3980
- let key;
3981
- for (let i = 0; i < props.length; i++) {
3982
- const obj = props[i];
3983
- if (obj == null) continue;
3984
- for (key of Object.keys(obj)) {
3985
- const desc = Object.getOwnPropertyDescriptor(obj, key);
3986
- if (desc) {
3987
- Object.defineProperty(merged_props, key, desc);
3988
- } else {
3989
- merged_props[key] = obj[key];
3990
- }
3991
- }
3992
- }
3993
- return merged_props;
3994
- }
3995
- function stringify(value) {
3996
- return typeof value === "string" ? value : value == null ? "" : value + "";
3997
- }
3998
- function attr_class(value, hash, directives) {
3999
- var result = to_class(value, hash, directives);
4000
- return result ? ` class="${escape_html(result, true)}"` : "";
4001
- }
4002
- function attr_style(value, directives) {
4003
- var result = to_style(value, directives);
4004
- return result ? ` style="${escape_html(result, true)}"` : "";
4005
- }
4006
- function store_get(store_values, store_name, store) {
4007
- if (store_name in store_values && store_values[store_name][0] === store) {
4008
- return store_values[store_name][2];
4009
- }
4010
- store_values[store_name]?.[1]();
4011
- store_values[store_name] = [store, null, void 0];
4012
- const unsub = subscribe_to_store(
4013
- store,
4014
- /** @param {any} v */
4015
- (v) => store_values[store_name][2] = v
4016
- );
4017
- store_values[store_name][1] = unsub;
4018
- return store_values[store_name][2];
4019
- }
4020
- function unsubscribe_stores(store_values) {
4021
- for (const store_name of Object.keys(store_values)) {
4022
- store_values[store_name][1]();
4023
- }
4024
- }
4025
- function bind_props(props_parent, props_now) {
4026
- for (const key of Object.keys(props_now)) {
4027
- const initial_value = props_parent[key];
4028
- const value = props_now[key];
4029
- if (initial_value === void 0 && value !== void 0 && Object.getOwnPropertyDescriptor(props_parent, key)?.set) {
4030
- props_parent[key] = value;
4031
- }
4032
- }
4033
- }
4034
- function ensure_array_like(array_like_or_iterator) {
4035
- if (array_like_or_iterator) {
4036
- return array_like_or_iterator.length !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator);
4037
- }
4038
- return [];
4039
- }
4040
- function once(get_value) {
4041
- let value = (
4042
- /** @type {V} */
4043
- UNINITIALIZED
4044
- );
4045
- return () => {
4046
- if (value === UNINITIALIZED) {
4047
- value = get_value();
4048
- }
4049
- return value;
4050
- };
4051
- }
4052
- function derived(fn) {
4053
- const get_value = ssr_context === null ? fn : once(fn);
4054
- let updated_value;
4055
- return function(new_value) {
4056
- if (arguments.length === 0) {
4057
- return updated_value ?? get_value();
4058
- }
4059
- updated_value = new_value;
4060
- return updated_value;
4061
- };
4062
- }
4063
-
4064
- export { set_active_effect as $, set as A, get as B, flushSync as C, DevalueError as D, define_property as E, mutable_source as F, init_operations as G, HOLE as H, get_first_child as I, COMMENT_NODE as J, HYDRATION_START as K, LEGACY_PROPS as L, MAX_ARRAY_INDEX as M, NAN as N, get_next_sibling as O, POSITIVE_INFINITY as P, HYDRATION_ERROR as Q, hydration_failed as R, SPARSE as S, clear_text_content as T, UNDEFINED as U, hydration_mismatch as V, component_root as W, create_text as X, array_from as Y, is_passive_event as Z, set_active_reaction as _, NEGATIVE_INFINITY as a, active_reaction as a0, active_effect as a1, setContext as a2, BOUNDARY_EFFECT as a3, block as a4, branch as a5, queue_micro_task as a6, pause_effect as a7, current_batch as a8, move_effect as a9, createContext as aA, getContext as aB, store_get as aC, unsubscribe_stores as aD, hasContext as aE, getAllContexts as aF, spread_props as aG, clsx$1 as aH, ssr_context as aI, lifecycle_function_unavailable as aJ, fallback as aK, defer_effect as aa, set_component_context as ab, Batch as ac, handle_error as ad, component_context as ae, internal_set as af, destroy_effect as ag, invoke_error_boundary as ah, effect_tracking as ai, render_effect as aj, HYDRATION_END as ak, HYDRATION_START_ELSE as al, svelte_boundary_reset_onerror as am, source as an, untrack as ao, increment as ap, HYDRATION_START_FAILED as aq, svelte_boundary_reset_noop as ar, push$1 as as, pop$1 as at, EFFECT_TRANSPARENT as au, EFFECT_PRESERVED as av, without_reactive_context as aw, noop as ax, subscribe_to_store as ay, safe_not_equal as az, NEGATIVE_ZERO as b, is_valid_array_index as c, is_primitive as d, is_plain_object as e, enumerable_symbols as f, get_type as g, stringify_string as h, is_valid_array_len as i, browser as j, escape_html as k, derived as l, attr as m, stringify as n, attr_class as o, ensure_array_like as p, attributes as q, run as r, stringify_key as s, clsx as t, uneval as u, valid_array_indices as v, bind_props as w, head as x, attr_style as y, render as z };
4065
- //# sourceMappingURL=index-Do08hKbr.js.map