@intent-hq/web 2.378.0 → 2.379.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 (326) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{0.CntaSdOs.css → 0.CTPF0Qlx.css} +1 -1
  3. package/web/app/immutable/chunks/{CI7RbtEr.js → -WAhkWcN.js} +1 -1
  4. package/web/app/immutable/chunks/{DrJzqwYl.js → 3LDzw5hr.js} +1 -1
  5. package/web/app/immutable/chunks/{BqwJFhy0.js → 3gy7b498.js} +1 -1
  6. package/web/app/immutable/chunks/{DxRn1b69.js → 5JKCI89x.js} +1 -1
  7. package/web/app/immutable/chunks/{Cha0m9_p.js → 7xVzJhz9.js} +3 -3
  8. package/web/app/immutable/chunks/{H1XKoyU7.js → 95fFKc_B.js} +1 -1
  9. package/web/app/immutable/chunks/{BiyXqzpr.js → 99N6trPd.js} +1 -1
  10. package/web/app/immutable/chunks/{Ct7u3x4Z.js → 9Oy7dzP1.js} +1 -1
  11. package/web/app/immutable/chunks/{BOjnK0ib.js → 9Wfd5HgS.js} +1 -1
  12. package/web/app/immutable/chunks/{C9q9AVLE.js → ASj4zc4i.js} +1 -1
  13. package/web/app/immutable/chunks/{CDK1PUhb.js → AX9GlL7f.js} +1 -1
  14. package/web/app/immutable/chunks/{D7x-7T1z.js → B-VOV29o.js} +1 -1
  15. package/web/app/immutable/chunks/{Bzs3gWUn.js → B-qkLMcw.js} +1 -1
  16. package/web/app/immutable/chunks/{CWdPByc8.js → B08HT3WC.js} +1 -1
  17. package/web/app/immutable/chunks/{DhZiRE53.js → B09v4S72.js} +1 -1
  18. package/web/app/immutable/chunks/{bWHoQAZ0.js → B0xk6zYz.js} +1 -1
  19. package/web/app/immutable/chunks/{BR7wr0TX.js → B1sTTKq-.js} +1 -1
  20. package/web/app/immutable/chunks/{B8vdzcge.js → B23p8GKo.js} +1 -1
  21. package/web/app/immutable/chunks/{DuKUDTXp.js → B2kxgCpF.js} +4 -4
  22. package/web/app/immutable/chunks/{FJwOmaJn.js → B5OCsMya.js} +1 -1
  23. package/web/app/immutable/chunks/{DHOJXRBs.js → B5qu4FK-.js} +1 -1
  24. package/web/app/immutable/chunks/{YCbY89i6.js → B5x8b2Md.js} +1 -1
  25. package/web/app/immutable/chunks/{BFBac69t.js → B61Vm2jJ.js} +1 -1
  26. package/web/app/immutable/chunks/{CMRXj5iU.js → B6ARnCFm.js} +1 -1
  27. package/web/app/immutable/chunks/{CYF61-VE.js → B7Mft14L.js} +3 -3
  28. package/web/app/immutable/chunks/{DNg21Y1b.js → B7QvV8MS.js} +1 -1
  29. package/web/app/immutable/chunks/{C_iKPxuE.js → B7pJ0oQN.js} +3 -3
  30. package/web/app/immutable/chunks/{D7wqIX40.js → B90WO3Nw.js} +1 -1
  31. package/web/app/immutable/chunks/{CqsHYBSd.js → B9QnX69E.js} +1 -1
  32. package/web/app/immutable/chunks/{Bjpdj-Rz.js → BAaqzMEP.js} +1 -1
  33. package/web/app/immutable/chunks/{D3e1peXC.js → BBibLZN0.js} +1 -1
  34. package/web/app/immutable/chunks/{B6IP3G-s.js → BDciodIO.js} +1 -1
  35. package/web/app/immutable/chunks/{BRHA9tcr.js → BED17zwc.js} +2 -2
  36. package/web/app/immutable/chunks/BEKwCWB-.js +1 -0
  37. package/web/app/immutable/chunks/{DwpTtGo9.js → BFHz4Mic.js} +4 -4
  38. package/web/app/immutable/chunks/{BKSCrb1m.js → BGpvxEza.js} +1 -1
  39. package/web/app/immutable/chunks/{RKhqePYS.js → BHl8a9sq.js} +1 -1
  40. package/web/app/immutable/chunks/{Dn1azdNN.js → BI0xIaK5.js} +1 -1
  41. package/web/app/immutable/chunks/{D1DuB8m6.js → BIpZTv4V.js} +1 -1
  42. package/web/app/immutable/chunks/{NppR00xP.js → BLp3-Mdk.js} +2 -2
  43. package/web/app/immutable/chunks/{D5n4bmLW.js → BMz9z95U.js} +1 -1
  44. package/web/app/immutable/chunks/{DPVg7jvq.js → BOIa3b7l.js} +1 -1
  45. package/web/app/immutable/chunks/{BGsL8K0y.js → BOVF8j6B.js} +1 -1
  46. package/web/app/immutable/chunks/{Y8mQJY9P.js → BOlkYOOx.js} +1 -1
  47. package/web/app/immutable/chunks/{DkuxYFAh.js → BOrCm7f7.js} +1 -1
  48. package/web/app/immutable/chunks/{1RAMMSz2.js → BQiJMsZZ.js} +1 -1
  49. package/web/app/immutable/chunks/{D95TUop3.js → BSD-ntGx.js} +1 -1
  50. package/web/app/immutable/chunks/{CDLMG5g2.js → BT1eR3Bj.js} +1 -1
  51. package/web/app/immutable/chunks/{BMqjLC9C.js → BUOJIxHm.js} +1 -1
  52. package/web/app/immutable/chunks/{BupGSW0e.js → BVGm2-7m.js} +1 -1
  53. package/web/app/immutable/chunks/{DRCQRBOX.js → BVVYfWqp.js} +1 -1
  54. package/web/app/immutable/chunks/{nNR5liVx.js → BVdTA_y5.js} +1 -1
  55. package/web/app/immutable/chunks/{DNxs15P5.js → BVhmKG23.js} +1 -1
  56. package/web/app/immutable/chunks/{CH6hoQCh.js → BWP_R2MA.js} +1 -1
  57. package/web/app/immutable/chunks/{Dl5T14-N.js → BXA0q2RP.js} +1 -1
  58. package/web/app/immutable/chunks/{BDWzwjAw.js → BXEhOBKy.js} +1 -1
  59. package/web/app/immutable/chunks/{CMITzGAq.js → BXWV2GsM.js} +1 -1
  60. package/web/app/immutable/chunks/{DNAYSx3o.js → BZD36hSJ.js} +1 -1
  61. package/web/app/immutable/chunks/{dC4Ouk4t.js → BZi270zL.js} +1 -1
  62. package/web/app/immutable/chunks/{DXvCGoHo.js → B_7rDlJA.js} +1 -1
  63. package/web/app/immutable/chunks/{C9XPvdvP.js → B_SqXKMX.js} +1 -1
  64. package/web/app/immutable/chunks/{C1-QjOg0.js → B_rj1oI3.js} +1 -1
  65. package/web/app/immutable/chunks/{D4BcrleY.js → BblUoKwU.js} +1 -1
  66. package/web/app/immutable/chunks/{DXxnoOGg.js → BhP2yLip.js} +1 -1
  67. package/web/app/immutable/chunks/{CC73Ord3.js → Bjc6stZr.js} +1 -1
  68. package/web/app/immutable/chunks/{AHKUBHmH.js → BkE4ThRL.js} +2 -2
  69. package/web/app/immutable/chunks/{DpwIptaI.js → BkK6L2aU.js} +1 -1
  70. package/web/app/immutable/chunks/{DAkxD-CW.js → Bln5N5gf.js} +1 -1
  71. package/web/app/immutable/chunks/{B16ZhAkF.js → Bm1YRNX5.js} +1 -1
  72. package/web/app/immutable/chunks/{BRyCucnb.js → BmMxtG34.js} +1 -1
  73. package/web/app/immutable/chunks/{CQco45Cg.js → BmusT0yN.js} +3 -3
  74. package/web/app/immutable/chunks/{C5Zy1enh.js → BncYKhak.js} +1 -1
  75. package/web/app/immutable/chunks/{ChB7enBh.js → BpUidpA4.js} +1 -1
  76. package/web/app/immutable/chunks/{DLE3vveN.js → BpzZdAGA.js} +1 -1
  77. package/web/app/immutable/chunks/{CuWqPurf.js → BpznkfWn.js} +1 -1
  78. package/web/app/immutable/chunks/{Bf_h69U3.js → Bqdjarag.js} +1 -1
  79. package/web/app/immutable/chunks/{yYqgfv9t.js → BqnC5jpg.js} +1 -1
  80. package/web/app/immutable/chunks/{IclfFZoe.js → Bqvx2p-8.js} +1 -1
  81. package/web/app/immutable/chunks/{DEsbP_jO.js → BrF70gz7.js} +1 -1
  82. package/web/app/immutable/chunks/{qdAkw__e.js → Bs9C3yw5.js} +1 -1
  83. package/web/app/immutable/chunks/{yTn_UE0E.js → BtupVFyT.js} +1 -1
  84. package/web/app/immutable/chunks/{BOW58NW5.js → Bue8rt91.js} +1 -1
  85. package/web/app/immutable/chunks/{a3l5znCa.js → BwJyU0G0.js} +2 -2
  86. package/web/app/immutable/chunks/{DzEfixuL.js → Bwe4xLDo.js} +1 -1
  87. package/web/app/immutable/chunks/{BTiEQBIg.js → Bx1sm-W9.js} +1 -1
  88. package/web/app/immutable/chunks/{DTPgmjai.js → Bx3lRAzK.js} +1 -1
  89. package/web/app/immutable/chunks/{BFxBQddb.js → Byz3i90Q.js} +1 -1
  90. package/web/app/immutable/chunks/{DdNx-LMu.js → Bz1UdUMu.js} +1 -1
  91. package/web/app/immutable/chunks/{Cr0HizBS.js → Bz43dY69.js} +1 -1
  92. package/web/app/immutable/chunks/{Dv-DK4ZQ.js → C-662HWr.js} +1 -1
  93. package/web/app/immutable/chunks/{8ScDICwb.js → C-6kZjgn.js} +1 -1
  94. package/web/app/immutable/chunks/{250ka2gI.js → C-QdzJwG.js} +1 -1
  95. package/web/app/immutable/chunks/{C4F64iPQ.js → C-jJNcMR.js} +1 -1
  96. package/web/app/immutable/chunks/{B1Weu8fb.js → C-nHSAUo.js} +3 -3
  97. package/web/app/immutable/chunks/{BPRCBm84.js → C0EhdYGV.js} +1 -1
  98. package/web/app/immutable/chunks/{Brh3GO3O.js → C3puOFC3.js} +1 -1
  99. package/web/app/immutable/chunks/{JIE_7jo4.js → C6CbeYqw.js} +1 -1
  100. package/web/app/immutable/chunks/{C7FWeTQP.js → C6Xyba22.js} +1 -1
  101. package/web/app/immutable/chunks/{Di1597mK.js → C6w4HIHS.js} +4 -4
  102. package/web/app/immutable/chunks/{DhPOXvW2.js → C8VLUX_C.js} +1 -1
  103. package/web/app/immutable/chunks/{DWx-rRFl.js → C99ttMY5.js} +1 -1
  104. package/web/app/immutable/chunks/{CGwoBkMN.js → C9BFhP02.js} +1 -1
  105. package/web/app/immutable/chunks/{Crl5h76T.js → C9of0fiN.js} +1 -1
  106. package/web/app/immutable/chunks/{0KXDpLHs.js → CAMYapEA.js} +1 -1
  107. package/web/app/immutable/chunks/{TE5M669U.js → CB6JpnWC.js} +1 -1
  108. package/web/app/immutable/chunks/{DAFCfCw4.js → CBcFUe2n.js} +1 -1
  109. package/web/app/immutable/chunks/{B1cgGcI0.js → CBm8wTeU.js} +1 -1
  110. package/web/app/immutable/chunks/{CtssBApV.js → CBoDYG4N.js} +1 -1
  111. package/web/app/immutable/chunks/{ER2tmGzm.js → CC4qGxb7.js} +1 -1
  112. package/web/app/immutable/chunks/{Kl08LBTM.js → CCZp7LCQ.js} +1 -1
  113. package/web/app/immutable/chunks/{DzRCnjNV.js → CDYyrBGY.js} +1 -1
  114. package/web/app/immutable/chunks/{PbmSZkiX.js → CEAmSotY.js} +1 -1
  115. package/web/app/immutable/chunks/{SORTQVEW.js → CEeEOvCL.js} +1 -1
  116. package/web/app/immutable/chunks/{u_aTJYPF.js → CFLU9fq8.js} +1 -1
  117. package/web/app/immutable/chunks/{D5TWWYRb.js → CFTAk3la.js} +1 -1
  118. package/web/app/immutable/chunks/{Cc2CqLcV.js → CFg7iVIZ.js} +1 -1
  119. package/web/app/immutable/chunks/{DsALDj-G.js → CFxNovSS.js} +1 -1
  120. package/web/app/immutable/chunks/{C7hiMHci.js → CGFkplEn.js} +1 -1
  121. package/web/app/immutable/chunks/{DufyJpiq.js → CGnn93LH.js} +1 -1
  122. package/web/app/immutable/chunks/{Mvzzws-D.js → CGuufzS0.js} +1 -1
  123. package/web/app/immutable/chunks/{Bb3DLwd-.js → CHKsRESt.js} +1 -1
  124. package/web/app/immutable/chunks/CHWIPzMj.js +1 -0
  125. package/web/app/immutable/chunks/{CG1uBvn1.js → CI1ntq87.js} +1 -1
  126. package/web/app/immutable/chunks/{CqB0bCAG.js → CJ3l-lGj.js} +2 -2
  127. package/web/app/immutable/chunks/{BIx2KRjJ.js → CKC2M8j1.js} +1 -1
  128. package/web/app/immutable/chunks/{D2Vwu3SP.js → CKhPlHZj.js} +1 -1
  129. package/web/app/immutable/chunks/{fs3EIvPV.js → CPE--RtJ.js} +1 -1
  130. package/web/app/immutable/chunks/{DuNaiyu-.js → CPp2qH2q.js} +1 -1
  131. package/web/app/immutable/chunks/{BSJqN5vZ.js → CRSdOrSC.js} +1 -1
  132. package/web/app/immutable/chunks/{DaOZBaPJ.js → CR_d2Ton.js} +1 -1
  133. package/web/app/immutable/chunks/{C_AcfC1L.js → CSCM9u80.js} +4 -4
  134. package/web/app/immutable/chunks/{CDuekMJZ.js → CUV6PvQK.js} +1 -1
  135. package/web/app/immutable/chunks/{uh7Y9z2F.js → CWVqIb-d.js} +1 -1
  136. package/web/app/immutable/chunks/{DPL73Y_l.js → CWcntBOg.js} +1 -1
  137. package/web/app/immutable/chunks/{UZmeM7G7.js → CWgzsPKB.js} +1 -1
  138. package/web/app/immutable/chunks/{Cdn6MckB.js → CYv_coXk.js} +1 -1
  139. package/web/app/immutable/chunks/{Ck_gSwZK.js → CZ4sJNRy.js} +1 -1
  140. package/web/app/immutable/chunks/{egYaebOi.js → C_T3jbC9.js} +1 -1
  141. package/web/app/immutable/chunks/{CON-zxWG.js → C_VUI8Os.js} +1 -1
  142. package/web/app/immutable/chunks/{D22DhEZM.js → C_a7D1qz.js} +1 -1
  143. package/web/app/immutable/chunks/{D9x2HEXw.js → CeGIZnmi.js} +2 -2
  144. package/web/app/immutable/chunks/{Gw1t2Srm.js → CeOa9B5I.js} +1 -1
  145. package/web/app/immutable/chunks/{BturI3jj.js → CezXhCS3.js} +1 -1
  146. package/web/app/immutable/chunks/{Bl3WKtdy.js → CfiSkM8N.js} +1 -1
  147. package/web/app/immutable/chunks/{C-4lCpez.js → Cg7Nu4Va.js} +1 -1
  148. package/web/app/immutable/chunks/{CcC3AMEc.js → CkCYZCke.js} +1 -1
  149. package/web/app/immutable/chunks/{WZfEgods.js → Cl2rjjSj.js} +1 -1
  150. package/web/app/immutable/chunks/{CcBZUrE6.js → Cl7-Lh5E.js} +1 -1
  151. package/web/app/immutable/chunks/{CpL_C-GJ.js → Clz72PsI.js} +1 -1
  152. package/web/app/immutable/chunks/{CpRRerrb.js → CmE98hO-.js} +1 -1
  153. package/web/app/immutable/chunks/{BgXHwBod.js → CoCpxnqY.js} +6 -6
  154. package/web/app/immutable/chunks/{B9ibu-4g.js → CpK9Zfzc.js} +1 -1
  155. package/web/app/immutable/chunks/{Du66vBdT.js → CpasQsOr.js} +1 -1
  156. package/web/app/immutable/chunks/{BcG7yxE2.js → CprGZ_vQ.js} +1 -1
  157. package/web/app/immutable/chunks/{CZ6S_xft.js → Cq8HYngI.js} +1 -1
  158. package/web/app/immutable/chunks/{DBX7lh1O.js → CsXyRQ8j.js} +55 -55
  159. package/web/app/immutable/chunks/{Dal4fUVD.js → CtJv8xMf.js} +1 -1
  160. package/web/app/immutable/chunks/{BH0cA3lf.js → CuKET43j.js} +2 -2
  161. package/web/app/immutable/chunks/{B12Be-IL.js → Cum-TdZd.js} +1 -1
  162. package/web/app/immutable/chunks/{q7CfEA0Z.js → CwSTmJL9.js} +1 -1
  163. package/web/app/immutable/chunks/{ypTw5Sl1.js → CxWH-8GW.js} +1 -1
  164. package/web/app/immutable/chunks/{D_zFSOgZ.js → CxdlCefM.js} +1 -1
  165. package/web/app/immutable/chunks/{C_yzewkM.js → Cy7afLsK.js} +1 -1
  166. package/web/app/immutable/chunks/{CfrT9tcw.js → CzU9DzbS.js} +2 -2
  167. package/web/app/immutable/chunks/{N88c9xuK.js → D-Cja9EW.js} +1 -1
  168. package/web/app/immutable/chunks/{XUs6uy3h.js → D-vbvcep.js} +1 -1
  169. package/web/app/immutable/chunks/{Dollk5ZG.js → D0LnBaLt.js} +1 -1
  170. package/web/app/immutable/chunks/{BR2JfJtY.js → D2KpwJIq.js} +1 -1
  171. package/web/app/immutable/chunks/{C7zasWUf.js → D3OvqZhX.js} +2 -2
  172. package/web/app/immutable/chunks/{C6oWsXP5.js → D3hR-AME.js} +1 -1
  173. package/web/app/immutable/chunks/{CEswnMLF.js → D4EK6U-m.js} +1 -1
  174. package/web/app/immutable/chunks/{BP3qefPW.js → D5uBa-Ne.js} +1 -1
  175. package/web/app/immutable/chunks/{BQaHhd4d.js → D5yaIVD5.js} +1 -1
  176. package/web/app/immutable/chunks/{B3PM4xsG.js → D7IJPBQY.js} +2 -2
  177. package/web/app/immutable/chunks/{C-Rjcf-U.js → D8DBejPV.js} +1 -1
  178. package/web/app/immutable/chunks/{D2h8OBcY.js → DA2RRspt.js} +1 -1
  179. package/web/app/immutable/chunks/{BhxN6u9j.js → DBsXclsv.js} +1 -1
  180. package/web/app/immutable/chunks/{BGa2D4m6.js → DC1aoXyY.js} +1 -1
  181. package/web/app/immutable/chunks/{CSfG5Ybw.js → DCpFqaYA.js} +3 -3
  182. package/web/app/immutable/chunks/{DumVye9M.js → DD2BajRb.js} +1 -1
  183. package/web/app/immutable/chunks/{jRZT2QjD.js → DDfMifm6.js} +1 -1
  184. package/web/app/immutable/chunks/{ByjFf28U.js → DDtBtnNz.js} +1 -1
  185. package/web/app/immutable/chunks/{CHWbLwXf.js → DED90qCG.js} +1 -1
  186. package/web/app/immutable/chunks/{B0m0-2MI.js → DF8x1-0S.js} +1 -1
  187. package/web/app/immutable/chunks/{83xTN5fk.js → DFztsOdi.js} +1 -1
  188. package/web/app/immutable/chunks/{GAJ0U6Fj.js → DGfmWFo_.js} +1 -1
  189. package/web/app/immutable/chunks/{D1mB9_6q.js → DH2vm-1i.js} +1 -1
  190. package/web/app/immutable/chunks/{ha_PYGcR.js → DIZhZiBE.js} +1 -1
  191. package/web/app/immutable/chunks/{DK4nL43d.js → DInAnkwK.js} +1 -1
  192. package/web/app/immutable/chunks/{DJrPi4os.js → DJ6GAsDd.js} +1 -1
  193. package/web/app/immutable/chunks/{eqIwOdFV.js → DJM-jC4D.js} +1 -1
  194. package/web/app/immutable/chunks/{BmET8lGk.js → DKpBQuZo.js} +1 -1
  195. package/web/app/immutable/chunks/{DFMLCzQx.js → DMkatOMg.js} +1 -1
  196. package/web/app/immutable/chunks/{DZ6X6WRI.js → DNhGGhpW.js} +1 -1
  197. package/web/app/immutable/chunks/{DIweBffD.js → DOPKn6Qc.js} +1 -1
  198. package/web/app/immutable/chunks/{BK9wcqQr.js → DPWIkUJh.js} +1 -1
  199. package/web/app/immutable/chunks/{DzCaG8dx.js → DPbAP8qP.js} +1 -1
  200. package/web/app/immutable/chunks/DS9Nses5.js +1 -0
  201. package/web/app/immutable/chunks/{BvR4li8f.js → DSQXi-HI.js} +1 -1
  202. package/web/app/immutable/chunks/{CN5rDbbI.js → DVBcpomn.js} +3 -3
  203. package/web/app/immutable/chunks/{CQaQS_9E.js → DW6LpaLb.js} +1 -1
  204. package/web/app/immutable/chunks/{B50wbSca.js → DXujHnPt.js} +1 -1
  205. package/web/app/immutable/chunks/{BT9wsXKO.js → DZBWbkQT.js} +1 -1
  206. package/web/app/immutable/chunks/{DsNGTbSH.js → D_gp0b_i.js} +1 -1
  207. package/web/app/immutable/chunks/{Brv29rn8.js → D_p0cMgQ.js} +1 -1
  208. package/web/app/immutable/chunks/{1ppucs3B.js → DaHFtoCa.js} +1 -1
  209. package/web/app/immutable/chunks/{Cweq-0-O.js → DaNzos5O.js} +1 -1
  210. package/web/app/immutable/chunks/{B4CGkc2Z.js → DaauQgcE.js} +1 -1
  211. package/web/app/immutable/chunks/{2bm1-WPv.js → DavOW4Pn.js} +1 -1
  212. package/web/app/immutable/chunks/{CWOgcDNw.js → DbYmdzfs.js} +1 -1
  213. package/web/app/immutable/chunks/{BaifPKCC.js → Dc7HNZUt.js} +1 -1
  214. package/web/app/immutable/chunks/{BhaVZ25C.js → DdAvLI3S.js} +1 -1
  215. package/web/app/immutable/chunks/{B_kNlUD-.js → Dg1VUJOX.js} +1 -1
  216. package/web/app/immutable/chunks/{BB-o-_x6.js → DhbIivmf.js} +1 -1
  217. package/web/app/immutable/chunks/{Qetkvafr.js → DlGq0K29.js} +1 -1
  218. package/web/app/immutable/chunks/{BIcRvrKV.js → Dlhp692a.js} +1 -1
  219. package/web/app/immutable/chunks/{CtXwHt_m.js → Dm5sb2T9.js} +1 -1
  220. package/web/app/immutable/chunks/{BHWU1Psx.js → DmzyDWxY.js} +1 -1
  221. package/web/app/immutable/chunks/{rS28LQlr.js → DnPj8kAJ.js} +1 -1
  222. package/web/app/immutable/chunks/{DZMdKpsk.js → DnuPDvKn.js} +1 -1
  223. package/web/app/immutable/chunks/{BWIk2_6S.js → DoQcVvIo.js} +1 -1
  224. package/web/app/immutable/chunks/{Dnhf6K_4.js → DpOnLCwB.js} +1 -1
  225. package/web/app/immutable/chunks/{1FvEkC51.js → DrJBkQ-6.js} +1 -1
  226. package/web/app/immutable/chunks/{CUkvXPuX.js → Drf7hLVf.js} +1 -1
  227. package/web/app/immutable/chunks/{CBcz8VK6.js → Ds2ZtSdQ.js} +1 -1
  228. package/web/app/immutable/chunks/{DyvHB1Xe.js → DsOeQrzx.js} +1 -1
  229. package/web/app/immutable/chunks/{BLB-tbz2.js → DtR7mmzX.js} +1 -1
  230. package/web/app/immutable/chunks/{u_ejDIBY.js → DtgMvDnf.js} +1 -1
  231. package/web/app/immutable/chunks/{CbKyR6Kf.js → DvRDNe8t.js} +2 -2
  232. package/web/app/immutable/chunks/{7FbFoR5r.js → Dw3sD88n.js} +1 -1
  233. package/web/app/immutable/chunks/{DQg0oSRW.js → Dwv8zw-4.js} +1 -1
  234. package/web/app/immutable/chunks/{BAduOJD2.js → DxTOze69.js} +1 -1
  235. package/web/app/immutable/chunks/{CL61Lx-U.js → DyRcp3T7.js} +1 -1
  236. package/web/app/immutable/chunks/{CcIA3l7Z.js → Dym3QysO.js} +1 -1
  237. package/web/app/immutable/chunks/{BuvlavTl.js → DzUGhIyX.js} +1 -1
  238. package/web/app/immutable/chunks/{CJPgBxaF.js → DzyqDyL5.js} +1 -1
  239. package/web/app/immutable/chunks/{Dof5KDCr.js → EVnmmycb.js} +1 -1
  240. package/web/app/immutable/chunks/EyifK0YY.js +1 -0
  241. package/web/app/immutable/chunks/{CuTVPcxo.js → JtSO6K6S.js} +1 -1
  242. package/web/app/immutable/chunks/{DK-gr9PF.js → Jy2VtQ-j.js} +1 -1
  243. package/web/app/immutable/chunks/{DaNk_UZD.js → LqqBQeq2.js} +1 -1
  244. package/web/app/immutable/chunks/M46vYfPG.js +1 -0
  245. package/web/app/immutable/chunks/{CxfjSsAX.js → MpQYVCAl.js} +1 -1
  246. package/web/app/immutable/chunks/{D0boXdmz.js → P8ajY_OC.js} +1 -1
  247. package/web/app/immutable/chunks/{O62vZaBr.js → Q-AtJOxP.js} +1 -1
  248. package/web/app/immutable/chunks/{Bn7ZmTkF.js → QgUSWdkO.js} +2 -2
  249. package/web/app/immutable/chunks/{CVvdpvXK.js → R5mMERAP.js} +3 -3
  250. package/web/app/immutable/chunks/{4nEMohmP.js → Rx9iChBc.js} +1 -1
  251. package/web/app/immutable/chunks/{h37VgGKw.js → T8wSaQKw.js} +1 -1
  252. package/web/app/immutable/chunks/{DYg3sgSl.js → U_nfJe6p.js} +1 -1
  253. package/web/app/immutable/chunks/{D1u6MWVh.js → VpUwDjJ_.js} +1 -1
  254. package/web/app/immutable/chunks/{DP0ovMwg.js → XMeuZ35b.js} +1 -1
  255. package/web/app/immutable/chunks/XslshjYv.js +1 -0
  256. package/web/app/immutable/chunks/{D2524wRl.js → Yqp_UZB_.js} +1 -1
  257. package/web/app/immutable/chunks/{8jMj1OGX.js → ZANjZw72.js} +1 -1
  258. package/web/app/immutable/chunks/{D1mEn0KC.js → ZEAS6srh.js} +1 -1
  259. package/web/app/immutable/chunks/{Be253aOc.js → ZUA6bo0t.js} +1 -1
  260. package/web/app/immutable/chunks/{Bd1sW9PE.js → _H8LGW4O.js} +1 -1
  261. package/web/app/immutable/chunks/{AF10H5eK.js → a3c0uoAC.js} +1 -1
  262. package/web/app/immutable/chunks/{DRG3CbTe.js → asAq0Q4G.js} +1 -1
  263. package/web/app/immutable/chunks/{BxsHp3SH.js → d-SabBb_.js} +1 -1
  264. package/web/app/immutable/chunks/{GIg9PMOU.js → dlAoKLi8.js} +1 -1
  265. package/web/app/immutable/chunks/{Ci7no3-D.js → ePwjer8w.js} +1 -1
  266. package/web/app/immutable/chunks/{jBPLh4Hv.js → eapM1N3E.js} +1 -1
  267. package/web/app/immutable/chunks/{BO7alE7_.js → g4xg1V0H.js} +4 -4
  268. package/web/app/immutable/chunks/{DUtR3SZU.js → gFHNPMAw.js} +1 -1
  269. package/web/app/immutable/chunks/{DWoxVXOI.js → icAEjhzY.js} +1 -1
  270. package/web/app/immutable/chunks/{CVmi7DTf.js → jCrYQ4Ri.js} +2 -2
  271. package/web/app/immutable/chunks/{PxI72ehJ.js → lJ4MSEIh.js} +1 -1
  272. package/web/app/immutable/chunks/{oZTI_u9n.js → lWlirZMs.js} +1 -1
  273. package/web/app/immutable/chunks/{DyyOhufN.js → o551VboC.js} +1 -1
  274. package/web/app/immutable/chunks/{CtZ-vglf.js → ohZ0BtRB.js} +1 -1
  275. package/web/app/immutable/chunks/{BHSnSmbO.js → ouMJlHY1.js} +1 -1
  276. package/web/app/immutable/chunks/{CPZGjCPW.js → pElsZ4dt.js} +1 -1
  277. package/web/app/immutable/chunks/{Dx1gCWLU.js → pV_14PeY.js} +1 -1
  278. package/web/app/immutable/chunks/{DmQDTavV.js → rCQAZGb3.js} +2 -2
  279. package/web/app/immutable/chunks/{BYge7mVb.js → sASsqJNT.js} +1 -1
  280. package/web/app/immutable/chunks/{C62iVnTg.js → s_zHQBKW.js} +1 -1
  281. package/web/app/immutable/chunks/{Cn-uVT14.js → tOpgiK5L.js} +1 -1
  282. package/web/app/immutable/chunks/{1wWPoJ5Q.js → tp06XFI7.js} +1 -1
  283. package/web/app/immutable/chunks/{D4SYJpS6.js → tsVy-iyH.js} +1 -1
  284. package/web/app/immutable/chunks/{BL9pxyXQ.js → uN_eK4W9.js} +1 -1
  285. package/web/app/immutable/chunks/{Btv0cBol.js → uod76J5c.js} +1 -1
  286. package/web/app/immutable/chunks/{Ddfl3sUZ.js → v1zTkmPU.js} +1 -1
  287. package/web/app/immutable/chunks/{4K9ZZSJu.js → w4-ZULNa.js} +1 -1
  288. package/web/app/immutable/chunks/{7CEHC6fO.js → wOi8eNbH.js} +1 -1
  289. package/web/app/immutable/chunks/{D-GPCP_y.js → waJ4nm9k.js} +1 -1
  290. package/web/app/immutable/chunks/{Dm98AfRw.js → wwOYCksJ.js} +1 -1
  291. package/web/app/immutable/chunks/{DjBfsgFx.js → yQuAS-d_.js} +1 -1
  292. package/web/app/immutable/chunks/{DzQEubr_.js → z2dT_sfg.js} +1 -1
  293. package/web/app/immutable/entry/{app.DnvWkWuC.js → app.Bg9ukl2W.js} +3 -3
  294. package/web/app/immutable/entry/start.DrKu0acT.js +1 -0
  295. package/web/app/immutable/nodes/{0.BHNsHbq6.js → 0.w7cQ0D88.js} +1 -1
  296. package/web/app/immutable/nodes/{1.CxKhOECT.js → 1.4ql_JuYe.js} +1 -1
  297. package/web/app/immutable/nodes/{10.mSXX1b86.js → 10.Db5zVRj1.js} +5 -5
  298. package/web/app/immutable/nodes/{11.LQ-kpfGf.js → 11.5Xli6dPl.js} +1 -1
  299. package/web/app/immutable/nodes/{12.moZNbeME.js → 12.Dmc_y_qK.js} +1 -1
  300. package/web/app/immutable/nodes/{13.B9ngkS9V.js → 13.DZTGM0cb.js} +1 -1
  301. package/web/app/immutable/nodes/{14.BvKaKKlx.js → 14.BJwsFDEF.js} +3 -3
  302. package/web/app/immutable/nodes/{15.VPLfb8v_.js → 15.DMW9u33y.js} +1 -1
  303. package/web/app/immutable/nodes/{16.Bfi41nCp.js → 16.BcrbQLum.js} +1 -1
  304. package/web/app/immutable/nodes/{17.BaloRRSg.js → 17.8JKljX5l.js} +1 -1
  305. package/web/app/immutable/nodes/{18.DPo7p8bY.js → 18.YeTMHnFS.js} +1 -1
  306. package/web/app/immutable/nodes/{19.CavDiJik.js → 19.CTmJfPwB.js} +2 -2
  307. package/web/app/immutable/nodes/{2.kzpobJJm.js → 2.bsXLvGyt.js} +4 -4
  308. package/web/app/immutable/nodes/{20.EaJ-UneM.js → 20.C1sgyqm8.js} +1 -1
  309. package/web/app/immutable/nodes/{3.DZFV57al.js → 3.JBWvrxuJ.js} +1 -1
  310. package/web/app/immutable/nodes/{4.Dfre4p0n.js → 4.D6e8o0bC.js} +1 -1
  311. package/web/app/immutable/nodes/{5.BnBSTXSN.js → 5.BiCuWA6k.js} +1 -1
  312. package/web/app/immutable/nodes/{6.BYj21cDV.js → 6.IF1PmeP7.js} +1 -1
  313. package/web/app/immutable/nodes/{7.CvDxUVa8.js → 7.BlK4mw1L.js} +1 -1
  314. package/web/app/immutable/nodes/{8.CTVkGhmt.js → 8.CUVVZTwf.js} +1 -1
  315. package/web/app/immutable/nodes/9.JkDekIr4.js +12 -0
  316. package/web/app/version.json +1 -1
  317. package/web/generated/paraglide.js +49 -49
  318. package/web/index.html +19 -19
  319. package/web/app/immutable/chunks/2CFsxajB.js +0 -1
  320. package/web/app/immutable/chunks/2CQlphfn.js +0 -1
  321. package/web/app/immutable/chunks/6QXvr4x0.js +0 -1
  322. package/web/app/immutable/chunks/BOaPEJcS.js +0 -1
  323. package/web/app/immutable/chunks/CXjastM3.js +0 -1
  324. package/web/app/immutable/chunks/Cr_KTPcL.js +0 -1
  325. package/web/app/immutable/entry/start.D5h2aGMe.js +0 -1
  326. package/web/app/immutable/nodes/9.Dq4n-Ddo.js +0 -12
