@recombine-ai/bosun 0.16.1 → 0.16.2-cloud-2

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 (1325) 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/BT98u4gR.js +35 -0
  104. package/build/_app/immutable/chunks/BT98u4gR.js.br +0 -0
  105. package/build/_app/immutable/chunks/BT98u4gR.js.gz +0 -0
  106. package/build/_app/immutable/chunks/BWPQTe0t.js +1 -0
  107. package/build/_app/immutable/chunks/BWPQTe0t.js.br +0 -0
  108. package/build/_app/immutable/chunks/BWPQTe0t.js.gz +0 -0
  109. package/build/_app/immutable/chunks/BYgofb2h.js +1 -0
  110. package/build/_app/immutable/chunks/BYgofb2h.js.br +0 -0
  111. package/build/_app/immutable/chunks/BYgofb2h.js.gz +0 -0
  112. package/build/_app/immutable/chunks/Ba7i2nA0.js +1 -0
  113. package/build/_app/immutable/chunks/Ba7i2nA0.js.br +0 -0
  114. package/build/_app/immutable/chunks/Ba7i2nA0.js.gz +0 -0
  115. package/build/_app/immutable/chunks/Bc1oIj2c.js +1 -0
  116. package/build/_app/immutable/chunks/Bc1oIj2c.js.br +0 -0
  117. package/build/_app/immutable/chunks/Bc1oIj2c.js.gz +0 -0
  118. package/build/_app/immutable/chunks/Bc_sGQ0U.js +1 -0
  119. package/build/_app/immutable/chunks/Bc_sGQ0U.js.br +3 -0
  120. package/build/_app/immutable/chunks/Bc_sGQ0U.js.gz +0 -0
  121. package/build/_app/immutable/chunks/BeGwcela.js +1 -0
  122. package/build/_app/immutable/chunks/BeGwcela.js.br +0 -0
  123. package/build/_app/immutable/chunks/BeGwcela.js.gz +0 -0
  124. package/build/_app/immutable/chunks/BiDy9-HP.js +1 -0
  125. package/build/_app/immutable/chunks/BiDy9-HP.js.br +0 -0
  126. package/build/_app/immutable/chunks/BiDy9-HP.js.gz +0 -0
  127. package/build/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  128. package/build/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
  129. package/build/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
  130. package/build/_app/immutable/chunks/Bri6UV-V.js +1 -0
  131. package/build/_app/immutable/chunks/Bri6UV-V.js.br +0 -0
  132. package/build/_app/immutable/chunks/Bri6UV-V.js.gz +0 -0
  133. package/build/_app/immutable/chunks/BwWrilGY.js +1 -0
  134. package/build/_app/immutable/chunks/BwWrilGY.js.br +0 -0
  135. package/build/_app/immutable/chunks/BwWrilGY.js.gz +0 -0
  136. package/build/_app/immutable/chunks/Bxkupp3x.js +1 -0
  137. package/build/_app/immutable/chunks/Bxkupp3x.js.br +0 -0
  138. package/build/_app/immutable/chunks/Bxkupp3x.js.gz +0 -0
  139. package/build/_app/immutable/chunks/By9tvIIw.js +1 -0
  140. package/build/_app/immutable/chunks/By9tvIIw.js.br +0 -0
  141. package/build/_app/immutable/chunks/By9tvIIw.js.gz +0 -0
  142. package/build/_app/immutable/chunks/Byx1piFp.js +3 -0
  143. package/build/_app/immutable/chunks/Byx1piFp.js.br +0 -0
  144. package/build/_app/immutable/chunks/Byx1piFp.js.gz +0 -0
  145. package/build/_app/immutable/chunks/Bz4Y3fRF.js +1 -0
  146. package/build/_app/immutable/chunks/Bz4Y3fRF.js.br +0 -0
  147. package/build/_app/immutable/chunks/Bz4Y3fRF.js.gz +0 -0
  148. package/build/_app/immutable/chunks/C-y9NEjX.js +1 -0
  149. package/build/_app/immutable/chunks/C-y9NEjX.js.br +0 -0
  150. package/build/_app/immutable/chunks/C-y9NEjX.js.gz +0 -0
  151. package/build/_app/immutable/chunks/C1TsmEOe.js +1 -0
  152. package/build/_app/immutable/chunks/C1TsmEOe.js.br +0 -0
  153. package/build/_app/immutable/chunks/C1TsmEOe.js.gz +0 -0
  154. package/build/_app/immutable/chunks/C531GsRP.js +2 -0
  155. package/build/_app/immutable/chunks/C531GsRP.js.br +0 -0
  156. package/build/_app/immutable/chunks/C531GsRP.js.gz +0 -0
  157. package/build/_app/immutable/chunks/C5_-GSwl.js +1 -0
  158. package/build/_app/immutable/chunks/C5_-GSwl.js.br +0 -0
  159. package/build/_app/immutable/chunks/C5_-GSwl.js.gz +0 -0
  160. package/build/_app/immutable/chunks/C7h46wYY.js +1 -0
  161. package/build/_app/immutable/chunks/C7h46wYY.js.br +0 -0
  162. package/build/_app/immutable/chunks/C7h46wYY.js.gz +0 -0
  163. package/build/_app/immutable/chunks/C8Ef5oNN.js +1 -0
  164. package/build/_app/immutable/chunks/C8Ef5oNN.js.br +0 -0
  165. package/build/_app/immutable/chunks/C8Ef5oNN.js.gz +0 -0
  166. package/build/_app/immutable/chunks/CC2rA5mh.js +1 -0
  167. package/build/_app/immutable/chunks/CC2rA5mh.js.br +0 -0
  168. package/build/_app/immutable/chunks/CC2rA5mh.js.gz +0 -0
  169. package/build/_app/immutable/chunks/CGV7fMmX.js +1 -0
  170. package/build/_app/immutable/chunks/CGV7fMmX.js.br +0 -0
  171. package/build/_app/immutable/chunks/CGV7fMmX.js.gz +0 -0
  172. package/build/_app/immutable/chunks/CIPQ_RoX.js +1 -0
  173. package/build/_app/immutable/chunks/CIPQ_RoX.js.br +0 -0
  174. package/build/_app/immutable/chunks/CIPQ_RoX.js.gz +0 -0
  175. package/build/_app/immutable/chunks/CL717zGu.js +2 -0
  176. package/build/_app/immutable/chunks/CL717zGu.js.br +0 -0
  177. package/build/_app/immutable/chunks/CL717zGu.js.gz +0 -0
  178. package/build/_app/immutable/chunks/CPCsWwEy.js +3 -0
  179. package/build/_app/immutable/chunks/CPCsWwEy.js.br +0 -0
  180. package/build/_app/immutable/chunks/CPCsWwEy.js.gz +0 -0
  181. package/build/_app/immutable/chunks/CRfGWb83.js +1 -0
  182. package/build/_app/immutable/chunks/CRfGWb83.js.br +0 -0
  183. package/build/_app/immutable/chunks/CRfGWb83.js.gz +0 -0
  184. package/build/_app/immutable/chunks/CUZn05nQ.js +63 -0
  185. package/build/_app/immutable/chunks/CUZn05nQ.js.br +0 -0
  186. package/build/_app/immutable/chunks/CUZn05nQ.js.gz +0 -0
  187. package/build/_app/immutable/chunks/CVaqCwHa.js +1 -0
  188. package/build/_app/immutable/chunks/CVaqCwHa.js.br +0 -0
  189. package/build/_app/immutable/chunks/CVaqCwHa.js.gz +0 -0
  190. package/build/_app/immutable/chunks/CZMMlaMl.js +1 -0
  191. package/build/_app/immutable/chunks/CZMMlaMl.js.br +0 -0
  192. package/build/_app/immutable/chunks/CZMMlaMl.js.gz +0 -0
  193. package/build/_app/immutable/chunks/C_yvzB4Z.js +644 -0
  194. package/build/_app/immutable/chunks/C_yvzB4Z.js.br +0 -0
  195. package/build/_app/immutable/chunks/C_yvzB4Z.js.gz +0 -0
  196. package/build/_app/immutable/chunks/CcwsVR0C.js +1 -0
  197. package/build/_app/immutable/chunks/CcwsVR0C.js.br +0 -0
  198. package/build/_app/immutable/chunks/CcwsVR0C.js.gz +0 -0
  199. package/build/_app/immutable/chunks/CdnbUlBq.js +1 -0
  200. package/build/_app/immutable/chunks/CdnbUlBq.js.br +0 -0
  201. package/build/_app/immutable/chunks/CdnbUlBq.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/Dc2hpeC4.js +1 -0
  299. package/build/_app/immutable/chunks/Dc2hpeC4.js.br +2 -0
  300. package/build/_app/immutable/chunks/Dc2hpeC4.js.gz +0 -0
  301. package/build/_app/immutable/chunks/DdL9SqIa.js +1 -0
  302. package/build/_app/immutable/chunks/DdL9SqIa.js.br +0 -0
  303. package/build/_app/immutable/chunks/DdL9SqIa.js.gz +0 -0
  304. package/build/_app/immutable/chunks/De2hgUGE.js +1 -0
  305. package/build/_app/immutable/chunks/De2hgUGE.js.br +0 -0
  306. package/build/_app/immutable/chunks/De2hgUGE.js.gz +0 -0
  307. package/build/_app/immutable/chunks/DezsRK8O.js +1 -0
  308. package/build/_app/immutable/chunks/DezsRK8O.js.br +0 -0
  309. package/build/_app/immutable/chunks/DezsRK8O.js.gz +0 -0
  310. package/build/_app/immutable/chunks/DjxKCxwY.js +1 -0
  311. package/build/_app/immutable/chunks/DjxKCxwY.js.br +0 -0
  312. package/build/_app/immutable/chunks/DjxKCxwY.js.gz +0 -0
  313. package/build/_app/immutable/chunks/DkJi5BM4.js +1 -0
  314. package/build/_app/immutable/chunks/DkJi5BM4.js.br +0 -0
  315. package/build/_app/immutable/chunks/DkJi5BM4.js.gz +0 -0
  316. package/build/_app/immutable/chunks/DkqhCAOL.js +1 -0
  317. package/build/_app/immutable/chunks/DkqhCAOL.js.br +0 -0
  318. package/build/_app/immutable/chunks/DkqhCAOL.js.gz +0 -0
  319. package/build/_app/immutable/chunks/DmHpPYUd.js +1 -0
  320. package/build/_app/immutable/chunks/DmHpPYUd.js.br +0 -0
  321. package/build/_app/immutable/chunks/DmHpPYUd.js.gz +0 -0
  322. package/build/_app/immutable/chunks/Dne1wF_T.js +1 -0
  323. package/build/_app/immutable/chunks/Dne1wF_T.js.br +0 -0
  324. package/build/_app/immutable/chunks/Dne1wF_T.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/Z5eAx3Zn.js +1 -0
  365. package/build/_app/immutable/chunks/Z5eAx3Zn.js.br +0 -0
  366. package/build/_app/immutable/chunks/Z5eAx3Zn.js.gz +0 -0
  367. package/build/_app/immutable/chunks/bTuwJoIa.js +1 -0
  368. package/build/_app/immutable/chunks/bTuwJoIa.js.br +0 -0
  369. package/build/_app/immutable/chunks/bTuwJoIa.js.gz +0 -0
  370. package/build/_app/immutable/chunks/fmXr3nnJ.js +1 -0
  371. package/build/_app/immutable/chunks/fmXr3nnJ.js.br +0 -0
  372. package/build/_app/immutable/chunks/fmXr3nnJ.js.gz +0 -0
  373. package/build/_app/immutable/chunks/gp-XZpBa.js +3 -0
  374. package/build/_app/immutable/chunks/gp-XZpBa.js.br +0 -0
  375. package/build/_app/immutable/chunks/gp-XZpBa.js.gz +0 -0
  376. package/build/_app/immutable/chunks/hePW80VL.js +1 -0
  377. package/build/_app/immutable/chunks/hePW80VL.js.br +0 -0
  378. package/build/_app/immutable/chunks/hePW80VL.js.gz +0 -0
  379. package/build/_app/immutable/chunks/i0X4ZdIN.js +1 -0
  380. package/build/_app/immutable/chunks/i0X4ZdIN.js.br +0 -0
  381. package/build/_app/immutable/chunks/i0X4ZdIN.js.gz +0 -0
  382. package/build/_app/immutable/chunks/krcqaNpB.js +11 -0
  383. package/build/_app/immutable/chunks/krcqaNpB.js.br +0 -0
  384. package/build/_app/immutable/chunks/krcqaNpB.js.gz +0 -0
  385. package/build/_app/immutable/chunks/nr791fC2.js +1 -0
  386. package/build/_app/immutable/chunks/nr791fC2.js.br +0 -0
  387. package/build/_app/immutable/chunks/nr791fC2.js.gz +0 -0
  388. package/build/_app/immutable/chunks/oarl--hZ.js +1 -0
  389. package/build/_app/immutable/chunks/oarl--hZ.js.br +0 -0
  390. package/build/_app/immutable/chunks/oarl--hZ.js.gz +0 -0
  391. package/build/_app/immutable/chunks/onAF5SnQ.js +1 -0
  392. package/build/_app/immutable/chunks/onAF5SnQ.js.br +0 -0
  393. package/build/_app/immutable/chunks/onAF5SnQ.js.gz +0 -0
  394. package/build/_app/immutable/chunks/oz_6vUea.js +1 -0
  395. package/build/_app/immutable/chunks/oz_6vUea.js.br +0 -0
  396. package/build/_app/immutable/chunks/oz_6vUea.js.gz +0 -0
  397. package/build/_app/immutable/chunks/qrpS1hNb.js +1 -0
  398. package/build/_app/immutable/chunks/qrpS1hNb.js.br +0 -0
  399. package/build/_app/immutable/chunks/qrpS1hNb.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.D_IBy7uS.js +2 -0
  407. package/build/_app/immutable/entry/app.D_IBy7uS.js.br +0 -0
  408. package/build/_app/immutable/entry/app.D_IBy7uS.js.gz +0 -0
  409. package/build/_app/immutable/entry/start.DbNkBLf5.js +1 -0
  410. package/build/_app/immutable/entry/start.DbNkBLf5.js.br +0 -0
  411. package/build/_app/immutable/entry/start.DbNkBLf5.js.gz +0 -0
  412. package/build/_app/immutable/nodes/0.CS5BBLx9.js +3 -0
  413. package/build/_app/immutable/nodes/0.CS5BBLx9.js.br +0 -0
  414. package/build/_app/immutable/nodes/0.CS5BBLx9.js.gz +0 -0
  415. package/build/_app/immutable/nodes/1.Bx_DOFs1.js +1 -0
  416. package/build/_app/immutable/nodes/1.Bx_DOFs1.js.br +1 -0
  417. package/build/_app/immutable/nodes/1.Bx_DOFs1.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.Cev9Grgc.js +3 -0
  437. package/build/_app/immutable/nodes/16.Cev9Grgc.js.br +0 -0
  438. package/build/_app/immutable/nodes/16.Cev9Grgc.js.gz +0 -0
  439. package/build/_app/immutable/nodes/17.C869oOf4.js +10 -0
  440. package/build/_app/immutable/nodes/17.C869oOf4.js.br +0 -0
  441. package/build/_app/immutable/nodes/17.C869oOf4.js.gz +0 -0
  442. package/build/_app/immutable/nodes/2.DdU1kSNu.js +35 -0
  443. package/build/_app/immutable/nodes/2.DdU1kSNu.js.br +0 -0
  444. package/build/_app/immutable/nodes/2.DdU1kSNu.js.gz +0 -0
  445. package/build/_app/immutable/nodes/3.C5QPqWTE.js +1 -0
  446. package/build/_app/immutable/nodes/3.C5QPqWTE.js.br +0 -0
  447. package/build/_app/immutable/nodes/3.C5QPqWTE.js.gz +0 -0
  448. package/build/_app/immutable/nodes/4.CNS3NZ4Z.js +1 -0
  449. package/build/_app/immutable/nodes/4.CNS3NZ4Z.js.br +0 -0
  450. package/build/_app/immutable/nodes/4.CNS3NZ4Z.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.h6Y1Z_zh.js +1 -0
  455. package/build/_app/immutable/nodes/6.h6Y1Z_zh.js.br +0 -0
  456. package/build/_app/immutable/nodes/6.h6Y1Z_zh.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.BUnel48-.js +24 -0
  464. package/build/_app/immutable/nodes/9.BUnel48-.js.br +0 -0
  465. package/build/_app/immutable/nodes/9.BUnel48-.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 +0 -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 -54
  545. package/.svelte-kit/tsconfig.json +0 -59
  546. package/bin/bosun.js +0 -319
  547. package/build/client/_app/immutable/assets/0.FwR3B_mV.css +0 -1
  548. package/build/client/_app/immutable/assets/0.FwR3B_mV.css.br +0 -0
  549. package/build/client/_app/immutable/assets/0.FwR3B_mV.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.DxwYfh1z.css +0 -1
  557. package/build/client/_app/immutable/assets/2.DxwYfh1z.css.br +0 -0
  558. package/build/client/_app/immutable/assets/2.DxwYfh1z.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.tn0RQdqM.css +0 -0
  575. package/build/client/_app/immutable/assets/Modal.tn0RQdqM.css.br +0 -1
  576. package/build/client/_app/immutable/assets/Modal.tn0RQdqM.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/07xNIa59.js +0 -2
  590. package/build/client/_app/immutable/chunks/07xNIa59.js.br +0 -0
  591. package/build/client/_app/immutable/chunks/07xNIa59.js.gz +0 -0
  592. package/build/client/_app/immutable/chunks/0cvrggvQ.js +0 -6
  593. package/build/client/_app/immutable/chunks/0cvrggvQ.js.br +0 -0
  594. package/build/client/_app/immutable/chunks/0cvrggvQ.js.gz +0 -0
  595. package/build/client/_app/immutable/chunks/25W9uPmb.js +0 -6
  596. package/build/client/_app/immutable/chunks/25W9uPmb.js.br +0 -0
  597. package/build/client/_app/immutable/chunks/25W9uPmb.js.gz +0 -0
  598. package/build/client/_app/immutable/chunks/4Ik7cdeQ.js +0 -8
  599. package/build/client/_app/immutable/chunks/4Ik7cdeQ.js.br +0 -0
  600. package/build/client/_app/immutable/chunks/4Ik7cdeQ.js.gz +0 -0
  601. package/build/client/_app/immutable/chunks/5Rap-vPy.js +0 -6
  602. package/build/client/_app/immutable/chunks/5Rap-vPy.js.br +0 -3
  603. package/build/client/_app/immutable/chunks/5Rap-vPy.js.gz +0 -0
  604. package/build/client/_app/immutable/chunks/B03wrqEc.js +0 -6
  605. package/build/client/_app/immutable/chunks/B03wrqEc.js.br +0 -0
  606. package/build/client/_app/immutable/chunks/B03wrqEc.js.gz +0 -0
  607. package/build/client/_app/immutable/chunks/B5zXfXm9.js +0 -6
  608. package/build/client/_app/immutable/chunks/B5zXfXm9.js.br +0 -0
  609. package/build/client/_app/immutable/chunks/B5zXfXm9.js.gz +0 -0
  610. package/build/client/_app/immutable/chunks/B9Xyijhd.js +0 -6
  611. package/build/client/_app/immutable/chunks/B9Xyijhd.js.br +0 -0
  612. package/build/client/_app/immutable/chunks/B9Xyijhd.js.gz +0 -0
  613. package/build/client/_app/immutable/chunks/BDl2QuyN.js +0 -1
  614. package/build/client/_app/immutable/chunks/BDl2QuyN.js.br +0 -0
  615. package/build/client/_app/immutable/chunks/BDl2QuyN.js.gz +0 -0
  616. package/build/client/_app/immutable/chunks/BFG1Mk7z.js +0 -6
  617. package/build/client/_app/immutable/chunks/BFG1Mk7z.js.br +0 -0
  618. package/build/client/_app/immutable/chunks/BFG1Mk7z.js.gz +0 -0
  619. package/build/client/_app/immutable/chunks/BI42X8h_.js +0 -1
  620. package/build/client/_app/immutable/chunks/BI42X8h_.js.br +0 -0
  621. package/build/client/_app/immutable/chunks/BI42X8h_.js.gz +0 -0
  622. package/build/client/_app/immutable/chunks/BIv9DU6q.js +0 -303
  623. package/build/client/_app/immutable/chunks/BIv9DU6q.js.br +0 -0
  624. package/build/client/_app/immutable/chunks/BIv9DU6q.js.gz +0 -0
  625. package/build/client/_app/immutable/chunks/BJTwdUYr.js +0 -1
  626. package/build/client/_app/immutable/chunks/BJTwdUYr.js.br +0 -0
  627. package/build/client/_app/immutable/chunks/BJTwdUYr.js.gz +0 -0
  628. package/build/client/_app/immutable/chunks/BKlk5iyT.js +0 -6
  629. package/build/client/_app/immutable/chunks/BKlk5iyT.js.br +0 -0
  630. package/build/client/_app/immutable/chunks/BKlk5iyT.js.gz +0 -0
  631. package/build/client/_app/immutable/chunks/BLu86SbA.js +0 -1
  632. package/build/client/_app/immutable/chunks/BLu86SbA.js.br +0 -0
  633. package/build/client/_app/immutable/chunks/BLu86SbA.js.gz +0 -0
  634. package/build/client/_app/immutable/chunks/BMYSavKM.js +0 -6
  635. package/build/client/_app/immutable/chunks/BMYSavKM.js.br +0 -0
  636. package/build/client/_app/immutable/chunks/BMYSavKM.js.gz +0 -0
  637. package/build/client/_app/immutable/chunks/BNifnXkO.js +0 -1
  638. package/build/client/_app/immutable/chunks/BNifnXkO.js.br +0 -2
  639. package/build/client/_app/immutable/chunks/BNifnXkO.js.gz +0 -0
  640. package/build/client/_app/immutable/chunks/BPNEONy5.js +0 -1
  641. package/build/client/_app/immutable/chunks/BPNEONy5.js.br +0 -0
  642. package/build/client/_app/immutable/chunks/BPNEONy5.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/BU7aeYn4.js +0 -1
  647. package/build/client/_app/immutable/chunks/BU7aeYn4.js.br +0 -0
  648. package/build/client/_app/immutable/chunks/BU7aeYn4.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_K7D6rX.js +0 -2
  653. package/build/client/_app/immutable/chunks/B_K7D6rX.js.br +0 -0
  654. package/build/client/_app/immutable/chunks/B_K7D6rX.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/BbBuNuSi.js +0 -3
  668. package/build/client/_app/immutable/chunks/BbBuNuSi.js.br +0 -0
  669. package/build/client/_app/immutable/chunks/BbBuNuSi.js.gz +0 -0
  670. package/build/client/_app/immutable/chunks/Bc-ZgV77.js +0 -6
  671. package/build/client/_app/immutable/chunks/Bc-ZgV77.js.br +0 -0
  672. package/build/client/_app/immutable/chunks/Bc-ZgV77.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/Bhzvs7bI.js +0 -6
  677. package/build/client/_app/immutable/chunks/Bhzvs7bI.js.br +0 -0
  678. package/build/client/_app/immutable/chunks/Bhzvs7bI.js.gz +0 -0
  679. package/build/client/_app/immutable/chunks/Bio4gycK.js +0 -6
  680. package/build/client/_app/immutable/chunks/Bio4gycK.js.br +0 -0
  681. package/build/client/_app/immutable/chunks/Bio4gycK.js.gz +0 -0
  682. package/build/client/_app/immutable/chunks/Bj8jfBTi.js +0 -1
  683. package/build/client/_app/immutable/chunks/Bj8jfBTi.js.br +0 -0
  684. package/build/client/_app/immutable/chunks/Bj8jfBTi.js.gz +0 -0
  685. package/build/client/_app/immutable/chunks/BoFRg7Ot.js +0 -6
  686. package/build/client/_app/immutable/chunks/BoFRg7Ot.js.br +0 -0
  687. package/build/client/_app/immutable/chunks/BoFRg7Ot.js.gz +0 -0
  688. package/build/client/_app/immutable/chunks/Bqgm2twL.js +0 -6
  689. package/build/client/_app/immutable/chunks/Bqgm2twL.js.br +0 -0
  690. package/build/client/_app/immutable/chunks/Bqgm2twL.js.gz +0 -0
  691. package/build/client/_app/immutable/chunks/BrgZPUOV.js +0 -6
  692. package/build/client/_app/immutable/chunks/BrgZPUOV.js.br +0 -0
  693. package/build/client/_app/immutable/chunks/BrgZPUOV.js.gz +0 -0
  694. package/build/client/_app/immutable/chunks/BsDZe4N6.js +0 -1
  695. package/build/client/_app/immutable/chunks/BsDZe4N6.js.br +0 -0
  696. package/build/client/_app/immutable/chunks/BsDZe4N6.js.gz +0 -0
  697. package/build/client/_app/immutable/chunks/BsTHnhdd.js +0 -7
  698. package/build/client/_app/immutable/chunks/BsTHnhdd.js.br +0 -0
  699. package/build/client/_app/immutable/chunks/BsTHnhdd.js.gz +0 -0
  700. package/build/client/_app/immutable/chunks/Buo-57fF.js +0 -1
  701. package/build/client/_app/immutable/chunks/Buo-57fF.js.br +0 -0
  702. package/build/client/_app/immutable/chunks/Buo-57fF.js.gz +0 -0
  703. package/build/client/_app/immutable/chunks/Bw7xm6iT.js +0 -1
  704. package/build/client/_app/immutable/chunks/Bw7xm6iT.js.br +0 -0
  705. package/build/client/_app/immutable/chunks/Bw7xm6iT.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/C39ai1md.js +0 -1
  710. package/build/client/_app/immutable/chunks/C39ai1md.js.br +0 -0
  711. package/build/client/_app/immutable/chunks/C39ai1md.js.gz +0 -0
  712. package/build/client/_app/immutable/chunks/C4mbwMvt.js +0 -6
  713. package/build/client/_app/immutable/chunks/C4mbwMvt.js.br +0 -0
  714. package/build/client/_app/immutable/chunks/C4mbwMvt.js.gz +0 -0
  715. package/build/client/_app/immutable/chunks/C5WLch3f.js +0 -6
  716. package/build/client/_app/immutable/chunks/C5WLch3f.js.br +0 -0
  717. package/build/client/_app/immutable/chunks/C5WLch3f.js.gz +0 -0
  718. package/build/client/_app/immutable/chunks/C7he4XPB.js +0 -1
  719. package/build/client/_app/immutable/chunks/C7he4XPB.js.br +0 -0
  720. package/build/client/_app/immutable/chunks/C7he4XPB.js.gz +0 -0
  721. package/build/client/_app/immutable/chunks/CAFoob5N.js +0 -6
  722. package/build/client/_app/immutable/chunks/CAFoob5N.js.br +0 -0
  723. package/build/client/_app/immutable/chunks/CAFoob5N.js.gz +0 -0
  724. package/build/client/_app/immutable/chunks/CAjPRvNs.js +0 -2
  725. package/build/client/_app/immutable/chunks/CAjPRvNs.js.br +0 -0
  726. package/build/client/_app/immutable/chunks/CAjPRvNs.js.gz +0 -0
  727. package/build/client/_app/immutable/chunks/CCSDG5nI.js +0 -6
  728. package/build/client/_app/immutable/chunks/CCSDG5nI.js.br +0 -0
  729. package/build/client/_app/immutable/chunks/CCSDG5nI.js.gz +0 -0
  730. package/build/client/_app/immutable/chunks/CDGzqUPQ.js +0 -6
  731. package/build/client/_app/immutable/chunks/CDGzqUPQ.js.br +0 -0
  732. package/build/client/_app/immutable/chunks/CDGzqUPQ.js.gz +0 -0
  733. package/build/client/_app/immutable/chunks/CDntyWJ8.js +0 -6
  734. package/build/client/_app/immutable/chunks/CDntyWJ8.js.br +0 -0
  735. package/build/client/_app/immutable/chunks/CDntyWJ8.js.gz +0 -0
  736. package/build/client/_app/immutable/chunks/CFKIUWau.js +0 -6
  737. package/build/client/_app/immutable/chunks/CFKIUWau.js.br +0 -0
  738. package/build/client/_app/immutable/chunks/CFKIUWau.js.gz +0 -0
  739. package/build/client/_app/immutable/chunks/CFOPXBzS.js +0 -6
  740. package/build/client/_app/immutable/chunks/CFOPXBzS.js.br +0 -0
  741. package/build/client/_app/immutable/chunks/CFOPXBzS.js.gz +0 -0
  742. package/build/client/_app/immutable/chunks/CGinwM47.js +0 -8
  743. package/build/client/_app/immutable/chunks/CGinwM47.js.br +0 -0
  744. package/build/client/_app/immutable/chunks/CGinwM47.js.gz +0 -0
  745. package/build/client/_app/immutable/chunks/CJYOmGlC.js +0 -1
  746. package/build/client/_app/immutable/chunks/CJYOmGlC.js.br +0 -0
  747. package/build/client/_app/immutable/chunks/CJYOmGlC.js.gz +0 -0
  748. package/build/client/_app/immutable/chunks/CLLBncYj.js +0 -6
  749. package/build/client/_app/immutable/chunks/CLLBncYj.js.br +0 -0
  750. package/build/client/_app/immutable/chunks/CLLBncYj.js.gz +0 -0
  751. package/build/client/_app/immutable/chunks/COyEY5Pt.js +0 -7
  752. package/build/client/_app/immutable/chunks/COyEY5Pt.js.br +0 -0
  753. package/build/client/_app/immutable/chunks/COyEY5Pt.js.gz +0 -0
  754. package/build/client/_app/immutable/chunks/CPXdAKdv.js +0 -1
  755. package/build/client/_app/immutable/chunks/CPXdAKdv.js.br +0 -0
  756. package/build/client/_app/immutable/chunks/CPXdAKdv.js.gz +0 -0
  757. package/build/client/_app/immutable/chunks/CPajHgWi.js +0 -6
  758. package/build/client/_app/immutable/chunks/CPajHgWi.js.br +0 -0
  759. package/build/client/_app/immutable/chunks/CPajHgWi.js.gz +0 -0
  760. package/build/client/_app/immutable/chunks/CVlsAO8k.js +0 -11
  761. package/build/client/_app/immutable/chunks/CVlsAO8k.js.br +0 -0
  762. package/build/client/_app/immutable/chunks/CVlsAO8k.js.gz +0 -0
  763. package/build/client/_app/immutable/chunks/CVwtpugi.js +0 -6
  764. package/build/client/_app/immutable/chunks/CVwtpugi.js.br +0 -0
  765. package/build/client/_app/immutable/chunks/CVwtpugi.js.gz +0 -0
  766. package/build/client/_app/immutable/chunks/CX-rkNHf.js +0 -6
  767. package/build/client/_app/immutable/chunks/CX-rkNHf.js.br +0 -0
  768. package/build/client/_app/immutable/chunks/CX-rkNHf.js.gz +0 -0
  769. package/build/client/_app/immutable/chunks/CX0Ekq8t.js +0 -1
  770. package/build/client/_app/immutable/chunks/CX0Ekq8t.js.br +0 -0
  771. package/build/client/_app/immutable/chunks/CX0Ekq8t.js.gz +0 -0
  772. package/build/client/_app/immutable/chunks/CXOwvkN_.js +0 -6
  773. package/build/client/_app/immutable/chunks/CXOwvkN_.js.br +0 -0
  774. package/build/client/_app/immutable/chunks/CXOwvkN_.js.gz +0 -0
  775. package/build/client/_app/immutable/chunks/Ca197UDq.js +0 -1
  776. package/build/client/_app/immutable/chunks/Ca197UDq.js.br +0 -0
  777. package/build/client/_app/immutable/chunks/Ca197UDq.js.gz +0 -0
  778. package/build/client/_app/immutable/chunks/CaHl3dME.js +0 -1
  779. package/build/client/_app/immutable/chunks/CaHl3dME.js.br +0 -0
  780. package/build/client/_app/immutable/chunks/CaHl3dME.js.gz +0 -0
  781. package/build/client/_app/immutable/chunks/CdQndTaG.js +0 -6
  782. package/build/client/_app/immutable/chunks/CdQndTaG.js.br +0 -0
  783. package/build/client/_app/immutable/chunks/CdQndTaG.js.gz +0 -0
  784. package/build/client/_app/immutable/chunks/Ce3n6wWz.js +0 -6
  785. package/build/client/_app/immutable/chunks/Ce3n6wWz.js.br +0 -0
  786. package/build/client/_app/immutable/chunks/Ce3n6wWz.js.gz +0 -0
  787. package/build/client/_app/immutable/chunks/Ce9aG7vY.js +0 -1
  788. package/build/client/_app/immutable/chunks/Ce9aG7vY.js.br +0 -0
  789. package/build/client/_app/immutable/chunks/Ce9aG7vY.js.gz +0 -0
  790. package/build/client/_app/immutable/chunks/Cg7bfA9N.js +0 -6
  791. package/build/client/_app/immutable/chunks/Cg7bfA9N.js.br +0 -0
  792. package/build/client/_app/immutable/chunks/Cg7bfA9N.js.gz +0 -0
  793. package/build/client/_app/immutable/chunks/Cp1zYvxS.js +0 -6
  794. package/build/client/_app/immutable/chunks/Cp1zYvxS.js.br +0 -0
  795. package/build/client/_app/immutable/chunks/Cp1zYvxS.js.gz +0 -0
  796. package/build/client/_app/immutable/chunks/CpIb_Oan.js +0 -6
  797. package/build/client/_app/immutable/chunks/CpIb_Oan.js.br +0 -0
  798. package/build/client/_app/immutable/chunks/CpIb_Oan.js.gz +0 -0
  799. package/build/client/_app/immutable/chunks/Cpb6xl2v.js +0 -6
  800. package/build/client/_app/immutable/chunks/Cpb6xl2v.js.br +0 -0
  801. package/build/client/_app/immutable/chunks/Cpb6xl2v.js.gz +0 -0
  802. package/build/client/_app/immutable/chunks/Cphgjts3.js +0 -6
  803. package/build/client/_app/immutable/chunks/Cphgjts3.js.br +0 -0
  804. package/build/client/_app/immutable/chunks/Cphgjts3.js.gz +0 -0
  805. package/build/client/_app/immutable/chunks/Cql_e8Of.js +0 -1
  806. package/build/client/_app/immutable/chunks/Cql_e8Of.js.br +0 -2
  807. package/build/client/_app/immutable/chunks/Cql_e8Of.js.gz +0 -0
  808. package/build/client/_app/immutable/chunks/CrxwEwqu.js +0 -6
  809. package/build/client/_app/immutable/chunks/CrxwEwqu.js.br +0 -0
  810. package/build/client/_app/immutable/chunks/CrxwEwqu.js.gz +0 -0
  811. package/build/client/_app/immutable/chunks/CwNk8-XU.js +0 -6
  812. package/build/client/_app/immutable/chunks/CwNk8-XU.js.br +0 -0
  813. package/build/client/_app/immutable/chunks/CwNk8-XU.js.gz +0 -0
  814. package/build/client/_app/immutable/chunks/CwmAWymP.js +0 -6
  815. package/build/client/_app/immutable/chunks/CwmAWymP.js.br +0 -0
  816. package/build/client/_app/immutable/chunks/CwmAWymP.js.gz +0 -0
  817. package/build/client/_app/immutable/chunks/CxLomzuE.js +0 -1
  818. package/build/client/_app/immutable/chunks/CxLomzuE.js.br +0 -0
  819. package/build/client/_app/immutable/chunks/CxLomzuE.js.gz +0 -0
  820. package/build/client/_app/immutable/chunks/Cyai3SOj.js +0 -1
  821. package/build/client/_app/immutable/chunks/Cyai3SOj.js.br +0 -0
  822. package/build/client/_app/immutable/chunks/Cyai3SOj.js.gz +0 -0
  823. package/build/client/_app/immutable/chunks/CyvQWZoe.js +0 -8
  824. package/build/client/_app/immutable/chunks/CyvQWZoe.js.br +0 -0
  825. package/build/client/_app/immutable/chunks/CyvQWZoe.js.gz +0 -0
  826. package/build/client/_app/immutable/chunks/CzKuDChf.js +0 -6
  827. package/build/client/_app/immutable/chunks/CzKuDChf.js.br +0 -0
  828. package/build/client/_app/immutable/chunks/CzKuDChf.js.gz +0 -0
  829. package/build/client/_app/immutable/chunks/CzXNWL4m.js +0 -1
  830. package/build/client/_app/immutable/chunks/CzXNWL4m.js.br +0 -1
  831. package/build/client/_app/immutable/chunks/CzXNWL4m.js.gz +0 -0
  832. package/build/client/_app/immutable/chunks/D-B5X35l.js +0 -1
  833. package/build/client/_app/immutable/chunks/D-B5X35l.js.br +0 -0
  834. package/build/client/_app/immutable/chunks/D-B5X35l.js.gz +0 -0
  835. package/build/client/_app/immutable/chunks/D-MeaMDU.js +0 -6
  836. package/build/client/_app/immutable/chunks/D-MeaMDU.js.br +0 -0
  837. package/build/client/_app/immutable/chunks/D-MeaMDU.js.gz +0 -0
  838. package/build/client/_app/immutable/chunks/D3h14YRZ.js +0 -8
  839. package/build/client/_app/immutable/chunks/D3h14YRZ.js.br +0 -0
  840. package/build/client/_app/immutable/chunks/D3h14YRZ.js.gz +0 -0
  841. package/build/client/_app/immutable/chunks/D5C2fndG.js +0 -6
  842. package/build/client/_app/immutable/chunks/D5C2fndG.js.br +0 -0
  843. package/build/client/_app/immutable/chunks/D5C2fndG.js.gz +0 -0
  844. package/build/client/_app/immutable/chunks/DDMPVpvs.js +0 -6
  845. package/build/client/_app/immutable/chunks/DDMPVpvs.js.br +0 -0
  846. package/build/client/_app/immutable/chunks/DDMPVpvs.js.gz +0 -0
  847. package/build/client/_app/immutable/chunks/DDwshQtU.js +0 -6
  848. package/build/client/_app/immutable/chunks/DDwshQtU.js.br +0 -0
  849. package/build/client/_app/immutable/chunks/DDwshQtU.js.gz +0 -0
  850. package/build/client/_app/immutable/chunks/DHaeiCBh.js +0 -6
  851. package/build/client/_app/immutable/chunks/DHaeiCBh.js.br +0 -0
  852. package/build/client/_app/immutable/chunks/DHaeiCBh.js.gz +0 -0
  853. package/build/client/_app/immutable/chunks/DJriQKD9.js +0 -2
  854. package/build/client/_app/immutable/chunks/DJriQKD9.js.br +0 -0
  855. package/build/client/_app/immutable/chunks/DJriQKD9.js.gz +0 -0
  856. package/build/client/_app/immutable/chunks/DLQqXQ6R.js +0 -751
  857. package/build/client/_app/immutable/chunks/DLQqXQ6R.js.br +0 -0
  858. package/build/client/_app/immutable/chunks/DLQqXQ6R.js.gz +0 -0
  859. package/build/client/_app/immutable/chunks/DRIMs3uA.js +0 -6
  860. package/build/client/_app/immutable/chunks/DRIMs3uA.js.br +0 -0
  861. package/build/client/_app/immutable/chunks/DRIMs3uA.js.gz +0 -0
  862. package/build/client/_app/immutable/chunks/DSZPf7rp.js +0 -6
  863. package/build/client/_app/immutable/chunks/DSZPf7rp.js.br +0 -0
  864. package/build/client/_app/immutable/chunks/DSZPf7rp.js.gz +0 -0
  865. package/build/client/_app/immutable/chunks/DTECt2xU.js +0 -6
  866. package/build/client/_app/immutable/chunks/DTECt2xU.js.br +0 -0
  867. package/build/client/_app/immutable/chunks/DTECt2xU.js.gz +0 -0
  868. package/build/client/_app/immutable/chunks/DUeN9t8P.js +0 -6
  869. package/build/client/_app/immutable/chunks/DUeN9t8P.js.br +0 -0
  870. package/build/client/_app/immutable/chunks/DUeN9t8P.js.gz +0 -0
  871. package/build/client/_app/immutable/chunks/DWH0347h.js +0 -6
  872. package/build/client/_app/immutable/chunks/DWH0347h.js.br +0 -0
  873. package/build/client/_app/immutable/chunks/DWH0347h.js.gz +0 -0
  874. package/build/client/_app/immutable/chunks/DXyYeYxl.js +0 -6
  875. package/build/client/_app/immutable/chunks/DXyYeYxl.js.br +0 -0
  876. package/build/client/_app/immutable/chunks/DXyYeYxl.js.gz +0 -0
  877. package/build/client/_app/immutable/chunks/DZxMt77D.js +0 -6
  878. package/build/client/_app/immutable/chunks/DZxMt77D.js.br +0 -0
  879. package/build/client/_app/immutable/chunks/DZxMt77D.js.gz +0 -0
  880. package/build/client/_app/immutable/chunks/Dd3NCNK9.js +0 -6
  881. package/build/client/_app/immutable/chunks/Dd3NCNK9.js.br +0 -0
  882. package/build/client/_app/immutable/chunks/Dd3NCNK9.js.gz +0 -0
  883. package/build/client/_app/immutable/chunks/DfzH4Xui.js +0 -6
  884. package/build/client/_app/immutable/chunks/DfzH4Xui.js.br +0 -0
  885. package/build/client/_app/immutable/chunks/DfzH4Xui.js.gz +0 -0
  886. package/build/client/_app/immutable/chunks/DgGeUDDh.js +0 -1
  887. package/build/client/_app/immutable/chunks/DgGeUDDh.js.br +0 -0
  888. package/build/client/_app/immutable/chunks/DgGeUDDh.js.gz +0 -0
  889. package/build/client/_app/immutable/chunks/DgyLZaXg.js +0 -6
  890. package/build/client/_app/immutable/chunks/DgyLZaXg.js.br +0 -0
  891. package/build/client/_app/immutable/chunks/DgyLZaXg.js.gz +0 -0
  892. package/build/client/_app/immutable/chunks/DjDhNM9l.js +0 -9
  893. package/build/client/_app/immutable/chunks/DjDhNM9l.js.br +0 -0
  894. package/build/client/_app/immutable/chunks/DjDhNM9l.js.gz +0 -0
  895. package/build/client/_app/immutable/chunks/DnHyzjbg.js +0 -6
  896. package/build/client/_app/immutable/chunks/DnHyzjbg.js.br +0 -0
  897. package/build/client/_app/immutable/chunks/DnHyzjbg.js.gz +0 -0
  898. package/build/client/_app/immutable/chunks/DpBxGfau.js +0 -1
  899. package/build/client/_app/immutable/chunks/DpBxGfau.js.br +0 -0
  900. package/build/client/_app/immutable/chunks/DpBxGfau.js.gz +0 -0
  901. package/build/client/_app/immutable/chunks/DrQuvNYM.js +0 -6
  902. package/build/client/_app/immutable/chunks/DrQuvNYM.js.br +0 -0
  903. package/build/client/_app/immutable/chunks/DrQuvNYM.js.gz +0 -0
  904. package/build/client/_app/immutable/chunks/Drc7WvVn.js +0 -6
  905. package/build/client/_app/immutable/chunks/Drc7WvVn.js.br +0 -0
  906. package/build/client/_app/immutable/chunks/Drc7WvVn.js.gz +0 -0
  907. package/build/client/_app/immutable/chunks/Dslf9OwW.js +0 -33
  908. package/build/client/_app/immutable/chunks/Dslf9OwW.js.br +0 -0
  909. package/build/client/_app/immutable/chunks/Dslf9OwW.js.gz +0 -0
  910. package/build/client/_app/immutable/chunks/DwJ7jVG9.js +0 -8
  911. package/build/client/_app/immutable/chunks/DwJ7jVG9.js.br +0 -0
  912. package/build/client/_app/immutable/chunks/DwJ7jVG9.js.gz +0 -0
  913. package/build/client/_app/immutable/chunks/DyP6w7ZV.js +0 -6
  914. package/build/client/_app/immutable/chunks/DyP6w7ZV.js.br +0 -0
  915. package/build/client/_app/immutable/chunks/DyP6w7ZV.js.gz +0 -0
  916. package/build/client/_app/immutable/chunks/JcG4w2gF.js +0 -1
  917. package/build/client/_app/immutable/chunks/JcG4w2gF.js.br +0 -0
  918. package/build/client/_app/immutable/chunks/JcG4w2gF.js.gz +0 -0
  919. package/build/client/_app/immutable/chunks/OA8UcISh.js +0 -1
  920. package/build/client/_app/immutable/chunks/OA8UcISh.js.br +0 -0
  921. package/build/client/_app/immutable/chunks/OA8UcISh.js.gz +0 -0
  922. package/build/client/_app/immutable/chunks/QpaC6J6s.js +0 -1
  923. package/build/client/_app/immutable/chunks/QpaC6J6s.js.br +0 -0
  924. package/build/client/_app/immutable/chunks/QpaC6J6s.js.gz +0 -0
  925. package/build/client/_app/immutable/chunks/T0seCQS_.js +0 -1
  926. package/build/client/_app/immutable/chunks/T0seCQS_.js.br +0 -0
  927. package/build/client/_app/immutable/chunks/T0seCQS_.js.gz +0 -0
  928. package/build/client/_app/immutable/chunks/Tw7wswEv.js +0 -6
  929. package/build/client/_app/immutable/chunks/Tw7wswEv.js.br +0 -0
  930. package/build/client/_app/immutable/chunks/Tw7wswEv.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/dUCx_-0o.js +0 -6
  944. package/build/client/_app/immutable/chunks/dUCx_-0o.js.br +0 -0
  945. package/build/client/_app/immutable/chunks/dUCx_-0o.js.gz +0 -0
  946. package/build/client/_app/immutable/chunks/ddC1NP9R.js +0 -2
  947. package/build/client/_app/immutable/chunks/ddC1NP9R.js.br +0 -0
  948. package/build/client/_app/immutable/chunks/ddC1NP9R.js.gz +0 -0
  949. package/build/client/_app/immutable/chunks/deUWdS0T.js +0 -6
  950. package/build/client/_app/immutable/chunks/deUWdS0T.js.br +0 -0
  951. package/build/client/_app/immutable/chunks/deUWdS0T.js.gz +0 -0
  952. package/build/client/_app/immutable/chunks/gULlE0tz.js +0 -1
  953. package/build/client/_app/immutable/chunks/gULlE0tz.js.br +0 -2
  954. package/build/client/_app/immutable/chunks/gULlE0tz.js.gz +0 -0
  955. package/build/client/_app/immutable/chunks/i9-g7ZhI.js +0 -6
  956. package/build/client/_app/immutable/chunks/i9-g7ZhI.js.br +0 -0
  957. package/build/client/_app/immutable/chunks/i9-g7ZhI.js.gz +0 -0
  958. package/build/client/_app/immutable/chunks/iAhzu4tv.js +0 -1
  959. package/build/client/_app/immutable/chunks/iAhzu4tv.js.br +0 -0
  960. package/build/client/_app/immutable/chunks/iAhzu4tv.js.gz +0 -0
  961. package/build/client/_app/immutable/chunks/nYD9wsyN.js +0 -1
  962. package/build/client/_app/immutable/chunks/nYD9wsyN.js.br +0 -0
  963. package/build/client/_app/immutable/chunks/nYD9wsyN.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/pnP8ivHi.js +0 -6
  968. package/build/client/_app/immutable/chunks/pnP8ivHi.js.br +0 -0
  969. package/build/client/_app/immutable/chunks/pnP8ivHi.js.gz +0 -0
  970. package/build/client/_app/immutable/chunks/rUNN04Wq.js +0 -6
  971. package/build/client/_app/immutable/chunks/rUNN04Wq.js.br +0 -0
  972. package/build/client/_app/immutable/chunks/rUNN04Wq.js.gz +0 -0
  973. package/build/client/_app/immutable/chunks/tGk8EFnU.js +0 -6
  974. package/build/client/_app/immutable/chunks/tGk8EFnU.js.br +0 -0
  975. package/build/client/_app/immutable/chunks/tGk8EFnU.js.gz +0 -0
  976. package/build/client/_app/immutable/chunks/uLGP0py1.js +0 -1
  977. package/build/client/_app/immutable/chunks/uLGP0py1.js.br +0 -0
  978. package/build/client/_app/immutable/chunks/uLGP0py1.js.gz +0 -0
  979. package/build/client/_app/immutable/chunks/xC2C8d09.js +0 -1
  980. package/build/client/_app/immutable/chunks/xC2C8d09.js.br +0 -0
  981. package/build/client/_app/immutable/chunks/xC2C8d09.js.gz +0 -0
  982. package/build/client/_app/immutable/entry/app.Ghwm_QxJ.js +0 -2
  983. package/build/client/_app/immutable/entry/app.Ghwm_QxJ.js.br +0 -0
  984. package/build/client/_app/immutable/entry/app.Ghwm_QxJ.js.gz +0 -0
  985. package/build/client/_app/immutable/entry/start.SqT6xQ-7.js +0 -1
  986. package/build/client/_app/immutable/entry/start.SqT6xQ-7.js.br +0 -2
  987. package/build/client/_app/immutable/entry/start.SqT6xQ-7.js.gz +0 -0
  988. package/build/client/_app/immutable/nodes/0.LR7iEcCa.js +0 -3
  989. package/build/client/_app/immutable/nodes/0.LR7iEcCa.js.br +0 -0
  990. package/build/client/_app/immutable/nodes/0.LR7iEcCa.js.gz +0 -0
  991. package/build/client/_app/immutable/nodes/1.CWSas7JK.js +0 -1
  992. package/build/client/_app/immutable/nodes/1.CWSas7JK.js.br +0 -0
  993. package/build/client/_app/immutable/nodes/1.CWSas7JK.js.gz +0 -0
  994. package/build/client/_app/immutable/nodes/10.BoxFN5Nv.js +0 -13
  995. package/build/client/_app/immutable/nodes/10.BoxFN5Nv.js.br +0 -0
  996. package/build/client/_app/immutable/nodes/10.BoxFN5Nv.js.gz +0 -0
  997. package/build/client/_app/immutable/nodes/11.CsTD16Gn.js +0 -1
  998. package/build/client/_app/immutable/nodes/11.CsTD16Gn.js.br +0 -0
  999. package/build/client/_app/immutable/nodes/11.CsTD16Gn.js.gz +0 -0
  1000. package/build/client/_app/immutable/nodes/12.DYXd_leK.js +0 -1
  1001. package/build/client/_app/immutable/nodes/12.DYXd_leK.js.br +0 -0
  1002. package/build/client/_app/immutable/nodes/12.DYXd_leK.js.gz +0 -0
  1003. package/build/client/_app/immutable/nodes/13.DQMjAUKq.js +0 -1
  1004. package/build/client/_app/immutable/nodes/13.DQMjAUKq.js.br +0 -1
  1005. package/build/client/_app/immutable/nodes/13.DQMjAUKq.js.gz +0 -0
  1006. package/build/client/_app/immutable/nodes/14.C59tyoG0.js +0 -1
  1007. package/build/client/_app/immutable/nodes/14.C59tyoG0.js.br +0 -0
  1008. package/build/client/_app/immutable/nodes/14.C59tyoG0.js.gz +0 -0
  1009. package/build/client/_app/immutable/nodes/15.BFy4oAT6.js +0 -1
  1010. package/build/client/_app/immutable/nodes/15.BFy4oAT6.js.br +0 -0
  1011. package/build/client/_app/immutable/nodes/15.BFy4oAT6.js.gz +0 -0
  1012. package/build/client/_app/immutable/nodes/16.DRwcAQjb.js +0 -1
  1013. package/build/client/_app/immutable/nodes/16.DRwcAQjb.js.br +0 -0
  1014. package/build/client/_app/immutable/nodes/16.DRwcAQjb.js.gz +0 -0
  1015. package/build/client/_app/immutable/nodes/17.C6M3Ukek.js +0 -3
  1016. package/build/client/_app/immutable/nodes/17.C6M3Ukek.js.br +0 -0
  1017. package/build/client/_app/immutable/nodes/17.C6M3Ukek.js.gz +0 -0
  1018. package/build/client/_app/immutable/nodes/18.C7Jynwaf.js +0 -11
  1019. package/build/client/_app/immutable/nodes/18.C7Jynwaf.js.br +0 -0
  1020. package/build/client/_app/immutable/nodes/18.C7Jynwaf.js.gz +0 -0
  1021. package/build/client/_app/immutable/nodes/2.C9LJ_7n5.js +0 -35
  1022. package/build/client/_app/immutable/nodes/2.C9LJ_7n5.js.br +0 -0
  1023. package/build/client/_app/immutable/nodes/2.C9LJ_7n5.js.gz +0 -0
  1024. package/build/client/_app/immutable/nodes/3.Cldr3PEw.js +0 -1
  1025. package/build/client/_app/immutable/nodes/3.Cldr3PEw.js.br +0 -0
  1026. package/build/client/_app/immutable/nodes/3.Cldr3PEw.js.gz +0 -0
  1027. package/build/client/_app/immutable/nodes/4.C5HDYxuE.js +0 -1
  1028. package/build/client/_app/immutable/nodes/4.C5HDYxuE.js.br +0 -0
  1029. package/build/client/_app/immutable/nodes/4.C5HDYxuE.js.gz +0 -0
  1030. package/build/client/_app/immutable/nodes/5.BRZRzqKl.js +0 -1
  1031. package/build/client/_app/immutable/nodes/5.BRZRzqKl.js.br +0 -0
  1032. package/build/client/_app/immutable/nodes/5.BRZRzqKl.js.gz +0 -0
  1033. package/build/client/_app/immutable/nodes/6.BEjGUOuB.js +0 -1
  1034. package/build/client/_app/immutable/nodes/6.BEjGUOuB.js.br +0 -0
  1035. package/build/client/_app/immutable/nodes/6.BEjGUOuB.js.gz +0 -0
  1036. package/build/client/_app/immutable/nodes/7.7N4iPidV.js +0 -1
  1037. package/build/client/_app/immutable/nodes/7.7N4iPidV.js.br +0 -1
  1038. package/build/client/_app/immutable/nodes/7.7N4iPidV.js.gz +0 -0
  1039. package/build/client/_app/immutable/nodes/8.wHpoUA6X.js +0 -2
  1040. package/build/client/_app/immutable/nodes/8.wHpoUA6X.js.br +0 -0
  1041. package/build/client/_app/immutable/nodes/8.wHpoUA6X.js.gz +0 -0
  1042. package/build/client/_app/immutable/nodes/9.CpmcUS87.js +0 -2
  1043. package/build/client/_app/immutable/nodes/9.CpmcUS87.js.br +0 -0
  1044. package/build/client/_app/immutable/nodes/9.CpmcUS87.js.gz +0 -0
  1045. package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js +0 -84
  1046. package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.br +0 -0
  1047. package/build/client/_app/immutable/workers/css.worker-BRIrhzkG.js.gz +0 -0
  1048. package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js +0 -12
  1049. package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.br +0 -0
  1050. package/build/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.gz +0 -0
  1051. package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js +0 -461
  1052. package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.br +0 -0
  1053. package/build/client/_app/immutable/workers/html.worker-CBI4EQBP.js.gz +0 -0
  1054. package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js +0 -49
  1055. package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.br +0 -0
  1056. package/build/client/_app/immutable/workers/json.worker-CIZWV9vN.js.gz +0 -0
  1057. package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js +0 -51334
  1058. package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.br +0 -0
  1059. package/build/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.gz +0 -0
  1060. package/build/client/_app/version.json +0 -1
  1061. package/build/client/_app/version.json.br +0 -0
  1062. package/build/client/_app/version.json.gz +0 -0
  1063. package/build/env.js +0 -45
  1064. package/build/handler.js +0 -1390
  1065. package/build/index.js +0 -334
  1066. package/build/server/chunks/0-CesYJG8k.js +0 -9
  1067. package/build/server/chunks/0-CesYJG8k.js.map +0 -1
  1068. package/build/server/chunks/1-p4jSVKu9.js +0 -9
  1069. package/build/server/chunks/1-p4jSVKu9.js.map +0 -1
  1070. package/build/server/chunks/10-BVCIK_-n.js +0 -9
  1071. package/build/server/chunks/10-BVCIK_-n.js.map +0 -1
  1072. package/build/server/chunks/11-CB5q84io.js +0 -25
  1073. package/build/server/chunks/11-CB5q84io.js.map +0 -1
  1074. package/build/server/chunks/12-CfqC_Y1R.js +0 -19
  1075. package/build/server/chunks/12-CfqC_Y1R.js.map +0 -1
  1076. package/build/server/chunks/13-ByddfU7G.js +0 -21
  1077. package/build/server/chunks/13-ByddfU7G.js.map +0 -1
  1078. package/build/server/chunks/14-Dk7DCwHC.js +0 -20
  1079. package/build/server/chunks/14-Dk7DCwHC.js.map +0 -1
  1080. package/build/server/chunks/15-BRw8wtLp.js +0 -9
  1081. package/build/server/chunks/15-BRw8wtLp.js.map +0 -1
  1082. package/build/server/chunks/16-Y9KLA9UF.js +0 -20
  1083. package/build/server/chunks/16-Y9KLA9UF.js.map +0 -1
  1084. package/build/server/chunks/17-DRS7q3gb.js +0 -9
  1085. package/build/server/chunks/17-DRS7q3gb.js.map +0 -1
  1086. package/build/server/chunks/18-CPOL7uEZ.js +0 -9
  1087. package/build/server/chunks/18-CPOL7uEZ.js.map +0 -1
  1088. package/build/server/chunks/2-Cd22UmxM.js +0 -9
  1089. package/build/server/chunks/2-Cd22UmxM.js.map +0 -1
  1090. package/build/server/chunks/3-mcDvhjv6.js +0 -9
  1091. package/build/server/chunks/3-mcDvhjv6.js.map +0 -1
  1092. package/build/server/chunks/4-D0D66uQr.js +0 -9
  1093. package/build/server/chunks/4-D0D66uQr.js.map +0 -1
  1094. package/build/server/chunks/5-D1bI9E9O.js +0 -9
  1095. package/build/server/chunks/5-D1bI9E9O.js.map +0 -1
  1096. package/build/server/chunks/6-BJxJFeJN.js +0 -9
  1097. package/build/server/chunks/6-BJxJFeJN.js.map +0 -1
  1098. package/build/server/chunks/7-olXOjo4r.js +0 -25
  1099. package/build/server/chunks/7-olXOjo4r.js.map +0 -1
  1100. package/build/server/chunks/8-DBNRpB4j.js +0 -9
  1101. package/build/server/chunks/8-DBNRpB4j.js.map +0 -1
  1102. package/build/server/chunks/9-Dr21aceD.js +0 -9
  1103. package/build/server/chunks/9-Dr21aceD.js.map +0 -1
  1104. package/build/server/chunks/AgentSidebar-C--dGIV5.js +0 -170
  1105. package/build/server/chunks/AgentSidebar-C--dGIV5.js.map +0 -1
  1106. package/build/server/chunks/Button-oIUr2LUP.js +0 -47
  1107. package/build/server/chunks/Button-oIUr2LUP.js.map +0 -1
  1108. package/build/server/chunks/ChatStepTrace-CX2Zolmp.js +0 -556
  1109. package/build/server/chunks/ChatStepTrace-CX2Zolmp.js.map +0 -1
  1110. package/build/server/chunks/Dropdown-DfCyYHqi.js +0 -62
  1111. package/build/server/chunks/Dropdown-DfCyYHqi.js.map +0 -1
  1112. package/build/server/chunks/Icon-DadJPtVP.js +0 -77
  1113. package/build/server/chunks/Icon-DadJPtVP.js.map +0 -1
  1114. package/build/server/chunks/Input-R74u4cO5.js +0 -22
  1115. package/build/server/chunks/Input-R74u4cO5.js.map +0 -1
  1116. package/build/server/chunks/Modal-CAzVFw5x.js +0 -2595
  1117. package/build/server/chunks/Modal-CAzVFw5x.js.map +0 -1
  1118. package/build/server/chunks/Panel-D0IY1AzO.js +0 -11
  1119. package/build/server/chunks/Panel-D0IY1AzO.js.map +0 -1
  1120. package/build/server/chunks/Tab-D13L_Up5.js +0 -83
  1121. package/build/server/chunks/Tab-D13L_Up5.js.map +0 -1
  1122. package/build/server/chunks/_layout.svelte-BIMexfnk.js +0 -480
  1123. package/build/server/chunks/_layout.svelte-BIMexfnk.js.map +0 -1
  1124. package/build/server/chunks/_layout.svelte-Blfto3jh.js +0 -1143
  1125. package/build/server/chunks/_layout.svelte-Blfto3jh.js.map +0 -1
  1126. package/build/server/chunks/_layout.svelte-D4EOIHJJ.js +0 -45
  1127. package/build/server/chunks/_layout.svelte-D4EOIHJJ.js.map +0 -1
  1128. package/build/server/chunks/_layout.svelte-Dk-9LkfL.js +0 -60
  1129. package/build/server/chunks/_layout.svelte-Dk-9LkfL.js.map +0 -1
  1130. package/build/server/chunks/_page.svelte-B1erTzoN.js +0 -61
  1131. package/build/server/chunks/_page.svelte-B1erTzoN.js.map +0 -1
  1132. package/build/server/chunks/_page.svelte-CY0Be19a.js +0 -2129
  1133. package/build/server/chunks/_page.svelte-CY0Be19a.js.map +0 -1
  1134. package/build/server/chunks/_page.svelte-CeO_ScC8.js +0 -13
  1135. package/build/server/chunks/_page.svelte-CeO_ScC8.js.map +0 -1
  1136. package/build/server/chunks/_page.svelte-CoCBnE2l.js +0 -944
  1137. package/build/server/chunks/_page.svelte-CoCBnE2l.js.map +0 -1
  1138. package/build/server/chunks/_page.svelte-D5S0QjlI.js +0 -70
  1139. package/build/server/chunks/_page.svelte-D5S0QjlI.js.map +0 -1
  1140. package/build/server/chunks/_page.svelte-DZvcjON6.js +0 -1819
  1141. package/build/server/chunks/_page.svelte-DZvcjON6.js.map +0 -1
  1142. package/build/server/chunks/_page.svelte-YoDx7gDL.js +0 -47
  1143. package/build/server/chunks/_page.svelte-YoDx7gDL.js.map +0 -1
  1144. package/build/server/chunks/_page.svelte-xf-0yXQM.js +0 -1429
  1145. package/build/server/chunks/_page.svelte-xf-0yXQM.js.map +0 -1
  1146. package/build/server/chunks/_server.ts-Bn0p9hMs.js +0 -49
  1147. package/build/server/chunks/_server.ts-Bn0p9hMs.js.map +0 -1
  1148. package/build/server/chunks/_server.ts-CbcaMe9z.js +0 -38
  1149. package/build/server/chunks/_server.ts-CbcaMe9z.js.map +0 -1
  1150. package/build/server/chunks/_server.ts-CtO28tLc.js +0 -23
  1151. package/build/server/chunks/_server.ts-CtO28tLc.js.map +0 -1
  1152. package/build/server/chunks/_server.ts-D_eo_OAK.js +0 -139
  1153. package/build/server/chunks/_server.ts-D_eo_OAK.js.map +0 -1
  1154. package/build/server/chunks/agents-context-w03Lz_6n.js +0 -6
  1155. package/build/server/chunks/agents-context-w03Lz_6n.js.map +0 -1
  1156. package/build/server/chunks/client-WFEvX_be.js +0 -33
  1157. package/build/server/chunks/client-WFEvX_be.js.map +0 -1
  1158. package/build/server/chunks/conversation-view-memory-B0PllWRL.js +0 -20
  1159. package/build/server/chunks/conversation-view-memory-B0PllWRL.js.map +0 -1
  1160. package/build/server/chunks/edit-workspace-context-biaZqjOf.js +0 -6
  1161. package/build/server/chunks/edit-workspace-context-biaZqjOf.js.map +0 -1
  1162. package/build/server/chunks/error.svelte-BjIDhioc.js +0 -15
  1163. package/build/server/chunks/error.svelte-BjIDhioc.js.map +0 -1
  1164. package/build/server/chunks/hooks.universal-BJphIAi-.js +0 -8
  1165. package/build/server/chunks/hooks.universal-BJphIAi-.js.map +0 -1
  1166. package/build/server/chunks/index-NcxaM188.js +0 -236
  1167. package/build/server/chunks/index-NcxaM188.js.map +0 -1
  1168. package/build/server/chunks/index-rHCWxLFZ.js +0 -4062
  1169. package/build/server/chunks/index-rHCWxLFZ.js.map +0 -1
  1170. package/build/server/chunks/index-server-BMxlf3ZC.js +0 -17
  1171. package/build/server/chunks/index-server-BMxlf3ZC.js.map +0 -1
  1172. package/build/server/chunks/index2-DdOgqE2_.js +0 -24
  1173. package/build/server/chunks/index2-DdOgqE2_.js.map +0 -1
  1174. package/build/server/chunks/index3-DC4GTqD1.js +0 -63
  1175. package/build/server/chunks/index3-DC4GTqD1.js.map +0 -1
  1176. package/build/server/chunks/latency--f3JYIRg.js +0 -157
  1177. package/build/server/chunks/latency--f3JYIRg.js.map +0 -1
  1178. package/build/server/chunks/latency-recordings-CqioXMQl.js +0 -117
  1179. package/build/server/chunks/latency-recordings-CqioXMQl.js.map +0 -1
  1180. package/build/server/chunks/log-content.svelte-CfQzj-v_.js +0 -20
  1181. package/build/server/chunks/log-content.svelte-CfQzj-v_.js.map +0 -1
  1182. package/build/server/chunks/root-UeqiktJA.js +0 -1266
  1183. package/build/server/chunks/root-UeqiktJA.js.map +0 -1
  1184. package/build/server/chunks/shared-server-DaWdgxVh.js +0 -11
  1185. package/build/server/chunks/shared-server-DaWdgxVh.js.map +0 -1
  1186. package/build/server/chunks/source-selection-CcN1cgXc.js +0 -243
  1187. package/build/server/chunks/source-selection-CcN1cgXc.js.map +0 -1
  1188. package/build/server/chunks/sources.server-C2PLxQXh.js +0 -71
  1189. package/build/server/chunks/sources.server-C2PLxQXh.js.map +0 -1
  1190. package/build/server/chunks/state.svelte-CLOYXiU6.js +0 -11
  1191. package/build/server/chunks/state.svelte-CLOYXiU6.js.map +0 -1
  1192. package/build/server/chunks/steps-DzZCg39h.js +0 -8
  1193. package/build/server/chunks/steps-DzZCg39h.js.map +0 -1
  1194. package/build/server/chunks/trpc-client-D8L6vWf4.js +0 -14
  1195. package/build/server/chunks/trpc-client-D8L6vWf4.js.map +0 -1
  1196. package/build/server/index.js +0 -5995
  1197. package/build/server/index.js.map +0 -1
  1198. package/build/server/manifest.js +0 -181
  1199. package/build/server/manifest.js.map +0 -1
  1200. package/build/shims.js +0 -32
  1201. package/src/backend/lib/backend-restart.ts +0 -15
  1202. package/src/backend/lib/decode-html-entities.spec.ts +0 -28
  1203. package/src/backend/lib/decode-html-entities.ts +0 -25
  1204. package/src/backend/lib/get-agent-factories.spec.ts +0 -59
  1205. package/src/backend/lib/get-agent-factories.ts +0 -118
  1206. package/src/backend/lib/get-root-path.ts +0 -89
  1207. package/src/backend/lib/import-nonce.ts +0 -10
  1208. package/src/backend/lib/middleware/cors.ts +0 -14
  1209. package/src/backend/lib/project-api.ts +0 -15
  1210. package/src/backend/lib/project-data-dir.spec.ts +0 -19
  1211. package/src/backend/lib/project-data-dir.ts +0 -9
  1212. package/src/backend/lib/trpc-context.ts +0 -8
  1213. package/src/backend/lib/voice-agent-lifecycle.test.ts +0 -31
  1214. package/src/backend/lib/voice-agent-lifecycle.ts +0 -16
  1215. package/src/backend/region/router.ts +0 -54
  1216. package/src/backend/roleplay/agents.ts +0 -742
  1217. package/src/backend/roleplay/fs-persistence.ts +0 -81
  1218. package/src/backend/roleplay/logger.ts +0 -30
  1219. package/src/backend/roleplay/message-dispatcher.ts +0 -93
  1220. package/src/backend/roleplay/old-server.ts +0 -82
  1221. package/src/backend/roleplay/router.ts +0 -366
  1222. package/src/backend/roleplay/scheduler.ts +0 -76
  1223. package/src/backend/roleplay/schema-file.spec.ts +0 -38
  1224. package/src/backend/roleplay/schema-file.ts +0 -33
  1225. package/src/backend/roleplay/step-registry.ts +0 -11
  1226. package/src/backend/roleplay/trace-serialization.spec.ts +0 -35
  1227. package/src/backend/roleplay/trace-serialization.ts +0 -57
  1228. package/src/backend/roleplay/variants.spec.ts +0 -53
  1229. package/src/backend/roleplay/variants.ts +0 -294
  1230. package/src/backend/server.ts +0 -70
  1231. package/src/backend/tests/academy-json.spec.ts +0 -97
  1232. package/src/backend/tests/academy.ts +0 -940
  1233. package/src/backend/tests/active-test-runs.spec.ts +0 -27
  1234. package/src/backend/tests/active-test-runs.ts +0 -41
  1235. package/src/backend/tests/analyze.ts +0 -533
  1236. package/src/backend/tests/best-effort-log-writer.spec.ts +0 -39
  1237. package/src/backend/tests/best-effort-log-writer.ts +0 -52
  1238. package/src/backend/tests/context-utils.ts +0 -26
  1239. package/src/backend/tests/data.spec.ts +0 -146
  1240. package/src/backend/tests/data.ts +0 -732
  1241. package/src/backend/tests/emulate-agents.ts +0 -206
  1242. package/src/backend/tests/json-field-match.ts +0 -94
  1243. package/src/backend/tests/openai-prompt-cache.ts +0 -68
  1244. package/src/backend/tests/pii-sanitized-test-drafts.spec.ts +0 -163
  1245. package/src/backend/tests/pii-sanitized-test-drafts.ts +0 -106
  1246. package/src/backend/tests/pii-sanitizer.spec.ts +0 -261
  1247. package/src/backend/tests/pii-sanitizer.ts +0 -282
  1248. package/src/backend/tests/prompt-issues.ts +0 -207
  1249. package/src/backend/tests/promptfoo-runtime.spec.ts +0 -41
  1250. package/src/backend/tests/promptfoo-runtime.ts +0 -27
  1251. package/src/backend/tests/report-files.spec.ts +0 -44
  1252. package/src/backend/tests/report-files.ts +0 -120
  1253. package/src/backend/tests/router.ts +0 -301
  1254. package/src/backend/tests/suite.spec.ts +0 -122
  1255. package/src/backend/tests/suite.ts +0 -236
  1256. package/src/backend/traces/latency-recordings.ts +0 -176
  1257. package/src/lib/agent-catalog.ts +0 -4
  1258. package/src/lib/agents-context.ts +0 -8
  1259. package/src/lib/api-telescope/client.ts +0 -174
  1260. package/src/lib/api-telescope/index.ts +0 -4
  1261. package/src/lib/api-telescope/latency-timeline-view-state.spec.ts +0 -25
  1262. package/src/lib/api-telescope/latency-timeline-view-state.ts +0 -86
  1263. package/src/lib/api-telescope/latency.ts +0 -252
  1264. package/src/lib/api-telescope/source-selection.ts +0 -20
  1265. package/src/lib/api-telescope/sources.server.ts +0 -94
  1266. package/src/lib/api-telescope/types.ts +0 -143
  1267. package/src/lib/components/Button.svelte +0 -62
  1268. package/src/lib/components/CollapseExpand.svelte +0 -425
  1269. package/src/lib/components/CopyTracesDropdown.svelte +0 -118
  1270. package/src/lib/components/Dialog.svelte +0 -69
  1271. package/src/lib/components/Dropdown.svelte +0 -111
  1272. package/src/lib/components/History.svelte +0 -174
  1273. package/src/lib/components/Icon.svelte +0 -94
  1274. package/src/lib/components/Input.svelte +0 -43
  1275. package/src/lib/components/Link.svelte +0 -45
  1276. package/src/lib/components/Modal.svelte +0 -45
  1277. package/src/lib/components/Panel.svelte +0 -12
  1278. package/src/lib/components/PopoverModal.svelte +0 -34
  1279. package/src/lib/components/Popper.svelte +0 -109
  1280. package/src/lib/components/Tab.svelte +0 -91
  1281. package/src/lib/components/Tabs.svelte +0 -140
  1282. package/src/lib/components/agent-colors.ts +0 -70
  1283. package/src/lib/dom/text-selection.ts +0 -97
  1284. package/src/lib/edit/edit-vm.spec.ts +0 -115
  1285. package/src/lib/edit/edit-vm.ts +0 -169
  1286. package/src/lib/edit/edit-workspace-context.ts +0 -56
  1287. package/src/lib/edit/highlight-styles.spec.ts +0 -14
  1288. package/src/lib/edit/prompt-highlighter.spec.ts +0 -80
  1289. package/src/lib/edit/prompt-highlighter.ts +0 -155
  1290. package/src/lib/edit/quote-matching.ts +0 -97
  1291. package/src/lib/monaco/bosun-theme.ts +0 -125
  1292. package/src/lib/monaco/font.ts +0 -2
  1293. package/src/lib/monaco-workers.ts +0 -28
  1294. package/src/lib/steps.ts +0 -19
  1295. package/src/lib/tests/pii-sanitized-test-draft.ts +0 -50
  1296. package/src/lib/trpc-client.ts +0 -16
  1297. package/src/lib/ws-client.ts +0 -144
  1298. package/src/lib/ws-message.ts +0 -150
  1299. package/tsconfig.json +0 -27
  1300. /package/build/{client/_app → _app}/immutable/assets/codicon.DCmgc-ay.ttf +0 -0
  1301. /package/build/{client/favicon.png → favicon.png} +0 -0
  1302. /package/build/{client/fonts → fonts}/DarkerGrotesque-Black.ttf +0 -0
  1303. /package/build/{client/fonts → fonts}/DarkerGrotesque-Bold.ttf +0 -0
  1304. /package/build/{client/fonts → fonts}/DarkerGrotesque-Light.ttf +0 -0
  1305. /package/build/{client/fonts → fonts}/DarkerGrotesque-Medium.ttf +0 -0
  1306. /package/build/{client/fonts → fonts}/DarkerGrotesque-Regular.ttf +0 -0
  1307. /package/build/{client/fonts → fonts}/DarkerGrotesque-SemiBold.ttf +0 -0
  1308. /package/build/{client/fonts.css → fonts.css} +0 -0
  1309. /package/build/{client/fonts.css.br → fonts.css.br} +0 -0
  1310. /package/build/{client/fonts.css.gz → fonts.css.gz} +0 -0
  1311. /package/build/{client/recombine.svg → recombine.svg} +0 -0
  1312. /package/build/{client/recombine.svg.br → recombine.svg.br} +0 -0
  1313. /package/build/{client/recombine.svg.gz → recombine.svg.gz} +0 -0
  1314. /package/build/{client/telescope-icon.svg → telescope-icon.svg} +0 -0
  1315. /package/build/{client/telescope-icon.svg.br → telescope-icon.svg.br} +0 -0
  1316. /package/build/{client/telescope-icon.svg.gz → telescope-icon.svg.gz} +0 -0
  1317. /package/build/{client/ui → ui}/arrow_tests.svg +0 -0
  1318. /package/build/{client/ui → ui}/arrow_tests.svg.br +0 -0
  1319. /package/build/{client/ui → ui}/arrow_tests.svg.gz +0 -0
  1320. /package/build/{client/ui → ui}/paperclip.svg +0 -0
  1321. /package/build/{client/ui → ui}/paperclip.svg.br +0 -0
  1322. /package/build/{client/ui → ui}/paperclip.svg.gz +0 -0
  1323. /package/build/{client/ui → ui}/send.svg +0 -0
  1324. /package/build/{client/ui → ui}/send.svg.br +0 -0
  1325. /package/build/{client/ui → ui}/send.svg.gz +0 -0
