cognova 0.2.28 → 0.3.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 (427) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{CGTQGJ_c.js → 2JW1kVqO.js} +1 -1
  3. package/.output/public/_nuxt/{DjaEQQhf.js → 2_I-zzyY.js} +1 -1
  4. package/.output/public/_nuxt/{CXRkSVkD.js → 4NTp6poK.js} +1 -1
  5. package/.output/public/_nuxt/{ggWK6BEa.js → 6zKB4hWu.js} +1 -1
  6. package/.output/public/_nuxt/{cGEbEAGz.js → 9ItelqhY.js} +1 -1
  7. package/.output/public/_nuxt/{jF9FNyOl.js → B-Ei6Hvi.js} +1 -1
  8. package/.output/public/_nuxt/{CaohnGAD.js → B0JpJc5i.js} +1 -1
  9. package/.output/public/_nuxt/{Q3QJAuZ2.js → B33JEzWt.js} +1 -1
  10. package/.output/public/_nuxt/{BpExBTyC.js → B3JQdHMC.js} +1 -1
  11. package/.output/public/_nuxt/{CT8T1FW9.js → B3T446wo.js} +1 -1
  12. package/.output/public/_nuxt/{BlKgmZLh.js → B4mSK5UA.js} +1 -1
  13. package/.output/public/_nuxt/{BNxg8OvE.js → B6T2ieKI.js} +1 -1
  14. package/.output/public/_nuxt/{BuURpKT4.js → B6ZzWXlS.js} +1 -1
  15. package/.output/public/_nuxt/{BbdFZa4U.js → BGqrblnV.js} +1 -1
  16. package/.output/public/_nuxt/{COMJZX17.js → BIJ5sJ5R.js} +1 -1
  17. package/.output/public/_nuxt/{CAJH0xMY.js → BItcadlA.js} +1 -1
  18. package/.output/public/_nuxt/{B6BF2w8r.js → BKur2BoW.js} +3 -3
  19. package/.output/public/_nuxt/{OKVQJ7yj.js → BMQ18rM3.js} +1 -1
  20. package/.output/public/_nuxt/{ds0WOZHj.js → BNkwITV3.js} +1 -1
  21. package/.output/public/_nuxt/{K0RZW9fp.js → BOGlnxvg.js} +1 -1
  22. package/.output/public/_nuxt/{DxcbYcrE.js → BSCSuj3k.js} +1 -1
  23. package/.output/public/_nuxt/{B592hx40.js → BVOv2Oc5.js} +1 -1
  24. package/.output/public/_nuxt/{B1A26hhf.js → B_BuLmP-.js} +1 -1
  25. package/.output/public/_nuxt/{Dom1vIen.js → B_N25XyK.js} +1 -1
  26. package/.output/public/_nuxt/B_X7Tm-R.js +1 -0
  27. package/.output/public/_nuxt/{DIDjR8Ry.js → BbAgDiwr.js} +1 -1
  28. package/.output/public/_nuxt/{CNi_mvQS.js → BbSqQwgP.js} +1 -1
  29. package/.output/public/_nuxt/{B6m5ExpJ.js → Bc5v4QIK.js} +1 -1
  30. package/.output/public/_nuxt/Bgacd_5T.js +1 -0
  31. package/.output/public/_nuxt/{Tirj2rC0.js → BiHGAfji.js} +1 -1
  32. package/.output/public/_nuxt/{GJMyZaby.js → BkpjuTmQ.js} +1 -1
  33. package/.output/public/_nuxt/{jenjyHml.js → Bm4OZ5eF.js} +1 -1
  34. package/.output/public/_nuxt/{CKfAI3Hb.js → BmJUPCHI.js} +1 -1
  35. package/.output/public/_nuxt/{0mcDe5Hg.js → Bn9_DqVa.js} +1 -1
  36. package/.output/public/_nuxt/{DcT64MxD.js → Bo6zuUwA.js} +1 -1
  37. package/.output/public/_nuxt/{K1o4brLx.js → BpCUqd2p.js} +1 -1
  38. package/.output/public/_nuxt/{Cjj-eCEV.js → BqB4oHtI.js} +1 -1
  39. package/.output/public/_nuxt/{Cygjd4rF.js → BrpM2Yks.js} +1 -1
  40. package/.output/public/_nuxt/{DkjKiJOq.js → BrplSKvg.js} +1 -1
  41. package/.output/public/_nuxt/{Dg19_qAK.js → Bumx9ern.js} +1 -1
  42. package/.output/public/_nuxt/{B06CcGVK.js → Bvui1gLJ.js} +3 -3
  43. package/.output/public/_nuxt/{DKd2_wBj.js → Bxs9TFRM.js} +1 -1
  44. package/.output/public/_nuxt/{BVNZYpXH.js → BzaaoKje.js} +1 -1
  45. package/.output/public/_nuxt/{olSL1K5t.js → C0slPdtJ.js} +1 -1
  46. package/.output/public/_nuxt/{CBpuaar1.js → C1kJTOky.js} +1 -1
  47. package/.output/public/_nuxt/{BVJkcOi4.js → C2Hl04RS.js} +1 -1
  48. package/.output/public/_nuxt/{6_fEEpaq.js → C2ucgNJs.js} +1 -1
  49. package/.output/public/_nuxt/{Bvqgc_wA.js → C4Ehmr1Z.js} +1 -1
  50. package/.output/public/_nuxt/{Cpyrc9BG.js → C4P3Zqll.js} +1 -1
  51. package/.output/public/_nuxt/{DSQ9bpNJ.js → C60IMMjV.js} +1 -1
  52. package/.output/public/_nuxt/{CtyKXJ-J.js → C7p2cVeq.js} +1 -1
  53. package/.output/public/_nuxt/{DZpgj5sA.js → C8VN6s7g.js} +1 -1
  54. package/.output/public/_nuxt/{CNVj60PG.js → C9PaB8Gy.js} +1 -1
  55. package/.output/public/_nuxt/C9zN5CLG.js +1 -0
  56. package/.output/public/_nuxt/{ptAR8AWT.js → CA6VAiAz.js} +1 -1
  57. package/.output/public/_nuxt/{xooRr3tW.js → CAGdW7jj.js} +1 -1
  58. package/.output/public/_nuxt/{5FVMuLeh.js → CFUDej8g.js} +1 -1
  59. package/.output/public/_nuxt/{CzxGRepV.js → CGH9FIs1.js} +1 -1
  60. package/.output/public/_nuxt/{Dz-vwDzE.js → CIoCJD7E.js} +1 -1
  61. package/.output/public/_nuxt/{D7Bxfxio.js → CJK4ud_7.js} +1 -1
  62. package/.output/public/_nuxt/{Cg8k3_b4.js → CJjCeccR.js} +1 -1
  63. package/.output/public/_nuxt/{DKHJBr2m.js → CKQFB7y-.js} +1 -1
  64. package/.output/public/_nuxt/{DxcN7Uv7.js → CKhwTzye.js} +1 -1
  65. package/.output/public/_nuxt/{CoUQ3qpL.js → CLr8lZv6.js} +1 -1
  66. package/.output/public/_nuxt/{CQcJNYmv.js → CMm794DV.js} +1 -1
  67. package/.output/public/_nuxt/{rTscsMvH.js → COKmhZhu.js} +1 -1
  68. package/.output/public/_nuxt/{DFVXHy0C.js → CQyohvfd.js} +1 -1
  69. package/.output/public/_nuxt/{BnmZcuhY.js → CR6EtaHC.js} +1 -1
  70. package/.output/public/_nuxt/{CV92g0qz.js → CSgcSgHU.js} +1 -1
  71. package/.output/public/_nuxt/{BUfJTKJk.js → CTvPZ0Az.js} +1 -1
  72. package/.output/public/_nuxt/{DhIZvLeI.js → CTy3HtEw.js} +1 -1
  73. package/.output/public/_nuxt/{DlR5hUi3.js → CWV0e4U5.js} +1 -1
  74. package/.output/public/_nuxt/{CDP4J5em.js → CXG7oY-U.js} +1 -1
  75. package/.output/public/_nuxt/{DKrd1pCW.js → CdPiqiJ5.js} +1 -1
  76. package/.output/public/_nuxt/{C1RFLzd_.js → CeLxnQk9.js} +1 -1
  77. package/.output/public/_nuxt/{BDQ6hxO7.js → CeQiP-9t.js} +1 -1
  78. package/.output/public/_nuxt/{CvaD7s2l.js → Cju8d_ol.js} +1 -1
  79. package/.output/public/_nuxt/{Cwel2ykQ.js → Cl8ifu-L.js} +1 -1
  80. package/.output/public/_nuxt/{BAh-k-y8.js → Co8IFxrZ.js} +1 -1
  81. package/.output/public/_nuxt/{DZQxxfue.js → CpbJA_Yo.js} +1 -1
  82. package/.output/public/_nuxt/{-XfM4jpu.js → CrefHAae.js} +1 -1
  83. package/.output/public/_nuxt/{EeCE4NvG.js → Cs4NNweY.js} +1 -1
  84. package/.output/public/_nuxt/{DkUMlRf8.js → Ct0W7gNN.js} +1 -1
  85. package/.output/public/_nuxt/{e4zQkzJm.js → CtVg9lp4.js} +1 -1
  86. package/.output/public/_nuxt/{kMwuhvCf.js → CxcBBxdn.js} +1 -1
  87. package/.output/public/_nuxt/{B_V_KZmg.js → D3JmeFiV.js} +1 -1
  88. package/.output/public/_nuxt/{BlplwzgB.js → D41telfH.js} +1 -1
  89. package/.output/public/_nuxt/{oWO88tvt.js → D4niT1S5.js} +1 -1
  90. package/.output/public/_nuxt/{CLm_rHHY.js → D5EHXlNe.js} +1 -1
  91. package/.output/public/_nuxt/{BQeDYnyj.js → D5WQqsOS.js} +1 -1
  92. package/.output/public/_nuxt/{EnGykH_X.js → D6M5NoPd.js} +1 -1
  93. package/.output/public/_nuxt/{CopZwjN8.js → D82b0vAr.js} +1 -1
  94. package/.output/public/_nuxt/{C8gC5cUj.js → D9A5TPEi.js} +1 -1
  95. package/.output/public/_nuxt/{B03oRqJe.js → DCfRGs9C.js} +1 -1
  96. package/.output/public/_nuxt/{BZ3u3Znq.js → DD4avmqw.js} +1 -1
  97. package/.output/public/_nuxt/{VcsszHDj.js → DDvO6LgQ.js} +1 -1
  98. package/.output/public/_nuxt/{CyZlzytZ.js → DGJlvBrD.js} +1 -1
  99. package/.output/public/_nuxt/{DxT3YmAC.js → DGlou1lo.js} +1 -1
  100. package/.output/public/_nuxt/{DEl5RR7R.js → DIBS8bq5.js} +1 -1
  101. package/.output/public/_nuxt/{B5l6QVGz.js → DOtecmrb.js} +1 -1
  102. package/.output/public/_nuxt/{CiQJYbKL.js → DRJGPWDD.js} +1 -1
  103. package/.output/public/_nuxt/{I7OHJVxg.js → DRp7aZIN.js} +1 -1
  104. package/.output/public/_nuxt/{C0FuVjdX.js → DSVvpdtU.js} +1 -1
  105. package/.output/public/_nuxt/{BPBLcBHM.js → DSYyrmXf.js} +2 -2
  106. package/.output/public/_nuxt/{BeAxkmtt.js → DU7nOqQB.js} +1 -1
  107. package/.output/public/_nuxt/{CtLfbSRS.js → DUPjXsiP.js} +1 -1
  108. package/.output/public/_nuxt/{944smzho.js → DZpiN4zH.js} +1 -1
  109. package/.output/public/_nuxt/{aUYaYlYl.js → Dammc_1s.js} +1 -1
  110. package/.output/public/_nuxt/{DOcEwtqN.js → Db-kjuaD.js} +1 -1
  111. package/.output/public/_nuxt/{BGytjslk.js → Dcwf4i-Q.js} +1 -1
  112. package/.output/public/_nuxt/{CVwzer_Y.js → Dek5UfiG.js} +1 -1
  113. package/.output/public/_nuxt/{B0UpgYEt.js → DfFdabl1.js} +1 -1
  114. package/.output/public/_nuxt/{CTXxmwx3.js → DiEO7ZFr.js} +1 -1
  115. package/.output/public/_nuxt/{DnfG5RzJ.js → DifnNECd.js} +1 -1
  116. package/.output/public/_nuxt/{BfiU8B4M.js → DlHX1pTw.js} +1 -1
  117. package/.output/public/_nuxt/{DFW8HOVB.js → DmyqJFz5.js} +1 -1
  118. package/.output/public/_nuxt/{C4MrxKnP.js → DoJvRDs7.js} +1 -1
  119. package/.output/public/_nuxt/{CHn6tbtE.js → DqgkoNYg.js} +1 -1
  120. package/.output/public/_nuxt/{DY78sr_b.js → DrNzaRVb.js} +1 -1
  121. package/.output/public/_nuxt/{B0YLhHra.js → DsS-DFWu.js} +1 -1
  122. package/.output/public/_nuxt/{BhOf69HZ.js → Dsir0YfK.js} +1 -1
  123. package/.output/public/_nuxt/{C7RIYfkH.js → Dt9i9jqR.js} +1 -1
  124. package/.output/public/_nuxt/Dyiypbbf.js +1 -0
  125. package/.output/public/_nuxt/{hkCaWCzP.js → DzYjEwu-.js} +1 -1
  126. package/.output/public/_nuxt/{C4ui9LWq.js → DzkGTE_f.js} +1 -1
  127. package/.output/public/_nuxt/{B91qlTSF.js → F9QAg-ue.js} +3 -3
  128. package/.output/public/_nuxt/{5qkiDtwf.js → G70JlcRF.js} +1 -1
  129. package/.output/public/_nuxt/{zApTn6EM.js → Ho4n6pbN.js} +2 -2
  130. package/.output/public/_nuxt/{BNXyokAF.js → IPJ5NHxY.js} +1 -1
  131. package/.output/public/_nuxt/{DohhIeRk.js → KR2rsefD.js} +1 -1
  132. package/.output/public/_nuxt/{CTJDAjdO.js → M4MaEzH8.js} +1 -1
  133. package/.output/public/_nuxt/{Cw2TcJMF.js → MU7v9AFI.js} +1 -1
  134. package/.output/public/_nuxt/{CLzxl_Kg.js → NZ_UZ0cn.js} +1 -1
  135. package/.output/public/_nuxt/{D0fJg-Y2.js → UeJc4vyy.js} +1 -1
  136. package/.output/public/_nuxt/{4Nlt-3Ix.js → UmoNP3Cd.js} +1 -1
  137. package/.output/public/_nuxt/{BIoHE1oQ.js → XrH67GZa.js} +1 -1
  138. package/.output/public/_nuxt/{D12yGpMq.js → YdsZWDVx.js} +1 -1
  139. package/.output/public/_nuxt/builds/latest.json +1 -1
  140. package/.output/public/_nuxt/builds/meta/009a8ea2-3519-44d5-a54a-fb307b176ec4.json +1 -0
  141. package/.output/public/_nuxt/{DWG9jKCo.js → dEJbCxak.js} +1 -1
  142. package/.output/public/_nuxt/{DH2yWNbZ.js → dFmuWxxS.js} +1 -1
  143. package/.output/public/_nuxt/{CHd8mdNy.js → dj_3rTRs.js} +1 -1
  144. package/.output/public/_nuxt/{DdmLHNRP.js → eh-WJuyb.js} +1 -1
  145. package/.output/public/_nuxt/error-404.w6JUU5Hy.css +1 -0
  146. package/.output/public/_nuxt/error-500.DnkLfqVN.css +1 -0
  147. package/.output/public/_nuxt/{CkfP4uja.js → p9zz3Q1q.js} +1 -1
  148. package/.output/public/_nuxt/{C7hn68Tp.js → pbxwxCYQ.js} +1 -1
  149. package/.output/public/_nuxt/{eFu2sWbl.js → rg3Ef4hE.js} +1 -1
  150. package/.output/public/_nuxt/{BaTcZylh.js → sMEBfnZ_.js} +1 -1
  151. package/.output/public/_nuxt/{CamCmKfq.js → sYjimcQA.js} +1 -1
  152. package/.output/public/_nuxt/{Ds97nj0P.js → seLVpPrO.js} +1 -1
  153. package/.output/public/_nuxt/{DyVUuE07.js → tmIYKdND.js} +1 -1
  154. package/.output/public/_nuxt/{Dc8vLBQN.js → u7UcB_QC.js} +1 -1
  155. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  156. package/.output/server/chunks/build/{A-BWukSPjS.mjs → A-DATekKiq.mjs} +2 -2
  157. package/.output/server/chunks/build/A-DATekKiq.mjs.map +1 -0
  158. package/.output/server/chunks/build/{Accordion-BaJYea6e.mjs → Accordion-Bj_DZRGD.mjs} +3 -3
  159. package/.output/server/chunks/build/{Accordion-BaJYea6e.mjs.map → Accordion-Bj_DZRGD.mjs.map} +1 -1
  160. package/.output/server/chunks/build/{AccordionItem-DdG2zgcN.mjs → AccordionItem-BwK-4Fa_.mjs} +2 -2
  161. package/.output/server/chunks/build/{AccordionItem-DdG2zgcN.mjs.map → AccordionItem-BwK-4Fa_.mjs.map} +1 -1
  162. package/.output/server/chunks/build/{Badge-C1RKkIgG.mjs → Badge-DDntwVsk.mjs} +2 -2
  163. package/.output/server/chunks/build/{Badge-C1RKkIgG.mjs.map → Badge-DDntwVsk.mjs.map} +1 -1
  164. package/.output/server/chunks/build/{Badge-BrU9UkCv.mjs → Badge-MNa3irBA.mjs} +3 -3
  165. package/.output/server/chunks/build/Badge-MNa3irBA.mjs.map +1 -0
  166. package/.output/server/chunks/build/{Blockquote-DND8wTkU.mjs → Blockquote-DS7njhUE.mjs} +2 -2
  167. package/.output/server/chunks/build/Blockquote-DS7njhUE.mjs.map +1 -0
  168. package/.output/server/chunks/build/{Callout-1halpaEg.mjs → Callout-BZrcb6xC.mjs} +2 -2
  169. package/.output/server/chunks/build/{Callout-1halpaEg.mjs.map → Callout-BZrcb6xC.mjs.map} +1 -1
  170. package/.output/server/chunks/build/{Card-BHCSDKDt.mjs → Card-BbT1eROQ.mjs} +2 -2
  171. package/.output/server/chunks/build/{Card-BHCSDKDt.mjs.map → Card-BbT1eROQ.mjs.map} +1 -1
  172. package/.output/server/chunks/build/{Card-G40WAFiH.mjs → Card-BhYY6sMF.mjs} +2 -2
  173. package/.output/server/chunks/build/{Card-G40WAFiH.mjs.map → Card-BhYY6sMF.mjs.map} +1 -1
  174. package/.output/server/chunks/build/{CardGroup-BOuJcNGp.mjs → CardGroup-BaAKIlG2.mjs} +2 -2
  175. package/.output/server/chunks/build/CardGroup-BaAKIlG2.mjs.map +1 -0
  176. package/.output/server/chunks/build/{Caution-BP3y-TcC.mjs → Caution-BtmEobSt.mjs} +3 -3
  177. package/.output/server/chunks/build/Caution-BtmEobSt.mjs.map +1 -0
  178. package/.output/server/chunks/build/{Code-B1xkAS5a.mjs → Code-B5jRG911.mjs} +2 -2
  179. package/.output/server/chunks/build/Code-B5jRG911.mjs.map +1 -0
  180. package/.output/server/chunks/build/{CodeCollapse-BIhaNa22.mjs → CodeCollapse-CrPH3KuF.mjs} +2 -2
  181. package/.output/server/chunks/build/{CodeCollapse-BIhaNa22.mjs.map → CodeCollapse-CrPH3KuF.mjs.map} +1 -1
  182. package/.output/server/chunks/build/{CodeGroup-BviYyCuo.mjs → CodeGroup-Ce1oQCMR.mjs} +3 -3
  183. package/.output/server/chunks/build/{CodeGroup-BviYyCuo.mjs.map → CodeGroup-Ce1oQCMR.mjs.map} +1 -1
  184. package/.output/server/chunks/build/{CodeIcon-CWD5HcV7.mjs → CodeIcon-D1eP5oQx.mjs} +2 -2
  185. package/.output/server/chunks/build/CodeIcon-D1eP5oQx.mjs.map +1 -0
  186. package/.output/server/chunks/build/{CodePreview-D8PsCQ6m.mjs → CodePreview-BqPuIUgA.mjs} +2 -2
  187. package/.output/server/chunks/build/CodePreview-BqPuIUgA.mjs.map +1 -0
  188. package/.output/server/chunks/build/{CodeTree-BUTLupmL.mjs → CodeTree-CZx8q1I_.mjs} +3 -3
  189. package/.output/server/chunks/build/{CodeTree-BUTLupmL.mjs.map → CodeTree-CZx8q1I_.mjs.map} +1 -1
  190. package/.output/server/chunks/build/{Collapsible-BIvXNaSq.mjs → Collapsible-CMX5pVOP.mjs} +3 -3
  191. package/.output/server/chunks/build/{Collapsible-BIvXNaSq.mjs.map → Collapsible-CMX5pVOP.mjs.map} +1 -1
  192. package/.output/server/chunks/build/{ColorModeButton-CiS8E1tc.mjs → ColorModeButton-DuTJrHit.mjs} +2 -2
  193. package/.output/server/chunks/build/ColorModeButton-DuTJrHit.mjs.map +1 -0
  194. package/.output/server/chunks/build/{ConfirmModal-DuQXeyic.mjs → ConfirmModal-D4EcTWe7.mjs} +2 -2
  195. package/.output/server/chunks/build/{ConfirmModal-DuQXeyic.mjs.map → ConfirmModal-D4EcTWe7.mjs.map} +1 -1
  196. package/.output/server/chunks/build/{Container-DYkNsgEA.mjs → Container-O3MpC_Y9.mjs} +2 -2
  197. package/.output/server/chunks/build/Container-O3MpC_Y9.mjs.map +1 -0
  198. package/.output/server/chunks/build/{DashboardNavbar-Cpq8yKA0.mjs → DashboardNavbar-DjAu8x4I.mjs} +4 -4
  199. package/.output/server/chunks/build/{DashboardNavbar-Cpq8yKA0.mjs.map → DashboardNavbar-DjAu8x4I.mjs.map} +1 -1
  200. package/.output/server/chunks/build/{DashboardSidebarToggle-Chnqv04k.mjs → DashboardSidebarToggle-CxLuhRKC.mjs} +3 -3
  201. package/.output/server/chunks/build/{DashboardSidebarToggle-Chnqv04k.mjs.map → DashboardSidebarToggle-CxLuhRKC.mjs.map} +1 -1
  202. package/.output/server/chunks/build/{DashboardToolbar-66a616OO.mjs → DashboardToolbar-B855lvMn.mjs} +2 -2
  203. package/.output/server/chunks/build/{DashboardToolbar-66a616OO.mjs.map → DashboardToolbar-B855lvMn.mjs.map} +1 -1
  204. package/.output/server/chunks/build/{Drawer-zOHju6ul.mjs → Drawer-C2sv2ddS.mjs} +2 -2
  205. package/.output/server/chunks/build/{Drawer-zOHju6ul.mjs.map → Drawer-C2sv2ddS.mjs.map} +1 -1
  206. package/.output/server/chunks/build/{DropdownMenu-BBrV9nXz.mjs → DropdownMenu-CYP3zwz-.mjs} +4 -4
  207. package/.output/server/chunks/build/{DropdownMenu-BBrV9nXz.mjs.map → DropdownMenu-CYP3zwz-.mjs.map} +1 -1
  208. package/.output/server/chunks/build/{EditorToolbar-B9OwSI5e.mjs → EditorToolbar-nAmJgjpi.mjs} +5 -5
  209. package/.output/server/chunks/build/{EditorToolbar-B9OwSI5e.mjs.map → EditorToolbar-nAmJgjpi.mjs.map} +1 -1
  210. package/.output/server/chunks/build/{Em-DsIz_BnD.mjs → Em-CSsKDvO2.mjs} +2 -2
  211. package/.output/server/chunks/build/Em-CSsKDvO2.mjs.map +1 -0
  212. package/.output/server/chunks/build/{Field-cwwmSQDT.mjs → Field-DdVg3OE7.mjs} +2 -2
  213. package/.output/server/chunks/build/{Field-cwwmSQDT.mjs.map → Field-DdVg3OE7.mjs.map} +1 -1
  214. package/.output/server/chunks/build/{FieldGroup-CAIpQv8s.mjs → FieldGroup-3OfhvmVI.mjs} +2 -2
  215. package/.output/server/chunks/build/FieldGroup-3OfhvmVI.mjs.map +1 -0
  216. package/.output/server/chunks/build/{FieldGroup-KzsWn_XG.mjs → FieldGroup-CQwaPXX0.mjs} +2 -2
  217. package/.output/server/chunks/build/FieldGroup-CQwaPXX0.mjs.map +1 -0
  218. package/.output/server/chunks/build/{Form-X6hlUv6q.mjs → Form-BkRHKMqt.mjs} +2 -2
  219. package/.output/server/chunks/build/Form-BkRHKMqt.mjs.map +1 -0
  220. package/.output/server/chunks/build/{FormField-Caux_FCv.mjs → FormField-BfKCT84X.mjs} +2 -2
  221. package/.output/server/chunks/build/{FormField-Caux_FCv.mjs.map → FormField-BfKCT84X.mjs.map} +1 -1
  222. package/.output/server/chunks/build/{H1-BbFNsPyP.mjs → H1-BdInDZWF.mjs} +2 -2
  223. package/.output/server/chunks/build/H1-BdInDZWF.mjs.map +1 -0
  224. package/.output/server/chunks/build/{H2-vHTl_pWr.mjs → H2-gANiNae1.mjs} +2 -2
  225. package/.output/server/chunks/build/H2-gANiNae1.mjs.map +1 -0
  226. package/.output/server/chunks/build/{H3-7eTcfO3s.mjs → H3-Ct4j8G8d.mjs} +2 -2
  227. package/.output/server/chunks/build/H3-Ct4j8G8d.mjs.map +1 -0
  228. package/.output/server/chunks/build/{H4-C89p_PKO.mjs → H4-i_fXjP8_.mjs} +2 -2
  229. package/.output/server/chunks/build/H4-i_fXjP8_.mjs.map +1 -0
  230. package/.output/server/chunks/build/{Hr-Bm8RlL3O.mjs → Hr-DehSGY5a.mjs} +2 -2
  231. package/.output/server/chunks/build/Hr-DehSGY5a.mjs.map +1 -0
  232. package/.output/server/chunks/build/{Icon-Dp9iy0BI.mjs → Icon-pfV36H_N.mjs} +2 -2
  233. package/.output/server/chunks/build/Icon-pfV36H_N.mjs.map +1 -0
  234. package/.output/server/chunks/build/{Img-CWLmvN1t.mjs → Img-DfBJ_ZT1.mjs} +2 -2
  235. package/.output/server/chunks/build/{Img-CWLmvN1t.mjs.map → Img-DfBJ_ZT1.mjs.map} +1 -1
  236. package/.output/server/chunks/build/{Input-CV2hlBHo.mjs → Input-MJJGc56a.mjs} +2 -2
  237. package/.output/server/chunks/build/{Input-CV2hlBHo.mjs.map → Input-MJJGc56a.mjs.map} +1 -1
  238. package/.output/server/chunks/build/{InputTags-VS4G6txn.mjs → InputTags-B1iOLZTt.mjs} +2 -2
  239. package/.output/server/chunks/build/{InputTags-VS4G6txn.mjs.map → InputTags-B1iOLZTt.mjs.map} +1 -1
  240. package/.output/server/chunks/build/{Kbd-CQG6I_Ch.mjs → Kbd-BXNaC1WV.mjs} +3 -3
  241. package/.output/server/chunks/build/Kbd-BXNaC1WV.mjs.map +1 -0
  242. package/.output/server/chunks/build/{Kbd-Daq7k0fm.mjs → Kbd-BxZUqy9j.mjs} +2 -2
  243. package/.output/server/chunks/build/Kbd-BxZUqy9j.mjs.map +1 -0
  244. package/.output/server/chunks/build/{Li-Bw1QUaGv.mjs → Li-xHYbRon6.mjs} +2 -2
  245. package/.output/server/chunks/build/Li-xHYbRon6.mjs.map +1 -0
  246. package/.output/server/chunks/build/{Modal-Z_SoWhh-.mjs → Modal-wt0n9APa.mjs} +2 -2
  247. package/.output/server/chunks/build/{Modal-Z_SoWhh-.mjs.map → Modal-wt0n9APa.mjs.map} +1 -1
  248. package/.output/server/chunks/build/{Note-CHkjm9jm.mjs → Note-C6VFhATK.mjs} +3 -3
  249. package/.output/server/chunks/build/Note-C6VFhATK.mjs.map +1 -0
  250. package/.output/server/chunks/build/{Ol-D-fPnfFM.mjs → Ol-DYTErJCk.mjs} +2 -2
  251. package/.output/server/chunks/build/Ol-DYTErJCk.mjs.map +1 -0
  252. package/.output/server/chunks/build/{P-B5YI1V9y.mjs → P-DYg-uMoB.mjs} +2 -2
  253. package/.output/server/chunks/build/P-DYg-uMoB.mjs.map +1 -0
  254. package/.output/server/chunks/build/{Pre-ChiJcf3C.mjs → Pre-BvZ1jVJN.mjs} +3 -3
  255. package/.output/server/chunks/build/Pre-BvZ1jVJN.mjs.map +1 -0
  256. package/.output/server/chunks/build/{Script-CM0jfhHS.mjs → Script-tSHHLnac.mjs} +2 -2
  257. package/.output/server/chunks/build/Script-tSHHLnac.mjs.map +1 -0
  258. package/.output/server/chunks/build/{Select-BB1oLrCD.mjs → Select-DN21NuTB.mjs} +2 -2
  259. package/.output/server/chunks/build/{Select-BB1oLrCD.mjs.map → Select-DN21NuTB.mjs.map} +1 -1
  260. package/.output/server/chunks/build/{SelectMenu-DPssg6zD.mjs → SelectMenu-BkCrUlux.mjs} +3 -3
  261. package/.output/server/chunks/build/{SelectMenu-DPssg6zD.mjs.map → SelectMenu-BkCrUlux.mjs.map} +1 -1
  262. package/.output/server/chunks/build/{Separator-CYbxFNTe.mjs → Separator-Cy2c2ONk.mjs} +2 -2
  263. package/.output/server/chunks/build/{Separator-CYbxFNTe.mjs.map → Separator-Cy2c2ONk.mjs.map} +1 -1
  264. package/.output/server/chunks/build/{Skeleton-DZqsQzFi.mjs → Skeleton-DY8f1-FG.mjs} +2 -2
  265. package/.output/server/chunks/build/Skeleton-DY8f1-FG.mjs.map +1 -0
  266. package/.output/server/chunks/build/{Slideover-DJNgcnZ2.mjs → Slideover-DLwNpT6O.mjs} +2 -2
  267. package/.output/server/chunks/build/{Slideover-DJNgcnZ2.mjs.map → Slideover-DLwNpT6O.mjs.map} +1 -1
  268. package/.output/server/chunks/build/{Steps-BZpvXfzb.mjs → Steps-CFy8o3cK.mjs} +2 -2
  269. package/.output/server/chunks/build/Steps-CFy8o3cK.mjs.map +1 -0
  270. package/.output/server/chunks/build/{Strong-DXJqOWL3.mjs → Strong-BO_DP_KT.mjs} +2 -2
  271. package/.output/server/chunks/build/Strong-BO_DP_KT.mjs.map +1 -0
  272. package/.output/server/chunks/build/{Switch-GWdksmY6.mjs → Switch-D2TVD852.mjs} +2 -2
  273. package/.output/server/chunks/build/{Switch-GWdksmY6.mjs.map → Switch-D2TVD852.mjs.map} +1 -1
  274. package/.output/server/chunks/build/{Table-BSrLZ7dt.mjs → Table-BLIijp8S.mjs} +2 -2
  275. package/.output/server/chunks/build/Table-BLIijp8S.mjs.map +1 -0
  276. package/.output/server/chunks/build/{Table-DCwTlhCj.mjs → Table-gioWXNK6.mjs} +2 -2
  277. package/.output/server/chunks/build/{Table-DCwTlhCj.mjs.map → Table-gioWXNK6.mjs.map} +1 -1
  278. package/.output/server/chunks/build/{Tabs-Dk3nvOFF.mjs → Tabs-BQflXWlp.mjs} +4 -4
  279. package/.output/server/chunks/build/{Tabs-Dk3nvOFF.mjs.map → Tabs-BQflXWlp.mjs.map} +1 -1
  280. package/.output/server/chunks/build/{Tabs-B6vgKDY9.mjs → Tabs-CP3PCW5m.mjs} +3 -3
  281. package/.output/server/chunks/build/{Tabs-B6vgKDY9.mjs.map → Tabs-CP3PCW5m.mjs.map} +1 -1
  282. package/.output/server/chunks/build/{TabsItem-CDhyuBtJ.mjs → TabsItem-B08g91pn.mjs} +2 -2
  283. package/.output/server/chunks/build/TabsItem-B08g91pn.mjs.map +1 -0
  284. package/.output/server/chunks/build/{Tbody-CjMT5oH-.mjs → Tbody-CbnuZIS-.mjs} +2 -2
  285. package/.output/server/chunks/build/Tbody-CbnuZIS-.mjs.map +1 -0
  286. package/.output/server/chunks/build/{Td-ZBVaEjFN.mjs → Td-Bry4ug4M.mjs} +2 -2
  287. package/.output/server/chunks/build/Td-Bry4ug4M.mjs.map +1 -0
  288. package/.output/server/chunks/build/{Th-D317icbd.mjs → Th-BJsM_Yfc.mjs} +2 -2
  289. package/.output/server/chunks/build/Th-BJsM_Yfc.mjs.map +1 -0
  290. package/.output/server/chunks/build/{Thead-Ca_ZESTK.mjs → Thead-DkfrdfBz.mjs} +2 -2
  291. package/.output/server/chunks/build/Thead-DkfrdfBz.mjs.map +1 -0
  292. package/.output/server/chunks/build/{Tip-CP3oTARR.mjs → Tip-Dts67PTH.mjs} +3 -3
  293. package/.output/server/chunks/build/Tip-Dts67PTH.mjs.map +1 -0
  294. package/.output/server/chunks/build/{Tooltip-TRyl6dje.mjs → Tooltip-CXdzuZ5S.mjs} +3 -3
  295. package/.output/server/chunks/build/{Tooltip-TRyl6dje.mjs.map → Tooltip-CXdzuZ5S.mjs.map} +1 -1
  296. package/.output/server/chunks/build/{Tr-6jI8j9gD.mjs → Tr-DZ88M5XG.mjs} +2 -2
  297. package/.output/server/chunks/build/Tr-DZ88M5XG.mjs.map +1 -0
  298. package/.output/server/chunks/build/{Tree-DUhXKd8y.mjs → Tree-Dgi_LIv2.mjs} +5 -5
  299. package/.output/server/chunks/build/{Tree-DUhXKd8y.mjs.map → Tree-Dgi_LIv2.mjs.map} +1 -1
  300. package/.output/server/chunks/build/{Ul-BUGj_CPb.mjs → Ul-CanjpnCe.mjs} +2 -2
  301. package/.output/server/chunks/build/Ul-CanjpnCe.mjs.map +1 -0
  302. package/.output/server/chunks/build/{Warning-BJ8G6cxC.mjs → Warning-D8UtB63y.mjs} +3 -3
  303. package/.output/server/chunks/build/Warning-D8UtB63y.mjs.map +1 -0
  304. package/.output/server/chunks/build/{_id_-CwBeklIM.mjs → _id_-CK3Mue9h.mjs} +19 -19
  305. package/.output/server/chunks/build/{_id_-CwBeklIM.mjs.map → _id_-CK3Mue9h.mjs.map} +1 -1
  306. package/.output/server/chunks/build/{_name_-D7MtW4Vu.mjs → _name_-CuWeoos2.mjs} +12 -12
  307. package/.output/server/chunks/build/{_name_-D7MtW4Vu.mjs.map → _name_-CuWeoos2.mjs.map} +1 -1
  308. package/.output/server/chunks/build/{_uuid_-lvG92ein.mjs → _uuid_-D562l0Aa.mjs} +6 -6
  309. package/.output/server/chunks/build/{_uuid_-lvG92ein.mjs.map → _uuid_-D562l0Aa.mjs.map} +1 -1
  310. package/.output/server/chunks/build/{account-LDZ4TL6x.mjs → account-CWfgzD55.mjs} +5 -5
  311. package/.output/server/chunks/build/{account-LDZ4TL6x.mjs.map → account-CWfgzD55.mjs.map} +1 -1
  312. package/.output/server/chunks/build/{app-CGhRZPNT.mjs → app-B7O0KwJz.mjs} +5 -5
  313. package/.output/server/chunks/build/{app-CGhRZPNT.mjs.map → app-B7O0KwJz.mjs.map} +1 -1
  314. package/.output/server/chunks/build/{chat-BphuYhvA.mjs → chat-tFTke7bB.mjs} +5 -5
  315. package/.output/server/chunks/build/{chat-BphuYhvA.mjs.map → chat-tFTke7bB.mjs.map} +1 -1
  316. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  317. package/.output/server/chunks/build/cookie-C_iulBi6.mjs.map +1 -1
  318. package/.output/server/chunks/build/{dashboard-nDujDyOg.mjs → dashboard-CEMZisxX.mjs} +18 -18
  319. package/.output/server/chunks/build/{dashboard-nDujDyOg.mjs.map → dashboard-CEMZisxX.mjs.map} +1 -1
  320. package/.output/server/chunks/build/{dashboard-CLk1NlbR.mjs → dashboard-DaQJHr3j.mjs} +6 -6
  321. package/.output/server/chunks/build/{dashboard-CLk1NlbR.mjs.map → dashboard-DaQJHr3j.mjs.map} +1 -1
  322. package/.output/server/chunks/build/{docs-Bwucwp0r.mjs → docs-DQzvdbgY.mjs} +19 -19
  323. package/.output/server/chunks/build/{docs-Bwucwp0r.mjs.map → docs-DQzvdbgY.mjs.map} +1 -1
  324. package/.output/server/chunks/build/{error-404-BzbcNcdU.mjs → error-404-D55UQrPx.mjs} +4 -4
  325. package/.output/server/chunks/build/error-404-D55UQrPx.mjs.map +1 -0
  326. package/.output/server/chunks/build/error-404-styles.CLyMCIjl.mjs +8 -0
  327. package/.output/server/chunks/build/error-404-styles.CLyMCIjl.mjs.map +1 -0
  328. package/.output/server/chunks/build/{error-500-uCDjGRW8.mjs → error-500-bq_wLBxV.mjs} +4 -4
  329. package/.output/server/chunks/build/error-500-bq_wLBxV.mjs.map +1 -0
  330. package/.output/server/chunks/build/error-500-styles.O3M1BOjt.mjs +8 -0
  331. package/.output/server/chunks/build/error-500-styles.O3M1BOjt.mjs.map +1 -0
  332. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs.map +1 -1
  333. package/.output/server/chunks/build/{hooks-D6PmTth8.mjs → hooks-Bf6nnj4t.mjs} +8 -8
  334. package/.output/server/chunks/build/{hooks-D6PmTth8.mjs.map → hooks-Bf6nnj4t.mjs.map} +1 -1
  335. package/.output/server/chunks/build/{index-CJkn2jiM.mjs → index-7Fi-wlXb.mjs} +10 -10
  336. package/.output/server/chunks/build/{index-CJkn2jiM.mjs.map → index-7Fi-wlXb.mjs.map} +1 -1
  337. package/.output/server/chunks/build/{index-Cz9Y6NwN.mjs → index-C4IOvsuT.mjs} +17 -17
  338. package/.output/server/chunks/build/{index-Cz9Y6NwN.mjs.map → index-C4IOvsuT.mjs.map} +1 -1
  339. package/.output/server/chunks/build/{index-Byt-3Yq6.mjs → index-CFLzBl1F.mjs} +10 -10
  340. package/.output/server/chunks/build/{index-Byt-3Yq6.mjs.map → index-CFLzBl1F.mjs.map} +1 -1
  341. package/.output/server/chunks/build/{integrations-Hf4O1jkW.mjs → integrations-C3mBHBhU.mjs} +7 -7
  342. package/.output/server/chunks/build/{integrations-Hf4O1jkW.mjs.map → integrations-C3mBHBhU.mjs.map} +1 -1
  343. package/.output/server/chunks/build/{library-DxRdgP6X.mjs → library-DKk6EF4v.mjs} +6 -6
  344. package/.output/server/chunks/build/{library-DxRdgP6X.mjs.map → library-DKk6EF4v.mjs.map} +1 -1
  345. package/.output/server/chunks/build/{login-BmER_VoU.mjs → login-BPx5MadH.mjs} +9 -9
  346. package/.output/server/chunks/build/{login-BmER_VoU.mjs.map → login-BPx5MadH.mjs.map} +1 -1
  347. package/.output/server/chunks/build/{manage-secrets-BWzqc_-f.mjs → manage-secrets-BEBITv78.mjs} +6 -6
  348. package/.output/server/chunks/build/{manage-secrets-BWzqc_-f.mjs.map → manage-secrets-BEBITv78.mjs.map} +1 -1
  349. package/.output/server/chunks/build/{memories-DLa6uEfV.mjs → memories-BZTM5Xlv.mjs} +13 -13
  350. package/.output/server/chunks/build/{memories-DLa6uEfV.mjs.map → memories-BZTM5Xlv.mjs.map} +1 -1
  351. package/.output/server/chunks/build/server.mjs +89 -89
  352. package/.output/server/chunks/build/server.mjs.map +1 -1
  353. package/.output/server/chunks/build/{settings-neokAVE5.mjs → settings-B3Y0R3os.mjs} +6 -6
  354. package/.output/server/chunks/build/{settings-neokAVE5.mjs.map → settings-B3Y0R3os.mjs.map} +1 -1
  355. package/.output/server/chunks/build/ssr-Bqnw2a-w.mjs.map +1 -1
  356. package/.output/server/chunks/build/styles.mjs +8 -8
  357. package/.output/server/chunks/build/{tasks-CnpIQNpS.mjs → tasks-CDzGGtdy.mjs} +18 -18
  358. package/.output/server/chunks/build/{tasks-CnpIQNpS.mjs.map → tasks-CDzGGtdy.mjs.map} +1 -1
  359. package/.output/server/chunks/build/{usage-BHdQZbfI.mjs → usage-B5Ou427g.mjs} +11 -11
  360. package/.output/server/chunks/build/{usage-BHdQZbfI.mjs.map → usage-B5Ou427g.mjs.map} +1 -1
  361. package/.output/server/chunks/build/{useAgents-nmbkB9-_.mjs → useAgents-D8ORXd7F.mjs} +8 -8
  362. package/.output/server/chunks/build/{useAgents-nmbkB9-_.mjs.map → useAgents-D8ORXd7F.mjs.map} +1 -1
  363. package/.output/server/chunks/build/{view-mb0ISqfM.mjs → view-DrYpj6ZH.mjs} +10 -10
  364. package/.output/server/chunks/build/{view-mb0ISqfM.mjs.map → view-DrYpj6ZH.mjs.map} +1 -1
  365. package/.output/server/chunks/build/virtualizer-rkZfhL1t.mjs.map +1 -1
  366. package/.output/server/chunks/nitro/nitro.mjs +901 -901
  367. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  368. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  369. package/.output/server/package.json +1 -1
  370. package/dist/cli/index.js +33 -12
  371. package/package.json +6 -2
  372. package/server/api/memory/context.get.ts +4 -4
  373. package/server/api/memory/search.get.ts +3 -3
  374. package/.output/public/_nuxt/0L-9iIbm.js +0 -1
  375. package/.output/public/_nuxt/B0v0agy0.js +0 -1
  376. package/.output/public/_nuxt/B9sXHKws.js +0 -1
  377. package/.output/public/_nuxt/WG3LXN-9.js +0 -1
  378. package/.output/public/_nuxt/builds/meta/7de5e0df-2e0a-435c-a2e3-fc2312beb6ad.json +0 -1
  379. package/.output/public/_nuxt/error-404.CcUyKSAI.css +0 -1
  380. package/.output/public/_nuxt/error-500.yAIG1jTV.css +0 -1
  381. package/.output/server/chunks/build/A-BWukSPjS.mjs.map +0 -1
  382. package/.output/server/chunks/build/Badge-BrU9UkCv.mjs.map +0 -1
  383. package/.output/server/chunks/build/Blockquote-DND8wTkU.mjs.map +0 -1
  384. package/.output/server/chunks/build/CardGroup-BOuJcNGp.mjs.map +0 -1
  385. package/.output/server/chunks/build/Caution-BP3y-TcC.mjs.map +0 -1
  386. package/.output/server/chunks/build/Code-B1xkAS5a.mjs.map +0 -1
  387. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs.map +0 -1
  388. package/.output/server/chunks/build/CodePreview-D8PsCQ6m.mjs.map +0 -1
  389. package/.output/server/chunks/build/ColorModeButton-CiS8E1tc.mjs.map +0 -1
  390. package/.output/server/chunks/build/Container-DYkNsgEA.mjs.map +0 -1
  391. package/.output/server/chunks/build/Em-DsIz_BnD.mjs.map +0 -1
  392. package/.output/server/chunks/build/FieldGroup-CAIpQv8s.mjs.map +0 -1
  393. package/.output/server/chunks/build/FieldGroup-KzsWn_XG.mjs.map +0 -1
  394. package/.output/server/chunks/build/Form-X6hlUv6q.mjs.map +0 -1
  395. package/.output/server/chunks/build/H1-BbFNsPyP.mjs.map +0 -1
  396. package/.output/server/chunks/build/H2-vHTl_pWr.mjs.map +0 -1
  397. package/.output/server/chunks/build/H3-7eTcfO3s.mjs.map +0 -1
  398. package/.output/server/chunks/build/H4-C89p_PKO.mjs.map +0 -1
  399. package/.output/server/chunks/build/Hr-Bm8RlL3O.mjs.map +0 -1
  400. package/.output/server/chunks/build/Icon-Dp9iy0BI.mjs.map +0 -1
  401. package/.output/server/chunks/build/Kbd-CQG6I_Ch.mjs.map +0 -1
  402. package/.output/server/chunks/build/Kbd-Daq7k0fm.mjs.map +0 -1
  403. package/.output/server/chunks/build/Li-Bw1QUaGv.mjs.map +0 -1
  404. package/.output/server/chunks/build/Note-CHkjm9jm.mjs.map +0 -1
  405. package/.output/server/chunks/build/Ol-D-fPnfFM.mjs.map +0 -1
  406. package/.output/server/chunks/build/P-B5YI1V9y.mjs.map +0 -1
  407. package/.output/server/chunks/build/Pre-ChiJcf3C.mjs.map +0 -1
  408. package/.output/server/chunks/build/Script-CM0jfhHS.mjs.map +0 -1
  409. package/.output/server/chunks/build/Skeleton-DZqsQzFi.mjs.map +0 -1
  410. package/.output/server/chunks/build/Steps-BZpvXfzb.mjs.map +0 -1
  411. package/.output/server/chunks/build/Strong-DXJqOWL3.mjs.map +0 -1
  412. package/.output/server/chunks/build/Table-BSrLZ7dt.mjs.map +0 -1
  413. package/.output/server/chunks/build/TabsItem-CDhyuBtJ.mjs.map +0 -1
  414. package/.output/server/chunks/build/Tbody-CjMT5oH-.mjs.map +0 -1
  415. package/.output/server/chunks/build/Td-ZBVaEjFN.mjs.map +0 -1
  416. package/.output/server/chunks/build/Th-D317icbd.mjs.map +0 -1
  417. package/.output/server/chunks/build/Thead-Ca_ZESTK.mjs.map +0 -1
  418. package/.output/server/chunks/build/Tip-CP3oTARR.mjs.map +0 -1
  419. package/.output/server/chunks/build/Tr-6jI8j9gD.mjs.map +0 -1
  420. package/.output/server/chunks/build/Ul-BUGj_CPb.mjs.map +0 -1
  421. package/.output/server/chunks/build/Warning-BJ8G6cxC.mjs.map +0 -1
  422. package/.output/server/chunks/build/error-404-BzbcNcdU.mjs.map +0 -1
  423. package/.output/server/chunks/build/error-404-styles.AYNYglVn.mjs +0 -8
  424. package/.output/server/chunks/build/error-404-styles.AYNYglVn.mjs.map +0 -1
  425. package/.output/server/chunks/build/error-500-styles.CQugGB96.mjs +0 -8
  426. package/.output/server/chunks/build/error-500-styles.CQugGB96.mjs.map +0 -1
  427. package/.output/server/chunks/build/error-500-uCDjGRW8.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import{d as Hi,e as Fi,C as Vi,b7 as hs,L as ji,B as Pa,W as La,ar as Jd,h as he,X as za,Y as $a,aZ as We,ap as xr,b8 as Kn,c as st,o as ve,w as jt,Z as ur,a as ze,P as ii,$ as kn,M as dr,al as hr,am as Jo,ac as Gd,aa as Ba,r as _a,m as nt,a0 as Jn,bS as Xd,ba as Yd,s as Qd,F as Zd,c2 as eh,b4 as th,g as nh,c3 as rh,f as sh,R as ih}from"./B06CcGVK.js";import{S as oh}from"./CHn6tbtE.js";import{f as Ha,s as Fa,o as Va,d as ja,e as qa,g as Ua,h as Wa,i as Ka,j as Ja}from"./BuURpKT4.js";import{_ as lh}from"./Ds97nj0P.js";import{_ as Go}from"./DEl5RR7R.js";import{k as ah,b as ch}from"./Vcq4gwWv.js";function ie(n){this.content=n}ie.prototype={constructor:ie,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(t||n,e):(i[s+1]=e,t&&(i[s]=t)),new ie(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ie(t)},addToStart:function(n,e){return new ie([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ie(t)},addBefore:function(n,e,t){var r=this.remove(e),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,e,t),new ie(s)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=ie.from(n),n.size?new ie(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=ie.from(n),n.size?new ie(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=ie.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};ie.from=function(n){if(n instanceof ie)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ie(e)};function Ga(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let s=n.child(r),i=e.child(r);if(s==i){t+=s.nodeSize;continue}if(!s.sameMarkup(i))return t;if(s.isText&&s.text!=i.text){for(let o=0;s.text[o]==i.text[o];o++)t++;return t}if(s.content.size||i.content.size){let o=Ga(s.content,i.content,t+1);if(o!=null)return o}t+=s.nodeSize}}function Xa(n,e,t,r){for(let s=n.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:t,b:r};let o=n.child(--s),l=e.child(--i),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=0,u=Math.min(o.text.length,l.text.length);for(;c<u&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let c=Xa(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class w{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,s=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,s+l,i||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,s+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,s){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,s=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(s[s.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new w(s,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],s=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),s+=l.nodeSize),o=a}return new w(r,s)}cutByIndex(e,t){return e==t?w.empty:e==0&&t==this.content.length?this:new w(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let s=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return s[e]=t,new w(s,i)}addToStart(e){return new w([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new w(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let s=this.content[t];e(s,r,t),r+=s.nodeSize}}findDiffStart(e,t=0){return Ga(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Xa(this,e,t,r)}findIndex(e){if(e==0)return Gn(0,e);if(e==this.size)return Gn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let s=this.child(t),i=r+s.nodeSize;if(i>=e)return i==e?Gn(t+1,i):Gn(t,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return w.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new w(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return w.empty;let t,r=0;for(let s=0;s<e.length;s++){let i=e[s];r+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(t||(t=e.slice(0,s)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new w(t||e,r)}static from(e){if(!e)return w.empty;if(e instanceof w)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new w([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}w.empty=new w([],0);const Is={index:0,offset:0};function Gn(n,e){return Is.index=n,Is.offset=e,Is}function wr(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!wr(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!wr(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let _=class oi{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,s)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&wr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let s=r.create(t.attrs);return r.checkAttrs(s.attrs),s}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return oi.none;if(e instanceof oi)return[e];let t=e.slice();return t.sort((r,s)=>r.type.rank-s.type.rank),t}};_.none=[];class vr extends Error{}class M{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Qa(this.content,e+this.openStart,t);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,t){return new M(Ya(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return M.empty;let r=t.openStart||0,s=t.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(w.fromJSON(e,t.content),r,s)}static maxOpen(e,t=!0){let r=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)s++;return new M(e,r,s)}}M.empty=new M(w.empty,0,0);function Ya(n,e,t){let{index:r,offset:s}=n.findIndex(e),i=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(s==e||i.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Ya(i.content,e-s-1,t-s-1)))}function Qa(n,e,t,r){let{index:s,offset:i}=n.findIndex(e),o=n.maybeChild(s);if(i==e||o.isText)return r&&!r.canReplace(s,s,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Qa(o.content,e-i-1,t,o);return l&&n.replaceChild(s,o.copy(l))}function uh(n,e,t){if(t.openStart>n.depth)throw new vr("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new vr("Inconsistent open depths");return Za(n,e,t,0)}function Za(n,e,t,r){let s=n.index(r),i=n.node(r);if(s==e.index(r)&&r<n.depth-t.openStart){let o=Za(n,e,t,r+1);return i.copy(i.content.replaceChild(s,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return Mt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=dh(t,n);return Mt(i,tc(n,o,l,e,r))}else return Mt(i,Sr(n,e,r))}function ec(n,e){if(!e.type.compatibleContent(n.type))throw new vr("Cannot join "+e.type.name+" onto "+n.type.name)}function li(n,e,t){let r=n.node(t);return ec(r,e.node(t)),r}function Tt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function bn(n,e,t,r){let s=(e||n).node(t),i=0,o=e?e.index(t):s.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(Tt(n.nodeAfter,r),i++));for(let l=i;l<o;l++)Tt(s.child(l),r);e&&e.depth==t&&e.textOffset&&Tt(e.nodeBefore,r)}function Mt(n,e){return n.type.checkContent(e),n.copy(e)}function tc(n,e,t,r,s){let i=n.depth>s&&li(n,e,s+1),o=r.depth>s&&li(t,r,s+1),l=[];return bn(null,n,s,l),i&&o&&e.index(s)==t.index(s)?(ec(i,o),Tt(Mt(i,tc(n,e,t,r,s+1)),l)):(i&&Tt(Mt(i,Sr(n,e,s+1)),l),bn(e,t,s,l),o&&Tt(Mt(o,Sr(t,r,s+1)),l)),bn(r,null,s,l),new w(l)}function Sr(n,e,t){let r=[];if(bn(null,n,t,r),n.depth>t){let s=li(n,e,t+1);Tt(Mt(s,Sr(n,e,t+1)),r)}return bn(e,null,t,r),new w(r)}function dh(n,e){let t=e.depth-n.openStart,s=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)s=e.node(i).copy(w.from(s));return{start:s.resolveNoCache(n.openStart+t),end:s.resolveNoCache(s.content.size-n.openEnd-t)}}class Nn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=e.child(t);return r?e.child(t).cut(r):s}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],s=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)s+=r.child(i).nodeSize;return s}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return _.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),s=e.maybeChild(t);if(!r){let l=r;r=s,s=l}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Cr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],s=0,i=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(i),c=i-a;if(r.push(o,l,s+a),!c||(o=o.child(l),o.isText))break;i=c-1,s+=a+1}return new Nn(t,r,i)}static resolveCached(e,t){let r=Xo.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==t)return o}else Xo.set(e,r=new hh);let s=r.elts[r.i]=Nn.resolve(e,t);return r.i=(r.i+1)%fh,s}}class hh{constructor(){this.elts=[],this.i=0}}const fh=12,Xo=new WeakMap;class Cr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const ph=Object.create(null);class Me{constructor(e,t,r,s=_.none){this.type=e,this.attrs=t,this.marks=s,this.content=r||w.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,s=0){this.content.nodesBetween(e,t,r,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,s){return this.content.textBetween(e,t,r,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&wr(this.attrs,t||e.defaultAttrs||ph)&&_.sameSet(this.marks,r||_.none)}copy(e=null){return e==this.content?this:new Me(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Me(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return M.empty;let s=this.resolve(e),i=this.resolve(t),o=r?0:s.sharedDepth(t),l=s.start(o),c=s.node(o).content.cut(s.pos-l,i.pos-l);return new M(c,s.depth-o,i.depth-o)}replace(e,t,r){return uh(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:s}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(s==e||t.isText)return t;e-=s+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let s=this.content.child(t-1);return{node:s,index:t-1,offset:r-s.nodeSize}}resolve(e){return Nn.resolveCached(this,e)}resolveNoCache(e){return Nn.resolve(this,e)}rangeHasMark(e,t,r){let s=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),nc(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=w.empty,s=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,s,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=s;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=_.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!_.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let s=w.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,s,r);return i.type.checkAttrs(i.attrs),i}}Me.prototype.text=void 0;class Tr extends Me{constructor(e,t,r,s){if(super(e,t,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):nc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Tr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Tr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function nc(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Nt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new mh(e,t);if(r.next==null)return Nt.empty;let s=rc(r);r.next&&r.err("Unexpected trailing text");let i=vh(wh(s));return Sh(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let s=this;for(let i=t;s&&i<r;i++)s=s.matchType(e.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let s=[this];function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return w.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(d)==-1){s.push(d);let h=i(d,l.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!s.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:s}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let s=0;s<r.next.length;s++)e.indexOf(r.next[s].next)==-1&&t(r.next[s].next)}return t(this),e.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`
1
+ import{d as Hi,e as Fi,C as Vi,b7 as hs,L as ji,B as Pa,W as La,ar as Jd,h as he,X as za,Y as $a,aZ as We,ap as xr,b8 as Kn,c as st,o as ve,w as jt,Z as ur,a as ze,P as ii,$ as kn,M as dr,al as hr,am as Jo,ac as Gd,aa as Ba,r as _a,m as nt,a0 as Jn,bS as Xd,ba as Yd,s as Qd,F as Zd,c2 as eh,b4 as th,g as nh,c3 as rh,f as sh,R as ih}from"./Bvui1gLJ.js";import{S as oh}from"./DqgkoNYg.js";import{f as Ha,s as Fa,o as Va,d as ja,e as qa,g as Ua,h as Wa,i as Ka,j as Ja}from"./B6ZzWXlS.js";import{_ as lh}from"./seLVpPrO.js";import{_ as Go}from"./DIBS8bq5.js";import{k as ah,b as ch}from"./Vcq4gwWv.js";function ie(n){this.content=n}ie.prototype={constructor:ie,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(t||n,e):(i[s+1]=e,t&&(i[s]=t)),new ie(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ie(t)},addToStart:function(n,e){return new ie([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ie(t)},addBefore:function(n,e,t){var r=this.remove(e),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,e,t),new ie(s)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=ie.from(n),n.size?new ie(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=ie.from(n),n.size?new ie(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=ie.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};ie.from=function(n){if(n instanceof ie)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ie(e)};function Ga(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let s=n.child(r),i=e.child(r);if(s==i){t+=s.nodeSize;continue}if(!s.sameMarkup(i))return t;if(s.isText&&s.text!=i.text){for(let o=0;s.text[o]==i.text[o];o++)t++;return t}if(s.content.size||i.content.size){let o=Ga(s.content,i.content,t+1);if(o!=null)return o}t+=s.nodeSize}}function Xa(n,e,t,r){for(let s=n.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:t,b:r};let o=n.child(--s),l=e.child(--i),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=0,u=Math.min(o.text.length,l.text.length);for(;c<u&&o.text[o.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(o.content.size||l.content.size){let c=Xa(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class w{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,s=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,s+l,i||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,s+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,s){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,s=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(s[s.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new w(s,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],s=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),s+=l.nodeSize),o=a}return new w(r,s)}cutByIndex(e,t){return e==t?w.empty:e==0&&t==this.content.length?this:new w(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let s=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return s[e]=t,new w(s,i)}addToStart(e){return new w([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new w(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let s=this.content[t];e(s,r,t),r+=s.nodeSize}}findDiffStart(e,t=0){return Ga(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Xa(this,e,t,r)}findIndex(e){if(e==0)return Gn(0,e);if(e==this.size)return Gn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let s=this.child(t),i=r+s.nodeSize;if(i>=e)return i==e?Gn(t+1,i):Gn(t,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return w.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new w(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return w.empty;let t,r=0;for(let s=0;s<e.length;s++){let i=e[s];r+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(t||(t=e.slice(0,s)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new w(t||e,r)}static from(e){if(!e)return w.empty;if(e instanceof w)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new w([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}w.empty=new w([],0);const Is={index:0,offset:0};function Gn(n,e){return Is.index=n,Is.offset=e,Is}function wr(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!wr(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!wr(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let _=class oi{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,s)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&wr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let s=r.create(t.attrs);return r.checkAttrs(s.attrs),s}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return oi.none;if(e instanceof oi)return[e];let t=e.slice();return t.sort((r,s)=>r.type.rank-s.type.rank),t}};_.none=[];class vr extends Error{}class M{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Qa(this.content,e+this.openStart,t);return r&&new M(r,this.openStart,this.openEnd)}removeBetween(e,t){return new M(Ya(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return M.empty;let r=t.openStart||0,s=t.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(w.fromJSON(e,t.content),r,s)}static maxOpen(e,t=!0){let r=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)s++;return new M(e,r,s)}}M.empty=new M(w.empty,0,0);function Ya(n,e,t){let{index:r,offset:s}=n.findIndex(e),i=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(s==e||i.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Ya(i.content,e-s-1,t-s-1)))}function Qa(n,e,t,r){let{index:s,offset:i}=n.findIndex(e),o=n.maybeChild(s);if(i==e||o.isText)return r&&!r.canReplace(s,s,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Qa(o.content,e-i-1,t,o);return l&&n.replaceChild(s,o.copy(l))}function uh(n,e,t){if(t.openStart>n.depth)throw new vr("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new vr("Inconsistent open depths");return Za(n,e,t,0)}function Za(n,e,t,r){let s=n.index(r),i=n.node(r);if(s==e.index(r)&&r<n.depth-t.openStart){let o=Za(n,e,t,r+1);return i.copy(i.content.replaceChild(s,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return Mt(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=dh(t,n);return Mt(i,tc(n,o,l,e,r))}else return Mt(i,Sr(n,e,r))}function ec(n,e){if(!e.type.compatibleContent(n.type))throw new vr("Cannot join "+e.type.name+" onto "+n.type.name)}function li(n,e,t){let r=n.node(t);return ec(r,e.node(t)),r}function Tt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function bn(n,e,t,r){let s=(e||n).node(t),i=0,o=e?e.index(t):s.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(Tt(n.nodeAfter,r),i++));for(let l=i;l<o;l++)Tt(s.child(l),r);e&&e.depth==t&&e.textOffset&&Tt(e.nodeBefore,r)}function Mt(n,e){return n.type.checkContent(e),n.copy(e)}function tc(n,e,t,r,s){let i=n.depth>s&&li(n,e,s+1),o=r.depth>s&&li(t,r,s+1),l=[];return bn(null,n,s,l),i&&o&&e.index(s)==t.index(s)?(ec(i,o),Tt(Mt(i,tc(n,e,t,r,s+1)),l)):(i&&Tt(Mt(i,Sr(n,e,s+1)),l),bn(e,t,s,l),o&&Tt(Mt(o,Sr(t,r,s+1)),l)),bn(r,null,s,l),new w(l)}function Sr(n,e,t){let r=[];if(bn(null,n,t,r),n.depth>t){let s=li(n,e,t+1);Tt(Mt(s,Sr(n,e,t+1)),r)}return bn(e,null,t,r),new w(r)}function dh(n,e){let t=e.depth-n.openStart,s=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)s=e.node(i).copy(w.from(s));return{start:s.resolveNoCache(n.openStart+t),end:s.resolveNoCache(s.content.size-n.openEnd-t)}}class Nn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=e.child(t);return r?e.child(t).cut(r):s}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],s=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)s+=r.child(i).nodeSize;return s}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return _.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),s=e.maybeChild(t);if(!r){let l=r;r=s,s=l}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Cr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],s=0,i=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(i),c=i-a;if(r.push(o,l,s+a),!c||(o=o.child(l),o.isText))break;i=c-1,s+=a+1}return new Nn(t,r,i)}static resolveCached(e,t){let r=Xo.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==t)return o}else Xo.set(e,r=new hh);let s=r.elts[r.i]=Nn.resolve(e,t);return r.i=(r.i+1)%fh,s}}class hh{constructor(){this.elts=[],this.i=0}}const fh=12,Xo=new WeakMap;class Cr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const ph=Object.create(null);class Me{constructor(e,t,r,s=_.none){this.type=e,this.attrs=t,this.marks=s,this.content=r||w.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,s=0){this.content.nodesBetween(e,t,r,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,s){return this.content.textBetween(e,t,r,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&wr(this.attrs,t||e.defaultAttrs||ph)&&_.sameSet(this.marks,r||_.none)}copy(e=null){return e==this.content?this:new Me(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Me(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return M.empty;let s=this.resolve(e),i=this.resolve(t),o=r?0:s.sharedDepth(t),l=s.start(o),c=s.node(o).content.cut(s.pos-l,i.pos-l);return new M(c,s.depth-o,i.depth-o)}replace(e,t,r){return uh(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:s}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(s==e||t.isText)return t;e-=s+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let s=this.content.child(t-1);return{node:s,index:t-1,offset:r-s.nodeSize}}resolve(e){return Nn.resolveCached(this,e)}resolveNoCache(e){return Nn.resolve(this,e)}rangeHasMark(e,t,r){let s=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),nc(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=w.empty,s=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,s,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=s;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=_.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!_.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let s=w.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,s,r);return i.type.checkAttrs(i.attrs),i}}Me.prototype.text=void 0;class Tr extends Me{constructor(e,t,r,s){if(super(e,t,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):nc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Tr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Tr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function nc(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Nt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new mh(e,t);if(r.next==null)return Nt.empty;let s=rc(r);r.next&&r.err("Unexpected trailing text");let i=vh(wh(s));return Sh(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let s=this;for(let i=t;s&&i<r;i++)s=s.matchType(e.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let s=[this];function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return w.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(d)==-1){s.push(d);let h=i(d,l.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!s.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:s}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let s=0;s<r.next.length;s++)e.indexOf(r.next[s].next)==-1&&t(r.next[s].next)}return t(this),e.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`
2
2
  `)}}Nt.empty=new Nt(!0);class mh{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function rc(n){let e=[];do e.push(gh(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function gh(n){let e=[];do e.push(yh(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function yh(n){let e=xh(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=kh(n,e);else break;return e}function Yo(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function kh(n,e){let t=Yo(n),r=t;return n.eat(",")&&(n.next!="}"?r=Yo(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function bh(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let s=[];for(let i in t){let o=t[i];o.isInGroup(e)&&s.push(o)}return s.length==0&&n.err("No node type or group '"+e+"' found"),s}function xh(n){if(n.eat("(")){let e=rc(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=bh(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function wh(n){let e=[[]];return s(i(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function s(o,l){o.forEach(a=>a.to=l)}function i(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=i(o.exprs[a],l);if(a==o.exprs.length-1)return c;s(c,l=t())}else if(o.type=="star"){let a=t();return r(l,a),s(i(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return s(i(o.expr,l),a),s(i(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(i(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=t();s(i(o.expr,a),u),a=u}if(o.max==-1)s(i(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=t();r(a,u),s(i(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function sc(n,e){return e-n}function Qo(n,e){let t=[];return r(e),t.sort(sc);function r(s){let i=n[s];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(s);for(let o=0;o<i.length;o++){let{term:l,to:a}=i[o];!l&&t.indexOf(a)==-1&&r(a)}}}function vh(n){let e=Object.create(null);return t(Qo(n,0));function t(r){let s=[];r.forEach(o=>{n[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<s.length;u++)s[u][0]==l&&(c=s[u][1]);Qo(n,a).forEach(u=>{c||s.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new Nt(r.indexOf(n.length-1)>-1);for(let o=0;o<s.length;o++){let l=s[o][1].sort(sc);i.next.push({type:s[o][0],next:e[l.join(",")]||t(l)})}return i}}function Sh(n,e){for(let t=0,r=[n];t<r.length;t++){let s=r[t],i=!s.validEnd,o=[];for(let l=0;l<s.next.length;l++){let{type:a,next:c}=s.next[l];o.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function ic(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function oc(n,e){let t=Object.create(null);for(let r in n){let s=e&&e[r];if(s===void 0){let i=n[r];if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=s}return t}function lc(n,e,t,r){for(let s in e)if(!(s in n))throw new RangeError(`Unsupported attribute ${s} for ${t} of type ${s}`);for(let s in n){let i=n[s];i.validate&&i.validate(e[s])}}function ac(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new Th(n,r,e[r]);return t}let Zo=class cc{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=ac(e,r.attrs),this.defaultAttrs=ic(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Nt.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:oc(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Me(this,this.computeAttrs(e),w.from(t),_.setFrom(r))}createChecked(e=null,t,r){return t=w.from(t),this.checkContent(t),new Me(this,this.computeAttrs(e),t,_.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=w.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let s=this.contentMatch.matchFragment(t),i=s&&s.fillBefore(w.empty,!0);return i?new Me(this,e,t.append(i),_.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){lc(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:_.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,o)=>r[i]=new cc(i,t,o));let s=t.spec.topNode||"doc";if(!r[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Ch(n,e,t){let r=t.split("|");return s=>{let i=s===null?"null":typeof s;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${i}`)}}class Th{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Ch(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class fs{constructor(e,t,r,s){this.name=e,this.rank=t,this.schema=r,this.spec=s,this.attrs=ac(e,s.attrs),this.excluded=null;let i=ic(this.attrs);this.instance=i?new _(this,i):null}create(e=null){return!e&&this.instance?this.instance:new _(this,oc(this.attrs,e))}static compile(e,t){let r=Object.create(null),s=0;return e.forEach((i,o)=>r[i]=new fs(i,s++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){lc(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class uc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let s in e)t[s]=e[s];t.nodes=ie.from(e.nodes),t.marks=ie.from(e.marks||{}),this.nodes=Zo.compile(this.spec.nodes,this),this.marks=fs.compile(this.spec.marks,this);let r=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let i=this.nodes[s],o=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=r[o]||(r[o]=Nt.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?el(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let s in this.marks){let i=this.marks[s],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:el(this,o.split(" "))}this.nodeFromJSON=s=>Me.fromJSON(this,s),this.markFromJSON=s=>_.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,s){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Zo){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,s)}text(e,t){let r=this.nodes.text;return new Tr(r,r.defaultAttrs,e,_.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function el(n,e){let t=[];for(let r=0;r<e.length;r++){let s=e[r],i=n.marks[s],o=i;if(i)t.push(i);else for(let l in n.marks){let a=n.marks[l];(s=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(s)>-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Mh(n){return n.tag!=null}function Eh(n){return n.style!=null}class Qe{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(s=>{if(Mh(s))this.tags.push(s);else if(Eh(s)){let i=/[^=]*/.exec(s.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let i=e.nodes[s.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new nl(this,t,!1);return r.addAll(e,_.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new nl(this,t,!0);return r.addAll(e,_.none,t.from,t.to),M.maxOpen(r.finish())}matchTag(e,t,r){for(let s=r?this.tags.indexOf(r)+1:0;s<this.tags.length;s++){let i=this.tags[s];if(Nh(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(e);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(e,t,r,s){for(let i=s?this.styles.indexOf(s)+1:0;i<this.styles.length;i++){let o=this.styles[i],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(s){let i=s.priority==null?50:s.priority,o=0;for(;o<t.length;o++){let l=t[o];if((l.priority==null?50:l.priority)<i)break}t.splice(o,0,s)}for(let s in e.marks){let i=e.marks[s].spec.parseDOM;i&&i.forEach(o=>{r(o=rl(o)),o.mark||o.ignore||o.clearMark||(o.mark=s)})}for(let s in e.nodes){let i=e.nodes[s].spec.parseDOM;i&&i.forEach(o=>{r(o=rl(o)),o.node||o.ignore||o.mark||(o.node=s)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Qe(e,Qe.schemaRules(e)))}}const dc={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Ah={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},hc={ol:!0,ul:!0},Rn=1,ai=2,xn=4;function tl(n,e,t){return e!=null?(e?Rn:0)|(e==="full"?ai:0):n&&n.whitespace=="pre"?Rn|ai:t&~xn}class Xn{constructor(e,t,r,s,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=s,this.options=o,this.content=[],this.activeMarks=_.none,this.match=i||(o&xn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(w.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,s;return(s=r.findWrapping(e.type))?(this.match=r,s):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Rn)){let r=this.content[this.content.length-1],s;if(r&&r.isText&&(s=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-s[0].length))}}let t=w.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(w.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!dc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class nl{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let s=t.topNode,i,o=tl(null,t.preserveWhitespace,0)|(r?xn:0);s?i=new Xn(s.type,s.attrs,_.none,!0,t.topMatch||s.type.contentMatch,o):r?i=new Xn(null,null,_.none,!0,null,o):i=new Xn(e.schema.topNodeType,null,_.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,s=this.top,i=s.options&ai?"full":this.localPreserveWS||(s.options&Rn)>0,{schema:o}=this.parser;if(i==="full"||s.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
3
3
  `);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(o.linebreakReplacement.create(),t,!0),l[a]&&this.insertNode(o.text(l[a]),t,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=s.content[s.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let s=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;hc.hasOwnProperty(o)&&this.parser.normalizeLists&&Oh(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Ah.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,u=this.needsBlock;if(dc.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let d=a&&a.skip?t:this.readStyles(e,t);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=s}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let i=this.parser.matchedStyles[s],o=r.getPropertyValue(i);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(i,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?t=t.filter(c=>!a.clearMark(c)):t=t.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return t}addElementByRule(e,t,r,s){let i,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,t.attrs||null,r,t.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[t.mark];r=r.concat(a.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(s)this.addElement(e,r,s);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,r,s){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=s==null?null:e.childNodes[s];o!=l;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let s,i;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!s||s.length>c.length+l)&&(s=c,i=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!s)return null;this.sync(i);for(let o=0;o<s.length;o++)t=this.enterInner(s[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let s=this.findPlace(e,t,r);if(s){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let o=_.none;for(let l of s.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):sl(l.type,e.type))&&(o=l.addToSet(o));return i.content.push(e.mark(o)),!0}return!1}enter(e,t,r,s){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,s)),i}enterInner(e,t,r,s=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=tl(e,i,o.options);o.options&xn&&o.content.length==0&&(l|=xn);let a=_.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):sl(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Xn(e,t,a,s,null,l)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Rn)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let s=r.length-1;s>=0;s--)e+=r[s].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&e.nodeType==1&&e.contains(this.find[s].node)&&t.compareDocumentPosition(this.find[s].node)&(r?2:4)&&(this.find[s].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,s=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(s?0:1),o=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&s?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function Oh(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&hc.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Nh(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function rl(n){let e={};for(let t in n)e[t]=n[t];return e}function sl(n,e){let t=e.schema.nodes;for(let r in t){let s=t[r];if(!s.allowsMarkType(n))continue;let i=[],o=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&o(u))return!0}};if(o(s.contentMatch))return!0}}class zt{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Ds(t).createDocumentFragment());let s=r,i=[];return e.forEach(o=>{if(i.length||o.marks.length){let l=0,a=0;for(;l<i.length&&a<o.marks.length;){let c=o.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)s=i.pop()[1];for(;a<o.marks.length;){let c=o.marks[a++],u=this.serializeMark(c,o.isInline,t);u&&(i.push([c,s]),s.appendChild(u.dom),s=u.contentDOM||u.dom)}}s.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:s}=fr(Ds(t),this.nodes[e.type.name](e),null,e.attrs);if(s){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,s)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let s=e.marks.length-1;s>=0;s--){let i=this.serializeMark(e.marks[s],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let s=this.marks[e.type.name];return s&&fr(Ds(r),s(e,t),null,e.attrs)}static renderSpec(e,t,r=null,s){return fr(e,t,r,s)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new zt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=il(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return il(e.marks)}}function il(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Ds(n){return n.document||window.document}const ol=new WeakMap;function Rh(n){let e=ol.get(n);return e===void 0&&ol.set(n,e=Ih(n)),e}function Ih(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let s=0;s<r.length;s++)t(r[s]);else for(let s in r)t(r[s])}return t(n),e}function fr(n,e,t,r){if(typeof e=="string")return{dom:n.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let s=e[0],i;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=Rh(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=s.indexOf(" ");o>0&&(t=s.slice(0,o),s=s.slice(o+1));let l,a=t?n.createElementNS(t,s):n.createElement(s),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let h=d.indexOf(" ");h>0?a.setAttributeNS(d.slice(0,h),d.slice(h+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let h=e[d];if(h===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:f,contentDOM:p}=fr(n,h,t,r);if(a.appendChild(f),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const fc=65535,pc=Math.pow(2,16);function Dh(n,e){return n+e*pc}function ll(n){return n&fc}function Ph(n){return(n-(n&fc))/pc}const mc=1,gc=2,pr=4,yc=8;class ci{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&yc)>0}get deletedBefore(){return(this.delInfo&(mc|pr))>0}get deletedAfter(){return(this.delInfo&(gc|pr))>0}get deletedAcross(){return(this.delInfo&pr)>0}}class be{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&be.empty)return be.empty}recover(e){let t=0,r=ll(e);if(!this.inverted)for(let s=0;s<r;s++)t+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[r*3]+t+Ph(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let s=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?s:0);if(a>e)break;let c=this.ranges[l+i],u=this.ranges[l+o],d=a+c;if(e<=d){let h=c?e==a?-1:e==d?1:t:t,f=a+s+(h<0?0:u);if(r)return f;let p=e==(t<0?a:d)?null:Dh(l/3,e-a),g=e==a?gc:e==d?mc:pr;return(t<0?e!=a:e!=d)&&(g|=yc),new ci(f,g,p)}s+=u-c}return r?e+s:new ci(e+s,0,null)}touches(e,t){let r=0,s=ll(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+i],u=a+c;if(e<=u&&l==s*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let s=0,i=0;s<this.ranges.length;s+=3){let o=this.ranges[s],l=o-(this.inverted?i:0),a=o+(this.inverted?0:i),c=this.ranges[s+t],u=this.ranges[s+r];e(l,l+c,a,a+u),i+=u-c}}invert(){return new be(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?be.empty:new be(e<0?[0,-e,0]:[0,0,e])}}be.empty=new be([]);class In{constructor(e,t,r=0,s=e?e.length:0){this.mirror=t,this.from=r,this.to=s,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new In(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let s=e.getMirror(t);this.appendMap(e._maps[t],s!=null&&s<t?r+s:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let s=e.getMirror(t);this.appendMap(e._maps[t].invert(),s!=null&&s>t?r-s-1:void 0)}}invert(){let e=new In;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i],l=o.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this._maps[a].recover(l.recover);continue}}s|=l.delInfo,e=l.pos}return r?e:new ci(e,s,null)}}const Ps=Object.create(null);class ue{getMap(){return be.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Ps[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Ps)throw new RangeError("Duplicate use of step JSON ID "+e);return Ps[e]=t,t.prototype.jsonID=e,t}}class X{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new X(e,null)}static fail(e){return new X(null,e)}static fromReplace(e,t,r,s){try{return X.ok(e.replace(t,r,s))}catch(i){if(i instanceof vr)return X.fail(i.message);throw i}}}function qi(n,e,t){let r=[];for(let s=0;s<n.childCount;s++){let i=n.child(s);i.content.size&&(i=i.copy(qi(i.content,e,i))),i.isInline&&(i=e(i,t,s)),r.push(i)}return w.fromArray(r)}class dt extends ue{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),s=r.node(r.sharedDepth(this.to)),i=new M(qi(t.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),s),t.openStart,t.openEnd);return X.fromReplace(e,this.from,this.to,i)}invert(){return new Re(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new dt(t.pos,r.pos,this.mark)}merge(e){return e instanceof dt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new dt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new dt(t.from,t.to,e.markFromJSON(t.mark))}}ue.jsonID("addMark",dt);class Re extends ue{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new M(qi(t.content,s=>s.mark(this.mark.removeFromSet(s.marks)),e),t.openStart,t.openEnd);return X.fromReplace(e,this.from,this.to,r)}invert(){return new dt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Re(t.pos,r.pos,this.mark)}merge(e){return e instanceof Re&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Re(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Re(t.from,t.to,e.markFromJSON(t.mark))}}ue.jsonID("removeMark",Re);class ht extends ue{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return X.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return X.fromReplace(e,this.pos,this.pos+1,new M(w.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let s=0;s<t.marks.length;s++)if(!t.marks[s].isInSet(r))return new ht(this.pos,t.marks[s]);return new ht(this.pos,this.mark)}}return new Rt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ht(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ht(t.pos,e.markFromJSON(t.mark))}}ue.jsonID("addNodeMark",ht);class Rt extends ue{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return X.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return X.fromReplace(e,this.pos,this.pos+1,new M(w.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new ht(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Rt(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Rt(t.pos,e.markFromJSON(t.mark))}}ue.jsonID("removeNodeMark",Rt);class te extends ue{constructor(e,t,r,s=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=s}apply(e){return this.structure&&ui(e,this.from,this.to)?X.fail("Structure replace would overwrite content"):X.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new be([this.from,this.to-this.from,this.slice.size])}invert(e){return new te(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new te(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof te)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?M.empty:new M(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new te(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?M.empty:new M(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new te(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new te(t.from,t.to,M.fromJSON(e,t.slice),!!t.structure)}}ue.jsonID("replace",te);class re extends ue{constructor(e,t,r,s,i,o,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=s,this.slice=i,this.insert=o,this.structure=l}apply(e){if(this.structure&&(ui(e,this.from,this.gapFrom)||ui(e,this.gapTo,this.to)))return X.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return X.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?X.fromReplace(e,this.from,this.to,r):X.fail("Content does not fit in gap")}getMap(){return new be([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new re(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),s=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||s<t.pos||i>r.pos?null:new re(t.pos,r.pos,s,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new re(t.from,t.to,t.gapFrom,t.gapTo,M.fromJSON(e,t.slice),t.insert,!!t.structure)}}ue.jsonID("replaceAround",re);function ui(n,e,t){let r=n.resolve(e),s=t-e,i=r.depth;for(;s>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,s--;if(s>0){let o=r.node(i).maybeChild(r.indexAfter(i));for(;s>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,s--}}return!1}function Lh(n,e,t,r){let s=[],i=[],o,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let h=Math.max(c,e),f=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==h&&o.mark.eq(d[g])?o.to=f:s.push(o=new Re(h,f,d[g])));l&&l.to==h?l.to=f:i.push(l=new dt(h,f,r))}}),s.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function zh(n,e,t,r){let s=[],i=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;i++;let a=null;if(r instanceof fs){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,t);for(let u=0;u<a.length;u++){let d=a[u],h;for(let f=0;f<s.length;f++){let p=s[f];p.step==i-1&&d.eq(s[f].style)&&(h=p)}h?(h.to=c,h.step=i):s.push({style:d,from:Math.max(l,e),to:c,step:i})}}}),s.forEach(o=>n.step(new Re(o.from,o.to,o.style)))}function Ui(n,e,t,r=t.contentMatch,s=!0){let i=n.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<i.childCount;a++){let c=i.child(a),u=l+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new te(l,u,M.empty));else{r=d;for(let h=0;h<c.marks.length;h++)t.allowsMarkType(c.marks[h].type)||n.step(new Re(l,u,c.marks[h]));if(s&&c.isText&&t.whitespace!="pre"){let h,f=/\r?\n|\r/g,p;for(;h=f.exec(c.text);)p||(p=new M(w.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),o.push(new te(l+h.index,l+h.index+h[0].length,p))}}l=u}if(!r.validEnd){let a=r.fillBefore(w.empty,!0);n.replace(l,l,new M(a,0,0))}for(let a=o.length-1;a>=0;a--)n.step(o[a])}function $h(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function sn(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,s=0,i=0;;--r){let o=n.$from.node(r),l=n.$from.index(r)+s,a=n.$to.indexAfter(r)-i;if(r<n.depth&&o.canReplace(l,a,t))return r;if(r==0||o.type.spec.isolating||!$h(o,l,a))break;l&&(s=1),a<o.childCount&&(i=1)}return null}function Bh(n,e,t){let{$from:r,$to:s,depth:i}=e,o=r.before(i+1),l=s.after(i+1),a=o,c=l,u=w.empty,d=0;for(let p=i,g=!1;p>t;p--)g||r.index(p)>0?(g=!0,u=w.from(r.node(p).copy(u)),d++):a--;let h=w.empty,f=0;for(let p=i,g=!1;p>t;p--)g||s.after(p+1)<s.end(p)?(g=!0,h=w.from(s.node(p).copy(h)),f++):c++;n.step(new re(a,c,o,l,new M(u.append(h),d,f),u.size-d,!0))}function Wi(n,e,t=null,r=n){let s=_h(n,e),i=s&&Hh(r,e);return i?s.map(al).concat({type:e,attrs:t}).concat(i.map(al)):null}function al(n){return{type:n,attrs:null}}function _h(n,e){let{parent:t,startIndex:r,endIndex:s}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let o=i.length?i[0]:e;return t.canReplaceWith(r,s,o)?i:null}function Hh(n,e){let{parent:t,startIndex:r,endIndex:s}=n,i=t.child(r),o=e.contentMatch.findWrapping(i.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;a&&c<s;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:o}function Fh(n,e,t){let r=w.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let l=t[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=w.from(t[o].type.create(t[o].attrs,r))}let s=e.start,i=e.end;n.step(new re(s,i,s,i,new M(r,0,0),t.length,!0))}function Vh(n,e,t,r,s){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{let a=typeof s=="function"?s(o):s;if(o.isTextblock&&!o.hasMarkup(r,a)&&jh(n.doc,n.mapping.slice(i).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!p?c=!1:!f&&p&&(c=!0)}c===!1&&bc(n,o,l,i),Ui(n,n.mapping.slice(i).map(l,1),r,void 0,c===null);let u=n.mapping.slice(i),d=u.map(l,1),h=u.map(l+o.nodeSize,1);return n.step(new re(d,h,d+1,h-1,new M(w.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&kc(n,o,l,i),!1}})}function kc(n,e,t,r){e.forEach((s,i)=>{if(s.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(s.text);){let a=n.mapping.slice(r).map(t+1+i+o.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function bc(n,e,t,r){e.forEach((s,i)=>{if(s.type==s.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+i);n.replaceWith(o,o+1,e.type.schema.text(`
@@ -1 +1 @@
1
- import{W as p,ad as m,h as n,M as r,o as c,r as d,$ as o,ac as g,Z as f,a as v,_ as x,ap as u}from"./B06CcGVK.js";const y={slots:{base:["relative text-2xl text-highlighted font-bold mt-12 mb-6 scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))] [&>a]:focus-visible:outline-primary [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-xl/7 [&>a>code]:font-bold","[&>a>code]:transition-colors"],leading:["absolute -ms-8 top-1 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated hover:text-primary rounded-md hidden lg:flex text-muted","transition"],leadingIcon:"size-4 shrink-0",link:"group lg:ps-2 lg:-ms-2"}},b=["id"],k=["href"],C={__name:"ProseH2",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(a){const e=a,t=p(),{headings:l}=m().public?.mdc||{},s=n(()=>u({extend:u(y),...t.ui?.prose?.h2||{}})()),h=n(()=>e.id&&typeof l?.anchorLinks=="object"&&l.anchorLinks.h2);return(i,_)=>(c(),r("h2",{id:a.id,class:o(s.value.base({class:e.class}))},[a.id&&h.value?(c(),r("a",{key:0,href:`#${a.id}`,class:o(s.value.link({class:e.ui?.link}))},[g("span",{class:o(s.value.leading({class:e.ui?.leading}))},[f(x,{name:v(t).ui.icons.hash,class:o(s.value.leadingIcon({class:e.ui?.leadingIcon}))},null,8,["name","class"])],2),d(i.$slots,"default")],10,k)):d(i.$slots,"default",{key:1})],10,b))}};export{C as default};
1
+ import{W as p,ad as m,h as n,M as r,o as c,r as d,$ as o,ac as g,Z as f,a as v,_ as x,ap as u}from"./Bvui1gLJ.js";const y={slots:{base:["relative text-2xl text-highlighted font-bold mt-12 mb-6 scroll-mt-[calc(48px+45px+var(--ui-header-height))] lg:scroll-mt-[calc(48px+var(--ui-header-height))] [&>a]:focus-visible:outline-primary [&>a>code]:border-dashed hover:[&>a>code]:border-primary hover:[&>a>code]:text-primary [&>a>code]:text-xl/7 [&>a>code]:font-bold","[&>a>code]:transition-colors"],leading:["absolute -ms-8 top-1 opacity-0 group-hover:opacity-100 group-focus:opacity-100 p-1 bg-elevated hover:text-primary rounded-md hidden lg:flex text-muted","transition"],leadingIcon:"size-4 shrink-0",link:"group lg:ps-2 lg:-ms-2"}},b=["id"],k=["href"],C={__name:"ProseH2",props:{id:{type:String,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},setup(a){const e=a,t=p(),{headings:l}=m().public?.mdc||{},s=n(()=>u({extend:u(y),...t.ui?.prose?.h2||{}})()),h=n(()=>e.id&&typeof l?.anchorLinks=="object"&&l.anchorLinks.h2);return(i,_)=>(c(),r("h2",{id:a.id,class:o(s.value.base({class:e.class}))},[a.id&&h.value?(c(),r("a",{key:0,href:`#${a.id}`,class:o(s.value.link({class:e.ui?.link}))},[g("span",{class:o(s.value.leading({class:e.ui?.leading}))},[f(x,{name:v(t).ui.icons.hash,class:o(s.value.leadingIcon({class:e.ui?.leadingIcon}))},null,8,["name","class"])],2),d(i.$slots,"default")],10,k)):d(i.$slots,"default",{key:1})],10,b))}};export{C as default};
@@ -1 +1 @@
1
- import{W as f,h as b,M as l,o as h,r as a,$ as i,ap as r}from"./B06CcGVK.js";const u={base:"ms-4 border-s border-default ps-8 [counter-reset:step]",variants:{level:{2:"[&>h2]:[counter-increment:step] [&>h2]:relative [&>h2]:before:absolute [&>h2]:before:size-8 [&>h2]:before:bg-elevated [&>h2]:before:rounded-full [&>h2]:before:font-semibold [&>h2]:before:text-sm [&>h2]:before:tabular-nums [&>h2]:before:inline-flex [&>h2]:before:items-center [&>h2]:before:justify-center [&>h2]:before:ring-4 [&>h2]:before:ring-bg [&>h2]:before:-ms-[48.5px] [&>h2]:before:-mt-0 [&>h2]:before:content-[counter(step)] [&>h2>a>span.absolute]:hidden",3:"[&>h3]:[counter-increment:step] [&>h3]:relative [&>h3]:before:absolute [&>h3]:before:size-7 [&>h3]:before:inset-x-0.5 [&>h3]:before:bg-elevated [&>h3]:before:rounded-full [&>h3]:before:font-semibold [&>h3]:before:text-sm [&>h3]:before:tabular-nums [&>h3]:before:inline-flex [&>h3]:before:items-center [&>h3]:before:justify-center [&>h3]:before:ring-4 [&>h3]:before:ring-bg [&>h3]:before:-ms-[48.5px] [&>h3]:before:content-[counter(step)] [&>h3>a>span.absolute]:hidden",4:"[&>h4]:[counter-increment:step] [&>h4]:relative [&>h4]:before:absolute [&>h4]:before:size-7 [&>h4]:before:inset-x-0.5 [&>h4]:before:bg-elevated [&>h4]:before:rounded-full [&>h4]:before:font-semibold [&>h4]:before:text-sm [&>h4]:before:tabular-nums [&>h4]:before:inline-flex [&>h4]:before:items-center [&>h4]:before:justify-center [&>h4]:before:ring-4 [&>h4]:before:ring-bg [&>h4]:before:-ms-[48.5px] [&>h4]:before:content-[counter(step)] [&>h4>a>span.absolute]:hidden"}},defaultVariants:{level:"3"}},d={__name:"ProseSteps",props:{level:{type:null,required:!1},class:{type:null,required:!1}},setup(o){const e=o,t=f(),s=b(()=>r({extend:r(u),...t.ui?.prose?.steps||{}}));return(n,c)=>(h(),l("div",{class:i(s.value({class:e.class,level:e.level}))},[a(n.$slots,"default")],2))}};export{d as default};
1
+ import{W as f,h as b,M as l,o as h,r as a,$ as i,ap as r}from"./Bvui1gLJ.js";const u={base:"ms-4 border-s border-default ps-8 [counter-reset:step]",variants:{level:{2:"[&>h2]:[counter-increment:step] [&>h2]:relative [&>h2]:before:absolute [&>h2]:before:size-8 [&>h2]:before:bg-elevated [&>h2]:before:rounded-full [&>h2]:before:font-semibold [&>h2]:before:text-sm [&>h2]:before:tabular-nums [&>h2]:before:inline-flex [&>h2]:before:items-center [&>h2]:before:justify-center [&>h2]:before:ring-4 [&>h2]:before:ring-bg [&>h2]:before:-ms-[48.5px] [&>h2]:before:-mt-0 [&>h2]:before:content-[counter(step)] [&>h2>a>span.absolute]:hidden",3:"[&>h3]:[counter-increment:step] [&>h3]:relative [&>h3]:before:absolute [&>h3]:before:size-7 [&>h3]:before:inset-x-0.5 [&>h3]:before:bg-elevated [&>h3]:before:rounded-full [&>h3]:before:font-semibold [&>h3]:before:text-sm [&>h3]:before:tabular-nums [&>h3]:before:inline-flex [&>h3]:before:items-center [&>h3]:before:justify-center [&>h3]:before:ring-4 [&>h3]:before:ring-bg [&>h3]:before:-ms-[48.5px] [&>h3]:before:content-[counter(step)] [&>h3>a>span.absolute]:hidden",4:"[&>h4]:[counter-increment:step] [&>h4]:relative [&>h4]:before:absolute [&>h4]:before:size-7 [&>h4]:before:inset-x-0.5 [&>h4]:before:bg-elevated [&>h4]:before:rounded-full [&>h4]:before:font-semibold [&>h4]:before:text-sm [&>h4]:before:tabular-nums [&>h4]:before:inline-flex [&>h4]:before:items-center [&>h4]:before:justify-center [&>h4]:before:ring-4 [&>h4]:before:ring-bg [&>h4]:before:-ms-[48.5px] [&>h4]:before:content-[counter(step)] [&>h4>a>span.absolute]:hidden"}},defaultVariants:{level:"3"}},d={__name:"ProseSteps",props:{level:{type:null,required:!1},class:{type:null,required:!1}},setup(o){const e=o,t=f(),s=b(()=>r({extend:r(u),...t.ui?.prose?.steps||{}}));return(n,c)=>(h(),l("div",{class:i(s.value({class:e.class,level:e.level}))},[a(n.$slots,"default")],2))}};export{d as default};
@@ -1 +1 @@
1
- import{W as r,h as p,M as n,o as c,r as d,$ as u,ap as e}from"./B06CcGVK.js";const i={base:"py-3 px-4 text-sm text-left align-top border-e border-b first:border-s border-muted [&_code]:text-xs/5 [&_p]:my-0 [&_p]:leading-6 [&_ul]:my-0 [&_ol]:my-0 [&_ul]:ps-4.5 [&_ol]:ps-4.5 [&_li]:leading-6 [&_li]:my-0.5"},f={__name:"ProseTd",props:{class:{type:null,required:!1}},setup(s){const t=s,o=r(),a=p(()=>e({extend:e(i),...o.ui?.prose?.td||{}}));return(l,m)=>(c(),n("td",{class:u(a.value({class:t.class}))},[d(l.$slots,"default")],2))}};export{f as default};
1
+ import{W as r,h as p,M as n,o as c,r as d,$ as u,ap as e}from"./Bvui1gLJ.js";const i={base:"py-3 px-4 text-sm text-left align-top border-e border-b first:border-s border-muted [&_code]:text-xs/5 [&_p]:my-0 [&_p]:leading-6 [&_ul]:my-0 [&_ol]:my-0 [&_ul]:ps-4.5 [&_ol]:ps-4.5 [&_li]:leading-6 [&_li]:my-0.5"},f={__name:"ProseTd",props:{class:{type:null,required:!1}},setup(s){const t=s,o=r(),a=p(()=>e({extend:e(i),...o.ui?.prose?.td||{}}));return(l,m)=>(c(),n("td",{class:u(a.value({class:t.class}))},[d(l.$slots,"default")],2))}};export{f as default};
@@ -1 +1 @@
1
- import{W as l,h as n,M as c,o as p,r as u,$ as d,ap as e}from"./B06CcGVK.js";const m={base:"bg-muted"},h={__name:"ProseThead",props:{class:{type:null,required:!1}},setup(s){const a=s,t=l(),o=n(()=>e({extend:e(m),...t.ui?.prose?.thead||{}}));return(r,i)=>(p(),c("thead",{class:d(o.value({class:a.class}))},[u(r.$slots,"default")],2))}};export{h as default};
1
+ import{W as l,h as n,M as c,o as p,r as u,$ as d,ap as e}from"./Bvui1gLJ.js";const m={base:"bg-muted"},h={__name:"ProseThead",props:{class:{type:null,required:!1}},setup(s){const a=s,t=l(),o=n(()=>e({extend:e(m),...t.ui?.prose?.thead||{}}));return(r,i)=>(p(),c("thead",{class:d(o.value({class:a.class}))},[u(r.$slots,"default")],2))}};export{h as default};
@@ -1 +1 @@
1
- import{_ as Q,a as X}from"./CoUQ3qpL.js";import{_ as Y}from"./BVNZYpXH.js";import{d as E,aj as I,h as D,e as b,M as N,o as u,Z as n,w as o,ac as d,ao as ee,c as g,_ as K,a as t,af as B,bm as W,ak as T,a0 as L,ab as w,aa as z,C as A,a5 as te,f as Z,ah as le,bh as oe,al as ne,am as ae,ag as se}from"./B06CcGVK.js";import{_ as ie,a as re}from"./C7hn68Tp.js";import{_ as q}from"./CHd8mdNy.js";import{_ as de}from"./CkfP4uja.js";import{_ as G}from"./aUYaYlYl.js";import{_ as H}from"./CGTQGJ_c.js";import{_ as ue}from"./C4ui9LWq.js";import{a as ce}from"./DKHJBr2m.js";import{_ as me}from"./oWO88tvt.js";import{_ as fe}from"./BQeDYnyj.js";import"./Dc8vLBQN.js";import"./hkCaWCzP.js";import"./DH2yWNbZ.js";import"./C0FuVjdX.js";import"./DZQxxfue.js";import"./B0v0agy0.js";import"./olSL1K5t.js";import"./DY78sr_b.js";import"./CKfAI3Hb.js";import"./CXRkSVkD.js";import"./C7RIYfkH.js";import"./CvaD7s2l.js";import"./5qkiDtwf.js";import"./BuURpKT4.js";import"./BIoHE1oQ.js";import"./C6Y-ieo6.js";import"./CTJDAjdO.js";import"./BGytjslk.js";import"./Cwel2ykQ.js";import"./Tirj2rC0.js";import"./CiQJYbKL.js";import"./CopZwjN8.js";import"./0L-9iIbm.js";import"./DnfG5RzJ.js";import"./Vcq4gwWv.js";const pe={class:"h-full flex flex-col"},_e={key:0,class:"h-full min-h-32 flex flex-col items-center justify-center text-dimmed text-sm"},ve=["onContextmenu"],ye={class:"truncate"},ke={class:"flex items-center gap-2"},xe={class:"flex justify-end gap-2"},he={class:"flex items-center gap-2"},$e={class:"flex justify-end gap-2"},ge={class:"flex items-center gap-2 text-error"},be={key:0,class:"text-sm text-dimmed mt-1"},we={class:"flex justify-end gap-2"},Ce=E({__name:"FileTree",props:{skillName:{},files:{},selectedPath:{}},emits:["select","refresh"],setup(U,{emit:P}){const p=U,$=P,m=I();function l(y,e=""){return y.map(s=>{const S=e?`${e}/${s.path}`:s.path,C={id:S,label:s.name,path:S,type:s.type,defaultExpanded:!0};return s.type==="directory"?C.children=s.children?l(s.children,S):[]:s.name.endsWith(".py")?C.icon="i-lucide-file-code":s.name.endsWith(".md")?C.icon="i-lucide-file-text":s.name.endsWith(".json")?C.icon="i-lucide-file-json":C.icon="i-lucide-file",C})}const k=D(()=>l(p.files)),i=b(null),x=b(!1),_=b(!1),c=b(!1),f=b(""),j=D(()=>[[{label:"New File",icon:"i-lucide-file-plus",onSelect:()=>{f.value="",x.value=!0}},{label:"New Folder",icon:"i-lucide-folder-plus",onSelect:()=>{f.value="",_.value=!0}}],[{label:"Delete",icon:"i-lucide-trash-2",color:"error",onSelect:()=>{i.value&&i.value.label!=="SKILL.md"&&(c.value=!0)}}]]);function h(y,e){e.type==="file"&&$("select",e.path)}async function a(){if(!f.value.trim())return;let y=f.value.trim();y.includes(".")||(y+=".py");const e=i.value?.type==="directory"?i.value.path:"",s=e?`${e}/${y}`:y;try{await $fetch(`/api/skills/${p.skillName}/files/create`,{method:"POST",body:{path:s,type:"file"}}),$("refresh"),$("select",s),m.add({title:`Created ${y}`,color:"success"})}catch{m.add({title:"Failed to create file",color:"error"})}x.value=!1,f.value=""}async function v(){if(!f.value.trim())return;const y=f.value.trim(),e=i.value?.type==="directory"?i.value.path:"",s=e?`${e}/${y}`:y;try{await $fetch(`/api/skills/${p.skillName}/files/create`,{method:"POST",body:{path:s,type:"directory"}}),$("refresh"),m.add({title:`Created ${y}/`,color:"success"})}catch{m.add({title:"Failed to create folder",color:"error"})}_.value=!1,f.value=""}async function V(){if(i.value){try{await $fetch(`/api/skills/${p.skillName}/files/delete`,{method:"POST",body:{path:i.value.path}}),$("refresh"),m.add({title:`Deleted ${i.value.label}`,color:"success"})}catch{m.add({title:"Failed to delete",color:"error"})}c.value=!1}}return(y,e)=>{const s=K,S=ie,C=re,O=q,F=L,M=de,R=G;return u(),N("div",pe,[n(C,{items:t(j)},{default:o(()=>[d("div",{class:"flex-1 h-full overflow-auto p-2",onContextmenu:e[0]||(e[0]=ee(r=>i.value=null,["self"]))},[U.files.length===0?(u(),N("div",_e,[n(s,{name:"i-lucide-folder-open",class:"size-8 mx-auto mb-2 opacity-50"}),e[9]||(e[9]=d("p",null,"No files found",-1)),e[10]||(e[10]=d("p",{class:"text-xs mt-1"}," Right-click to create a file ",-1))])):(u(),g(S,{key:1,items:t(k),"get-key":r=>r.id,color:"primary","expanded-icon":"i-lucide-folder-open","collapsed-icon":"i-lucide-folder",onSelect:h},{item:o(({item:r,expanded:J})=>[d("div",{class:"flex items-center gap-2 w-full",onContextmenu:Ke=>i.value=r},[r.children?.length?(u(),g(s,{key:0,name:J?"i-lucide-folder-open":"i-lucide-folder",class:"size-4 shrink-0 text-dimmed"},null,8,["name"])):r.icon?(u(),g(s,{key:1,name:r.icon,class:"size-4 shrink-0 text-dimmed"},null,8,["name"])):(u(),g(s,{key:2,name:"i-lucide-file",class:"size-4 shrink-0 text-dimmed"})),d("span",ye,B(r.label),1)],40,ve)]),_:1},8,["items","get-key"]))],32)]),_:1},8,["items"]),n(R,{open:t(x),"onUpdate:open":e[3]||(e[3]=r=>T(x)?x.value=r:null)},{content:o(()=>[n(M,null,{header:o(()=>[d("div",ke,[n(s,{name:"i-lucide-file-plus",class:"size-5"}),e[11]||(e[11]=d("span",{class:"font-semibold"},"New File",-1))])]),footer:o(()=>[d("div",xe,[n(F,{color:"neutral",variant:"ghost",onClick:e[2]||(e[2]=r=>x.value=!1)},{default:o(()=>[...e[12]||(e[12]=[w(" Cancel ",-1)])]),_:1}),n(F,{onClick:a},{default:o(()=>[...e[13]||(e[13]=[w(" Create ",-1)])]),_:1})])]),default:o(()=>[n(O,{modelValue:t(f),"onUpdate:modelValue":e[1]||(e[1]=r=>T(f)?f.value=r:null),placeholder:"filename.py",autofocus:"",onKeyup:W(a,["enter"])},null,8,["modelValue"])]),_:1})]),_:1},8,["open"]),n(R,{open:t(_),"onUpdate:open":e[6]||(e[6]=r=>T(_)?_.value=r:null)},{content:o(()=>[n(M,null,{header:o(()=>[d("div",he,[n(s,{name:"i-lucide-folder-plus",class:"size-5"}),e[14]||(e[14]=d("span",{class:"font-semibold"},"New Folder",-1))])]),footer:o(()=>[d("div",$e,[n(F,{color:"neutral",variant:"ghost",onClick:e[5]||(e[5]=r=>_.value=!1)},{default:o(()=>[...e[15]||(e[15]=[w(" Cancel ",-1)])]),_:1}),n(F,{onClick:v},{default:o(()=>[...e[16]||(e[16]=[w(" Create ",-1)])]),_:1})])]),default:o(()=>[n(O,{modelValue:t(f),"onUpdate:modelValue":e[4]||(e[4]=r=>T(f)?f.value=r:null),placeholder:"folder-name",autofocus:"",onKeyup:W(v,["enter"])},null,8,["modelValue"])]),_:1})]),_:1},8,["open"]),n(R,{open:t(c),"onUpdate:open":e[8]||(e[8]=r=>T(c)?c.value=r:null)},{content:o(()=>[n(M,null,{header:o(()=>[d("div",ge,[n(s,{name:"i-lucide-trash-2",class:"size-5"}),e[17]||(e[17]=d("span",{class:"font-semibold"},"Delete",-1))])]),footer:o(()=>[d("div",we,[n(F,{color:"neutral",variant:"ghost",onClick:e[7]||(e[7]=r=>c.value=!1)},{default:o(()=>[...e[20]||(e[20]=[w(" Cancel ",-1)])]),_:1}),n(F,{color:"error",onClick:V},{default:o(()=>[...e[21]||(e[21]=[w(" Delete ",-1)])]),_:1})])]),default:o(()=>[d("p",null,[e[18]||(e[18]=w(" Are you sure you want to delete ",-1)),d("strong",null,B(t(i)?.label),1),e[19]||(e[19]=w("? ",-1))]),t(i)?.type==="directory"?(u(),N("p",be," This will delete all files and folders inside. ")):z("",!0)]),_:1})]),_:1},8,["open"])])}}}),Ne=Object.assign(Ce,{__name:"SkillsFileTree"}),Ue=ce(me),Se={class:"flex flex-col h-full"},Fe={class:"flex items-center justify-between px-4 py-2 border-b border-default"},ze={class:"flex items-center gap-2 text-sm text-muted"},je={key:0,class:"flex-1 flex items-center justify-center"},Pe=E({__name:"Editor",props:{skillName:{},filePath:{}},emits:["saved"],setup(U,{emit:P}){const p=U,$=P,m=I(),l=b(""),k=b(""),i=b(!0),x=b(!1),_=D(()=>l.value!==k.value),c=D(()=>{switch(p.filePath.split(".").pop()?.toLowerCase()){case"py":return"python";case"md":return"markdown";case"json":return"json";case"ts":return"typescript";case"js":return"javascript";case"yaml":case"yml":return"yaml";case"sh":case"bash":return"bash";default:return"plaintext"}});async function f(){i.value=!0;try{const a=await $fetch(`/api/skills/${p.skillName}/files/read`,{method:"POST",body:{path:p.filePath}});l.value=a.data.content,k.value=a.data.content}catch{m.add({title:"Failed to load file",color:"error"})}finally{i.value=!1}}async function j(){x.value=!0;try{await $fetch(`/api/skills/${p.skillName}/files/write`,{method:"POST",body:{path:p.filePath,content:l.value}}),k.value=l.value,m.add({title:"File saved",color:"success"}),$("saved")}catch{m.add({title:"Failed to save file",color:"error"})}finally{x.value=!1}}function h(a){(a.metaKey||a.ctrlKey)&&a.key==="s"&&(a.preventDefault(),_.value&&j())}return A(()=>{f(),window.addEventListener("keydown",h)}),te(()=>{window.removeEventListener("keydown",h)}),Z(()=>p.filePath,()=>f()),(a,v)=>{const V=K,y=H,e=L,s=Ue;return u(),N("div",Se,[d("div",Fe,[d("div",ze,[n(V,{name:"i-lucide-file-code",class:"size-4"}),d("span",null,B(U.filePath),1),t(_)?(u(),g(y,{key:0,variant:"soft",color:"warning",size:"xs"},{default:o(()=>[...v[1]||(v[1]=[w(" Modified ",-1)])]),_:1})):z("",!0)]),n(e,{size:"xs",loading:t(x),disabled:!t(_),onClick:j},{default:o(()=>[...v[2]||(v[2]=[w(" Save ",-1)])]),_:1},8,["loading","disabled"])]),t(i)?(u(),N("div",je,[n(V,{name:"i-lucide-loader-2",class:"size-6 animate-spin text-dimmed"})])):(u(),g(s,{key:1,modelValue:t(l),"onUpdate:modelValue":v[0]||(v[0]=S=>T(l)?l.value=S:null),language:t(c),class:"flex-1"},null,8,["modelValue","language"]))])}}}),Te=Object.assign(Pe,{__name:"SkillsEditor"}),Ve={class:"flex justify-end gap-2"},Me=E({__name:"RenameModal",props:{open:{type:Boolean},currentName:{}},emits:["update:open","renamed"],setup(U,{emit:P}){const p=U,$=P,m=I(),l=b(p.currentName),k=b(!1);Z(()=>p.currentName,_=>{l.value=_});function i(){$("update:open",!1)}async function x(){if(!(!l.value.trim()||l.value.trim()===p.currentName)){k.value=!0;try{await $fetch(`/api/skills/${p.currentName}/rename`,{method:"POST",body:{newName:l.value.trim()}}),m.add({title:`Skill renamed to '${l.value.trim()}'`,color:"success"}),$("renamed",l.value.trim()),i()}catch(_){const c=_ instanceof Error?_.message:"Failed to rename skill";m.add({title:c,color:"error"})}finally{k.value=!1}}}return(_,c)=>{const f=q,j=fe,h=L,a=G;return u(),g(a,{open:p.open,"onUpdate:open":c[1]||(c[1]=v=>$("update:open",v))},{header:o(()=>[...c[2]||(c[2]=[d("span",{class:"font-semibold"},"Rename Skill",-1)])]),body:o(()=>[n(j,{label:"New Name"},{default:o(()=>[n(f,{modelValue:t(l),"onUpdate:modelValue":c[0]||(c[0]=v=>T(l)?l.value=v:null),placeholder:"my-skill",disabled:t(k)},null,8,["modelValue","disabled"])]),_:1})]),footer:o(()=>[d("div",Ve,[n(h,{variant:"ghost",color:"neutral",disabled:t(k),onClick:i},{default:o(()=>[...c[3]||(c[3]=[w(" Cancel ",-1)])]),_:1},8,["disabled"]),n(h,{loading:t(k),disabled:!t(l).trim()||t(l).trim()===U.currentName,onClick:x},{default:o(()=>[...c[4]||(c[4]=[w(" Rename ",-1)])]),_:1},8,["loading","disabled"])])]),_:1},8,["open"])}}}),Re=Object.assign(Me,{__name:"SkillsRenameModal"}),De={class:"flex flex-1 min-w-0"},Oe={key:0,class:"p-4 space-y-2"},Be={class:"font-medium"},Ee={key:0,class:"flex-1 flex items-center justify-center h-full"},Ie={key:1,class:"flex-1 flex items-center justify-center h-full text-dimmed"},Le={class:"text-center"},Ut=E({__name:"[name]",setup(U){const P=le(),p=oe(),$=I(),m=D(()=>P.params.name),l=b(null),k=b(!0),i=b(""),x=b(!1);async function _(){k.value=!0;try{const h=await $fetch(`/api/skills/${m.value}`);if(l.value=h.data,!i.value){const a=h.data.files.find(v=>v.name==="SKILL.md");a&&(i.value=a.path)}}catch{$.add({title:"Skill not found",color:"error"}),p.push("/skills")}finally{k.value=!1}}async function c(){if(!(!l.value||l.value.core))try{const h=await $fetch(`/api/skills/${m.value}/toggle`,{method:"POST"});l.value.active=h.data.active,$.add({title:`${m.value} ${h.data.active?"enabled":"disabled"}`,color:"success"})}catch{$.add({title:"Failed to toggle skill",color:"error"})}}function f(h){p.replace(`/skills/${h}`)}function j(){window.open(`/api/skills/${m.value}/export`,"_blank")}return A(()=>_()),(h,a)=>{const v=X,V=Y,y=Ne,e=Q,s=K,S=se,C=H,O=ue,F=L,M=Te,R=Re;return u(),N("div",De,[n(e,{id:"skill-filetree",collapsible:"",resizable:"","min-size":12,"default-size":16,"max-size":24,class:"hidden lg:flex"},{header:o(()=>[n(v,null,{title:o(()=>[...a[3]||(a[3]=[d("span",{class:"text-sm font-medium truncate"},"Files",-1)])]),_:1})]),body:o(()=>[t(k)?(u(),N("div",Oe,[(u(),N(ne,null,ae(4,r=>n(V,{key:r,class:"h-6 w-full"})),64))])):t(l)?(u(),g(y,{key:1,"skill-name":t(m),files:t(l).files,"selected-path":t(i),onSelect:a[0]||(a[0]=r=>i.value=r),onRefresh:_},null,8,["skill-name","files","selected-path"])):z("",!0)]),_:1}),n(e,{id:"skill-editor",grow:"",ui:{body:"!p-0"}},{header:o(()=>[n(v,null,{title:o(()=>[n(S,{to:"/skills",class:"text-muted hover:text-default transition-colors"},{default:o(()=>[n(s,{name:"i-lucide-arrow-left",class:"size-4"})]),_:1}),d("span",Be,B(t(m)),1),t(l)?.core?(u(),g(C,{key:0,variant:"subtle",color:"primary",size:"xs"},{default:o(()=>[...a[4]||(a[4]=[w(" Core ",-1)])]),_:1})):z("",!0),t(l)&&!t(l).active?(u(),g(C,{key:1,variant:"subtle",color:"neutral",size:"xs"},{default:o(()=>[...a[5]||(a[5]=[w(" Disabled ",-1)])]),_:1})):z("",!0)]),right:o(()=>[t(l)&&!t(l).core?(u(),g(O,{key:0,"model-value":t(l).active,size:"sm","onUpdate:modelValue":c},null,8,["model-value"])):z("",!0),t(l)&&!t(l).core?(u(),g(F,{key:1,icon:"i-lucide-pencil",variant:"ghost",color:"neutral",size:"sm",onClick:a[1]||(a[1]=r=>x.value=!0)})):z("",!0),t(l)?(u(),g(F,{key:2,icon:"i-lucide-download",variant:"ghost",color:"neutral",size:"sm",onClick:j})):z("",!0)]),_:1})]),body:o(()=>[t(k)?(u(),N("div",Ee,[n(s,{name:"i-lucide-loader-2",class:"size-6 animate-spin text-dimmed"})])):t(i)?(u(),g(M,{key:t(i),"skill-name":t(m),"file-path":t(i),onSaved:_},null,8,["skill-name","file-path"])):(u(),N("div",Ie,[d("div",Le,[n(s,{name:"i-lucide-file-code",class:"size-12 mx-auto mb-4 opacity-50"}),a[6]||(a[6]=d("p",null,"Select a file to edit",-1))])]))]),_:1}),t(l)?(u(),g(R,{key:0,open:t(x),"current-name":t(m),"onUpdate:open":a[2]||(a[2]=r=>x.value=r),onRenamed:f},null,8,["open","current-name"])):z("",!0)])}}});export{Ut as default};
1
+ import{_ as Q,a as X}from"./CLr8lZv6.js";import{_ as Y}from"./BzaaoKje.js";import{d as E,aj as I,h as D,e as b,M as N,o as u,Z as n,w as o,ac as d,ao as ee,c as g,_ as K,a as t,af as B,bm as W,ak as T,a0 as L,ab as w,aa as z,C as A,a5 as te,f as Z,ah as le,bh as oe,al as ne,am as ae,ag as se}from"./Bvui1gLJ.js";import{_ as ie,a as re}from"./pbxwxCYQ.js";import{_ as q}from"./dj_3rTRs.js";import{_ as de}from"./p9zz3Q1q.js";import{_ as G}from"./Dammc_1s.js";import{_ as H}from"./2JW1kVqO.js";import{_ as ue}from"./DzkGTE_f.js";import{a as ce}from"./CKQFB7y-.js";import{_ as me}from"./D4niT1S5.js";import{_ as fe}from"./D5WQqsOS.js";import"./u7UcB_QC.js";import"./DzYjEwu-.js";import"./dFmuWxxS.js";import"./DSVvpdtU.js";import"./CpbJA_Yo.js";import"./Dyiypbbf.js";import"./C0slPdtJ.js";import"./DrNzaRVb.js";import"./BmJUPCHI.js";import"./4NTp6poK.js";import"./Dt9i9jqR.js";import"./Cju8d_ol.js";import"./G70JlcRF.js";import"./B6ZzWXlS.js";import"./XrH67GZa.js";import"./C6Y-ieo6.js";import"./M4MaEzH8.js";import"./Dcwf4i-Q.js";import"./Cl8ifu-L.js";import"./BiHGAfji.js";import"./DRJGPWDD.js";import"./D82b0vAr.js";import"./Bgacd_5T.js";import"./DifnNECd.js";import"./Vcq4gwWv.js";const pe={class:"h-full flex flex-col"},_e={key:0,class:"h-full min-h-32 flex flex-col items-center justify-center text-dimmed text-sm"},ve=["onContextmenu"],ye={class:"truncate"},ke={class:"flex items-center gap-2"},xe={class:"flex justify-end gap-2"},he={class:"flex items-center gap-2"},$e={class:"flex justify-end gap-2"},ge={class:"flex items-center gap-2 text-error"},be={key:0,class:"text-sm text-dimmed mt-1"},we={class:"flex justify-end gap-2"},Ce=E({__name:"FileTree",props:{skillName:{},files:{},selectedPath:{}},emits:["select","refresh"],setup(U,{emit:P}){const p=U,$=P,m=I();function l(y,e=""){return y.map(s=>{const S=e?`${e}/${s.path}`:s.path,C={id:S,label:s.name,path:S,type:s.type,defaultExpanded:!0};return s.type==="directory"?C.children=s.children?l(s.children,S):[]:s.name.endsWith(".py")?C.icon="i-lucide-file-code":s.name.endsWith(".md")?C.icon="i-lucide-file-text":s.name.endsWith(".json")?C.icon="i-lucide-file-json":C.icon="i-lucide-file",C})}const k=D(()=>l(p.files)),i=b(null),x=b(!1),_=b(!1),c=b(!1),f=b(""),j=D(()=>[[{label:"New File",icon:"i-lucide-file-plus",onSelect:()=>{f.value="",x.value=!0}},{label:"New Folder",icon:"i-lucide-folder-plus",onSelect:()=>{f.value="",_.value=!0}}],[{label:"Delete",icon:"i-lucide-trash-2",color:"error",onSelect:()=>{i.value&&i.value.label!=="SKILL.md"&&(c.value=!0)}}]]);function h(y,e){e.type==="file"&&$("select",e.path)}async function a(){if(!f.value.trim())return;let y=f.value.trim();y.includes(".")||(y+=".py");const e=i.value?.type==="directory"?i.value.path:"",s=e?`${e}/${y}`:y;try{await $fetch(`/api/skills/${p.skillName}/files/create`,{method:"POST",body:{path:s,type:"file"}}),$("refresh"),$("select",s),m.add({title:`Created ${y}`,color:"success"})}catch{m.add({title:"Failed to create file",color:"error"})}x.value=!1,f.value=""}async function v(){if(!f.value.trim())return;const y=f.value.trim(),e=i.value?.type==="directory"?i.value.path:"",s=e?`${e}/${y}`:y;try{await $fetch(`/api/skills/${p.skillName}/files/create`,{method:"POST",body:{path:s,type:"directory"}}),$("refresh"),m.add({title:`Created ${y}/`,color:"success"})}catch{m.add({title:"Failed to create folder",color:"error"})}_.value=!1,f.value=""}async function V(){if(i.value){try{await $fetch(`/api/skills/${p.skillName}/files/delete`,{method:"POST",body:{path:i.value.path}}),$("refresh"),m.add({title:`Deleted ${i.value.label}`,color:"success"})}catch{m.add({title:"Failed to delete",color:"error"})}c.value=!1}}return(y,e)=>{const s=K,S=ie,C=re,O=q,F=L,M=de,R=G;return u(),N("div",pe,[n(C,{items:t(j)},{default:o(()=>[d("div",{class:"flex-1 h-full overflow-auto p-2",onContextmenu:e[0]||(e[0]=ee(r=>i.value=null,["self"]))},[U.files.length===0?(u(),N("div",_e,[n(s,{name:"i-lucide-folder-open",class:"size-8 mx-auto mb-2 opacity-50"}),e[9]||(e[9]=d("p",null,"No files found",-1)),e[10]||(e[10]=d("p",{class:"text-xs mt-1"}," Right-click to create a file ",-1))])):(u(),g(S,{key:1,items:t(k),"get-key":r=>r.id,color:"primary","expanded-icon":"i-lucide-folder-open","collapsed-icon":"i-lucide-folder",onSelect:h},{item:o(({item:r,expanded:J})=>[d("div",{class:"flex items-center gap-2 w-full",onContextmenu:Ke=>i.value=r},[r.children?.length?(u(),g(s,{key:0,name:J?"i-lucide-folder-open":"i-lucide-folder",class:"size-4 shrink-0 text-dimmed"},null,8,["name"])):r.icon?(u(),g(s,{key:1,name:r.icon,class:"size-4 shrink-0 text-dimmed"},null,8,["name"])):(u(),g(s,{key:2,name:"i-lucide-file",class:"size-4 shrink-0 text-dimmed"})),d("span",ye,B(r.label),1)],40,ve)]),_:1},8,["items","get-key"]))],32)]),_:1},8,["items"]),n(R,{open:t(x),"onUpdate:open":e[3]||(e[3]=r=>T(x)?x.value=r:null)},{content:o(()=>[n(M,null,{header:o(()=>[d("div",ke,[n(s,{name:"i-lucide-file-plus",class:"size-5"}),e[11]||(e[11]=d("span",{class:"font-semibold"},"New File",-1))])]),footer:o(()=>[d("div",xe,[n(F,{color:"neutral",variant:"ghost",onClick:e[2]||(e[2]=r=>x.value=!1)},{default:o(()=>[...e[12]||(e[12]=[w(" Cancel ",-1)])]),_:1}),n(F,{onClick:a},{default:o(()=>[...e[13]||(e[13]=[w(" Create ",-1)])]),_:1})])]),default:o(()=>[n(O,{modelValue:t(f),"onUpdate:modelValue":e[1]||(e[1]=r=>T(f)?f.value=r:null),placeholder:"filename.py",autofocus:"",onKeyup:W(a,["enter"])},null,8,["modelValue"])]),_:1})]),_:1},8,["open"]),n(R,{open:t(_),"onUpdate:open":e[6]||(e[6]=r=>T(_)?_.value=r:null)},{content:o(()=>[n(M,null,{header:o(()=>[d("div",he,[n(s,{name:"i-lucide-folder-plus",class:"size-5"}),e[14]||(e[14]=d("span",{class:"font-semibold"},"New Folder",-1))])]),footer:o(()=>[d("div",$e,[n(F,{color:"neutral",variant:"ghost",onClick:e[5]||(e[5]=r=>_.value=!1)},{default:o(()=>[...e[15]||(e[15]=[w(" Cancel ",-1)])]),_:1}),n(F,{onClick:v},{default:o(()=>[...e[16]||(e[16]=[w(" Create ",-1)])]),_:1})])]),default:o(()=>[n(O,{modelValue:t(f),"onUpdate:modelValue":e[4]||(e[4]=r=>T(f)?f.value=r:null),placeholder:"folder-name",autofocus:"",onKeyup:W(v,["enter"])},null,8,["modelValue"])]),_:1})]),_:1},8,["open"]),n(R,{open:t(c),"onUpdate:open":e[8]||(e[8]=r=>T(c)?c.value=r:null)},{content:o(()=>[n(M,null,{header:o(()=>[d("div",ge,[n(s,{name:"i-lucide-trash-2",class:"size-5"}),e[17]||(e[17]=d("span",{class:"font-semibold"},"Delete",-1))])]),footer:o(()=>[d("div",we,[n(F,{color:"neutral",variant:"ghost",onClick:e[7]||(e[7]=r=>c.value=!1)},{default:o(()=>[...e[20]||(e[20]=[w(" Cancel ",-1)])]),_:1}),n(F,{color:"error",onClick:V},{default:o(()=>[...e[21]||(e[21]=[w(" Delete ",-1)])]),_:1})])]),default:o(()=>[d("p",null,[e[18]||(e[18]=w(" Are you sure you want to delete ",-1)),d("strong",null,B(t(i)?.label),1),e[19]||(e[19]=w("? ",-1))]),t(i)?.type==="directory"?(u(),N("p",be," This will delete all files and folders inside. ")):z("",!0)]),_:1})]),_:1},8,["open"])])}}}),Ne=Object.assign(Ce,{__name:"SkillsFileTree"}),Ue=ce(me),Se={class:"flex flex-col h-full"},Fe={class:"flex items-center justify-between px-4 py-2 border-b border-default"},ze={class:"flex items-center gap-2 text-sm text-muted"},je={key:0,class:"flex-1 flex items-center justify-center"},Pe=E({__name:"Editor",props:{skillName:{},filePath:{}},emits:["saved"],setup(U,{emit:P}){const p=U,$=P,m=I(),l=b(""),k=b(""),i=b(!0),x=b(!1),_=D(()=>l.value!==k.value),c=D(()=>{switch(p.filePath.split(".").pop()?.toLowerCase()){case"py":return"python";case"md":return"markdown";case"json":return"json";case"ts":return"typescript";case"js":return"javascript";case"yaml":case"yml":return"yaml";case"sh":case"bash":return"bash";default:return"plaintext"}});async function f(){i.value=!0;try{const a=await $fetch(`/api/skills/${p.skillName}/files/read`,{method:"POST",body:{path:p.filePath}});l.value=a.data.content,k.value=a.data.content}catch{m.add({title:"Failed to load file",color:"error"})}finally{i.value=!1}}async function j(){x.value=!0;try{await $fetch(`/api/skills/${p.skillName}/files/write`,{method:"POST",body:{path:p.filePath,content:l.value}}),k.value=l.value,m.add({title:"File saved",color:"success"}),$("saved")}catch{m.add({title:"Failed to save file",color:"error"})}finally{x.value=!1}}function h(a){(a.metaKey||a.ctrlKey)&&a.key==="s"&&(a.preventDefault(),_.value&&j())}return A(()=>{f(),window.addEventListener("keydown",h)}),te(()=>{window.removeEventListener("keydown",h)}),Z(()=>p.filePath,()=>f()),(a,v)=>{const V=K,y=H,e=L,s=Ue;return u(),N("div",Se,[d("div",Fe,[d("div",ze,[n(V,{name:"i-lucide-file-code",class:"size-4"}),d("span",null,B(U.filePath),1),t(_)?(u(),g(y,{key:0,variant:"soft",color:"warning",size:"xs"},{default:o(()=>[...v[1]||(v[1]=[w(" Modified ",-1)])]),_:1})):z("",!0)]),n(e,{size:"xs",loading:t(x),disabled:!t(_),onClick:j},{default:o(()=>[...v[2]||(v[2]=[w(" Save ",-1)])]),_:1},8,["loading","disabled"])]),t(i)?(u(),N("div",je,[n(V,{name:"i-lucide-loader-2",class:"size-6 animate-spin text-dimmed"})])):(u(),g(s,{key:1,modelValue:t(l),"onUpdate:modelValue":v[0]||(v[0]=S=>T(l)?l.value=S:null),language:t(c),class:"flex-1"},null,8,["modelValue","language"]))])}}}),Te=Object.assign(Pe,{__name:"SkillsEditor"}),Ve={class:"flex justify-end gap-2"},Me=E({__name:"RenameModal",props:{open:{type:Boolean},currentName:{}},emits:["update:open","renamed"],setup(U,{emit:P}){const p=U,$=P,m=I(),l=b(p.currentName),k=b(!1);Z(()=>p.currentName,_=>{l.value=_});function i(){$("update:open",!1)}async function x(){if(!(!l.value.trim()||l.value.trim()===p.currentName)){k.value=!0;try{await $fetch(`/api/skills/${p.currentName}/rename`,{method:"POST",body:{newName:l.value.trim()}}),m.add({title:`Skill renamed to '${l.value.trim()}'`,color:"success"}),$("renamed",l.value.trim()),i()}catch(_){const c=_ instanceof Error?_.message:"Failed to rename skill";m.add({title:c,color:"error"})}finally{k.value=!1}}}return(_,c)=>{const f=q,j=fe,h=L,a=G;return u(),g(a,{open:p.open,"onUpdate:open":c[1]||(c[1]=v=>$("update:open",v))},{header:o(()=>[...c[2]||(c[2]=[d("span",{class:"font-semibold"},"Rename Skill",-1)])]),body:o(()=>[n(j,{label:"New Name"},{default:o(()=>[n(f,{modelValue:t(l),"onUpdate:modelValue":c[0]||(c[0]=v=>T(l)?l.value=v:null),placeholder:"my-skill",disabled:t(k)},null,8,["modelValue","disabled"])]),_:1})]),footer:o(()=>[d("div",Ve,[n(h,{variant:"ghost",color:"neutral",disabled:t(k),onClick:i},{default:o(()=>[...c[3]||(c[3]=[w(" Cancel ",-1)])]),_:1},8,["disabled"]),n(h,{loading:t(k),disabled:!t(l).trim()||t(l).trim()===U.currentName,onClick:x},{default:o(()=>[...c[4]||(c[4]=[w(" Rename ",-1)])]),_:1},8,["loading","disabled"])])]),_:1},8,["open"])}}}),Re=Object.assign(Me,{__name:"SkillsRenameModal"}),De={class:"flex flex-1 min-w-0"},Oe={key:0,class:"p-4 space-y-2"},Be={class:"font-medium"},Ee={key:0,class:"flex-1 flex items-center justify-center h-full"},Ie={key:1,class:"flex-1 flex items-center justify-center h-full text-dimmed"},Le={class:"text-center"},Ut=E({__name:"[name]",setup(U){const P=le(),p=oe(),$=I(),m=D(()=>P.params.name),l=b(null),k=b(!0),i=b(""),x=b(!1);async function _(){k.value=!0;try{const h=await $fetch(`/api/skills/${m.value}`);if(l.value=h.data,!i.value){const a=h.data.files.find(v=>v.name==="SKILL.md");a&&(i.value=a.path)}}catch{$.add({title:"Skill not found",color:"error"}),p.push("/skills")}finally{k.value=!1}}async function c(){if(!(!l.value||l.value.core))try{const h=await $fetch(`/api/skills/${m.value}/toggle`,{method:"POST"});l.value.active=h.data.active,$.add({title:`${m.value} ${h.data.active?"enabled":"disabled"}`,color:"success"})}catch{$.add({title:"Failed to toggle skill",color:"error"})}}function f(h){p.replace(`/skills/${h}`)}function j(){window.open(`/api/skills/${m.value}/export`,"_blank")}return A(()=>_()),(h,a)=>{const v=X,V=Y,y=Ne,e=Q,s=K,S=se,C=H,O=ue,F=L,M=Te,R=Re;return u(),N("div",De,[n(e,{id:"skill-filetree",collapsible:"",resizable:"","min-size":12,"default-size":16,"max-size":24,class:"hidden lg:flex"},{header:o(()=>[n(v,null,{title:o(()=>[...a[3]||(a[3]=[d("span",{class:"text-sm font-medium truncate"},"Files",-1)])]),_:1})]),body:o(()=>[t(k)?(u(),N("div",Oe,[(u(),N(ne,null,ae(4,r=>n(V,{key:r,class:"h-6 w-full"})),64))])):t(l)?(u(),g(y,{key:1,"skill-name":t(m),files:t(l).files,"selected-path":t(i),onSelect:a[0]||(a[0]=r=>i.value=r),onRefresh:_},null,8,["skill-name","files","selected-path"])):z("",!0)]),_:1}),n(e,{id:"skill-editor",grow:"",ui:{body:"!p-0"}},{header:o(()=>[n(v,null,{title:o(()=>[n(S,{to:"/skills",class:"text-muted hover:text-default transition-colors"},{default:o(()=>[n(s,{name:"i-lucide-arrow-left",class:"size-4"})]),_:1}),d("span",Be,B(t(m)),1),t(l)?.core?(u(),g(C,{key:0,variant:"subtle",color:"primary",size:"xs"},{default:o(()=>[...a[4]||(a[4]=[w(" Core ",-1)])]),_:1})):z("",!0),t(l)&&!t(l).active?(u(),g(C,{key:1,variant:"subtle",color:"neutral",size:"xs"},{default:o(()=>[...a[5]||(a[5]=[w(" Disabled ",-1)])]),_:1})):z("",!0)]),right:o(()=>[t(l)&&!t(l).core?(u(),g(O,{key:0,"model-value":t(l).active,size:"sm","onUpdate:modelValue":c},null,8,["model-value"])):z("",!0),t(l)&&!t(l).core?(u(),g(F,{key:1,icon:"i-lucide-pencil",variant:"ghost",color:"neutral",size:"sm",onClick:a[1]||(a[1]=r=>x.value=!0)})):z("",!0),t(l)?(u(),g(F,{key:2,icon:"i-lucide-download",variant:"ghost",color:"neutral",size:"sm",onClick:j})):z("",!0)]),_:1})]),body:o(()=>[t(k)?(u(),N("div",Ee,[n(s,{name:"i-lucide-loader-2",class:"size-6 animate-spin text-dimmed"})])):t(i)?(u(),g(M,{key:t(i),"skill-name":t(m),"file-path":t(i),onSaved:_},null,8,["skill-name","file-path"])):(u(),N("div",Ie,[d("div",Le,[n(s,{name:"i-lucide-file-code",class:"size-12 mx-auto mb-4 opacity-50"}),a[6]||(a[6]=d("p",null,"Select a file to edit",-1))])]))]),_:1}),t(l)?(u(),g(R,{key:0,open:t(x),"current-name":t(m),"onUpdate:open":a[2]||(a[2]=r=>x.value=r),onRenamed:f},null,8,["open","current-name"])):z("",!0)])}}});export{Ut as default};
@@ -1 +1 @@
1
- import{a1 as o}from"./B06CcGVK.js";function l(t,e){if(typeof t!="object"||t===null)return!1;const n=o(t,e);return n!=null&&n!==""}function u(t,e){return e?{xs:44,sm:48,md:52,lg:56,xl:60}[t]:{xs:24,sm:28,md:32,lg:36,xl:40}[t]}function f(t,e,n){const r=n?t.some(s=>l(s,n)):!1;return u(e,r)}export{f as g};
1
+ import{a1 as o}from"./Bvui1gLJ.js";function l(t,e){if(typeof t!="object"||t===null)return!1;const n=o(t,e);return n!=null&&n!==""}function u(t,e){return e?{xs:44,sm:48,md:52,lg:56,xl:60}[t]:{xs:24,sm:28,md:32,lg:36,xl:40}[t]}function f(t,e,n){const r=n?t.some(s=>l(s,n)):!1;return u(e,r)}export{f as g};
@@ -1 +1 @@
1
- import{be as g,h as o,an as u,C as d,W as p,ap as s,c as v,o as f,w as b,r as m,ab as x,af as y,a as i,$ as w,P as h}from"./B06CcGVK.js";const a={meta:"",ctrl:"",alt:"",win:"⊞",command:"⌘",shift:"⇧",control:"⌃",option:"⌥",enter:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",tab:"⇥",capslock:"⇪",arrowup:"↑",arrowright:"→",arrowdown:"↓",arrowleft:"←",pageup:"⇞",pagedown:"⇟",home:"↖",end:"↘"},K=()=>{const e=o(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),r=u({meta:" ",alt:" ",ctrl:" "});d(()=>{r.meta=e.value?a.command:"Ctrl",r.ctrl=e.value?a.control:"Ctrl",r.alt=e.value?a.option:"Alt"});function n(t){if(t)return["meta","alt","ctrl"].includes(t)?r[t]:a[t]||t}return{macOS:e,getKbdKey:n}},k=g(K),C={base:"inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase",variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{sm:"h-4 min-w-[16px] text-[10px]",md:"h-5 min-w-[20px] text-[11px]",lg:"h-6 min-w-[24px] text-[12px]"}},compoundVariants:[{color:"primary",variant:"solid",class:"text-inverted bg-primary"},{color:"secondary",variant:"solid",class:"text-inverted bg-secondary"},{color:"success",variant:"solid",class:"text-inverted bg-success"},{color:"info",variant:"solid",class:"text-inverted bg-info"},{color:"warning",variant:"solid",class:"text-inverted bg-warning"},{color:"error",variant:"solid",class:"text-inverted bg-error"},{color:"primary",variant:"outline",class:"ring ring-inset ring-primary/50 text-primary"},{color:"secondary",variant:"outline",class:"ring ring-inset ring-secondary/50 text-secondary"},{color:"success",variant:"outline",class:"ring ring-inset ring-success/50 text-success"},{color:"info",variant:"outline",class:"ring ring-inset ring-info/50 text-info"},{color:"warning",variant:"outline",class:"ring ring-inset ring-warning/50 text-warning"},{color:"error",variant:"outline",class:"ring ring-inset ring-error/50 text-error"},{color:"primary",variant:"soft",class:"text-primary bg-primary/10"},{color:"secondary",variant:"soft",class:"text-secondary bg-secondary/10"},{color:"success",variant:"soft",class:"text-success bg-success/10"},{color:"info",variant:"soft",class:"text-info bg-info/10"},{color:"warning",variant:"soft",class:"text-warning bg-warning/10"},{color:"error",variant:"soft",class:"text-error bg-error/10"},{color:"primary",variant:"subtle",class:"text-primary ring ring-inset ring-primary/25 bg-primary/10"},{color:"secondary",variant:"subtle",class:"text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"},{color:"success",variant:"subtle",class:"text-success ring ring-inset ring-success/25 bg-success/10"},{color:"info",variant:"subtle",class:"text-info ring ring-inset ring-info/25 bg-info/10"},{color:"warning",variant:"subtle",class:"text-warning ring ring-inset ring-warning/25 bg-warning/10"},{color:"error",variant:"subtle",class:"text-error ring ring-inset ring-error/25 bg-error/10"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"}],defaultVariants:{variant:"outline",color:"neutral",size:"md"}},S={__name:"UKbd",props:{as:{type:null,required:!1,default:"kbd"},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1}},setup(e){const r=e,{getKbdKey:n}=k(),t=p(),c=o(()=>s({extend:s(C),...t.ui?.kbd||{}}));return(l,q)=>(f(),v(i(h),{as:e.as,class:w(c.value({class:r.class,color:r.color,variant:r.variant,size:r.size}))},{default:b(()=>[m(l.$slots,"default",{},()=>[x(y(i(n)(e.value)),1)])]),_:3},8,["as","class"]))}};export{S as _,k as u};
1
+ import{be as g,h as o,an as u,C as d,W as p,ap as s,c as v,o as f,w as b,r as m,ab as x,af as y,a as i,$ as w,P as h}from"./Bvui1gLJ.js";const a={meta:"",ctrl:"",alt:"",win:"⊞",command:"⌘",shift:"⇧",control:"⌃",option:"⌥",enter:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",tab:"⇥",capslock:"⇪",arrowup:"↑",arrowright:"→",arrowdown:"↓",arrowleft:"←",pageup:"⇞",pagedown:"⇟",home:"↖",end:"↘"},K=()=>{const e=o(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),r=u({meta:" ",alt:" ",ctrl:" "});d(()=>{r.meta=e.value?a.command:"Ctrl",r.ctrl=e.value?a.control:"Ctrl",r.alt=e.value?a.option:"Alt"});function n(t){if(t)return["meta","alt","ctrl"].includes(t)?r[t]:a[t]||t}return{macOS:e,getKbdKey:n}},k=g(K),C={base:"inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase",variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{sm:"h-4 min-w-[16px] text-[10px]",md:"h-5 min-w-[20px] text-[11px]",lg:"h-6 min-w-[24px] text-[12px]"}},compoundVariants:[{color:"primary",variant:"solid",class:"text-inverted bg-primary"},{color:"secondary",variant:"solid",class:"text-inverted bg-secondary"},{color:"success",variant:"solid",class:"text-inverted bg-success"},{color:"info",variant:"solid",class:"text-inverted bg-info"},{color:"warning",variant:"solid",class:"text-inverted bg-warning"},{color:"error",variant:"solid",class:"text-inverted bg-error"},{color:"primary",variant:"outline",class:"ring ring-inset ring-primary/50 text-primary"},{color:"secondary",variant:"outline",class:"ring ring-inset ring-secondary/50 text-secondary"},{color:"success",variant:"outline",class:"ring ring-inset ring-success/50 text-success"},{color:"info",variant:"outline",class:"ring ring-inset ring-info/50 text-info"},{color:"warning",variant:"outline",class:"ring ring-inset ring-warning/50 text-warning"},{color:"error",variant:"outline",class:"ring ring-inset ring-error/50 text-error"},{color:"primary",variant:"soft",class:"text-primary bg-primary/10"},{color:"secondary",variant:"soft",class:"text-secondary bg-secondary/10"},{color:"success",variant:"soft",class:"text-success bg-success/10"},{color:"info",variant:"soft",class:"text-info bg-info/10"},{color:"warning",variant:"soft",class:"text-warning bg-warning/10"},{color:"error",variant:"soft",class:"text-error bg-error/10"},{color:"primary",variant:"subtle",class:"text-primary ring ring-inset ring-primary/25 bg-primary/10"},{color:"secondary",variant:"subtle",class:"text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"},{color:"success",variant:"subtle",class:"text-success ring ring-inset ring-success/25 bg-success/10"},{color:"info",variant:"subtle",class:"text-info ring ring-inset ring-info/25 bg-info/10"},{color:"warning",variant:"subtle",class:"text-warning ring ring-inset ring-warning/25 bg-warning/10"},{color:"error",variant:"subtle",class:"text-error ring ring-inset ring-error/25 bg-error/10"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"}],defaultVariants:{variant:"outline",color:"neutral",size:"md"}},S={__name:"UKbd",props:{as:{type:null,required:!1,default:"kbd"},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1}},setup(e){const r=e,{getKbdKey:n}=k(),t=p(),c=o(()=>s({extend:s(C),...t.ui?.kbd||{}}));return(l,q)=>(f(),v(i(h),{as:e.as,class:w(c.value({class:r.class,color:r.color,variant:r.variant,size:r.size}))},{default:b(()=>[m(l.$slots,"default",{},()=>[x(y(i(n)(e.value)),1)])]),_:3},8,["as","class"]))}};export{S as _,k as u};
@@ -1 +1 @@
1
- import{aq as $,W as T,aA as _,aB as C,h as P,ap as p,e as K,c as o,o as s,w as d,Z as y,M as v,aa as g,a as r,$ as c,r as u,al as x,am as m,_ as M,az as N,m as f,a1 as z,ab as k,af as w}from"./B06CcGVK.js";import{T as E,a as F,b as H,c as L,d as O}from"./CBpuaar1.js";import{_ as R}from"./CGTQGJ_c.js";const j={slots:{root:"flex items-center gap-2",list:"relative flex p-1 group",indicator:"absolute transition-[translate,width] duration-200",trigger:["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",label:"truncate",trailingBadge:"shrink-0",trailingBadgeSize:"sm",content:"focus:outline-none w-full"},variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{pill:{list:"bg-elevated rounded-lg",trigger:"grow",indicator:"rounded-md shadow-xs"},link:{list:"border-default",indicator:"rounded-full",trigger:"focus:outline-none"}},orientation:{horizontal:{root:"flex-col",list:"w-full",indicator:"left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",trigger:"justify-center"},vertical:{list:"flex-col",indicator:"top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"}},size:{xs:{trigger:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs"},sm:{trigger:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs"},md:{trigger:"px-3 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs"},lg:{trigger:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs"},xl:{trigger:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs"}}},compoundVariants:[{orientation:"horizontal",variant:"pill",class:{indicator:"inset-y-1"}},{orientation:"horizontal",variant:"link",class:{list:"border-b -mb-px",indicator:"-bottom-px h-px"}},{orientation:"vertical",variant:"pill",class:{indicator:"inset-x-1",list:"items-center"}},{orientation:"vertical",variant:"link",class:{list:"border-s -ms-px",indicator:"-start-px w-px"}},{color:"primary",variant:"pill",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"}},{color:"secondary",variant:"pill",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"}},{color:"success",variant:"pill",class:{indicator:"bg-success",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"}},{color:"info",variant:"pill",class:{indicator:"bg-info",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"}},{color:"warning",variant:"pill",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"}},{color:"error",variant:"pill",class:{indicator:"bg-error",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"}},{color:"neutral",variant:"pill",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"}},{color:"primary",variant:"link",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-primary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"}},{color:"secondary",variant:"link",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"}},{color:"success",variant:"link",class:{indicator:"bg-success",trigger:"data-[state=active]:text-success focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"}},{color:"info",variant:"link",class:{indicator:"bg-info",trigger:"data-[state=active]:text-info focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"}},{color:"warning",variant:"link",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-warning focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"}},{color:"error",variant:"link",class:{indicator:"bg-error",trigger:"data-[state=active]:text-error focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"}},{color:"neutral",variant:"link",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-highlighted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"}}],defaultVariants:{color:"primary",variant:"pill",size:"md"}},G={__name:"UTabs",props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},content:{type:Boolean,required:!1,default:!0},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:null,required:!1},defaultValue:{type:null,required:!1,default:"0"},modelValue:{type:null,required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(l,{expose:h,emit:S}){const a=l,A=S,q=$(),B=T(),I=_(C(a,"as","unmountOnHide"),A),i=P(()=>p({extend:p(j),...B.ui?.tabs||{}})({color:a.color,variant:a.variant,size:a.size,orientation:a.orientation})),b=K([]);return h({triggersRef:b}),(n,D)=>(s(),o(r(O),f(r(I),{"model-value":l.modelValue,"default-value":l.defaultValue,orientation:l.orientation,"activation-mode":l.activationMode,"data-slot":"root",class:i.value.root({class:[a.ui?.root,a.class]})}),{default:d(()=>[y(r(E),{"data-slot":"list",class:c(i.value.list({class:a.ui?.list}))},{default:d(()=>[y(r(F),{"data-slot":"indicator",class:c(i.value.indicator({class:a.ui?.indicator}))},null,8,["class"]),u(n.$slots,"list-leading"),(s(!0),v(x,null,m(l.items,(e,t)=>(s(),o(r(H),{key:t,ref_for:!0,ref:V=>b.value[t]=V,value:e.value??String(t),disabled:e.disabled,"data-slot":"trigger",class:c(i.value.trigger({class:[a.ui?.trigger,e.ui?.trigger]}))},{default:d(()=>[u(n.$slots,"leading",{item:e,index:t,ui:i.value},()=>[e.icon?(s(),o(M,{key:0,name:e.icon,"data-slot":"leadingIcon",class:c(i.value.leadingIcon({class:[a.ui?.leadingIcon,e.ui?.leadingIcon]}))},null,8,["name","class"])):e.avatar?(s(),o(N,f({key:1,size:e.ui?.leadingAvatarSize||a.ui?.leadingAvatarSize||i.value.leadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":"leadingAvatar",class:i.value.leadingAvatar({class:[a.ui?.leadingAvatar,e.ui?.leadingAvatar]})}),null,16,["size","class"])):g("",!0)]),r(z)(e,a.labelKey)||q.default?(s(),v("span",{key:0,"data-slot":"label",class:c(i.value.label({class:[a.ui?.label,e.ui?.label]}))},[u(n.$slots,"default",{item:e,index:t},()=>[k(w(r(z)(e,a.labelKey)),1)])],2)):g("",!0),u(n.$slots,"trailing",{item:e,index:t,ui:i.value},()=>[e.badge||e.badge===0?(s(),o(R,f({key:0,color:"neutral",variant:"outline",size:e.ui?.trailingBadgeSize||a.ui?.trailingBadgeSize||i.value.trailingBadgeSize()},{ref_for:!0},typeof e.badge=="string"||typeof e.badge=="number"?{label:e.badge}:e.badge,{"data-slot":"trailingBadge",class:i.value.trailingBadge({class:[a.ui?.trailingBadge,e.ui?.trailingBadge]})}),null,16,["size","class"])):g("",!0)])]),_:2},1032,["value","disabled","class"]))),128)),u(n.$slots,"list-trailing")]),_:3},8,["class"]),l.content?(s(!0),v(x,{key:0},m(l.items,(e,t)=>(s(),o(r(L),{key:t,value:e.value??String(t),"data-slot":"content",class:c(i.value.content({class:[a.ui?.content,e.ui?.content,e.class]}))},{default:d(()=>[u(n.$slots,e.slot||"content",{item:e,index:t,ui:i.value},()=>[k(w(e.content),1)])]),_:2},1032,["value","class"]))),128)):g("",!0)]),_:3},16,["model-value","default-value","orientation","activation-mode","class"]))}};export{G as _};
1
+ import{aq as $,W as T,aA as _,aB as C,h as P,ap as p,e as K,c as o,o as s,w as d,Z as y,M as v,aa as g,a as r,$ as c,r as u,al as x,am as m,_ as M,az as N,m as f,a1 as z,ab as k,af as w}from"./Bvui1gLJ.js";import{T as E,a as F,b as H,c as L,d as O}from"./C1kJTOky.js";import{_ as R}from"./2JW1kVqO.js";const j={slots:{root:"flex items-center gap-2",list:"relative flex p-1 group",indicator:"absolute transition-[translate,width] duration-200",trigger:["group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75","transition-colors"],leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",label:"truncate",trailingBadge:"shrink-0",trailingBadgeSize:"sm",content:"focus:outline-none w-full"},variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{pill:{list:"bg-elevated rounded-lg",trigger:"grow",indicator:"rounded-md shadow-xs"},link:{list:"border-default",indicator:"rounded-full",trigger:"focus:outline-none"}},orientation:{horizontal:{root:"flex-col",list:"w-full",indicator:"left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",trigger:"justify-center"},vertical:{list:"flex-col",indicator:"top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"}},size:{xs:{trigger:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs"},sm:{trigger:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs"},md:{trigger:"px-3 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs"},lg:{trigger:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs"},xl:{trigger:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs"}}},compoundVariants:[{orientation:"horizontal",variant:"pill",class:{indicator:"inset-y-1"}},{orientation:"horizontal",variant:"link",class:{list:"border-b -mb-px",indicator:"-bottom-px h-px"}},{orientation:"vertical",variant:"pill",class:{indicator:"inset-x-1",list:"items-center"}},{orientation:"vertical",variant:"link",class:{list:"border-s -ms-px",indicator:"-start-px w-px"}},{color:"primary",variant:"pill",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"}},{color:"secondary",variant:"pill",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"}},{color:"success",variant:"pill",class:{indicator:"bg-success",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"}},{color:"info",variant:"pill",class:{indicator:"bg-info",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"}},{color:"warning",variant:"pill",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"}},{color:"error",variant:"pill",class:{indicator:"bg-error",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"}},{color:"neutral",variant:"pill",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"}},{color:"primary",variant:"link",class:{indicator:"bg-primary",trigger:"data-[state=active]:text-primary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"}},{color:"secondary",variant:"link",class:{indicator:"bg-secondary",trigger:"data-[state=active]:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"}},{color:"success",variant:"link",class:{indicator:"bg-success",trigger:"data-[state=active]:text-success focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"}},{color:"info",variant:"link",class:{indicator:"bg-info",trigger:"data-[state=active]:text-info focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"}},{color:"warning",variant:"link",class:{indicator:"bg-warning",trigger:"data-[state=active]:text-warning focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"}},{color:"error",variant:"link",class:{indicator:"bg-error",trigger:"data-[state=active]:text-error focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"}},{color:"neutral",variant:"link",class:{indicator:"bg-inverted",trigger:"data-[state=active]:text-highlighted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"}}],defaultVariants:{color:"primary",variant:"pill",size:"md"}},G={__name:"UTabs",props:{as:{type:null,required:!1},items:{type:Array,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},content:{type:Boolean,required:!1,default:!0},labelKey:{type:null,required:!1,default:"label"},class:{type:null,required:!1},ui:{type:null,required:!1},defaultValue:{type:null,required:!1,default:"0"},modelValue:{type:null,required:!1},activationMode:{type:String,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:["update:modelValue"],setup(l,{expose:h,emit:S}){const a=l,A=S,q=$(),B=T(),I=_(C(a,"as","unmountOnHide"),A),i=P(()=>p({extend:p(j),...B.ui?.tabs||{}})({color:a.color,variant:a.variant,size:a.size,orientation:a.orientation})),b=K([]);return h({triggersRef:b}),(n,D)=>(s(),o(r(O),f(r(I),{"model-value":l.modelValue,"default-value":l.defaultValue,orientation:l.orientation,"activation-mode":l.activationMode,"data-slot":"root",class:i.value.root({class:[a.ui?.root,a.class]})}),{default:d(()=>[y(r(E),{"data-slot":"list",class:c(i.value.list({class:a.ui?.list}))},{default:d(()=>[y(r(F),{"data-slot":"indicator",class:c(i.value.indicator({class:a.ui?.indicator}))},null,8,["class"]),u(n.$slots,"list-leading"),(s(!0),v(x,null,m(l.items,(e,t)=>(s(),o(r(H),{key:t,ref_for:!0,ref:V=>b.value[t]=V,value:e.value??String(t),disabled:e.disabled,"data-slot":"trigger",class:c(i.value.trigger({class:[a.ui?.trigger,e.ui?.trigger]}))},{default:d(()=>[u(n.$slots,"leading",{item:e,index:t,ui:i.value},()=>[e.icon?(s(),o(M,{key:0,name:e.icon,"data-slot":"leadingIcon",class:c(i.value.leadingIcon({class:[a.ui?.leadingIcon,e.ui?.leadingIcon]}))},null,8,["name","class"])):e.avatar?(s(),o(N,f({key:1,size:e.ui?.leadingAvatarSize||a.ui?.leadingAvatarSize||i.value.leadingAvatarSize()},{ref_for:!0},e.avatar,{"data-slot":"leadingAvatar",class:i.value.leadingAvatar({class:[a.ui?.leadingAvatar,e.ui?.leadingAvatar]})}),null,16,["size","class"])):g("",!0)]),r(z)(e,a.labelKey)||q.default?(s(),v("span",{key:0,"data-slot":"label",class:c(i.value.label({class:[a.ui?.label,e.ui?.label]}))},[u(n.$slots,"default",{item:e,index:t},()=>[k(w(r(z)(e,a.labelKey)),1)])],2)):g("",!0),u(n.$slots,"trailing",{item:e,index:t,ui:i.value},()=>[e.badge||e.badge===0?(s(),o(R,f({key:0,color:"neutral",variant:"outline",size:e.ui?.trailingBadgeSize||a.ui?.trailingBadgeSize||i.value.trailingBadgeSize()},{ref_for:!0},typeof e.badge=="string"||typeof e.badge=="number"?{label:e.badge}:e.badge,{"data-slot":"trailingBadge",class:i.value.trailingBadge({class:[a.ui?.trailingBadge,e.ui?.trailingBadge]})}),null,16,["size","class"])):g("",!0)])]),_:2},1032,["value","disabled","class"]))),128)),u(n.$slots,"list-trailing")]),_:3},8,["class"]),l.content?(s(!0),v(x,{key:0},m(l.items,(e,t)=>(s(),o(r(L),{key:t,value:e.value??String(t),"data-slot":"content",class:c(i.value.content({class:[a.ui?.content,e.ui?.content,e.class]}))},{default:d(()=>[u(n.$slots,e.slot||"content",{item:e,index:t,ui:i.value},()=>[k(w(e.content),1)])]),_:2},1032,["value","class"]))),128)):g("",!0)]),_:3},16,["model-value","default-value","orientation","activation-mode","class"]))}};export{G as _};
@@ -1 +1 @@
1
- import{u as b}from"./B0v0agy0.js";import{d as y,h as l,a4 as I,C as g,a5 as F,c as h,o as w,w as u,Z as C,a as r,P as K,r as S,B}from"./B06CcGVK.js";import{i as T,g as q,w as R,f as x}from"./olSL1K5t.js";var _=y({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(d){const n=d,a=T(),f=b(),i=l(()=>n.tabStopId||f),c=l(()=>a.currentTabStopId.value===i.value),{getItems:p,CollectionItem:m}=I();g(()=>{n.focusable&&a.onFocusableItemAdd()}),F(()=>{n.focusable&&a.onFocusableItemRemove()});function v(e){if(e.key==="Tab"&&e.shiftKey){a.onItemShiftTab();return}if(e.target!==e.currentTarget)return;const t=q(e,a.orientation.value,a.dir.value);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!n.allowShiftKey&&e.shiftKey)return;e.preventDefault();let o=[...p().map(s=>s.ref).filter(s=>s.dataset.disabled!=="")];if(t==="last")o.reverse();else if(t==="prev"||t==="next"){t==="prev"&&o.reverse();const s=o.indexOf(e.currentTarget);o=a.loop.value?R(o,s+1):o.slice(s+1)}B(()=>x(o))}}return(e,t)=>(w(),h(r(m),null,{default:u(()=>[C(r(K),{tabindex:c.value?0:-1,"data-orientation":r(a).orientation.value,"data-active":e.active?"":void 0,"data-disabled":e.focusable?void 0:"",as:e.as,"as-child":e.asChild,onMousedown:t[0]||(t[0]=o=>{e.focusable?r(a).onItemFocus(i.value):o.preventDefault()}),onFocus:t[1]||(t[1]=o=>r(a).onItemFocus(i.value)),onKeydown:v},{default:u(()=>[S(e.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),M=_;export{M as R};
1
+ import{u as b}from"./Dyiypbbf.js";import{d as y,h as l,a4 as I,C as g,a5 as F,c as h,o as w,w as u,Z as C,a as r,P as K,r as S,B}from"./Bvui1gLJ.js";import{i as T,g as q,w as R,f as x}from"./C0slPdtJ.js";var _=y({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(d){const n=d,a=T(),f=b(),i=l(()=>n.tabStopId||f),c=l(()=>a.currentTabStopId.value===i.value),{getItems:p,CollectionItem:m}=I();g(()=>{n.focusable&&a.onFocusableItemAdd()}),F(()=>{n.focusable&&a.onFocusableItemRemove()});function v(e){if(e.key==="Tab"&&e.shiftKey){a.onItemShiftTab();return}if(e.target!==e.currentTarget)return;const t=q(e,a.orientation.value,a.dir.value);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!n.allowShiftKey&&e.shiftKey)return;e.preventDefault();let o=[...p().map(s=>s.ref).filter(s=>s.dataset.disabled!=="")];if(t==="last")o.reverse();else if(t==="prev"||t==="next"){t==="prev"&&o.reverse();const s=o.indexOf(e.currentTarget);o=a.loop.value?R(o,s+1):o.slice(s+1)}B(()=>x(o))}}return(e,t)=>(w(),h(r(m),null,{default:u(()=>[C(r(K),{tabindex:c.value?0:-1,"data-orientation":r(a).orientation.value,"data-active":e.active?"":void 0,"data-disabled":e.focusable?void 0:"",as:e.as,"as-child":e.asChild,onMousedown:t[0]||(t[0]=o=>{e.focusable?r(a).onItemFocus(i.value):o.preventDefault()}),onFocus:t[1]||(t[1]=o=>r(a).onItemFocus(i.value)),onKeydown:v},{default:u(()=>[S(e.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),M=_;export{M as R};
@@ -1,4 +1,4 @@
1
- import{X as Tt,c as M,i as Ot,a as Pt,D as Q,e as H,b as J,g as F,k as E,j as Nt,u as Ct,v as ai,s as D,h as ri,w as hi,n as li,q as At,r as jt,t as Et}from"./CTXxmwx3.js";import{d as Dt,ar as $t,h as Bt,e as Rt,M as Lt,C as Ht,B as Ft,a5 as It,f as I,o as Xt}from"./B06CcGVK.js";var K=Math.PI,tt=2*K,N=1e-6,_i=tt-N;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function lt(){return new it}it.prototype=lt.prototype={constructor:it,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,e,n){this._+="Q"+ +t+","+ +i+","+(this._x1=+e)+","+(this._y1=+n)},bezierCurveTo:function(t,i,e,n,s,o){this._+="C"+ +t+","+ +i+","+ +e+","+ +n+","+(this._x1=+s)+","+(this._y1=+o)},arcTo:function(t,i,e,n,s){t=+t,i=+i,e=+e,n=+n,s=+s;var o=this._x1,r=this._y1,a=e-t,h=n-i,u=o-t,_=r-i,l=u*u+_*_;if(s<0)throw new Error("negative radius: "+s);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(l>N)if(!(Math.abs(_*a-h*u)>N)||!s)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var c=e-o,d=n-r,x=a*a+h*h,m=c*c+d*d,f=Math.sqrt(x),y=Math.sqrt(l),v=s*Math.tan((K-Math.acos((x+l-m)/(2*f*y)))/2),p=v/y,b=v/f;Math.abs(p-1)>N&&(this._+="L"+(t+p*u)+","+(i+p*_)),this._+="A"+s+","+s+",0,0,"+ +(_*c>u*d)+","+(this._x1=t+b*a)+","+(this._y1=i+b*h)}},arc:function(t,i,e,n,s,o){t=+t,i=+i,e=+e,o=!!o;var r=e*Math.cos(n),a=e*Math.sin(n),h=t+r,u=i+a,_=1^o,l=o?n-s:s-n;if(e<0)throw new Error("negative radius: "+e);this._x1===null?this._+="M"+h+","+u:(Math.abs(this._x1-h)>N||Math.abs(this._y1-u)>N)&&(this._+="L"+h+","+u),e&&(l<0&&(l=l%tt+tt),l>_i?this._+="A"+e+","+e+",0,1,"+_+","+(t-r)+","+(i-a)+"A"+e+","+e+",0,1,"+_+","+(this._x1=h)+","+(this._y1=u):l>N&&(this._+="A"+e+","+e+",0,"+ +(l>=K)+","+_+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=i+e*Math.sin(s))))},rect:function(t,i,e,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +e+"v"+ +n+"h"+-e+"Z"},toString:function(){return this._}};function k(t){return function(){return t}}var Ji=Math.abs,Ki=Math.atan2,te=Math.cos,ie=Math.max,ee=Math.min,ne=Math.sin,se=Math.sqrt,vt=1e-12,_t=Math.PI,dt=_t/2,oe=2*_t;function ae(t){return t>1?0:t<-1?_t:Math.acos(t)}function re(t){return t>=1?dt:t<=-1?-dt:Math.asin(t)}function Yt(t){this._context=t}Yt.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function ct(t){return new Yt(t)}function zt(t){return t[0]}function Gt(t){return t[1]}function Vt(){var t=zt,i=Gt,e=k(!0),n=null,s=ct,o=null;function r(a){var h,u=a.length,_,l=!1,c;for(n==null&&(o=s(c=lt())),h=0;h<=u;++h)!(h<u&&e(_=a[h],h,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(_,h,a),+i(_,h,a));if(c)return o=null,c+""||null}return r.x=function(a){return arguments.length?(t=typeof a=="function"?a:k(+a),r):t},r.y=function(a){return arguments.length?(i=typeof a=="function"?a:k(+a),r):i},r.defined=function(a){return arguments.length?(e=typeof a=="function"?a:k(!!a),r):e},r.curve=function(a){return arguments.length?(s=a,n!=null&&(o=s(n)),r):s},r.context=function(a){return arguments.length?(a==null?n=o=null:o=s(n=a),r):n},r}function ci(){var t=zt,i=null,e=k(0),n=Gt,s=k(!0),o=null,r=ct,a=null;function h(_){var l,c,d,x=_.length,m,f=!1,y,v=new Array(x),p=new Array(x);for(o==null&&(a=r(y=lt())),l=0;l<=x;++l){if(!(l<x&&s(m=_[l],l,_))===f)if(f=!f)c=l,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=l-1;d>=c;--d)a.point(v[d],p[d]);a.lineEnd(),a.areaEnd()}f&&(v[l]=+t(m,l,_),p[l]=+e(m,l,_),a.point(i?+i(m,l,_):v[l],n?+n(m,l,_):p[l]))}if(y)return a=null,y+""||null}function u(){return Vt().defined(s).curve(r).context(o)}return h.x=function(_){return arguments.length?(t=typeof _=="function"?_:k(+_),i=null,h):t},h.x0=function(_){return arguments.length?(t=typeof _=="function"?_:k(+_),h):t},h.x1=function(_){return arguments.length?(i=_==null?null:typeof _=="function"?_:k(+_),h):i},h.y=function(_){return arguments.length?(e=typeof _=="function"?_:k(+_),n=null,h):e},h.y0=function(_){return arguments.length?(e=typeof _=="function"?_:k(+_),h):e},h.y1=function(_){return arguments.length?(n=_==null?null:typeof _=="function"?_:k(+_),h):n},h.lineX0=h.lineY0=function(){return u().x(t).y(e)},h.lineY1=function(){return u().x(t).y(n)},h.lineX1=function(){return u().x(i).y(e)},h.defined=function(_){return arguments.length?(s=typeof _=="function"?_:k(!!_),h):s},h.curve=function(_){return arguments.length?(r=_,o!=null&&(a=r(o)),h):r},h.context=function(_){return arguments.length?(_==null?o=a=null:a=r(o=_),h):o},h}function w(){}function X(t,i,e){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+i)/6,(t._y0+4*t._y1+e)/6)}function V(t){this._context=t}V.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:X(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:X(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function ui(t){return new V(t)}function Zt(t){this._context=t}Zt.prototype={areaStart:w,areaEnd:w,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:X(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function fi(t){return new Zt(t)}function qt(t){this._context=t}qt.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 3:this._point=4;default:X(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function pi(t){return new qt(t)}function Wt(t,i){this._basis=new V(t),this._beta=i}Wt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,e=t.length-1;if(e>0)for(var n=t[0],s=i[0],o=t[e]-n,r=i[e]-s,a=-1,h;++a<=e;)h=a/e,this._basis.point(this._beta*t[a]+(1-this._beta)*(n+h*o),this._beta*i[a]+(1-this._beta)*(s+h*r));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const yi=(function t(i){function e(n){return i===1?new V(n):new Wt(n,i)}return e.beta=function(n){return t(+n)},e})(.85);function Y(t,i,e){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-i),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function ut(t,i){this._context=t,this._k=(1-i)/6}ut.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:Y(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:Y(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const vi=(function t(i){function e(n){return new ut(n,i)}return e.tension=function(n){return t(+n)},e})(0);function ft(t,i){this._context=t,this._k=(1-i)/6}ft.prototype={areaStart:w,areaEnd:w,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:Y(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const di=(function t(i){function e(n){return new ft(n,i)}return e.tension=function(n){return t(+n)},e})(0);function pt(t,i){this._context=t,this._k=(1-i)/6}pt.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,i){switch(t=+t,i=+i,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:Y(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const xi=(function t(i){function e(n){return new pt(n,i)}return e.tension=function(n){return t(+n)},e})(0);function yt(t,i,e){var n=t._x1,s=t._y1,o=t._x2,r=t._y2;if(t._l01_a>vt){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/h,s=(s*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>vt){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,_=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-i*t._l12_2a)/_,r=(r*u+t._y1*t._l23_2a-e*t._l12_2a)/_}t._context.bezierCurveTo(n,s,o,r,t._x2,t._y2)}function Qt(t,i){this._context=t,this._alpha=i}Qt.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,i){if(t=+t,i=+i,this._point){var e=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:yt(this,t,i);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=i}};const gi=(function t(i){function e(n){return i?new Qt(n,i):new ut(n,0)}return e.alpha=function(n){return t(+n)},e})(.5);function Ut(t,i){this._context=t,this._alpha=i}Ut.prototype={areaStart:w,areaEnd:w,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,i){if(t=+t,i=+i,this._point){var e=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:yt(this,t,i);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=i}};const bi=(function t(i){function e(n){return i?new Ut(n,i):new ft(n,0)}return e.alpha=function(n){return t(+n)},e})(.5);function Jt(t,i){this._context=t,this._alpha=i}Jt.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,i){if(t=+t,i=+i,this._point){var e=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:yt(this,t,i);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=i}};const mi=(function t(i){function e(n){return i?new Jt(n,i):new pt(n,0)}return e.alpha=function(n){return t(+n)},e})(.5);function Kt(t){this._context=t}Kt.prototype={areaStart:w,areaEnd:w,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function ki(t){return new Kt(t)}function xt(t){return t<0?-1:1}function gt(t,i,e){var n=t._x1-t._x0,s=i-t._x1,o=(t._y1-t._y0)/(n||s<0&&-0),r=(e-t._y1)/(s||n<0&&-0),a=(o*s+r*n)/(n+s);return(xt(o)+xt(r))*Math.min(Math.abs(o),Math.abs(r),.5*Math.abs(a))||0}function bt(t,i){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-i)/2:i}function U(t,i,e){var n=t._x0,s=t._y0,o=t._x1,r=t._y1,a=(o-n)/3;t._context.bezierCurveTo(n+a,s+a*i,o-a,r-a*e,o,r)}function z(t){this._context=t}z.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:U(this,this._t0,bt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var e=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,U(this,bt(this,e=gt(this,t,i)),e);break;default:U(this,this._t0,e=gt(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=e}}};function ti(t){this._context=new ii(t)}(ti.prototype=Object.create(z.prototype)).point=function(t,i){z.prototype.point.call(this,i,t)};function ii(t){this._context=t}ii.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,e,n,s,o){this._context.bezierCurveTo(i,t,n,e,o,s)}};function Si(t){return new z(t)}function wi(t){return new ti(t)}function ei(t){this._context=t}ei.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),e===2)this._context.lineTo(t[1],i[1]);else for(var n=mt(t),s=mt(i),o=0,r=1;r<e;++o,++r)this._context.bezierCurveTo(n[0][o],s[0][o],n[1][o],s[1][o],t[r],i[r]);(this._line||this._line!==0&&e===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}};function mt(t){var i,e=t.length-1,n,s=new Array(e),o=new Array(e),r=new Array(e);for(s[0]=0,o[0]=2,r[0]=t[0]+2*t[1],i=1;i<e-1;++i)s[i]=1,o[i]=4,r[i]=4*t[i]+2*t[i+1];for(s[e-1]=2,o[e-1]=7,r[e-1]=8*t[e-1]+t[e],i=1;i<e;++i)n=s[i]/o[i-1],o[i]-=n,r[i]-=n*r[i-1];for(s[e-1]=r[e-1]/o[e-1],i=e-2;i>=0;--i)s[i]=(r[i]-s[i+1])/o[i];for(o[e-1]=(t[e]+s[e-1])/2,i=0;i<e-1;++i)o[i]=2*t[i+1]-s[i+1];return[s,o]}function Mi(t){return new ei(t)}function Z(t,i){this._context=t,this._t=i}Z.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,i)}break}}this._x=t,this._y=i}};function Ti(t){return new Z(t,.5)}function Oi(t){return new Z(t,0)}function Pi(t){return new Z(t,1)}function kt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),e.push.apply(e,n)}return e}function Ni(t){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?kt(Object(e),!0).forEach(function(n){Ci(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):kt(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function $(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(i){return typeof i}:$=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$(t)}function Ci(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function G(){return G=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},G.apply(this,arguments)}function Ai(t,i){if(t){if(typeof t=="string")return St(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return St(t,i)}}function St(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}function ni(t,i){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Ai(t))||i){e&&(t=e);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(h){throw h},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{X as Tt,c as M,i as Ot,a as Pt,D as Q,e as H,b as J,g as F,k as E,j as Nt,u as Ct,v as ai,s as D,h as ri,w as hi,n as li,q as At,r as jt,t as Et}from"./DiEO7ZFr.js";import{d as Dt,ar as $t,h as Bt,e as Rt,M as Lt,C as Ht,B as Ft,a5 as It,f as I,o as Xt}from"./Bvui1gLJ.js";var K=Math.PI,tt=2*K,N=1e-6,_i=tt-N;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function lt(){return new it}it.prototype=lt.prototype={constructor:it,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,e,n){this._+="Q"+ +t+","+ +i+","+(this._x1=+e)+","+(this._y1=+n)},bezierCurveTo:function(t,i,e,n,s,o){this._+="C"+ +t+","+ +i+","+ +e+","+ +n+","+(this._x1=+s)+","+(this._y1=+o)},arcTo:function(t,i,e,n,s){t=+t,i=+i,e=+e,n=+n,s=+s;var o=this._x1,r=this._y1,a=e-t,h=n-i,u=o-t,_=r-i,l=u*u+_*_;if(s<0)throw new Error("negative radius: "+s);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(l>N)if(!(Math.abs(_*a-h*u)>N)||!s)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var c=e-o,d=n-r,x=a*a+h*h,m=c*c+d*d,f=Math.sqrt(x),y=Math.sqrt(l),v=s*Math.tan((K-Math.acos((x+l-m)/(2*f*y)))/2),p=v/y,b=v/f;Math.abs(p-1)>N&&(this._+="L"+(t+p*u)+","+(i+p*_)),this._+="A"+s+","+s+",0,0,"+ +(_*c>u*d)+","+(this._x1=t+b*a)+","+(this._y1=i+b*h)}},arc:function(t,i,e,n,s,o){t=+t,i=+i,e=+e,o=!!o;var r=e*Math.cos(n),a=e*Math.sin(n),h=t+r,u=i+a,_=1^o,l=o?n-s:s-n;if(e<0)throw new Error("negative radius: "+e);this._x1===null?this._+="M"+h+","+u:(Math.abs(this._x1-h)>N||Math.abs(this._y1-u)>N)&&(this._+="L"+h+","+u),e&&(l<0&&(l=l%tt+tt),l>_i?this._+="A"+e+","+e+",0,1,"+_+","+(t-r)+","+(i-a)+"A"+e+","+e+",0,1,"+_+","+(this._x1=h)+","+(this._y1=u):l>N&&(this._+="A"+e+","+e+",0,"+ +(l>=K)+","+_+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=i+e*Math.sin(s))))},rect:function(t,i,e,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +e+"v"+ +n+"h"+-e+"Z"},toString:function(){return this._}};function k(t){return function(){return t}}var Ji=Math.abs,Ki=Math.atan2,te=Math.cos,ie=Math.max,ee=Math.min,ne=Math.sin,se=Math.sqrt,vt=1e-12,_t=Math.PI,dt=_t/2,oe=2*_t;function ae(t){return t>1?0:t<-1?_t:Math.acos(t)}function re(t){return t>=1?dt:t<=-1?-dt:Math.asin(t)}function Yt(t){this._context=t}Yt.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function ct(t){return new Yt(t)}function zt(t){return t[0]}function Gt(t){return t[1]}function Vt(){var t=zt,i=Gt,e=k(!0),n=null,s=ct,o=null;function r(a){var h,u=a.length,_,l=!1,c;for(n==null&&(o=s(c=lt())),h=0;h<=u;++h)!(h<u&&e(_=a[h],h,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(_,h,a),+i(_,h,a));if(c)return o=null,c+""||null}return r.x=function(a){return arguments.length?(t=typeof a=="function"?a:k(+a),r):t},r.y=function(a){return arguments.length?(i=typeof a=="function"?a:k(+a),r):i},r.defined=function(a){return arguments.length?(e=typeof a=="function"?a:k(!!a),r):e},r.curve=function(a){return arguments.length?(s=a,n!=null&&(o=s(n)),r):s},r.context=function(a){return arguments.length?(a==null?n=o=null:o=s(n=a),r):n},r}function ci(){var t=zt,i=null,e=k(0),n=Gt,s=k(!0),o=null,r=ct,a=null;function h(_){var l,c,d,x=_.length,m,f=!1,y,v=new Array(x),p=new Array(x);for(o==null&&(a=r(y=lt())),l=0;l<=x;++l){if(!(l<x&&s(m=_[l],l,_))===f)if(f=!f)c=l,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=l-1;d>=c;--d)a.point(v[d],p[d]);a.lineEnd(),a.areaEnd()}f&&(v[l]=+t(m,l,_),p[l]=+e(m,l,_),a.point(i?+i(m,l,_):v[l],n?+n(m,l,_):p[l]))}if(y)return a=null,y+""||null}function u(){return Vt().defined(s).curve(r).context(o)}return h.x=function(_){return arguments.length?(t=typeof _=="function"?_:k(+_),i=null,h):t},h.x0=function(_){return arguments.length?(t=typeof _=="function"?_:k(+_),h):t},h.x1=function(_){return arguments.length?(i=_==null?null:typeof _=="function"?_:k(+_),h):i},h.y=function(_){return arguments.length?(e=typeof _=="function"?_:k(+_),n=null,h):e},h.y0=function(_){return arguments.length?(e=typeof _=="function"?_:k(+_),h):e},h.y1=function(_){return arguments.length?(n=_==null?null:typeof _=="function"?_:k(+_),h):n},h.lineX0=h.lineY0=function(){return u().x(t).y(e)},h.lineY1=function(){return u().x(t).y(n)},h.lineX1=function(){return u().x(i).y(e)},h.defined=function(_){return arguments.length?(s=typeof _=="function"?_:k(!!_),h):s},h.curve=function(_){return arguments.length?(r=_,o!=null&&(a=r(o)),h):r},h.context=function(_){return arguments.length?(_==null?o=a=null:a=r(o=_),h):o},h}function w(){}function X(t,i,e){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+i)/6,(t._y0+4*t._y1+e)/6)}function V(t){this._context=t}V.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:X(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:X(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function ui(t){return new V(t)}function Zt(t){this._context=t}Zt.prototype={areaStart:w,areaEnd:w,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:X(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function fi(t){return new Zt(t)}function qt(t){this._context=t}qt.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 3:this._point=4;default:X(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function pi(t){return new qt(t)}function Wt(t,i){this._basis=new V(t),this._beta=i}Wt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,e=t.length-1;if(e>0)for(var n=t[0],s=i[0],o=t[e]-n,r=i[e]-s,a=-1,h;++a<=e;)h=a/e,this._basis.point(this._beta*t[a]+(1-this._beta)*(n+h*o),this._beta*i[a]+(1-this._beta)*(s+h*r));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const yi=(function t(i){function e(n){return i===1?new V(n):new Wt(n,i)}return e.beta=function(n){return t(+n)},e})(.85);function Y(t,i,e){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-i),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function ut(t,i){this._context=t,this._k=(1-i)/6}ut.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:Y(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:Y(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const vi=(function t(i){function e(n){return new ut(n,i)}return e.tension=function(n){return t(+n)},e})(0);function ft(t,i){this._context=t,this._k=(1-i)/6}ft.prototype={areaStart:w,areaEnd:w,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:Y(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const di=(function t(i){function e(n){return new ft(n,i)}return e.tension=function(n){return t(+n)},e})(0);function pt(t,i){this._context=t,this._k=(1-i)/6}pt.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,i){switch(t=+t,i=+i,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:Y(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const xi=(function t(i){function e(n){return new pt(n,i)}return e.tension=function(n){return t(+n)},e})(0);function yt(t,i,e){var n=t._x1,s=t._y1,o=t._x2,r=t._y2;if(t._l01_a>vt){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/h,s=(s*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>vt){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,_=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-i*t._l12_2a)/_,r=(r*u+t._y1*t._l23_2a-e*t._l12_2a)/_}t._context.bezierCurveTo(n,s,o,r,t._x2,t._y2)}function Qt(t,i){this._context=t,this._alpha=i}Qt.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,i){if(t=+t,i=+i,this._point){var e=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:yt(this,t,i);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=i}};const gi=(function t(i){function e(n){return i?new Qt(n,i):new ut(n,0)}return e.alpha=function(n){return t(+n)},e})(.5);function Ut(t,i){this._context=t,this._alpha=i}Ut.prototype={areaStart:w,areaEnd:w,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,i){if(t=+t,i=+i,this._point){var e=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:yt(this,t,i);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=i}};const bi=(function t(i){function e(n){return i?new Ut(n,i):new ft(n,0)}return e.alpha=function(n){return t(+n)},e})(.5);function Jt(t,i){this._context=t,this._alpha=i}Jt.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,i){if(t=+t,i=+i,this._point){var e=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:yt(this,t,i);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=i}};const mi=(function t(i){function e(n){return i?new Jt(n,i):new pt(n,0)}return e.alpha=function(n){return t(+n)},e})(.5);function Kt(t){this._context=t}Kt.prototype={areaStart:w,areaEnd:w,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function ki(t){return new Kt(t)}function xt(t){return t<0?-1:1}function gt(t,i,e){var n=t._x1-t._x0,s=i-t._x1,o=(t._y1-t._y0)/(n||s<0&&-0),r=(e-t._y1)/(s||n<0&&-0),a=(o*s+r*n)/(n+s);return(xt(o)+xt(r))*Math.min(Math.abs(o),Math.abs(r),.5*Math.abs(a))||0}function bt(t,i){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-i)/2:i}function U(t,i,e){var n=t._x0,s=t._y0,o=t._x1,r=t._y1,a=(o-n)/3;t._context.bezierCurveTo(n+a,s+a*i,o-a,r-a*e,o,r)}function z(t){this._context=t}z.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:U(this,this._t0,bt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var e=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,U(this,bt(this,e=gt(this,t,i)),e);break;default:U(this,this._t0,e=gt(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=e}}};function ti(t){this._context=new ii(t)}(ti.prototype=Object.create(z.prototype)).point=function(t,i){z.prototype.point.call(this,i,t)};function ii(t){this._context=t}ii.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,e,n,s,o){this._context.bezierCurveTo(i,t,n,e,o,s)}};function Si(t){return new z(t)}function wi(t){return new ti(t)}function ei(t){this._context=t}ei.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),e===2)this._context.lineTo(t[1],i[1]);else for(var n=mt(t),s=mt(i),o=0,r=1;r<e;++o,++r)this._context.bezierCurveTo(n[0][o],s[0][o],n[1][o],s[1][o],t[r],i[r]);(this._line||this._line!==0&&e===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}};function mt(t){var i,e=t.length-1,n,s=new Array(e),o=new Array(e),r=new Array(e);for(s[0]=0,o[0]=2,r[0]=t[0]+2*t[1],i=1;i<e-1;++i)s[i]=1,o[i]=4,r[i]=4*t[i]+2*t[i+1];for(s[e-1]=2,o[e-1]=7,r[e-1]=8*t[e-1]+t[e],i=1;i<e;++i)n=s[i]/o[i-1],o[i]-=n,r[i]-=n*r[i-1];for(s[e-1]=r[e-1]/o[e-1],i=e-2;i>=0;--i)s[i]=(r[i]-s[i+1])/o[i];for(o[e-1]=(t[e]+s[e-1])/2,i=0;i<e-1;++i)o[i]=2*t[i+1]-s[i+1];return[s,o]}function Mi(t){return new ei(t)}function Z(t,i){this._context=t,this._t=i}Z.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,i)}break}}this._x=t,this._y=i}};function Ti(t){return new Z(t,.5)}function Oi(t){return new Z(t,0)}function Pi(t){return new Z(t,1)}function kt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),e.push.apply(e,n)}return e}function Ni(t){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?kt(Object(e),!0).forEach(function(n){Ci(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):kt(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function $(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(i){return typeof i}:$=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$(t)}function Ci(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function G(){return G=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},G.apply(this,arguments)}function Ai(t,i){if(t){if(typeof t=="string")return St(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(t);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return St(t,i)}}function St(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}function ni(t,i){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=Ai(t))||i){e&&(t=e);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(h){throw h},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,r=!1,a;return{s:function(){e=e.call(t)},n:function(){var h=e.next();return o=h.done,h},e:function(h){r=!0,a=h},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(r)throw a}}}}function ji(t,i){var e=[],n=[];function s(o,r){if(o.length===1)e.push(o[0]),n.push(o[0]);else{for(var a=Array(o.length-1),h=0;h<a.length;h++)h===0&&e.push(o[0]),h===a.length-1&&n.push(o[h+1]),a[h]=[(1-r)*o[h][0]+r*o[h+1][0],(1-r)*o[h][1]+r*o[h+1][1]];s(a,r)}}return t.length&&s(t,i),{left:e,right:n.reverse()}}function Ei(t){var i={};return t.length===4&&(i.x2=t[2][0],i.y2=t[2][1]),t.length>=3&&(i.x1=t[1][0],i.y1=t[1][1]),i.x=t[t.length-1][0],i.y=t[t.length-1][1],t.length===4?i.type="C":t.length===3?i.type="Q":i.type="L",i}function Di(t,i){i=i||2;for(var e=[],n=t,s=1/i,o=0;o<i-1;o++){var r=s/(1-s*o),a=ji(n,r);e.push(a.left),n=a.right}return e.push(n),e}function $i(t,i,e){var n=[[t.x,t.y]];return i.x1!=null&&n.push([i.x1,i.y1]),i.x2!=null&&n.push([i.x2,i.y2]),n.push([i.x,i.y]),Di(n,e).map(Ei)}var Bi=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,A={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(A).forEach(function(t){A[t.toLowerCase()]=A[t]});function et(t,i){for(var e=Array(t),n=0;n<t;n++)e[n]=i;return e}function Ri(t){return"".concat(t.type).concat(A[t.type].map(function(i){return t[i]}).join(","))}function Li(t,i){var e={x1:"x",y1:"y",x2:"x",y2:"y"},n=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==i.type&&i.type.toUpperCase()!=="M"){var s={};Object.keys(i).forEach(function(o){var r=i[o],a=t[o];a===void 0&&(n.includes(o)?a=r:(a===void 0&&e[o]&&(a=t[e[o]]),a===void 0&&(a=0))),s[o]=a}),s.type=i.type,t=s}return t}function Hi(t,i,e){var n=[];if(i.type==="L"||i.type==="Q"||i.type==="C")n=n.concat($i(t,i,e));else{var s=G({},t);s.type==="M"&&(s.type="L"),n=n.concat(et(e-1).map(function(){return s})),n.push(i)}return n}function wt(t,i,e){var n=t.length-1,s=i.length-1,o=n/s,r=et(s).reduce(function(h,u,_){var l=Math.floor(o*_);if(e&&l<t.length-1&&e(t[l],t[l+1])){var c=o*_%1<.5;h[l]&&(c?l>0?l-=1:l<t.length-1&&(l+=1):l<t.length-1?l+=1:l>0&&(l-=1))}return h[l]=(h[l]||0)+1,h},[]),a=r.reduce(function(h,u,_){if(_===t.length-1){var l=et(u,G({},t[t.length-1]));return l[0].type==="M"&&l.forEach(function(c){c.type="L"}),h.concat(l)}return h.concat(Hi(t[_],t[_+1],u))},[]);return a.unshift(t[0]),a}function Mt(t){for(var i=(t||"").match(Bi)||[],e=[],n,s,o=0;o<i.length;++o)if(n=A[i[o]],n){s={type:i[o]};for(var r=0;r<n.length;++r)s[n[r]]=+i[o+r+1];o+=n.length,e.push(s)}return e}function Fi(t,i,e){var n=t==null?[]:t.slice(),s=i==null?[]:i.slice(),o=$(e)==="object"?e:{excludeSegment:e,snapEndsToInput:!0},r=o.excludeSegment,a=o.snapEndsToInput;if(!n.length&&!s.length)return function(){return[]};var h=(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 u=Math.abs(s.length-n.length);u!==0&&(s.length>n.length?n=wt(n,s,r):s.length<n.length&&(s=wt(s,n,r))),n=n.map(function(l,c){return Li(l,s[c])});var _=n.map(function(l){return Ni({},l)});return h&&(_.push({type:"Z"}),n.push({type:"Z"})),function(c){if(c===1&&a)return i??[];if(c===0)return n;for(var d=0;d<_.length;++d){var x=n[d],m=s[d],f=_[d],y=ni(A[f.type]),v;try{for(y.s();!(v=y.n()).done;){var p=v.value;f[p]=(1-c)*x[p]+c*m[p],(p==="largeArcFlag"||p==="sweepFlag")&&(f[p]=Math.round(f[p]))}}catch(b){y.e(b)}finally{y.f()}}return _}}function si(t,i,e){var n=Mt(t),s=Mt(i),o=$(e)==="object"?e:{excludeSegment:e,snapEndsToInput:!0},r=o.excludeSegment,a=o.snapEndsToInput;if(!n.length&&!s.length)return function(){return""};var h=Fi(n,s,{excludeSegment:r,snapEndsToInput:a});return function(_){if(_===1&&a)return i??"";var l=h(_),c="",d=ni(l),x;try{for(d.s();!(x=d.n()).done;){var m=x.value;c+=Ri(m)}}catch(f){d.e(f)}finally{d.f()}return c}}var g;(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"})(g||(g={}));const nt={[g.Basis]:ui,[g.BasisClosed]:fi,[g.BasisOpen]:pi,[g.Bundle]:yi,[g.Cardinal]:vi,[g.CardinalClosed]:di,[g.CardinalOpen]:xi,[g.CatmullRom]:gi,[g.CatmullRomClosed]:bi,[g.CatmullRomOpen]:mi,[g.Linear]:ct,[g.LinearClosed]:ki,[g.MonotoneX]:Si,[g.MonotoneY]:wi,[g.Natural]:Mi,[g.Step]:Ti,[g.StepAfter]:Pi,[g.StepBefore]:Oi},Ii=Object.assign(Object.assign({},Tt),{curveType:g.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),Xi=Ot`
3
3
  :root {
4
4
  --vis-line-cursor: default;
@@ -1 +1 @@
1
- import{r as l}from"./Cygjd4rF.js";import{W as p,h as c,c as n,o as u,w as i,$ as m,ap as s}from"./B06CcGVK.js";import{_ as d}from"./CGTQGJ_c.js";import"./iik6CYzq.js";const f={base:"rounded-full"},v={__name:"ProseBadge",props:{class:{type:null,required:!1}},setup(a){const e=a,o=p(),r=c(()=>s({extend:s(f),...o.ui?.prose?.badge||{}}));return(t,_)=>(u(),n(d,{color:"primary",variant:"subtle",class:m(r.value({class:e.class}))},{default:i(()=>[l(t.$slots,"default",{mdcUnwrap:"p"})]),_:3},8,["class"]))}};export{v as default};
1
+ import{r as l}from"./BrpM2Yks.js";import{W as p,h as c,c as n,o as u,w as i,$ as m,ap as s}from"./Bvui1gLJ.js";import{_ as d}from"./2JW1kVqO.js";import"./iik6CYzq.js";const f={base:"rounded-full"},v={__name:"ProseBadge",props:{class:{type:null,required:!1}},setup(a){const e=a,o=p(),r=c(()=>s({extend:s(f),...o.ui?.prose?.badge||{}}));return(t,_)=>(u(),n(d,{color:"primary",variant:"subtle",class:m(r.value({class:e.class}))},{default:i(()=>[l(t.$slots,"default",{mdcUnwrap:"p"})]),_:3},8,["class"]))}};export{v as default};