@@ -1 +1 @@
1
- import{Jt as r,nX as p,nY as i,mA as s,P as S}from"./eqIwOdFV.js";import{bm as o}from"./2CQlphfn.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),A=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),b=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),P=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),W=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:W,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:P,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:A,selectWorkspaceTerminalState:b},Symbol.toStringTag,{value:"Module"}));export{W as a,I as b,f as c,E as d,_ as e,N as f,A as g,b as h,M as i,T as l,y as s,d as t};
1
+ import{Jt as r,nX as p,nY as i,mA as s,P as S}from"./DJM-jC4D.js";import{bm as o}from"./CHWIPzMj.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),A=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),b=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),P=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),W=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),E=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:W,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:E,selectTerminalOverlayHeight:_,selectTerminalPlacement:P,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:A,selectWorkspaceTerminalState:b},Symbol.toStringTag,{value:"Module"}));export{W as a,I as b,f as c,E as d,_ as e,N as f,A as g,b as h,M as i,T as l,y as s,d as t};
@@ -1 +1 @@
1
- import{t as kt,bo as i,bw as Mt,bp as Pt,b as Et}from"./2CQlphfn.js";import{ai as Tt,bs as Vt,c5 as It,aD as t,ca as Oe,bj as Ct,a5 as ie,bS as V,bA as oe,b_ as H,aw as le,aj as O,W as A,bn as Nt,bV as I,c9 as M,bH as c,aA as o,bl as Xe,bO as Ze,a7 as At,ay as zt,aB as R,c0 as Dt}from"./3SdAC2_C.js";import{i as X}from"./ByjFf28U.js";import{g as Ht}from"./Bf_h69U3.js";import{S as je,n as Je,l as Ft,c as qt}from"./DsNGTbSH.js";import{b as Rt,e as F,c as Z,s as P,f as j,g as q,r as Bt,p as Wt}from"./DhZiRE53.js";import{e as Kt}from"./DjBfsgFx.js";import{b as Ie}from"./Dn334wJv.js";var Lt=new Set(["$$slots","$$events","$$legacy","ref","value","min","max","step","steps","showSteps","showValue","valuePosition","appearance","disabled","onInteractionStart","onValueChange","oninput","onkeydown","onfocus","onblur","formatValue","class","aria-label","aria-invalid","aria-valuetext","data-slot"]),Ut=R('<input type="number" class="slider-value-input w-full min-w-0 rounded-(--shape-input-radius) border-b border-border bg-transparent text-foreground outline-none [text-align:inherit] svelte-2rnmeq"/>'),Gt=R('<button type="button" class="w-full min-w-0 cursor-text select-none rounded-(--shape-input-radius) text-inherit whitespace-nowrap [text-align:inherit]"> </button>'),Ot=R('<span data-slot="slider-value" class="inline-grid shrink-0 text-[13px] leading-none text-muted-foreground tabular-nums"><!></span>'),Xt=R('<output data-slot="slider-tooltip" class="pointer-events-none absolute top-[-20px] z-30 -translate-x-1/2 whitespace-nowrap rounded-(--shape-input-radius) surface-inverse px-2 py-1 text-xs tabular-nums" aria-hidden="true"> </output>'),Zt=R('<span aria-hidden="true" data-slot="slider-pip" class="pointer-events-none absolute top-1/2 z-10 size-1 -translate-x-1/2 -translate-y-1/2 rounded-full bg-muted-foreground/30"></span>'),jt=R('<div data-slot="slider-root"><!> <div class="relative min-w-0 flex-1 overflow-visible"><input/> <div data-slot="slider-track" role="presentation" class="slider-hit-area relative h-9 w-full cursor-ew-resize overflow-visible svelte-2rnmeq"><!> <span aria-hidden="true" data-slot="slider-track-background"></span> <span aria-hidden="true" data-slot="slider-fill"></span> <span aria-hidden="true" data-slot="slider-preview"></span> <!> <span aria-hidden="true" data-slot="slider-thumb"></span></div></div> <!></div>');function Jt(Ce,r){if(new.target)return kt({component:Jt,...Ce});Vt(r,!0);const Ne=e=>{var n=Ot();let a;var d=ie(n);{var f=m=>{var l=Ut();Bt(l),Ie(l,N=>c(ne,N),()=>t(ne)),H(()=>{P(l,"min",t(u)),P(l,"max",t(x)),P(l,"step",t(s)?"any":t(y)),P(l,"aria-label",ee())}),le("blur",l,He),O("keydown",l,ht),Kt(l,()=>t(ae),N=>c(ae,N)),A(m,l)},v=m=>{var l=Gt(),N=Xe(l,!0);H(St=>{l.disabled=_(),Ze(N,St)},[()=>D()(p())]),O("click",l,vt),A(m,l)};X(d,m=>{t(W)?m(f):m(v,-1)})}oe(n),H(()=>a=q(n,"",a,{"font-variation-settings":"'wght' 500",width:`${t($e)}ch`,"align-self":h()==="top"||h()==="bottom"?"center":void 0,"text-align":h()==="left"||h()==="right"?"right":"center"})),A(e,n)},g=20,Ae=16,J=(g-18)/2;let b=i(r,"ref",15,null),p=i(r,"value",15,0),ue=i(r,"min",7,0),de=i(r,"max",7,100),ce=i(r,"step",7,1),Q=i(r,"steps",7),pe=i(r,"showSteps",7,!1),Y=i(r,"showValue",7,!1),h=i(r,"valuePosition",7,"right"),z=i(r,"appearance",7,"default"),_=i(r,"disabled",7,!1),fe=i(r,"onInteractionStart",7),ve=i(r,"onValueChange",7),me=i(r,"oninput",7),he=i(r,"onkeydown",7),ge=i(r,"onfocus",7),be=i(r,"onblur",7),D=i(r,"formatValue",7,String),$=i(r,"class",7),ee=i(r,"aria-label",7),B=i(r,"aria-invalid",7),we=i(r,"aria-valuetext",7),xe=i(r,"data-slot",7,"slider"),Qe=Pt(r,Lt),te,ne=I(void 0),S=I(!1),ye=I(!1),_e=I(!1),W=I(!1),ae=I(""),w=I(null),Se=I(!1),C=null;const s=M(()=>{if(!Q()?.length)return null;const e=[...new Set(Q().filter(Number.isFinite))].sort((n,a)=>n-a);return e.length?e:null}),u=M(()=>t(s)?.[0]??Number(ue())),x=M(()=>t(s)?.[t(s).length-1]??Number(de())),y=M(()=>Math.max(Number(ce())||1,Number.EPSILON)),ke=M(()=>B()===!0||B()==="true"),Ye=M(()=>we()??D()(p())),$e=M(()=>{const e=t(s)??[t(u),t(x),E(t(u)+t(y)),E(t(x)-t(y))],n=d=>{const[f,v="0"]=String(d).split("e");return Math.max(0,(f.split(".")[1]?.length??0)-Number(v))},a=Math.min(12,Math.max(n(t(u)),n(t(y))));return e.reduce((d,f)=>{const v=String(f),m=D()(f),l=t(s)?v.length:f.toFixed(a).length;return Math.max(d,m.length,l+Math.max(0,m.length-v.length))},1)}),K=M(()=>G(p())),L=M(()=>t(w)===null?null:G(t(w))),U=new je(It(()=>t(K)),"moderate"),Me=new je(Ae,"fast");function et(e){return t(s)?t(s).reduce((n,a)=>Math.abs(a-e)<Math.abs(n-e)?a:n):e}function E(e){const n=Math.max(t(u),Math.min(t(x),e));if(t(s))return et(n);const a=t(u)+Math.round((n-t(u))/t(y))*t(y);return Number(Math.max(t(u),Math.min(t(x),a)).toFixed(12))}function G(e){return t(x)===t(u)?0:Math.max(0,Math.min(1,(e-t(u))/(t(x)-t(u))))}function re(e){return`calc(${e*100}% + ${g/2-e*g}px)`}function tt(e){return`calc(${e*100}% - ${e*g}px)`}function nt(e){return`calc(${e*100}% + ${g/2-J-e*g}px)`}function at(){return t(L)===null?"0px":t(w)===t(u)?`${J}px`:re(Math.min(t(K),t(L)))}function rt(){if(t(L)===null)return"0px";const e=re(t(K));if(t(w)===t(u))return`calc(${e} - ${J}px)`;if(t(w)===t(x))return`calc(100% - ${e} - ${J}px)`;const n=Math.abs(t(L)-t(K));return`calc(${n*100}% - ${n*g}px)`}function ze(e){const n=te.getBoundingClientRect(),a=te.offsetWidth||n.width;if(a<=g||n.width<=0)return t(u);const d=n.width/a,f=(e-n.left)/d,v=Math.max(0,Math.min(1,(f-g/2)/(a-g)));return E(t(u)+v*(t(x)-t(u)))}function st(e){const n=E(e);return n===p()?!1:(p(n),ve()?.(n),!0)}function se(e){if(!b())return;const n=b();n.value=String(e),n.dispatchEvent(new Event("input",{bubbles:!0}))}function it(e){const n=E(e.currentTarget.valueAsNumber);e.currentTarget.value=String(n),st(n),me()?.(e)}function ot(e){c(_e,e.currentTarget.matches(":focus-visible"),!0),ge()?.(e)}function lt(e){c(_e,!1),be()?.(e)}function ut(e){if(he()?.(e),e.defaultPrevented||_())return;const n=t(s)?.indexOf(E(p()))??-1;let a;switch(e.key){case"ArrowRight":case"ArrowUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+1)]:p()+t(y);break;case"ArrowLeft":case"ArrowDown":a=t(s)?t(s)[Math.max(0,n-1)]:p()-t(y);break;case"Home":a=t(u);break;case"End":a=t(x);break;case"PageUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+10)]:p()+t(y)*10;break;case"PageDown":a=t(s)?t(s)[Math.max(0,n-10)]:p()-t(y)*10;break}if(a===void 0)return;e.preventDefault();const d=E(a);d!==p()&&(se(d),e.currentTarget.dispatchEvent(new Event("change",{bubbles:!0})))}function dt(e){if(_()||e.pointerType==="mouse"&&e.button!==0)return;fe()?.(),e.preventDefault(),c(S,!0);const n=ze(e.clientX);se(n),U.set(G(n)),b()?.focus(),e.currentTarget instanceof Element&&"setPointerCapture"in e.currentTarget&&e.currentTarget.setPointerCapture(e.pointerId)}function ct(e){const n=ze(e.clientX);if(!t(S)){c(w,n,!0);return}se(n),U.set(G(n),{instant:!0})}function De(){t(S)&&(c(S,!1),c(w,null),b()&&b().dispatchEvent(new Event("change",{bubbles:!0})))}function pt(){_()||(c(ye,!0),C&&clearTimeout(C),C=setTimeout(()=>c(Se,!0),100))}function ft(){c(ye,!1),c(Se,!1),c(w,null),C&&clearTimeout(C)}async function vt(){_()||h()==="tooltip"||(c(ae,String(p()),!0),c(W,!0),await Dt(),t(ne)?.focus(),t(ne)?.select())}function He(){if(!t(W))return;const e=Number.parseFloat(t(ae));if(c(W,!1),!Number.isFinite(e))return;const n=E(e);se(n),b()&&b().dispatchEvent(new Event("change",{bubbles:!0}))}function mt(){c(W,!1)}function ht(e){e.key==="Enter"?(e.preventDefault(),He()):e.key==="Escape"&&(e.preventDefault(),mt())}Oe(()=>{t(S)||U.set(t(K))}),Oe(()=>{Me.set(t(ye)||t(S)?g:Ae)}),Ct(()=>{C&&clearTimeout(C)});var gt={get ref(){return b()},set ref(e=null){b(e),o()},get value(){return p()},set value(e=0){p(e),o()},get min(){return ue()},set min(e=0){ue(e),o()},get max(){return de()},set max(e=100){de(e),o()},get step(){return ce()},set step(e=1){ce(e),o()},get steps(){return Q()},set steps(e){Q(e),o()},get showSteps(){return pe()},set showSteps(e=!1){pe(e),o()},get showValue(){return Y()},set showValue(e=!1){Y(e),o()},get valuePosition(){return h()},set valuePosition(e="right"){h(e),o()},get appearance(){return z()},set appearance(e="default"){z(e),o()},get disabled(){return _()},set disabled(e=!1){_(e),o()},get onInteractionStart(){return fe()},set onInteractionStart(e){fe(e),o()},get onValueChange(){return ve()},set onValueChange(e){ve(e),o()},get oninput(){return me()},set oninput(e){me(e),o()},get onkeydown(){return he()},set onkeydown(e){he(e),o()},get onfocus(){return ge()},set onfocus(e){ge(e),o()},get onblur(){return be()},set onblur(e){be(e),o()},get formatValue(){return D()},set formatValue(e=String){D(e),o()},get class(){return $()},set class(e){$(e),o()},get"aria-label"(){return ee()},set"aria-label"(e){ee(e),o()},get"aria-invalid"(){return B()},set"aria-invalid"(e){B(e),o()},get"aria-valuetext"(){return we()},set"aria-valuetext"(e){we(e),o()},get"data-slot"(){return xe()},set"data-slot"(e="slider"){xe(e),o()},$set:Mt,$on:(e,n)=>Et(r,e,n)},T=jt(),Fe=ie(T);{var bt=e=>{Ne(e)};X(Fe,e=>{Y()&&(h()==="left"||h()==="top")&&e(bt)})}var Pe=V(Fe,2),Ee=ie(Pe);Rt(Ee,e=>({...Qe,type:"range",min:t(u),max:t(x),step:t(s)?"any":t(y),value:p(),disabled:_(),"aria-label":ee(),"aria-invalid":B(),"aria-valuenow":p(),"aria-valuetext":t(Ye),"data-slot":xe(),class:e,oninput:it,onkeydown:ut,onfocus:ot,onblur:lt}),[()=>F("peer pointer-events-none absolute inset-0 z-20 h-9 w-full cursor-ew-resize opacity-0 outline-none","aria-invalid:accent-danger aria-invalid:ring-1 aria-invalid:ring-danger/25",$())],void 0,void 0,"svelte-2rnmeq",!0),Ie(Ee,e=>b(e),()=>b());var k=V(Ee,2),qe=ie(k);{var wt=e=>{var n=Xt();let a;var d=Xe(n,!0);H((f,v)=>{P(n,"hidden",t(S)),a=q(n,"",a,{left:f,"font-variation-settings":"'wght' 500"}),Ze(d,v)},[()=>re(t(L)??0),()=>D()(t(w))]),Je(1,n,()=>Ft,()=>({tier:"fast",y:4,scale:.98})),Je(2,n,()=>qt,()=>({tier:"fast",y:4,scale:.98})),A(e,n)};X(qe,e=>{t(w)!==null&&t(Se)&&e(wt)})}var Re=V(qe,2),Te=V(Re,2);let Be;var Ve=V(Te,2);let We,Ke;var Le=V(Ve,2);{var xt=e=>{var n=At(),a=zt(n);Ht(a,16,()=>t(s),d=>d,(d,f)=>{var v=Zt();let m;H(l=>m=q(v,"",m,{left:l}),[()=>re(G(f))]),A(d,v)}),A(e,n)};X(Le,e=>{pe()&&t(s)&&e(xt)})}var Ue=V(Le,2);let Ge;oe(k),Ie(k,e=>te=e,()=>te),oe(Pe);var yt=V(Pe,2);{var _t=e=>{Ne(e)};X(yt,e=>{Y()&&(h()==="right"||h()==="bottom")&&e(_t)})}return oe(T),H((e,n,a,d,f,v,m,l,N)=>{P(T,"data-disabled",_()||void 0),P(T,"data-invalid",t(ke)||void 0),P(T,"data-pressed",t(S)||void 0),P(T,"data-appearance",z()),j(T,1,e,"svelte-2rnmeq"),j(Re,1,n,"svelte-2rnmeq"),j(Te,1,a,"svelte-2rnmeq"),Be=q(Te,"",Be,{width:d}),We=j(Ve,1,f,"svelte-2rnmeq",We,{"opacity-0":t(w)===null||t(S)}),Ke=q(Ve,"",Ke,{left:v,width:m}),j(Ue,1,l,"svelte-2rnmeq"),Ge=q(Ue,"",Ge,{left:N,width:`${Me.current}px`,height:`${Me.current}px`})},[()=>Z(F("flex w-full min-w-24 select-none touch-none overflow-visible",h()==="left"||h()==="right"?"flex-row items-center gap-2":"flex-col gap-1",_()&&"pointer-events-none opacity-50",$())),()=>Z(F("absolute inset-x-px top-[9px] h-[18px] overflow-hidden rounded-full border bg-transparent",z()==="overlay"?"border-transparent":"border-border")),()=>Z(F("absolute top-[9px] left-px h-[18px] rounded-full",z()==="overlay"?"bg-transparent":t(ke)?"bg-danger/30 dark:bg-danger/35":"bg-selected/50 dark:bg-accent/40")),()=>nt(U.current),()=>Z(F("pointer-events-none absolute top-[9px] h-[18px] rounded-full transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none",z()==="overlay"?"bg-transparent":"bg-accent/40")),()=>at(),()=>rt(),()=>Z(F("pointer-events-none absolute top-1/2 z-20 -translate-y-1/2 rounded-full border border-border bg-background shadow-(--elevation-raised)",t(_e)&&"outline outline-1 outline-focus-ring outline-offset-2 shadow-none",t(ke)&&"border-danger")),()=>tt(U.current)]),le("pointerenter",k,pt),le("pointerleave",k,ft),O("pointerdown",k,dt),O("pointermove",k,ct),O("pointerup",k,De),le("pointercancel",k,De),A(Ce,T),Nt(gt)}Tt(["keydown","click","pointerdown","pointermove","pointerup"]);const Qt=[{id:"slider-state-matrix",title:"Slider interaction states",states:["default","disabled","invalid","keyboard-focus","arrow-keys","home-end","hover-preview","hover-tooltip","drag-tooltip-hidden","synchronous-drag","spring-settle","inline-value-edit","discrete-steps","step-pips","semantic-track","semantic-thumb","transparent-overlay-track","compact","light","dark","reduced-motion","zoom-200","no-overflow","capture-hover-drag-200ms"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];Wt({id:"slider",source:"src/lib/components/ui/slider/slider.svelte",publicImport:"$lib/components/ui/slider",legacyImports:[],exports:["Slider","sliderMetadata"],category:"primitive",owner:"008-B",callers:["src/features/hud/components/HudHeader.svelte","src/lib/component-catalog/ChatPolishGeometryControls.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/SettingsCatalogPreview.svelte","src/lib/components/settings/AgentBackendSettings.svelte","src/lib/components/settings/NotificationSettings.svelte","src/lib/components/ui/ZoomPanViewport.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/slider/slider.test.ts",removalGate:"Retain while native range, pointer, keyboard, discrete step, and editing tests pass.",dynamicImports:[],fixtures:Qt});export{Jt as S};
1
+ import{t as kt,bo as i,bw as Mt,bp as Pt,b as Et}from"./CHWIPzMj.js";import{ai as Tt,bs as Vt,c5 as It,aD as t,ca as Oe,bj as Ct,a5 as ie,bS as V,bA as oe,b_ as H,aw as le,aj as O,W as A,bn as Nt,bV as I,c9 as M,bH as c,aA as o,bl as Xe,bO as Ze,a7 as At,ay as zt,aB as R,c0 as Dt}from"./3SdAC2_C.js";import{i as X}from"./DDtBtnNz.js";import{g as Ht}from"./Bqdjarag.js";import{S as je,n as Je,l as Ft,c as qt}from"./D_gp0b_i.js";import{b as Rt,e as F,c as Z,s as P,f as j,g as q,r as Bt,p as Wt}from"./B09v4S72.js";import{e as Kt}from"./yQuAS-d_.js";import{b as Ie}from"./Dn334wJv.js";var Lt=new Set(["$$slots","$$events","$$legacy","ref","value","min","max","step","steps","showSteps","showValue","valuePosition","appearance","disabled","onInteractionStart","onValueChange","oninput","onkeydown","onfocus","onblur","formatValue","class","aria-label","aria-invalid","aria-valuetext","data-slot"]),Ut=R('<input type="number" class="slider-value-input w-full min-w-0 rounded-(--shape-input-radius) border-b border-border bg-transparent text-foreground outline-none [text-align:inherit] svelte-2rnmeq"/>'),Gt=R('<button type="button" class="w-full min-w-0 cursor-text select-none rounded-(--shape-input-radius) text-inherit whitespace-nowrap [text-align:inherit]"> </button>'),Ot=R('<span data-slot="slider-value" class="inline-grid shrink-0 text-[13px] leading-none text-muted-foreground tabular-nums"><!></span>'),Xt=R('<output data-slot="slider-tooltip" class="pointer-events-none absolute top-[-20px] z-30 -translate-x-1/2 whitespace-nowrap rounded-(--shape-input-radius) surface-inverse px-2 py-1 text-xs tabular-nums" aria-hidden="true"> </output>'),Zt=R('<span aria-hidden="true" data-slot="slider-pip" class="pointer-events-none absolute top-1/2 z-10 size-1 -translate-x-1/2 -translate-y-1/2 rounded-full bg-muted-foreground/30"></span>'),jt=R('<div data-slot="slider-root"><!> <div class="relative min-w-0 flex-1 overflow-visible"><input/> <div data-slot="slider-track" role="presentation" class="slider-hit-area relative h-9 w-full cursor-ew-resize overflow-visible svelte-2rnmeq"><!> <span aria-hidden="true" data-slot="slider-track-background"></span> <span aria-hidden="true" data-slot="slider-fill"></span> <span aria-hidden="true" data-slot="slider-preview"></span> <!> <span aria-hidden="true" data-slot="slider-thumb"></span></div></div> <!></div>');function Jt(Ce,r){if(new.target)return kt({component:Jt,...Ce});Vt(r,!0);const Ne=e=>{var n=Ot();let a;var d=ie(n);{var f=m=>{var l=Ut();Bt(l),Ie(l,N=>c(ne,N),()=>t(ne)),H(()=>{P(l,"min",t(u)),P(l,"max",t(x)),P(l,"step",t(s)?"any":t(y)),P(l,"aria-label",ee())}),le("blur",l,He),O("keydown",l,ht),Kt(l,()=>t(ae),N=>c(ae,N)),A(m,l)},v=m=>{var l=Gt(),N=Xe(l,!0);H(St=>{l.disabled=_(),Ze(N,St)},[()=>D()(p())]),O("click",l,vt),A(m,l)};X(d,m=>{t(W)?m(f):m(v,-1)})}oe(n),H(()=>a=q(n,"",a,{"font-variation-settings":"'wght' 500",width:`${t($e)}ch`,"align-self":h()==="top"||h()==="bottom"?"center":void 0,"text-align":h()==="left"||h()==="right"?"right":"center"})),A(e,n)},g=20,Ae=16,J=(g-18)/2;let b=i(r,"ref",15,null),p=i(r,"value",15,0),ue=i(r,"min",7,0),de=i(r,"max",7,100),ce=i(r,"step",7,1),Q=i(r,"steps",7),pe=i(r,"showSteps",7,!1),Y=i(r,"showValue",7,!1),h=i(r,"valuePosition",7,"right"),z=i(r,"appearance",7,"default"),_=i(r,"disabled",7,!1),fe=i(r,"onInteractionStart",7),ve=i(r,"onValueChange",7),me=i(r,"oninput",7),he=i(r,"onkeydown",7),ge=i(r,"onfocus",7),be=i(r,"onblur",7),D=i(r,"formatValue",7,String),$=i(r,"class",7),ee=i(r,"aria-label",7),B=i(r,"aria-invalid",7),we=i(r,"aria-valuetext",7),xe=i(r,"data-slot",7,"slider"),Qe=Pt(r,Lt),te,ne=I(void 0),S=I(!1),ye=I(!1),_e=I(!1),W=I(!1),ae=I(""),w=I(null),Se=I(!1),C=null;const s=M(()=>{if(!Q()?.length)return null;const e=[...new Set(Q().filter(Number.isFinite))].sort((n,a)=>n-a);return e.length?e:null}),u=M(()=>t(s)?.[0]??Number(ue())),x=M(()=>t(s)?.[t(s).length-1]??Number(de())),y=M(()=>Math.max(Number(ce())||1,Number.EPSILON)),ke=M(()=>B()===!0||B()==="true"),Ye=M(()=>we()??D()(p())),$e=M(()=>{const e=t(s)??[t(u),t(x),E(t(u)+t(y)),E(t(x)-t(y))],n=d=>{const[f,v="0"]=String(d).split("e");return Math.max(0,(f.split(".")[1]?.length??0)-Number(v))},a=Math.min(12,Math.max(n(t(u)),n(t(y))));return e.reduce((d,f)=>{const v=String(f),m=D()(f),l=t(s)?v.length:f.toFixed(a).length;return Math.max(d,m.length,l+Math.max(0,m.length-v.length))},1)}),K=M(()=>G(p())),L=M(()=>t(w)===null?null:G(t(w))),U=new je(It(()=>t(K)),"moderate"),Me=new je(Ae,"fast");function et(e){return t(s)?t(s).reduce((n,a)=>Math.abs(a-e)<Math.abs(n-e)?a:n):e}function E(e){const n=Math.max(t(u),Math.min(t(x),e));if(t(s))return et(n);const a=t(u)+Math.round((n-t(u))/t(y))*t(y);return Number(Math.max(t(u),Math.min(t(x),a)).toFixed(12))}function G(e){return t(x)===t(u)?0:Math.max(0,Math.min(1,(e-t(u))/(t(x)-t(u))))}function re(e){return`calc(${e*100}% + ${g/2-e*g}px)`}function tt(e){return`calc(${e*100}% - ${e*g}px)`}function nt(e){return`calc(${e*100}% + ${g/2-J-e*g}px)`}function at(){return t(L)===null?"0px":t(w)===t(u)?`${J}px`:re(Math.min(t(K),t(L)))}function rt(){if(t(L)===null)return"0px";const e=re(t(K));if(t(w)===t(u))return`calc(${e} - ${J}px)`;if(t(w)===t(x))return`calc(100% - ${e} - ${J}px)`;const n=Math.abs(t(L)-t(K));return`calc(${n*100}% - ${n*g}px)`}function ze(e){const n=te.getBoundingClientRect(),a=te.offsetWidth||n.width;if(a<=g||n.width<=0)return t(u);const d=n.width/a,f=(e-n.left)/d,v=Math.max(0,Math.min(1,(f-g/2)/(a-g)));return E(t(u)+v*(t(x)-t(u)))}function st(e){const n=E(e);return n===p()?!1:(p(n),ve()?.(n),!0)}function se(e){if(!b())return;const n=b();n.value=String(e),n.dispatchEvent(new Event("input",{bubbles:!0}))}function it(e){const n=E(e.currentTarget.valueAsNumber);e.currentTarget.value=String(n),st(n),me()?.(e)}function ot(e){c(_e,e.currentTarget.matches(":focus-visible"),!0),ge()?.(e)}function lt(e){c(_e,!1),be()?.(e)}function ut(e){if(he()?.(e),e.defaultPrevented||_())return;const n=t(s)?.indexOf(E(p()))??-1;let a;switch(e.key){case"ArrowRight":case"ArrowUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+1)]:p()+t(y);break;case"ArrowLeft":case"ArrowDown":a=t(s)?t(s)[Math.max(0,n-1)]:p()-t(y);break;case"Home":a=t(u);break;case"End":a=t(x);break;case"PageUp":a=t(s)?t(s)[Math.min(t(s).length-1,n+10)]:p()+t(y)*10;break;case"PageDown":a=t(s)?t(s)[Math.max(0,n-10)]:p()-t(y)*10;break}if(a===void 0)return;e.preventDefault();const d=E(a);d!==p()&&(se(d),e.currentTarget.dispatchEvent(new Event("change",{bubbles:!0})))}function dt(e){if(_()||e.pointerType==="mouse"&&e.button!==0)return;fe()?.(),e.preventDefault(),c(S,!0);const n=ze(e.clientX);se(n),U.set(G(n)),b()?.focus(),e.currentTarget instanceof Element&&"setPointerCapture"in e.currentTarget&&e.currentTarget.setPointerCapture(e.pointerId)}function ct(e){const n=ze(e.clientX);if(!t(S)){c(w,n,!0);return}se(n),U.set(G(n),{instant:!0})}function De(){t(S)&&(c(S,!1),c(w,null),b()&&b().dispatchEvent(new Event("change",{bubbles:!0})))}function pt(){_()||(c(ye,!0),C&&clearTimeout(C),C=setTimeout(()=>c(Se,!0),100))}function ft(){c(ye,!1),c(Se,!1),c(w,null),C&&clearTimeout(C)}async function vt(){_()||h()==="tooltip"||(c(ae,String(p()),!0),c(W,!0),await Dt(),t(ne)?.focus(),t(ne)?.select())}function He(){if(!t(W))return;const e=Number.parseFloat(t(ae));if(c(W,!1),!Number.isFinite(e))return;const n=E(e);se(n),b()&&b().dispatchEvent(new Event("change",{bubbles:!0}))}function mt(){c(W,!1)}function ht(e){e.key==="Enter"?(e.preventDefault(),He()):e.key==="Escape"&&(e.preventDefault(),mt())}Oe(()=>{t(S)||U.set(t(K))}),Oe(()=>{Me.set(t(ye)||t(S)?g:Ae)}),Ct(()=>{C&&clearTimeout(C)});var gt={get ref(){return b()},set ref(e=null){b(e),o()},get value(){return p()},set value(e=0){p(e),o()},get min(){return ue()},set min(e=0){ue(e),o()},get max(){return de()},set max(e=100){de(e),o()},get step(){return ce()},set step(e=1){ce(e),o()},get steps(){return Q()},set steps(e){Q(e),o()},get showSteps(){return pe()},set showSteps(e=!1){pe(e),o()},get showValue(){return Y()},set showValue(e=!1){Y(e),o()},get valuePosition(){return h()},set valuePosition(e="right"){h(e),o()},get appearance(){return z()},set appearance(e="default"){z(e),o()},get disabled(){return _()},set disabled(e=!1){_(e),o()},get onInteractionStart(){return fe()},set onInteractionStart(e){fe(e),o()},get onValueChange(){return ve()},set onValueChange(e){ve(e),o()},get oninput(){return me()},set oninput(e){me(e),o()},get onkeydown(){return he()},set onkeydown(e){he(e),o()},get onfocus(){return ge()},set onfocus(e){ge(e),o()},get onblur(){return be()},set onblur(e){be(e),o()},get formatValue(){return D()},set formatValue(e=String){D(e),o()},get class(){return $()},set class(e){$(e),o()},get"aria-label"(){return ee()},set"aria-label"(e){ee(e),o()},get"aria-invalid"(){return B()},set"aria-invalid"(e){B(e),o()},get"aria-valuetext"(){return we()},set"aria-valuetext"(e){we(e),o()},get"data-slot"(){return xe()},set"data-slot"(e="slider"){xe(e),o()},$set:Mt,$on:(e,n)=>Et(r,e,n)},T=jt(),Fe=ie(T);{var bt=e=>{Ne(e)};X(Fe,e=>{Y()&&(h()==="left"||h()==="top")&&e(bt)})}var Pe=V(Fe,2),Ee=ie(Pe);Rt(Ee,e=>({...Qe,type:"range",min:t(u),max:t(x),step:t(s)?"any":t(y),value:p(),disabled:_(),"aria-label":ee(),"aria-invalid":B(),"aria-valuenow":p(),"aria-valuetext":t(Ye),"data-slot":xe(),class:e,oninput:it,onkeydown:ut,onfocus:ot,onblur:lt}),[()=>F("peer pointer-events-none absolute inset-0 z-20 h-9 w-full cursor-ew-resize opacity-0 outline-none","aria-invalid:accent-danger aria-invalid:ring-1 aria-invalid:ring-danger/25",$())],void 0,void 0,"svelte-2rnmeq",!0),Ie(Ee,e=>b(e),()=>b());var k=V(Ee,2),qe=ie(k);{var wt=e=>{var n=Xt();let a;var d=Xe(n,!0);H((f,v)=>{P(n,"hidden",t(S)),a=q(n,"",a,{left:f,"font-variation-settings":"'wght' 500"}),Ze(d,v)},[()=>re(t(L)??0),()=>D()(t(w))]),Je(1,n,()=>Ft,()=>({tier:"fast",y:4,scale:.98})),Je(2,n,()=>qt,()=>({tier:"fast",y:4,scale:.98})),A(e,n)};X(qe,e=>{t(w)!==null&&t(Se)&&e(wt)})}var Re=V(qe,2),Te=V(Re,2);let Be;var Ve=V(Te,2);let We,Ke;var Le=V(Ve,2);{var xt=e=>{var n=At(),a=zt(n);Ht(a,16,()=>t(s),d=>d,(d,f)=>{var v=Zt();let m;H(l=>m=q(v,"",m,{left:l}),[()=>re(G(f))]),A(d,v)}),A(e,n)};X(Le,e=>{pe()&&t(s)&&e(xt)})}var Ue=V(Le,2);let Ge;oe(k),Ie(k,e=>te=e,()=>te),oe(Pe);var yt=V(Pe,2);{var _t=e=>{Ne(e)};X(yt,e=>{Y()&&(h()==="right"||h()==="bottom")&&e(_t)})}return oe(T),H((e,n,a,d,f,v,m,l,N)=>{P(T,"data-disabled",_()||void 0),P(T,"data-invalid",t(ke)||void 0),P(T,"data-pressed",t(S)||void 0),P(T,"data-appearance",z()),j(T,1,e,"svelte-2rnmeq"),j(Re,1,n,"svelte-2rnmeq"),j(Te,1,a,"svelte-2rnmeq"),Be=q(Te,"",Be,{width:d}),We=j(Ve,1,f,"svelte-2rnmeq",We,{"opacity-0":t(w)===null||t(S)}),Ke=q(Ve,"",Ke,{left:v,width:m}),j(Ue,1,l,"svelte-2rnmeq"),Ge=q(Ue,"",Ge,{left:N,width:`${Me.current}px`,height:`${Me.current}px`})},[()=>Z(F("flex w-full min-w-24 select-none touch-none overflow-visible",h()==="left"||h()==="right"?"flex-row items-center gap-2":"flex-col gap-1",_()&&"pointer-events-none opacity-50",$())),()=>Z(F("absolute inset-x-px top-[9px] h-[18px] overflow-hidden rounded-full border bg-transparent",z()==="overlay"?"border-transparent":"border-border")),()=>Z(F("absolute top-[9px] left-px h-[18px] rounded-full",z()==="overlay"?"bg-transparent":t(ke)?"bg-danger/30 dark:bg-danger/35":"bg-selected/50 dark:bg-accent/40")),()=>nt(U.current),()=>Z(F("pointer-events-none absolute top-[9px] h-[18px] rounded-full transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none",z()==="overlay"?"bg-transparent":"bg-accent/40")),()=>at(),()=>rt(),()=>Z(F("pointer-events-none absolute top-1/2 z-20 -translate-y-1/2 rounded-full border border-border bg-background shadow-(--elevation-raised)",t(_e)&&"outline outline-1 outline-focus-ring outline-offset-2 shadow-none",t(ke)&&"border-danger")),()=>tt(U.current)]),le("pointerenter",k,pt),le("pointerleave",k,ft),O("pointerdown",k,dt),O("pointermove",k,ct),O("pointerup",k,De),le("pointercancel",k,De),A(Ce,T),Nt(gt)}Tt(["keydown","click","pointerdown","pointermove","pointerup"]);const Qt=[{id:"slider-state-matrix",title:"Slider interaction states",states:["default","disabled","invalid","keyboard-focus","arrow-keys","home-end","hover-preview","hover-tooltip","drag-tooltip-hidden","synchronous-drag","spring-settle","inline-value-edit","discrete-steps","step-pips","semantic-track","semantic-thumb","transparent-overlay-track","compact","light","dark","reduced-motion","zoom-200","no-overflow","capture-hover-drag-200ms"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];Wt({id:"slider",source:"src/lib/components/ui/slider/slider.svelte",publicImport:"$lib/components/ui/slider",legacyImports:[],exports:["Slider","sliderMetadata"],category:"primitive",owner:"008-B",callers:["src/features/hud/components/HudHeader.svelte","src/lib/component-catalog/ChatPolishGeometryControls.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/SettingsCatalogPreview.svelte","src/lib/components/settings/AgentBackendSettings.svelte","src/lib/components/settings/NotificationSettings.svelte","src/lib/components/ui/ZoomPanViewport.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/slider/slider.test.ts",removalGate:"Retain while native range, pointer, keyboard, discrete step, and editing tests pass.",dynamicImports:[],fixtures:Qt});export{Jt as S};
@@ -1 +1 @@
1
- import{Jt as o,mh as C,nX as E,nA as L,Jy as W}from"./eqIwOdFV.js";import{w as z}from"./Dms_DO28.js";import{dG as b,dK as f}from"./TE5M669U.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),J=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),K=o.createSelector((t,e)=>a.select(t,e).nodes.map),M=o.createSelector((t,e)=>a.select(t,e).isLoading),R=o.createSelector((t,e)=>a.select(t,e).isInitialized),q=o.createSelector((t,e)=>a.select(t,e).error),A=o.createSelector((t,e)=>a.select(t,e).fileCount),B=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=b.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),O=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const V=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),X=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,n.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=v[i],d=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{q as a,A as b,B as c,O as d,R as e,M as f,K as g,J as h,D as i,a as j,U as k,Q as l,V as m,X as n,T as o,g as s};
1
+ import{Jt as o,mh as C,nX as E,nA as L,Jy as W}from"./DJM-jC4D.js";import{w as z}from"./Dms_DO28.js";import{dG as b,dK as f}from"./CB6JpnWC.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const n=E(t.fileExplorer.searches,s);return n?.workspaceId===e?n:void 0}),J=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?E(s.nodes,s.rootPath)??null:null}),K=o.createSelector((t,e)=>a.select(t,e).nodes.map),M=o.createSelector((t,e)=>a.select(t,e).isLoading),R=o.createSelector((t,e)=>a.select(t,e).isInitialized),q=o.createSelector((t,e)=>a.select(t,e).error),A=o.createSelector((t,e)=>a.select(t,e).fileCount),B=o.createSelector((t,e)=>a.select(t,e).gitStatus),g=o.createSelector((t,e)=>{const s=b.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),O=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:g.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:g.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const V=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),X=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),Q=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(n=>n!==s.workspacePath)}),T=o.createSelector((t,e)=>{const s=g.select(t,e);if(!s)return!1;const n=a.select(t,e),p=f.select(t,e);return n.workspacePath!==s?!0:n.isLoading?!1:n.isInitialized?p?.type==="remote"&&!n.isRemoteInitialized:!0}),F=new WeakMap,U=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const n=E(s.nodes,s.rootPath);if(!n)return[];const p=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,n.children,p,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",c=v[i],d=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:c&&c.length>0?c:void 0,gitStatus:d,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=c&&c.length>0||d!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...c&&c.length>0?{agentEdits:c}:{},...d!==void 0?{gitStatus:d}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{q as a,A as b,B as c,O as d,R as e,M as f,K as g,J as h,D as i,a as j,U as k,Q as l,V as m,X as n,T as o,g as s};
@@ -1 +1 @@
1
- import{t as R,bo as r,bm as T,bw as U,b as X}from"./2CQlphfn.js";import{bs as Y,ca as L,bj as Z,aw as $,$ as ee,a5 as te,ay as q,bS as ne,a7 as j,bf as N,W as m,aD as f,c9 as re,bA as oe,bH as ae,b_ as se,bn as le,bV as ie,aA as o,aB as W}from"./3SdAC2_C.js";import{s as V}from"./DTPgmjai.js";import{c as S}from"./CON-zxWG.js";import{f as ue}from"./DhZiRE53.js";import{b as ge}from"./Dn334wJv.js";import{q as ce,l as de,d as me,M as fe}from"./BKSCrb1m.js";import"./DNxs15P5.js";let l=null;var pe=W("<!> <!>",1),Ce=W("<div><!></div>");function be(A,t){if(new.target)return R({component:be,...A});Y(t,!0);let n=r(t,"open",15,!1),p=r(t,"align",7,"start"),C=r(t,"side",7,"bottom"),b=r(t,"portal",7,!0),_=r(t,"collisionPadding",7,8),h=r(t,"alignIconColumn",7,!0),v=r(t,"trigger",7),M=r(t,"content",7),w=r(t,"contentClass",7,""),P=r(t,"subContentClass",7),x=r(t,"contentMaxHeight",7),y=r(t,"onOpenChangeComplete",7),D=r(t,"class",7,""),c=ie(null);function z(){const e=n();queueMicrotask(()=>{n()===e&&n(!e)})}function s(){n(!1)}function F(e){if(!n()||e.button!==0)return;const a=e.target;a instanceof Element&&(f(c)?.contains(a)||a.closest('[role="menu"]')||(s(),a.closest("[data-dropdown-menu-trigger]")||queueMicrotask(()=>{n()||f(c)?.querySelector("[data-dropdown-menu-trigger]")?.focus()})))}L(()=>{if(!n()){l===s&&(l=null);return}const e=l;l=s,e&&e!==s&&e()}),L(()=>{if(n())return ce(()=>!1)}),Z(()=>{l===s&&(l=null)});var G={get open(){return n()},set open(e=!1){n(e),o()},get align(){return p()},set align(e="start"){p(e),o()},get side(){return C()},set side(e="bottom"){C(e),o()},get portal(){return b()},set portal(e=!0){b(e),o()},get collisionPadding(){return _()},set collisionPadding(e=8){_(e),o()},get alignIconColumn(){return h()},set alignIconColumn(e=!0){h(e),o()},get trigger(){return v()},set trigger(e){v(e),o()},get content(){return M()},set content(e){M(e),o()},get contentClass(){return w()},set contentClass(e=""){w(e),o()},get subContentClass(){return P()},set subContentClass(e){P(e),o()},get contentMaxHeight(){return x()},set contentMaxHeight(e){x(e),o()},get onOpenChangeComplete(){return y()},set onOpenChangeComplete(e){y(e),o()},get class(){return D()},set class(e=""){D(e),o()},$set:U,$on:(e,a)=>X(t,e,a)},i=Ce();$("pointerdown",ee,F);var J=te(i);return S(J,()=>fe,(e,a)=>{a(e,{get onOpenChangeComplete(){return y()},get open(){return n()},set open(H){n(H)},children:(H,_e)=>{var E=pe(),B=q(E);{const I=(u,g)=>{let O=()=>(g?.()).props;var k=j(),d=q(k);V(d,()=>v()??N,()=>({toggle:z,open:n(),props:O()})),m(u,k)};S(B,()=>de,(u,g)=>{g(u,{child:I,$$slots:{child:!0}})})}var K=ne(B,2);{let I=re(()=>T.ui_dropdownMenu_ariaLabel());S(K,()=>me,(u,g)=>{g(u,{get align(){return p()},get side(){return C()},get portal(){return b()},get collisionPadding(){return _()},get alignIconColumn(){return h()},get subContentClass(){return P()},preventScroll:!1,get class(){return w()},get maxHeight(){return x()},get"aria-label"(){return f(I)},children:(O,k)=>{var d=j(),Q=q(d);V(Q,()=>M()??N,()=>({close:s})),m(O,d)},$$slots:{default:!0}})})}m(H,E)},$$slots:{default:!0}})}),oe(i),ge(i,e=>ae(c,e),()=>f(c)),se(()=>ue(i,1,`relative inline-block ${D()??""}`)),m(A,i),le(G)}export{be as D};
1
+ import{t as R,bo as r,bm as T,bw as U,b as X}from"./CHWIPzMj.js";import{bs as Y,ca as L,bj as Z,aw as $,$ as ee,a5 as te,ay as q,bS as ne,a7 as j,bf as N,W as m,aD as f,c9 as re,bA as oe,bH as ae,b_ as se,bn as le,bV as ie,aA as o,aB as W}from"./3SdAC2_C.js";import{s as V}from"./Bx3lRAzK.js";import{c as S}from"./C_VUI8Os.js";import{f as ue}from"./B09v4S72.js";import{b as ge}from"./Dn334wJv.js";import{q as ce,l as de,d as me,M as fe}from"./BGpvxEza.js";import"./BVhmKG23.js";let l=null;var pe=W("<!> <!>",1),Ce=W("<div><!></div>");function be(A,t){if(new.target)return R({component:be,...A});Y(t,!0);let n=r(t,"open",15,!1),p=r(t,"align",7,"start"),C=r(t,"side",7,"bottom"),b=r(t,"portal",7,!0),_=r(t,"collisionPadding",7,8),h=r(t,"alignIconColumn",7,!0),v=r(t,"trigger",7),M=r(t,"content",7),w=r(t,"contentClass",7,""),P=r(t,"subContentClass",7),x=r(t,"contentMaxHeight",7),y=r(t,"onOpenChangeComplete",7),D=r(t,"class",7,""),c=ie(null);function z(){const e=n();queueMicrotask(()=>{n()===e&&n(!e)})}function s(){n(!1)}function F(e){if(!n()||e.button!==0)return;const a=e.target;a instanceof Element&&(f(c)?.contains(a)||a.closest('[role="menu"]')||(s(),a.closest("[data-dropdown-menu-trigger]")||queueMicrotask(()=>{n()||f(c)?.querySelector("[data-dropdown-menu-trigger]")?.focus()})))}L(()=>{if(!n()){l===s&&(l=null);return}const e=l;l=s,e&&e!==s&&e()}),L(()=>{if(n())return ce(()=>!1)}),Z(()=>{l===s&&(l=null)});var G={get open(){return n()},set open(e=!1){n(e),o()},get align(){return p()},set align(e="start"){p(e),o()},get side(){return C()},set side(e="bottom"){C(e),o()},get portal(){return b()},set portal(e=!0){b(e),o()},get collisionPadding(){return _()},set collisionPadding(e=8){_(e),o()},get alignIconColumn(){return h()},set alignIconColumn(e=!0){h(e),o()},get trigger(){return v()},set trigger(e){v(e),o()},get content(){return M()},set content(e){M(e),o()},get contentClass(){return w()},set contentClass(e=""){w(e),o()},get subContentClass(){return P()},set subContentClass(e){P(e),o()},get contentMaxHeight(){return x()},set contentMaxHeight(e){x(e),o()},get onOpenChangeComplete(){return y()},set onOpenChangeComplete(e){y(e),o()},get class(){return D()},set class(e=""){D(e),o()},$set:U,$on:(e,a)=>X(t,e,a)},i=Ce();$("pointerdown",ee,F);var J=te(i);return S(J,()=>fe,(e,a)=>{a(e,{get onOpenChangeComplete(){return y()},get open(){return n()},set open(H){n(H)},children:(H,_e)=>{var E=pe(),B=q(E);{const I=(u,g)=>{let O=()=>(g?.()).props;var k=j(),d=q(k);V(d,()=>v()??N,()=>({toggle:z,open:n(),props:O()})),m(u,k)};S(B,()=>de,(u,g)=>{g(u,{child:I,$$slots:{child:!0}})})}var K=ne(B,2);{let I=re(()=>T.ui_dropdownMenu_ariaLabel());S(K,()=>me,(u,g)=>{g(u,{get align(){return p()},get side(){return C()},get portal(){return b()},get collisionPadding(){return _()},get alignIconColumn(){return h()},get subContentClass(){return P()},preventScroll:!1,get class(){return w()},get maxHeight(){return x()},get"aria-label"(){return f(I)},children:(O,k)=>{var d=j(),Q=q(d);V(Q,()=>M()??N,()=>({close:s})),m(O,d)},$$slots:{default:!0}})})}m(H,E)},$$slots:{default:!0}})}),oe(i),ge(i,e=>ae(c,e),()=>f(c)),se(()=>ue(i,1,`relative inline-block ${D()??""}`)),m(A,i),le(G)}export{be as D};
@@ -1,2 +1,2 @@
1
- import{bm as t}from"./2CQlphfn.js";function p(a,e){if(!e)return a;const s=({not_started:t.tiptap_taskStatus_notStarted_label,todo:t.tiptap_taskStatus_notStarted_label,waiting:t.tiptap_taskStatus_waiting_label,discussion_needed:t.tiptap_taskStatus_discussionNeeded_label,blocked:t.tiptap_taskStatus_blocked_label,in_progress:t.tiptap_taskStatus_inProgress_label,"in-progress":t.tiptap_taskStatus_inProgress_label,review_required:t.tiptap_taskStatus_reviewRequired_label,complete:t.tiptap_taskStatus_complete_label,done:t.tiptap_taskStatus_complete_label,cancelled:t.tiptap_taskStatus_cancelled_label}[e]??t.tiptap_taskStatus_unknown_label)();return`${a}
1
+ import{bm as t}from"./CHWIPzMj.js";function p(a,e){if(!e)return a;const s=({not_started:t.tiptap_taskStatus_notStarted_label,todo:t.tiptap_taskStatus_notStarted_label,waiting:t.tiptap_taskStatus_waiting_label,discussion_needed:t.tiptap_taskStatus_discussionNeeded_label,blocked:t.tiptap_taskStatus_blocked_label,in_progress:t.tiptap_taskStatus_inProgress_label,"in-progress":t.tiptap_taskStatus_inProgress_label,review_required:t.tiptap_taskStatus_reviewRequired_label,complete:t.tiptap_taskStatus_complete_label,done:t.tiptap_taskStatus_complete_label,cancelled:t.tiptap_taskStatus_cancelled_label}[e]??t.tiptap_taskStatus_unknown_label)();return`${a}
2
2
  ${t.tiptap_taskStatus_status_tooltip({status:s})}`}export{p as g};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CfrT9tcw.js","/app/immutable/chunks/2CQlphfn.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/jRZT2QjD.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/ByjFf28U.js","/app/immutable/chunks/DhZiRE53.js","/app/immutable/chunks/DTPgmjai.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BvR4li8f.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Bf_h69U3.js","/app/immutable/chunks/Bn7ZmTkF.js","/app/immutable/chunks/BAduOJD2.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CON-zxWG.js","/app/immutable/chunks/DzCaG8dx.js","/app/immutable/chunks/Be253aOc.js","/app/immutable/chunks/Gw1t2Srm.js","/app/immutable/chunks/eqIwOdFV.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D22DhEZM.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/B16ZhAkF.js","/app/immutable/chunks/DsNGTbSH.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/TE5M669U.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CH6hoQCh.js","/app/immutable/chunks/DK-gr9PF.js","/app/immutable/chunks/Cn-uVT14.js","/app/immutable/chunks/Bjpdj-Rz.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BgXHwBod.js","/app/immutable/chunks/jBPLh4Hv.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/BH0cA3lf.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CDK1PUhb.js"])))=>i.map(i=>d[i]);
2
- var em=Object.defineProperty;var Kl=n=>{throw TypeError(n)};var tm=(n,e,t)=>e in n?em(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var tt=(n,e,t)=>tm(n,typeof e!="symbol"?e+"":e,t),nm=(n,e,t)=>e.has(n)||Kl("Cannot "+t);var Fn=(n,e,t)=>(nm(n,e,"read from private field"),t?t.call(n):e.get(n)),$i=(n,e,t)=>e.has(n)?Kl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t);import{t as Wt,bo as L,bw as jt,b as Kt,bp as rm,bm as se,bq as im,bs as sm,_ as Hi}from"./2CQlphfn.js";import{bs as Ut,b_ as ie,W as K,bn as qt,aA as P,aC as Zu,br as la,bb as Zr,c3 as wn,aG as om,bk as ed,a7 as wr,ay as Bt,c0 as td,a5 as ye,aD as p,bA as ue,bS as oe,aw as am,bH as me,c9 as $,bV as qe,aB as te,ai as io,ca as bt,aj as Kn,bl as Me,bO as ge,bo as Ka,bj as nd,be as rd,b$ as id,bf as lm,c5 as vn}from"./3SdAC2_C.js";import{c as Lo}from"./CON-zxWG.js";import{s as St,f as pn,c as ca,b as cm,g as hi,e as um}from"./DhZiRE53.js";import{b as Er}from"./Dn334wJv.js";import{i as dm}from"./DjBfsgFx.js";import{d2 as fm,aF as hm,aT as Ul}from"./DWx-rRFl.js";import{a as pm}from"./CC7to1B5.js";import{aT as mm,aB as gm,ao as ym,aw as bm,ab as vm,f as nn,ae as sd,a1 as km}from"./BvR4li8f.js";import{i as Se}from"./ByjFf28U.js";import{F as tn,bb as xm,bv as Ua,bh as od,v as wm,bE as Sm,d3 as Cm,aI as ql,bg as vr,bn as Sr,cZ as ad,cW as Mm,cn as ld,cK as cd,ak as Em,av as ud,ay as Jl,ap as Tm,aj as Am,as as Nm,cX as Om,aZ as Im,aN as Po,co as Rm,bx as Dm,cb as Lm,cy as Gl,Y as Pm,cH as _m,at as Bm,bU as zm,aq as $m,c7 as Hm,bN as Fm,c_ as Vm,al as Wm,bl as jm,bF as Km,a$ as Um,d2 as qm,am as Jm,bS as Gm,aT as Xm,b0 as Ym,c1 as Qm,bd as Zm,cx as eg,cD as tg,bR as ng,bo as rg,bi as Xl}from"./B16ZhAkF.js";import{s as ig}from"./DTPgmjai.js";import{e as sg}from"./DhPOXvW2.js";import{b as og,V as Yl,c as ag,p as lg,m as cg,s as ug}from"./BxsHp3SH.js";import{h as dg}from"./Bn7ZmTkF.js";import{g as kr,i as fg}from"./Bf_h69U3.js";import{L as hg,S as pg,T as dd}from"./BIcRvrKV.js";import{n as mg,l as ps}from"./Be253aOc.js";import{h as gg}from"./a3l5znCa.js";import{bq as yg}from"./eqIwOdFV.js";import{g as bg}from"./RKhqePYS.js";import{c as qa,l as pe}from"./ChTqQfQN.js";import{n as Ql,l as vg,c as kg}from"./DsNGTbSH.js";import{$ as fd,a0 as xg,p as ua,aO as wg,am as Sg,a1 as Cg,e8 as Mg,a9 as Eg}from"./TE5M669U.js";import{i as cn,M as Tg,D as Ag,s as _o,a as Ng,p as lr}from"./CVmi7DTf.js";import{A as Og,b as Ig}from"./C62iVnTg.js";import{P as Rg}from"./BIx2KRjJ.js";import{a as hd}from"./DNxs15P5.js";import{g as Zl}from"./q7CfEA0Z.js";import{H as Dg}from"./Bqd7fdCF.js";import{q as Lg}from"./BKSCrb1m.js";import{b as Pg,P as _g}from"./4K9ZZSJu.js";var Bg=Zu('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"></path></svg>');function pd(n,e){if(new.target)return Wt({component:pd,...n});Ut(e,!0);let t=L(e,"size",7,16),r=L(e,"class",7,"");var i={get size(){return t()},set size(o=16){t(o),P()},get class(){return r()},set class(o=""){r(o),P()},$set:jt,$on:(o,a)=>Kt(e,o,a)},s=Bg();return ie(()=>{St(s,"width",t()),St(s,"height",t()),pn(s,0,ca(r()))}),K(n,s),qt(i)}var ec=Object.defineProperty,zg=(n,e)=>{let t={};for(var r in n)ec(t,r,{get:n[r],enumerable:!0});return ec(t,Symbol.toStringTag,{value:"Module"}),t};function vt(n){this.content=n}vt.prototype={constructor:vt,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,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new vt(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new vt(t)},addToStart:function(n,e){return new vt([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new vt(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new vt(i)},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=vt.from(n),n.size?new vt(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=vt.from(n),n.size?new vt(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=vt.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}};vt.from=function(n){if(n instanceof vt)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new vt(e)};function md(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,a=s.text,l=0;for(;o[l]==a[l];l++)t++;return l&&l<o.length&&l<a.length&&bd(o.charCodeAt(l-1))&&yd(o.charCodeAt(l))&&t--,t}if(i.content.size||s.content.size){let o=md(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function gd(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),a=e.child(--s),l=o.nodeSize;if(o==a){t-=l,r-=l;continue}if(!o.sameMarkup(a))return{a:t,b:r};if(o.isText&&o.text!=a.text){let c=o.text,u=a.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d<c.length&&bd(c.charCodeAt(d-1))&&yd(c.charCodeAt(d))&&(t++,r++),{a:t,b:r}}if(o.content.size||a.content.size){let c=gd(o.content,a.content,t-1,r-1);if(c)return c}t-=l,r-=l}}function yd(n){return n>=56320&&n<57344}function bd(n){return n>=55296&&n<56320}class M{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,i=0,s){for(let o=0,a=0;a<t;o++){let l=this.content[o],c=a+l.nodeSize;if(c>e&&r(l,i+a,s||null,o)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new M(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let a=this.content[s],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),i+=a.nodeSize),o=l}return new M(r,i)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new M(i,s)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(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 i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return md(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return gd(this,e,t,r)}findIndex(e){if(e==0)return Fi(0,e);if(e==this.size)return Fi(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 i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Fi(t+1,s):Fi(t,r);r=s}}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 M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return M.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new M(t||e,r)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const Bo={index:0,offset:0};function Fi(n,e){return Bo.index=n,Bo.offset=e,Bo}function ms(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(!ms(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!ms(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Le=class da{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}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&&ms(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`);return r.create(t.attrs)}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 da.none;if(e instanceof da)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};Le.none=[];class pi extends Error{}class W{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=kd(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new W(r,this.openStart,this.openEnd)}removeBetween(e,t){return new W(vd(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 W.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new W(M.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new W(e,r,i)}}W.empty=new W(M.empty,0,0);function vd(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:a}=n.findIndex(t);if(i==e||s.isText){if(a!=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,s.copy(vd(s.content,e-i-1,t-i-1)))}function kd(n,e,t,r,i,s){let{index:o,offset:a}=n.findIndex(e),l=n.maybeChild(o);if(a==e||l.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=kd(l.content,e-a-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,l);return c&&n.replaceChild(o,l.copy(c))}function $g(n,e,t){if(t.openStart>n.depth)throw new pi("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new pi("Inconsistent open depths");return xd(n,e,t,0)}function xd(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=xd(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,a=o.content;return Yn(o,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=Hg(t,n);return Yn(s,Sd(n,o,a,e,r))}else return Yn(s,gs(n,e,r))}function wd(n,e){if(!e.type.compatibleContent(n.type))throw new pi("Cannot join "+e.type.name+" onto "+n.type.name)}function fa(n,e,t){let r=n.node(t);return wd(r,e.node(t)),r}function Xn(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 ei(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(Xn(n.nodeAfter,r),s++));for(let a=s;a<o;a++)Xn(i.child(a),r);e&&e.depth==t&&e.textOffset&&Xn(e.nodeBefore,r)}function Yn(n,e){if(!n.type.validContent(e))throw new pi("Invalid content for node "+n.type.name);return n.copy(e)}function Sd(n,e,t,r,i){let s=n.depth>i&&fa(n,e,i+1),o=r.depth>i&&fa(t,r,i+1),a=[];return ei(null,n,i,a),s&&o&&e.index(i)==t.index(i)?(wd(s,o),Xn(Yn(s,Sd(n,e,t,r,i+1)),a)):(s&&Xn(Yn(s,gs(n,e,i+1)),a),ei(e,t,i,a),o&&Xn(Yn(o,gs(t,r,i+1)),a)),ei(r,null,i,a),new M(a)}function gs(n,e,t){let r=[];if(ei(null,n,t,r),n.depth>t){let i=fa(n,e,t+1);Xn(Yn(i,gs(n,e,t+1)),r)}return ei(e,null,t,r),new M(r)}function Hg(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(M.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class mi{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],i=e.child(t);return r?e.child(t).cut(r):i}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],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Le.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].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 ys(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=[],i=0,s=t;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(s),c=s-l;if(r.push(o,a,i+l),!c||(o=o.child(a),o.isText))break;s=c-1,i+=l+1}return new mi(t,r,s)}static resolveCached(e,t){let r=tc.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==t)return o}else tc.set(e,r=new Fg);let i=r.elts[r.i]=mi.resolve(e,t);return r.i=(r.i+1)%Vg,i}}class Fg{constructor(){this.elts=[],this.i=0}}const Vg=12,tc=new WeakMap;class ys{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 Wg=Object.create(null);let In=class ha{constructor(e,t,r,i=Le.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||M.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,i=0){this.content.nodesBetween(e,t,r,i,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,i){return this.content.textBetween(e,t,r,i)}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&&ms(this.attrs,t||e.defaultAttrs||Wg)&&Le.sameSet(this.marks,r||Le.none)}copy(e=null){return e==this.content?this:new ha(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ha(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 W.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),a=i.start(o),c=i.node(o).content.cut(i.pos-a,s.pos-a);return new W(c,i.depth-o,s.depth-o)}replace(e,t,r){return $g(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+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 i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return mi.resolveCached(this,e)}resolveNoCache(e){return mi.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}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()+")"),Cd(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=M.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<s;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.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),rc(this.type.attrs,this.attrs,"node",this.type.name);let e=Le.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];rc(r.type.attrs,r.attrs,"mark",r.type.name),e=r.addToSet(e)}if(!Le.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 i=M.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};In.prototype.text=void 0;const nc=(()=>{let{stack:n}=new Error("/");if(!n||!/\n\s*at\s/.test(n))return t=>t;let e=Object.create(null);return t=>(e[t],t)})();class bs extends In{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Cd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return nc(this.text.slice(e,t))}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new bs(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new bs(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(nc(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 Cd(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function rc(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class er{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new jg(e,t);if(r.next==null)return er.empty;let i=Md(r);r.next&&r.err("Unexpected trailing text");let s=Yg(Xg(i));return Qg(s,r),s}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 i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}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 i=[this];function s(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return M.from(a.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())&&i.indexOf(d)==-1){i.push(d);let f=s(d,a.concat(u));if(f)return f}}return null}return s(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 i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let a=i;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:a,next:l}=s.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.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 i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CzU9DzbS.js","/app/immutable/chunks/CHWIPzMj.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/DDfMifm6.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DDtBtnNz.js","/app/immutable/chunks/B09v4S72.js","/app/immutable/chunks/Bx3lRAzK.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DSQXi-HI.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Bqdjarag.js","/app/immutable/chunks/QgUSWdkO.js","/app/immutable/chunks/DxTOze69.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C_VUI8Os.js","/app/immutable/chunks/DPbAP8qP.js","/app/immutable/chunks/ZUA6bo0t.js","/app/immutable/chunks/CeOa9B5I.js","/app/immutable/chunks/DJM-jC4D.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/C_a7D1qz.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/Bm1YRNX5.js","/app/immutable/chunks/D_gp0b_i.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CB6JpnWC.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BWP_R2MA.js","/app/immutable/chunks/Jy2VtQ-j.js","/app/immutable/chunks/tOpgiK5L.js","/app/immutable/chunks/BAaqzMEP.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CoCpxnqY.js","/app/immutable/chunks/eapM1N3E.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CuKET43j.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/AX9GlL7f.js"])))=>i.map(i=>d[i]);
2
+ var em=Object.defineProperty;var Kl=n=>{throw TypeError(n)};var tm=(n,e,t)=>e in n?em(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var tt=(n,e,t)=>tm(n,typeof e!="symbol"?e+"":e,t),nm=(n,e,t)=>e.has(n)||Kl("Cannot "+t);var Fn=(n,e,t)=>(nm(n,e,"read from private field"),t?t.call(n):e.get(n)),$i=(n,e,t)=>e.has(n)?Kl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t);import{t as Wt,bo as L,bw as jt,b as Kt,bp as rm,bm as se,bq as im,bs as sm,_ as Hi}from"./CHWIPzMj.js";import{bs as Ut,b_ as ie,W as K,bn as qt,aA as P,aC as Zu,br as la,bb as Zr,c3 as wn,aG as om,bk as ed,a7 as wr,ay as Bt,c0 as td,a5 as ye,aD as p,bA as ue,bS as oe,aw as am,bH as me,c9 as $,bV as qe,aB as te,ai as io,ca as bt,aj as Kn,bl as Me,bO as ge,bo as Ka,bj as nd,be as rd,b$ as id,bf as lm,c5 as vn}from"./3SdAC2_C.js";import{c as Lo}from"./C_VUI8Os.js";import{s as St,f as pn,c as ca,b as cm,g as hi,e as um}from"./B09v4S72.js";import{b as Er}from"./Dn334wJv.js";import{i as dm}from"./yQuAS-d_.js";import{d2 as fm,aF as hm,aT as Ul}from"./C99ttMY5.js";import{a as pm}from"./CC7to1B5.js";import{aT as mm,aB as gm,ao as ym,aw as bm,ab as vm,f as nn,ae as sd,a1 as km}from"./DSQXi-HI.js";import{i as Se}from"./DDtBtnNz.js";import{F as tn,bb as xm,bv as Ua,bh as od,v as wm,bE as Sm,d3 as Cm,aI as ql,bg as vr,bn as Sr,cZ as ad,cW as Mm,cn as ld,cK as cd,ak as Em,av as ud,ay as Jl,ap as Tm,aj as Am,as as Nm,cX as Om,aZ as Im,aN as Po,co as Rm,bx as Dm,cb as Lm,cy as Gl,Y as Pm,cH as _m,at as Bm,bU as zm,aq as $m,c7 as Hm,bN as Fm,c_ as Vm,al as Wm,bl as jm,bF as Km,a$ as Um,d2 as qm,am as Jm,bS as Gm,aT as Xm,b0 as Ym,c1 as Qm,bd as Zm,cx as eg,cD as tg,bR as ng,bo as rg,bi as Xl}from"./Bm1YRNX5.js";import{s as ig}from"./Bx3lRAzK.js";import{e as sg}from"./C8VLUX_C.js";import{b as og,V as Yl,c as ag,p as lg,m as cg,s as ug}from"./d-SabBb_.js";import{h as dg}from"./QgUSWdkO.js";import{g as kr,i as fg}from"./Bqdjarag.js";import{L as hg,S as pg,T as dd}from"./Dlhp692a.js";import{n as mg,l as ps}from"./ZUA6bo0t.js";import{h as gg}from"./BwJyU0G0.js";import{bq as yg}from"./DJM-jC4D.js";import{g as bg}from"./BHl8a9sq.js";import{c as qa,l as pe}from"./ChTqQfQN.js";import{n as Ql,l as vg,c as kg}from"./D_gp0b_i.js";import{$ as fd,a0 as xg,p as ua,aO as wg,am as Sg,a1 as Cg,e8 as Mg,a9 as Eg}from"./CB6JpnWC.js";import{i as cn,M as Tg,D as Ag,s as _o,a as Ng,p as lr}from"./jCrYQ4Ri.js";import{A as Og,b as Ig}from"./s_zHQBKW.js";import{P as Rg}from"./CKC2M8j1.js";import{a as hd}from"./BVhmKG23.js";import{g as Zl}from"./CwSTmJL9.js";import{H as Dg}from"./Bqd7fdCF.js";import{q as Lg}from"./BGpvxEza.js";import{b as Pg,P as _g}from"./w4-ZULNa.js";var Bg=Zu('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"></path></svg>');function pd(n,e){if(new.target)return Wt({component:pd,...n});Ut(e,!0);let t=L(e,"size",7,16),r=L(e,"class",7,"");var i={get size(){return t()},set size(o=16){t(o),P()},get class(){return r()},set class(o=""){r(o),P()},$set:jt,$on:(o,a)=>Kt(e,o,a)},s=Bg();return ie(()=>{St(s,"width",t()),St(s,"height",t()),pn(s,0,ca(r()))}),K(n,s),qt(i)}var ec=Object.defineProperty,zg=(n,e)=>{let t={};for(var r in n)ec(t,r,{get:n[r],enumerable:!0});return ec(t,Symbol.toStringTag,{value:"Module"}),t};function vt(n){this.content=n}vt.prototype={constructor:vt,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,i=r.find(n),s=r.content.slice();return i==-1?s.push(t||n,e):(s[i+1]=e,t&&(s[i]=t)),new vt(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new vt(t)},addToStart:function(n,e){return new vt([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new vt(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),s=r.find(n);return i.splice(s==-1?i.length:s,0,e,t),new vt(i)},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=vt.from(n),n.size?new vt(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=vt.from(n),n.size?new vt(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=vt.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}};vt.from=function(n){if(n instanceof vt)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new vt(e)};function md(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,a=s.text,l=0;for(;o[l]==a[l];l++)t++;return l&&l<o.length&&l<a.length&&bd(o.charCodeAt(l-1))&&yd(o.charCodeAt(l))&&t--,t}if(i.content.size||s.content.size){let o=md(i.content,s.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function gd(n,e,t,r){for(let i=n.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:t,b:r};let o=n.child(--i),a=e.child(--s),l=o.nodeSize;if(o==a){t-=l,r-=l;continue}if(!o.sameMarkup(a))return{a:t,b:r};if(o.isText&&o.text!=a.text){let c=o.text,u=a.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d<c.length&&bd(c.charCodeAt(d-1))&&yd(c.charCodeAt(d))&&(t++,r++),{a:t,b:r}}if(o.content.size||a.content.size){let c=gd(o.content,a.content,t-1,r-1);if(c)return c}t-=l,r-=l}}function yd(n){return n>=56320&&n<57344}function bd(n){return n>=55296&&n<56320}class M{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,i=0,s){for(let o=0,a=0;a<t;o++){let l=this.content[o],c=a+l.nodeSize;if(c>e&&r(l,i+a,s||null,o)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)i.push(e.content[s]);return new M(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let s=0,o=0;o<t;s++){let a=this.content[s],l=o+a.nodeSize;l>e&&((o<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),r.push(a),i+=a.nodeSize),o=l}return new M(r,i)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new M(i,s)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(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 i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return md(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return gd(this,e,t,r)}findIndex(e){if(e==0)return Fi(0,e);if(e==this.size)return Fi(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 i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Fi(t+1,s):Fi(t,r);r=s}}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 M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return M.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,r=0;for(let i=0;i<e.length;i++){let s=e[i];r+=s.nodeSize,i&&s.isText&&e[i-1].sameMarkup(s)?(t||(t=e.slice(0,i)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new M(t||e,r)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const Bo={index:0,offset:0};function Fi(n,e){return Bo.index=n,Bo.offset=e,Bo}function ms(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(!ms(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!ms(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Le=class da{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let s=e[i];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,i));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}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&&ms(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`);return r.create(t.attrs)}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 da.none;if(e instanceof da)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};Le.none=[];class pi extends Error{}class W{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=kd(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new W(r,this.openStart,this.openEnd)}removeBetween(e,t){return new W(vd(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 W.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new W(M.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new W(e,r,i)}}W.empty=new W(M.empty,0,0);function vd(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:a}=n.findIndex(t);if(i==e||s.isText){if(a!=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,s.copy(vd(s.content,e-i-1,t-i-1)))}function kd(n,e,t,r,i,s){let{index:o,offset:a}=n.findIndex(e),l=n.maybeChild(o);if(a==e||l.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=kd(l.content,e-a-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,l);return c&&n.replaceChild(o,l.copy(c))}function $g(n,e,t){if(t.openStart>n.depth)throw new pi("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new pi("Inconsistent open depths");return xd(n,e,t,0)}function xd(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let o=xd(n,e,t,r+1);return s.copy(s.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,a=o.content;return Yn(o,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=Hg(t,n);return Yn(s,Sd(n,o,a,e,r))}else return Yn(s,gs(n,e,r))}function wd(n,e){if(!e.type.compatibleContent(n.type))throw new pi("Cannot join "+e.type.name+" onto "+n.type.name)}function fa(n,e,t){let r=n.node(t);return wd(r,e.node(t)),r}function Xn(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 ei(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(Xn(n.nodeAfter,r),s++));for(let a=s;a<o;a++)Xn(i.child(a),r);e&&e.depth==t&&e.textOffset&&Xn(e.nodeBefore,r)}function Yn(n,e){if(!n.type.validContent(e))throw new pi("Invalid content for node "+n.type.name);return n.copy(e)}function Sd(n,e,t,r,i){let s=n.depth>i&&fa(n,e,i+1),o=r.depth>i&&fa(t,r,i+1),a=[];return ei(null,n,i,a),s&&o&&e.index(i)==t.index(i)?(wd(s,o),Xn(Yn(s,Sd(n,e,t,r,i+1)),a)):(s&&Xn(Yn(s,gs(n,e,i+1)),a),ei(e,t,i,a),o&&Xn(Yn(o,gs(t,r,i+1)),a)),ei(r,null,i,a),new M(a)}function gs(n,e,t){let r=[];if(ei(null,n,t,r),n.depth>t){let i=fa(n,e,t+1);Xn(Yn(i,gs(n,e,t+1)),r)}return ei(e,null,t,r),new M(r)}function Hg(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(M.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class mi{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],i=e.child(t);return r?e.child(t).cut(r):i}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],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)i+=r.child(s).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Le.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let s=r.marks;for(var o=0;o<s.length;o++)s[o].type.spec.inclusive===!1&&(!i||!s[o].isInSet(i.marks))&&(s=s[o--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!i||!r[s].isInSet(i.marks))&&(r=r[s--].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 ys(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=[],i=0,s=t;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(s),c=s-l;if(r.push(o,a,i+l),!c||(o=o.child(a),o.isText))break;s=c-1,i+=l+1}return new mi(t,r,s)}static resolveCached(e,t){let r=tc.get(e);if(r)for(let s=0;s<r.elts.length;s++){let o=r.elts[s];if(o.pos==t)return o}else tc.set(e,r=new Fg);let i=r.elts[r.i]=mi.resolve(e,t);return r.i=(r.i+1)%Vg,i}}class Fg{constructor(){this.elts=[],this.i=0}}const Vg=12,tc=new WeakMap;class ys{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 Wg=Object.create(null);let In=class ha{constructor(e,t,r,i=Le.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||M.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,i=0){this.content.nodesBetween(e,t,r,i,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,i){return this.content.textBetween(e,t,r,i)}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&&ms(this.attrs,t||e.defaultAttrs||Wg)&&Le.sameSet(this.marks,r||Le.none)}copy(e=null){return e==this.content?this:new ha(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new ha(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 W.empty;let i=this.resolve(e),s=this.resolve(t),o=r?0:i.sharedDepth(t),a=i.start(o),c=i.node(o).content.cut(i.pos-a,s.pos-a);return new W(c,i.depth-o,s.depth-o)}replace(e,t,r){return $g(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+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 i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return mi.resolveCached(this,e)}resolveNoCache(e){return mi.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}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()+")"),Cd(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=M.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<s;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let s=this.contentMatchAt(e).matchType(r),o=s&&s.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),rc(this.type.attrs,this.attrs,"node",this.type.name);let e=Le.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];rc(r.type.attrs,r.attrs,"mark",r.type.name),e=r.addToSet(e)}if(!Le.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 i=M.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};In.prototype.text=void 0;const nc=(()=>{let{stack:n}=new Error("/");if(!n||!/\n\s*at\s/.test(n))return t=>t;let e=Object.create(null);return t=>(e[t],t)})();class bs extends In{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Cd(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return nc(this.text.slice(e,t))}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new bs(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new bs(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(nc(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 Cd(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function rc(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class er{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new jg(e,t);if(r.next==null)return er.empty;let i=Md(r);r.next&&r.err("Unexpected trailing text");let s=Yg(Xg(i));return Qg(s,r),s}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 i=this;for(let s=t;i&&s<r;s++)i=i.matchType(e.child(s).type);return i}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 i=[this];function s(o,a){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return M.from(a.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())&&i.indexOf(d)==-1){i.push(d);let f=s(d,a.concat(u));if(f)return f}}return null}return s(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 i=r.shift(),s=i.match;if(s.matchType(e)){let o=[];for(let a=i;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<s.next.length;o++){let{type:a,next:l}=s.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.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 i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)s+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return s}).join(`
3
3
  `)}}er.empty=new er(!0);class jg{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 Md(n){let e=[];do e.push(Kg(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Kg(n){let e=[];do e.push(Ug(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Ug(n){let e=Gg(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=qg(n,e);else break;return e}function ic(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function qg(n,e){let t=ic(n),r=t;return n.eat(",")&&(n.next!="}"?r=ic(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Jg(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function Gg(n){if(n.eat("(")){let e=Md(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=Jg(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 Xg(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,a,l){let c={term:l,to:a};return e[o].push(c),c}function i(o,a){o.forEach(l=>l.to=a)}function s(o,a){if(o.type=="choice")return o.exprs.reduce((l,c)=>l.concat(s(c,a)),[]);if(o.type=="seq")for(let l=0;;l++){let c=s(o.exprs[l],a);if(l==o.exprs.length-1)return c;i(c,a=t())}else if(o.type=="star"){let l=t();return r(a,l),i(s(o.expr,l),l),[r(l)]}else if(o.type=="plus"){let l=t();return i(s(o.expr,a),l),i(s(o.expr,l),l),[r(l)]}else{if(o.type=="opt")return[r(a)].concat(s(o.expr,a));if(o.type=="range"){let l=a;for(let c=0;c<o.min;c++){let u=t();i(s(o.expr,l),u),l=u}if(o.max==-1)i(s(o.expr,l),l);else for(let c=o.min;c<o.max;c++){let u=t();r(l,u),i(s(o.expr,l),u),l=u}return[r(l)]}else{if(o.type=="name")return[r(a,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Ed(n,e){return e-n}function sc(n,e){let t=[];return r(e),t.sort(Ed);function r(i){let s=n[i];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(i);for(let o=0;o<s.length;o++){let{term:a,to:l}=s[o];!a&&t.indexOf(l)==-1&&r(l)}}}function Yg(n){let e=Object.create(null);return t(sc(n,0));function t(r){let i=[];r.forEach(o=>{n[o].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<i.length;u++)i[u][0]==a&&(c=i[u][1]);sc(n,l).forEach(u=>{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new er(r.indexOf(n.length-1)>-1);for(let o=0;o<i.length;o++){let a=i[o][1].sort(Ed);s.next.push({type:i[o][0],next:e[a.join(",")]||t(a)})}return s}}function Qg(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],s=!i.validEnd,o=[];for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];o.push(l.name),s&&!(l.isText||l.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Td(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 Ad(n,e){let t=Object.create(null);for(let r in n){let i=n[r],s=e&&e[r];if(s===void 0)if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+r);else i.validate&&i.validate(s);t[r]=s}return t}function Nd(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new ey(n,r,e[r]);return t}let pa=class Od{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=Nd(e,r.attrs),this.defaultAttrs=Td(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==er.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:Ad(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new In(this,this.computeAttrs(e),M.from(t),Le.setFrom(r))}createChecked(e=null,t,r){return t=M.from(t),this.checkContent(t),new In(this,this.computeAttrs(e),t,Le.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=M.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(M.empty,!0);return s?new In(this,e,t.append(s),Le.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){}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:Le.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,o)=>r[s]=new Od(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Zg(n,e,t){let r=t.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}class ey{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Zg(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class so{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=Nd(e,i.attrs),this.excluded=null;let s=Td(this.attrs);this.instance=s?new Le(this,s):null}create(e=null){return!e&&this.instance?this.instance:new Le(this,Ad(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new so(s,i++,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]}excludes(e){return this.excluded.indexOf(e)>-1}}class ss{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=vt.from(e.nodes),t.marks=vt.from(e.marks||{}),this.nodes=pa.compile(this.spec.nodes,this),this.marks=so.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",a=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=er.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=a=="_"?null:a?oc(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:oc(this,o.split(" "))}this.nodeFromJSON=i=>In.fromJSON(this,i),this.markFromJSON=i=>Le.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof pa){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,i)}text(e,t){let r=this.nodes.text;return new bs(r,r.defaultAttrs,e,Le.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 oc(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],s=n.marks[i],o=s;if(s)t.push(s);else for(let a in n.marks){let l=n.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function ty(n){return n.tag!=null}function ny(n){return n.style!=null}let ti=class ma{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(ty(i))this.tags.push(i);else if(ny(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new lc(this,t,!1);return r.addAll(e,Le.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new lc(this,t,!0);return r.addAll(e,Le.none,t.from,t.to),W.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let s=this.tags[i];if(sy(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let o=s.getAttrs(e);if(o===!1)continue;s.attrs=o||void 0}return s}}}matchStyle(e,t,r,i){for(let s=i?this.styles.indexOf(i)+1:0;s<this.styles.length;s++){let o=this.styles[s],a=o.style;if(!(a.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(o.getAttrs){let l=o.getAttrs(t);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let a=t[o];if((a.priority==null?50:a.priority)<s)break}t.splice(o,0,i)}for(let i in e.marks){let s=e.marks[i].spec.parseDOM;s&&s.forEach(o=>{r(o=cc(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=cc(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ma(e,ma.schemaRules(e)))}};const Id={address:!0,article:!0,aside:!0,blockquote:!0,body:!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},ry={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Rd={ol:!0,ul:!0},gi=1,ga=2,ni=4;function ac(n,e,t){return e!=null?(e?gi:0)|(e==="full"?ga:0):n&&n.whitespace=="pre"?gi|ga:t&~ni}class Vi{constructor(e,t,r,i,s,o){this.type=e,this.attrs=t,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=Le.none,this.match=s||(o&ni?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(M.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&gi)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=M.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(M.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&&!Id.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class lc{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=t.topNode,s,o=ac(null,t.preserveWhitespace,0)|(r?ni:0);i?s=new Vi(i.type,i.attrs,Le.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new Vi(null,null,Le.none,!0,null,o):s=new Vi(e.schema.topNodeType,null,Le.none,!0,null,o),this.nodes=[s],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,i=this.top,s=i.options&ga?"full":this.localPreserveWS||(i.options&gi)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,`
4
4
  `);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let a=r.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(o.linebreakReplacement.create(),t,!0),a[l]&&this.insertNode(o.text(a[l]),t,!/\S/.test(a[l]));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 a=i.content[i.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.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 i=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),a;Rd.hasOwnProperty(o)&&this.parser.normalizeLists&&iy(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(l?l.ignore:ry.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(Id.hasOwnProperty(o))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let d=l&&l.skip?t:this.readStyles(e,t);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=i}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
5
5
  `),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 i=0;i<this.parser.matchedStyles.length;i++){let s=this.parser.matchedStyles[i],o=r.getPropertyValue(s);if(o)for(let a=void 0;;){let l=this.parser.matchStyle(s,o,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?t=t.filter(c=>!l.clearMark(c)):t=t.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return t}addElementByRule(e,t,r,i){let s,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 l=this.enter(o,t.attrs||null,r,t.preserveWhitespace);l&&(s=!0,r=l)}else{let l=this.parser.schema.marks[t.mark];r=r.concat(l.create(t.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof t.contentElement=="string"?l=e.querySelector(t.contentElement):typeof t.contentElement=="function"?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}s&&this.sync(a)&&this.open--}addAll(e,t,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,a=i==null?null:e.childNodes[i];o!=a;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,t);this.findAtPoint(e,s)}findPlace(e,t,r){let i,s;for(let o=this.open,a=0;o>=0;o--){let l=this.nodes[o],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+a)&&(i=c,s=l,!c.length))break;if(l.solid){if(r)break;a+=2}}if(!i)return null;this.sync(s);for(let o=0;o<i.length;o++)t=this.enterInner(i[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(t=this.enterInner(s,null,t))}let i=this.findPlace(e,t,r);if(i){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(e.type));let o=Le.none;for(let a of i.concat(e.marks))(s.type?s.type.allowsMarkType(a.type):uc(a.type,e.type))&&(o=a.addToSet(o));return s.content.push(e.mark(o)),!0}return!1}enter(e,t,r,i){let s=this.findPlace(e.create(t),r,!1);return s&&(s=this.enterInner(e,t,r,!0,i)),s}enterInner(e,t,r,i=!1,s){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let a=ac(e,s,o.options);o.options&ni&&o.content.length==0&&(a|=ni);let l=Le.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):uc(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Vi(e,t,l,i,null,a)),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|=gi)}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 i=r.length-1;i>=0;i--)e+=r[i].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 i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].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,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(a,l)=>{for(;a>=0;a--){let c=t[a];if(c==""){if(a==t.length-1||a==0)continue;for(;l>=s;l--)if(o(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=s?r.node(l-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}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 iy(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Rd.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function sy(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function cc(n){let e={};for(let t in n)e[t]=n[t];return e}function uc(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=a=>{s.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||s.indexOf(u)<0&&o(u))return!0}};if(o(i.contentMatch))return!0}}class or{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Wi(t).createDocumentFragment());let i=r,s=[];return e.forEach(o=>{if(s.length||o.marks.length){let a=0,l=0;for(;a<s.length&&l<o.marks.length;){let c=o.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(s[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<s.length;)i=s.pop()[1];for(;l<o.marks.length;){let c=o.marks[l++],u=this.serializeMark(c,o.isInline,t);u&&(s.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){if(e.isText)return Wi(t).createTextNode(e.text);let{dom:r,contentDOM:i}=as(Wi(t),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&as(Wi(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return typeof t=="string"?{dom:e.createTextNode(t)}:as(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new or(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=dc(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return dc(e.marks)}}function dc(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Wi(n){return n.document||window.document}const fc=new WeakMap;function oy(n){let e=fc.get(n);return e===void 0&&fc.set(n,e=ay(n)),e}function ay(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 i=0;i<r.length;i++)t(r[i]);else for(let i in r)t(r[i])}return t(n),e}function as(n,e,t,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],s;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(s=oy(r))&&s.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=i.indexOf(" ");o>0&&(t=i.slice(0,o),i=i.slice(o+1));let a,l=t?n.createElementNS(t,i):n.createElement(i),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 f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof f=="string")l.appendChild(n.createTextNode(f));else{let{dom:h,contentDOM:m}=as(n,f,t,r);if(l.appendChild(h),m){if(a)throw new RangeError("Multiple content holes");a=m}}}return{dom:l,contentDOM:a}}const Dd=65535,Ld=Math.pow(2,16);function ly(n,e){return n+e*Ld}function hc(n){return n&Dd}function cy(n){return(n-(n&Dd))/Ld}const Pd=1,_d=2,ls=4,Bd=8;class ya{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Bd)>0}get deletedBefore(){return(this.delInfo&(Pd|ls))>0}get deletedAfter(){return(this.delInfo&(_d|ls))>0}get deletedAcross(){return(this.delInfo&ls)>0}}class _t{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&_t.empty)return _t.empty}recover(e){let t=0,r=hc(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+cy(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 i=0,s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[a+s],u=this.ranges[a+o],d=l+c;if(e<=d){let f=c?e==l?-1:e==d?1:t:t,h=l+i+(f<0?0:u);if(r)return h;let m=e==(t<0?l:d)?null:ly(a/3,e-l),g=0;return c&&(g|=e==l?_d:e==d?Pd:ls,(t<0?e!=l:e!=d)&&(g|=Bd)),new ya(h,g,m)}i+=u-c}return r?e+i:new ya(e+i,0,null)}touches(e,t){let r=0,i=hc(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+s],u=l+c;if(e<=u&&a==i*3)return!0;r+=this.ranges[a+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i<this.ranges.length;i+=3){let o=this.ranges[i],a=o-(this.inverted?s:0),l=o+(this.inverted?0:s),c=this.ranges[i+t],u=this.ranges[i+r];e(a,a+c,l,l+u),s+=u-c}}invert(){return new _t(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?_t.empty:new _t(e<0?[0,-e,0]:[0,0,e])}}_t.empty=new _t([]);class yi{constructor(e,t,r=0,i=e?e.length:0){this.mirror=t,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new yi(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=e.from,r=this._maps.length;t<e.to;t++){let i=e.getMirror(t);i!=null&&(i=i<t&&i>=e.from?r+(i-e.from):void 0),this.appendMap(e._maps[t],i)}}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.to-1,r=this._maps.length+e._maps.length;t>=e.from;t--){let i=e.getMirror(t);i!=null&&(i=i>t&&i<e.to?r-(i-e.from)-1:void 0),this.appendMap(e._maps[t].invert(),i)}}invert(){let e=new yi;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 i=0;for(let s=this.from;s<this.to;s++){let o=this._maps[s],a=o.mapResult(e,t);if(a.recover!=null){let l=this.getMirror(s);if(l!=null&&l>s&&l<this.to){s=l,e=this._maps[l].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new ya(e,i,null)}}const zo=Object.create(null);class ht{getMap(){return _t.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=zo[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 zo)throw new RangeError("Duplicate use of step JSON ID "+e);return zo[e]=t,t.prototype.jsonID=e,t}}class nt{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new nt(e,null)}static fail(e){return new nt(null,e)}static fromReplace(e,t,r,i){try{return nt.ok(e.replace(t,r,i))}catch(s){if(s instanceof pi)return nt.fail(s.message);throw s}}}function Ja(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let s=n.child(i);s.content.size&&(s=s.copy(Ja(s.content,e,s))),s.isInline&&(s=e(s,t,i)),r.push(s)}return M.fromArray(r)}class en extends ht{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),i=r.node(r.sharedDepth(this.to)),s=new W(Ja(t.content,(o,a)=>!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return nt.fromReplace(e,this.from,this.to,s)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(r,i)=>{if(r.isInline&&r.isAtom){let s=this.mark.addToSet(r.marks);if(!Le.sameSet(s,r.marks)){let o=Math.max(this.from,i),a=Math.min(this.to,i+r.nodeSize);vs(Gt,o,a,this.mark,t);for(let l of r.marks)l.isInSet(s)||vs(en,o,a,l,t)}}}),t.length==1?t[0]:new Qn(t)}map(e){let t=e.map(this.from,1),r=e.map(this.to,-1);return t>=r?null:new en(t,r,this.mark)}merge(e){return e instanceof en&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new en(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 en(t.from,t.to,e.markFromJSON(t.mark))}}ht.jsonID("addMark",en);class Gt extends ht{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 W(Ja(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return nt.fromReplace(e,this.from,this.to,r)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(r,i)=>{r.isInline&&r.isAtom&&this.mark.isInSet(r.marks)&&vs(en,Math.max(this.from,i),Math.min(this.to,i+r.nodeSize),this.mark,t)}),t.length==1?t[0]:new Qn(t)}map(e){let t=e.map(this.from,1),r=e.map(this.to,-1);return t>=r?null:new Gt(t,r,this.mark)}merge(e){return e instanceof Gt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Gt(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 Gt(t.from,t.to,e.markFromJSON(t.mark))}}ht.jsonID("removeMark",Gt);function vs(n,e,t,r,i){let s=i.length?i[i.length-1]:null;s&&s instanceof n&&s.to==e&&s.mark.eq(r)?i[i.length-1]=new n(s.from,t,r):i.push(new n(e,t,r))}class Qn extends ht{constructor(e){super(),this.steps=e}apply(e){for(let t of this.steps){let r=t.apply(e);if(!r.doc)return r;e=r.doc}return new nt(e,null)}invert(e){return new Qn(this.steps.map(t=>t.invert(e)))}map(e){let t=[];for(let r of this.steps){let i=r.map(e);i&&t.push(i)}return t.length?new Qn(t):null}toJSON(){return{stepType:"markSet",steps:this.steps.map(e=>e.toJSON())}}static fromJSON(e,t){if(!Array.isArray(t.steps)||!t.steps.every(r=>r.stepType=="addMark"||r.stepType=="removeMark"))throw new RangeError("Invalid JSON for MarkSetStep");return new Qn(t.steps.map(r=>ht.fromJSON(e,r)))}}ht.jsonID("markSet",Qn);class Nn extends ht{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return nt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return nt.fromReplace(e,this.pos,this.pos+1,new W(M.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 i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new Nn(this.pos,t.marks[i]);return new Nn(this.pos,this.mark)}}return new tr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Nn(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 Nn(t.pos,e.markFromJSON(t.mark))}}ht.jsonID("addNodeMark",Nn);class tr extends ht{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return nt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return nt.fromReplace(e,this.pos,this.pos+1,new W(M.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Nn(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new tr(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 tr(t.pos,e.markFromJSON(t.mark))}}ht.jsonID("removeNodeMark",tr);class Qe extends ht{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&ba(e,this.from,this.to)?nt.fail("Structure replace would overwrite content"):nt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new _t([this.from,this.to-this.from,this.slice.size])}invert(e){return new Qe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&Qe.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new Qe(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Qe)||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?W.empty:new W(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Qe(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?W.empty:new W(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Qe(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 Qe(t.from,t.to,W.fromJSON(e,t.slice),!!t.structure)}}Qe.MAP_BIAS=1;ht.jsonID("replace",Qe);class gt extends ht{constructor(e,t,r,i,s,o,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=s,this.insert=o,this.structure=a}apply(e){if(this.structure&&(ba(e,this.from,this.gapFrom)||ba(e,this.gapTo,this.to)))return nt.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return nt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?nt.fromReplace(e,this.from,this.to,r):nt.fail("Content does not fit in gap")}getMap(){return new _t([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 gt(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),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||s>r.pos||i>s?null:new gt(t.pos,r.pos,i,s,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 gt(t.from,t.to,t.gapFrom,t.gapTo,W.fromJSON(e,t.slice),t.insert,!!t.structure)}}ht.jsonID("replaceAround",gt);function ba(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function uy(n,e,t,r){let i=[];n.doc.nodesBetween(e,t,(s,o,a)=>{if(!s.isInline)return;let l=s.marks;if(!r.isInSet(l)&&a.type.allowsMarkType(r.type)){let c=Math.max(o,e),u=Math.min(o+s.nodeSize,t);vs(en,c,u,r,i)}}),i.forEach(s=>n.step(s))}function dy(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,a)=>{if(!o.isInline||!o.isAtom)return;s++;let l=null;if(r instanceof so){let c=o.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(l=[r]):l=o.marks;if(l&&l.length){let c=Math.min(a+o.nodeSize,t);for(let u=0;u<l.length;u++){let d=l[u],f;for(let h=0;h<i.length;h++){let m=i[h];m.step==s-1&&d.eq(i[h].style)&&(f=m)}f?(f.to=c,f.step=s):i.push({style:d,from:Math.max(a,e),to:c,step:s})}}}),i.forEach(o=>n.step(new Gt(o.from,o.to,o.style)))}function Ga(n,e,t,r=t.contentMatch,i=!0){let s=n.doc.nodeAt(e),o=[],a=e+1;for(let l=0;l<s.childCount;l++){let c=s.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new Qe(a,u,W.empty));else{r=d;for(let f=0;f<c.marks.length;f++)t.allowsMarkType(c.marks[f].type)||n.step(new Gt(a,u,c.marks[f]));if(i&&c.isText&&t.whitespace!="pre"){let f,h=/\r?\n|\r/g,m;for(;f=h.exec(c.text);)m||(m=new W(M.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),o.push(new Qe(a+f.index,a+f.index+f[0].length,m))}}a=u}if(!r.validEnd){let l=r.fillBefore(M.empty,!0);n.replace(a,a,new W(l,0,0))}for(let l=o.length-1;l>=0;l--)n.step(o[l])}function fy(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Br(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,i=0,s=0;;--r){let o=n.$from.node(r),a=n.$from.index(r)+i,l=n.$to.indexAfter(r)-s;if(r<n.depth&&o.canReplace(a,l,t))return r;if(r==0||o.type.spec.isolating||!fy(o,a,l))break;a&&(i=1),l<o.childCount&&(s=1)}return null}function hy(n,e,t){let{$from:r,$to:i,depth:s}=e,o=r.before(s+1),a=i.after(s+1),l=o,c=a,u=M.empty,d=0;for(let m=s,g=!1;m>t;m--)g||r.index(m)>0?(g=!0,u=M.from(r.node(m).copy(u)),d++):l--;let f=M.empty,h=0;for(let m=s,g=!1;m>t;m--)g||i.after(m+1)<i.end(m)?(g=!0,f=M.from(i.node(m).copy(f)),h++):c++;n.step(new gt(l,c,o,a,new W(u.append(f),d,h),u.size-d,!0))}function Xa(n,e,t=null,r=n){let i=py(n,e),s=i&&my(r,e);return s?i.map(pc).concat({type:e,attrs:t}).concat(s.map(pc)):null}function pc(n){return{type:n,attrs:null}}function py(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.contentMatchAt(r).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return t.canReplaceWith(r,i,o)?s:null}function my(n,e){let{parent:t,startIndex:r,endIndex:i}=n,s=t.child(r),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(t.child(c).type);return!l||!l.validEnd?null:o}function gy(n,e,t){let r=M.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let a=t[o].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=M.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new gt(i,s,i,s,new W(r,0,0),t.length,!0))}function yy(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,a)=>{let l=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,l)&&by(n.doc,n.mapping.slice(s).map(a),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!m?c=!1:!h&&m&&(c=!0)}c===!1&&$d(n,o,a,s),Ga(n,n.mapping.slice(s).map(a,1),r,void 0,c===null);let u=n.mapping.slice(s),d=u.map(a,1),f=u.map(a+o.nodeSize,1);return n.step(new gt(d,f,d+1,f-1,new W(M.from(r.create(l,null,o.marks)),0,0),1,!0)),c===!0&&zd(n,o,a,s),!1}})}function zd(n,e,t,r){e.forEach((i,s)=>{if(i.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(i.text);){let l=n.mapping.slice(r).map(t+1+s+o.index);n.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function $d(n,e,t,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+s);n.replaceWith(o,o+1,e.type.schema.text(`
@@ -172,4 +172,4 @@ ${t}
172
172
  `,pasteChip:()=>" "}}function Pl(b,C){return gl(b.state.doc,{from:0,to:C},{blockSeparator:`
173
173
 
174
174
  `,textSerializers:Eo(b)}).replace(/\u00A0/g," ")}function To(b){return Pl(b,b.state.doc.content.size)}function Ao(b){return Pl(b,b.state.selection.from)}function Bi(b,C){const I=To(b),Q=FM(I,Ao(b).length);(!Q||Q.from!==p(re)?.from)&&(me(Et,null),me(Tt,null)),me(Pe,I,!0),me(re,Q,!0),Q&&C?.dismissNewContext&&me(Et,p(Re),!0)}function zi(){me(Tt,p(re)?.from??null,!0)}function _l(b){b.preventDefault()}function Np(b){if(!p(S)||!p(re))return;const C=To(p(S)),I=Ao(p(S)).length,Q={from:p(S).state.selection.from-p(re).query.length-1,to:p(S).state.selection.from+p(re).to-I},z=p(re).to===C.length||!/^\s/u.test(C.slice(p(re).to)),E=[{type:"skillCommand",attrs:{name:b.name}},...z?[{type:"text",text:" "}]:[]];p(S).chain().focus().insertContentAt(Q,E).setTextSelection(Q.from+2).run()}function Op(b){if(!p(S)||!p(re))return;const C=To(p(S)),I=Ao(p(S)).length,Q={from:p(S).state.selection.from-p(re).query.length-1,to:p(S).state.selection.from+p(re).to-I},z=p(re).to===C.length||!/^\s/u.test(C.slice(p(re).to)),E=`/${b.name}`;p(S).chain().focus().insertContentAt(Q,{type:"text",text:z?`${E} `:E}).setTextSelection(Q.from+E.length+1).run()}function zr(b){const C=fM(b,B().map(I=>I.name));return Y()?mC(C,Y()):C}const $r=new _M({readSnapshot:()=>{const b=p(S);return!b||b.isDestroyed||!F()||!p(Ue)||!p(we)?null:{text:Wn(b),caretAtEnd:Ti(b.state),composing:p(Mt)||b.view.composing,menuOpen:p(mt)||Hr.pluginKey.getState(b.state)?.active===!0}},readContext:()=>F()?.()??"",request:HM,showGhost:b=>{p(S)&&!p(S).isDestroyed&&sa(p(S).view,b)}});function Bl(){$r.cancel(),p(S)&&!p(S).isDestroyed&&Ai(p(S).state)&&sa(p(S).view,null)}function Ip(b,C){C||Ai(b.state)?$r.cancel():$r.schedule()}bt(()=>{(!F()||!p(Ue))&&vn(Bl)});function Rp(b){$r.cancel(),p(S)&&!p(S).isDestroyed&&sa(p(S).view,b)}function Dp(b){if(!p(mt)||!p(Dt))return!1;const C=!b.shiftKey&&!b.metaKey&&!b.ctrlKey&&!b.altKey&&["ArrowUp","ArrowDown","Enter"].includes(b.key);return b.key!=="Escape"&&!C?!1:p(Dt).onKeyDown({event:b})?!0:b.key==="Enter"?(b.preventDefault(),!0):!1}function Lp(){p(S)&&p(S).view&&p(S).chain().focus().insertContent("@").run()}function Pp(b){return p(S)&&p(S).view?(p(S).chain().focus().insertContent(b).run(),!0):!1}function _p(b){if(f()||!p(S)?.view)return!1;const{state:C,dispatch:I}=p(S).view,Q=Ju(C.schema,b);return Q.length===0?!1:(I(C.tr.replaceSelection(new W(M.from(Q),1,1)).scrollIntoView()),p(S).view.focus(),!0)}function Bp(){if(f())return!1;if(p(S)&&p(S).view)try{if(p(S).view.hasFocus())return!0;const b=p(S),C=document.activeElement;return requestAnimationFrame(()=>{if(p(S)!==b||b.isDestroyed||f()||b.view.hasFocus())return;const I=document.activeElement;I!==C&&I instanceof HTMLElement&&pm(I)&&!b.view.dom.contains(I)||(b.view.focus(),b.commands.scrollIntoView())}),typeof p(S).view.hasFocus=="function"?p(S).view.hasFocus():!0}catch(b){i.debug("[TipTapEditor] Editor not ready for focus:",b)}return!1}function zp(){if(f())return!1;if(p(S)&&p(S).view)try{return p(S).chain().focus("end").run(),!0}catch(b){i.debug("[TipTapEditor] Editor not ready for focusEnd:",b)}return!1}function $p(){if(f())return!1;if(p(S)&&p(S).view)try{return p(S).chain().focus().selectAll().run(),!0}catch(b){i.debug("[TipTapEditor] Editor not ready for focusAndSelectAll:",b)}return!1}function Hp(){try{return p(S)?.getHTML?.()??""}catch(b){return i.error("[TipTapEditor] Error getting HTML:",b),p(S)?.getText?.()??""}}function Fp(){p(S)&&(ve=!0,p(S).commands.clearContent(!0),ve=!1)}async function Vp(b){if(!p(S))return;const C=zr(b||"");As(C,p(S).schema).eq(p(S).state.doc)||p(S).chain().command(({tr:I})=>(I.setMeta("external-update",!0),!0)).setContent(C).run()}function Wp(b,C){p(S)&&p(S).view&&p(S).chain().focus().setImage({src:b,alt:C||""}).createParagraphNear().focus().run()}function jp(){if(!p(S))return i.warn("TipTapEditor: getInlineImages called but editor is not initialized"),[];const b=[];return p(S).state.doc.descendants(C=>{if(C.type.name==="image"){const I=C.attrs.src;I&&I.startsWith("data:")&&b.push({src:I,alt:C.attrs.alt||void 0})}return!0}),i.debug("TipTapEditor: Extracted inline images",{imageCount:b.length,imageSources:b.map(C=>({alt:C.alt,srcLength:C.src?.length||0}))}),b}function Kp(){return Wn(p(S))}function Up(b){if(i.debug("TipTapEditor: insertContextMention called",{hasEditor:!!p(S),hasEditorView:!!p(S)?.view,attrs:{itemType:b.itemType,identifier:b.identifier,title:b.title}}),p(S)&&p(S).view){const C=p(S).chain().focus().insertContextMention(b).run();return i.debug("TipTapEditor: insertContextMention result",{result:C}),C}return i.warn("TipTapEditor: insertContextMention failed - no editor"),!1}function qp(b){if(!p(S)||!p(S).view)return i.warn("TipTapEditor: insertMention called but editor is not initialized"),!1;try{return p(S).chain().focus().insertContent({type:"mention",attrs:{id:b.id,label:b.label,type:b.type,uri:b.uri,meta:b.meta||{}}}).insertContent(" ").run(),!0}catch(C){return i.error("TipTapEditor: insertMention failed",C),!1}}function Jp(){if(!p(S))return i.warn("TipTapEditor: getMentions called but editor is not initialized"),[];const b=[];return p(S).state.doc.descendants(C=>(C.type.name==="mention"&&b.push({id:C.attrs.id,label:C.attrs.label,type:C.attrs.type||"file",uri:C.attrs.uri||"",meta:C.attrs.meta||{}}),!0)),i.debug("TipTapEditor: Extracted mentions",{mentionCount:b.length,types:b.map(C=>C.type)}),b}function Gp(){if(!p(S))return i.warn("TipTapEditor: getContextMentions called but editor is not initialized"),[];const b=[];return p(S).state.doc.descendants(C=>{if(C.type.name==="contextMention"){const I=C.attrs;b.push({itemType:I.itemType,provider:I.provider,title:I.title,url:I.url,identifier:I.identifier,contextId:I.contextId,description:I.description,metadata:I.metadata})}return!0}),i.debug("TipTapEditor: Extracted context mentions",{mentionCount:b.length}),b}const Hr={char:"@",pluginKey:new Ve("mention"),items:async({query:b})=>{if(i.debug("Mention query:",b),D()?.(b),!g()&&y()){i.debug("No workspace but repoPath available, using async search:",y());const I={workspaceId:void 0,repoPath:y(),currentFile:void 0,currentNote:void 0,recentFiles:[]};try{const Q=await s.search(b,I);return i.debug("Mention search results from repoPath:",Q.length),Q}catch(Q){i.error("Failed to search mentions with repoPath:",Q);const z=s.searchSync(b,I);return i.debug("Fallback sync search results:",z.length),z}}if(!g())return i.debug("No workspace and no repoPath - returning empty results"),[];const C={workspaceId:g().id,currentFile:void 0,currentNote:void 0,recentFiles:[]};try{const I=await s.search(b,C);return i.debug("Mention search results:",I.length),I}catch(I){return i.error("Failed to search mentions:",I),[]}},render:()=>KC(ze),command:({editor:b,range:C,props:I})=>{const Q={id:I.id,label:I.label,type:I.type,uri:I.uri,meta:I.meta||{}};b.view&&b.chain().focus().deleteRange(C).insertContent({type:"mention",attrs:Q}).run(),V()?.(I)}};ed(()=>{let b=!1;return(async()=>{const C=zr(o()||"");if(b)return;const I=p($e);if(!I)return;me(S,new jx({element:I,extensions:[...Y()?[hC.configure({references:()=>Y()??[]}),pC]:[],mS.configure({heading:!1,codeBlock:!1,horizontalRule:!1,link:!1,bulletList:!1,orderedList:!1,listItem:!1,code:!1,bold:!1,italic:!1,strike:!1,blockquote:!1,dropcursor:!1}),Mp({openOnClick:!1,linkOnPaste:!0,shouldAutoLink:z=>/^https?:\/\//.test(z)||z.startsWith("intent://"),HTMLAttributes:{class:"text-primary-ink underline"}}),gS.configure({placeholder:c()?({editor:z})=>An.getState(z.state)?.parts.length?"":l():l(),emptyEditorClass:"is-editor-empty text-subtle",showOnlyWhenEditable:!1}),BS.configure({inline:!1,allowBase64:!0,HTMLAttributes:{class:"chat-inline-image"}}),KS.configure({workspaceId:g()?.id}),r.configure({HTMLAttributes:{class:"mention-chip"},suggestion:Hr,renderHTML({node:z}){const E=cg(z.attrs,g()?.id,ug);return["span",{"data-mention":"true","data-type":z.attrs.type||"file","data-uri":z.attrs.uri||"","data-meta":JSON.stringify(z.attrs.meta||{}),"data-id":z.attrs.id,"data-label":z.attrs.label,class:"mention-chip",tabindex:"0"},E]},renderText:({node:z})=>{const E=z.attrs||{};try{return Mg({type:E.type,id:E.id,label:E.label,meta:E.meta})}catch{return`@${E?.meta?.fullPath||E?.meta?.path||E?.label||E?.id||"item"}`}}}),lC.extend({renderText:({node:z})=>{const E=z.attrs||{},Oe=JSON.stringify({provider:E.provider||"browser",identifier:E.identifier||"",title:E.title||"",url:E.url||"",description:E.description||"",metadata:E.metadata||"",itemType:E.itemType||""});return`@context[${btoa(unescape(encodeURIComponent(Oe)))}]`}}),fC,kC,vM,RM],content:C,editable:p(Ue),enableCoreExtensions:{delete:!1},onCreate:({editor:z})=>{Bi(z),v()&&requestAnimationFrame(()=>{if(z.isDestroyed)return;z.view.dom?.focus({preventScroll:!0})})},onTransaction:({transaction:z})=>{z.docChanged&&He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)},onUpdate:({editor:z,transaction:E})=>{if(E.getMeta("external-update")||E.getMeta(Ll)||ve)return;const Oe=de()?vC(E):null;Oe&&de()?.(Oe);const Ge=Wn(z);Bi(z,{dismissNewContext:E.getMeta("uiEvent")==="paste"}),E.getMeta(Mo)?x()?.(Ge,{programmatic:!0}):x()?.(Ge),Ip(z,E.getMeta(Tp)===!0)},onSelectionUpdate:({editor:z,transaction:E})=>{Bi(z,{dismissNewContext:E.getMeta("uiEvent")==="paste"});const{from:Oe,to:Ge,empty:J}=z.state.selection;if(J)_()?.(null);else{const De=z.state.doc.textBetween(Oe,Ge," ");_()?.(De.trim()||null)}},onFocus:({editor:z})=>{vn(()=>{me(we,!0),Bi(z)})},onBlur:()=>{vn(()=>{me(we,!1)}),Bl()},editorProps:{handleDOMEvents:{compositionstart:()=>(vn(()=>{me(Mt,!0)}),T()?.(!0),!1),compositionend:()=>(queueMicrotask(()=>{queueMicrotask(()=>{!p(S)||p(S).isDestroyed||(vn(()=>{me(Mt,!1)}),T()?.(!1),bn())})}),!1),beforeinput:()=>(U()?.(),!1)},attributes:{class:`tiptap-editor ${m()}`,role:"textbox","aria-multiline":"true","aria-label":a(),autocomplete:"off",spellcheck:"false",autocorrect:"off",autocapitalize:"off"},handlePaste:(z,E)=>{if(wC(E))return!0;const Oe=E.clipboardData?.getData("text/plain");if(Oe){const Ge=Oe.split(`
175
- `);if(Ge.length>=5){const{state:De,dispatch:ut}=z,Xe=De.schema.nodes.pasteChip.create({content:Oe,lineCount:Ge.length}),$t=De.tr.replaceSelectionWith(Xe).setMeta("uiEvent","paste");return ut($t),!0}const J=E.clipboardData?.getData("text/html");if(J&&pM(J,Oe))return z.dispatch(z.state.tr.insertText(Oe).scrollIntoView().setMeta("uiEvent","paste")),!0;if(/\r|\n/.test(Oe)){const{state:De,dispatch:ut}=z,Xe=Ju(De.schema,Oe);if(Xe.length>0){const $t=new W(M.from(Xe),1,1);return ut(De.tr.replaceSelection($t).scrollIntoView().setMeta("uiEvent","paste")),!0}}}return!1},handleDrop:(z,E)=>xC(E),handleKeyDown:(z,E)=>{if(z.composing||E.isComposing||E.keyCode===229)return!1;if(Ap(z,E)||Dp(E))return!0;if(E.key==="Escape"&&H())return E.preventDefault(),H()(),!0;const Oe=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),Ge=J=>Dg(E,Zl(J),Oe);if(Ge("chat.mention-context")&&Zl("chat.mention-context")!=="@")return E.preventDefault(),p(S)?.chain().focus().insertContent("@").run(),!0;if(Oe&&E.ctrlKey&&!E.metaKey){if(E.key==="a"){E.preventDefault();const{state:J,dispatch:De}=z,Xe=J.selection.$head.start();return De(J.tr.setSelection(j.create(J.doc,Xe))),!0}if(E.key==="e"){E.preventDefault();const{state:J,dispatch:De}=z,Xe=J.selection.$head.end();return De(J.tr.setSelection(j.create(J.doc,Xe))),!0}if(E.key==="k"){E.preventDefault();const{state:J,dispatch:De}=z,ut=J.selection.$head,Xe=ut.pos,$t=ut.end();return Xe<$t&&De(J.tr.delete(Xe,$t)),!0}if(E.key==="p"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","backward","line"),!0}if(E.key==="n"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","forward","line"),!0}if(E.key==="f"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","forward","character"),!0}if(E.key==="b"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","backward","character"),!0}}if(E.metaKey&&!E.ctrlKey&&!E.altKey){if(E.key==="ArrowLeft"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify(E.shiftKey?"extend":"move","backward","lineboundary"),!0}if(E.key==="ArrowRight"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify(E.shiftKey?"extend":"move","forward","lineboundary"),!0}if(E.key==="ArrowUp"){E.preventDefault();const{state:J,dispatch:De}=z,ut=1;if(E.shiftKey){const{from:Xe}=J.selection;De(J.tr.setSelection(j.create(J.doc,ut,Xe)))}else De(J.tr.setSelection(j.create(J.doc,ut)));return!0}if(E.key==="ArrowDown"){E.preventDefault();const{state:J,dispatch:De}=z,ut=J.doc.content.size-1;if(E.shiftKey){const{to:Xe}=J.selection;De(J.tr.setSelection(j.create(J.doc,Xe,ut)))}else De(J.tr.setSelection(j.create(J.doc,ut)));return!0}}if(Ge("chat.force-send"))return E.preventDefault(),k()?.(),!0;if(Ge("chat.new-line"))return E.preventDefault(),p(S)?.chain().setHardBreak().scrollIntoView().run(),!0;if(E.key==="ArrowUp"&&O()&&!E.shiftKey&&!E.metaKey&&!E.ctrlKey){if(Hr.pluginKey.getState(z.state)?.active)return!1;const{state:De}=z,{from:ut}=De.selection,Xe=ut<=1,$t=De.doc.textContent.length===0;if(Xe||$t){const Hn=O()();if(Hn!==null)return E.preventDefault(),p(S)?.chain().setContent(zr(Hn)).focus("end").run(),x()?.(Hn),!0}}if(E.key==="ArrowDown"&&R()&&!E.shiftKey&&!E.metaKey&&!E.ctrlKey){if(Hr.pluginKey.getState(z.state)?.active)return!1;const{state:De}=z,{to:ut}=De.selection,Xe=De.doc.content.size-1,$t=ut>=Xe,Hn=De.doc.textContent.length===0;if($t||Hn){const Fr=R()();if(Fr!==null)return E.preventDefault(),p(S)?.chain().setContent(zr(Fr)).focus("end").run(),x()?.(Fr),!0}}return Ge("chat.send")?Hr.pluginKey.getState(z.state)?.active?!1:w()?(E.preventDefault(),w()(),!0):!1:!1}}}),!0),I.addEventListener("mouseover",zl),I.addEventListener("mouseout",$l),I.addEventListener("click",Fl),p(S).view.dom.addEventListener("keydown",Vl)})(),()=>{b=!0}});function zl(b){const C=b.target,I=Ul(C);if(I){const Q=C.getBoundingClientRect();if(!xe){xe=document.createElement("div"),(ze?.target()??document.body).appendChild(xe);const z=I.type||"file",E=I.label||C.textContent||"",Oe={file:"📄",folder:"📁",note:"📝",rule:"⚙️",personality:"🎭",command:"⌘",terminal:"💻",member:"👤"};He=Zr(xp,{target:xe,props:{mention:{id:I.id,type:z,label:E,uri:I.uri,meta:I.meta,icon:Oe[z]||"📄"},position:{x:Q.left,y:Q.bottom+5},onClose:()=>{He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)}}});const Ge=xe.firstElementChild;Ge instanceof HTMLElement&&(it=ze?.register(Ge,$n)),xe.addEventListener("mouseout",Hl)}}}function $l(b){const C=b.target;b.relatedTarget?.closest(".mention-hover-preview")||C.hasAttribute("data-mention")&&He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)}function Hl(b){b.relatedTarget?.closest("[data-mention]")||He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)}async function Fl(b){const C=Ul(b.target);if(C&&C.type!=="member"){if(C.intentUrl){b.preventDefault(),b.stopPropagation();const{handleIntentLink:I}=await Hi(async()=>{const{handleIntentLink:Q}=await import("./CfrT9tcw.js");return{handleIntentLink:Q}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await I(C.intentUrl);return}if(C.type==="note"&&C.note){if(b.preventDefault(),b.stopPropagation(),C.note.workspaceId){const{handleIntentLink:I}=await Hi(async()=>{const{handleIntentLink:Q}=await import("./CfrT9tcw.js");return{handleIntentLink:Q}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await I(Eg(C.note.id,C.note.workspaceId))}else{const{navigateToNote:I}=await Hi(async()=>{const{navigateToNote:Q}=await import("./Bjpdj-Rz.js").then(z=>z.h);return{navigateToNote:Q}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await I(C.note.id)}return}if(C.type==="file"&&C.filePath){b.preventDefault(),b.stopPropagation();const{navigateToFile:I}=await Hi(async()=>{const{navigateToFile:Q}=await import("./Bjpdj-Rz.js").then(z=>z.h);return{navigateToFile:Q}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await I(C.filePath);return}}}function Vl(b){if(!b.metaKey||b.ctrlKey||b.altKey||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(b.key)||!p(S))return;const{state:C,dispatch:I}=p(S).view;if(b.key==="ArrowLeft"){b.preventDefault(),b.stopPropagation();const Q=window.getSelection();Q&&Q.rangeCount>0&&Q.modify(b.shiftKey?"extend":"move","backward","lineboundary")}else if(b.key==="ArrowRight"){b.preventDefault(),b.stopPropagation();const Q=window.getSelection();Q&&Q.rangeCount>0&&Q.modify(b.shiftKey?"extend":"move","forward","lineboundary")}else if(b.key==="ArrowUp"){b.preventDefault(),b.stopPropagation();const Q=1;if(b.shiftKey){const{from:z}=C.selection;I(C.tr.setSelection(j.create(C.doc,Q,z)).scrollIntoView())}else I(C.tr.setSelection(j.create(C.doc,Q)).scrollIntoView())}else if(b.key==="ArrowDown"){b.preventDefault(),b.stopPropagation();const Q=C.doc.content.size-1;if(b.shiftKey){const{to:z}=C.selection;I(C.tr.setSelection(j.create(C.doc,z,Q)).scrollIntoView())}else I(C.tr.setSelection(j.create(C.doc,Q)).scrollIntoView())}}nd(()=>{$r.dispose(),p(S)&&(p(S).view.dom.removeEventListener("keydown",Vl),p(S).destroy()),p($e)&&(p($e).removeEventListener("mouseover",zl),p($e).removeEventListener("mouseout",$l),p($e).removeEventListener("click",Fl)),xe&&xe.removeEventListener("mouseout",Hl),He&&xe&&(wn(He),it?.(),it=void 0,xe.remove())});let No=0;bt(()=>{if(!p(S))return;const b=Wn(p(S));if(o()===b)return;if(p(S).view.hasFocus()){No+=1;return}const C=p(S).view.hasFocus(),{from:I}=p(S).state.selection,Q=++No;(async()=>{const z=zr(o()||"");!p(S)||Q!==No||Wn(p(S))===b&&p(S).chain().command(({tr:E})=>(E.setMeta("external-update",!0),!0)).setContent(z).command(({tr:E,state:Oe})=>{if(C)try{const Ge=Oe.doc.content.size,J=Math.min(I,Ge);E.setSelection(j.create(Oe.doc,J,J))}catch{}return!0}).run()})()}),bt(()=>{p(S)&&p(S).setEditable(p(Ue),!1)}),bt(()=>{!p(S)||p(S).isDestroyed||p(S).view.dispatch(p(S).state.tr.setMeta(Qr,ke()))}),bt(()=>{const b=p(S)?.view.dom;b&&(b.setAttribute("aria-haspopup","listbox"),p(mt)&&p(st)?(b.setAttribute("aria-controls",We),b.setAttribute("aria-activedescendant",p(st))):(b.removeAttribute("aria-controls"),b.removeAttribute("aria-activedescendant")))});var Xp={flushScreenEvidence:bn,showAutocompleteSuggestion:Rp,insertAtSymbol:Lp,insertText:Pp,insertPlainText:_p,focus:Bp,focusEnd:zp,focusAndSelectAll:$p,getHTML:Hp,clear:Fp,setContent:Vp,insertImage:Wp,getInlineImages:jp,getTextContent:Kp,insertContextMention:Up,insertMention:qp,getMentions:Jp,getContextMentions:Gp,get value(){return o()},set value(b=""){o(b),P()},get ariaLabel(){return a()},set ariaLabel(b=se.chat_richInput_editor_ariaLabel()){a(b),P()},get placeholder(){return l()},set placeholder(b=se.chat_richInput_askAnything_placeholder()){l(b),P()},get reactivePlaceholder(){return c()},set reactivePlaceholder(b=!1){c(b),P()},get disabled(){return u()},set disabled(b=!1){u(b),P()},get editableWhileDisabled(){return d()},set editableWhileDisabled(b=!1){d(b),P()},get inputLocked(){return f()},set inputLocked(b=!1){f(b),P()},get class(){return h()},set class(b=""){h(b),P()},get editorClassName(){return m()},set editorClassName(b=""){m(b),P()},get workspace(){return g()},set workspace(b){g(b),P()},get repoPath(){return y()},set repoPath(b){y(b),P()},get autoFocus(){return v()},set autoFocus(b=!1){v(b),P()},get onUpdate(){return x()},set onUpdate(b){x(b),P()},get onSubmit(){return w()},set onSubmit(b){w(b),P()},get onForceSubmit(){return k()},set onForceSubmit(b){k(b),P()},get onEscape(){return H()},set onEscape(b){H(b),P()},get onHistoryPrev(){return O()},set onHistoryPrev(b){O(b),P()},get onHistoryNext(){return R()},set onHistoryNext(b){R(b),P()},get onMentionStart(){return D()},set onMentionStart(b){D(b),P()},get onMentionSelect(){return V()},set onMentionSelect(b){V(b),P()},get onSelectionChange(){return _()},set onSelectionChange(b){_(b),P()},get contextItems(){return be()},set contextItems(b=[]){be(b),P()},get trailingHint(){return ke()},set trailingHint(b=null){ke(b),P()},get autocompleteContext(){return F()},set autocompleteContext(b=null){F(b),P()},get skills(){return B()},set skills(b=[]){B(b),P()},get skillsLoading(){return Z()},set skillsLoading(b=!1){Z(b),P()},get skillsError(){return ne()},set skillsError(b=null){ne(b),P()},get onSkillsRetry(){return _e()},set onSkillsRetry(b){_e(b),P()},get slashCommands(){return et()},set slashCommands(b=[]){et(b),P()},get slashEmptyLabel(){return at()},set slashEmptyLabel(b){at(b),P()},get slashNotice(){return lt()},set slashNotice(b){lt(b),P()},get unavailableSkillTitle(){return N()},set unavailableSkillTitle(b){N(b),P()},get screenReferences(){return Y()},set screenReferences(b){Y(b),P()},get screenInsertions(){return le()},set screenInsertions(b=[]){le(b),P()},get screenInterim(){return q()},set screenInterim(b=[]){q(b),P()},get screenSpeechActive(){return Be()},set screenSpeechActive(b=!1){Be(b),P()},get onScreenInsertionApplied(){return Ae()},set onScreenInsertionApplied(b){Ae(b),P()},get onCompositionChange(){return T()},set onCompositionChange(b){T(b),P()},get onUserTextInput(){return U()},set onUserTextInput(b){U(b),P()},get onScreenReferencesEdited(){return de()},set onScreenReferencesEdited(b){de(b),P()},get minHeight(){return Ne()},set minHeight(b=80){Ne(b),P()},get maxHeight(){return Ce()},set maxHeight(b=300){Ce(b),P()},$set:jt,$on:(b,C)=>Kt(e,b,C)},Oo=UM(),Wl=ye(Oo),Yp=()=>p(mt),Qp=b=>!b&&zi();Lo(Wl,()=>_g,(b,C)=>{C(b,{get open(){return Yp()},set open(I){Qp(I)},children:(I,Q)=>{var z=wr(),E=Bt(z);{let Oe=$(()=>ze?.target());Lo(E,()=>km,(Ge,J)=>{J(Ge,{get to(){return p(Oe)},children:(De,ut)=>{var Xe=wr(),$t=Bt(Xe);{let Hn=$(()=>p($e)??null);Lo($t,()=>Pg,(Fr,Zp)=>{Zp(Fr,{get customAnchor(){return p(Hn)},side:"top",align:"start",sideOffset:4,trapFocus:!1,onOpenAutoFocus:_l,onCloseAutoFocus:_l,class:"z-(--layer-popover) w-72 max-w-full","data-testid":"slash-skill-menu",get ref(){return p(rt)},set ref(Ro){me(rt,Ro,!0)},children:(Ro,JM)=>{Er(Ep(Ro,{get listboxId(){return We},get commands(){return p(Fe)},get items(){return p(fe)},get loading(){return Z()},get error(){return ne()},get emptyLabel(){return at()},get notice(){return lt()},get onRetry(){return _e()},onSelect:Np,onSelectCommand:Op,onDismiss:zi,onActiveOptionChange:Do=>me(st,Do,!0)}),Do=>me(Dt,Do,!0),()=>p(Dt))},$$slots:{default:!0}})})}K(De,Xe)},$$slots:{default:!0}})})}K(I,z)},$$slots:{default:!0}})});var Io=oe(Wl,2);let jl;return Er(Io,b=>me($e,b),()=>p($e)),ue(Oo),ie(()=>{jl=pn(Io,1,`tiptap-container ${h()??""}`,"svelte-bv9i3d",jl,{"placeholder-suppressed":p(ct)}),hi(Io,`--tt-min-height:${Ne()}px;--tt-max-height:${Ce()}px`)}),K(n,Oo),qt(Xp)}export{nM as A,rr as B,o1 as C,or as D,jx as E,M as F,gp as G,gl as H,_i as I,yl as J,xC as K,NE as L,ar as M,pp as N,Jf as O,Ie as P,Te as Q,BS as R,ae as S,Lw as T,LS as U,mS as V,gS as W,_r as X,c1 as a,lC as b,ja as c,ft as d,he as e,Ke as f,pd as g,ot as h,G as i,qx as j,Co as k,KS as l,Ve as m,Oy as n,W as o,Dl as p,Pw as q,j as r,qM as s,Ya as t,Ee as u,KC as v,IE as w,AE as x,Uv as y,X as z};
175
+ `);if(Ge.length>=5){const{state:De,dispatch:ut}=z,Xe=De.schema.nodes.pasteChip.create({content:Oe,lineCount:Ge.length}),$t=De.tr.replaceSelectionWith(Xe).setMeta("uiEvent","paste");return ut($t),!0}const J=E.clipboardData?.getData("text/html");if(J&&pM(J,Oe))return z.dispatch(z.state.tr.insertText(Oe).scrollIntoView().setMeta("uiEvent","paste")),!0;if(/\r|\n/.test(Oe)){const{state:De,dispatch:ut}=z,Xe=Ju(De.schema,Oe);if(Xe.length>0){const $t=new W(M.from(Xe),1,1);return ut(De.tr.replaceSelection($t).scrollIntoView().setMeta("uiEvent","paste")),!0}}}return!1},handleDrop:(z,E)=>xC(E),handleKeyDown:(z,E)=>{if(z.composing||E.isComposing||E.keyCode===229)return!1;if(Ap(z,E)||Dp(E))return!0;if(E.key==="Escape"&&H())return E.preventDefault(),H()(),!0;const Oe=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC"),Ge=J=>Dg(E,Zl(J),Oe);if(Ge("chat.mention-context")&&Zl("chat.mention-context")!=="@")return E.preventDefault(),p(S)?.chain().focus().insertContent("@").run(),!0;if(Oe&&E.ctrlKey&&!E.metaKey){if(E.key==="a"){E.preventDefault();const{state:J,dispatch:De}=z,Xe=J.selection.$head.start();return De(J.tr.setSelection(j.create(J.doc,Xe))),!0}if(E.key==="e"){E.preventDefault();const{state:J,dispatch:De}=z,Xe=J.selection.$head.end();return De(J.tr.setSelection(j.create(J.doc,Xe))),!0}if(E.key==="k"){E.preventDefault();const{state:J,dispatch:De}=z,ut=J.selection.$head,Xe=ut.pos,$t=ut.end();return Xe<$t&&De(J.tr.delete(Xe,$t)),!0}if(E.key==="p"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","backward","line"),!0}if(E.key==="n"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","forward","line"),!0}if(E.key==="f"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","forward","character"),!0}if(E.key==="b"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify("move","backward","character"),!0}}if(E.metaKey&&!E.ctrlKey&&!E.altKey){if(E.key==="ArrowLeft"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify(E.shiftKey?"extend":"move","backward","lineboundary"),!0}if(E.key==="ArrowRight"){E.preventDefault();const J=window.getSelection();return J&&J.rangeCount>0&&J.modify(E.shiftKey?"extend":"move","forward","lineboundary"),!0}if(E.key==="ArrowUp"){E.preventDefault();const{state:J,dispatch:De}=z,ut=1;if(E.shiftKey){const{from:Xe}=J.selection;De(J.tr.setSelection(j.create(J.doc,ut,Xe)))}else De(J.tr.setSelection(j.create(J.doc,ut)));return!0}if(E.key==="ArrowDown"){E.preventDefault();const{state:J,dispatch:De}=z,ut=J.doc.content.size-1;if(E.shiftKey){const{to:Xe}=J.selection;De(J.tr.setSelection(j.create(J.doc,Xe,ut)))}else De(J.tr.setSelection(j.create(J.doc,ut)));return!0}}if(Ge("chat.force-send"))return E.preventDefault(),k()?.(),!0;if(Ge("chat.new-line"))return E.preventDefault(),p(S)?.chain().setHardBreak().scrollIntoView().run(),!0;if(E.key==="ArrowUp"&&O()&&!E.shiftKey&&!E.metaKey&&!E.ctrlKey){if(Hr.pluginKey.getState(z.state)?.active)return!1;const{state:De}=z,{from:ut}=De.selection,Xe=ut<=1,$t=De.doc.textContent.length===0;if(Xe||$t){const Hn=O()();if(Hn!==null)return E.preventDefault(),p(S)?.chain().setContent(zr(Hn)).focus("end").run(),x()?.(Hn),!0}}if(E.key==="ArrowDown"&&R()&&!E.shiftKey&&!E.metaKey&&!E.ctrlKey){if(Hr.pluginKey.getState(z.state)?.active)return!1;const{state:De}=z,{to:ut}=De.selection,Xe=De.doc.content.size-1,$t=ut>=Xe,Hn=De.doc.textContent.length===0;if($t||Hn){const Fr=R()();if(Fr!==null)return E.preventDefault(),p(S)?.chain().setContent(zr(Fr)).focus("end").run(),x()?.(Fr),!0}}return Ge("chat.send")?Hr.pluginKey.getState(z.state)?.active?!1:w()?(E.preventDefault(),w()(),!0):!1:!1}}}),!0),I.addEventListener("mouseover",zl),I.addEventListener("mouseout",$l),I.addEventListener("click",Fl),p(S).view.dom.addEventListener("keydown",Vl)})(),()=>{b=!0}});function zl(b){const C=b.target,I=Ul(C);if(I){const Q=C.getBoundingClientRect();if(!xe){xe=document.createElement("div"),(ze?.target()??document.body).appendChild(xe);const z=I.type||"file",E=I.label||C.textContent||"",Oe={file:"📄",folder:"📁",note:"📝",rule:"⚙️",personality:"🎭",command:"⌘",terminal:"💻",member:"👤"};He=Zr(xp,{target:xe,props:{mention:{id:I.id,type:z,label:E,uri:I.uri,meta:I.meta,icon:Oe[z]||"📄"},position:{x:Q.left,y:Q.bottom+5},onClose:()=>{He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)}}});const Ge=xe.firstElementChild;Ge instanceof HTMLElement&&(it=ze?.register(Ge,$n)),xe.addEventListener("mouseout",Hl)}}}function $l(b){const C=b.target;b.relatedTarget?.closest(".mention-hover-preview")||C.hasAttribute("data-mention")&&He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)}function Hl(b){b.relatedTarget?.closest("[data-mention]")||He&&xe&&(wn(He),it?.(),it=void 0,xe.remove(),He=null,xe=null)}async function Fl(b){const C=Ul(b.target);if(C&&C.type!=="member"){if(C.intentUrl){b.preventDefault(),b.stopPropagation();const{handleIntentLink:I}=await Hi(async()=>{const{handleIntentLink:Q}=await import("./CzU9DzbS.js");return{handleIntentLink:Q}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await I(C.intentUrl);return}if(C.type==="note"&&C.note){if(b.preventDefault(),b.stopPropagation(),C.note.workspaceId){const{handleIntentLink:I}=await Hi(async()=>{const{handleIntentLink:Q}=await import("./CzU9DzbS.js");return{handleIntentLink:Q}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url);await I(Eg(C.note.id,C.note.workspaceId))}else{const{navigateToNote:I}=await Hi(async()=>{const{navigateToNote:Q}=await import("./BAaqzMEP.js").then(z=>z.h);return{navigateToNote:Q}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await I(C.note.id)}return}if(C.type==="file"&&C.filePath){b.preventDefault(),b.stopPropagation();const{navigateToFile:I}=await Hi(async()=>{const{navigateToFile:Q}=await import("./BAaqzMEP.js").then(z=>z.h);return{navigateToFile:Q}},__vite__mapDeps([37,38,2,39,40,41,32,15,5,1,21,22,23,24,8,25,4,27,17,6,7,9,12,33,13,14,16,34,19,36,42,43,44]),import.meta.url);await I(C.filePath);return}}}function Vl(b){if(!b.metaKey||b.ctrlKey||b.altKey||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(b.key)||!p(S))return;const{state:C,dispatch:I}=p(S).view;if(b.key==="ArrowLeft"){b.preventDefault(),b.stopPropagation();const Q=window.getSelection();Q&&Q.rangeCount>0&&Q.modify(b.shiftKey?"extend":"move","backward","lineboundary")}else if(b.key==="ArrowRight"){b.preventDefault(),b.stopPropagation();const Q=window.getSelection();Q&&Q.rangeCount>0&&Q.modify(b.shiftKey?"extend":"move","forward","lineboundary")}else if(b.key==="ArrowUp"){b.preventDefault(),b.stopPropagation();const Q=1;if(b.shiftKey){const{from:z}=C.selection;I(C.tr.setSelection(j.create(C.doc,Q,z)).scrollIntoView())}else I(C.tr.setSelection(j.create(C.doc,Q)).scrollIntoView())}else if(b.key==="ArrowDown"){b.preventDefault(),b.stopPropagation();const Q=C.doc.content.size-1;if(b.shiftKey){const{to:z}=C.selection;I(C.tr.setSelection(j.create(C.doc,z,Q)).scrollIntoView())}else I(C.tr.setSelection(j.create(C.doc,Q)).scrollIntoView())}}nd(()=>{$r.dispose(),p(S)&&(p(S).view.dom.removeEventListener("keydown",Vl),p(S).destroy()),p($e)&&(p($e).removeEventListener("mouseover",zl),p($e).removeEventListener("mouseout",$l),p($e).removeEventListener("click",Fl)),xe&&xe.removeEventListener("mouseout",Hl),He&&xe&&(wn(He),it?.(),it=void 0,xe.remove())});let No=0;bt(()=>{if(!p(S))return;const b=Wn(p(S));if(o()===b)return;if(p(S).view.hasFocus()){No+=1;return}const C=p(S).view.hasFocus(),{from:I}=p(S).state.selection,Q=++No;(async()=>{const z=zr(o()||"");!p(S)||Q!==No||Wn(p(S))===b&&p(S).chain().command(({tr:E})=>(E.setMeta("external-update",!0),!0)).setContent(z).command(({tr:E,state:Oe})=>{if(C)try{const Ge=Oe.doc.content.size,J=Math.min(I,Ge);E.setSelection(j.create(Oe.doc,J,J))}catch{}return!0}).run()})()}),bt(()=>{p(S)&&p(S).setEditable(p(Ue),!1)}),bt(()=>{!p(S)||p(S).isDestroyed||p(S).view.dispatch(p(S).state.tr.setMeta(Qr,ke()))}),bt(()=>{const b=p(S)?.view.dom;b&&(b.setAttribute("aria-haspopup","listbox"),p(mt)&&p(st)?(b.setAttribute("aria-controls",We),b.setAttribute("aria-activedescendant",p(st))):(b.removeAttribute("aria-controls"),b.removeAttribute("aria-activedescendant")))});var Xp={flushScreenEvidence:bn,showAutocompleteSuggestion:Rp,insertAtSymbol:Lp,insertText:Pp,insertPlainText:_p,focus:Bp,focusEnd:zp,focusAndSelectAll:$p,getHTML:Hp,clear:Fp,setContent:Vp,insertImage:Wp,getInlineImages:jp,getTextContent:Kp,insertContextMention:Up,insertMention:qp,getMentions:Jp,getContextMentions:Gp,get value(){return o()},set value(b=""){o(b),P()},get ariaLabel(){return a()},set ariaLabel(b=se.chat_richInput_editor_ariaLabel()){a(b),P()},get placeholder(){return l()},set placeholder(b=se.chat_richInput_askAnything_placeholder()){l(b),P()},get reactivePlaceholder(){return c()},set reactivePlaceholder(b=!1){c(b),P()},get disabled(){return u()},set disabled(b=!1){u(b),P()},get editableWhileDisabled(){return d()},set editableWhileDisabled(b=!1){d(b),P()},get inputLocked(){return f()},set inputLocked(b=!1){f(b),P()},get class(){return h()},set class(b=""){h(b),P()},get editorClassName(){return m()},set editorClassName(b=""){m(b),P()},get workspace(){return g()},set workspace(b){g(b),P()},get repoPath(){return y()},set repoPath(b){y(b),P()},get autoFocus(){return v()},set autoFocus(b=!1){v(b),P()},get onUpdate(){return x()},set onUpdate(b){x(b),P()},get onSubmit(){return w()},set onSubmit(b){w(b),P()},get onForceSubmit(){return k()},set onForceSubmit(b){k(b),P()},get onEscape(){return H()},set onEscape(b){H(b),P()},get onHistoryPrev(){return O()},set onHistoryPrev(b){O(b),P()},get onHistoryNext(){return R()},set onHistoryNext(b){R(b),P()},get onMentionStart(){return D()},set onMentionStart(b){D(b),P()},get onMentionSelect(){return V()},set onMentionSelect(b){V(b),P()},get onSelectionChange(){return _()},set onSelectionChange(b){_(b),P()},get contextItems(){return be()},set contextItems(b=[]){be(b),P()},get trailingHint(){return ke()},set trailingHint(b=null){ke(b),P()},get autocompleteContext(){return F()},set autocompleteContext(b=null){F(b),P()},get skills(){return B()},set skills(b=[]){B(b),P()},get skillsLoading(){return Z()},set skillsLoading(b=!1){Z(b),P()},get skillsError(){return ne()},set skillsError(b=null){ne(b),P()},get onSkillsRetry(){return _e()},set onSkillsRetry(b){_e(b),P()},get slashCommands(){return et()},set slashCommands(b=[]){et(b),P()},get slashEmptyLabel(){return at()},set slashEmptyLabel(b){at(b),P()},get slashNotice(){return lt()},set slashNotice(b){lt(b),P()},get unavailableSkillTitle(){return N()},set unavailableSkillTitle(b){N(b),P()},get screenReferences(){return Y()},set screenReferences(b){Y(b),P()},get screenInsertions(){return le()},set screenInsertions(b=[]){le(b),P()},get screenInterim(){return q()},set screenInterim(b=[]){q(b),P()},get screenSpeechActive(){return Be()},set screenSpeechActive(b=!1){Be(b),P()},get onScreenInsertionApplied(){return Ae()},set onScreenInsertionApplied(b){Ae(b),P()},get onCompositionChange(){return T()},set onCompositionChange(b){T(b),P()},get onUserTextInput(){return U()},set onUserTextInput(b){U(b),P()},get onScreenReferencesEdited(){return de()},set onScreenReferencesEdited(b){de(b),P()},get minHeight(){return Ne()},set minHeight(b=80){Ne(b),P()},get maxHeight(){return Ce()},set maxHeight(b=300){Ce(b),P()},$set:jt,$on:(b,C)=>Kt(e,b,C)},Oo=UM(),Wl=ye(Oo),Yp=()=>p(mt),Qp=b=>!b&&zi();Lo(Wl,()=>_g,(b,C)=>{C(b,{get open(){return Yp()},set open(I){Qp(I)},children:(I,Q)=>{var z=wr(),E=Bt(z);{let Oe=$(()=>ze?.target());Lo(E,()=>km,(Ge,J)=>{J(Ge,{get to(){return p(Oe)},children:(De,ut)=>{var Xe=wr(),$t=Bt(Xe);{let Hn=$(()=>p($e)??null);Lo($t,()=>Pg,(Fr,Zp)=>{Zp(Fr,{get customAnchor(){return p(Hn)},side:"top",align:"start",sideOffset:4,trapFocus:!1,onOpenAutoFocus:_l,onCloseAutoFocus:_l,class:"z-(--layer-popover) w-72 max-w-full","data-testid":"slash-skill-menu",get ref(){return p(rt)},set ref(Ro){me(rt,Ro,!0)},children:(Ro,JM)=>{Er(Ep(Ro,{get listboxId(){return We},get commands(){return p(Fe)},get items(){return p(fe)},get loading(){return Z()},get error(){return ne()},get emptyLabel(){return at()},get notice(){return lt()},get onRetry(){return _e()},onSelect:Np,onSelectCommand:Op,onDismiss:zi,onActiveOptionChange:Do=>me(st,Do,!0)}),Do=>me(Dt,Do,!0),()=>p(Dt))},$$slots:{default:!0}})})}K(De,Xe)},$$slots:{default:!0}})})}K(I,z)},$$slots:{default:!0}})});var Io=oe(Wl,2);let jl;return Er(Io,b=>me($e,b),()=>p($e)),ue(Oo),ie(()=>{jl=pn(Io,1,`tiptap-container ${h()??""}`,"svelte-bv9i3d",jl,{"placeholder-suppressed":p(ct)}),hi(Io,`--tt-min-height:${Ne()}px;--tt-max-height:${Ce()}px`)}),K(n,Oo),qt(Xp)}export{nM as A,rr as B,o1 as C,or as D,jx as E,M as F,gp as G,gl as H,_i as I,yl as J,xC as K,NE as L,ar as M,pp as N,Jf as O,Ie as P,Te as Q,BS as R,ae as S,Lw as T,LS as U,mS as V,gS as W,_r as X,c1 as a,lC as b,ja as c,ft as d,he as e,Ke as f,pd as g,ot as h,G as i,qx as j,Co as k,KS as l,Ve as m,Oy as n,W as o,Dl as p,Pw as q,j as r,qM as s,Ya as t,Ee as u,KC as v,IE as w,AE as x,Uv as y,X as z};
@@ -1,4 +1,4 @@
1
- var d=Object.defineProperty;var f=(e,s,t)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>f(e,typeof s!="symbol"?s+"":s,t);import{aV as p,o as g,aT as c,l as u}from"./DwpTtGo9.js";import{h as b}from"./DEB8jcix.js";function m(e,s,t,r=!1){const o=[0];if(t.decorations?.some(i=>typeof i.start=="number"||typeof i.end=="number")===!0)for(let i=e.indexOf(`
1
+ var d=Object.defineProperty;var f=(e,s,t)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>f(e,typeof s!="symbol"?s+"":s,t);import{aV as p,o as g,aT as c,l as u}from"./BFHz4Mic.js";import{h as b}from"./DEB8jcix.js";function m(e,s,t,r=!1){const o=[0];if(t.decorations?.some(i=>typeof i.start=="number"||typeof i.end=="number")===!0)for(let i=e.indexOf(`
2
2
  `);i!==-1;i=e.indexOf(`
3
3
  `,i+1))o.push(i+1);const a={type:"element",tagName:"code",properties:{},children:[]},h=p(s.tokens,{decorations:t.decorations,mergeWhitespaces:t.mergeWhitespaces,lineOffsets:o,cacheHtmlStyles:r});for(let i=0;i<h.length;i++)i>0&&a.children.push({type:"text",value:`
4
4
  `}),a.children.push(h[i]);const l={type:"root",children:[{type:"element",tagName:"pre",properties:{class:"diffs",style:s.rootStyle===!1?void 0:s.rootStyle??[s.fg!=null?`color:${s.fg}`:"",s.bg!=null?`background-color:${s.bg}`:""].filter(Boolean).join(";"),tabIndex:0},children:[a]}]};return b(l)}var O=class{constructor(e,s){n(this,"name");n(this,"themeResolver");n(this,"disposed",!1);this.name=e,this.themeResolver=s,g(e)}codeToHtml(e,s){return m(e,this.codeToTokens(e,s),s,this.name==="highlights")}get isDisposed(){return this.disposed}dispose(){this.disposed||(this.disposed=!0,this.releaseResources(),c())}assertNotDisposed(){if(this.disposed)throw new u}},v=class{constructor(){n(this,"disposed",!1);n(this,"stableOffset",0);n(this,"unstable",[]);n(this,"pendingCarriageReturn","")}enqueue(e){this.assertActive(),e=this.pendingCarriageReturn+e,this.pendingCarriageReturn=e.endsWith("\r")?"\r":"",this.pendingCarriageReturn!==""&&(e=e.slice(0,-1));const s=this.unstable.length,t=[],{unstable:r,tailLength:o}=this.tokenizeChunk(e,t);return this.pendingCarriageReturn!==""&&r.push({content:"\r",offset:this.stableOffset+o}),this.unstable=r,{recall:s,stable:t,unstable:r}}pushLineBreak(e,s,t){for(let r=0;r<t.length;r++)e.push({content:t[r],offset:this.stableOffset+s+r});this.stableOffset+=s+t.length}close(){const e=this.unstable;return this.dispose(),{stable:e}}clear(){this.assertActive(),this.stableOffset=0,this.unstable=[],this.pendingCarriageReturn="",this.resetSource()}dispose(){this.disposed||(this.disposed=!0,this.unstable=[],this.releaseSource())}copyStateTo(e){e.stableOffset=this.stableOffset,e.unstable=this.unstable.slice(),e.pendingCarriageReturn=this.pendingCarriageReturn}assertActive(){if(this.disposed)throw new Error("stream tokenizer is disposed")}};export{v as B,O as D};