cognova 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{B4LjQa2N.js → 4MiwzAAt.js} +2 -2
  3. package/.output/public/_nuxt/{BZZeOWzQ.js → 5ZXA0Ckq.js} +1 -1
  4. package/.output/public/_nuxt/{B194okoV.js → 9IQmsEjr.js} +1 -1
  5. package/.output/public/_nuxt/{DQ_ZoW_9.js → 9QnH0xQM.js} +1 -1
  6. package/.output/public/_nuxt/{CF0HGIV6.js → B1X4Bzcy.js} +1 -1
  7. package/.output/public/_nuxt/{D9lowtoI.js → B3y_Qqox.js} +1 -1
  8. package/.output/public/_nuxt/{BB1R_SaV.js → B6S_ob86.js} +1 -1
  9. package/.output/public/_nuxt/{DVf1IpSh.js → BAIz-dEB.js} +1 -1
  10. package/.output/public/_nuxt/{CNFNMRY1.js → BCtfQCzC.js} +1 -1
  11. package/.output/public/_nuxt/BIIJhjQO.js +1 -0
  12. package/.output/public/_nuxt/BIckl6wA.js +1 -0
  13. package/.output/public/_nuxt/{Biy6boRV.js → BJ3o57WW.js} +1 -1
  14. package/.output/public/_nuxt/{B5rIsDOv.js → BNetzZzF.js} +1 -1
  15. package/.output/public/_nuxt/{DFXLcgxL.js → BOj6t-oo.js} +1 -1
  16. package/.output/public/_nuxt/{BDUpLPg_.js → BS0ofHJK.js} +1 -1
  17. package/.output/public/_nuxt/{DIdcflWi.js → BWhMnjID.js} +1 -1
  18. package/.output/public/_nuxt/{CExLOuIW.js → BYjadNrw.js} +1 -1
  19. package/.output/public/_nuxt/{C8ytOrRD.js → BZXMQuYP.js} +1 -1
  20. package/.output/public/_nuxt/{Ddih3UKd.js → B_3_hrpn.js} +1 -1
  21. package/.output/public/_nuxt/{CxSyRXlk.js → BaBZjmMC.js} +1 -1
  22. package/.output/public/_nuxt/BaMqDm5u.js +1 -0
  23. package/.output/public/_nuxt/BasgsT_S.js +1 -0
  24. package/.output/public/_nuxt/{Cehzuz52.js → BffWCM73.js} +1 -1
  25. package/.output/public/_nuxt/{Dh0BcDEI.js → BhzMoffi.js} +1 -1
  26. package/.output/public/_nuxt/{DmV68Eyp.js → BjjCvHLT.js} +1 -1
  27. package/.output/public/_nuxt/{nzAH3Wk0.js → BlAZO7nq.js} +1 -1
  28. package/.output/public/_nuxt/{BRPJdy3u.js → BlhFigLL.js} +1 -1
  29. package/.output/public/_nuxt/{CfTFjEuh.js → Bm9LyG4F.js} +1 -1
  30. package/.output/public/_nuxt/BoIxv-gM.js +1 -0
  31. package/.output/public/_nuxt/{BslL2E8V.js → BqKFIuRj.js} +1 -1
  32. package/.output/public/_nuxt/Br19oYkq.js +1 -0
  33. package/.output/public/_nuxt/{PtGESE-F.js → BrNqhp1a.js} +3 -3
  34. package/.output/public/_nuxt/{FvV9sv7q.js → BsEZoHd1.js} +1 -1
  35. package/.output/public/_nuxt/{BaPPQtFe.js → BxXOsXrM.js} +10 -10
  36. package/.output/public/_nuxt/BzOqrmGa.js +7 -0
  37. package/.output/public/_nuxt/{BNAsyazX.js → C0JKNMDO.js} +1 -1
  38. package/.output/public/_nuxt/C0kh_F7v.js +1 -0
  39. package/.output/public/_nuxt/{4Ew5YctE.js → C3FxIITy.js} +1 -1
  40. package/.output/public/_nuxt/{DnToOWVx.js → C4pxqdgg.js} +1 -1
  41. package/.output/public/_nuxt/{C5Ue4WbD.js → C61KgSco.js} +1 -1
  42. package/.output/public/_nuxt/{DcMvYcFq.js → C69W7k2j.js} +1 -1
  43. package/.output/public/_nuxt/{BnnFvWzv.js → C6RC3lA1.js} +1 -1
  44. package/.output/public/_nuxt/{DBENYi9d.js → C6aqGHu1.js} +1 -1
  45. package/.output/public/_nuxt/{YldWqMAh.js → CJUdYEdO.js} +1 -1
  46. package/.output/public/_nuxt/{BPAM-iC7.js → CKkC3Ptm.js} +1 -1
  47. package/.output/public/_nuxt/{CTXhFIUN.js → CNnJrDvu.js} +1 -1
  48. package/.output/public/_nuxt/{BwH2E0-a.js → CVJQGP1Q.js} +1 -1
  49. package/.output/public/_nuxt/{q0vhMpUB.js → CVgTJeSq.js} +1 -1
  50. package/.output/public/_nuxt/CWMUi89H.js +1 -0
  51. package/.output/public/_nuxt/{BU9VyOEC.js → CYP_MLH8.js} +1 -1
  52. package/.output/public/_nuxt/{76CHU1js.js → C_BdYLzz.js} +1 -1
  53. package/.output/public/_nuxt/{BQbnVFXA.js → Cdt3I3Go.js} +1 -1
  54. package/.output/public/_nuxt/Cdu2qGgq.js +1 -0
  55. package/.output/public/_nuxt/{ChMIRIq6.js → CeIVm4A3.js} +1 -1
  56. package/.output/public/_nuxt/CeIu7z4p.js +1 -0
  57. package/.output/public/_nuxt/{CZZw0T2a.js → Ci7UEZQh.js} +1 -1
  58. package/.output/public/_nuxt/{BP_jQhKs.js → CihWZmJe.js} +2 -2
  59. package/.output/public/_nuxt/{Bluqlt6l.js → CitkKxhw.js} +1 -1
  60. package/.output/public/_nuxt/{DIM73BjE.js → CmzH6R-N.js} +2 -2
  61. package/.output/public/_nuxt/{CD5hHJBM.js → Cp2MA0cm.js} +1 -1
  62. package/.output/public/_nuxt/{DflBkWfa.js → CqU2XbzO.js} +1 -1
  63. package/.output/public/_nuxt/{Ccc8OoR8.js → Cqy_L_ip.js} +1 -1
  64. package/.output/public/_nuxt/Cr8ixbr1.js +1 -0
  65. package/.output/public/_nuxt/{DdLGO0wP.js → CsJ9KhQ4.js} +1 -1
  66. package/.output/public/_nuxt/{mHNfVoS0.js → CtYFj7k1.js} +1 -1
  67. package/.output/public/_nuxt/{DIBimEIe.js → CtchsY6e.js} +1 -1
  68. package/.output/public/_nuxt/{BboG47Wz.js → Cvp7FI3T.js} +1 -1
  69. package/.output/public/_nuxt/CxuZBC8n.js +70 -0
  70. package/.output/public/_nuxt/D2689qk4.js +1 -0
  71. package/.output/public/_nuxt/{CWWmC6Y7.js → D31L7Ks6.js} +1 -1
  72. package/.output/public/_nuxt/{JxSV3wOO.js → D3RiUGdz.js} +1 -1
  73. package/.output/public/_nuxt/{C1tYtAeV.js → D3e44mCL.js} +1 -1
  74. package/.output/public/_nuxt/{BTWyDDBM.js → D6t3dcTl.js} +1 -1
  75. package/.output/public/_nuxt/{DpLjEbYb.js → DAQhmSv4.js} +1 -1
  76. package/.output/public/_nuxt/{BnwR3LQL.js → DB359q8R.js} +1 -1
  77. package/.output/public/_nuxt/{jCKYMNtT.js → DCzfkCGa.js} +1 -1
  78. package/.output/public/_nuxt/{BXWm1qrj.js → DG-T44jj.js} +1 -1
  79. package/.output/public/_nuxt/{BBygTbuF.js → DGX0tzL8.js} +1 -1
  80. package/.output/public/_nuxt/DHG66LPS.js +1 -0
  81. package/.output/public/_nuxt/{jBqB49XU.js → DHKLCQRG.js} +1 -1
  82. package/.output/public/_nuxt/{BDw-JoCx.js → DIoI0uJm.js} +1 -1
  83. package/.output/public/_nuxt/{DOQA5CEF.js → DJ5V-y_x.js} +1 -1
  84. package/.output/public/_nuxt/{BGaNWD0s.js → DJMS2og1.js} +1 -1
  85. package/.output/public/_nuxt/{UmgHYYVi.js → DJjDvbZE.js} +1 -1
  86. package/.output/public/_nuxt/{DdtX5kio.js → DK9jxJ0g.js} +1 -1
  87. package/.output/public/_nuxt/{Cc6GlQCO.js → DKZxeXDQ.js} +1 -1
  88. package/.output/public/_nuxt/{Tp-9mt9j.js → DLETdGFL.js} +1 -1
  89. package/.output/public/_nuxt/DOICd-Ld.js +1 -0
  90. package/.output/public/_nuxt/DPEcH-gi.js +65 -0
  91. package/.output/public/_nuxt/{CVNY6Bll.js → DSRrg8JT.js} +1 -1
  92. package/.output/public/_nuxt/{Sm7TJN7_.js → DTDgHTuh.js} +2 -2
  93. package/.output/public/_nuxt/{DeGKAWfY.js → D_3Rq1BS.js} +1 -1
  94. package/.output/public/_nuxt/{BvnL4Jyv.js → Daz4MeL6.js} +1 -1
  95. package/.output/public/_nuxt/{Dyd3g9po.js → Db2v8O7O.js} +1 -1
  96. package/.output/public/_nuxt/{D0FBwEzN.js → Db8-_gO7.js} +1 -1
  97. package/.output/public/_nuxt/{Cv4Qjbqk.js → DfQu3kEw.js} +1 -1
  98. package/.output/public/_nuxt/{c-RGQpsW.js → DgV-EDJ9.js} +1 -1
  99. package/.output/public/_nuxt/{CSF2cTe9.js → DnjGH3SQ.js} +1 -1
  100. package/.output/public/_nuxt/Dp2X5R2m.js +1 -0
  101. package/.output/public/_nuxt/DqB723Z0.js +1 -0
  102. package/.output/public/_nuxt/{DhRePYUI.js → DyRelyfs.js} +1 -1
  103. package/.output/public/_nuxt/{DZiAD6YN.js → Dy_Cq5LQ.js} +1 -1
  104. package/.output/public/_nuxt/{DWQMV4k2.js → DznawRFW.js} +1 -1
  105. package/.output/public/_nuxt/EuOqK1A6.js +1 -0
  106. package/.output/public/_nuxt/{BVZHIuu-.js → FNC8XZTk.js} +1 -1
  107. package/.output/public/_nuxt/{Dsk8JtTw.js → Fukkqjkf.js} +1 -1
  108. package/.output/public/_nuxt/{DNpdNXnv.js → FvlxxmNk.js} +2 -2
  109. package/.output/public/_nuxt/{zt0Txq93.js → IRSbVPIu.js} +1 -1
  110. package/.output/public/_nuxt/{T_w6A2Zo.js → JJ3634gV.js} +9 -9
  111. package/.output/public/_nuxt/{6Tt_Iaya.js → Jez9DHn7.js} +1 -1
  112. package/.output/public/_nuxt/{Cr7nQmYw.js → KKK6HVeG.js} +1 -1
  113. package/.output/public/_nuxt/{BJPw54Qz.js → Lwdv_RKd.js} +1 -1
  114. package/.output/public/_nuxt/{WqUIRM3G.js → Nb2jBtYT.js} +1 -1
  115. package/.output/public/_nuxt/Q8Ps7oN5.js +1 -0
  116. package/.output/public/_nuxt/SXTDhzp6.js +1 -0
  117. package/.output/public/_nuxt/{rfcePMfo.js → Sg2Lwc46.js} +1 -1
  118. package/.output/public/_nuxt/{gEpwc5gO.js → YuTZB7sD.js} +1 -1
  119. package/.output/public/_nuxt/{B2OKrc4G.js → _CYZi8HN.js} +1 -1
  120. package/.output/public/_nuxt/_J_7XIn-.js +1 -0
  121. package/.output/public/_nuxt/builds/latest.json +1 -1
  122. package/.output/public/_nuxt/builds/meta/a1e9100c-1a4f-4f7e-bb53-9dbe0d07effb.json +1 -0
  123. package/.output/public/_nuxt/{Bwx_Kl-4.js → cABRLVee.js} +1 -1
  124. package/.output/public/_nuxt/{DPuJYSUH.js → eko-0FUm.js} +1 -1
  125. package/.output/public/_nuxt/entry.CGxIBGAf.css +1 -0
  126. package/.output/public/_nuxt/{TQOIXkvr.js → g20UHUCv.js} +1 -1
  127. package/.output/public/_nuxt/{zOs8gUGl.js → gBC9k4Qj.js} +1 -1
  128. package/.output/public/_nuxt/{CJ3DQEW9.js → ghuJ76mD.js} +1 -1
  129. package/.output/public/_nuxt/{S6GTaxiQ.js → iBGCpHdw.js} +1 -1
  130. package/.output/public/_nuxt/{VGlRzjk3.js → inmzPrjz.js} +1 -1
  131. package/.output/public/_nuxt/{CCkumwhk.js → m5kGCDpI.js} +4 -4
  132. package/.output/public/_nuxt/{CXkbkhUa.js → nIU2F7ia.js} +3 -3
  133. package/.output/public/_nuxt/oIX-ZDN6.js +1 -0
  134. package/.output/public/_nuxt/{TsIha0iy.js → pcUI-zuY.js} +1 -1
  135. package/.output/public/_nuxt/{BN_2zhBR.js → sf57orEk.js} +1 -1
  136. package/.output/public/_nuxt/usage.vakN1lvi.css +1 -0
  137. package/.output/public/_nuxt/{DHYn0MnY.js → wCGVE8_e.js} +1 -1
  138. package/.output/public/_nuxt/{DMkXE4gH.js → xuzLdW-o.js} +1 -1
  139. package/.output/public/_nuxt/{DdoFnl6e.js → yNrp2XvX.js} +1 -1
  140. package/.output/public/_nuxt/{4hIPJQLp.js → yuf23kh9.js} +1 -1
  141. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +1 -1
  142. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
  143. package/.output/server/chunks/build/EditorToolbar-DIfb5arC.mjs +1 -1
  144. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +1 -1
  145. package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
  146. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
  147. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
  148. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
  149. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
  150. package/.output/server/chunks/build/{_uuid_-CQEMsF1D.mjs → _uuid_-0UgdUhfY.mjs} +8 -7
  151. package/.output/server/chunks/build/{_uuid_-CQEMsF1D.mjs.map → _uuid_-0UgdUhfY.mjs.map} +1 -1
  152. package/.output/server/chunks/build/chat-CZMiB68R.mjs.map +1 -1
  153. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  154. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
  155. package/.output/server/chunks/build/{dashboard-24rCroiO.mjs → dashboard-CpMVYnDV.mjs} +13 -6
  156. package/.output/server/chunks/build/{dashboard-24rCroiO.mjs.map → dashboard-CpMVYnDV.mjs.map} +1 -1
  157. package/.output/server/chunks/build/dashboard-YEscLBQN.mjs +1109 -0
  158. package/.output/server/chunks/build/dashboard-YEscLBQN.mjs.map +1 -0
  159. package/.output/server/chunks/build/{docs-DOGZUctm.mjs → docs-Dk2JnYq3.mjs} +8 -7
  160. package/.output/server/chunks/build/{docs-DOGZUctm.mjs.map → docs-Dk2JnYq3.mjs.map} +1 -1
  161. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
  162. package/.output/server/chunks/build/{hooks-CuyNIRFI.mjs → hooks-DP8WoUPS.mjs} +2 -2
  163. package/.output/server/chunks/build/{hooks-CuyNIRFI.mjs.map → hooks-DP8WoUPS.mjs.map} +1 -1
  164. package/.output/server/chunks/build/{index-BZI-Mj1-.mjs → index-Ba_bPJgk.mjs} +2 -2
  165. package/.output/server/chunks/build/{index-BZI-Mj1-.mjs.map → index-Ba_bPJgk.mjs.map} +1 -1
  166. package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
  167. package/.output/server/chunks/build/server.mjs +26 -17
  168. package/.output/server/chunks/build/server.mjs.map +1 -1
  169. package/.output/server/chunks/build/settings-DdkKCJ00.mjs +1 -1
  170. package/.output/server/chunks/build/styles.mjs +2 -2
  171. package/.output/server/chunks/build/{tasks-DR55Wjpi.mjs → tasks-DiOi1HG_.mjs} +2 -2
  172. package/.output/server/chunks/build/{tasks-DR55Wjpi.mjs.map → tasks-DiOi1HG_.mjs.map} +1 -1
  173. package/.output/server/chunks/build/usage-H_mcd_fz.mjs +1578 -0
  174. package/.output/server/chunks/build/usage-H_mcd_fz.mjs.map +1 -0
  175. package/.output/server/chunks/build/{CodeEditorFallback-DfYly7f5.mjs → useCopyToClipboard-vi6FYyyZ.mjs} +29 -2
  176. package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs.map +1 -0
  177. package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs +1 -1
  178. package/.output/server/chunks/build/{usePreferences-CUvZsOq5.mjs → usePreferences-CzC8fRzd.mjs} +7 -1
  179. package/.output/server/chunks/build/usePreferences-CzC8fRzd.mjs.map +1 -0
  180. package/.output/server/chunks/build/view-Dc8mvzCB.mjs +1 -1
  181. package/.output/server/chunks/nitro/nitro.mjs +884 -818
  182. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  183. package/.output/server/chunks/routes/_ws/chat.mjs +18 -4
  184. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  185. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs +149 -0
  186. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs.map +1 -0
  187. package/.output/server/chunks/routes/api/documents/_id/public.get.mjs +1 -1
  188. package/.output/server/chunks/routes/api/documents/_id/restore.post.mjs +1 -1
  189. package/.output/server/chunks/routes/api/documents/by-path.post.mjs +1 -1
  190. package/.output/server/chunks/routes/api/documents/index.delete.mjs +1 -1
  191. package/.output/server/chunks/routes/api/documents/index.put.mjs +1 -1
  192. package/.output/server/chunks/routes/api/fs/delete.post.mjs +1 -1
  193. package/.output/server/chunks/routes/api/fs/list.get.mjs +1 -1
  194. package/.output/server/chunks/routes/api/fs/mkdir.post.mjs +1 -1
  195. package/.output/server/chunks/routes/api/fs/move.post.mjs +1 -1
  196. package/.output/server/chunks/routes/api/fs/read.post.mjs +1 -1
  197. package/.output/server/chunks/routes/api/fs/rename.post.mjs +1 -1
  198. package/.output/server/chunks/routes/api/fs/write.post.mjs +1 -1
  199. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  200. package/.output/server/chunks/routes/api/home.get.mjs +1 -1
  201. package/.output/server/chunks/routes/api/hooks/index.get.mjs +1 -1
  202. package/.output/server/chunks/routes/api/hooks/index.post.mjs +1 -1
  203. package/.output/server/chunks/routes/api/hooks/stats.get.mjs +1 -1
  204. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  205. package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
  206. package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
  207. package/.output/server/chunks/routes/api/index.get6.mjs +1 -1
  208. package/.output/server/chunks/routes/api/index.get7.mjs +1 -1
  209. package/.output/server/chunks/routes/api/index.get8.mjs +82 -0
  210. package/.output/server/chunks/routes/api/index.get8.mjs.map +1 -0
  211. package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
  212. package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
  213. package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
  214. package/.output/server/chunks/routes/api/index.put.mjs +1 -1
  215. package/.output/server/chunks/routes/api/memory/_id_.delete.mjs +1 -1
  216. package/.output/server/chunks/routes/api/memory/context.get.mjs +1 -1
  217. package/.output/server/chunks/routes/api/memory/extract.post.mjs +20 -1
  218. package/.output/server/chunks/routes/api/memory/extract.post.mjs.map +1 -1
  219. package/.output/server/chunks/routes/api/memory/search.get.mjs +1 -1
  220. package/.output/server/chunks/routes/api/memory/store.post.mjs +1 -1
  221. package/.output/server/chunks/routes/api/projects/index.delete.mjs +1 -1
  222. package/.output/server/chunks/routes/api/projects/index.get.mjs +1 -1
  223. package/.output/server/chunks/routes/api/projects/index.put.mjs +1 -1
  224. package/.output/server/chunks/routes/api/secrets/_key_.delete.mjs +1 -1
  225. package/.output/server/chunks/routes/api/secrets/_key_.get.mjs +1 -1
  226. package/.output/server/chunks/routes/api/secrets/_key_.put.mjs +1 -1
  227. package/.output/server/chunks/routes/api/tasks/_id/restore.post.mjs +1 -1
  228. package/.output/server/chunks/routes/api/tasks/index.delete.mjs +1 -1
  229. package/.output/server/chunks/routes/api/tasks/index.put.mjs +1 -1
  230. package/.output/server/chunks/routes/api/tasks/tags.get.mjs +1 -1
  231. package/.output/server/chunks/routes/api/usage/stats.get.mjs +130 -0
  232. package/.output/server/chunks/routes/api/usage/stats.get.mjs.map +1 -0
  233. package/.output/server/chunks/routes/api/user/email.patch.mjs +1 -1
  234. package/.output/server/chunks/routes/notifications.mjs +1 -1
  235. package/.output/server/chunks/routes/renderer.mjs +1 -1
  236. package/.output/server/chunks/routes/terminal.mjs +1 -1
  237. package/.output/server/index.mjs +1 -1
  238. package/.output/server/package.json +1 -1
  239. package/app/components/dashboard/RecentChats.vue +93 -0
  240. package/app/components/dashboard/RecentDocs.vue +108 -0
  241. package/app/components/dashboard/StatCards.vue +82 -0
  242. package/app/components/dashboard/UpcomingTasks.vue +119 -0
  243. package/app/components/dashboard/UsageSummary.vue +94 -0
  244. package/app/components/editor/DocumentEditor.vue +5 -3
  245. package/app/components/usage/UsageCostChart.client.vue +174 -0
  246. package/app/components/usage/UsageCostChart.server.vue +22 -0
  247. package/app/components/usage/UsageRecordsTable.vue +249 -0
  248. package/app/components/usage/UsageSourceDonut.client.vue +93 -0
  249. package/app/components/usage/UsageSourceDonut.server.vue +21 -0
  250. package/app/components/usage/UsageStatsCards.vue +101 -0
  251. package/app/components/usage/UsageTopConsumers.vue +89 -0
  252. package/app/composables/useCopyToClipboard.ts +37 -0
  253. package/app/composables/usePreferences.ts +10 -0
  254. package/app/layouts/dashboard.vue +8 -1
  255. package/app/pages/chat.vue +11 -1
  256. package/app/pages/dashboard.vue +65 -64
  257. package/app/pages/usage.vue +130 -0
  258. package/app/pages/view/[uuid].vue +4 -3
  259. package/package.json +1 -1
  260. package/server/api/dashboard/overview.get.ts +133 -0
  261. package/server/api/usage/index.get.ts +69 -0
  262. package/server/api/usage/stats.get.ts +127 -0
  263. package/server/db/schema.ts +17 -0
  264. package/server/drizzle/migrations/0011_tearful_johnny_storm.sql +12 -0
  265. package/server/drizzle/migrations/meta/0011_snapshot.json +1634 -0
  266. package/server/drizzle/migrations/meta/_journal.json +7 -0
  267. package/server/routes/_ws/chat.ts +29 -2
  268. package/server/services/agent-executor.ts +13 -0
  269. package/server/services/memory-extractor.ts +25 -0
  270. package/server/utils/log-token-usage.ts +22 -0
  271. package/shared/types/index.ts +81 -0
  272. package/.output/public/_nuxt/B34UfOg4.js +0 -1
  273. package/.output/public/_nuxt/B3DmiwBX.js +0 -1
  274. package/.output/public/_nuxt/BESViHC6.js +0 -1
  275. package/.output/public/_nuxt/BIm_buQF.js +0 -1
  276. package/.output/public/_nuxt/BMh-dHBK.js +0 -1
  277. package/.output/public/_nuxt/Bkv1Ouue.js +0 -1
  278. package/.output/public/_nuxt/C4i10ReQ.js +0 -1
  279. package/.output/public/_nuxt/C5euqjeX.js +0 -1
  280. package/.output/public/_nuxt/C9hy_rtV.js +0 -1
  281. package/.output/public/_nuxt/CWJhKIyp.js +0 -1
  282. package/.output/public/_nuxt/Ck24Z-8o.js +0 -1
  283. package/.output/public/_nuxt/D1JmZKz7.js +0 -1
  284. package/.output/public/_nuxt/D6xvQUYG.js +0 -1
  285. package/.output/public/_nuxt/DGTbw5AQ.js +0 -1
  286. package/.output/public/_nuxt/Da8Xd1w6.js +0 -1
  287. package/.output/public/_nuxt/DamUHI17.js +0 -1
  288. package/.output/public/_nuxt/DoIiMqKa.js +0 -76
  289. package/.output/public/_nuxt/builds/meta/75ff59f2-0860-4bfc-a288-c670397cae5c.json +0 -1
  290. package/.output/public/_nuxt/entry.tLLAvqs1.css +0 -1
  291. package/.output/public/_nuxt/iJ4KRInq.js +0 -1
  292. package/.output/public/_nuxt/mSr5c6cB.js +0 -1
  293. package/.output/public/_nuxt/r8g_V5AH.js +0 -1
  294. package/.output/public/_nuxt/rZmMQHiC.js +0 -1
  295. package/.output/server/chunks/build/CodeEditorFallback-DfYly7f5.mjs.map +0 -1
  296. package/.output/server/chunks/build/dashboard-DtbGchTa.mjs +0 -277
  297. package/.output/server/chunks/build/dashboard-DtbGchTa.mjs.map +0 -1
  298. package/.output/server/chunks/build/usePreferences-CUvZsOq5.mjs.map +0 -1
  299. /package/.output/public/_nuxt/{language-detection.Be_IvFWy.css → useCopyToClipboard.Be_IvFWy.css} +0 -0
