cognova 0.2.11 → 0.2.13

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 (290) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{DwY7rCd_.js → -HePz7lp.js} +2 -2
  3. package/.output/public/_nuxt/{CY-cjAwJ.js → 4ALIM-zZ.js} +1 -1
  4. package/.output/public/_nuxt/{DXdwpJ-I.js → 5sUbkh_6.js} +2 -2
  5. package/.output/public/_nuxt/{_cy8R3nk.js → 6bB8Ev7a.js} +1 -1
  6. package/.output/public/_nuxt/{1zUTf4AP.js → 7rT1DCe2.js} +1 -1
  7. package/.output/public/_nuxt/{vIOxcXKR.js → 9O1MXkck.js} +1 -1
  8. package/.output/public/_nuxt/{7oCGSglN.js → 9kAKMaPC.js} +1 -1
  9. package/.output/public/_nuxt/{CVqlefTY.js → B-DMcEU9.js} +1 -1
  10. package/.output/public/_nuxt/{BS2ZNXI1.js → B0nzD8Sk.js} +1 -1
  11. package/.output/public/_nuxt/B2PqR2Vu.js +1 -0
  12. package/.output/public/_nuxt/{Db4KMnt8.js → B2wI_pYg.js} +1 -1
  13. package/.output/public/_nuxt/{zq-a1TeT.js → B5FuOh7E.js} +1 -1
  14. package/.output/public/_nuxt/B6om4MW2.js +1 -0
  15. package/.output/public/_nuxt/{Dya5oK8u.js → B7ikW4eF.js} +1 -1
  16. package/.output/public/_nuxt/{BYHCP8x7.js → B8DFEjxA.js} +1 -1
  17. package/.output/public/_nuxt/{6boMs_nF.js → B9kWNcU7.js} +1 -1
  18. package/.output/public/_nuxt/BAZ8sewA.js +1 -0
  19. package/.output/public/_nuxt/{BXuWCWsJ.js → BCPwL4ma.js} +1 -1
  20. package/.output/public/_nuxt/{DY3uK7wM.js → BCrlmHh_.js} +1 -1
  21. package/.output/public/_nuxt/{BR8bKz8h.js → BD-AFJWW.js} +1 -1
  22. package/.output/public/_nuxt/{BtHQ1T0f.js → BGcQMReV.js} +1 -1
  23. package/.output/public/_nuxt/{BDyn4ApB.js → BL1mkqgd.js} +3 -3
  24. package/.output/public/_nuxt/BNJJSRKh.js +1 -0
  25. package/.output/public/_nuxt/{D8lwrAYS.js → BNeeERBt.js} +1 -1
  26. package/.output/public/_nuxt/{CVFwOzbl.js → BSJb5amZ.js} +1 -1
  27. package/.output/public/_nuxt/{CEnSeCqn.js → BSsaE9Db.js} +1 -1
  28. package/.output/public/_nuxt/{DzA58_Lm.js → BVO3XpHT.js} +1 -1
  29. package/.output/public/_nuxt/{CuxrHsu-.js → BWuL2CzO.js} +1 -1
  30. package/.output/public/_nuxt/{0yk-pS3R.js → B_9zJTqe.js} +1 -1
  31. package/.output/public/_nuxt/{DcJbYLTp.js → B_Lr1vlV.js} +1 -1
  32. package/.output/public/_nuxt/{CZoEPC_Q.js → Bc8bTnkd.js} +3 -3
  33. package/.output/public/_nuxt/{BKXg-alD.js → BghuwIGa.js} +1 -1
  34. package/.output/public/_nuxt/{PP_4ebzl.js → BjsKx597.js} +1 -1
  35. package/.output/public/_nuxt/{DuvzM-P1.js → Bl0qBhCG.js} +1 -1
  36. package/.output/public/_nuxt/{B_wilgcd.js → Bl43dkDq.js} +1 -1
  37. package/.output/public/_nuxt/{JbHa4oXq.js → BnMTFF5R.js} +1 -1
  38. package/.output/public/_nuxt/{CY-QVcA5.js → BrX-PnSK.js} +2 -2
  39. package/.output/public/_nuxt/{DYbZBZet.js → BtV7oNn3.js} +1 -1
  40. package/.output/public/_nuxt/{apYB9dr5.js → BvFYnRMR.js} +1 -1
  41. package/.output/public/_nuxt/{x6FRJ5ac.js → BvTUBUNN.js} +1 -1
  42. package/.output/public/_nuxt/{wO6z2ugJ.js → ByLsRRoQ.js} +1 -1
  43. package/.output/public/_nuxt/{DC4idAGt.js → C1LcEMwB.js} +1 -1
  44. package/.output/public/_nuxt/{YX8avsvq.js → C2IiXp9N.js} +2 -2
  45. package/.output/public/_nuxt/{fbyIeNkc.js → C6OSRpRd.js} +1 -1
  46. package/.output/public/_nuxt/{3jQMk_5H.js → C796kFT9.js} +1 -1
  47. package/.output/public/_nuxt/{DEd2xVbS.js → C7m9zGMG.js} +1 -1
  48. package/.output/public/_nuxt/C8AtdrMH.js +1 -0
  49. package/.output/public/_nuxt/CAWbHTgy.js +1 -0
  50. package/.output/public/_nuxt/{ixlNW2So.js → CFmvNggn.js} +1 -1
  51. package/.output/public/_nuxt/{gTrVszwd.js → CGplHfmR.js} +1 -1
  52. package/.output/public/_nuxt/CJPrV25_.js +1 -0
  53. package/.output/public/_nuxt/{U1MWjQMi.js → CKKEWapF.js} +1 -1
  54. package/.output/public/_nuxt/{C6qKcgOY.js → CLkkdThv.js} +22 -22
  55. package/.output/public/_nuxt/CNjv28J2.js +1 -0
  56. package/.output/public/_nuxt/{BLnYhy_t.js → CRRw0Thu.js} +1 -1
  57. package/.output/public/_nuxt/{10_wwHSz.js → CT8s4rqa.js} +1 -1
  58. package/.output/public/_nuxt/{C27WoGNZ.js → CZSOrxUy.js} +1 -1
  59. package/.output/public/_nuxt/{DNP5E1bC.js → CaNEL9JC.js} +5 -5
  60. package/.output/public/_nuxt/{DhuOKJda.js → CbTLg9oX.js} +1 -1
  61. package/.output/public/_nuxt/CfCXpVn5.js +1 -0
  62. package/.output/public/_nuxt/{C9WIgRRL.js → ChmNlvWR.js} +1 -1
  63. package/.output/public/_nuxt/{t8aDAkZ5.js → CiNxIhaq.js} +1 -1
  64. package/.output/public/_nuxt/{E3rXPwU8.js → Ck0QYdxe.js} +1 -1
  65. package/.output/public/_nuxt/{DUVzIl3o.js → Ckb0pu4-.js} +1 -1
  66. package/.output/public/_nuxt/{vScW1Zgm.js → CkwPRs1D.js} +1 -1
  67. package/.output/public/_nuxt/CmEJg8C6.js +2 -0
  68. package/.output/public/_nuxt/{CTCcEJU3.js → CmL_vMJD.js} +1 -1
  69. package/.output/public/_nuxt/{Bciqk4dX.js → Cq8zPxkT.js} +1 -1
  70. package/.output/public/_nuxt/{D8M722pn.js → CseYuM6E.js} +1 -1
  71. package/.output/public/_nuxt/{D0ifH682.js → CxRnB4NC.js} +1 -1
  72. package/.output/public/_nuxt/{CVdCqaby.js → D0zMyG8n.js} +1 -1
  73. package/.output/public/_nuxt/{DhI5cA_n.js → D12qPplu.js} +1 -1
  74. package/.output/public/_nuxt/{Beom-INj.js → D1XYB283.js} +1 -1
  75. package/.output/public/_nuxt/{BUghTae1.js → D2NxqyzW.js} +1 -1
  76. package/.output/public/_nuxt/{CZRnNmU8.js → D5xyrvFu.js} +1 -1
  77. package/.output/public/_nuxt/{2dNDtTiv.js → D6tVZcRs.js} +3 -3
  78. package/.output/public/_nuxt/{EgKnQnf-.js → D7N3EZ-I.js} +1 -1
  79. package/.output/public/_nuxt/{C5R5QaCA.js → D8iBB0Py.js} +1 -1
  80. package/.output/public/_nuxt/{XCjS70z4.js → D8oIH8m1.js} +1 -1
  81. package/.output/public/_nuxt/{BA_pRWwX.js → DB2zZev7.js} +1 -1
  82. package/.output/public/_nuxt/{Cl-LOSDV.js → DBrOAqkm.js} +1 -1
  83. package/.output/public/_nuxt/{DO9SFIh1.js → DDXDFweK.js} +1 -1
  84. package/.output/public/_nuxt/{B93pdGAW.js → DFZkCmLQ.js} +1 -1
  85. package/.output/public/_nuxt/{CLfF6dSn.js → DFpmIy6J.js} +1 -1
  86. package/.output/public/_nuxt/{BfcLZ_fC.js → DKZmgHNU.js} +1 -1
  87. package/.output/public/_nuxt/{CPutXj8l.js → DNcOC5zj.js} +1 -1
  88. package/.output/public/_nuxt/{BHtY0l0l.js → DQhm-UPG.js} +1 -1
  89. package/.output/public/_nuxt/{C2FxZbO_.js → DR8tGJhL.js} +1 -1
  90. package/.output/public/_nuxt/{D4UJwDQJ.js → DVAEVTjy.js} +1 -1
  91. package/.output/public/_nuxt/{2nOqGUPr.js → DVqrPkCJ.js} +1 -1
  92. package/.output/public/_nuxt/DWZ9ieYa.js +1 -0
  93. package/.output/public/_nuxt/{nnQqD5pb.js → DWj6VsZv.js} +1 -1
  94. package/.output/public/_nuxt/{C2vq6Te8.js → DXJ9PxCv.js} +1 -1
  95. package/.output/public/_nuxt/{CobqYwkp.js → D_ziPROx.js} +1 -1
  96. package/.output/public/_nuxt/{GtEM7xVU.js → Da2vwoYG.js} +1 -1
  97. package/.output/public/_nuxt/{Cc-2ziaZ.js → Ddz3HcBB.js} +1 -1
  98. package/.output/public/_nuxt/{Di-Nc75e.js → DgYei0bK.js} +1 -1
  99. package/.output/public/_nuxt/{DQh6I9z9.js → Di_3GV_R.js} +1 -1
  100. package/.output/public/_nuxt/{ByYh0uRg.js → Djog1f_e.js} +1 -1
  101. package/.output/public/_nuxt/{C4mwL7SE.js → Dkap2-Pj.js} +2 -2
  102. package/.output/public/_nuxt/{D5q8SnqE.js → DlJe_sHk.js} +1 -1
  103. package/.output/public/_nuxt/DlPOQpH_.js +1 -0
  104. package/.output/public/_nuxt/{DTGenhcA.js → DmYWMtVA.js} +1 -1
  105. package/.output/public/_nuxt/DmxKU7sH.js +1 -0
  106. package/.output/public/_nuxt/{DtjjnHnt.js → DowkFZ2V.js} +1 -1
  107. package/.output/public/_nuxt/{0NJ3PaRM.js → DsodHRrQ.js} +1 -1
  108. package/.output/public/_nuxt/{Bk6JUtIo.js → DuzpliIL.js} +1 -1
  109. package/.output/public/_nuxt/DvHS7_h2.js +1 -0
  110. package/.output/public/_nuxt/DwSY6_2U.js +1 -0
  111. package/.output/public/_nuxt/{Djs0Tlpa.js → DypJaSm-.js} +1 -1
  112. package/.output/public/_nuxt/{C71_a1IX.js → DzKaXH6P.js} +1 -1
  113. package/.output/public/_nuxt/{CBTkrk2M.js → FK-jSuOT.js} +1 -1
  114. package/.output/public/_nuxt/{ILEvizzp.js → Fc2JsQt4.js} +1 -1
  115. package/.output/public/_nuxt/{BIXrSYwR.js → IYCBGuRS.js} +1 -1
  116. package/.output/public/_nuxt/{JX1oqJI9.js → LRO7YHoH.js} +1 -1
  117. package/.output/public/_nuxt/{Kw0zy3FG.js → NrRzUJNY.js} +1 -1
  118. package/.output/public/_nuxt/{DJTCT0bl.js → OeVS0Rsb.js} +1 -1
  119. package/.output/public/_nuxt/{BmOtR1wX.js → OlF0QnKF.js} +1 -1
  120. package/.output/public/_nuxt/{DTAStixR.js → QuAoqY7t.js} +1 -1
  121. package/.output/public/_nuxt/{8q5NepGW.js → RlXHkmOd.js} +2 -2
  122. package/.output/public/_nuxt/{rfGRTJJW.js → TxMdabnL.js} +1 -1
  123. package/.output/public/_nuxt/{CZVzFlpI.js → WZnvL9Dh.js} +1 -1
  124. package/.output/public/_nuxt/ZvG7a1W3.js +1 -0
  125. package/.output/public/_nuxt/{N5XtbYVD.js → aPNZBVrG.js} +1 -1
  126. package/.output/public/_nuxt/builds/latest.json +1 -1
  127. package/.output/public/_nuxt/builds/meta/495aca73-bfa5-456e-b96a-f02e009c72d3.json +1 -0
  128. package/.output/public/_nuxt/entry.C_udkZt9.css +1 -0
  129. package/.output/public/_nuxt/{D_4LPm1U.js → evY81hM3.js} +1 -1
  130. package/.output/public/_nuxt/{DzGy77Vr.js → h_bXa-f2.js} +1 -1
  131. package/.output/public/_nuxt/{D9nmzBAw.js → i6QBzaEi.js} +1 -1
  132. package/.output/public/_nuxt/{BGgwYWjH.js → iTVKJ1kw.js} +1 -1
  133. package/.output/public/_nuxt/{Um1vPiAz.js → j92uR3uR.js} +1 -1
  134. package/.output/public/_nuxt/jdUkeAj_.js +1 -0
  135. package/.output/public/_nuxt/{BmVLxnDU.js → jeRvcMHU.js} +1 -1
  136. package/.output/public/_nuxt/{SrncdpaW.js → kuv0zpKq.js} +1 -1
  137. package/.output/public/_nuxt/{DfF81NlA.js → l3lKQs7b.js} +1 -1
  138. package/.output/public/_nuxt/{4K03TkGA.js → pdYvpiud.js} +3 -3
  139. package/.output/public/_nuxt/{C39dQ88F.js → qIgZ7OXa.js} +1 -1
  140. package/.output/public/_nuxt/{DS2wStH1.js → qcVwZv8e.js} +1 -1
  141. package/.output/public/_nuxt/{g5MjDvm5.js → ru8fqqWs.js} +1 -1
  142. package/.output/public/_nuxt/{CQqCBrXj.js → sBzyvWMJ.js} +1 -1
  143. package/.output/public/_nuxt/{D3AZaldL.js → sgmhgpCS.js} +1 -1
  144. package/.output/public/_nuxt/{ChcO9s3o.js → y2jv0da-.js} +1 -1
  145. package/.output/public/_nuxt/{Dn5a-guE.js → yyS4-kAX.js} +1 -1
  146. package/.output/public/_nuxt/zIoBLBHF.js +1 -0
  147. package/.output/public/_nuxt/zpazwPgx.js +1 -0
  148. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +1 -1
  149. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
  150. package/.output/server/chunks/build/EditorToolbar-DIfb5arC.mjs +1 -1
  151. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +1 -1
  152. package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
  153. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
  154. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
  155. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
  156. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
  157. package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +1 -1
  158. package/.output/server/chunks/build/_uuid_-DfJaumTE.mjs +1 -1
  159. package/.output/server/chunks/build/{chat-CR3JIVEq.mjs → chat-m4-n9vC6.mjs} +516 -14
  160. package/.output/server/chunks/build/chat-m4-n9vC6.mjs.map +1 -0
  161. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  162. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
  163. package/.output/server/chunks/build/dashboard-CiVTAZuF.mjs +1 -1
  164. package/.output/server/chunks/build/docs-ChGwOPg5.mjs +1 -1
  165. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
  166. package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
  167. package/.output/server/chunks/build/server.mjs +2 -2
  168. package/.output/server/chunks/build/settings-B2KXoGcz.mjs +1 -1
  169. package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs +1 -1
  170. package/.output/server/chunks/build/view-n2sYa4Zh.mjs +1 -1
  171. package/.output/server/chunks/nitro/nitro.mjs +882 -866
  172. package/.output/server/chunks/routes/_ws/chat.mjs +40 -6
  173. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  174. package/.output/server/chunks/routes/api/bridges/_id/contacts.get.mjs +84 -0
  175. package/.output/server/chunks/routes/api/bridges/_id/contacts.get.mjs.map +1 -0
  176. package/.output/server/chunks/routes/api/bridges/_id/send.post.mjs +70 -0
  177. package/.output/server/chunks/routes/api/bridges/_id/send.post.mjs.map +1 -0
  178. package/.output/server/chunks/routes/api/bridges/context.get.mjs +19 -18
  179. package/.output/server/chunks/routes/api/bridges/context.get.mjs.map +1 -1
  180. package/.output/server/chunks/routes/api/conversations/_id_.delete.mjs +1 -1
  181. package/.output/server/chunks/routes/api/conversations/_id_.get.mjs +1 -1
  182. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs +1 -1
  183. package/.output/server/chunks/routes/api/documents/_id/public.get.mjs +1 -1
  184. package/.output/server/chunks/routes/api/documents/_id/restore.post.mjs +1 -1
  185. package/.output/server/chunks/routes/api/documents/by-path.post.mjs +1 -1
  186. package/.output/server/chunks/routes/api/documents/index.delete.mjs +1 -1
  187. package/.output/server/chunks/routes/api/documents/index.put.mjs +1 -1
  188. package/.output/server/chunks/routes/api/fs/delete.post.mjs +1 -1
  189. package/.output/server/chunks/routes/api/fs/list.get.mjs +1 -1
  190. package/.output/server/chunks/routes/api/fs/mkdir.post.mjs +1 -1
  191. package/.output/server/chunks/routes/api/fs/move.post.mjs +1 -1
  192. package/.output/server/chunks/routes/api/fs/read.post.mjs +1 -1
  193. package/.output/server/chunks/routes/api/fs/rename.post.mjs +1 -1
  194. package/.output/server/chunks/routes/api/fs/write.post.mjs +1 -1
  195. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  196. package/.output/server/chunks/routes/api/home.get.mjs +1 -1
  197. package/.output/server/chunks/routes/api/hooks/index.get.mjs +1 -1
  198. package/.output/server/chunks/routes/api/hooks/index.post.mjs +1 -1
  199. package/.output/server/chunks/routes/api/hooks/stats.get.mjs +1 -1
  200. package/.output/server/chunks/routes/api/index.get10.mjs +1 -1
  201. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  202. package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
  203. package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
  204. package/.output/server/chunks/routes/api/index.get6.mjs +1 -1
  205. package/.output/server/chunks/routes/api/index.get7.mjs +1 -1
  206. package/.output/server/chunks/routes/api/index.get8.mjs +1 -1
  207. package/.output/server/chunks/routes/api/index.get9.mjs +1 -1
  208. package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
  209. package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
  210. package/.output/server/chunks/routes/api/index.post5.mjs +1 -1
  211. package/.output/server/chunks/routes/api/index.put.mjs +1 -1
  212. package/.output/server/chunks/routes/api/memory/_id_.delete.mjs +1 -1
  213. package/.output/server/chunks/routes/api/memory/context.get.mjs +1 -1
  214. package/.output/server/chunks/routes/api/memory/extract.post.mjs +1 -1
  215. package/.output/server/chunks/routes/api/memory/search.get.mjs +1 -1
  216. package/.output/server/chunks/routes/api/memory/store.post.mjs +1 -1
  217. package/.output/server/chunks/routes/api/projects/index.delete.mjs +1 -1
  218. package/.output/server/chunks/routes/api/projects/index.get.mjs +1 -1
  219. package/.output/server/chunks/routes/api/projects/index.put.mjs +1 -1
  220. package/.output/server/chunks/routes/api/secrets/_key_.delete.mjs +1 -1
  221. package/.output/server/chunks/routes/api/secrets/_key_.get.mjs +1 -1
  222. package/.output/server/chunks/routes/api/secrets/_key_.put.mjs +1 -1
  223. package/.output/server/chunks/routes/api/skills/_name/delete.post.mjs +1 -1
  224. package/.output/server/chunks/routes/api/skills/_name/export.get.mjs +1 -1
  225. package/.output/server/chunks/routes/api/skills/_name/files/create.post.mjs +1 -1
  226. package/.output/server/chunks/routes/api/skills/_name/files/delete.post.mjs +1 -1
  227. package/.output/server/chunks/routes/api/skills/_name/files/read.post.mjs +1 -1
  228. package/.output/server/chunks/routes/api/skills/_name/files/write.post.mjs +1 -1
  229. package/.output/server/chunks/routes/api/skills/_name/index.get.mjs +1 -1
  230. package/.output/server/chunks/routes/api/skills/_name/rename.post.mjs +1 -1
  231. package/.output/server/chunks/routes/api/skills/_name/toggle.post.mjs +1 -1
  232. package/.output/server/chunks/routes/api/skills/create.post.mjs +1 -1
  233. package/.output/server/chunks/routes/api/skills/generate.post.mjs +1 -1
  234. package/.output/server/chunks/routes/api/skills/import.post.mjs +1 -1
  235. package/.output/server/chunks/routes/api/skills/index.get.mjs +1 -1
  236. package/.output/server/chunks/routes/api/skills/index.get2.mjs +1 -1
  237. package/.output/server/chunks/routes/api/skills/library/check-updates.get.mjs +1 -1
  238. package/.output/server/chunks/routes/api/skills/library/install.post.mjs +1 -1
  239. package/.output/server/chunks/routes/api/tasks/_id/restore.post.mjs +1 -1
  240. package/.output/server/chunks/routes/api/tasks/index.delete.mjs +1 -1
  241. package/.output/server/chunks/routes/api/tasks/index.put.mjs +1 -1
  242. package/.output/server/chunks/routes/api/tasks/tags.get.mjs +1 -1
  243. package/.output/server/chunks/routes/api/usage/stats.get.mjs +1 -1
  244. package/.output/server/chunks/routes/api/user/email.patch.mjs +1 -1
  245. package/.output/server/chunks/routes/api/webhooks/bluebubbles.post.mjs +1 -1
  246. package/.output/server/chunks/routes/api/webhooks/telegram.post.mjs +1 -1
  247. package/.output/server/chunks/routes/notifications.mjs +1 -1
  248. package/.output/server/chunks/routes/renderer.mjs +1 -1
  249. package/.output/server/chunks/routes/terminal.mjs +1 -1
  250. package/.output/server/index.mjs +1 -1
  251. package/.output/server/package.json +1 -1
  252. package/Claude/skills/_lib/api.py +3 -2
  253. package/Claude/skills/bridge/SKILL.md +25 -1
  254. package/Claude/skills/bridge/bridge.py +64 -0
  255. package/app/components/chat/ChatInput.vue +133 -5
  256. package/app/components/chat/MessageBubble.vue +188 -6
  257. package/app/composables/useAttachments.ts +196 -0
  258. package/app/composables/useChat.ts +14 -2
  259. package/app/pages/chat.vue +4 -2
  260. package/package.json +1 -1
  261. package/server/api/bridges/[id]/contacts.get.ts +57 -0
  262. package/server/api/bridges/[id]/send.post.ts +40 -0
  263. package/server/api/bridges/context.get.ts +19 -18
  264. package/server/bridge/adapters/imessage.ts +9 -2
  265. package/server/bridge/responder.ts +3 -3
  266. package/server/routes/_ws/chat.ts +61 -7
  267. package/server/utils/chat-session-manager.ts +20 -2
  268. package/shared/types/index.ts +27 -1
  269. package/.output/public/_nuxt/BH0QDWEm.js +0 -1
  270. package/.output/public/_nuxt/BK8S2ony.js +0 -1
  271. package/.output/public/_nuxt/BZrSPX0S.js +0 -1
  272. package/.output/public/_nuxt/BaZwjF8o.js +0 -1
  273. package/.output/public/_nuxt/BkfI94R8.js +0 -1
  274. package/.output/public/_nuxt/C3NST0BU.js +0 -1
  275. package/.output/public/_nuxt/CKxSHyww.js +0 -1
  276. package/.output/public/_nuxt/CSKJ-Ahh.js +0 -1
  277. package/.output/public/_nuxt/CWyMCJQH.js +0 -1
  278. package/.output/public/_nuxt/CYPO5o_C.js +0 -1
  279. package/.output/public/_nuxt/CqNwHCpo.js +0 -1
  280. package/.output/public/_nuxt/CwPdIZ9J.js +0 -1
  281. package/.output/public/_nuxt/D5jZq8b3.js +0 -1
  282. package/.output/public/_nuxt/DH4YkDAi.js +0 -1
  283. package/.output/public/_nuxt/DPklr_tJ.js +0 -2
  284. package/.output/public/_nuxt/DQM4eBdt.js +0 -1
  285. package/.output/public/_nuxt/DUAAXJ6Q.js +0 -1
  286. package/.output/public/_nuxt/DmmdPt_5.js +0 -1
  287. package/.output/public/_nuxt/H6JbrRBU.js +0 -1
  288. package/.output/public/_nuxt/builds/meta/515be38f-7222-4e4b-80cb-cef7594b1834.json +0 -1
  289. package/.output/public/_nuxt/entry.NKPfH2kE.css +0 -1
  290. package/.output/server/chunks/build/chat-CR3JIVEq.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import{k as Lm,b as Dm,s as Im}from"./Vcq4gwWv.js";import{a as Bm,e as Nm,M as Fm,q as Hm,f as or,a2 as Km,G as Jm,R as eg}from"./2dNDtTiv.js";let eo=[],td=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?td:eo).push(t=t+O[e])})();function tg(O){if(O<768)return!1;for(let e=0,t=eo.length;;){let i=e+t>>1;if(O<eo[i])t=i;else if(O>=td[i])e=i+1;else return!0;if(e==t)return!1}}function zl(O){return O>=127462&&O<=127487}const Ul=8205;function Og(O,e,t=!0,i=!0){return(t?Od:ig)(O,e,i)}function Od(O,e,t){if(e==O.length)return e;e&&id(O.charCodeAt(e))&&rd(O.charCodeAt(e-1))&&e--;let i=Jn(O,e);for(e+=Vl(i);e<O.length;){let r=Jn(O,e);if(i==Ul||r==Ul||t&&tg(r))e+=Vl(r),i=r;else if(zl(r)){let n=0,s=e-2;for(;s>=0&&zl(Jn(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function ig(O,e,t){for(;e>0;){let i=Od(O,e-2,t);if(i<e)return i;e--}return 0}function Jn(O,e){let t=O.charCodeAt(e);if(!rd(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return id(i)?(t-55296<<10)+(i-56320)+65536:t}function id(O){return O>=56320&&O<57344}function rd(O){return O>=55296&&O<56320}function Vl(O){return O<65536?1:2}class E{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=WO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ft.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=WO(this,e,t);let i=[];return this.decompose(e,t,i,0),ft.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new ui(this),n=new ui(e);for(let s=t,o=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(o+=r.value.length,r.done||o>=i)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new nd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new sd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?E.empty:e.length<=32?new ie(e):ft.from(ie.split(e,[]))}}class ie extends E{constructor(e,t=rg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],o=r+s.length;if((t?i:o)>=e)return new ng(r,o,i,s);r=o+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new ie(Wl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),o=Ur(n.text,s.text.slice(),0,n.length);if(o.length<=32)i.push(new ie(o,s.length+n.length));else{let a=o.length>>1;i.push(new ie(o.slice(0,a)),new ie(o.slice(a)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof ie))return super.replace(e,t,i);[e,t]=WO(this,e,t);let r=Ur(this.text,Ur(i.text,Wl(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new ie(r,n):ft.from(ie.split(r,[]),n)}sliceString(e,t=this.length,i=`
1
+ import{k as Lm,b as Dm,s as Im}from"./Vcq4gwWv.js";import{a as Bm,e as Nm,O as Fm,q as Hm,f as or,a2 as Km,G as Jm,T as eg}from"./D6tVZcRs.js";let eo=[],td=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?td:eo).push(t=t+O[e])})();function tg(O){if(O<768)return!1;for(let e=0,t=eo.length;;){let i=e+t>>1;if(O<eo[i])t=i;else if(O>=td[i])e=i+1;else return!0;if(e==t)return!1}}function zl(O){return O>=127462&&O<=127487}const Ul=8205;function Og(O,e,t=!0,i=!0){return(t?Od:ig)(O,e,i)}function Od(O,e,t){if(e==O.length)return e;e&&id(O.charCodeAt(e))&&rd(O.charCodeAt(e-1))&&e--;let i=Jn(O,e);for(e+=Vl(i);e<O.length;){let r=Jn(O,e);if(i==Ul||r==Ul||t&&tg(r))e+=Vl(r),i=r;else if(zl(r)){let n=0,s=e-2;for(;s>=0&&zl(Jn(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function ig(O,e,t){for(;e>0;){let i=Od(O,e-2,t);if(i<e)return i;e--}return 0}function Jn(O,e){let t=O.charCodeAt(e);if(!rd(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return id(i)?(t-55296<<10)+(i-56320)+65536:t}function id(O){return O>=56320&&O<57344}function rd(O){return O>=55296&&O<56320}function Vl(O){return O<65536?1:2}class E{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=WO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),ft.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=WO(this,e,t);let i=[];return this.decompose(e,t,i,0),ft.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new ui(this),n=new ui(e);for(let s=t,o=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(o+=r.value.length,r.done||o>=i)return!0}}iter(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new nd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new sd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?E.empty:e.length<=32?new ie(e):ft.from(ie.split(e,[]))}}class ie extends E{constructor(e,t=rg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],o=r+s.length;if((t?i:o)>=e)return new ng(r,o,i,s);r=o+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new ie(Wl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),o=Ur(n.text,s.text.slice(),0,n.length);if(o.length<=32)i.push(new ie(o,s.length+n.length));else{let a=o.length>>1;i.push(new ie(o.slice(0,a)),new ie(o.slice(a)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof ie))return super.replace(e,t,i);[e,t]=WO(this,e,t);let r=Ur(this.text,Ur(i.text,Wl(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new ie(r,n):ft.from(ie.split(r,[]),n)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=WO(this,e,t);let r="";for(let n=0,s=0;n<=t&&s<this.text.length;s++){let o=this.text[s],a=n+o.length;n>e&&s&&(r+=i),e<a&&t>n&&(r+=o.slice(Math.max(0,e-n),t-n)),n=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let n of e)i.push(n),r+=n.length+1,i.length==32&&(t.push(new ie(i,r)),i=[],r=-1);return r>-1&&t.push(new ie(i,r)),t}}class ft extends E{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.children[n],o=r+s.length,a=i+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,i,r);r=o+1,i=a+1}}decompose(e,t,i,r){for(let n=0,s=0;s<=t&&n<this.children.length;n++){let o=this.children[n],a=s+o.length;if(e<=a&&t>=s){let l=r&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!l?i.push(o):o.decompose(e-s,t-s,i,l)}s=a+1}}replace(e,t,i){if([e,t]=WO(this,e,t),i.lines<this.lines)for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],o=n+s.length;if(e>=n&&t<=o){let a=s.replace(e-n,t-n,i),l=this.lines-s.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let h=this.children.slice();return h[r]=a,new ft(h,this.length-(t-e)+i.length)}return super.replace(n,o,a)}n=o+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=WO(this,e,t);let r="";for(let n=0,s=0;n<this.children.length&&s<=t;n++){let o=this.children[n],a=s+o.length;s>e&&n&&(r+=i),e<a&&t>s&&(r+=o.sliceString(e-s,t-s,i)),s=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ft))return 0;let i=0,[r,n,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,n+=t){if(r==s||n==o)return i;let a=this.children[r],l=e.children[n];if(a!=l)return i+a.scanIdentical(l,t);i+=a.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let u of e)i+=u.lines;if(i<32){let u=[];for(let Q of e)Q.flatten(u);return new ie(u,t)}let r=Math.max(32,i>>5),n=r<<1,s=r>>1,o=[],a=0,l=-1,h=[];function c(u){let Q;if(u.lines>n&&u instanceof ft)for(let p of u.children)c(p);else u.lines>s&&(a>s||!a)?(f(),o.push(u)):u instanceof ie&&a&&(Q=h[h.length-1])instanceof ie&&u.lines+Q.lines<=32?(a+=u.lines,l+=u.length+1,h[h.length-1]=new ie(Q.text.concat(u.text),Q.length+1+u.length)):(a+u.lines>r&&f(),a+=u.lines,l+=u.length+1,h.push(u))}function f(){a!=0&&(o.push(h.length==1?h[0]:ft.from(h,l)),l=-1,a=h.length=0)}for(let u of e)c(u);return f(),o.length==1?o[0]:new ft(o,t)}}E.empty=new ie([""],0);function rg(O){let e=-1;for(let t of O)e+=t.length+1;return e}function Ur(O,e,t=0,i=1e9){for(let r=0,n=0,s=!0;n<O.length&&r<=i;n++){let o=O[n],a=r+o.length;a>=t&&(a>i&&(o=o.slice(0,i-r)),r<t&&(o=o.slice(t-r)),s?(e[e.length-1]+=o,s=!1):e.push(o)),r=a+1}return e}function Wl(O,e,t){return Ur(O,[""],e,t)}class ui{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ie?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],n=this.offsets[i],s=n>>1,o=r instanceof ie?r.text.length:r.children.length;if(s==(t>0?o:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((n&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(r instanceof ie){let a=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=r.children[s+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ie?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class nd{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new ui(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class sd{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(E.prototype[Symbol.iterator]=function(){return this.iter()},ui.prototype[Symbol.iterator]=nd.prototype[Symbol.iterator]=sd.prototype[Symbol.iterator]=function(){return this});let ng=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function WO(O,e,t){return e=Math.max(0,Math.min(O.length,e)),[e,Math.max(e,Math.min(O.length,t))]}function le(O,e,t=!0,i=!0){return Og(O,e,t,i)}function sg(O){return O>=56320&&O<57344}function og(O){return O>=55296&&O<56320}function we(O,e){let t=O.charCodeAt(e);if(!og(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return sg(i)?(t-55296<<10)+(i-56320)+65536:t}function Sa(O){return O<=65535?String.fromCharCode(O):(O-=65536,String.fromCharCode((O>>10)+55296,(O&1023)+56320))}function dt(O){return O<65536?1:2}const to=/\r\n?|\n/;var ue=(function(O){return O[O.Simple=0]="Simple",O[O.TrackDel=1]="TrackDel",O[O.TrackBefore=2]="TrackBefore",O[O.TrackAfter=3]="TrackAfter",O})(ue||(ue={}));class gt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,n),r+=n):r+=s,i+=n}}iterChangedRanges(e,t=!1){Oo(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new gt(e)}composeDesc(e){return this.empty?e:e.empty?this:od(this,e)}mapDesc(e,t=!1){return e.empty?this:io(this,e,t)}mapPos(e,t=-1,i=ue.Simple){let r=0,n=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],a=this.sections[s++],l=r+o;if(a<0){if(l>e)return n+(e-r);n+=o}else{if(i!=ue.Simple&&l>=e&&(i==ue.TrackDel&&r<e&&l>e||i==ue.TrackBefore&&r<e||i==ue.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!o)return e==r||t<0?n:n+a;n+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return n}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let n=this.sections[i++],s=this.sections[i++],o=r+n;if(s>=0&&r<=t&&o>=e)return r<e&&o>t?"cover":!0;r=o}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new gt(e)}static create(e){return new gt(e)}}class ae extends gt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Oo(this,(t,i,r,n,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return io(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,n=0;r<t.length;r+=2){let s=t[r],o=t[r+1];if(o>=0){t[r]=o,t[r+1]=s;let a=r>>1;for(;i.length<a;)i.push(E.empty);i.push(s?e.slice(n,n+s):E.empty)}n+=s}return new ae(t,i)}compose(e){return this.empty?e:e.empty?this:od(this,e,!0)}map(e,t=!1){return e.empty?this:io(this,e,t,!0)}iterChanges(e,t=!1){Oo(this,e,t)}get desc(){return gt.create(this.sections)}filter(e){let t=[],i=[],r=[],n=new xi(this);e:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&n.len==0;){if(n.done)break e;let h=Math.min(n.len,a-o);pe(r,h,-1);let c=n.ins==-1?-1:n.off==0?n.ins:0;pe(t,h,c),c>0&&At(i,t,n.text),n.forward(h),o+=h}let l=e[s++];for(;o<l;){if(n.done)break e;let h=Math.min(n.len,l-o);pe(t,h,-1),pe(r,h,n.ins==-1?-1:n.off==0?n.ins:0),n.forward(h),o+=h}}return{changes:new ae(t,i),filtered:gt.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],r=this.sections[t+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let r=[],n=[],s=0,o=null;function a(h=!1){if(!h&&!r.length)return;s<t&&pe(r,t-s,-1);let c=new ae(r,n);o=o?o.compose(c.map(o)):c,r=[],n=[],s=0}function l(h){if(Array.isArray(h))for(let c of h)l(c);else if(h instanceof ae){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);a(),o=o?o.compose(h.map(o)):h}else{let{from:c,to:f=c,insert:u}=h;if(c>f||c<0||f>t)throw new RangeError(`Invalid change range ${c} to ${f} (in doc of length ${t})`);let Q=u?typeof u=="string"?E.of(u.split(i||to)):u:E.empty,p=Q.length;if(c==f&&p==0)return;c<s&&a(),c>s&&pe(r,c-s,-1),pe(r,f-c,p),At(n,r,Q),s=f}}return l(e),a(!o),o}static empty(e){return new ae(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let r=0;r<e.length;r++){let n=e[r];if(typeof n=="number")t.push(n,-1);else{if(!Array.isArray(n)||typeof n[0]!="number"||n.some((s,o)=>o&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(n.length==1)t.push(n[0],0);else{for(;i.length<r;)i.push(E.empty);i[r]=E.of(n.slice(1)),t.push(n[0],i[r].length)}}}return new ae(t,i)}static createSet(e,t){return new ae(e,t)}}function pe(O,e,t,i=!1){if(e==0&&t<=0)return;let r=O.length-2;r>=0&&t<=0&&t==O[r+1]?O[r]+=e:r>=0&&e==0&&O[r]==0?O[r+1]+=t:i?(O[r]+=e,O[r+1]+=t):O.push(e,t)}function At(O,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<O.length)O[O.length-1]=O[O.length-1].append(t);else{for(;O.length<i;)O.push(E.empty);O.push(t)}}function Oo(O,e,t){let i=O.inserted;for(let r=0,n=0,s=0;s<O.sections.length;){let o=O.sections[s++],a=O.sections[s++];if(a<0)r+=o,n+=o;else{let l=r,h=n,c=E.empty;for(;l+=o,h+=a,a&&i&&(c=c.append(i[s-2>>1])),!(t||s==O.sections.length||O.sections[s+1]<0);)o=O.sections[s++],a=O.sections[s++];e(r,l,n,h,c),r=l,n=h}}}function io(O,e,t,i=!1){let r=[],n=i?[]:null,s=new xi(O),o=new xi(e);for(let a=-1;;){if(s.done&&o.len||o.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&o.ins==-1){let l=Math.min(s.len,o.len);pe(r,l,-1),s.forward(l),o.forward(l)}else if(o.ins>=0&&(s.ins<0||a==s.i||s.off==0&&(o.len<s.len||o.len==s.len&&!t))){let l=o.len;for(pe(r,o.ins,-1);l;){let h=Math.min(s.len,l);s.ins>=0&&a<s.i&&s.len<=h&&(pe(r,0,s.ins),n&&At(n,r,s.text),a=s.i),s.forward(h),l-=h}o.next()}else if(s.ins>=0){let l=0,h=s.len;for(;h;)if(o.ins==-1){let c=Math.min(h,o.len);l+=c,h-=c,o.forward(c)}else if(o.ins==0&&o.len<h)h-=o.len,o.next();else break;pe(r,l,a<s.i?s.ins:0),n&&a<s.i&&At(n,r,s.text),a=s.i,s.forward(s.len-h)}else{if(s.done&&o.done)return n?ae.createSet(r,n):gt.create(r);throw new Error("Mismatched change set lengths")}}}function od(O,e,t=!1){let i=[],r=t?[]:null,n=new xi(O),s=new xi(e);for(let o=!1;;){if(n.done&&s.done)return r?ae.createSet(i,r):gt.create(i);if(n.ins==0)pe(i,n.len,0,o),n.next();else if(s.len==0&&!s.done)pe(i,0,s.ins,o),r&&At(r,i,s.text),s.next();else{if(n.done||s.done)throw new Error("Mismatched change set lengths");{let a=Math.min(n.len2,s.len),l=i.length;if(n.ins==-1){let h=s.ins==-1?-1:s.off?0:s.ins;pe(i,a,h,o),r&&h&&At(r,i,s.text)}else s.ins==-1?(pe(i,n.off?0:n.len,a,o),r&&At(r,i,n.textBit(a))):(pe(i,n.off?0:n.len,s.off?0:s.ins,o),r&&!s.off&&At(r,i,s.text));o=(n.ins>a||s.ins>=0&&s.len>a)&&(o||i.length>l),n.forward2(a),s.forward(a)}}}}class xi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?E.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?E.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class hO{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new hO(i,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return P.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return P.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return P.range(e.anchor,e.head)}static create(e,t,i){return new hO(e,t,i)}}class P{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:P.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new P([this.main],0)}addRange(e,t=!0){return P.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,P.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new P(e.ranges.map(t=>hO.fromJSON(t)),e.main)}static single(e,t=e){return new P([P.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let n=e[r];if(n.empty?n.from<=i:n.from<i)return P.normalized(e.slice(),t);i=n.to}return new P(e,t)}static cursor(e,t=0,i,r){return hO.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,t,i,r){let n=(i??16777215)<<6|(r==null?7:Math.min(6,r));return t<e?hO.create(t,e,48|n):hO.create(e,t,(t>e?8:0)|n)}static normalized(e,t=0){let i=e[t];e.sort((r,n)=>r.from-n.from),t=e.indexOf(i);for(let r=1;r<e.length;r++){let n=e[r],s=e[r-1];if(n.empty?n.from<=s.to:n.from<s.to){let o=s.from,a=Math.max(n.to,s.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?P.range(a,o):P.range(o,a))}}return new P(e,t)}}function ad(O,e){for(let t of O.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Xa=0;class v{constructor(e,t,i,r,n){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=r,this.id=Xa++,this.default=e([]),this.extensions=typeof n=="function"?n(this):n}get reader(){return this}static define(e={}){return new v(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:ba),!!e.static,e.enables)}of(e){return new Vr([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vr(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vr(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function ba(O,e){return O==e||O.length==e.length&&O.every((t,i)=>t===e[i])}class Vr{constructor(e,t,i,r){this.dependencies=e,this.facet=t,this.type=i,this.value=r,this.id=Xa++}dynamicSlot(e){var t;let i=this.value,r=this.facet.compareInput,n=this.id,s=e[n]>>1,o=this.type==2,a=!1,l=!1,h=[];for(let c of this.dependencies)c=="doc"?a=!0:c=="selection"?l=!0:(((t=e[c.id])!==null&&t!==void 0?t:1)&1)==0&&h.push(e[c.id]);return{create(c){return c.values[s]=i(c),1},update(c,f){if(a&&f.docChanged||l&&(f.docChanged||f.selection)||ro(c,h)){let u=i(c);if(o?!Cl(u,c.values[s],r):!r(u,c.values[s]))return c.values[s]=u,1}return 0},reconfigure:(c,f)=>{let u,Q=f.config.address[n];if(Q!=null){let p=Kr(f,Q);if(this.dependencies.every(m=>m instanceof v?f.facet(m)===c.facet(m):m instanceof ce?f.field(m,!1)==c.field(m,!1):!0)||(o?Cl(u=i(c),p,r):r(u=i(c),p)))return c.values[s]=p,0}else u=i(c);return c.values[s]=u,1}}}}function Cl(O,e,t){if(O.length!=e.length)return!1;for(let i=0;i<O.length;i++)if(!t(O[i],e[i]))return!1;return!0}function ro(O,e){let t=!1;for(let i of e)Qi(O,i)&1&&(t=!0);return t}function ag(O,e,t){let i=t.map(a=>O[a.id]),r=t.map(a=>a.type),n=i.filter(a=>!(a&1)),s=O[e.id]>>1;function o(a){let l=[];for(let h=0;h<i.length;h++){let c=Kr(a,i[h]);if(r[h]==2)for(let f of c)l.push(f);else l.push(c)}return e.combine(l)}return{create(a){for(let l of i)Qi(a,l);return a.values[s]=o(a),1},update(a,l){if(!ro(a,n))return 0;let h=o(a);return e.compare(h,a.values[s])?0:(a.values[s]=h,1)},reconfigure(a,l){let h=ro(a,i),c=l.config.facets[e.id],f=l.facet(e);if(c&&!h&&ba(t,c))return a.values[s]=f,0;let u=o(a);return e.compare(u,f)?(a.values[s]=f,0):(a.values[s]=u,1)}}}const ar=v.define({static:!0});class ce{constructor(e,t,i,r,n){this.id=e,this.createF=t,this.updateF=i,this.compareF=r,this.spec=n,this.provides=void 0}static define(e){let t=new ce(Xa++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ar).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,r)=>{let n=i.values[t],s=this.updateF(n,r);return this.compareF(n,s)?0:(i.values[t]=s,1)},reconfigure:(i,r)=>{let n=i.facet(ar),s=r.facet(ar),o;return(o=n.find(a=>a.field==this))&&o!=s.find(a=>a.field==this)?(i.values[t]=o.create(i),1):r.config.address[this.id]!=null?(i.values[t]=r.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,ar.of({field:this,create:e})]}get extension(){return this}}const sO={lowest:4,low:3,default:2,high:1,highest:0};function ti(O){return e=>new ld(e,O)}const Ut={highest:ti(sO.highest),high:ti(sO.high),default:ti(sO.default),low:ti(sO.low),lowest:ti(sO.lowest)};class ld{constructor(e,t){this.inner=e,this.prec=t}}class Et{of(e){return new no(this,e)}reconfigure(e){return Et.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class no{constructor(e,t){this.compartment=e,this.inner=t}}class Hr{constructor(e,t,i,r,n,s){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=r,this.staticValues=n,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let r=[],n=Object.create(null),s=new Map;for(let f of lg(e,t,s))f instanceof ce?r.push(f):(n[f.facet.id]||(n[f.facet.id]=[])).push(f);let o=Object.create(null),a=[],l=[];for(let f of r)o[f.id]=l.length<<1,l.push(u=>f.slot(u));let h=i?.config.facets;for(let f in n){let u=n[f],Q=u[0].facet,p=h&&h[f]||[];if(u.every(m=>m.type==0))if(o[Q.id]=a.length<<1|1,ba(p,u))a.push(i.facet(Q));else{let m=Q.combine(u.map(g=>g.value));a.push(i&&Q.compare(m,i.facet(Q))?i.facet(Q):m)}else{for(let m of u)m.type==0?(o[m.id]=a.length<<1|1,a.push(m.value)):(o[m.id]=l.length<<1,l.push(g=>m.dynamicSlot(g)));o[Q.id]=l.length<<1,l.push(m=>ag(m,Q,u))}}let c=l.map(f=>f(o));return new Hr(e,s,c,o,a,n)}}function lg(O,e,t){let i=[[],[],[],[],[]],r=new Map;function n(s,o){let a=r.get(s);if(a!=null){if(a<=o)return;let l=i[a].indexOf(s);l>-1&&i[a].splice(l,1),s instanceof no&&t.delete(s.compartment)}if(r.set(s,o),Array.isArray(s))for(let l of s)n(l,o);else if(s instanceof no){if(t.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(s.compartment)||s.inner;t.set(s.compartment,l),n(l,o)}else if(s instanceof ld)n(s.inner,s.prec);else if(s instanceof ce)i[o].push(s),s.provides&&n(s.provides,o);else if(s instanceof Vr)i[o].push(s),s.facet.extensions&&n(s.facet.extensions,sO.default);else{let l=s.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);n(l,o)}}return n(O,sO.default),i.reduce((s,o)=>s.concat(o))}function Qi(O,e){if(e&1)return 2;let t=e>>1,i=O.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;O.status[t]=4;let r=O.computeSlot(O,O.config.dynamicSlots[t]);return O.status[t]=2|r}function Kr(O,e){return e&1?O.config.staticValues[e>>1]:O.values[e>>1]}const hd=v.define(),so=v.define({combine:O=>O.some(e=>e),static:!0}),cd=v.define({combine:O=>O.length?O[0]:void 0,static:!0}),fd=v.define(),dd=v.define(),ud=v.define(),Qd=v.define({combine:O=>O.length?O[0]:!1});class Vt{constructor(e,t){this.type=e,this.value=t}static define(){return new hg}}class hg{of(e){return new Vt(this,e)}}class cg{constructor(e){this.map=e}of(e){return new z(this,e)}}class z{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new z(this.type,t)}is(e){return this.type==e}static define(e={}){return new cg(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let r of e){let n=r.map(t);n&&i.push(n)}return i}}z.reconfigure=z.define();z.appendConfig=z.define();class re{constructor(e,t,i,r,n,s){this.startState=e,this.changes=t,this.selection=i,this.effects=r,this.annotations=n,this.scrollIntoView=s,this._doc=null,this._state=null,i&&ad(i,t.newLength),n.some(o=>o.type==re.time)||(this.annotations=n.concat(re.time.of(Date.now())))}static create(e,t,i,r,n,s){return new re(e,t,i,r,n,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(re.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}re.time=Vt.define();re.userEvent=Vt.define();re.addToHistory=Vt.define();re.remote=Vt.define();function fg(O,e){let t=[];for(let i=0,r=0;;){let n,s;if(i<O.length&&(r==e.length||e[r]>=O[i]))n=O[i++],s=O[i++];else if(r<e.length)n=e[r++],s=e[r++];else return t;!t.length||t[t.length-1]<n?t.push(n,s):t[t.length-1]<s&&(t[t.length-1]=s)}}function pd(O,e,t){var i;let r,n,s;return t?(r=e.changes,n=ae.empty(e.changes.length),s=O.changes.compose(e.changes)):(r=e.changes.map(O.changes),n=O.changes.mapDesc(e.changes,!0),s=O.changes.compose(r)),{changes:s,selection:e.selection?e.selection.map(n):(i=O.selection)===null||i===void 0?void 0:i.map(r),effects:z.mapEffects(O.effects,r).concat(z.mapEffects(e.effects,n)),annotations:O.annotations.length?O.annotations.concat(e.annotations):e.annotations,scrollIntoView:O.scrollIntoView||e.scrollIntoView}}function oo(O,e,t){let i=e.selection,r=YO(e.annotations);return e.userEvent&&(r=r.concat(re.userEvent.of(e.userEvent))),{changes:e.changes instanceof ae?e.changes:ae.of(e.changes||[],t,O.facet(cd)),selection:i&&(i instanceof P?i:P.single(i.anchor,i.head)),effects:YO(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function md(O,e,t){let i=oo(O,e.length?e[0]:{},O.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let n=1;n<e.length;n++){e[n].filter===!1&&(t=!1);let s=!!e[n].sequential;i=pd(i,oo(O,e[n],s?i.changes.newLength:O.doc.length),s)}let r=re.create(O,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return ug(t?dg(r):r)}function dg(O){let e=O.startState,t=!0;for(let r of e.facet(fd)){let n=r(O);if(n===!1){t=!1;break}Array.isArray(n)&&(t=t===!0?n:fg(t,n))}if(t!==!0){let r,n;if(t===!1)n=O.changes.invertedDesc,r=ae.empty(e.doc.length);else{let s=O.changes.filter(t);r=s.changes,n=s.filtered.mapDesc(s.changes).invertedDesc}O=re.create(e,r,O.selection&&O.selection.map(n),z.mapEffects(O.effects,n),O.annotations,O.scrollIntoView)}let i=e.facet(dd);for(let r=i.length-1;r>=0;r--){let n=i[r](O);n instanceof re?O=n:Array.isArray(n)&&n.length==1&&n[0]instanceof re?O=n[0]:O=md(e,YO(n),!1)}return O}function ug(O){let e=O.startState,t=e.facet(ud),i=O;for(let r=t.length-1;r>=0;r--){let n=t[r](O);n&&Object.keys(n).length&&(i=pd(i,oo(e,n,O.changes.newLength),!0))}return i==O?O:re.create(e,O.changes,O.selection,i.effects,i.annotations,i.scrollIntoView)}const Qg=[];function YO(O){return O==null?Qg:Array.isArray(O)?O:[O]}var te=(function(O){return O[O.Word=0]="Word",O[O.Space=1]="Space",O[O.Other=2]="Other",O})(te||(te={}));const pg=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ao;try{ao=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function mg(O){if(ao)return ao.test(O);for(let e=0;e<O.length;e++){let t=O[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||pg.test(t)))return!0}return!1}function gg(O){return e=>{if(!/\S/.test(e))return te.Space;if(mg(e))return te.Word;for(let t=0;t<O.length;t++)if(e.indexOf(O[t])>-1)return te.Word;return te.Other}}class j{constructor(e,t,i,r,n,s){this.config=e,this.doc=t,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=n,s&&(s._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)Qi(this,o<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Qi(this,i),Kr(this,i)}update(...e){return md(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:r}=t;for(let o of e.effects)o.is(Et.reconfigure)?(t&&(r=new Map,t.compartments.forEach((a,l)=>r.set(l,a)),t=null),r.set(o.value.compartment,o.value.extension)):o.is(z.reconfigure)?(t=null,i=o.value):o.is(z.appendConfig)&&(t=null,i=YO(i).concat(o.value));let n;t?n=e.startState.values.slice():(t=Hr.resolve(i,r,this),n=new j(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,l)=>l.reconfigure(a,this),null).values);let s=e.startState.facet(so)?e.newSelection:e.newSelection.asSingle();new j(t,e.newDoc,s,n,(o,a)=>a.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:P.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),r=this.changes(i.changes),n=[i.range],s=YO(i.effects);for(let o=1;o<t.ranges.length;o++){let a=e(t.ranges[o]),l=this.changes(a.changes),h=l.map(r);for(let f=0;f<o;f++)n[f]=n[f].map(h);let c=r.mapDesc(l,!0);n.push(a.range.map(c)),r=r.compose(h),s=z.mapEffects(s,h).concat(z.mapEffects(YO(a.effects),c))}return{changes:r,selection:P.create(n,t.mainIndex),effects:s}}changes(e=[]){return e instanceof ae?e:ae.of(e,this.doc.length,this.facet(j.lineSeparator))}toText(e){return E.of(e.split(this.facet(j.lineSeparator)||to))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Qi(this,t),Kr(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof ce&&this.config.address[r.id]!=null&&(t[i]=r.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let n in i)if(Object.prototype.hasOwnProperty.call(e,n)){let s=i[n],o=e[n];r.push(s.init(a=>s.spec.fromJSON(o,a)))}}return j.create({doc:e.doc,selection:P.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=Hr.resolve(e.extensions||[],new Map),i=e.doc instanceof E?e.doc:E.of((e.doc||"").split(t.staticFacet(j.lineSeparator)||to)),r=e.selection?e.selection instanceof P?e.selection:P.single(e.selection.anchor,e.selection.head):P.single(0);return ad(r,i.length),t.staticFacet(so)||(r=r.asSingle()),new j(t,i,r,t.dynamicSlots.map(()=>null),(n,s)=>s.create(n),null)}get tabSize(){return this.facet(j.tabSize)}get lineBreak(){return this.facet(j.lineSeparator)||`
@@ -1 +1 @@
1
- import{N as n,c,G as r,R as p,a4 as u,U as i,am as s}from"./2dNDtTiv.js";const m={base:"my-1.5 ps-1.5 leading-7 [&>ul]:my-0"},_={__name:"ProseLi",props:{class:{type:null,required:!1}},setup(e){const a=e,l=n(),o=c(()=>s({extend:s(m),...l.ui?.prose?.li||{}}));return(t,d)=>(p(),r("li",{class:i(o.value({class:a.class}))},[u(t.$slots,"default")],2))}};export{_ as default};
1
+ import{P as n,c,G as r,T as p,a4 as u,W as i,am as s}from"./D6tVZcRs.js";const m={base:"my-1.5 ps-1.5 leading-7 [&>ul]:my-0"},_={__name:"ProseLi",props:{class:{type:null,required:!1}},setup(e){const a=e,l=n(),o=c(()=>s({extend:s(m),...l.ui?.prose?.li||{}}));return(t,d)=>(p(),r("li",{class:i(o.value({class:a.class}))},[u(t.$slots,"default")],2))}};export{_ as default};
@@ -0,0 +1 @@
1
+ import{d as F}from"./D12qPplu.js";import{e as z,c as S,ai as C,N as X,C as d,f as A,aR as O,P as B,am as E,S as D,T as M,U as $,a4 as U,W as V,a3 as I,Q as N,R as j,X as H,Y as P}from"./D6tVZcRs.js";import{u as G}from"./C7m9zGMG.js";const ae=(f,r={},{collapsed:o=z(!1)}={})=>{const t=z(null),e=S(()=>({side:"left",minSize:0,maxSize:100,defaultSize:0,storage:"cookie",persistent:!0,collapsible:!1,collapsedSize:0,resizable:!0,unit:"%",...C(r)?r.value:r})),{dir:h}=X(),y={size:e.value.defaultSize,collapsed:d(o)??!1},c=e.value.persistent&&(e.value.resizable||e.value.collapsible)?e.value.storage==="cookie"?G(f,{default:()=>y}):F(f,y):z(y),n=S({get:()=>c.value.collapsed,set:a=>{e.value.collapsible&&(C(o)&&(o.value=a),c.value.collapsed=a)}}),x=z(e.value.defaultSize),b=S({get:()=>c.value.size,set:a=>{c.value.size=a}}),_=S(()=>n.value?e.value.collapsedSize:b.value),q=z(!1),L=(a,l,p)=>{if(!t.value||!e.value.resizable)return;const m=t.value.parentElement?.offsetWidth||1,v=h.value==="rtl";let s;v?s=e.value.side==="left"?l-a.clientX:a.clientX-l:s=e.value.side==="left"?a.clientX-l:l-a.clientX;const u=p+s;let i;if(e.value.unit==="rem"){const w=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);i=u/w}else e.value.unit==="px"?i=u:i=u/m*100;if(e.value.collapsible&&i<e.value.collapsedSize+4){g(!0);return}else n.value&&g(!1);b.value=Math.min(e.value.maxSize,Math.max(e.value.minSize,i))},k=a=>{if(!t.value||!e.value.resizable)return;a.preventDefault(),a.stopPropagation();const l=t.value.getBoundingClientRect().width;if(!l)return;const p=a.clientX,m=l;q.value=!0;const v=u=>{L(u,p,m)},s=()=>{q.value=!1,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",s)},R=(a,l,p)=>{if(!t.value||!e.value.resizable||!a.touches[0])return;const m=t.value.parentElement?.offsetWidth||1,v=h.value==="rtl";let s;v?s=e.value.side==="left"?l-a.touches[0].clientX:a.touches[0].clientX-l:s=e.value.side==="left"?a.touches[0].clientX-l:l-a.touches[0].clientX;const u=p+s;let i;if(e.value.unit==="rem"){const w=Number.parseFloat(getComputedStyle(document.documentElement).fontSize);i=u/w}else e.value.unit==="px"?i=u:i=u/m*100;if(e.value.collapsible&&i<e.value.collapsedSize+4){g(!0);return}else n.value&&g(!1);b.value=Math.min(e.value.maxSize,Math.max(e.value.minSize,i))},T=a=>{if(!t.value||!e.value.resizable||!a.touches[0])return;a.preventDefault(),a.stopPropagation();const l=t.value.getBoundingClientRect().width;if(!l)return;const p=a.touches[0].clientX,m=l;q.value=!0;const v=u=>{R(u,p,m)},s=()=>{q.value=!1,document.removeEventListener("touchmove",v),document.removeEventListener("touchend",s),document.removeEventListener("touchcancel",s)};document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",s),document.addEventListener("touchcancel",s)},W=a=>{!t.value||!e.value.resizable||(a.preventDefault(),a.stopPropagation(),n.value&&g(!1),b.value=e.value.defaultSize)},g=a=>{if(!e.value.collapsible)return;const l=a??!n.value;l&&!n.value?x.value=b.value:!l&&n.value&&(b.value=x.value),n.value=l};return C(o)&&c.value.collapsed&&(o.value=c.value.collapsed),C(o)&&A(o,a=>{e.value.collapsible&&c.value.collapsed!==a&&(c.value.collapsed=a)}),{el:t,size:_,isDragging:q,isCollapsed:n,onMouseDown:k,onTouchStart:T,onDoubleClick:W,collapse:g}},[Q,le]=O("DashboardGroup"),Y={base:"hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1"},te={__name:"UDashboardResizeHandle",props:{as:{type:null,required:!1},class:{type:null,required:!1}},setup(f){const r=f,o=B(),t=S(()=>E({extend:E(Y),...o.ui?.dashboardResizeHandle||{}}));return(e,h)=>(M(),D(d(I),{as:f.as,role:"separator",class:V(t.value({class:r.class}))},{default:$(()=>[U(e.$slots,"default")]),_:3},8,["as","class"]))}},J={base:"lg:hidden",variants:{side:{left:"",right:""}}},se=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebarToggle",props:{color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1,default:"ghost"},side:{type:String,required:!1,default:"left"},label:{type:String,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],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},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(f){const r=f,o=N(j(r,"icon","side","class")),{t}=X(),e=B(),{sidebarOpen:h,toggleSidebar:y}=Q({sidebarOpen:z(!1),toggleSidebar:()=>{}}),c=S(()=>E({extend:E(J),...e.ui?.dashboardSidebarToggle||{}}));return(n,x)=>(M(),D(P,H({...d(o),icon:r.icon||(d(h)?d(e).ui.icons.close:d(e).ui.icons.menu),"aria-label":d(h)?d(t)("dashboardSidebarToggle.close"):d(t)("dashboardSidebarToggle.open"),...n.$attrs},{class:c.value({class:r.class,side:r.side}),onClick:d(y)}),null,16,["class","onClick"]))}});export{te as _,ae as a,se as b,le as p,Q as u};
@@ -1 +1 @@
1
- import{N as l,c as n,G as c,R as i,a4 as p,U as u,am as s,aa as m,ae as d}from"./2dNDtTiv.js";const f={base:"*:first:mt-0 *:last:mb-0 *:my-1.5"},y={__name:"ProseTabsItem",props:{label:{type:String,required:!0},description:{type:String,required:!1},class:{type:null,required:!1}},setup(e){const a=e,t=l(),r=n(()=>s({extend:s(f),...t.ui?.prose?.tabsItem||{}}));return(o,b)=>(i(),c("div",{class:u(r.value({class:a.class}))},[p(o.$slots,"default",{},()=>[m(d(e.description),1)])],2))}};export{y as default};
1
+ import{P as l,c as n,G as c,T as i,a4 as p,W as u,am as s,aa as m,ae as d}from"./D6tVZcRs.js";const f={base:"*:first:mt-0 *:last:mb-0 *:my-1.5"},y={__name:"ProseTabsItem",props:{label:{type:String,required:!0},description:{type:String,required:!1},class:{type:null,required:!1}},setup(e){const a=e,t=l(),r=n(()=>s({extend:s(f),...t.ui?.prose?.tabsItem||{}}));return(o,b)=>(i(),c("div",{class:u(r.value({class:a.class}))},[p(o.$slots,"default",{},()=>[m(d(e.description),1)])],2))}};export{y as default};
@@ -1 +1 @@
1
- {"id":"515be38f-7222-4e4b-80cb-cef7594b1834","timestamp":1771738148484}
1
+ {"id":"495aca73-bfa5-456e-b96a-f02e009c72d3","timestamp":1771851619902}
@@ -0,0 +1 @@
1
+ {"id":"495aca73-bfa5-456e-b96a-f02e009c72d3","timestamp":1771851619902,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}