@@ -1,2595 +0,0 @@
1
- import { aA as bind_props, aD as hasContext, ax as getContext, _ as setContext, m as derived, aE as getAllContexts, aF as spread_props, aG as clsx, ay as attributes, k as escape_html } from './index-rHCWxLFZ.js';
2
- import { m as mount, u as unmount, t as tick } from './index-server-BMxlf3ZC.js';
3
- import { o as on } from './root-UeqiktJA.js';
4
-
5
- // http://www.w3.org/TR/CSS21/grammar.html
6
- // https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027
7
- var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
8
-
9
- var NEWLINE_REGEX = /\n/g;
10
- var WHITESPACE_REGEX = /^\s*/;
11
-
12
- // declaration
13
- var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
14
- var COLON_REGEX = /^:\s*/;
15
- var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
16
- var SEMICOLON_REGEX = /^[;\s]*/;
17
-
18
- // https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill
19
- var TRIM_REGEX = /^\s+|\s+$/g;
20
-
21
- // strings
22
- var NEWLINE = '\n';
23
- var FORWARD_SLASH = '/';
24
- var ASTERISK = '*';
25
- var EMPTY_STRING = '';
26
-
27
- // types
28
- var TYPE_COMMENT = 'comment';
29
- var TYPE_DECLARATION = 'declaration';
30
-
31
- /**
32
- * @param {String} style
33
- * @param {Object} [options]
34
- * @return {Object[]}
35
- * @throws {TypeError}
36
- * @throws {Error}
37
- */
38
- function index (style, options) {
39
- if (typeof style !== 'string') {
40
- throw new TypeError('First argument must be a string');
41
- }
42
-
43
- if (!style) return [];
44
-
45
- options = options || {};
46
-
47
- /**
48
- * Positional.
49
- */
50
- var lineno = 1;
51
- var column = 1;
52
-
53
- /**
54
- * Update lineno and column based on `str`.
55
- *
56
- * @param {String} str
57
- */
58
- function updatePosition(str) {
59
- var lines = str.match(NEWLINE_REGEX);
60
- if (lines) lineno += lines.length;
61
- var i = str.lastIndexOf(NEWLINE);
62
- column = ~i ? str.length - i : column + str.length;
63
- }
64
-
65
- /**
66
- * Mark position and patch `node.position`.
67
- *
68
- * @return {Function}
69
- */
70
- function position() {
71
- var start = { line: lineno, column: column };
72
- return function (node) {
73
- node.position = new Position(start);
74
- whitespace();
75
- return node;
76
- };
77
- }
78
-
79
- /**
80
- * Store position information for a node.
81
- *
82
- * @constructor
83
- * @property {Object} start
84
- * @property {Object} end
85
- * @property {undefined|String} source
86
- */
87
- function Position(start) {
88
- this.start = start;
89
- this.end = { line: lineno, column: column };
90
- this.source = options.source;
91
- }
92
-
93
- /**
94
- * Non-enumerable source string.
95
- */
96
- Position.prototype.content = style;
97
-
98
- /**
99
- * Error `msg`.
100
- *
101
- * @param {String} msg
102
- * @throws {Error}
103
- */
104
- function error(msg) {
105
- var err = new Error(
106
- options.source + ':' + lineno + ':' + column + ': ' + msg
107
- );
108
- err.reason = msg;
109
- err.filename = options.source;
110
- err.line = lineno;
111
- err.column = column;
112
- err.source = style;
113
-
114
- if (options.silent) ; else {
115
- throw err;
116
- }
117
- }
118
-
119
- /**
120
- * Match `re` and return captures.
121
- *
122
- * @param {RegExp} re
123
- * @return {undefined|Array}
124
- */
125
- function match(re) {
126
- var m = re.exec(style);
127
- if (!m) return;
128
- var str = m[0];
129
- updatePosition(str);
130
- style = style.slice(str.length);
131
- return m;
132
- }
133
-
134
- /**
135
- * Parse whitespace.
136
- */
137
- function whitespace() {
138
- match(WHITESPACE_REGEX);
139
- }
140
-
141
- /**
142
- * Parse comments.
143
- *
144
- * @param {Object[]} [rules]
145
- * @return {Object[]}
146
- */
147
- function comments(rules) {
148
- var c;
149
- rules = rules || [];
150
- while ((c = comment())) {
151
- if (c !== false) {
152
- rules.push(c);
153
- }
154
- }
155
- return rules;
156
- }
157
-
158
- /**
159
- * Parse comment.
160
- *
161
- * @return {Object}
162
- * @throws {Error}
163
- */
164
- function comment() {
165
- var pos = position();
166
- if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
167
-
168
- var i = 2;
169
- while (
170
- EMPTY_STRING != style.charAt(i) &&
171
- (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))
172
- ) {
173
- ++i;
174
- }
175
- i += 2;
176
-
177
- if (EMPTY_STRING === style.charAt(i - 1)) {
178
- return error('End of comment missing');
179
- }
180
-
181
- var str = style.slice(2, i - 2);
182
- column += 2;
183
- updatePosition(str);
184
- style = style.slice(i);
185
- column += 2;
186
-
187
- return pos({
188
- type: TYPE_COMMENT,
189
- comment: str
190
- });
191
- }
192
-
193
- /**
194
- * Parse declaration.
195
- *
196
- * @return {Object}
197
- * @throws {Error}
198
- */
199
- function declaration() {
200
- var pos = position();
201
-
202
- // prop
203
- var prop = match(PROPERTY_REGEX);
204
- if (!prop) return;
205
- comment();
206
-
207
- // :
208
- if (!match(COLON_REGEX)) return error("property missing ':'");
209
-
210
- // val
211
- var val = match(VALUE_REGEX);
212
-
213
- var ret = pos({
214
- type: TYPE_DECLARATION,
215
- property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
216
- value: val
217
- ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))
218
- : EMPTY_STRING
219
- });
220
-
221
- // ;
222
- match(SEMICOLON_REGEX);
223
-
224
- return ret;
225
- }
226
-
227
- /**
228
- * Parse declarations.
229
- *
230
- * @return {Object[]}
231
- */
232
- function declarations() {
233
- var decls = [];
234
-
235
- comments(decls);
236
-
237
- // declarations
238
- var decl;
239
- while ((decl = declaration())) {
240
- if (decl !== false) {
241
- decls.push(decl);
242
- comments(decls);
243
- }
244
- }
245
-
246
- return decls;
247
- }
248
-
249
- whitespace();
250
- return declarations();
251
- }
252
-
253
- /**
254
- * Trim `str`.
255
- *
256
- * @param {String} str
257
- * @return {String}
258
- */
259
- function trim(str) {
260
- return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
261
- }
262
-
263
- /**
264
- * Parses inline style to object.
265
- *
266
- * @param style - Inline style.
267
- * @param iterator - Iterator.
268
- * @returns - Style object or null.
269
- *
270
- * @example Parsing inline style to object:
271
- *
272
- * ```js
273
- * import parse from 'style-to-object';
274
- * parse('line-height: 42;'); // { 'line-height': '42' }
275
- * ```
276
- */
277
- function StyleToObject(style, iterator) {
278
- let styleObject = null;
279
- if (!style || typeof style !== 'string') {
280
- return styleObject;
281
- }
282
- const declarations = index(style);
283
- const hasIterator = typeof iterator === 'function';
284
- declarations.forEach((declaration) => {
285
- if (declaration.type !== 'declaration') {
286
- return;
287
- }
288
- const { property, value } = declaration;
289
- if (hasIterator) {
290
- iterator(property, value, declaration);
291
- }
292
- else if (value) {
293
- styleObject = styleObject || {};
294
- styleObject[property] = value;
295
- }
296
- });
297
- return styleObject;
298
- }
299
-
300
- /*!
301
- * tabbable 6.3.0
302
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
303
- */
304
- // NOTE: separate `:not()` selectors has broader browser support than the newer
305
- // `:not([inert], [inert] *)` (Feb 2023)
306
- // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
307
- // the entire query to fail, resulting in no nodes found, which will break a lot
308
- // of things... so we have to rely on JS to identify nodes inside an inert container
309
- var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
310
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
311
- var NoElement = typeof Element === 'undefined';
312
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
313
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
314
- var _element$getRootNode;
315
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
316
- } : function (element) {
317
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
318
- };
319
-
320
- /**
321
- * Determines if a node is inert or in an inert ancestor.
322
- * @param {Element} [node]
323
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
324
- * see if any of them are inert. If false, only `node` itself is considered.
325
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
326
- * False if `node` is falsy.
327
- */
328
- var _isInert = function isInert(node, lookUp) {
329
- var _node$getAttribute;
330
- if (lookUp === void 0) {
331
- lookUp = true;
332
- }
333
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
334
- // JS API property; we have to check the attribute, which can either be empty or 'true';
335
- // if it's `null` (not specified) or 'false', it's an active element
336
- var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
337
- var inert = inertAtt === '' || inertAtt === 'true';
338
-
339
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
340
- // if it weren't for `matches()` not being a function on shadow roots; the following
341
- // code works for any kind of node
342
- // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
343
- // so it likely would not support `:is([inert] *)` either...
344
- var result = inert || lookUp && node && _isInert(node.parentNode); // recursive
345
-
346
- return result;
347
- };
348
-
349
- /**
350
- * Determines if a node's content is editable.
351
- * @param {Element} [node]
352
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
353
- */
354
- var isContentEditable = function isContentEditable(node) {
355
- var _node$getAttribute2;
356
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
357
- // to use the attribute directly to check for this, which can either be empty or 'true';
358
- // if it's `null` (not specified) or 'false', it's a non-editable element
359
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
360
- return attValue === '' || attValue === 'true';
361
- };
362
-
363
- /**
364
- * @private
365
- * Determines if the node has an explicitly specified `tabindex` attribute.
366
- * @param {HTMLElement} node
367
- * @returns {boolean} True if so; false if not.
368
- */
369
- var hasTabIndex = function hasTabIndex(node) {
370
- return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
371
- };
372
-
373
- /**
374
- * Determine the tab index of a given node.
375
- * @param {HTMLElement} node
376
- * @returns {number} Tab order (negative, 0, or positive number).
377
- * @throws {Error} If `node` is falsy.
378
- */
379
- var getTabIndex = function getTabIndex(node) {
380
- if (!node) {
381
- throw new Error('No node provided');
382
- }
383
- if (node.tabIndex < 0) {
384
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
385
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
386
- // yet they are still part of the regular tab order; in FF, they get a default
387
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
388
- // order, consider their tab index to be 0.
389
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
390
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
391
- if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
392
- return 0;
393
- }
394
- }
395
- return node.tabIndex;
396
- };
397
- var isInput = function isInput(node) {
398
- return node.tagName === 'INPUT';
399
- };
400
- var isHiddenInput = function isHiddenInput(node) {
401
- return isInput(node) && node.type === 'hidden';
402
- };
403
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
404
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
405
- return child.tagName === 'SUMMARY';
406
- });
407
- return r;
408
- };
409
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
410
- for (var i = 0; i < nodes.length; i++) {
411
- if (nodes[i].checked && nodes[i].form === form) {
412
- return nodes[i];
413
- }
414
- }
415
- };
416
- var isTabbableRadio = function isTabbableRadio(node) {
417
- if (!node.name) {
418
- return true;
419
- }
420
- var radioScope = node.form || getRootNode(node);
421
- var queryRadios = function queryRadios(name) {
422
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
423
- };
424
- var radioSet;
425
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
426
- radioSet = queryRadios(window.CSS.escape(node.name));
427
- } else {
428
- try {
429
- radioSet = queryRadios(node.name);
430
- } catch (err) {
431
- // eslint-disable-next-line no-console
432
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
433
- return false;
434
- }
435
- }
436
- var checked = getCheckedRadio(radioSet, node.form);
437
- return !checked || checked === node;
438
- };
439
- var isRadio = function isRadio(node) {
440
- return isInput(node) && node.type === 'radio';
441
- };
442
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
443
- return isRadio(node) && !isTabbableRadio(node);
444
- };
445
-
446
- // determines if a node is ultimately attached to the window's document
447
- var isNodeAttached = function isNodeAttached(node) {
448
- var _nodeRoot;
449
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
450
- // (but NOT _the_ document; see second 'If' comment below for more).
451
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
452
- // is attached, and the one we need to check if it's in the document or not (because the
453
- // shadow, and all nodes it contains, is never considered in the document since shadows
454
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
455
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
456
- // visibility, including all the nodes it contains). The host could be any normal node,
457
- // or a custom element (i.e. web component). Either way, that's the one that is considered
458
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
459
- // tested).
460
- // To further complicate things, we have to look all the way up until we find a shadow HOST
461
- // that is attached (or find none) because the node might be in nested shadows...
462
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
463
- // document (per the docs) and while it's a Document-type object, that document does not
464
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
465
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
466
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
467
- // node is actually detached.
468
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
469
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
470
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
471
- // `ownerDocument` will be `null`, hence the optional chaining on it.
472
- var nodeRoot = node && getRootNode(node);
473
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
474
-
475
- // in some cases, a detached node will return itself as the root instead of a document or
476
- // shadow root object, in which case, we shouldn't try to look further up the host chain
477
- var attached = false;
478
- if (nodeRoot && nodeRoot !== node) {
479
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
480
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
481
- while (!attached && nodeRootHost) {
482
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
483
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
484
- // which means we need to get the host's host and check if that parent host is contained
485
- // in (i.e. attached to) the document
486
- nodeRoot = getRootNode(nodeRootHost);
487
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
488
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
489
- }
490
- }
491
- return attached;
492
- };
493
- var isZeroArea = function isZeroArea(node) {
494
- var _node$getBoundingClie = node.getBoundingClientRect(),
495
- width = _node$getBoundingClie.width,
496
- height = _node$getBoundingClie.height;
497
- return width === 0 && height === 0;
498
- };
499
- var isHidden = function isHidden(node, _ref) {
500
- var displayCheck = _ref.displayCheck,
501
- getShadowRoot = _ref.getShadowRoot;
502
- if (displayCheck === 'full-native') {
503
- if ('checkVisibility' in node) {
504
- // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
505
- // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
506
- var visible = node.checkVisibility({
507
- // Checking opacity might be desirable for some use cases, but natively,
508
- // opacity zero elements _are_ focusable and tabbable.
509
- checkOpacity: false,
510
- opacityProperty: false,
511
- contentVisibilityAuto: true,
512
- visibilityProperty: true,
513
- // This is an alias for `visibilityProperty`. Contemporary browsers
514
- // support both. However, this alias has wider browser support (Chrome
515
- // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
516
- // we include it anyway.
517
- checkVisibilityCSS: true
518
- });
519
- return !visible;
520
- }
521
- // Fall through to manual visibility checks
522
- }
523
-
524
- // NOTE: visibility will be `undefined` if node is detached from the document
525
- // (see notes about this further down), which means we will consider it visible
526
- // (this is legacy behavior from a very long way back)
527
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
528
- // _visibility_ check, not a _display_ check
529
- if (getComputedStyle(node).visibility === 'hidden') {
530
- return true;
531
- }
532
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
533
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
534
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
535
- return true;
536
- }
537
- if (!displayCheck || displayCheck === 'full' ||
538
- // full-native can run this branch when it falls through in case
539
- // Element#checkVisibility is unsupported
540
- displayCheck === 'full-native' || displayCheck === 'legacy-full') {
541
- if (typeof getShadowRoot === 'function') {
542
- // figure out if we should consider the node to be in an undisclosed shadow and use the
543
- // 'non-zero-area' fallback
544
- var originalNode = node;
545
- while (node) {
546
- var parentElement = node.parentElement;
547
- var rootNode = getRootNode(node);
548
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
549
- ) {
550
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
551
- // fall back to a non-zero-area test
552
- return isZeroArea(node);
553
- } else if (node.assignedSlot) {
554
- // iterate up slot
555
- node = node.assignedSlot;
556
- } else if (!parentElement && rootNode !== node.ownerDocument) {
557
- // cross shadow boundary
558
- node = rootNode.host;
559
- } else {
560
- // iterate up normal dom
561
- node = parentElement;
562
- }
563
- }
564
- node = originalNode;
565
- }
566
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
567
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
568
- // it might be a falsy value, which means shadow DOM support is disabled
569
-
570
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
571
- // now we can just test to see if it would normally be visible or not, provided it's
572
- // attached to the main document.
573
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
574
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
575
-
576
- if (isNodeAttached(node)) {
577
- // this works wherever the node is: if there's at least one client rect, it's
578
- // somehow displayed; it also covers the CSS 'display: contents' case where the
579
- // node itself is hidden in place of its contents; and there's no need to search
580
- // up the hierarchy either
581
- return !node.getClientRects().length;
582
- }
583
-
584
- // Else, the node isn't attached to the document, which means the `getClientRects()`
585
- // API will __always__ return zero rects (this can happen, for example, if React
586
- // is used to render nodes onto a detached tree, as confirmed in this thread:
587
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
588
- //
589
- // It also means that even window.getComputedStyle(node).display will return `undefined`
590
- // because styles are only computed for nodes that are in the document.
591
- //
592
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
593
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
594
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
595
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
596
- // considering __everything__ to be visible because of the innability to determine styles.
597
- //
598
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
599
- // nodes as visible with the 'none' fallback.__
600
- if (displayCheck !== 'legacy-full') {
601
- return true; // hidden
602
- }
603
- // else, fallback to 'none' mode and consider the node visible
604
- } else if (displayCheck === 'non-zero-area') {
605
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
606
- // whether it's displayed, and that a detached node will __always__ have a zero-area
607
- // client rect, we don't special-case for whether the node is attached or not. In
608
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
609
- // times, and that includes attached or not.
610
- return isZeroArea(node);
611
- }
612
-
613
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
614
- // it's visible
615
- return false;
616
- };
617
-
618
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
619
- // unless they are in the _first_ <legend> element of the top-most disabled
620
- // fieldset
621
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
622
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
623
- var parentNode = node.parentElement;
624
- // check if `node` is contained in a disabled <fieldset>
625
- while (parentNode) {
626
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
627
- // look for the first <legend> among the children of the disabled <fieldset>
628
- for (var i = 0; i < parentNode.children.length; i++) {
629
- var child = parentNode.children.item(i);
630
- // when the first <legend> (in document order) is found
631
- if (child.tagName === 'LEGEND') {
632
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
633
- // return whether `node` is a descendant of its first <legend>
634
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
635
- }
636
- }
637
- // the disabled <fieldset> containing `node` has no <legend>
638
- return true;
639
- }
640
- parentNode = parentNode.parentElement;
641
- }
642
- }
643
-
644
- // else, node's tabbable/focusable state should not be affected by a fieldset's
645
- // enabled/disabled state
646
- return false;
647
- };
648
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
649
- if (node.disabled ||
650
- // we must do an inert look up to filter out any elements inside an inert ancestor
651
- // because we're limited in the type of selectors we can use in JSDom (see related
652
- // note related to `candidateSelectors`)
653
- _isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
654
- // For a details element with a summary, the summary element gets the focus
655
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
656
- return false;
657
- }
658
- return true;
659
- };
660
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
661
- if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
662
- return false;
663
- }
664
- return true;
665
- };
666
- var isTabbable = function isTabbable(node, options) {
667
- options = options || {};
668
- if (!node) {
669
- throw new Error('No node provided');
670
- }
671
- if (matches.call(node, candidateSelector) === false) {
672
- return false;
673
- }
674
- return isNodeMatchingSelectorTabbable(options, node);
675
- };
676
-
677
- function isFunction(value) {
678
- return typeof value === "function";
679
- }
680
- function isObject(value) {
681
- return value !== null && typeof value === "object";
682
- }
683
- const CLASS_VALUE_PRIMITIVE_TYPES = ["string", "number", "bigint", "boolean"];
684
- function isClassValue(value) {
685
- if (value === null || value === void 0)
686
- return true;
687
- if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))
688
- return true;
689
- if (Array.isArray(value))
690
- return value.every((item) => isClassValue(item));
691
- if (typeof value === "object") {
692
- if (Object.getPrototypeOf(value) !== Object.prototype)
693
- return false;
694
- return true;
695
- }
696
- return false;
697
- }
698
- const BoxSymbol = Symbol("box");
699
- const isWritableSymbol = Symbol("is-writable");
700
- function isBox(value) {
701
- return isObject(value) && BoxSymbol in value;
702
- }
703
- function isWritableBox(value) {
704
- return box.isBox(value) && isWritableSymbol in value;
705
- }
706
- function box(initialValue) {
707
- let current = initialValue;
708
- return {
709
- [BoxSymbol]: true,
710
- [isWritableSymbol]: true,
711
- get current() {
712
- return current;
713
- },
714
- set current(v) {
715
- current = v;
716
- }
717
- };
718
- }
719
- function boxWith(getter, setter) {
720
- const derived$1 = derived(getter);
721
- if (setter) {
722
- return {
723
- [BoxSymbol]: true,
724
- [isWritableSymbol]: true,
725
- get current() {
726
- return derived$1();
727
- },
728
- set current(v) {
729
- setter(v);
730
- }
731
- };
732
- }
733
- return {
734
- [BoxSymbol]: true,
735
- get current() {
736
- return getter();
737
- }
738
- };
739
- }
740
- function boxFrom(value) {
741
- if (box.isBox(value)) return value;
742
- if (isFunction(value)) return box.with(value);
743
- return box(value);
744
- }
745
- function boxFlatten(boxes) {
746
- return Object.entries(boxes).reduce(
747
- (acc, [key, b]) => {
748
- if (!box.isBox(b)) {
749
- return Object.assign(acc, { [key]: b });
750
- }
751
- if (box.isWritableBox(b)) {
752
- Object.defineProperty(acc, key, {
753
- get() {
754
- return b.current;
755
- },
756
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
757
- set(v) {
758
- b.current = v;
759
- }
760
- });
761
- } else {
762
- Object.defineProperty(acc, key, {
763
- get() {
764
- return b.current;
765
- }
766
- });
767
- }
768
- return acc;
769
- },
770
- {}
771
- );
772
- }
773
- function toReadonlyBox(b) {
774
- if (!box.isWritableBox(b)) return b;
775
- return {
776
- [BoxSymbol]: true,
777
- get current() {
778
- return b.current;
779
- }
780
- };
781
- }
782
- box.from = boxFrom;
783
- box.with = boxWith;
784
- box.flatten = boxFlatten;
785
- box.readonly = toReadonlyBox;
786
- box.isBox = isBox;
787
- box.isWritableBox = isWritableBox;
788
- function composeHandlers(...handlers) {
789
- return function(e) {
790
- for (const handler of handlers) {
791
- if (!handler)
792
- continue;
793
- if (e.defaultPrevented)
794
- return;
795
- if (typeof handler === "function") {
796
- handler.call(this, e);
797
- } else {
798
- handler.current?.call(this, e);
799
- }
800
- }
801
- };
802
- }
803
- const NUMBER_CHAR_RE = /\d/;
804
- const STR_SPLITTERS = ["-", "_", "/", "."];
805
- function isUppercase(char = "") {
806
- if (NUMBER_CHAR_RE.test(char))
807
- return void 0;
808
- return char !== char.toLowerCase();
809
- }
810
- function splitByCase(str) {
811
- const parts = [];
812
- let buff = "";
813
- let previousUpper;
814
- let previousSplitter;
815
- for (const char of str) {
816
- const isSplitter = STR_SPLITTERS.includes(char);
817
- if (isSplitter === true) {
818
- parts.push(buff);
819
- buff = "";
820
- previousUpper = void 0;
821
- continue;
822
- }
823
- const isUpper = isUppercase(char);
824
- if (previousSplitter === false) {
825
- if (previousUpper === false && isUpper === true) {
826
- parts.push(buff);
827
- buff = char;
828
- previousUpper = isUpper;
829
- continue;
830
- }
831
- if (previousUpper === true && isUpper === false && buff.length > 1) {
832
- const lastChar = buff.at(-1);
833
- parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
834
- buff = lastChar + char;
835
- previousUpper = isUpper;
836
- continue;
837
- }
838
- }
839
- buff += char;
840
- previousUpper = isUpper;
841
- previousSplitter = isSplitter;
842
- }
843
- parts.push(buff);
844
- return parts;
845
- }
846
- function pascalCase(str) {
847
- if (!str)
848
- return "";
849
- return splitByCase(str).map((p) => upperFirst(p)).join("");
850
- }
851
- function camelCase(str) {
852
- return lowerFirst(pascalCase(str || ""));
853
- }
854
- function upperFirst(str) {
855
- return str ? str[0].toUpperCase() + str.slice(1) : "";
856
- }
857
- function lowerFirst(str) {
858
- return str ? str[0].toLowerCase() + str.slice(1) : "";
859
- }
860
- function cssToStyleObj(css) {
861
- if (!css)
862
- return {};
863
- const styleObj = {};
864
- function iterator(name, value) {
865
- if (name.startsWith("-moz-") || name.startsWith("-webkit-") || name.startsWith("-ms-") || name.startsWith("-o-")) {
866
- styleObj[pascalCase(name)] = value;
867
- return;
868
- }
869
- if (name.startsWith("--")) {
870
- styleObj[name] = value;
871
- return;
872
- }
873
- styleObj[camelCase(name)] = value;
874
- }
875
- StyleToObject(css, iterator);
876
- return styleObj;
877
- }
878
- function executeCallbacks(...callbacks) {
879
- return (...args) => {
880
- for (const callback of callbacks) {
881
- if (typeof callback === "function") {
882
- callback(...args);
883
- }
884
- }
885
- };
886
- }
887
- function createParser(matcher, replacer) {
888
- const regex = RegExp(matcher, "g");
889
- return (str) => {
890
- if (typeof str !== "string") {
891
- throw new TypeError(`expected an argument of type string, but got ${typeof str}`);
892
- }
893
- if (!str.match(regex))
894
- return str;
895
- return str.replace(regex, replacer);
896
- };
897
- }
898
- const camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);
899
- function styleToCSS(styleObj) {
900
- if (!styleObj || typeof styleObj !== "object" || Array.isArray(styleObj)) {
901
- throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);
902
- }
903
- return Object.keys(styleObj).map((property) => `${camelToKebab(property)}: ${styleObj[property]};`).join("\n");
904
- }
905
- function styleToString(style = {}) {
906
- return styleToCSS(style).replace("\n", " ");
907
- }
908
- const srOnlyStyles = {
909
- position: "absolute",
910
- width: "1px",
911
- height: "1px",
912
- padding: "0",
913
- margin: "-1px",
914
- overflow: "hidden",
915
- clip: "rect(0, 0, 0, 0)",
916
- whiteSpace: "nowrap",
917
- borderWidth: "0",
918
- transform: "translateX(-100%)"
919
- };
920
- styleToString(srOnlyStyles);
921
- function isEventHandler(key) {
922
- return key.length > 2 && key.startsWith("on") && key[2] === key[2]?.toLowerCase();
923
- }
924
- function mergeProps(...args) {
925
- const result = { ...args[0] };
926
- for (let i = 1; i < args.length; i++) {
927
- const props = args[i];
928
- for (const key in props) {
929
- const a = result[key];
930
- const b = props[key];
931
- const aIsFunction = typeof a === "function";
932
- const bIsFunction = typeof b === "function";
933
- if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {
934
- const aHandler = a;
935
- const bHandler = b;
936
- result[key] = composeHandlers(aHandler, bHandler);
937
- } else if (aIsFunction && bIsFunction) {
938
- result[key] = executeCallbacks(a, b);
939
- } else if (key === "class") {
940
- const aIsClassValue = isClassValue(a);
941
- const bIsClassValue = isClassValue(b);
942
- if (aIsClassValue && bIsClassValue) {
943
- result[key] = clsx(a, b);
944
- } else if (aIsClassValue) {
945
- result[key] = clsx(a);
946
- } else if (bIsClassValue) {
947
- result[key] = clsx(b);
948
- }
949
- } else if (key === "style") {
950
- const aIsObject = typeof a === "object";
951
- const bIsObject = typeof b === "object";
952
- const aIsString = typeof a === "string";
953
- const bIsString = typeof b === "string";
954
- if (aIsObject && bIsObject) {
955
- result[key] = { ...a, ...b };
956
- } else if (aIsObject && bIsString) {
957
- const parsedStyle = cssToStyleObj(b);
958
- result[key] = { ...a, ...parsedStyle };
959
- } else if (aIsString && bIsObject) {
960
- const parsedStyle = cssToStyleObj(a);
961
- result[key] = { ...parsedStyle, ...b };
962
- } else if (aIsString && bIsString) {
963
- const parsedStyleA = cssToStyleObj(a);
964
- const parsedStyleB = cssToStyleObj(b);
965
- result[key] = { ...parsedStyleA, ...parsedStyleB };
966
- } else if (aIsObject) {
967
- result[key] = a;
968
- } else if (bIsObject) {
969
- result[key] = b;
970
- } else if (aIsString) {
971
- result[key] = a;
972
- } else if (bIsString) {
973
- result[key] = b;
974
- }
975
- } else {
976
- result[key] = b !== void 0 ? b : a;
977
- }
978
- }
979
- }
980
- if (typeof result.style === "object") {
981
- result.style = styleToString(result.style).replaceAll("\n", " ");
982
- }
983
- if (result.hidden !== true) {
984
- result.hidden = void 0;
985
- delete result.hidden;
986
- }
987
- if (result.disabled !== true) {
988
- result.disabled = void 0;
989
- delete result.disabled;
990
- }
991
- return result;
992
- }
993
- const defaultWindow = void 0;
994
- function getActiveElement(document2) {
995
- let activeElement = document2.activeElement;
996
- while (activeElement?.shadowRoot) {
997
- const node = activeElement.shadowRoot.activeElement;
998
- if (node === activeElement)
999
- break;
1000
- else
1001
- activeElement = node;
1002
- }
1003
- return activeElement;
1004
- }
1005
- function createSubscriber(_) {
1006
- return () => {
1007
- };
1008
- }
1009
- class ActiveElement {
1010
- #document;
1011
- #subscribe;
1012
- constructor(options = {}) {
1013
- const { window = defaultWindow, document: document2 = window?.document } = options;
1014
- if (window === void 0) return;
1015
- this.#document = document2;
1016
- this.#subscribe = createSubscriber();
1017
- }
1018
- get current() {
1019
- this.#subscribe?.();
1020
- if (!this.#document) return null;
1021
- return getActiveElement(this.#document);
1022
- }
1023
- }
1024
- new ActiveElement();
1025
- function runWatcher(sources, flush, effect, options = {}) {
1026
- const { lazy = false } = options;
1027
- }
1028
- function watch(sources, effect, options) {
1029
- runWatcher(sources, "post", effect, options);
1030
- }
1031
- function watchPre(sources, effect, options) {
1032
- runWatcher(sources, "pre", effect, options);
1033
- }
1034
- watch.pre = watchPre;
1035
- class Previous {
1036
- #previous = void 0;
1037
- #curr;
1038
- constructor(getter) {
1039
- }
1040
- get current() {
1041
- return this.#previous;
1042
- }
1043
- }
1044
- class Context {
1045
- #name;
1046
- #key;
1047
- /**
1048
- * @param name The name of the context.
1049
- * This is used for generating the context key and error messages.
1050
- */
1051
- constructor(name) {
1052
- this.#name = name;
1053
- this.#key = Symbol(name);
1054
- }
1055
- /**
1056
- * The key used to get and set the context.
1057
- *
1058
- * It is not recommended to use this value directly.
1059
- * Instead, use the methods provided by this class.
1060
- */
1061
- get key() {
1062
- return this.#key;
1063
- }
1064
- /**
1065
- * Checks whether this has been set in the context of a parent component.
1066
- *
1067
- * Must be called during component initialisation.
1068
- */
1069
- exists() {
1070
- return hasContext(this.#key);
1071
- }
1072
- /**
1073
- * Retrieves the context that belongs to the closest parent component.
1074
- *
1075
- * Must be called during component initialisation.
1076
- *
1077
- * @throws An error if the context does not exist.
1078
- */
1079
- get() {
1080
- const context = getContext(this.#key);
1081
- if (context === void 0) {
1082
- throw new Error(`Context "${this.#name}" not found`);
1083
- }
1084
- return context;
1085
- }
1086
- /**
1087
- * Retrieves the context that belongs to the closest parent component,
1088
- * or the given fallback value if the context does not exist.
1089
- *
1090
- * Must be called during component initialisation.
1091
- */
1092
- getOr(fallback) {
1093
- const context = getContext(this.#key);
1094
- if (context === void 0) {
1095
- return fallback;
1096
- }
1097
- return context;
1098
- }
1099
- /**
1100
- * Associates the given value with the current component and returns it.
1101
- *
1102
- * Must be called during component initialisation.
1103
- */
1104
- set(context) {
1105
- return setContext(this.#key, context);
1106
- }
1107
- }
1108
- function useRefById({ id, ref, deps = () => true, onRefChange, getRootNode }) {
1109
- watch([() => id.current, deps], ([_id]) => {
1110
- const rootNode = getRootNode?.() ?? document;
1111
- const node = rootNode?.getElementById(_id);
1112
- if (node) ref.current = node;
1113
- else ref.current = null;
1114
- onRefChange?.(ref.current);
1115
- });
1116
- }
1117
- function afterSleep(ms, cb) {
1118
- return setTimeout(cb, ms);
1119
- }
1120
- function afterTick(fn) {
1121
- tick().then(fn);
1122
- }
1123
- function getDataOpenClosed(condition) {
1124
- return condition ? "open" : "closed";
1125
- }
1126
- const ENTER = "Enter";
1127
- const ESCAPE = "Escape";
1128
- const SPACE = " ";
1129
- const TAB = "Tab";
1130
- const isBrowser = typeof document !== "undefined";
1131
- function isHTMLElement(element) {
1132
- return element instanceof HTMLElement;
1133
- }
1134
- function isElement(element) {
1135
- return element instanceof Element;
1136
- }
1137
- function isSelectableInput(element) {
1138
- return element instanceof HTMLInputElement && "select" in element;
1139
- }
1140
- function isElementHidden(node, stopAt) {
1141
- if (getComputedStyle(node).visibility === "hidden")
1142
- return true;
1143
- while (node) {
1144
- if (stopAt !== void 0 && node === stopAt)
1145
- return false;
1146
- if (getComputedStyle(node).display === "none")
1147
- return true;
1148
- node = node.parentElement;
1149
- }
1150
- return false;
1151
- }
1152
- globalThis.bitsIdCounter ??= { current: 0 };
1153
- function useId(prefix = "bits") {
1154
- globalThis.bitsIdCounter.current++;
1155
- return `${prefix}-${globalThis.bitsIdCounter.current}`;
1156
- }
1157
- function noop() {
1158
- }
1159
- function useStateMachine(initialState, machine) {
1160
- const state = box(initialState);
1161
- function reducer(event) {
1162
- const nextState = machine[state.current][event];
1163
- return nextState ?? state.current;
1164
- }
1165
- const dispatch = (event) => {
1166
- state.current = reducer(event);
1167
- };
1168
- return { state, dispatch };
1169
- }
1170
- function usePresence(present, id) {
1171
- let styles = {};
1172
- let prevAnimationNameState = "none";
1173
- const initialState = present.current ? "mounted" : "unmounted";
1174
- let node = null;
1175
- const prevPresent = new Previous(() => present.current);
1176
- watch([() => id.current, () => present.current], ([id2, present2]) => {
1177
- if (!id2 || !present2) return;
1178
- afterTick(() => {
1179
- node = document.getElementById(id2);
1180
- });
1181
- });
1182
- const { state, dispatch } = useStateMachine(initialState, {
1183
- mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" },
1184
- unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" },
1185
- unmounted: { MOUNT: "mounted" }
1186
- });
1187
- watch(() => present.current, (currPresent) => {
1188
- if (!node) {
1189
- node = document.getElementById(id.current);
1190
- }
1191
- if (!node) return;
1192
- const hasPresentChanged = currPresent !== prevPresent.current;
1193
- if (!hasPresentChanged) return;
1194
- const prevAnimationName = prevAnimationNameState;
1195
- const currAnimationName = getAnimationName(node);
1196
- if (currPresent) {
1197
- dispatch("MOUNT");
1198
- } else if (currAnimationName === "none" || styles.display === "none") {
1199
- dispatch("UNMOUNT");
1200
- } else {
1201
- const isAnimating = prevAnimationName !== currAnimationName;
1202
- if (prevPresent && isAnimating) {
1203
- dispatch("ANIMATION_OUT");
1204
- } else {
1205
- dispatch("UNMOUNT");
1206
- }
1207
- }
1208
- });
1209
- function handleAnimationEnd(event) {
1210
- if (!node) node = document.getElementById(id.current);
1211
- if (!node) return;
1212
- const currAnimationName = getAnimationName(node);
1213
- const isCurrentAnimation = currAnimationName.includes(event.animationName) || currAnimationName === "none";
1214
- if (event.target === node && isCurrentAnimation) {
1215
- dispatch("ANIMATION_END");
1216
- }
1217
- }
1218
- function handleAnimationStart(event) {
1219
- if (!node) node = document.getElementById(id.current);
1220
- if (!node) return;
1221
- if (event.target === node) {
1222
- prevAnimationNameState = getAnimationName(node);
1223
- }
1224
- }
1225
- watch(() => state.current, () => {
1226
- if (!node) node = document.getElementById(id.current);
1227
- if (!node) return;
1228
- const currAnimationName = getAnimationName(node);
1229
- prevAnimationNameState = state.current === "mounted" ? currAnimationName : "none";
1230
- });
1231
- watch(() => node, (node2) => {
1232
- if (!node2) return;
1233
- styles = getComputedStyle(node2);
1234
- return executeCallbacks(on(node2, "animationstart", handleAnimationStart), on(node2, "animationcancel", handleAnimationEnd), on(node2, "animationend", handleAnimationEnd));
1235
- });
1236
- const isPresentDerived = derived(() => ["mounted", "unmountSuspended"].includes(state.current));
1237
- return {
1238
- get current() {
1239
- return isPresentDerived();
1240
- }
1241
- };
1242
- }
1243
- function getAnimationName(node) {
1244
- return node ? getComputedStyle(node).animationName || "none" : "none";
1245
- }
1246
- function Presence_layer($$renderer, $$props) {
1247
- $$renderer.component(($$renderer2) => {
1248
- let { present, forceMount, presence, id } = $$props;
1249
- const isPresent = usePresence(box.with(() => present), box.with(() => id));
1250
- if (forceMount || present || isPresent.current) {
1251
- $$renderer2.push("<!--[0-->");
1252
- presence?.($$renderer2, { present: isPresent });
1253
- $$renderer2.push(`<!---->`);
1254
- } else {
1255
- $$renderer2.push("<!--[-1-->");
1256
- }
1257
- $$renderer2.push(`<!--]-->`);
1258
- });
1259
- }
1260
- function createAttrs(variant) {
1261
- return {
1262
- content: `data-${variant}-content`,
1263
- trigger: `data-${variant}-trigger`,
1264
- overlay: `data-${variant}-overlay`,
1265
- title: `data-${variant}-title`,
1266
- description: `data-${variant}-description`,
1267
- close: `data-${variant}-close`,
1268
- cancel: `data-${variant}-cancel`,
1269
- action: `data-${variant}-action`
1270
- };
1271
- }
1272
- class DialogRootState {
1273
- opts;
1274
- triggerNode = null;
1275
- contentNode = null;
1276
- descriptionNode = null;
1277
- contentId = void 0;
1278
- titleId = void 0;
1279
- triggerId = void 0;
1280
- descriptionId = void 0;
1281
- cancelNode = null;
1282
- #attrs = derived(() => createAttrs(this.opts.variant.current));
1283
- get attrs() {
1284
- return this.#attrs();
1285
- }
1286
- set attrs($$value) {
1287
- return this.#attrs($$value);
1288
- }
1289
- constructor(opts) {
1290
- this.opts = opts;
1291
- this.handleOpen = this.handleOpen.bind(this);
1292
- this.handleClose = this.handleClose.bind(this);
1293
- }
1294
- handleOpen() {
1295
- if (this.opts.open.current) return;
1296
- this.opts.open.current = true;
1297
- }
1298
- handleClose() {
1299
- if (!this.opts.open.current) return;
1300
- this.opts.open.current = false;
1301
- }
1302
- #sharedProps = derived(() => ({ "data-state": getDataOpenClosed(this.opts.open.current) }));
1303
- get sharedProps() {
1304
- return this.#sharedProps();
1305
- }
1306
- set sharedProps($$value) {
1307
- return this.#sharedProps($$value);
1308
- }
1309
- }
1310
- class DialogCloseState {
1311
- opts;
1312
- root;
1313
- #attr = derived(() => this.root.attrs[this.opts.variant.current]);
1314
- constructor(opts, root) {
1315
- this.opts = opts;
1316
- this.root = root;
1317
- this.onclick = this.onclick.bind(this);
1318
- this.onkeydown = this.onkeydown.bind(this);
1319
- useRefById({ ...opts, deps: () => this.root.opts.open.current });
1320
- }
1321
- onclick(e) {
1322
- if (this.opts.disabled.current) return;
1323
- if (e.button > 0) return;
1324
- this.root.handleClose();
1325
- }
1326
- onkeydown(e) {
1327
- if (this.opts.disabled.current) return;
1328
- if (e.key === SPACE || e.key === ENTER) {
1329
- e.preventDefault();
1330
- this.root.handleClose();
1331
- }
1332
- }
1333
- #props = derived(() => ({
1334
- id: this.opts.id.current,
1335
- [this.#attr()]: "",
1336
- onclick: this.onclick,
1337
- onkeydown: this.onkeydown,
1338
- disabled: this.opts.disabled.current ? true : void 0,
1339
- tabindex: 0,
1340
- ...this.root.sharedProps
1341
- }));
1342
- get props() {
1343
- return this.#props();
1344
- }
1345
- set props($$value) {
1346
- return this.#props($$value);
1347
- }
1348
- }
1349
- class DialogTitleState {
1350
- opts;
1351
- root;
1352
- constructor(opts, root) {
1353
- this.opts = opts;
1354
- this.root = root;
1355
- useRefById({
1356
- ...opts,
1357
- onRefChange: (node) => {
1358
- this.root.titleId = node?.id;
1359
- },
1360
- deps: () => this.root.opts.open.current
1361
- });
1362
- }
1363
- #props = derived(() => ({
1364
- id: this.opts.id.current,
1365
- role: "heading",
1366
- "aria-level": this.opts.level.current,
1367
- [this.root.attrs.title]: "",
1368
- ...this.root.sharedProps
1369
- }));
1370
- get props() {
1371
- return this.#props();
1372
- }
1373
- set props($$value) {
1374
- return this.#props($$value);
1375
- }
1376
- }
1377
- class DialogContentState {
1378
- opts;
1379
- root;
1380
- constructor(opts, root) {
1381
- this.opts = opts;
1382
- this.root = root;
1383
- useRefById({
1384
- ...opts,
1385
- deps: () => this.root.opts.open.current,
1386
- onRefChange: (node) => {
1387
- this.root.contentNode = node;
1388
- this.root.contentId = node?.id;
1389
- }
1390
- });
1391
- }
1392
- #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
1393
- get snippetProps() {
1394
- return this.#snippetProps();
1395
- }
1396
- set snippetProps($$value) {
1397
- return this.#snippetProps($$value);
1398
- }
1399
- #props = derived(() => ({
1400
- id: this.opts.id.current,
1401
- role: this.root.opts.variant.current === "alert-dialog" ? "alertdialog" : "dialog",
1402
- "aria-modal": "true",
1403
- "aria-describedby": this.root.descriptionId,
1404
- "aria-labelledby": this.root.titleId,
1405
- [this.root.attrs.content]: "",
1406
- style: {
1407
- pointerEvents: "auto",
1408
- outline: this.root.opts.variant.current === "alert-dialog" ? "none" : void 0
1409
- },
1410
- tabindex: this.root.opts.variant.current === "alert-dialog" ? -1 : void 0,
1411
- ...this.root.sharedProps
1412
- }));
1413
- get props() {
1414
- return this.#props();
1415
- }
1416
- set props($$value) {
1417
- return this.#props($$value);
1418
- }
1419
- }
1420
- class DialogOverlayState {
1421
- opts;
1422
- root;
1423
- constructor(opts, root) {
1424
- this.opts = opts;
1425
- this.root = root;
1426
- useRefById({ ...opts, deps: () => this.root.opts.open.current });
1427
- }
1428
- #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
1429
- get snippetProps() {
1430
- return this.#snippetProps();
1431
- }
1432
- set snippetProps($$value) {
1433
- return this.#snippetProps($$value);
1434
- }
1435
- #props = derived(() => ({
1436
- id: this.opts.id.current,
1437
- [this.root.attrs.overlay]: "",
1438
- style: { pointerEvents: "auto" },
1439
- ...this.root.sharedProps
1440
- }));
1441
- get props() {
1442
- return this.#props();
1443
- }
1444
- set props($$value) {
1445
- return this.#props($$value);
1446
- }
1447
- }
1448
- const DialogRootContext = new Context("Dialog.Root");
1449
- function useDialogRoot(props) {
1450
- return DialogRootContext.set(new DialogRootState(props));
1451
- }
1452
- function useDialogTitle(props) {
1453
- return new DialogTitleState(props, DialogRootContext.get());
1454
- }
1455
- function useDialogContent(props) {
1456
- return new DialogContentState(props, DialogRootContext.get());
1457
- }
1458
- function useDialogOverlay(props) {
1459
- return new DialogOverlayState(props, DialogRootContext.get());
1460
- }
1461
- function useDialogClose(props) {
1462
- return new DialogCloseState(props, DialogRootContext.get());
1463
- }
1464
- function Dialog_title($$renderer, $$props) {
1465
- $$renderer.component(($$renderer2) => {
1466
- let {
1467
- id = useId(),
1468
- ref = null,
1469
- child,
1470
- children,
1471
- level = 2,
1472
- $$slots,
1473
- $$events,
1474
- ...restProps
1475
- } = $$props;
1476
- const titleState = useDialogTitle({
1477
- id: box.with(() => id),
1478
- level: box.with(() => level),
1479
- ref: box.with(() => ref, (v) => ref = v)
1480
- });
1481
- const mergedProps = derived(() => mergeProps(restProps, titleState.props));
1482
- if (child) {
1483
- $$renderer2.push("<!--[0-->");
1484
- child($$renderer2, { props: mergedProps() });
1485
- $$renderer2.push(`<!---->`);
1486
- } else {
1487
- $$renderer2.push("<!--[-1-->");
1488
- $$renderer2.push(`<div${attributes({ ...mergedProps() })}>`);
1489
- children?.($$renderer2);
1490
- $$renderer2.push(`<!----></div>`);
1491
- }
1492
- $$renderer2.push(`<!--]-->`);
1493
- bind_props($$props, { ref });
1494
- });
1495
- }
1496
- function Portal($$renderer, $$props) {
1497
- $$renderer.component(($$renderer2) => {
1498
- let { to = "body", children, disabled } = $$props;
1499
- getAllContexts();
1500
- let target = derived(getTarget);
1501
- function getTarget() {
1502
- if (!isBrowser || disabled) return null;
1503
- let localTarget = null;
1504
- if (typeof to === "string") {
1505
- localTarget = document.querySelector(to);
1506
- } else if (to instanceof HTMLElement || to instanceof DocumentFragment) {
1507
- localTarget = to;
1508
- } else ;
1509
- return localTarget;
1510
- }
1511
- let instance;
1512
- function unmountInstance() {
1513
- if (instance) {
1514
- unmount();
1515
- instance = null;
1516
- }
1517
- }
1518
- watch([() => target(), () => disabled], ([target2, disabled2]) => {
1519
- if (!target2 || disabled2) {
1520
- unmountInstance();
1521
- return;
1522
- }
1523
- instance = mount();
1524
- return () => {
1525
- unmountInstance();
1526
- };
1527
- });
1528
- if (disabled) {
1529
- $$renderer2.push("<!--[0-->");
1530
- children?.($$renderer2);
1531
- $$renderer2.push(`<!---->`);
1532
- } else {
1533
- $$renderer2.push("<!--[-1-->");
1534
- }
1535
- $$renderer2.push(`<!--]-->`);
1536
- });
1537
- }
1538
- function addEventListener(target, event, handler, options) {
1539
- const events = Array.isArray(event) ? event : [event];
1540
- events.forEach((_event) => target.addEventListener(_event, handler, options));
1541
- return () => {
1542
- events.forEach((_event) => target.removeEventListener(_event, handler, options));
1543
- };
1544
- }
1545
- class CustomEventDispatcher {
1546
- eventName;
1547
- options;
1548
- constructor(eventName, options = { bubbles: true, cancelable: true }) {
1549
- this.eventName = eventName;
1550
- this.options = options;
1551
- }
1552
- createEvent(detail) {
1553
- return new CustomEvent(this.eventName, {
1554
- ...this.options,
1555
- detail
1556
- });
1557
- }
1558
- dispatch(element, detail) {
1559
- const event = this.createEvent(detail);
1560
- element.dispatchEvent(event);
1561
- return event;
1562
- }
1563
- listen(element, callback, options) {
1564
- const handler = (event) => {
1565
- callback(event);
1566
- };
1567
- return on(element, this.eventName, handler, options);
1568
- }
1569
- }
1570
- function debounce(fn, wait = 500) {
1571
- let timeout = null;
1572
- const debounced = (...args) => {
1573
- if (timeout !== null) {
1574
- clearTimeout(timeout);
1575
- }
1576
- timeout = setTimeout(() => {
1577
- fn(...args);
1578
- }, wait);
1579
- };
1580
- debounced.destroy = () => {
1581
- if (timeout !== null) {
1582
- clearTimeout(timeout);
1583
- timeout = null;
1584
- }
1585
- };
1586
- return debounced;
1587
- }
1588
- function isOrContainsTarget(node, target) {
1589
- return node === target || node.contains(target);
1590
- }
1591
- function getOwnerDocument(el) {
1592
- return el?.ownerDocument ?? document;
1593
- }
1594
- function isClickTrulyOutside(event, contentNode) {
1595
- const { clientX, clientY } = event;
1596
- const rect = contentNode.getBoundingClientRect();
1597
- return clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom;
1598
- }
1599
- globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
1600
- class DismissibleLayerState {
1601
- opts;
1602
- #interactOutsideProp;
1603
- #behaviorType;
1604
- #interceptedEvents = { pointerdown: false };
1605
- #isResponsibleLayer = false;
1606
- #isFocusInsideDOMTree = false;
1607
- node = box(null);
1608
- #documentObj = void 0;
1609
- #onFocusOutside;
1610
- currNode = null;
1611
- #unsubClickListener = noop;
1612
- constructor(opts) {
1613
- this.opts = opts;
1614
- useRefById({
1615
- id: opts.id,
1616
- ref: this.node,
1617
- deps: () => opts.enabled.current,
1618
- onRefChange: (node) => {
1619
- this.currNode = node;
1620
- }
1621
- });
1622
- this.#behaviorType = opts.interactOutsideBehavior;
1623
- this.#interactOutsideProp = opts.onInteractOutside;
1624
- this.#onFocusOutside = opts.onFocusOutside;
1625
- let unsubEvents = noop;
1626
- const cleanup = () => {
1627
- this.#resetState();
1628
- globalThis.bitsDismissableLayers.delete(this);
1629
- this.#handleInteractOutside.destroy();
1630
- unsubEvents();
1631
- };
1632
- watch([() => this.opts.enabled.current, () => this.currNode], ([enabled, currNode]) => {
1633
- if (!enabled || !currNode) return;
1634
- afterSleep(1, () => {
1635
- if (!this.currNode) return;
1636
- globalThis.bitsDismissableLayers.set(this, this.#behaviorType);
1637
- unsubEvents();
1638
- unsubEvents = this.#addEventListeners();
1639
- });
1640
- return cleanup;
1641
- });
1642
- }
1643
- #handleFocus = (event) => {
1644
- if (event.defaultPrevented) return;
1645
- if (!this.currNode) return;
1646
- afterTick(() => {
1647
- if (!this.currNode || this.#isTargetWithinLayer(event.target)) return;
1648
- if (event.target && !this.#isFocusInsideDOMTree) {
1649
- this.#onFocusOutside.current?.(event);
1650
- }
1651
- });
1652
- };
1653
- #addEventListeners() {
1654
- return executeCallbacks(
1655
- /**
1656
- * CAPTURE INTERACTION START
1657
- * mark interaction-start event as intercepted.
1658
- * mark responsible layer during interaction start
1659
- * to avoid checking if is responsible layer during interaction end
1660
- * when a new floating element may have been opened.
1661
- */
1662
- on(this.#documentObj, "pointerdown", executeCallbacks(this.#markInterceptedEvent, this.#markResponsibleLayer), { capture: true }),
1663
- /**
1664
- * BUBBLE INTERACTION START
1665
- * Mark interaction-start event as non-intercepted. Debounce `onInteractOutsideStart`
1666
- * to avoid prematurely checking if other events were intercepted.
1667
- */
1668
- on(this.#documentObj, "pointerdown", executeCallbacks(this.#markNonInterceptedEvent, this.#handleInteractOutside)),
1669
- /**
1670
- * HANDLE FOCUS OUTSIDE
1671
- */
1672
- on(this.#documentObj, "focusin", this.#handleFocus)
1673
- );
1674
- }
1675
- #handleDismiss = (e) => {
1676
- let event = e;
1677
- if (event.defaultPrevented) {
1678
- event = createWrappedEvent(e);
1679
- }
1680
- this.#interactOutsideProp.current(e);
1681
- };
1682
- #handleInteractOutside = debounce(
1683
- (e) => {
1684
- if (!this.currNode) {
1685
- this.#unsubClickListener();
1686
- return;
1687
- }
1688
- const isEventValid = this.opts.isValidEvent.current(e, this.currNode) || isValidEvent(e, this.currNode);
1689
- if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {
1690
- this.#unsubClickListener();
1691
- return;
1692
- }
1693
- let event = e;
1694
- if (event.defaultPrevented) {
1695
- event = createWrappedEvent(event);
1696
- }
1697
- if (this.#behaviorType.current !== "close" && this.#behaviorType.current !== "defer-otherwise-close") {
1698
- this.#unsubClickListener();
1699
- return;
1700
- }
1701
- if (e.pointerType === "touch") {
1702
- this.#unsubClickListener();
1703
- this.#unsubClickListener = addEventListener(this.#documentObj, "click", this.#handleDismiss, { once: true });
1704
- } else {
1705
- this.#interactOutsideProp.current(event);
1706
- }
1707
- },
1708
- 10
1709
- );
1710
- #markInterceptedEvent = (e) => {
1711
- this.#interceptedEvents[e.type] = true;
1712
- };
1713
- #markNonInterceptedEvent = (e) => {
1714
- this.#interceptedEvents[e.type] = false;
1715
- };
1716
- #markResponsibleLayer = () => {
1717
- if (!this.node.current) return;
1718
- this.#isResponsibleLayer = isResponsibleLayer(this.node.current);
1719
- };
1720
- #isTargetWithinLayer = (target) => {
1721
- if (!this.node.current) return false;
1722
- return isOrContainsTarget(this.node.current, target);
1723
- };
1724
- #resetState = debounce(
1725
- () => {
1726
- for (const eventType in this.#interceptedEvents) {
1727
- this.#interceptedEvents[eventType] = false;
1728
- }
1729
- this.#isResponsibleLayer = false;
1730
- },
1731
- 20
1732
- );
1733
- #isAnyEventIntercepted() {
1734
- const i = Object.values(this.#interceptedEvents).some(Boolean);
1735
- return i;
1736
- }
1737
- #onfocuscapture = () => {
1738
- this.#isFocusInsideDOMTree = true;
1739
- };
1740
- #onblurcapture = () => {
1741
- this.#isFocusInsideDOMTree = false;
1742
- };
1743
- props = {
1744
- onfocuscapture: this.#onfocuscapture,
1745
- onblurcapture: this.#onblurcapture
1746
- };
1747
- }
1748
- function useDismissibleLayer(props) {
1749
- return new DismissibleLayerState(props);
1750
- }
1751
- function getTopMostLayer(layersArr) {
1752
- return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
1753
- }
1754
- function isResponsibleLayer(node) {
1755
- const layersArr = [...globalThis.bitsDismissableLayers];
1756
- const topMostLayer = getTopMostLayer(layersArr);
1757
- if (topMostLayer) return topMostLayer[0].node.current === node;
1758
- const [firstLayerNode] = layersArr[0];
1759
- return firstLayerNode.node.current === node;
1760
- }
1761
- function isValidEvent(e, node) {
1762
- if ("button" in e && e.button > 0) return false;
1763
- const target = e.target;
1764
- if (!isElement(target)) return false;
1765
- const ownerDocument = getOwnerDocument(target);
1766
- const isValid = ownerDocument.documentElement.contains(target) && !isOrContainsTarget(node, target) && isClickTrulyOutside(e, node);
1767
- return isValid;
1768
- }
1769
- function createWrappedEvent(e) {
1770
- const capturedCurrentTarget = e.currentTarget;
1771
- const capturedTarget = e.target;
1772
- let newEvent;
1773
- if (e instanceof PointerEvent) {
1774
- newEvent = new PointerEvent(e.type, e);
1775
- } else {
1776
- newEvent = new PointerEvent("pointerdown", e);
1777
- }
1778
- let isPrevented = false;
1779
- const wrappedEvent = new Proxy(newEvent, {
1780
- get: (target, prop) => {
1781
- if (prop === "currentTarget") {
1782
- return capturedCurrentTarget;
1783
- }
1784
- if (prop === "target") {
1785
- return capturedTarget;
1786
- }
1787
- if (prop === "preventDefault") {
1788
- return () => {
1789
- isPrevented = true;
1790
- if (typeof target.preventDefault === "function") {
1791
- target.preventDefault();
1792
- }
1793
- };
1794
- }
1795
- if (prop === "defaultPrevented") {
1796
- return isPrevented;
1797
- }
1798
- if (prop in target) {
1799
- return target[prop];
1800
- }
1801
- return e[prop];
1802
- }
1803
- });
1804
- return wrappedEvent;
1805
- }
1806
- function Dismissible_layer($$renderer, $$props) {
1807
- $$renderer.component(($$renderer2) => {
1808
- let {
1809
- interactOutsideBehavior = "close",
1810
- onInteractOutside = noop,
1811
- onFocusOutside = noop,
1812
- id,
1813
- children,
1814
- enabled,
1815
- isValidEvent: isValidEvent2 = () => false
1816
- } = $$props;
1817
- const dismissibleLayerState = useDismissibleLayer({
1818
- id: box.with(() => id),
1819
- interactOutsideBehavior: box.with(() => interactOutsideBehavior),
1820
- onInteractOutside: box.with(() => onInteractOutside),
1821
- enabled: box.with(() => enabled),
1822
- onFocusOutside: box.with(() => onFocusOutside),
1823
- isValidEvent: box.with(() => isValidEvent2)
1824
- });
1825
- children?.($$renderer2, { props: dismissibleLayerState.props });
1826
- $$renderer2.push(`<!---->`);
1827
- });
1828
- }
1829
- globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
1830
- class EscapeLayerState {
1831
- opts;
1832
- constructor(opts) {
1833
- this.opts = opts;
1834
- let unsubEvents = noop;
1835
- watch(() => opts.enabled.current, (enabled) => {
1836
- if (enabled) {
1837
- globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);
1838
- unsubEvents = this.#addEventListener();
1839
- }
1840
- return () => {
1841
- unsubEvents();
1842
- globalThis.bitsEscapeLayers.delete(this);
1843
- };
1844
- });
1845
- }
1846
- #addEventListener = () => {
1847
- return on(document, "keydown", this.#onkeydown, { passive: false });
1848
- };
1849
- #onkeydown = (e) => {
1850
- if (e.key !== ESCAPE || !isResponsibleEscapeLayer(this)) return;
1851
- const clonedEvent = new KeyboardEvent(e.type, e);
1852
- e.preventDefault();
1853
- const behaviorType = this.opts.escapeKeydownBehavior.current;
1854
- if (behaviorType !== "close" && behaviorType !== "defer-otherwise-close") return;
1855
- this.opts.onEscapeKeydown.current(clonedEvent);
1856
- };
1857
- }
1858
- function useEscapeLayer(props) {
1859
- return new EscapeLayerState(props);
1860
- }
1861
- function isResponsibleEscapeLayer(instance) {
1862
- const layersArr = [...globalThis.bitsEscapeLayers];
1863
- const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
1864
- if (topMostLayer) return topMostLayer[0] === instance;
1865
- const [firstLayerNode] = layersArr[0];
1866
- return firstLayerNode === instance;
1867
- }
1868
- function Escape_layer($$renderer, $$props) {
1869
- $$renderer.component(($$renderer2) => {
1870
- let {
1871
- escapeKeydownBehavior = "close",
1872
- onEscapeKeydown = noop,
1873
- children,
1874
- enabled
1875
- } = $$props;
1876
- useEscapeLayer({
1877
- escapeKeydownBehavior: box.with(() => escapeKeydownBehavior),
1878
- onEscapeKeydown: box.with(() => onEscapeKeydown),
1879
- enabled: box.with(() => enabled)
1880
- });
1881
- children?.($$renderer2);
1882
- $$renderer2.push(`<!---->`);
1883
- });
1884
- }
1885
- const focusStack = box([]);
1886
- function createFocusScopeStack() {
1887
- return {
1888
- add(focusScope) {
1889
- const activeFocusScope = focusStack.current[0];
1890
- if (activeFocusScope && focusScope.id !== activeFocusScope.id) {
1891
- activeFocusScope.pause();
1892
- }
1893
- focusStack.current = removeFromFocusScopeArray(focusStack.current, focusScope);
1894
- focusStack.current.unshift(focusScope);
1895
- },
1896
- remove(focusScope) {
1897
- focusStack.current = removeFromFocusScopeArray(focusStack.current, focusScope);
1898
- focusStack.current[0]?.resume();
1899
- },
1900
- get current() {
1901
- return focusStack.current;
1902
- }
1903
- };
1904
- }
1905
- function createFocusScopeAPI() {
1906
- let paused = false;
1907
- let isHandlingFocus = false;
1908
- return {
1909
- id: useId(),
1910
- get paused() {
1911
- return paused;
1912
- },
1913
- get isHandlingFocus() {
1914
- return isHandlingFocus;
1915
- },
1916
- set isHandlingFocus(value) {
1917
- isHandlingFocus = value;
1918
- },
1919
- pause() {
1920
- paused = true;
1921
- },
1922
- resume() {
1923
- paused = false;
1924
- }
1925
- };
1926
- }
1927
- function removeFromFocusScopeArray(arr, item) {
1928
- return [...arr].filter((i) => i.id !== item.id);
1929
- }
1930
- function removeLinks(items) {
1931
- return items.filter((item) => item.tagName !== "A");
1932
- }
1933
- function focus(element, { select = false } = {}) {
1934
- if (!(element && element.focus))
1935
- return;
1936
- if (document.activeElement === element)
1937
- return;
1938
- const previouslyFocusedElement = document.activeElement;
1939
- element.focus({ preventScroll: true });
1940
- if (element !== previouslyFocusedElement && isSelectableInput(element) && select) {
1941
- element.select();
1942
- }
1943
- }
1944
- function focusFirst(candidates, { select = false } = {}) {
1945
- const previouslyFocusedElement = document.activeElement;
1946
- for (const candidate of candidates) {
1947
- focus(candidate, { select });
1948
- if (document.activeElement !== previouslyFocusedElement)
1949
- return true;
1950
- }
1951
- }
1952
- function findVisible(elements, container) {
1953
- for (const element of elements) {
1954
- if (!isElementHidden(element, container))
1955
- return element;
1956
- }
1957
- }
1958
- function getTabbableCandidates(container) {
1959
- const nodes = [];
1960
- const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
1961
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1962
- acceptNode: (node) => {
1963
- const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
1964
- if (node.disabled || node.hidden || isHiddenInput)
1965
- return NodeFilter.FILTER_SKIP;
1966
- return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1967
- }
1968
- });
1969
- while (walker.nextNode())
1970
- nodes.push(walker.currentNode);
1971
- return nodes;
1972
- }
1973
- function getTabbableEdges(container) {
1974
- const candidates = getTabbableCandidates(container);
1975
- const first = findVisible(candidates, container);
1976
- const last = findVisible(candidates.reverse(), container);
1977
- return [first, last];
1978
- }
1979
- const AutoFocusOnMountEvent = new CustomEventDispatcher("focusScope.autoFocusOnMount", { bubbles: false, cancelable: true });
1980
- const AutoFocusOnDestroyEvent = new CustomEventDispatcher("focusScope.autoFocusOnDestroy", { bubbles: false, cancelable: true });
1981
- const FocusScopeContext = new Context("FocusScope");
1982
- function useFocusScope({
1983
- id,
1984
- loop,
1985
- enabled,
1986
- onOpenAutoFocus,
1987
- onCloseAutoFocus,
1988
- forceMount
1989
- }) {
1990
- const focusScopeStack = createFocusScopeStack();
1991
- const focusScope = createFocusScopeAPI();
1992
- const ref = box(null);
1993
- const ctx = FocusScopeContext.getOr({ ignoreCloseAutoFocus: false });
1994
- let lastFocusedElement = null;
1995
- useRefById({ id, ref, deps: () => enabled.current });
1996
- function manageFocus(event) {
1997
- if (focusScope.paused || !ref.current || focusScope.isHandlingFocus) return;
1998
- focusScope.isHandlingFocus = true;
1999
- try {
2000
- const target = event.target;
2001
- if (!isHTMLElement(target)) return;
2002
- const isWithinActiveScope = ref.current.contains(target);
2003
- if (event.type === "focusin") {
2004
- if (isWithinActiveScope) {
2005
- lastFocusedElement = target;
2006
- } else {
2007
- if (ctx.ignoreCloseAutoFocus) return;
2008
- focus(lastFocusedElement, { select: true });
2009
- }
2010
- } else if (event.type === "focusout") {
2011
- if (!isWithinActiveScope && !ctx.ignoreCloseAutoFocus) {
2012
- focus(lastFocusedElement, { select: true });
2013
- }
2014
- }
2015
- } finally {
2016
- focusScope.isHandlingFocus = false;
2017
- }
2018
- }
2019
- function handleMutations(mutations) {
2020
- if (!lastFocusedElement || !ref.current) return;
2021
- let elementWasRemoved = false;
2022
- for (const mutation of mutations) {
2023
- if (mutation.type === "childList" && mutation.removedNodes.length > 0) {
2024
- for (const removedNode of mutation.removedNodes) {
2025
- if (removedNode === lastFocusedElement) {
2026
- elementWasRemoved = true;
2027
- break;
2028
- }
2029
- if (removedNode.nodeType === Node.ELEMENT_NODE && removedNode.contains(lastFocusedElement)) {
2030
- elementWasRemoved = true;
2031
- break;
2032
- }
2033
- }
2034
- }
2035
- if (elementWasRemoved) break;
2036
- }
2037
- if (elementWasRemoved && ref.current && !ref.current.contains(document.activeElement)) {
2038
- focus(ref.current);
2039
- }
2040
- }
2041
- watch([() => ref.current, () => enabled.current], ([container, enabled2]) => {
2042
- if (!container || !enabled2) return;
2043
- const removeEvents = executeCallbacks(on(document, "focusin", manageFocus), on(document, "focusout", manageFocus));
2044
- const mutationObserver = new MutationObserver(handleMutations);
2045
- mutationObserver.observe(container, { childList: true, subtree: true, attributes: false });
2046
- return () => {
2047
- removeEvents();
2048
- mutationObserver.disconnect();
2049
- };
2050
- });
2051
- watch([() => forceMount.current, () => ref.current], ([forceMount2, container]) => {
2052
- if (forceMount2) return;
2053
- const prevFocusedElement = document.activeElement;
2054
- handleOpen(container, prevFocusedElement);
2055
- return () => {
2056
- if (!container) return;
2057
- handleClose(prevFocusedElement);
2058
- };
2059
- });
2060
- watch(
2061
- [
2062
- () => forceMount.current,
2063
- () => ref.current,
2064
- () => enabled.current
2065
- ],
2066
- ([forceMount2, container]) => {
2067
- if (!forceMount2) return;
2068
- const prevFocusedElement = document.activeElement;
2069
- handleOpen(container, prevFocusedElement);
2070
- return () => {
2071
- if (!container) return;
2072
- handleClose(prevFocusedElement);
2073
- };
2074
- }
2075
- );
2076
- function handleOpen(container, prevFocusedElement) {
2077
- if (!container) container = document.getElementById(id.current);
2078
- if (!container || !enabled.current) return;
2079
- focusScopeStack.add(focusScope);
2080
- const hasFocusedCandidate = container.contains(prevFocusedElement);
2081
- if (!hasFocusedCandidate) {
2082
- const mountEvent = AutoFocusOnMountEvent.createEvent();
2083
- onOpenAutoFocus.current(mountEvent);
2084
- if (!mountEvent.defaultPrevented) {
2085
- afterTick(() => {
2086
- if (!container) return;
2087
- const result = focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
2088
- if (!result) focus(container);
2089
- });
2090
- }
2091
- }
2092
- }
2093
- function handleClose(prevFocusedElement) {
2094
- const destroyEvent = AutoFocusOnDestroyEvent.createEvent();
2095
- onCloseAutoFocus.current?.(destroyEvent);
2096
- const shouldIgnore = ctx.ignoreCloseAutoFocus;
2097
- afterSleep(0, () => {
2098
- if (!destroyEvent.defaultPrevented && prevFocusedElement && !shouldIgnore) {
2099
- focus(isTabbable(prevFocusedElement) ? prevFocusedElement : document.body, { select: true });
2100
- }
2101
- focusScopeStack.remove(focusScope);
2102
- });
2103
- }
2104
- function handleKeydown(e) {
2105
- if (!enabled.current) return;
2106
- if (!loop.current && !enabled.current) return;
2107
- if (focusScope.paused) return;
2108
- const isTabKey = e.key === TAB && !e.ctrlKey && !e.altKey && !e.metaKey;
2109
- const focusedElement = document.activeElement;
2110
- if (!(isTabKey && focusedElement)) return;
2111
- const container = ref.current;
2112
- if (!container) return;
2113
- const [first, last] = getTabbableEdges(container);
2114
- const hasTabbableElementsInside = first && last;
2115
- if (!hasTabbableElementsInside) {
2116
- if (focusedElement === container) {
2117
- e.preventDefault();
2118
- }
2119
- } else {
2120
- if (!e.shiftKey && focusedElement === last) {
2121
- e.preventDefault();
2122
- if (loop.current) focus(first, { select: true });
2123
- } else if (e.shiftKey && focusedElement === first) {
2124
- e.preventDefault();
2125
- if (loop.current) focus(last, { select: true });
2126
- }
2127
- }
2128
- }
2129
- const props = derived(() => ({ id: id.current, tabindex: -1, onkeydown: handleKeydown }));
2130
- return {
2131
- get props() {
2132
- return props();
2133
- }
2134
- };
2135
- }
2136
- function Focus_scope($$renderer, $$props) {
2137
- $$renderer.component(($$renderer2) => {
2138
- let {
2139
- id,
2140
- trapFocus = false,
2141
- loop = false,
2142
- onCloseAutoFocus = noop,
2143
- onOpenAutoFocus = noop,
2144
- focusScope,
2145
- forceMount = false
2146
- } = $$props;
2147
- const focusScopeState = useFocusScope({
2148
- enabled: box.with(() => trapFocus),
2149
- loop: box.with(() => loop),
2150
- onCloseAutoFocus: box.with(() => onCloseAutoFocus),
2151
- onOpenAutoFocus: box.with(() => onOpenAutoFocus),
2152
- id: box.with(() => id),
2153
- forceMount: box.with(() => forceMount)
2154
- });
2155
- focusScope?.($$renderer2, { props: focusScopeState.props });
2156
- $$renderer2.push(`<!---->`);
2157
- });
2158
- }
2159
- globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
2160
- class TextSelectionLayerState {
2161
- opts;
2162
- #unsubSelectionLock = noop;
2163
- #ref = box(null);
2164
- constructor(opts) {
2165
- this.opts = opts;
2166
- useRefById({
2167
- id: opts.id,
2168
- ref: this.#ref,
2169
- deps: () => this.opts.enabled.current
2170
- });
2171
- let unsubEvents = noop;
2172
- watch(() => this.opts.enabled.current, (isEnabled) => {
2173
- if (isEnabled) {
2174
- globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);
2175
- unsubEvents();
2176
- unsubEvents = this.#addEventListeners();
2177
- }
2178
- return () => {
2179
- unsubEvents();
2180
- this.#resetSelectionLock();
2181
- globalThis.bitsTextSelectionLayers.delete(this);
2182
- };
2183
- });
2184
- }
2185
- #addEventListeners() {
2186
- return executeCallbacks(on(document, "pointerdown", this.#pointerdown), on(document, "pointerup", composeHandlers(this.#resetSelectionLock, this.opts.onPointerUp.current)));
2187
- }
2188
- #pointerdown = (e) => {
2189
- const node = this.#ref.current;
2190
- const target = e.target;
2191
- if (!isHTMLElement(node) || !isHTMLElement(target) || !this.opts.enabled.current) return;
2192
- if (!isHighestLayer(this) || !isOrContainsTarget(node, target)) return;
2193
- this.opts.onPointerDown.current(e);
2194
- if (e.defaultPrevented) return;
2195
- this.#unsubSelectionLock = preventTextSelectionOverflow(node);
2196
- };
2197
- #resetSelectionLock = () => {
2198
- this.#unsubSelectionLock();
2199
- this.#unsubSelectionLock = noop;
2200
- };
2201
- }
2202
- function useTextSelectionLayer(props) {
2203
- return new TextSelectionLayerState(props);
2204
- }
2205
- const getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;
2206
- function preventTextSelectionOverflow(node) {
2207
- const body = document.body;
2208
- const originalBodyUserSelect = getUserSelect(body);
2209
- const originalNodeUserSelect = getUserSelect(node);
2210
- setUserSelect(body, "none");
2211
- setUserSelect(node, "text");
2212
- return () => {
2213
- setUserSelect(body, originalBodyUserSelect);
2214
- setUserSelect(node, originalNodeUserSelect);
2215
- };
2216
- }
2217
- function setUserSelect(node, value) {
2218
- node.style.userSelect = value;
2219
- node.style.webkitUserSelect = value;
2220
- }
2221
- function isHighestLayer(instance) {
2222
- const layersArr = [...globalThis.bitsTextSelectionLayers];
2223
- if (!layersArr.length) return false;
2224
- const highestLayer = layersArr.at(-1);
2225
- if (!highestLayer) return false;
2226
- return highestLayer[0] === instance;
2227
- }
2228
- function Text_selection_layer($$renderer, $$props) {
2229
- $$renderer.component(($$renderer2) => {
2230
- let {
2231
- preventOverflowTextSelection = true,
2232
- onPointerDown = noop,
2233
- onPointerUp = noop,
2234
- id,
2235
- children,
2236
- enabled
2237
- } = $$props;
2238
- useTextSelectionLayer({
2239
- id: box.with(() => id),
2240
- onPointerDown: box.with(() => onPointerDown),
2241
- onPointerUp: box.with(() => onPointerUp),
2242
- enabled: box.with(() => enabled && preventOverflowTextSelection)
2243
- });
2244
- children?.($$renderer2);
2245
- $$renderer2.push(`<!---->`);
2246
- });
2247
- }
2248
- function createSharedHook(factory) {
2249
- let state = void 0;
2250
- return (...args) => {
2251
- return state;
2252
- };
2253
- }
2254
- const useBodyLockStackCount = createSharedHook();
2255
- function useBodyScrollLock(initialState, restoreScrollDelay = () => null) {
2256
- useId();
2257
- useBodyLockStackCount();
2258
- return;
2259
- }
2260
- function Scroll_lock($$renderer, $$props) {
2261
- $$renderer.component(($$renderer2) => {
2262
- let { preventScroll = true, restoreScrollDelay = null } = $$props;
2263
- useBodyScrollLock(preventScroll, () => restoreScrollDelay);
2264
- });
2265
- }
2266
- function shouldTrapFocus({ forceMount, present, trapFocus, open }) {
2267
- if (forceMount) {
2268
- return open && trapFocus;
2269
- }
2270
- return present && trapFocus && open;
2271
- }
2272
- function Dialog_overlay($$renderer, $$props) {
2273
- $$renderer.component(($$renderer2) => {
2274
- let {
2275
- id = useId(),
2276
- forceMount = false,
2277
- child,
2278
- children,
2279
- ref = null,
2280
- $$slots,
2281
- $$events,
2282
- ...restProps
2283
- } = $$props;
2284
- const overlayState = useDialogOverlay({
2285
- id: box.with(() => id),
2286
- ref: box.with(() => ref, (v) => ref = v)
2287
- });
2288
- const mergedProps = derived(() => mergeProps(restProps, overlayState.props));
2289
- {
2290
- let presence = function($$renderer3) {
2291
- if (child) {
2292
- $$renderer3.push("<!--[0-->");
2293
- child($$renderer3, {
2294
- props: mergeProps(mergedProps()),
2295
- ...overlayState.snippetProps
2296
- });
2297
- $$renderer3.push(`<!---->`);
2298
- } else {
2299
- $$renderer3.push("<!--[-1-->");
2300
- $$renderer3.push(`<div${attributes({ ...mergeProps(mergedProps()) })}>`);
2301
- children?.($$renderer3, overlayState.snippetProps);
2302
- $$renderer3.push(`<!----></div>`);
2303
- }
2304
- $$renderer3.push(`<!--]-->`);
2305
- };
2306
- Presence_layer($$renderer2, {
2307
- id,
2308
- present: overlayState.root.opts.open.current || forceMount,
2309
- presence
2310
- });
2311
- }
2312
- bind_props($$props, { ref });
2313
- });
2314
- }
2315
- function Dialog($$renderer, $$props) {
2316
- $$renderer.component(($$renderer2) => {
2317
- let { open = false, onOpenChange = noop, children } = $$props;
2318
- useDialogRoot({
2319
- variant: box.with(() => "dialog"),
2320
- open: box.with(() => open, (v) => {
2321
- open = v;
2322
- onOpenChange(v);
2323
- })
2324
- });
2325
- children?.($$renderer2);
2326
- $$renderer2.push(`<!---->`);
2327
- bind_props($$props, { open });
2328
- });
2329
- }
2330
- function Dialog_close($$renderer, $$props) {
2331
- $$renderer.component(($$renderer2) => {
2332
- let {
2333
- children,
2334
- child,
2335
- id = useId(),
2336
- ref = null,
2337
- disabled = false,
2338
- $$slots,
2339
- $$events,
2340
- ...restProps
2341
- } = $$props;
2342
- const closeState = useDialogClose({
2343
- variant: box.with(() => "close"),
2344
- id: box.with(() => id),
2345
- ref: box.with(() => ref, (v) => ref = v),
2346
- disabled: box.with(() => Boolean(disabled))
2347
- });
2348
- const mergedProps = derived(() => mergeProps(restProps, closeState.props));
2349
- if (child) {
2350
- $$renderer2.push("<!--[0-->");
2351
- child($$renderer2, { props: mergedProps() });
2352
- $$renderer2.push(`<!---->`);
2353
- } else {
2354
- $$renderer2.push("<!--[-1-->");
2355
- $$renderer2.push(`<button${attributes({ ...mergedProps() })}>`);
2356
- children?.($$renderer2);
2357
- $$renderer2.push(`<!----></button>`);
2358
- }
2359
- $$renderer2.push(`<!--]-->`);
2360
- bind_props($$props, { ref });
2361
- });
2362
- }
2363
- function Dialog_content($$renderer, $$props) {
2364
- $$renderer.component(($$renderer2) => {
2365
- let {
2366
- id = useId(),
2367
- children,
2368
- child,
2369
- ref = null,
2370
- forceMount = false,
2371
- onCloseAutoFocus = noop,
2372
- onOpenAutoFocus = noop,
2373
- onEscapeKeydown = noop,
2374
- onInteractOutside = noop,
2375
- trapFocus = true,
2376
- preventScroll = true,
2377
- restoreScrollDelay = null,
2378
- $$slots,
2379
- $$events,
2380
- ...restProps
2381
- } = $$props;
2382
- const contentState = useDialogContent({
2383
- id: box.with(() => id),
2384
- ref: box.with(() => ref, (v) => ref = v)
2385
- });
2386
- const mergedProps = derived(() => mergeProps(restProps, contentState.props));
2387
- {
2388
- let presence = function($$renderer3) {
2389
- {
2390
- let focusScope = function($$renderer4, { props: focusScopeProps }) {
2391
- Escape_layer($$renderer4, spread_props([
2392
- mergedProps(),
2393
- {
2394
- enabled: contentState.root.opts.open.current,
2395
- onEscapeKeydown: (e) => {
2396
- onEscapeKeydown(e);
2397
- if (e.defaultPrevented) return;
2398
- contentState.root.handleClose();
2399
- },
2400
- children: ($$renderer5) => {
2401
- Dismissible_layer($$renderer5, spread_props([
2402
- mergedProps(),
2403
- {
2404
- enabled: contentState.root.opts.open.current,
2405
- onInteractOutside: (e) => {
2406
- onInteractOutside(e);
2407
- if (e.defaultPrevented) return;
2408
- contentState.root.handleClose();
2409
- },
2410
- children: ($$renderer6) => {
2411
- Text_selection_layer($$renderer6, spread_props([
2412
- mergedProps(),
2413
- {
2414
- enabled: contentState.root.opts.open.current,
2415
- children: ($$renderer7) => {
2416
- if (child) {
2417
- $$renderer7.push("<!--[0-->");
2418
- if (contentState.root.opts.open.current) {
2419
- $$renderer7.push("<!--[0-->");
2420
- Scroll_lock($$renderer7, { preventScroll, restoreScrollDelay });
2421
- } else {
2422
- $$renderer7.push("<!--[-1-->");
2423
- }
2424
- $$renderer7.push(`<!--]--> `);
2425
- child($$renderer7, {
2426
- props: mergeProps(mergedProps(), focusScopeProps),
2427
- ...contentState.snippetProps
2428
- });
2429
- $$renderer7.push(`<!---->`);
2430
- } else {
2431
- $$renderer7.push("<!--[-1-->");
2432
- Scroll_lock($$renderer7, { preventScroll });
2433
- $$renderer7.push(`<!----> <div${attributes({ ...mergeProps(mergedProps(), focusScopeProps) })}>`);
2434
- children?.($$renderer7);
2435
- $$renderer7.push(`<!----></div>`);
2436
- }
2437
- $$renderer7.push(`<!--]-->`);
2438
- },
2439
- $$slots: { default: true }
2440
- }
2441
- ]));
2442
- },
2443
- $$slots: { default: true }
2444
- }
2445
- ]));
2446
- },
2447
- $$slots: { default: true }
2448
- }
2449
- ]));
2450
- };
2451
- Focus_scope($$renderer3, {
2452
- loop: true,
2453
- trapFocus: shouldTrapFocus({
2454
- forceMount,
2455
- present: contentState.root.opts.open.current,
2456
- trapFocus,
2457
- open: contentState.root.opts.open.current
2458
- }),
2459
- onOpenAutoFocus,
2460
- id,
2461
- onCloseAutoFocus: (e) => {
2462
- onCloseAutoFocus(e);
2463
- if (e.defaultPrevented) return;
2464
- contentState.root.triggerNode?.focus();
2465
- },
2466
- focusScope
2467
- });
2468
- }
2469
- };
2470
- Presence_layer($$renderer2, spread_props([
2471
- mergedProps(),
2472
- {
2473
- forceMount,
2474
- present: contentState.root.opts.open.current || forceMount,
2475
- presence,
2476
- $$slots: { presence: true }
2477
- }
2478
- ]));
2479
- }
2480
- bind_props($$props, { ref });
2481
- });
2482
- }
2483
- function Modal($$renderer, $$props) {
2484
- $$renderer.component(($$renderer2) => {
2485
- let {
2486
- open = false,
2487
- title = "",
2488
- class: className = "",
2489
- children,
2490
- footer
2491
- } = $$props;
2492
- let $$settled = true;
2493
- let $$inner_renderer;
2494
- function $$render_inner($$renderer3) {
2495
- if (Dialog) {
2496
- $$renderer3.push("<!--[-->");
2497
- Dialog($$renderer3, {
2498
- get open() {
2499
- return open;
2500
- },
2501
- set open($$value) {
2502
- open = $$value;
2503
- $$settled = false;
2504
- },
2505
- children: ($$renderer4) => {
2506
- if (Portal) {
2507
- $$renderer4.push("<!--[-->");
2508
- Portal($$renderer4, {
2509
- children: ($$renderer5) => {
2510
- if (Dialog_overlay) {
2511
- $$renderer5.push("<!--[-->");
2512
- Dialog_overlay($$renderer5, { class: "fixed inset-0 z-50 bg-black/60" });
2513
- $$renderer5.push("<!--]-->");
2514
- } else {
2515
- $$renderer5.push("<!--[!-->");
2516
- $$renderer5.push("<!--]-->");
2517
- }
2518
- $$renderer5.push(` `);
2519
- if (Dialog_content) {
2520
- $$renderer5.push("<!--[-->");
2521
- Dialog_content($$renderer5, {
2522
- class: "fixed left-1/2 top-1/2 z-50 max-h-[90vh] w-[95vw] max-w-6xl -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-rc-gray-600 bg-rc-gray-800 shadow-xl " + className,
2523
- children: ($$renderer6) => {
2524
- $$renderer6.push(`<div class="flex items-center justify-between border-b border-rc-gray-600 px-4 py-3">`);
2525
- if (Dialog_title) {
2526
- $$renderer6.push("<!--[-->");
2527
- Dialog_title($$renderer6, {
2528
- class: "text-lg font-semibold text-gray-100",
2529
- children: ($$renderer7) => {
2530
- $$renderer7.push(`<!---->${escape_html(title)}`);
2531
- },
2532
- $$slots: { default: true }
2533
- });
2534
- $$renderer6.push("<!--]-->");
2535
- } else {
2536
- $$renderer6.push("<!--[!-->");
2537
- $$renderer6.push("<!--]-->");
2538
- }
2539
- $$renderer6.push(` `);
2540
- if (Dialog_close) {
2541
- $$renderer6.push("<!--[-->");
2542
- Dialog_close($$renderer6, {
2543
- class: "text-gray-400 hover:text-gray-200",
2544
- "aria-label": "Close",
2545
- children: ($$renderer7) => {
2546
- $$renderer7.push(`<!---->✕`);
2547
- },
2548
- $$slots: { default: true }
2549
- });
2550
- $$renderer6.push("<!--]-->");
2551
- } else {
2552
- $$renderer6.push("<!--[!-->");
2553
- $$renderer6.push("<!--]-->");
2554
- }
2555
- $$renderer6.push(`</div> <div class="rc-scroll max-h-[calc(90vh-7rem)] overflow-auto p-4">`);
2556
- children?.($$renderer6);
2557
- $$renderer6.push(`<!----></div> <div class="flex items-center justify-end gap-3 border-t border-rc-gray-600 px-4 py-3">`);
2558
- footer?.($$renderer6);
2559
- $$renderer6.push(`<!----></div>`);
2560
- },
2561
- $$slots: { default: true }
2562
- });
2563
- $$renderer5.push("<!--]-->");
2564
- } else {
2565
- $$renderer5.push("<!--[!-->");
2566
- $$renderer5.push("<!--]-->");
2567
- }
2568
- }
2569
- });
2570
- $$renderer4.push("<!--]-->");
2571
- } else {
2572
- $$renderer4.push("<!--[!-->");
2573
- $$renderer4.push("<!--]-->");
2574
- }
2575
- },
2576
- $$slots: { default: true }
2577
- });
2578
- $$renderer3.push("<!--]-->");
2579
- } else {
2580
- $$renderer3.push("<!--[!-->");
2581
- $$renderer3.push("<!--]-->");
2582
- }
2583
- }
2584
- do {
2585
- $$settled = true;
2586
- $$inner_renderer = $$renderer2.copy();
2587
- $$render_inner($$inner_renderer);
2588
- } while (!$$settled);
2589
- $$renderer2.subsume($$inner_renderer);
2590
- bind_props($$props, { open });
2591
- });
2592
- }
2593
-
2594
- export { Modal as M };
2595
- //# sourceMappingURL=Modal-CAzVFw5x.js.map