@@ -1 +0,0 @@
1
- import{_ as J}from"./BXWm1qrj.js";import{_ as X,a as Y}from"./Ddih3UKd.js";import{_ as Z}from"./CExLOuIW.js";import{_ as ee}from"./DamUHI17.js";import{_ as te}from"./C1tYtAeV.js";import{_ as oe}from"./DPuJYSUH.js";import{e as u,af as ae,c as ne,a as re,ae as le,f as C,q as se,G as k,T as l,S as a,C as c,ai as w,R as _,a9 as s,Q as S,ag as ce,ah as ie,_ as ue,W as me,ac as y,aU as de,a8 as M,a7 as pe,aV as fe}from"./BaPPQtFe.js";import{_ as _e}from"./rZmMQHiC.js";import{_ as ye}from"./Sm7TJN7_.js";import{_ as he}from"./DmV68Eyp.js";import{f as ve}from"./CWePHsZr.js";import"./4Ew5YctE.js";import"./BBygTbuF.js";import"./nzAH3Wk0.js";import"./BboG47Wz.js";import"./BMh-dHBK.js";import"./WqUIRM3G.js";import"./BZZeOWzQ.js";import"./Biy6boRV.js";import"./DGTbw5AQ.js";import"./Dsk8JtTw.js";import"./D1JmZKz7.js";import"./C6Y-ieo6.js";import"./BnwR3LQL.js";import"./q0vhMpUB.js";import"./88opOQSr.js";import"./S6GTaxiQ.js";import"./DhRePYUI.js";import"./C8ut0f5H.js";function ge(){const m=u([]),d=u(!0),p=u(null),g=ae({query:"",chunkType:"all",limit:50});async function b(i){d.value=!0,p.value=null;const e={...g,...i};try{const o={};e.query&&(o.query=e.query),e.chunkType&&e.chunkType!=="all"&&(o.chunkType=e.chunkType),e.projectPath&&(o.projectPath=e.projectPath),e.limit&&(o.limit=String(e.limit));const f=await $fetch("/api/memory/search",{query:o});return m.value=f.data,f.data}catch(o){throw p.value="Failed to load memories",console.error("Failed to load memories:",o),o}finally{d.value=!1}}async function T(i){try{await $fetch(`/api/memory/${i}`,{method:"DELETE"}),m.value=m.value.filter(e=>e.id!==i)}catch(e){throw console.error("Failed to delete memory:",e),e}}const h=ne(()=>{const i=m.value.reduce((e,o)=>(e[o.chunkType]=(e[o.chunkType]||0)+1,e),{});return{total:m.value.length,byType:i}});return{memories:m,loading:d,error:p,filters:g,stats:h,fetchMemories:b,deleteMemory:T}}const be={class:"contents"},Te={class:"p-4"},xe={key:0,class:"space-y-3"},ke={key:1,class:"flex flex-col items-center justify-center h-64 text-neutral-500"},we=["title"],De={class:"flex items-center gap-2"},Ue={class:"w-16 h-1.5 bg-neutral-200 dark:bg-neutral-700 rounded-full overflow-hidden"},$e={class:"text-xs text-muted"},Ce={class:"text-sm text-muted"},Se={class:"text-sm text-muted"},D="__all__",rt=re({__name:"memories",setup(m){const d=le(),{memories:p,loading:g,filters:b,stats:T,fetchMemories:h,deleteMemory:i}=ge(),e=u(!1),o=u(null),f=u(!1),V=[{value:D,label:"All Types"},{value:"decision",label:"Decisions"},{value:"fact",label:"Facts"},{value:"solution",label:"Solutions"},{value:"pattern",label:"Patterns"},{value:"preference",label:"Preferences"},{value:"summary",label:"Summaries"}],x=u(D),v=u("");C(x,n=>{b.chunkType=n===D?"all":n,h()});const F=fe(()=>{b.query=v.value||void 0,h()},300);C(v,F);function q(n){o.value=n,e.value=!0}async function A(){if(o.value){f.value=!0;try{await i(o.value),d.add({title:"Memory deleted",color:"success"}),e.value=!1}catch{d.add({title:"Failed to delete memory",color:"error"})}finally{f.value=!1,o.value=null}}}function N(n){switch(n){case"decision":return"primary";case"fact":return"info";case"solution":return"success";case"pattern":return"warning";case"preference":return"neutral";case"summary":return"neutral";default:return"neutral"}}function B(n){switch(n){case"decision":return"i-lucide-git-branch";case"fact":return"i-lucide-info";case"solution":return"i-lucide-check-circle";case"pattern":return"i-lucide-repeat";case"preference":return"i-lucide-settings";case"summary":return"i-lucide-file-text";default:return"i-lucide-circle"}}function K(n){return ve(new Date(n),{addSuffix:!0})}const L=[{accessorKey:"chunkType",header:"Type"},{accessorKey:"content",header:"Content"},{accessorKey:"relevanceScore",header:"Relevance"},{accessorKey:"accessCount",header:"Accessed"},{accessorKey:"createdAt",header:"Created"},{accessorKey:"actions",header:""}];function P(n){return[[{label:"Delete",icon:"i-lucide-trash-2",color:"error",onSelect:()=>q(n)}]]}return se(()=>{h()}),(n,r)=>{const U=J,E=Y,j=Z,z=ee,I=te,R=oe,$=ue,Q=me,G=_e,O=ye,W=X,H=he;return _(),k("div",be,[l(W,{id:"memories",grow:""},{header:a(()=>[l(E,{title:"Memories"},{leading:a(()=>[c(T).total>0?(_(),S(U,{key:0,color:"neutral",variant:"subtle",class:"ml-2"},{default:a(()=>[M(y(c(T).total),1)]),_:1})):pe("",!0)]),_:1}),l(I,null,{left:a(()=>[l(j,{modelValue:c(x),"onUpdate:modelValue":r[0]||(r[0]=t=>w(x)?x.value=t:null),items:V,"value-key":"value",class:"w-40"},null,8,["modelValue"])]),right:a(()=>[l(z,{modelValue:c(v),"onUpdate:modelValue":r[1]||(r[1]=t=>w(v)?v.value=t:null),placeholder:"Search memories...",icon:"i-lucide-search",class:"w-64"},null,8,["modelValue"])]),_:1})]),body:a(()=>[s("div",Te,[c(g)?(_(),k("div",xe,[(_(),k(ce,null,ie(10,t=>l(R,{key:t,class:"h-12 w-full"})),64))])):c(p).length===0?(_(),k("div",ke,[l($,{name:"i-lucide-brain",class:"w-12 h-12 mb-4"}),r[4]||(r[4]=s("p",{class:"text-lg font-medium"}," No memories yet ",-1)),r[5]||(r[5]=s("p",{class:"text-sm text-center max-w-md mt-2"}," Memories are automatically extracted from your Claude conversations. They will appear here once extraction hooks are triggered. ",-1))])):(_(),S(O,{key:2,data:c(p),columns:L},{"chunkType-cell":a(({row:t})=>[l(U,{color:N(t.original.chunkType),variant:"subtle",size:"sm"},{default:a(()=>[l($,{name:B(t.original.chunkType),class:"w-3 h-3 mr-1"},null,8,["name"]),M(" "+y(t.original.chunkType),1)]),_:2},1032,["color"])]),"content-cell":a(({row:t})=>[s("span",{class:"text-sm line-clamp-2",title:t.original.content},y(t.original.content),9,we)]),"relevanceScore-cell":a(({row:t})=>[s("div",De,[s("div",Ue,[s("div",{class:"h-full bg-primary-500 rounded-full",style:de({width:`${t.original.relevanceScore*100}%`})},null,4)]),s("span",$e,y((t.original.relevanceScore*100).toFixed(0))+"% ",1)])]),"accessCount-cell":a(({row:t})=>[s("span",Ce,y(t.original.accessCount)+"x ",1)]),"createdAt-cell":a(({row:t})=>[s("span",Se,y(K(t.original.createdAt)),1)]),"actions-cell":a(({row:t})=>[l(G,{items:P(t.original.id)},{default:a(()=>[l(Q,{icon:"i-lucide-more-horizontal",color:"neutral",variant:"ghost",size:"xs"})]),_:1},8,["items"])]),_:1},8,["data"]))])]),_:1}),l(H,{open:c(e),"onUpdate:open":r[2]||(r[2]=t=>w(e)?e.value=t:null),title:"Delete Memory",description:"Are you sure you want to delete this memory? This action cannot be undone.","confirm-label":"Delete","confirm-color":"error",icon:"i-lucide-trash-2",loading:c(f),onConfirm:A,onCancel:r[3]||(r[3]=t=>o.value=null)},null,8,["open","loading"])])}}});export{rt as default};
@@ -1 +0,0 @@
1
- import{X as e}from"./BaPPQtFe.js";function a(r,u="reka"){return r||`${u}-${e?.()}`}export{a as u};
@@ -1 +0,0 @@
1
- import{ao as A,am as M,ap as F,ba as O,L as H,N as U,c as y,f as I,aA as G,aS as E,G as _,R as g,T as t,S as o,a3 as s,C as l,a9 as m,Q as b,a7 as h,U as n,V as q,a2 as j,aL as Q,aM as W,ag as J,aj as v,bx as K,W as N,an as X,a8 as Y,ac as Z,a as ee,ad as te,_ as ae}from"./BaPPQtFe.js";import{_ as le}from"./JxSV3wOO.js";import{c as C}from"./BBygTbuF.js";import{_ as P}from"./VGlRzjk3.js";import{_ as se}from"./CJ3DQEW9.js";import{_ as oe}from"./DhRePYUI.js";import{_ as ne}from"./BU9VyOEC.js";import{_ as ie}from"./gEpwc5gO.js";import"./Dsk8JtTw.js";import"./D1JmZKz7.js";import"./DGTbw5AQ.js";import"./BZZeOWzQ.js";import"./BQbnVFXA.js";const re={slots:{root:"bg-default/75 backdrop-blur border-b border-default h-(--ui-header-height) sticky top-0 z-50",container:"flex items-center justify-between gap-3 h-full",left:"lg:flex-1 flex items-center gap-1.5",center:"hidden lg:flex",right:"flex items-center justify-end lg:flex-1 gap-1.5",title:"shrink-0 font-bold text-xl text-highlighted flex items-end gap-1.5",toggle:"lg:hidden",content:"lg:hidden",overlay:"lg:hidden",header:"px-4 sm:px-6 h-(--ui-header-height) shrink-0 flex items-center justify-between gap-3",body:"p-4 sm:p-6 overflow-y-auto"},variants:{toggleSide:{left:{toggle:"-ms-1.5"},right:{toggle:"-me-1.5"}}}},ue=Object.assign({inheritAttrs:!1},{__name:"UHeader",props:A({as:{type:null,required:!1,default:"header"},title:{type:String,required:!1,default:"Nuxt UI"},to:{type:String,required:!1,default:"/"},mode:{type:null,required:!1,default:"modal"},menu:{type:null,required:!1},toggle:{type:[Boolean,Object],required:!1,default:!0},toggleSide:{type:String,required:!1,default:"right"},class:{type:null,required:!1},ui:{type:null,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(a){const e=a,d=M(),i=F(a,"open",{type:Boolean,default:!1}),r=O(),{t:u}=H(),p=U(),[S,$]=C(),[x,k]=C(),[L,w]=C(),V=y(()=>(d.title&&K(d.title())||e.title||"Nuxt UI").trim());I(()=>r.fullPath,()=>{i.value=!1});const f=y(()=>v({extend:v(re),...p.ui?.header||{}})()),D=y(()=>({slideover:se,modal:oe,drawer:ne})[e.mode]),z=G(()=>E(e.menu,{content:{onOpenAutoFocus:c=>c.preventDefault()}},e.mode==="modal"?{fullscreen:!0,transition:!1}:{}));function R(){i.value=!i.value}return(c,B)=>(g(),_(J,null,[t(l(L),null,{default:o(()=>[s(c.$slots,"toggle",{open:i.value,toggle:R,ui:f.value},()=>[a.toggle?(g(),b(N,q({key:0,color:"neutral",variant:"ghost","aria-label":i.value?l(u)("header.close"):l(u)("header.open"),icon:i.value?l(p).ui.icons.close:l(p).ui.icons.menu},typeof a.toggle=="object"?a.toggle:{},{"data-slot":"toggle",class:f.value.toggle({class:e.ui?.toggle,toggleSide:a.toggleSide}),onClick:R}),null,16,["aria-label","icon","class"])):h("",!0)])]),_:3}),t(l(S),null,{default:o(()=>[m("div",{"data-slot":"left",class:n(f.value.left({class:e.ui?.left}))},[a.toggleSide==="left"?(g(),b(l(w),{key:0})):h("",!0),s(c.$slots,"left",{},()=>[t(X,{to:a.to,"aria-label":V.value,"data-slot":"title",class:n(f.value.title({class:e.ui?.title}))},{default:o(()=>[s(c.$slots,"title",{},()=>[Y(Z(a.title),1)])]),_:3},8,["to","aria-label","class"])])],2)]),_:3}),t(l(x),null,{default:o(()=>[m("div",{"data-slot":"right",class:n(f.value.right({class:e.ui?.right}))},[s(c.$slots,"right"),a.toggleSide==="right"?(g(),b(l(w),{key:0})):h("",!0)],2)]),_:3}),t(l(j),q({as:a.as},c.$attrs,{"data-slot":"root",class:f.value.root({class:[e.ui?.root,e.class]})}),{default:o(()=>[s(c.$slots,"top"),t(P,{"data-slot":"container",class:n(f.value.container({class:e.ui?.container}))},{default:o(()=>[t(l($)),m("div",{"data-slot":"center",class:n(f.value.center({class:e.ui?.center}))},[s(c.$slots,"default")],2),t(l(k))]),_:3},8,["class"]),s(c.$slots,"bottom")]),_:3},16,["as","class"]),t(l(D),q({open:i.value,"onUpdate:open":B[0]||(B[0]=T=>i.value=T),title:l(u)("header.title"),description:l(u)("header.description")},z.value,{ui:{overlay:f.value.overlay({class:e.ui?.overlay}),content:f.value.content({class:e.ui?.content})}}),{content:o(T=>[s(c.$slots,"content",Q(W(T)),()=>[a.mode!=="drawer"?(g(),_("div",{key:0,"data-slot":"header",class:n(f.value.header({class:e.ui?.header}))},[t(l($)),t(l(k))],2)):h("",!0),m("div",{"data-slot":"body",class:n(f.value.body({class:e.ui?.body}))},[s(c.$slots,"body")],2)])]),_:3},16,["open","title","description","ui"])],64))}}),ce={base:"min-h-[calc(100vh-var(--ui-header-height))]"},de={__name:"UMain",props:{as:{type:null,required:!1},class:{type:null,required:!1}},setup(a){const e=a,d=U(),i=y(()=>v({extend:v(ce),...d.ui?.main||{}}));return(r,u)=>(g(),b(l(j),{as:a.as,class:n(i.value({class:e.class}))},{default:o(()=>[s(r.$slots,"default")]),_:3},8,["as","class"]))}},fe={slots:{root:"",top:"py-8 lg:py-12",bottom:"py-8 lg:py-12",container:"py-8 lg:py-4 lg:flex lg:items-center lg:justify-between lg:gap-x-3",left:"flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1",center:"mt-3 lg:mt-0 lg:order-2 flex items-center justify-center",right:"lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3"}},ge={__name:"UFooter",props:{as:{type:null,required:!1,default:"footer"},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(a){const e=a,d=M(),i=U(),r=y(()=>v({extend:v(fe),...i.ui?.footer||{}})());return(u,p)=>(g(),b(l(j),{as:a.as,"data-slot":"root",class:n(r.value.root({class:[e.ui?.root,e.class]}))},{default:o(()=>[d.top?(g(),_("div",{key:0,"data-slot":"top",class:n(r.value.top({class:e.ui?.top}))},[s(u.$slots,"top")],2)):h("",!0),t(P,{"data-slot":"container",class:n(r.value.container({class:e.ui?.container}))},{default:o(()=>[m("div",{"data-slot":"right",class:n(r.value.right({class:e.ui?.right}))},[s(u.$slots,"right")],2),m("div",{"data-slot":"center",class:n(r.value.center({class:e.ui?.center}))},[s(u.$slots,"default")],2),m("div",{"data-slot":"left",class:n(r.value.left({class:e.ui?.left}))},[s(u.$slots,"left")],2)]),_:3},8,["class"]),d.bottom?(g(),_("div",{key:1,"data-slot":"bottom",class:n(r.value.bottom({class:e.ui?.bottom}))},[s(u.$slots,"bottom")],2)):h("",!0)]),_:3},8,["as","class"]))}},Ce=ee({__name:"view",setup(a){return(e,d)=>{const i=ae,r=te,u=le,p=ue,S=de,$=ie,x=N,k=ge;return g(),_("div",null,[t(p,null,{left:o(()=>[t(r,{to:"/",class:"flex items-center gap-2"},{default:o(()=>[t(i,{name:"i-lucide-brain",class:"size-6 text-primary"}),d[0]||(d[0]=m("span",{class:"font-semibold"},"Cognova",-1))]),_:1})]),right:o(()=>[t(u)]),_:1}),t(S,null,{default:o(()=>[s(e.$slots,"default")]),_:3}),t($,{icon:"i-lucide-brain",ui:{icon:"text-primary"}}),t(k,null,{left:o(()=>[...d[1]||(d[1]=[m("p",{class:"text-muted text-sm"}," Shared via Cognova ",-1)])]),right:o(()=>[t(x,{icon:"i-simple-icons-github",to:"https://github.com/Patrity/cognova",target:"_blank","aria-label":"View on GitHub",color:"neutral",variant:"ghost"}),t(x,{icon:"i-simple-icons-x",to:"https://x.com/Patrity/",target:"_blank","aria-label":"View Twitter",color:"neutral",variant:"ghost"})]),_:1})])}}});export{Ce as default};
@@ -1 +0,0 @@
1
- import{a as y,aZ as m,Q as c,R as _,S as f,a3 as v,V as g,C as e,a2 as E,$ as O,q as S,T as I,bC as h,bD as q,e as b,b9 as B,a7 as M}from"./BaPPQtFe.js";import{i as D}from"./Dsk8JtTw.js";import{F as $,u as k,a as R}from"./BZZeOWzQ.js";import{u as A}from"./D1JmZKz7.js";var T=y({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(t){const o=t;m();const a=D();return(s,r)=>(_(),c(e(E),g(o,{type:s.as==="button"?"button":void 0,onClick:r[0]||(r[0]=d=>e(a).onOpenChange(!1))}),{default:f(()=>[v(s.$slots,"default")]),_:3},16,["type"]))}}),re=T;const ne="menu.itemSelect",F=["Enter"," "],K=["ArrowDown","PageUp","Home"],L=["ArrowUp","PageDown","End"],le=[...K,...L],ue={ltr:[...F,"ArrowRight"],rtl:[...F,"ArrowLeft"]},ie={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function N(t){return t?"open":"closed"}function Y(t){return t==="indeterminate"}function de(t){return Y(t)?"indeterminate":t?"checked":"unchecked"}function pe(t){const o=O();for(const a of t)if(a===o||(a.focus(),O()!==o))return}function U(t,o){const{x:a,y:s}=t;let r=!1;for(let d=0,p=o.length-1;d<o.length;p=d++){const u=o[d].x,l=o[d].y,n=o[p].x,i=o[p].y;l>s!=i>s&&a<(n-u)*(s-l)/(i-l)+u&&(r=!r)}return r}function fe(t,o){if(!o)return!1;const a={x:t.clientX,y:t.clientY};return U(a,o)}function ce(t){return t.pointerType==="mouse"}var j=y({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:o}){const a=t,s=o,r=D(),{forwardRef:d,currentElement:p}=m();return r.titleId||=A(void 0,"reka-dialog-title"),r.descriptionId||=A(void 0,"reka-dialog-description"),S(()=>{r.contentElement=p,O()!==document.body&&(r.triggerElement.value=O())}),(u,l)=>(_(),c(e($),{"as-child":"",loop:"",trapped:a.trapFocus,onMountAutoFocus:l[5]||(l[5]=n=>s("openAutoFocus",n)),onUnmountAutoFocus:l[6]||(l[6]=n=>s("closeAutoFocus",n))},{default:f(()=>[I(e(h),g({id:e(r).contentId,ref:e(d),as:u.as,"as-child":u.asChild,"disable-outside-pointer-events":u.disableOutsidePointerEvents,role:"dialog","aria-describedby":e(r).descriptionId,"aria-labelledby":e(r).titleId,"data-state":e(N)(e(r).open.value)},u.$attrs,{onDismiss:l[0]||(l[0]=n=>e(r).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=n=>s("escapeKeyDown",n)),onFocusOutside:l[2]||(l[2]=n=>s("focusOutside",n)),onInteractOutside:l[3]||(l[3]=n=>s("interactOutside",n)),onPointerDownOutside:l[4]||(l[4]=n=>s("pointerDownOutside",n))}),{default:f(()=>[v(u.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),P=j,x=y({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:o}){const a=t,s=o,r=D(),d=q(s),{forwardRef:p,currentElement:u}=m();return k(u),(l,n)=>(_(),c(P,g({...a,...e(d)},{ref:e(p),"trap-focus":e(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:n[0]||(n[0]=i=>{i.defaultPrevented||(i.preventDefault(),e(r).triggerElement.value?.focus())}),onPointerDownOutside:n[1]||(n[1]=i=>{const C=i.detail.originalEvent,w=C.button===0&&C.ctrlKey===!0;(C.button===2||w)&&i.preventDefault()}),onFocusOutside:n[2]||(n[2]=i=>{i.preventDefault()})}),{default:f(()=>[v(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),V=x,H=y({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:o}){const a=t,r=q(o);m();const d=D(),p=b(!1),u=b(!1);return(l,n)=>(_(),c(P,g({...a,...e(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:n[0]||(n[0]=i=>{i.defaultPrevented||(p.value||e(d).triggerElement.value?.focus(),i.preventDefault()),p.value=!1,u.value=!1}),onInteractOutside:n[1]||(n[1]=i=>{i.defaultPrevented||(p.value=!0,i.detail.originalEvent.type==="pointerdown"&&(u.value=!0));const C=i.target;e(d).triggerElement.value?.contains(C)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&u.value&&i.preventDefault()})}),{default:f(()=>[v(l.$slots,"default")]),_:3},16))}}),G=H,Q=y({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:o}){const a=t,s=o,r=D(),d=q(s),{forwardRef:p}=m();return(u,l)=>(_(),c(e(B),{present:u.forceMount||e(r).open.value},{default:f(()=>[e(r).modal.value?(_(),c(V,g({key:0,ref:e(p)},{...a,...e(d),...u.$attrs}),{default:f(()=>[v(u.$slots,"default")]),_:3},16)):(_(),c(G,g({key:1,ref:e(p)},{...a,...e(d),...u.$attrs}),{default:f(()=>[v(u.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),_e=Q,X=y({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(t){const o=t;m();const a=D();return(s,r)=>(_(),c(e(E),g(o,{id:e(a).descriptionId}),{default:f(()=>[v(s.$slots,"default")]),_:3},16,["id"]))}}),ve=X,Z=y({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const o=D();return R(!0),m(),(a,s)=>(_(),c(e(E),{as:a.as,"as-child":a.asChild,"data-state":e(o).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:f(()=>[v(a.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),z=Z,J=y({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){const o=D(),{forwardRef:a}=m();return(s,r)=>e(o)?.modal.value?(_(),c(e(B),{key:0,present:s.forceMount||e(o).open.value},{default:f(()=>[I(z,g(s.$attrs,{ref:e(a),as:s.as,"as-child":s.asChild}),{default:f(()=>[v(s.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):M("v-if",!0)}}),ge=J,W=y({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(t){const o=t,a=D();return m(),(s,r)=>(_(),c(e(E),g(o,{id:e(a).titleId}),{default:f(()=>[v(s.$slots,"default")]),_:3},16,["id"]))}}),ye=W;export{_e as D,le as F,ne as I,L,F as S,ye as a,ve as b,re as c,ge as d,ce as e,pe as f,N as g,de as h,fe as i,Y as j,ie as k,ue as l};
@@ -1 +0,0 @@
1
- import"./BaPPQtFe.js";const s=globalThis.setInterval;export{s};
@@ -1 +0,0 @@
1
- import{am as J,N as K,aD as W,at as X,au as Y,c as x,aj as q,aE as Z,q as _,Q as u,R as n,S as ee,a9 as ie,a3 as f,G as I,a7 as g,V as S,C as a,U as r,_ as A,av as ae,a2 as le,aF as se}from"./BaPPQtFe.js";import{u as ne}from"./BBygTbuF.js";const te={slots:{root:"relative inline-flex items-center",base:["w-full rounded-md border-0 appearance-none placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leading:"absolute inset-y-0 start-0 flex items-center",leadingIcon:"shrink-0 text-dimmed",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailing:"absolute inset-y-0 end-0 flex items-center",trailingIcon:"shrink-0 text-dimmed"},variants:{fieldGroup:{horizontal:{root:"group has-focus-visible:z-[1]",base:"group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"},vertical:{root:"group has-focus-visible:z-[1]",base:"group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"}},size:{xs:{base:"px-2 py-1 text-xs gap-1",leading:"ps-2",trailing:"pe-2",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leading:"ps-2.5",trailing:"pe-2.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},lg:{base:"px-3 py-2 text-sm gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"px-3 py-2 text-base gap-2",leading:"ps-3",trailing:"pe-3",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6"}},variant:{outline:"text-highlighted bg-default ring ring-inset ring-accented",soft:"text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",subtle:"text-highlighted bg-elevated ring ring-inset ring-accented",ghost:"text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",none:"text-highlighted bg-transparent"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},leading:{true:""},trailing:{true:""},loading:{true:""},highlight:{true:""},type:{file:"file:me-1.5 file:font-medium file:text-muted file:outline-none"}},compoundVariants:[{color:"primary",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"},{color:"secondary",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"},{color:"success",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"},{color:"info",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"},{color:"warning",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"},{color:"error",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"},{color:"primary",highlight:!0,class:"ring ring-inset ring-primary"},{color:"secondary",highlight:!0,class:"ring ring-inset ring-secondary"},{color:"success",highlight:!0,class:"ring ring-inset ring-success"},{color:"info",highlight:!0,class:"ring ring-inset ring-info"},{color:"warning",highlight:!0,class:"ring ring-inset ring-warning"},{color:"error",highlight:!0,class:"ring ring-inset ring-error"},{color:"neutral",variant:["outline","subtle"],class:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"},{color:"neutral",highlight:!0,class:"ring ring-inset ring-inverted"},{leading:!0,size:"xs",class:"ps-7"},{leading:!0,size:"sm",class:"ps-8"},{leading:!0,size:"md",class:"ps-9"},{leading:!0,size:"lg",class:"ps-10"},{leading:!0,size:"xl",class:"ps-11"},{trailing:!0,size:"xs",class:"pe-7"},{trailing:!0,size:"sm",class:"pe-8"},{trailing:!0,size:"md",class:"pe-9"},{trailing:!0,size:"lg",class:"pe-10"},{trailing:!0,size:"xl",class:"pe-11"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}}],defaultVariants:{size:"md",color:"primary",variant:"outline"}},re=["id","type","value","name","placeholder","disabled","required","autocomplete"],ge=Object.assign({inheritAttrs:!1},{__name:"UInput",props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},type:{type:null,required:!1,default:"text"},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autocomplete:{type:null,required:!1,default:"off"},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},modelModifiers:{type:Object,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:["update:modelValue","blur","change"],setup(s,{expose:B,emit:V}){const e=s,d=V,o=J(),m=ne(e,"modelValue",d,{defaultValue:e.defaultValue}),k=K(),{emitFormBlur:F,emitFormInput:C,emitFormChange:M,size:w,color:N,id:G,name:$,highlight:R,disabled:j,emitFormFocus:v,ariaAttrs:T}=W(e,{deferInputValidation:!0}),{orientation:D,size:O}=X(e),{isLeading:c,isTrailing:b,leadingIconName:h,trailingIconName:y}=Y(e),E=x(()=>O.value||w.value),l=x(()=>q({extend:q(te),...k.ui?.input||{}})({type:e.type,color:N.value,variant:e.variant,size:E?.value,loading:e.loading,highlight:R.value,leading:c.value||!!e.avatar||!!o.leading,trailing:b.value||!!o.trailing,fieldGroup:D.value})),p=Z("inputRef");function z(i){e.modelModifiers?.trim&&(i=i?.trim()??null),(e.modelModifiers?.number||e.type==="number")&&(i=se(i)),e.modelModifiers?.nullable&&(i||=null),e.modelModifiers?.optional&&(i||=void 0),m.value=i,C()}function P(i){e.modelModifiers?.lazy||z(i.target.value)}function U(i){const t=i.target.value;e.modelModifiers?.lazy&&z(t),e.modelModifiers?.trim&&(i.target.value=t.trim()),M(),d("change",i)}function L(i){F(),d("blur",i)}function Q(){e.autofocus&&p.value?.focus()}return _(()=>{setTimeout(()=>{Q()},e.autofocusDelay)}),B({inputRef:p}),(i,t)=>(n(),u(a(le),{as:s.as,"data-slot":"root",class:r(l.value.root({class:[e.ui?.root,e.class]}))},{default:ee(()=>[ie("input",S({id:a(G),ref_key:"inputRef",ref:p,type:s.type,value:a(m),name:a($),placeholder:s.placeholder,"data-slot":"base",class:l.value.base({class:e.ui?.base}),disabled:a(j),required:s.required,autocomplete:s.autocomplete},{...i.$attrs,...a(T)},{onInput:P,onBlur:L,onChange:U,onFocus:t[0]||(t[0]=(...H)=>a(v)&&a(v)(...H))}),null,16,re),f(i.$slots,"default",{ui:l.value}),a(c)||s.avatar||o.leading?(n(),I("span",{key:0,"data-slot":"leading",class:r(l.value.leading({class:e.ui?.leading}))},[f(i.$slots,"leading",{ui:l.value},()=>[a(c)&&a(h)?(n(),u(A,{key:0,name:a(h),"data-slot":"leadingIcon",class:r(l.value.leadingIcon({class:e.ui?.leadingIcon}))},null,8,["name","class"])):s.avatar?(n(),u(ae,S({key:1,size:e.ui?.leadingAvatarSize||l.value.leadingAvatarSize()},s.avatar,{"data-slot":"leadingAvatar",class:l.value.leadingAvatar({class:e.ui?.leadingAvatar})}),null,16,["size","class"])):g("",!0)])],2)):g("",!0),a(b)||o.trailing?(n(),I("span",{key:1,"data-slot":"trailing",class:r(l.value.trailing({class:e.ui?.trailing}))},[f(i.$slots,"trailing",{ui:l.value},()=>[a(y)?(n(),u(A,{key:0,name:a(y),"data-slot":"trailingIcon",class:r(l.value.trailingIcon({class:e.ui?.trailingIcon}))},null,8,["name","class"])):g("",!0)])],2)):g("",!0)]),_:3},8,["as","class"]))}});export{ge as _};
@@ -1,76 +0,0 @@
1
- import{_ as ve}from"./DPuJYSUH.js";import{a as Y,ay as Lt,c as U,e as $,G as D,q as Ut,k as Ht,a1 as It,f as H,R as O,a7 as zt,ag as Ct,ah as Mt,T as b,a9 as C,_ as me,ac as Q,C as w,U as qt,aE as ge,Q as ht,bL as xe,S as A,ai as B,a8 as rt,W as be}from"./BaPPQtFe.js";import{_ as ke}from"./ChMIRIq6.js";import{e as Se}from"./BBygTbuF.js";import{X as Xt,c as F,i as Gt,a as Yt,D as lt,e as W,b as ut,g as J,j as q,h as Zt,u as Wt,v as we,s as X,f as Te,w as Ae,l as $e,p as Qt,q as Jt,r as Kt,S as Ce,C as Me,A as Oe,z as Pe,t as Ot}from"./T_w6A2Zo.js";import{_ as Ne}from"./DlAUqK2U.js";import{_ as Ee}from"./DamUHI17.js";import{_ as De}from"./BDUpLPg_.js";import{_ as je}from"./CExLOuIW.js";import{_ as Re,a as Fe}from"./BPAM-iC7.js";import{_ as Ve}from"./DnToOWVx.js";var _t=Math.PI,ft=2*_t,L=1e-6,Be=ft-L;function dt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new dt}dt.prototype=kt.prototype={constructor:dt,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,n){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+n)},bezierCurveTo:function(t,e,i,n,s,o){this._+="C"+ +t+","+ +e+","+ +i+","+ +n+","+(this._x1=+s)+","+(this._y1=+o)},arcTo:function(t,e,i,n,s){t=+t,e=+e,i=+i,n=+n,s=+s;var o=this._x1,l=this._y1,r=i-t,a=n-e,f=o-t,c=l-e,h=f*f+c*c;if(s<0)throw new Error("negative radius: "+s);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>L)if(!(Math.abs(c*r-a*f)>L)||!s)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var u=i-o,g=n-l,p=r*r+a*a,y=u*u+g*g,d=Math.sqrt(p),m=Math.sqrt(h),v=s*Math.tan((_t-Math.acos((p+h-y)/(2*d*m)))/2),_=v/m,x=v/d;Math.abs(_-1)>L&&(this._+="L"+(t+_*f)+","+(e+_*c)),this._+="A"+s+","+s+",0,0,"+ +(c*u>f*g)+","+(this._x1=t+x*r)+","+(this._y1=e+x*a)}},arc:function(t,e,i,n,s,o){t=+t,e=+e,i=+i,o=!!o;var l=i*Math.cos(n),r=i*Math.sin(n),a=t+l,f=e+r,c=1^o,h=o?n-s:s-n;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+a+","+f:(Math.abs(this._x1-a)>L||Math.abs(this._y1-f)>L)&&(this._+="L"+a+","+f),i&&(h<0&&(h=h%ft+ft),h>Be?this._+="A"+i+","+i+",0,1,"+c+","+(t-l)+","+(e-r)+"A"+i+","+i+",0,1,"+c+","+(this._x1=a)+","+(this._y1=f):h>L&&(this._+="A"+i+","+i+",0,"+ +(h>=_t)+","+c+","+(this._x1=t+i*Math.cos(s))+","+(this._y1=e+i*Math.sin(s))))},rect:function(t,e,i,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +n+"h"+-i+"Z"},toString:function(){return this._}};function M(t){return function(){return t}}var Pt=1e-12;function te(t){this._context=t}te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function St(t){return new te(t)}function ee(t){return t[0]}function ie(t){return t[1]}function ne(){var t=ee,e=ie,i=M(!0),n=null,s=St,o=null;function l(r){var a,f=r.length,c,h=!1,u;for(n==null&&(o=s(u=kt())),a=0;a<=f;++a)!(a<f&&i(c=r[a],a,r))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,a,r),+e(c,a,r));if(u)return o=null,u+""||null}return l.x=function(r){return arguments.length?(t=typeof r=="function"?r:M(+r),l):t},l.y=function(r){return arguments.length?(e=typeof r=="function"?r:M(+r),l):e},l.defined=function(r){return arguments.length?(i=typeof r=="function"?r:M(!!r),l):i},l.curve=function(r){return arguments.length?(s=r,n!=null&&(o=s(n)),l):s},l.context=function(r){return arguments.length?(r==null?n=o=null:o=s(n=r),l):n},l}function Le(){var t=ee,e=null,i=M(0),n=ie,s=M(!0),o=null,l=St,r=null;function a(c){var h,u,g,p=c.length,y,d=!1,m,v=new Array(p),_=new Array(p);for(o==null&&(r=l(m=kt())),h=0;h<=p;++h){if(!(h<p&&s(y=c[h],h,c))===d)if(d=!d)u=h,r.areaStart(),r.lineStart();else{for(r.lineEnd(),r.lineStart(),g=h-1;g>=u;--g)r.point(v[g],_[g]);r.lineEnd(),r.areaEnd()}d&&(v[h]=+t(y,h,c),_[h]=+i(y,h,c),r.point(e?+e(y,h,c):v[h],n?+n(y,h,c):_[h]))}if(m)return r=null,m+""||null}function f(){return ne().defined(s).curve(l).context(o)}return a.x=function(c){return arguments.length?(t=typeof c=="function"?c:M(+c),e=null,a):t},a.x0=function(c){return arguments.length?(t=typeof c=="function"?c:M(+c),a):t},a.x1=function(c){return arguments.length?(e=c==null?null:typeof c=="function"?c:M(+c),a):e},a.y=function(c){return arguments.length?(i=typeof c=="function"?c:M(+c),n=null,a):i},a.y0=function(c){return arguments.length?(i=typeof c=="function"?c:M(+c),a):i},a.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:M(+c),a):n},a.lineX0=a.lineY0=function(){return f().x(t).y(i)},a.lineY1=function(){return f().x(t).y(n)},a.lineX1=function(){return f().x(e).y(i)},a.defined=function(c){return arguments.length?(s=typeof c=="function"?c:M(!!c),a):s},a.curve=function(c){return arguments.length?(l=c,o!=null&&(r=l(o)),a):l},a.context=function(c){return arguments.length?(c==null?o=r=null:r=l(o=c),a):o},a}function R(){}function K(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function nt(t){this._context=t}nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ue(t){return new nt(t)}function se(t){this._context=t}se.prototype={areaStart:R,areaEnd:R,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:K(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function He(t){return new se(t)}function ae(t){this._context=t}ae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,n):this._context.moveTo(i,n);break;case 3:this._point=4;default:K(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ie(t){return new ae(t)}function oe(t,e){this._basis=new nt(t),this._beta=e}oe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var n=t[0],s=e[0],o=t[i]-n,l=e[i]-s,r=-1,a;++r<=i;)a=r/i,this._basis.point(this._beta*t[r]+(1-this._beta)*(n+a*o),this._beta*e[r]+(1-this._beta)*(s+a*l));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ze=(function t(e){function i(n){return e===1?new nt(n):new oe(n,e)}return i.beta=function(n){return t(+n)},i})(.85);function tt(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function wt(t,e){this._context=t,this._k=(1-e)/6}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tt(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:tt(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const qe=(function t(e){function i(n){return new wt(n,e)}return i.tension=function(n){return t(+n)},i})(0);function Tt(t,e){this._context=t,this._k=(1-e)/6}Tt.prototype={areaStart:R,areaEnd:R,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:tt(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xe=(function t(e){function i(n){return new Tt(n,e)}return i.tension=function(n){return t(+n)},i})(0);function At(t,e){this._context=t,this._k=(1-e)/6}At.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tt(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ge=(function t(e){function i(n){return new At(n,e)}return i.tension=function(n){return t(+n)},i})(0);function $t(t,e,i){var n=t._x1,s=t._y1,o=t._x2,l=t._y2;if(t._l01_a>Pt){var r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,a=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/a,s=(s*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/a}if(t._l23_a>Pt){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-e*t._l12_2a)/c,l=(l*f+t._y1*t._l23_2a-i*t._l12_2a)/c}t._context.bezierCurveTo(n,s,o,l,t._x2,t._y2)}function re(t,e){this._context=t,this._alpha=e}re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:$t(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ye=(function t(e){function i(n){return e?new re(n,e):new wt(n,0)}return i.alpha=function(n){return t(+n)},i})(.5);function le(t,e){this._context=t,this._alpha=e}le.prototype={areaStart:R,areaEnd:R,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$t(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ze=(function t(e){function i(n){return e?new le(n,e):new Tt(n,0)}return i.alpha=function(n){return t(+n)},i})(.5);function ce(t,e){this._context=t,this._alpha=e}ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$t(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const We=(function t(e){function i(n){return e?new ce(n,e):new At(n,0)}return i.alpha=function(n){return t(+n)},i})(.5);function he(t){this._context=t}he.prototype={areaStart:R,areaEnd:R,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Qe(t){return new he(t)}function Nt(t){return t<0?-1:1}function Et(t,e,i){var n=t._x1-t._x0,s=e-t._x1,o=(t._y1-t._y0)/(n||s<0&&-0),l=(i-t._y1)/(s||n<0&&-0),r=(o*s+l*n)/(n+s);return(Nt(o)+Nt(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(r))||0}function Dt(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function ct(t,e,i){var n=t._x0,s=t._y0,o=t._x1,l=t._y1,r=(o-n)/3;t._context.bezierCurveTo(n+r,s+r*e,o-r,l-r*i,o,l)}function et(t){this._context=t}et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ct(this,this._t0,Dt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ct(this,Dt(this,i=Et(this,t,e)),i);break;default:ct(this,this._t0,i=Et(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function ue(t){this._context=new _e(t)}(ue.prototype=Object.create(et.prototype)).point=function(t,e){et.prototype.point.call(this,e,t)};function _e(t){this._context=t}_e.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,n,s,o){this._context.bezierCurveTo(e,t,n,i,o,s)}};function Je(t){return new et(t)}function Ke(t){return new ue(t)}function fe(t){this._context=t}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var n=jt(t),s=jt(e),o=0,l=1;l<i;++o,++l)this._context.bezierCurveTo(n[0][o],s[0][o],n[1][o],s[1][o],t[l],e[l]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function jt(t){var e,i=t.length-1,n,s=new Array(i),o=new Array(i),l=new Array(i);for(s[0]=0,o[0]=2,l[0]=t[0]+2*t[1],e=1;e<i-1;++e)s[e]=1,o[e]=4,l[e]=4*t[e]+2*t[e+1];for(s[i-1]=2,o[i-1]=7,l[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=s[e]/o[e-1],o[e]-=n,l[e]-=n*l[e-1];for(s[i-1]=l[i-1]/o[i-1],e=i-2;e>=0;--e)s[e]=(l[e]-s[e+1])/o[e];for(o[i-1]=(t[i]+s[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-s[e+1];return[s,o]}function ti(t){return new fe(t)}function st(t,e){this._context=t,this._t=e}st.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function ei(t){return new st(t,.5)}function ii(t){return new st(t,0)}function ni(t){return new st(t,1)}function Rt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,n)}return i}function si(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Rt(Object(i),!0).forEach(function(n){ai(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Rt(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function G(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(e){return typeof e}:G=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(t)}function ai(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function it(){return it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},it.apply(this,arguments)}function oi(t,e){if(t){if(typeof t=="string")return Ft(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ft(t,e)}}function Ft(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function de(t,e){var i=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=oi(t))||e){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(a){throw a},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,r;return{s:function(){i=i.call(t)},n:function(){var a=i.next();return o=a.done,a},e:function(a){l=!0,r=a},f:function(){try{!o&&i.return!=null&&i.return()}finally{if(l)throw r}}}}function ri(t,e){var i=[],n=[];function s(o,l){if(o.length===1)i.push(o[0]),n.push(o[0]);else{for(var r=Array(o.length-1),a=0;a<r.length;a++)a===0&&i.push(o[0]),a===r.length-1&&n.push(o[a+1]),r[a]=[(1-l)*o[a][0]+l*o[a+1][0],(1-l)*o[a][1]+l*o[a+1][1]];s(r,l)}}return t.length&&s(t,e),{left:i,right:n.reverse()}}function li(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function ci(t,e){e=e||2;for(var i=[],n=t,s=1/e,o=0;o<e-1;o++){var l=s/(1-s*o),r=ri(n,l);i.push(r.left),n=r.right}return i.push(n),i}function hi(t,e,i){var n=[[t.x,t.y]];return e.x1!=null&&n.push([e.x1,e.y1]),e.x2!=null&&n.push([e.x2,e.y2]),n.push([e.x,e.y]),ci(n,i).map(li)}var ui=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,I={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(I).forEach(function(t){I[t.toLowerCase()]=I[t]});function pt(t,e){for(var i=Array(t),n=0;n<t;n++)i[n]=e;return i}function _i(t){return"".concat(t.type).concat(I[t.type].map(function(e){return t[e]}).join(","))}function fi(t,e){var i={x1:"x",y1:"y",x2:"x",y2:"y"},n=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var s={};Object.keys(e).forEach(function(o){var l=e[o],r=t[o];r===void 0&&(n.includes(o)?r=l:(r===void 0&&i[o]&&(r=t[i[o]]),r===void 0&&(r=0))),s[o]=r}),s.type=e.type,t=s}return t}function di(t,e,i){var n=[];if(e.type==="L"||e.type==="Q"||e.type==="C")n=n.concat(hi(t,e,i));else{var s=it({},t);s.type==="M"&&(s.type="L"),n=n.concat(pt(i-1).map(function(){return s})),n.push(e)}return n}function Vt(t,e,i){var n=t.length-1,s=e.length-1,o=n/s,l=pt(s).reduce(function(a,f,c){var h=Math.floor(o*c);if(i&&h<t.length-1&&i(t[h],t[h+1])){var u=o*c%1<.5;a[h]&&(u?h>0?h-=1:h<t.length-1&&(h+=1):h<t.length-1?h+=1:h>0&&(h-=1))}return a[h]=(a[h]||0)+1,a},[]),r=l.reduce(function(a,f,c){if(c===t.length-1){var h=pt(f,it({},t[t.length-1]));return h[0].type==="M"&&h.forEach(function(u){u.type="L"}),a.concat(h)}return a.concat(di(t[c],t[c+1],f))},[]);return r.unshift(t[0]),r}function Bt(t){for(var e=(t||"").match(ui)||[],i=[],n,s,o=0;o<e.length;++o)if(n=I[e[o]],n){s={type:e[o]};for(var l=0;l<n.length;++l)s[n[l]]=+e[o+l+1];o+=n.length,i.push(s)}return i}function pi(t,e,i){var n=t==null?[]:t.slice(),s=e==null?[]:e.slice(),o=G(i)==="object"?i:{excludeSegment:i,snapEndsToInput:!0},l=o.excludeSegment,r=o.snapEndsToInput;if(!n.length&&!s.length)return function(){return[]};var a=(n.length===0||n[n.length-1].type==="Z")&&(s.length===0||s[s.length-1].type==="Z");n.length>0&&n[n.length-1].type==="Z"&&n.pop(),s.length>0&&s[s.length-1].type==="Z"&&s.pop(),n.length?s.length||s.push(n[0]):n.push(s[0]);var f=Math.abs(s.length-n.length);f!==0&&(s.length>n.length?n=Vt(n,s,l):s.length<n.length&&(s=Vt(s,n,l))),n=n.map(function(h,u){return fi(h,s[u])});var c=n.map(function(h){return si({},h)});return a&&(c.push({type:"Z"}),n.push({type:"Z"})),function(u){if(u===1&&r)return e??[];if(u===0)return n;for(var g=0;g<c.length;++g){var p=n[g],y=s[g],d=c[g],m=de(I[d.type]),v;try{for(m.s();!(v=m.n()).done;){var _=v.value;d[_]=(1-u)*p[_]+u*y[_],(_==="largeArcFlag"||_==="sweepFlag")&&(d[_]=Math.round(d[_]))}}catch(x){m.e(x)}finally{m.f()}}return c}}function pe(t,e,i){var n=Bt(t),s=Bt(e),o=G(i)==="object"?i:{excludeSegment:i,snapEndsToInput:!0},l=o.excludeSegment,r=o.snapEndsToInput;if(!n.length&&!s.length)return function(){return""};var a=pi(n,s,{excludeSegment:l,snapEndsToInput:r});return function(c){if(c===1&&r)return e??"";var h=a(c),u="",g=de(h),p;try{for(g.s();!(p=g.n()).done;){var y=p.value;u+=_i(y)}}catch(d){g.e(d)}finally{g.f()}return u}}var S;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(S||(S={}));const yt={[S.Basis]:Ue,[S.BasisClosed]:He,[S.BasisOpen]:Ie,[S.Bundle]:ze,[S.Cardinal]:qe,[S.CardinalClosed]:Xe,[S.CardinalOpen]:Ge,[S.CatmullRom]:Ye,[S.CatmullRomClosed]:Ze,[S.CatmullRomOpen]:We,[S.Linear]:St,[S.LinearClosed]:Qe,[S.MonotoneX]:Je,[S.MonotoneY]:Ke,[S.Natural]:ti,[S.Step]:ei,[S.StepAfter]:ni,[S.StepBefore]:ii},yi=Object.assign(Object.assign({},Xt),{curveType:S.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),vi=Gt`
3
- :root {
4
- --vis-line-cursor: default;
5
- --vis-line-stroke-dasharray: none;
6
- --vis-line-stroke-dashoffset: 0;
7
-
8
- --vis-line-gapfill-stroke-dasharray: 2 3;
9
- --vis-line-gapfill-stroke-opacity: 0.8;
10
- --vis-line-gapfill-stroke-dashoffset: 0;
11
- }
12
- `,mi=F`
13
- label: line-component;
14
- `,z=F`
15
- label: line;
16
- transition: opacity 200ms;
17
- cursor: var(--vis-line-cursor);
18
- `,vt=F`
19
- label: linePath;
20
- fill: none;
21
- stroke-dasharray: var(--vis-line-stroke-dasharray);
22
- stroke-dashoffset: var(--vis-line-stroke-dashoffset);
23
- `,mt=F`
24
- label: lineSelectionHelper;
25
- fill: none;
26
- stroke: rgba(0, 0, 0, 0);
27
- stroke-width: 8px;
28
- `,gt=F`
29
- opacity: 0.2;
30
- `,xt=F`
31
- label: interpolated-path;
32
- fill: none;
33
- stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
34
- stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
35
- stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
36
- `,gi=Object.freeze(Object.defineProperty({__proto__:null,dim:gt,globalStyles:vi,interpolatedPath:xt,line:z,linePath:vt,lineSelectionHelper:mt,root:mi},Symbol.toStringTag,{value:"Module"}));class at extends Yt{constructor(e){super(),this._defaultConfig=yi,this.config=this._defaultConfig,this.curve=yt[S.MonotoneX],this.events={[at.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},e&&this.setConfig(e)}get bleed(){const{config:{lineWidth:e}}=this,i=this.yScale.domain(),s=(this.yScale.range()[0]>this.yScale.range()[1]?lt.North:lt.South)===lt.South,o=e>3,l=e>=10;return{top:!l&&(!s&&i[1]===0||s&&i[0]===0)?0:e/2,bottom:!l&&(!s&&i[0]===0||s&&i[1]===0)?0:e/2,left:o?e/2:0,right:o?e/2:0}}_render(e){super._render(e);const{config:i,datamodel:{data:n}}=this,s=W(e)?e:i.duration;this.curve=yt[i.curveType],this.lineGen=ne().x(h=>h.x).y(h=>h.y).defined(h=>h.defined).curve(this.curve);const o=ut(i.y)?i.y:[i.y],l=n.map((h,u)=>this.xScale(J(h,i.x,u))),r=o.map(h=>{const u=n.map((m,v)=>{const _=J(m,h,v),x=(W(_)||_===null)&&isFinite(_)?_:i.fallbackValue,T=i.interpolateMissingData?(W(_)||_===null)&&isFinite(_):isFinite(x);return{x:l[v],y:this.yScale(x??0),defined:T,value:x}}),g=u.reduce((m,v)=>v.defined||m,!1);let p=!1;const y=u.reduce((m,v,_)=>{!v.defined&&isFinite(i.fallbackValue)&&m.push(Object.assign(Object.assign({},v),{defined:!0})),!v.defined&&!p&&(p=!0);const x=_>0&&!u[_-1].defined||_<u.length-1&&!u[_+1].defined;return v.defined&&x&&(p||m.push(Object.assign(Object.assign({},v),{defined:!1})),m.push(v),p=!1),m},[]),d=g&&u.some(m=>m.value!==null);return{values:u,defined:g,gaps:y,visible:d}}),a=this.g.selectAll(`.${z}`).data(r),f=a.enter().append("g").attr("class",z);f.append("path").attr("class",vt).attr("stroke",(h,u)=>q(n,i.color,u)).attr("stroke-opacity",0).attr("stroke-width",i.lineWidth),f.append("path").attr("class",mt).attr("d",this._emptyPath()),f.append("path").attr("class",xt).attr("d",this._emptyPath()).style("opacity",0);const c=f.merge(a);c.style("cursor",(h,u)=>Zt(n,i.cursor,u)),c.each((h,u,g)=>{var p;const y=Wt(g[u]),d=y.select(`.${vt}`),m=y.select(`.${mt}`),v=y.select(`.${xt}`),_=h.visible,x=we(n,i.lineDashArray,u),T=X(d,s).attr("stroke",q(n,i.color,u)).attr("stroke-width",i.lineWidth).attr("stroke-opacity",_?1:0).style("stroke-dasharray",(p=x?.join(" "))!==null&&p!==void 0?p:null),j=h.values.some(N=>!N.defined),P=this.lineGen(h.values);if(s&&!j){const N=d.attr("d")||this._emptyPath(),E=P||this._emptyPath();T.attrTween("d",()=>pe(N,E))}else h.visible&&T.attr("d",P);m.attr("d",P).attr("visibility",_?null:"hidden"),j&&i.interpolateMissingData?X(v,s).attr("d",this.lineGen(h.gaps)).attr("stroke",q(n,i.color,u)).attr("stroke-width",i.lineWidth-1).style("opacity",1):v.transition().duration(s).style("opacity",0)}),X(a.exit(),s).style("opacity",0).remove()}_emptyPath(){const e=this.xScale.range(),i=this.yScale.range();return`M${e[0]},${i[0]} L${e[1]},${i[0]}`}_highlight(e){const{config:i}=this;i.highlightOnHover&&this.g.selectAll(`.${z}`).classed(gt,n=>n!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${z}`).classed(gt,!1)}}at.selectors=gi;const xi=Object.assign(Object.assign({},Xt),{color:void 0,curveType:S.MonotoneX,baseline:()=>0,opacity:1,cursor:null,minHeight1Px:!1,minHeight:void 0}),ye=F`
37
- label: area-component;
38
- `,bi=Gt`
39
- :root {
40
- --vis-area-cursor: default;
41
- --vis-area-fill-opacity: 1;
42
- --vis-area-stroke-color: none;
43
- --vis-area-stroke-width: 0px;
44
- --vis-area-stroke-dasharray: none;
45
- --vis-area-stroke-opacity: 1;
46
- --vis-area-hover-fill-opacity: none;
47
- --vis-area-hover-stroke-width: none;
48
-
49
- /* Dark Theme */
50
- --vis-dark-area-stroke-color: none;
51
- }
52
-
53
- body.theme-dark ${`.${ye}`} {
54
- --vis-area-stroke-color: var(--vis-dark-area-stroke-color);
55
- }
56
-
57
- `,bt=F`
58
- label: area;
59
- cursor: var(--vis-area-cursor);
60
- fill-opacity: var(--vis-area-fill-opacity);
61
- stroke-width: var(--vis-area-stroke-width);
62
- stroke-dasharray: var(--vis-area-stroke-dasharray);
63
- stroke: var(--vis-area-stroke-color);
64
- stroke-opacity: var(--vis-area-stroke-opacity);
65
-
66
- &:hover {
67
- fill-opacity: var(--vis-area-hover-fill-opacity);
68
- stroke-width: var(--vis-area-hover-stroke-width);
69
- }
70
- `,ki=Object.freeze(Object.defineProperty({__proto__:null,area:bt,globalStyles:bi,root:ye},Symbol.toStringTag,{value:"Module"}));class ot extends Yt{constructor(e){super(),this._defaultConfig=xi,this.config=this._defaultConfig,this.stacked=!0,this.events={[ot.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:i,datamodel:{data:n}}=this,s=W(e)?e:i.duration,o=yt[i.curveType];this._areaGen=Le().x(d=>d.x).y0(d=>d.y0).y1(d=>d.y1).curve(o);const l=ut(i.y)?i.y:[i.y],r=n.map((d,m)=>this.xScale(J(d,i.x,m))),a=Te(n,i.baseline,l,this._prevNegative);this._prevNegative=a.map(d=>!!d.isMostlyNegative);const f=[],c=a.map(d=>d.map((m,v)=>{var _,x;const T=r[v],j=this.yScale(m[0]),P=this.yScale(m[1]),N=P>j,E=f[v]||0,V=N?j+E:j-E,k=N?P+E:P-E;let Z=0;return(i.minHeight||i.minHeight1Px)&&Math.abs(k-V)<((_=i.minHeight)!==null&&_!==void 0?_:1)&&(Z=((x=i.minHeight)!==null&&x!==void 0?x:1)-Math.abs(k-V),f[v]=E+Z),{x:T,y0:V,y1:N?k+Z:k-Z}})),h=c.length-1,u=c.reverse(),g=this.g.selectAll(`.${bt}`).data(u),p=g.enter().append("path").attr("class",bt).attr("d",d=>this._areaGen(d)||this._emptyPath()).style("opacity",0).style("fill",(d,m)=>q(n,i.color,h-m)),y=X(p.merge(g),s).style("opacity",(d,m)=>d.some(_=>_.y0-_.y1!==0)?J(n,i.opacity,h-m):0).style("fill",(d,m)=>q(n,i.color,h-m)).style("cursor",(d,m)=>Zt(n,i.cursor,h-m));s?y.attrTween("d",(m,v,_)=>{const x=Wt(_[v]).attr("d"),T=this._areaGen(m)||this._emptyPath();return pe(x,T)}):y.attr("d",d=>this._areaGen(d)||this._emptyPath()),X(g.exit(),s).style("opacity",0).remove()}getYDataExtent(e){const{config:i,datamodel:n}=this,s=ut(i.y)?i.y:[i.y],o=this.xScale.domain(),l=e?Ae(n.data,o,i.x,!0):n.data;return $e(l,i.baseline,...s)}_emptyPath(){const e=this.xScale.range(),i=this.yScale.domain(),n=this.yScale((i[0]+i[1])/2),s=n;return this._areaGen([{y0:n,y1:s,x:e[0]},{y0:n,y1:s,x:e[1]}])}}ot.selectors=ki;const Si={"data-vis-component":""},wi=Y({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},minHeight:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const i=Lt(Qt),n=t,s=U(()=>i.data.value??n.data),o=Jt(n),l=$();return Ut(()=>{Ht(()=>{var r;l.value=new ot(o.value),(r=l.value)==null||r.setData(s.value),i.update(l.value)})}),It(()=>{var r;(r=l.value)==null||r.destroy(),i.destroy()}),H(o,(r,a)=>{var f;Kt(r,a)||(f=l.value)==null||f.setConfig(o.value)}),H(s,()=>{var r;(r=l.value)==null||r.setData(s.value)}),e({component:l}),(r,a)=>(O(),D("div",Si))}}),Ti={"data-vis-component":""},Ai=Y({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const i=Lt(Qt),n=t,s=U(()=>i.data.value??n.data),o=Jt(n),l=$();return Ut(()=>{Ht(()=>{var r;l.value=new at(o.value),(r=l.value)==null||r.setData(s.value),i.update(l.value)})}),It(()=>{var r;(r=l.value)==null||r.destroy(),i.destroy()}),H(o,(r,a)=>{var f;Kt(r,a)||(f=l.value)==null||f.setConfig(o.value)}),H(s,()=>{var r;(r=l.value)==null||r.setData(s.value)}),e({component:l}),(r,a)=>(O(),D("div",Ti))}}),$i={class:"flex items-center gap-2 text-muted text-sm mb-1"},Ci={class:"text-2xl font-semibold"},Mi=Y({__name:"AgentStatsCards",props:{stats:{},variant:{},loading:{type:Boolean}},setup(t){const e=t;function i(a){return a<.01?"<$0.01":`$${a.toFixed(2)}`}function n(a){return a<1e3?`${a}ms`:a<6e4?`${(a/1e3).toFixed(1)}s`:`${(a/6e4).toFixed(1)}m`}function s(a){if(!a)return"Never";const f=new Date(a),h=new Date().getTime()-f.getTime(),u=Math.floor(h/6e4),g=Math.floor(h/36e5),p=Math.floor(h/864e5);return u<1?"Just now":u<60?`${u}m ago`:g<24?`${g}h ago`:`${p}d ago`}const o=U(()=>{if(e.variant!=="global"||!e.stats)return[];const a=e.stats;return[{title:"Total Agents",icon:"i-lucide-bot",value:a.totalAgents},{title:"Active",icon:"i-lucide-play-circle",value:a.activeAgents},{title:"Runs",icon:"i-lucide-activity",value:a.runsInPeriod},{title:"Success Rate",icon:"i-lucide-check-circle",value:`${a.successRate}%`},{title:"Total Cost",icon:"i-lucide-dollar-sign",value:i(a.totalCostUsd)}]}),l=U(()=>{if(e.variant!=="detail"||!e.stats)return[];const a=e.stats;return[{title:"Total Runs",icon:"i-lucide-activity",value:a.totalRuns},{title:"Success Rate",icon:"i-lucide-check-circle",value:`${a.successRate}%`},{title:"Avg Duration",icon:"i-lucide-clock",value:n(a.avgDurationMs)},{title:"Total Cost",icon:"i-lucide-dollar-sign",value:i(a.totalCostUsd)},{title:"Last Run",icon:"i-lucide-calendar",value:s(a.lastRunAt)}]}),r=U(()=>e.variant==="global"?o.value:l.value);return(a,f)=>{const c=ve,h=me;return O(),D("div",{class:qt(["grid gap-4",(t.variant==="global","grid-cols-2 sm:grid-cols-3 lg:grid-cols-5")])},[t.loading?(O(!0),D(Ct,{key:0},Mt((t.variant==="global",5),u=>(O(),D("div",{key:u,class:"p-4 rounded-lg bg-elevated border border-default"},[b(c,{class:"h-4 w-16 mb-2"}),b(c,{class:"h-8 w-12"})]))),128)):t.stats?(O(!0),D(Ct,{key:1},Mt(w(r),u=>(O(),D("div",{key:u.title,class:"p-4 rounded-lg bg-elevated border border-default"},[C("div",$i,[b(h,{name:u.icon,class:"size-4"},null,8,["name"]),C("span",null,Q(u.title),1)]),C("p",Ci,Q(u.value),1)]))),128)):zt("",!0)],2)}}}),Qi=Object.assign(Mi,{__name:"AgentsAgentStatsCards"}),Oi={class:"text-sm font-medium"},Pi={key:0,class:"flex items-center justify-center h-48 text-muted"},Ni=Y({__name:"AgentActivityChart.client",props:{data:{},title:{},height:{}},setup(t){const e=t,i=ge("cardRef"),{width:n}=Se(i),s=(a,f)=>f,o=a=>a.total,l=a=>{const f=e.data[a];return f?Ot(new Date(f.date),"d MMM"):""},r=a=>`<div class="p-2 text-sm">
71
- <div class="font-medium">${Ot(new Date(a.date),"MMM d, yyyy")}</div>
72
- <div class="text-success">Success: ${a.success}</div>
73
- <div class="text-error">Errors: ${a.error}</div>
74
- <div class="text-muted">Total: ${a.total}</div>
75
- <div class="text-muted">Cost: $${a.costUsd.toFixed(4)}</div>
76
- </div>`;return(a,f)=>{const c=ke;return O(),ht(c,{ref_key:"cardRef",ref:i,ui:{root:"overflow-visible",body:"!px-0 !pt-0 !pb-3"}},xe({default:A(()=>[t.data.length===0?(O(),D("div",Pi," No activity data ")):(O(),ht(w(Ce),{key:1,data:t.data,padding:{top:10,left:10,right:10,bottom:10},class:qt(t.height||"h-48"),width:w(n)},{default:A(()=>[b(w(Ai),{x:s,y:o,color:"var(--ui-primary)"}),b(w(wi),{x:s,y:o,color:"var(--ui-primary)",opacity:.1}),b(w(Me),{type:"x",x:s,"tick-format":l}),b(w(Oe),{color:"var(--ui-primary)",template:r}),b(w(Pe))]),_:1},8,["data","class","width"]))]),_:2},[t.title?{name:"header",fn:A(()=>[C("p",Oi,Q(t.title),1)]),key:"0"}:void 0]),1536)}}}),Ji=Object.assign(Ne(Ni,[["__scopeId","data-v-b8265fd1"]]),{__name:"AgentsAgentActivityChart"}),Ei={class:"agent-form-body"},Di={class:"agent-form-prompt"},ji={class:"agent-form-fields"},Ri={class:"grid grid-cols-2 gap-4"},Fi={class:"flex items-center gap-2"},Vi={class:"flex justify-end gap-2 pt-4"},Bi=Y({__name:"AgentForm",props:{agent:{}},emits:["submit","cancel"],setup(t,{emit:e}){const i=t,n=e,s=$(""),o=$(""),l=$("0 8 * * *"),r=$(""),a=$(!0),f=$(50),c=$(void 0),h=[{label:"Every 5 minutes",value:"*/5 * * * *"},{label:"Every hour",value:"0 * * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Daily at 8am",value:"0 8 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Weekly (Sunday midnight)",value:"0 0 * * 0"},{label:"Custom",value:"custom"}],u=$("0 8 * * *"),g=$(""),p=[[{kind:"mark",mark:"bold",icon:"i-lucide-bold"},{kind:"mark",mark:"italic",icon:"i-lucide-italic"},{kind:"mark",mark:"code",icon:"i-lucide-code"}],[{kind:"bulletList",icon:"i-lucide-list"},{kind:"orderedList",icon:"i-lucide-list-ordered"}],[{kind:"codeBlock",icon:"i-lucide-square-code"}]],y=U(()=>r.value||void 0);H(u,v=>{v!=="custom"&&(l.value=v)}),H(g,v=>{u.value==="custom"&&v&&(l.value=v)}),H(()=>i.agent,v=>{v?(s.value=v.name,o.value=v.description||"",l.value=v.schedule,r.value=v.prompt,a.value=v.enabled,f.value=v.maxTurns??50,c.value=v.maxBudgetUsd??void 0,h.find(x=>x.value===v.schedule)?u.value=v.schedule:(u.value="custom",g.value=v.schedule)):(s.value="",o.value="",l.value="0 8 * * *",u.value="0 8 * * *",g.value="",r.value="",a.value=!0,f.value=50,c.value=void 0)},{immediate:!0});const d=U(()=>s.value.trim()&&l.value.trim()&&r.value.trim());function m(){if(!d.value)return;const v={name:s.value.trim(),description:o.value.trim()||void 0,schedule:l.value.trim(),prompt:r.value.trim(),enabled:a.value,maxTurns:f.value,maxBudgetUsd:c.value};n("submit",v)}return(v,_)=>{const x=Ee,T=De,j=je,P=Re,N=Fe,E=Ve,V=be;return O(),D("div",Ei,[b(T,{label:"Name",required:""},{default:A(()=>[b(x,{modelValue:w(s),"onUpdate:modelValue":_[0]||(_[0]=k=>B(s)?s.value=k:null),placeholder:"Email Digest Agent",class:"w-full"},null,8,["modelValue"])]),_:1}),b(T,{label:"Description"},{default:A(()=>[b(x,{modelValue:w(o),"onUpdate:modelValue":_[1]||(_[1]=k=>B(o)?o.value=k:null),placeholder:"Scans emails and surfaces important items",class:"w-full"},null,8,["modelValue"])]),_:1}),b(T,{label:"Schedule",required:""},{default:A(()=>[b(j,{modelValue:w(u),"onUpdate:modelValue":_[2]||(_[2]=k=>B(u)?u.value=k:null),items:h,"value-key":"value",class:"w-full"},null,8,["modelValue"])]),_:1}),w(u)==="custom"?(O(),ht(T,{key:0,label:"Custom Cron Expression"},{hint:A(()=>[..._[9]||(_[9]=[C("span",{class:"text-xs text-neutral-500"}," Format: minute hour day-of-month month day-of-week ",-1)])]),default:A(()=>[b(x,{modelValue:w(g),"onUpdate:modelValue":_[3]||(_[3]=k=>B(g)?g.value=k:null),placeholder:"0 4 * * *",class:"w-full"},null,8,["modelValue"])]),_:1})):zt("",!0),C("div",Di,[_[10]||(_[10]=C("label",{class:"block text-sm font-medium text-default mb-1.5"},[rt(" Prompt "),C("span",{class:"text-error-500"},"*")],-1)),b(N,{"model-value":w(y),"content-type":"markdown",placeholder:"You are an email scanning agent...",class:"agent-editor","onUpdate:modelValue":_[4]||(_[4]=k=>r.value=k)},{default:A(({editor:k})=>[b(P,{editor:k,items:p,class:"border-b border-default"},null,8,["editor"])]),_:1},8,["model-value"])]),C("div",ji,[C("div",Ri,[b(T,{label:"Max Turns"},{default:A(()=>[b(x,{modelValue:w(f),"onUpdate:modelValue":_[5]||(_[5]=k=>B(f)?f.value=k:null),modelModifiers:{number:!0},type:"number",min:1,max:200,placeholder:"50",class:"w-full"},null,8,["modelValue"])]),_:1}),b(T,{label:"Max Budget (USD)"},{default:A(()=>[b(x,{modelValue:w(c),"onUpdate:modelValue":_[6]||(_[6]=k=>B(c)?c.value=k:null),modelModifiers:{number:!0},type:"number",min:.01,step:.01,placeholder:"No limit",class:"w-full"},null,8,["modelValue"])]),_:1})]),b(T,null,{default:A(()=>[C("div",Fi,[b(E,{modelValue:w(a),"onUpdate:modelValue":_[7]||(_[7]=k=>B(a)?a.value=k:null)},null,8,["modelValue"]),_[11]||(_[11]=C("span",{class:"text-sm"},"Enabled",-1))])]),_:1})]),C("div",Vi,[b(V,{color:"neutral",variant:"ghost",onClick:_[8]||(_[8]=k=>n("cancel"))},{default:A(()=>[..._[12]||(_[12]=[rt(" Cancel ",-1)])]),_:1}),b(V,{disabled:!w(d),onClick:m},{default:A(()=>[rt(Q(t.agent?"Update Agent":"Create Agent"),1)]),_:1},8,["disabled"])])])}}}),Ki=Object.assign(Bi,{__name:"AgentsAgentForm"});function tn(){const t=$([]),e=$(!1),i=$(null);async function n(){e.value=!0,i.value=null;try{const p=await $fetch("/api/agents");return t.value=p.data,p.data}catch(p){throw i.value="Failed to load agents",console.error("Failed to load agents:",p),p}finally{e.value=!1}}async function s(p){try{const y=await $fetch("/api/agents",{method:"POST",body:p});return t.value=[y.data,...t.value],y.data}catch(y){throw console.error("Failed to create agent:",y),y}}async function o(p,y){try{const d=await $fetch(`/api/agents/${p}`,{method:"PATCH",body:y}),m=t.value.findIndex(v=>v.id===p);return m!==-1&&(t.value[m]=d.data),d.data}catch(d){throw console.error("Failed to update agent:",d),d}}async function l(p){try{await $fetch(`/api/agents/${p}`,{method:"DELETE"}),t.value=t.value.filter(y=>y.id!==p)}catch(y){throw console.error("Failed to delete agent:",y),y}}async function r(p){const y=t.value.find(d=>d.id===p);if(y)return o(p,{enabled:!y.enabled})}async function a(p){try{await $fetch(`/api/agents/${p}/run`,{method:"POST"})}catch(y){throw console.error("Failed to run agent:",y),y}}async function f(p){try{await $fetch(`/api/agents/${p}/cancel`,{method:"POST"})}catch(y){throw console.error("Failed to cancel agent:",y),y}}async function c(p,y,d=100){try{return(await $fetch(`/api/agents/${p}/runs`,{query:{limit:d,period:y}})).data}catch(m){throw console.error("Failed to fetch runs:",m),m}}async function h(p){try{return(await $fetch(`/api/agents/${p}`)).data}catch(y){throw console.error("Failed to fetch agent:",y),y}}async function u(p="7d"){try{return(await $fetch("/api/agents/stats",{query:{period:p}})).data}catch(y){throw console.error("Failed to fetch global stats:",y),y}}async function g(p,y="7d"){try{return(await $fetch(`/api/agents/${p}/stats`,{query:{period:y}})).data}catch(d){throw console.error("Failed to fetch agent stats:",d),d}}return{agents:t,loading:e,error:i,fetchAgents:n,fetchAgent:h,createAgent:s,updateAgent:o,deleteAgent:l,toggleEnabled:r,runAgent:a,cancelAgent:f,fetchRuns:c,fetchGlobalStats:u,fetchAgentStats:g}}export{Qi as _,Ki as a,Ji as b,tn as u};
@@ -1 +0,0 @@
1
- {"id":"75ff59f2-0860-4bfc-a288-c670397cae5c","timestamp":1771380968185,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}