@intent-hq/web 2.384.2 → 2.385.1

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/chunks/{CBvkahdk.js → -9EwpXCb.js} +1 -1
  3. package/web/app/immutable/chunks/{D5u143LD.js → 0Ipp5cFr.js} +1 -1
  4. package/web/app/immutable/chunks/{6n7e2aNB.js → 3qVSmuIV.js} +1 -1
  5. package/web/app/immutable/chunks/{CbDsELcV.js → 3xVgojWv.js} +3 -3
  6. package/web/app/immutable/chunks/{BZidc-yX.js → 418Agcsp.js} +1 -1
  7. package/web/app/immutable/chunks/{CNzCvSR9.js → 44rP4fzJ.js} +1 -1
  8. package/web/app/immutable/chunks/{BTtAt-Pu.js → 4PAYwk2I.js} +1 -1
  9. package/web/app/immutable/chunks/{DXdFemRu.js → 4g_iHoQm.js} +1 -1
  10. package/web/app/immutable/chunks/{CXul4WJt.js → 5-0LQoqd.js} +1 -1
  11. package/web/app/immutable/chunks/{BTc_j7Dt.js → 7KxcPj98.js} +1 -1
  12. package/web/app/immutable/chunks/{CpMQqUEz.js → 7OH6WUSt.js} +1 -1
  13. package/web/app/immutable/chunks/{BwLxx4IG.js → 7y3Z0Q49.js} +3 -3
  14. package/web/app/immutable/chunks/{B4mHWFlW.js → 8jMQM9h0.js} +1 -1
  15. package/web/app/immutable/chunks/{xmnalplU.js → 94vL4WlW.js} +1 -1
  16. package/web/app/immutable/chunks/{BVlMQ1xQ.js → 9GO97JAL.js} +1 -1
  17. package/web/app/immutable/chunks/{CpimfPxg.js → A0KsbysW.js} +1 -1
  18. package/web/app/immutable/chunks/{DaXosNFA.js → B0qb2Ymj.js} +1 -1
  19. package/web/app/immutable/chunks/{k863GLf6.js → B2CniqS1.js} +1 -1
  20. package/web/app/immutable/chunks/{MsC14vMO.js → B3SHGkI_.js} +1 -1
  21. package/web/app/immutable/chunks/{CmImGhNY.js → B433f4mk.js} +1 -1
  22. package/web/app/immutable/chunks/{55FYKQCf.js → B5qiyEpH.js} +1 -1
  23. package/web/app/immutable/chunks/{BNN0vAFF.js → B5tvpTFB.js} +1 -1
  24. package/web/app/immutable/chunks/{CE0jr9sE.js → B6FGs8l2.js} +1 -1
  25. package/web/app/immutable/chunks/{Di3TE7pQ.js → B6d1Nolc.js} +1 -1
  26. package/web/app/immutable/chunks/{B4PfEXaO.js → B6eTPmJH.js} +1 -1
  27. package/web/app/immutable/chunks/{Ipu7_2rx.js → B72XM8Fm.js} +1 -1
  28. package/web/app/immutable/chunks/{B7JHU89G.js → B8HnjSSF.js} +1 -1
  29. package/web/app/immutable/chunks/{xeMXLCBg.js → B8QvP_8b.js} +1 -1
  30. package/web/app/immutable/chunks/{I8XhKsSY.js → BByf3ILj.js} +1 -1
  31. package/web/app/immutable/chunks/{leDczq9h.js → BD9db4FR.js} +1 -1
  32. package/web/app/immutable/chunks/{DLvrhtSt.js → BDsciJGp.js} +1 -1
  33. package/web/app/immutable/chunks/{X-wIiWCo.js → BECK4OaG.js} +1 -1
  34. package/web/app/immutable/chunks/{qLxI2L63.js → BGReMCaT.js} +1 -1
  35. package/web/app/immutable/chunks/{BAdVoGAI.js → BHqp2vwo.js} +1 -1
  36. package/web/app/immutable/chunks/{CIU_APaR.js → BIGqOuh0.js} +1 -1
  37. package/web/app/immutable/chunks/{DilOhRAO.js → BJO0de_7.js} +1 -1
  38. package/web/app/immutable/chunks/{BDPP0w0q.js → BJgwBOBz.js} +1 -1
  39. package/web/app/immutable/chunks/{DxDZbRkP.js → BLKFshyr.js} +1 -1
  40. package/web/app/immutable/chunks/{BcffwE-d.js → BNV0s95-.js} +1 -1
  41. package/web/app/immutable/chunks/{D2Rapl2X.js → BNa9zzEx.js} +1 -1
  42. package/web/app/immutable/chunks/{CVoQx6Vw.js → BO8Bp7Ht.js} +1 -1
  43. package/web/app/immutable/chunks/{rNjiZ_3W.js → BPuz5cN_.js} +2 -2
  44. package/web/app/immutable/chunks/{CgJXgMzB.js → BQ53265L.js} +1 -1
  45. package/web/app/immutable/chunks/{DN-MAVuE.js → BQvwLP7I.js} +1 -1
  46. package/web/app/immutable/chunks/{Bygp72Wl.js → BSUnflvl.js} +1 -1
  47. package/web/app/immutable/chunks/{Df4fyHSB.js → BSgFpkqa.js} +1 -1
  48. package/web/app/immutable/chunks/{BOpszErG.js → BSntxgH1.js} +1 -1
  49. package/web/app/immutable/chunks/{NZ_vlsKe.js → BTEoQf52.js} +1 -1
  50. package/web/app/immutable/chunks/{jiLgt56M.js → BTLG1BY-.js} +1 -1
  51. package/web/app/immutable/chunks/{Cb6nJOfB.js → BV1ayWTC.js} +1 -1
  52. package/web/app/immutable/chunks/{_0LhNaan.js → BV4VuEnO.js} +1 -1
  53. package/web/app/immutable/chunks/{CIzFSDuO.js → BVkAOJlr.js} +1 -1
  54. package/web/app/immutable/chunks/{Bosi029J.js → BVl79jmM.js} +1 -1
  55. package/web/app/immutable/chunks/{Bw8_vMki.js → BVqF0sgN.js} +1 -1
  56. package/web/app/immutable/chunks/{iVHs_bWz.js → BVuLEX_p.js} +1 -1
  57. package/web/app/immutable/chunks/{uAXEbxa8.js → BW1iql_y.js} +1 -1
  58. package/web/app/immutable/chunks/{DZnKNdAN.js → BWzMAxc1.js} +1 -1
  59. package/web/app/immutable/chunks/{DDnDtSlm.js → BXJzIaQM.js} +1 -1
  60. package/web/app/immutable/chunks/{CbucW-av.js → BYl8t9od.js} +1 -1
  61. package/web/app/immutable/chunks/{D4ZMSrvm.js → BZVhwNIm.js} +3 -3
  62. package/web/app/immutable/chunks/{Mh0PqgbP.js → B_4WsP9b.js} +1 -1
  63. package/web/app/immutable/chunks/{D5-RCLzi.js → B_75gRww.js} +1 -1
  64. package/web/app/immutable/chunks/{CQZUFyS7.js → BbLh3POL.js} +1 -1
  65. package/web/app/immutable/chunks/{D5q2XDzo.js → BbuLzldI.js} +1 -1
  66. package/web/app/immutable/chunks/{72S4_8Fo.js → Bc1vJq_Z.js} +1 -1
  67. package/web/app/immutable/chunks/{BTtqZJEI.js → BcKrkXju.js} +1 -1
  68. package/web/app/immutable/chunks/{6kZoubzS.js → BdEtT3Ti.js} +1 -1
  69. package/web/app/immutable/chunks/{BXE_7Biv.js → Bf_nrOhg.js} +1 -1
  70. package/web/app/immutable/chunks/{CwHPdS9l.js → BgDnzAo4.js} +1 -1
  71. package/web/app/immutable/chunks/{0tWsVa0y.js → Bi_Yd73A.js} +1 -1
  72. package/web/app/immutable/chunks/{CEjK2ich.js → BjlMkd10.js} +1 -1
  73. package/web/app/immutable/chunks/{RWWlGLMu.js → BlIRL_82.js} +1 -1
  74. package/web/app/immutable/chunks/{Ciei8d6b.js → Bs7M8kXA.js} +3 -3
  75. package/web/app/immutable/chunks/{CMbvNZma.js → BtBQ5qfh.js} +1 -1
  76. package/web/app/immutable/chunks/{CcmN1reb.js → Bu-RLSv9.js} +1 -1
  77. package/web/app/immutable/chunks/{CXrVII1G.js → BuFDqZnJ.js} +1 -1
  78. package/web/app/immutable/chunks/{CJoPlWyA.js → Bv_xG3nA.js} +1 -1
  79. package/web/app/immutable/chunks/{Djz9uuuA.js → BvbeTrka.js} +1 -1
  80. package/web/app/immutable/chunks/{DkET5D1Z.js → BvgjsneA.js} +1 -1
  81. package/web/app/immutable/chunks/{4jB5IsVV.js → BwPwF85e.js} +1 -1
  82. package/web/app/immutable/chunks/{B4l71ix-.js → By4iSN8L.js} +1 -1
  83. package/web/app/immutable/chunks/{CU_25eHm.js → BzSCTZkL.js} +1 -1
  84. package/web/app/immutable/chunks/{IxfPVMNO.js → C-G2u0Oe.js} +1 -1
  85. package/web/app/immutable/chunks/{DpeQIGDn.js → C-L0-C2F.js} +2 -2
  86. package/web/app/immutable/chunks/{0v4yIgtg.js → C-PQQ8rb.js} +1 -1
  87. package/web/app/immutable/chunks/{D400ElMz.js → C-zB-6G6.js} +1 -1
  88. package/web/app/immutable/chunks/{YtoDeXhM.js → C0Zo7HuP.js} +1 -1
  89. package/web/app/immutable/chunks/{ump_SWLl.js → C1AUaRa8.js} +1 -1
  90. package/web/app/immutable/chunks/{COB2k0Aa.js → C2F2Vd1P.js} +1 -1
  91. package/web/app/immutable/chunks/{Bm6FDHvN.js → C2WwQCOk.js} +1 -1
  92. package/web/app/immutable/chunks/{YTt0B0lA.js → C37ZqG4e.js} +1 -1
  93. package/web/app/immutable/chunks/{D0sQr-H_.js → C429ZMSU.js} +1 -1
  94. package/web/app/immutable/chunks/{C6g7LzDB.js → C50zlWbZ.js} +1 -1
  95. package/web/app/immutable/chunks/{4oPBEC4-.js → C5b7nimj.js} +1 -1
  96. package/web/app/immutable/chunks/{CmbheRhJ.js → C63WwVct.js} +1 -1
  97. package/web/app/immutable/chunks/{Za_i3D8P.js → C6TTEdST.js} +4 -4
  98. package/web/app/immutable/chunks/{Bap7o4n5.js → C78AfvXn.js} +1 -1
  99. package/web/app/immutable/chunks/{CJW4jhjq.js → C8LrJXqa.js} +1 -1
  100. package/web/app/immutable/chunks/C8qAflad.js +2 -0
  101. package/web/app/immutable/chunks/{B7h1ZmQS.js → C8zl7aIj.js} +1 -1
  102. package/web/app/immutable/chunks/{Bb9tq6rt.js → C9ew0Hx2.js} +1 -1
  103. package/web/app/immutable/chunks/{DpChblex.js → C9p4fddz.js} +1 -1
  104. package/web/app/immutable/chunks/{C0fFeGdB.js → CAfPEsZt.js} +1 -1
  105. package/web/app/immutable/chunks/{CBZTF7Qa.js → CC-IHSah.js} +4 -4
  106. package/web/app/immutable/chunks/CCIZBeez.js +1 -0
  107. package/web/app/immutable/chunks/{BhVPbMnV.js → CD-M_2xD.js} +1 -1
  108. package/web/app/immutable/chunks/{cKonll34.js → CDAnHxmJ.js} +1 -1
  109. package/web/app/immutable/chunks/{Dfh8DRT0.js → CE70-gZI.js} +3 -3
  110. package/web/app/immutable/chunks/{AYsHMWH3.js → CEEUgGO1.js} +1 -1
  111. package/web/app/immutable/chunks/{BYU-C1jV.js → CGPajdHq.js} +2 -2
  112. package/web/app/immutable/chunks/{DETS1-K4.js → CGYPBD6G.js} +1 -1
  113. package/web/app/immutable/chunks/{C0CrTfQC.js → CHto7_WH.js} +1 -1
  114. package/web/app/immutable/chunks/{KMO8sO00.js → CI0C7_h-.js} +1 -1
  115. package/web/app/immutable/chunks/{CHMwcoWM.js → CIaruUrd.js} +1 -1
  116. package/web/app/immutable/chunks/{BzqJYEOZ.js → CJB-ebPL.js} +1 -1
  117. package/web/app/immutable/chunks/{DJM7b4MF.js → CN-EAu8o.js} +1 -1
  118. package/web/app/immutable/chunks/{CYQKXGJn.js → CNE5cVvC.js} +1 -1
  119. package/web/app/immutable/chunks/{CegXgKbh.js → CNSshwg_.js} +1 -1
  120. package/web/app/immutable/chunks/CNWb-jYE.js +1 -0
  121. package/web/app/immutable/chunks/{BEiVNbJd.js → CNnF3Cms.js} +1 -1
  122. package/web/app/immutable/chunks/{O63l2zGE.js → COgn_CzG.js} +1 -1
  123. package/web/app/immutable/chunks/{BWtgRgi0.js → CPI5xBWX.js} +1 -1
  124. package/web/app/immutable/chunks/{McOgUz0K.js → CPO5_F83.js} +1 -1
  125. package/web/app/immutable/chunks/{ByYwSpDO.js → CQMFoUkp.js} +1 -1
  126. package/web/app/immutable/chunks/{BmALJKBY.js → CR-JVxLD.js} +1 -1
  127. package/web/app/immutable/chunks/{CP9jggxp.js → CRSY1kuo.js} +1 -1
  128. package/web/app/immutable/chunks/{DpmMYKqt.js → CTW83wJs.js} +1 -1
  129. package/web/app/immutable/chunks/{Cx6Utm5I.js → CUsqN2sK.js} +1 -1
  130. package/web/app/immutable/chunks/{DMrypNw-.js → CV2tdNDf.js} +1 -1
  131. package/web/app/immutable/chunks/{C9fPgzDG.js → CWOQ_pUA.js} +1 -1
  132. package/web/app/immutable/chunks/{CJHIllR1.js → CX4-Z2NI.js} +1 -1
  133. package/web/app/immutable/chunks/{CWwAStwx.js → CXDUvPYf.js} +1 -1
  134. package/web/app/immutable/chunks/{BJZU-qAV.js → CXpEvkVR.js} +1 -1
  135. package/web/app/immutable/chunks/{_Tye__BB.js → CYSndAne.js} +1 -1
  136. package/web/app/immutable/chunks/{DnHJL326.js → C_SKcJv7.js} +1 -1
  137. package/web/app/immutable/chunks/{Ct8L3-dh.js → CdSTecgc.js} +1 -1
  138. package/web/app/immutable/chunks/{D3qs3VJZ.js → CfYZevDu.js} +1 -1
  139. package/web/app/immutable/chunks/{BEjISjEF.js → Che-KvdU.js} +1 -1
  140. package/web/app/immutable/chunks/{CUWtSiZ5.js → Cj1KG0_l.js} +1 -1
  141. package/web/app/immutable/chunks/{BBV_EtXR.js → Cl_O0hHI.js} +1 -1
  142. package/web/app/immutable/chunks/{edw8TVSr.js → CletI6Pa.js} +1 -1
  143. package/web/app/immutable/chunks/{CwTWayd0.js → Clo7aK1n.js} +1 -1
  144. package/web/app/immutable/chunks/{BCx-pM-8.js → CmyBYYR3.js} +1 -1
  145. package/web/app/immutable/chunks/{CWezNj5-.js → CoJyxFcH.js} +1 -1
  146. package/web/app/immutable/chunks/{DCP9TL-A.js → Cp02CBjf.js} +1 -1
  147. package/web/app/immutable/chunks/{BaJfBXet.js → Cp7Byf5d.js} +1 -1
  148. package/web/app/immutable/chunks/{C4IVoYqo.js → CpFDUMBH.js} +1 -1
  149. package/web/app/immutable/chunks/{BK6CZrM5.js → CqUPwDgo.js} +1 -1
  150. package/web/app/immutable/chunks/{DKrlwauu.js → CqVGtsXz.js} +1 -1
  151. package/web/app/immutable/chunks/{4QXQvR4H.js → Cq_jjcoF.js} +1 -1
  152. package/web/app/immutable/chunks/{DnozpXMO.js → CrbAS4DB.js} +1 -1
  153. package/web/app/immutable/chunks/{DXB4L22V.js → CrsbEWnE.js} +1 -1
  154. package/web/app/immutable/chunks/{DV6uX7ff.js → CrvVM5aL.js} +1 -1
  155. package/web/app/immutable/chunks/{DOuyIvfN.js → CuPx_r7k.js} +1 -1
  156. package/web/app/immutable/chunks/{D6Hf6lXy.js → CuWLpCl5.js} +1 -1
  157. package/web/app/immutable/chunks/{BGaOyp5o.js → CuljOS_X.js} +1 -1
  158. package/web/app/immutable/chunks/{BhpCwvYl.js → Cv0wEzuo.js} +1 -1
  159. package/web/app/immutable/chunks/Cw-qJqDx.js +2 -0
  160. package/web/app/immutable/chunks/{oTjaecL9.js → Cx0QXTIW.js} +1 -1
  161. package/web/app/immutable/chunks/{WWSsQ21S.js → CxndkliV.js} +1 -1
  162. package/web/app/immutable/chunks/{2bsrY56g.js → Cy3lhXYa.js} +6 -6
  163. package/web/app/immutable/chunks/{BD47nZkr.js → Cy9hcA7q.js} +1 -1
  164. package/web/app/immutable/chunks/{BHKaBN6i.js → CzDPvHAo.js} +1 -1
  165. package/web/app/immutable/chunks/{Df-2xtN9.js → D-KE4WZ3.js} +1 -1
  166. package/web/app/immutable/chunks/{CjZEyjv4.js → D-rRuAXZ.js} +1 -1
  167. package/web/app/immutable/chunks/{Dk0Z1pVU.js → D1zX4MuR.js} +1 -1
  168. package/web/app/immutable/chunks/{Dm9EHXJZ.js → D2hNxvgD.js} +4 -4
  169. package/web/app/immutable/chunks/{BGN0Ete3.js → D2kwjrZB.js} +1 -1
  170. package/web/app/immutable/chunks/{oki3b9jv.js → D5Pfy-wQ.js} +1 -1
  171. package/web/app/immutable/chunks/{DTU57FsX.js → D7Dfbf5g.js} +1 -1
  172. package/web/app/immutable/chunks/{CCAcpS1o.js → D7xjMCds.js} +2 -2
  173. package/web/app/immutable/chunks/{CdMAY9xp.js → DBH_GMOZ.js} +1 -1
  174. package/web/app/immutable/chunks/{CPel99qV.js → DDb9H7X6.js} +3 -3
  175. package/web/app/immutable/chunks/{DfOxl3xY.js → DEs9kPtf.js} +1 -1
  176. package/web/app/immutable/chunks/{DoStKyYK.js → DFGMgfIk.js} +2 -2
  177. package/web/app/immutable/chunks/{CceLSCZq.js → DG0pBglL.js} +1 -1
  178. package/web/app/immutable/chunks/{DhHLTWgE.js → DGMrUmNq.js} +1 -1
  179. package/web/app/immutable/chunks/{CvxVjZLu.js → DI71nFp4.js} +1 -1
  180. package/web/app/immutable/chunks/{AXE1aiRo.js → DJPIUVkw.js} +1 -1
  181. package/web/app/immutable/chunks/{BWmYJDmC.js → DLCFUd4s.js} +1 -1
  182. package/web/app/immutable/chunks/{2V6-Yhg-.js → DM1_VFfD.js} +1 -1
  183. package/web/app/immutable/chunks/{jmJoSjVa.js → DMe_MB5T.js} +1 -1
  184. package/web/app/immutable/chunks/{ZNhLMxqQ.js → DN-DN78v.js} +2 -2
  185. package/web/app/immutable/chunks/{CI-VmE1m.js → DNDlsdj4.js} +1 -1
  186. package/web/app/immutable/chunks/{wZz1J3UE.js → DOkArUrJ.js} +1 -1
  187. package/web/app/immutable/chunks/{Bs8vOu-_.js → DPR_clFy.js} +1 -1
  188. package/web/app/immutable/chunks/{7Em2EC6e.js → DQT1hnTe.js} +1 -1
  189. package/web/app/immutable/chunks/{BNFLngEB.js → DRqy_Wmb.js} +1 -1
  190. package/web/app/immutable/chunks/{BPZBxYco.js → DRsDUO-4.js} +1 -1
  191. package/web/app/immutable/chunks/{D0I7VQ8a.js → DSiGyv9Y.js} +1 -1
  192. package/web/app/immutable/chunks/{BzllE3aT.js → DT5eV1e8.js} +2 -2
  193. package/web/app/immutable/chunks/{RzextV4B.js → DTMxJ5IC.js} +2 -2
  194. package/web/app/immutable/chunks/{DKLk3Wx8.js → DTwG0V2f.js} +1 -1
  195. package/web/app/immutable/chunks/{CU89eAKc.js → DV7x43jt.js} +1 -1
  196. package/web/app/immutable/chunks/{Chx7ONT3.js → DVUFgbJK.js} +1 -1
  197. package/web/app/immutable/chunks/{ez7LBTR9.js → DVwMeV9X.js} +1 -1
  198. package/web/app/immutable/chunks/{CSIAWhhl.js → DW25Ls6A.js} +1 -1
  199. package/web/app/immutable/chunks/{BEvFtidS.js → DWa-2rkZ.js} +1 -1
  200. package/web/app/immutable/chunks/{CRFehAxF.js → DX9N1RQz.js} +1 -1
  201. package/web/app/immutable/chunks/{DCGl0RXW.js → DXRkYB1Y.js} +47 -47
  202. package/web/app/immutable/chunks/{DAzQ7i2U.js → DYEwyuIx.js} +1 -1
  203. package/web/app/immutable/chunks/{BaodMpKG.js → DZmGZ5am.js} +1 -1
  204. package/web/app/immutable/chunks/{DB4f78Ip.js → D_VvdZe2.js} +1 -1
  205. package/web/app/immutable/chunks/{BNm3whw0.js → Da-Blgd9.js} +1 -1
  206. package/web/app/immutable/chunks/{BXT21uPn.js → DcOkWaeN.js} +1 -1
  207. package/web/app/immutable/chunks/{QFC15GkG.js → De0kCZ4v.js} +2 -2
  208. package/web/app/immutable/chunks/{CK2Cr1RP.js → Dg0Tdf_A.js} +1 -1
  209. package/web/app/immutable/chunks/{Cb0AGw5F.js → DgKpR9KC.js} +1 -1
  210. package/web/app/immutable/chunks/{D2LsUZli.js → DhXcDqZX.js} +1 -1
  211. package/web/app/immutable/chunks/{DGZLYT-c.js → DiMo2JnB.js} +1 -1
  212. package/web/app/immutable/chunks/{Jh2BVut2.js → DiURwJNX.js} +1 -1
  213. package/web/app/immutable/chunks/{gkPeOUJv.js → DjIQY_o5.js} +1 -1
  214. package/web/app/immutable/chunks/{C5tAJtyd.js → DlU1rxYV.js} +1 -1
  215. package/web/app/immutable/chunks/{BQ1b28aV.js → DlUpt_0u.js} +1 -1
  216. package/web/app/immutable/chunks/{BRsOtr8M.js → Dm-WfTCg.js} +1 -1
  217. package/web/app/immutable/chunks/{Dl9we4aZ.js → DmCKwthV.js} +1 -1
  218. package/web/app/immutable/chunks/{1MN-thc1.js → Do2KlQU0.js} +1 -1
  219. package/web/app/immutable/chunks/{2ndYjFQq.js → Dp8FVKoA.js} +1 -1
  220. package/web/app/immutable/chunks/{BEpYOO0x.js → Dqd75Edx.js} +1 -1
  221. package/web/app/immutable/chunks/{BqCuw50f.js → DsfORPYa.js} +1 -1
  222. package/web/app/immutable/chunks/{Cw2ZnpX7.js → DtFzaymP.js} +1 -1
  223. package/web/app/immutable/chunks/{CcSZrbR4.js → DtqPBHQj.js} +1 -1
  224. package/web/app/immutable/chunks/{CXCw-Jw-.js → DuAAGnM9.js} +1 -1
  225. package/web/app/immutable/chunks/{CAmQkXZq.js → Dval4sTX.js} +1 -1
  226. package/web/app/immutable/chunks/{CJtFSxbf.js → Dvi4g0xk.js} +1 -1
  227. package/web/app/immutable/chunks/Dws-34a7.js +1 -0
  228. package/web/app/immutable/chunks/{DaZ7K0cS.js → DxAjMnFs.js} +3 -3
  229. package/web/app/immutable/chunks/{BdnR40vX.js → DxC0zTSc.js} +1 -1
  230. package/web/app/immutable/chunks/{B8nUpMEz.js → DxRojUvw.js} +1 -1
  231. package/web/app/immutable/chunks/{DbDI5c8r.js → Dxfvrgme.js} +1 -1
  232. package/web/app/immutable/chunks/{BAAb6Ol7.js → DyXAZ9tr.js} +1 -1
  233. package/web/app/immutable/chunks/{BqU6TsU1.js → DzG7lmwB.js} +1 -1
  234. package/web/app/immutable/chunks/{Bc3o0U_Z.js → Ex_x2wO5.js} +1 -1
  235. package/web/app/immutable/chunks/{D4g4334W.js → GP4LXuR4.js} +1 -1
  236. package/web/app/immutable/chunks/{C0A3yiL9.js → HU1Ksz8U.js} +1 -1
  237. package/web/app/immutable/chunks/{BvFRd1je.js → JM7CQkWC.js} +1 -1
  238. package/web/app/immutable/chunks/{Dg5FvxXA.js → KzySRhDw.js} +3 -3
  239. package/web/app/immutable/chunks/{CJ72QIuX.js → L-Sh3Ble.js} +3 -3
  240. package/web/app/immutable/chunks/{DOU-V4Cg.js → LI9J8Eor.js} +2 -2
  241. package/web/app/immutable/chunks/{CGaMCAik.js → LQRHF1eM.js} +1 -1
  242. package/web/app/immutable/chunks/{DB0jxR-D.js → L_sfch_N.js} +1 -1
  243. package/web/app/immutable/chunks/{rYnu2FeJ.js → LgyvMkc8.js} +1 -1
  244. package/web/app/immutable/chunks/{CayjT2l8.js → M1XBe23f.js} +1 -1
  245. package/web/app/immutable/chunks/{x019Lcmv.js → OGqbAD_O.js} +1 -1
  246. package/web/app/immutable/chunks/{DZEg_JlV.js → PhAbES0t.js} +1 -1
  247. package/web/app/immutable/chunks/{ChdMCKvy.js → Q2C1NT93.js} +1 -1
  248. package/web/app/immutable/chunks/{BaJMqkSd.js → QRUY44Ff.js} +1 -1
  249. package/web/app/immutable/chunks/{9Bk8hwX5.js → RHSH5iZ7.js} +1 -1
  250. package/web/app/immutable/chunks/{C9aF-Sor.js → SbTG0nwQ.js} +1 -1
  251. package/web/app/immutable/chunks/{DltbAw1B.js → THqyVjkf.js} +1 -1
  252. package/web/app/immutable/chunks/{CyYfX9fz.js → TT8yXpG-.js} +1 -1
  253. package/web/app/immutable/chunks/{C4VXXfVL.js → U7dpdlAf.js} +1 -1
  254. package/web/app/immutable/chunks/{H9nIRlnK.js → V6efYFFY.js} +1 -1
  255. package/web/app/immutable/chunks/{Bcb1iqQJ.js → VeUh5OMZ.js} +1 -1
  256. package/web/app/immutable/chunks/{DHbqsCcC.js → VvLcPf2a.js} +1 -1
  257. package/web/app/immutable/chunks/Whej1Dge.js +1 -0
  258. package/web/app/immutable/chunks/{hcDGwCEP.js → XEsFBJqZ.js} +1 -1
  259. package/web/app/immutable/chunks/{BziYv9ZW.js → ZR3wQ419.js} +2 -2
  260. package/web/app/immutable/chunks/{B7RoQL2j.js → _i0M7_-r.js} +2 -2
  261. package/web/app/immutable/chunks/{DZAKdz0-.js → ada9rZfE.js} +1 -1
  262. package/web/app/immutable/chunks/{BLZhAOLT.js → deEweluJ.js} +1 -1
  263. package/web/app/immutable/chunks/{Do6vtrQf.js → dmZv6JOg.js} +1 -1
  264. package/web/app/immutable/chunks/{DZjKvOyB.js → e2ymG0j7.js} +1 -1
  265. package/web/app/immutable/chunks/{DLKd3Oyl.js → e3_wv2e_.js} +1 -1
  266. package/web/app/immutable/chunks/{BJHkJxQ6.js → fHygQTSC.js} +1 -1
  267. package/web/app/immutable/chunks/{CnHcPhIW.js → fVXs4sxg.js} +4 -4
  268. package/web/app/immutable/chunks/{CbqBbwIN.js → gU2qspu9.js} +1 -1
  269. package/web/app/immutable/chunks/{BFc0Rlfo.js → gZJn6Sk0.js} +1 -1
  270. package/web/app/immutable/chunks/{-J-Hmuck.js → h8JtxU_T.js} +1 -1
  271. package/web/app/immutable/chunks/{HQDMr2H7.js → iCWz6IE9.js} +1 -1
  272. package/web/app/immutable/chunks/{h3LTJhAu.js → iPHmrqbo.js} +1 -1
  273. package/web/app/immutable/chunks/{CbaFGz2w.js → jBG7W4tL.js} +1 -1
  274. package/web/app/immutable/chunks/{DVL_BM5a.js → jH2J-9un.js} +1 -1
  275. package/web/app/immutable/chunks/{tF7VK2wM.js → l1lBFBJz.js} +1 -1
  276. package/web/app/immutable/chunks/{oRcurxpq.js → lTwh0Wzj.js} +1 -1
  277. package/web/app/immutable/chunks/{DcACHBPs.js → n5-dpvss.js} +1 -1
  278. package/web/app/immutable/chunks/{DyHx5QFY.js → nwO3KCpP.js} +1 -1
  279. package/web/app/immutable/chunks/{CjyJQV6j.js → pHBnQb5R.js} +1 -1
  280. package/web/app/immutable/chunks/{05jEdw2V.js → pMP23LzB.js} +1 -1
  281. package/web/app/immutable/chunks/{BJTYazIn.js → pomj9evG.js} +1 -1
  282. package/web/app/immutable/chunks/{mLzVJBUx.js → qO0mYaJv.js} +1 -1
  283. package/web/app/immutable/chunks/{x_GKKTQV.js → rXKOJqUt.js} +1 -1
  284. package/web/app/immutable/chunks/rcXEnwTB.js +158 -0
  285. package/web/app/immutable/chunks/{BXyd6A9p.js → sSXTMg2P.js} +1 -1
  286. package/web/app/immutable/chunks/{B0fUscDD.js → tLFaYuVN.js} +1 -1
  287. package/web/app/immutable/chunks/{B7o2QL9R.js → waHi6l7h.js} +1 -1
  288. package/web/app/immutable/chunks/{DU4sJYad.js → wiGlLVr-.js} +1 -1
  289. package/web/app/immutable/chunks/{D8s3q34H.js → xGzY0FqC.js} +1 -1
  290. package/web/app/immutable/chunks/{CCPr9hs_.js → yDmmPu6L.js} +1 -1
  291. package/web/app/immutable/chunks/{Dv-bjgEk.js → zB9UbdEg.js} +1 -1
  292. package/web/app/immutable/entry/{app.CHgb5yMQ.js → app.BXfGjD4L.js} +3 -3
  293. package/web/app/immutable/entry/start.DRVSg-kr.js +1 -0
  294. package/web/app/immutable/nodes/{0.DECevrtM.js → 0.CoxSTVXk.js} +1 -1
  295. package/web/app/immutable/nodes/{1.LZZdSQoJ.js → 1.BbjU9IH_.js} +1 -1
  296. package/web/app/immutable/nodes/10.D6wyP02T.js +39 -0
  297. package/web/app/immutable/nodes/{11.D5CTYtT6.js → 11.ukc3KQLY.js} +1 -1
  298. package/web/app/immutable/nodes/{12.iQywXLwT.js → 12.D6rxlIQy.js} +1 -1
  299. package/web/app/immutable/nodes/{13.m6xe0bMv.js → 13.CHYsmiD_.js} +1 -1
  300. package/web/app/immutable/nodes/{14.CyaNpqAL.js → 14.mG-YN9pn.js} +3 -3
  301. package/web/app/immutable/nodes/{15.5st_fzCN.js → 15.CUWA_Nvq.js} +1 -1
  302. package/web/app/immutable/nodes/{16.MUmBS-bv.js → 16.BsFtzH0D.js} +1 -1
  303. package/web/app/immutable/nodes/{17.C_k1qpf6.js → 17.me_aOx8O.js} +1 -1
  304. package/web/app/immutable/nodes/{18.BjTfofOz.js → 18.BO1oZWgm.js} +1 -1
  305. package/web/app/immutable/nodes/{19.wB7XsK3B.js → 19.D9cBSCEY.js} +2 -2
  306. package/web/app/immutable/nodes/{2.C7whbYui.js → 2.pGtn3nxM.js} +4 -4
  307. package/web/app/immutable/nodes/{20.DuDV-BZU.js → 20.LbRPieV_.js} +1 -1
  308. package/web/app/immutable/nodes/{3.KbBbpAm6.js → 3.Bm-Ewkeu.js} +1 -1
  309. package/web/app/immutable/nodes/{4.C1b_QyI0.js → 4.bypHtb3m.js} +1 -1
  310. package/web/app/immutable/nodes/{5.CG-B5vOM.js → 5.YWphdJEW.js} +1 -1
  311. package/web/app/immutable/nodes/{6.v-GnNHdu.js → 6.DQRfO1Qb.js} +1 -1
  312. package/web/app/immutable/nodes/{7.D9LU-AZb.js → 7.b1goQuXf.js} +1 -1
  313. package/web/app/immutable/nodes/{8.BJP_1POW.js → 8.BBgV9gU6.js} +1 -1
  314. package/web/app/immutable/nodes/{9.f8mHa7_b.js → 9.BJdtENce.js} +4 -4
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/B8evz7o6.js +0 -2
  319. package/web/app/immutable/chunks/C0P2MUJp.js +0 -1
  320. package/web/app/immutable/chunks/D8elUKsb.js +0 -158
  321. package/web/app/immutable/chunks/DY52XPja.js +0 -2
  322. package/web/app/immutable/chunks/KU76P7cR.js +0 -1
  323. package/web/app/immutable/chunks/akx8_VtJ.js +0 -1
  324. package/web/app/immutable/chunks/hY0rMePc.js +0 -1
  325. package/web/app/immutable/entry/start.CINDVXKj.js +0 -1
  326. package/web/app/immutable/nodes/10.KUh1filM.js +0 -39
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BziYv9ZW.js","/app/immutable/chunks/hY0rMePc.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/x_GKKTQV.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BWmYJDmC.js","/app/immutable/chunks/leDczq9h.js","/app/immutable/chunks/CjZEyjv4.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CIU_APaR.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/D400ElMz.js","/app/immutable/chunks/rNjiZ_3W.js","/app/immutable/chunks/BTc_j7Dt.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BNN0vAFF.js","/app/immutable/chunks/CXul4WJt.js","/app/immutable/chunks/B7JHU89G.js","/app/immutable/chunks/BXT21uPn.js","/app/immutable/chunks/DXdFemRu.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/B4mHWFlW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/DETS1-K4.js","/app/immutable/chunks/72S4_8Fo.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/C9aF-Sor.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CAmQkXZq.js","/app/immutable/chunks/CcSZrbR4.js","/app/immutable/chunks/B0fUscDD.js","/app/immutable/chunks/DnozpXMO.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/2bsrY56g.js","/app/immutable/chunks/CceLSCZq.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/QFC15GkG.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CK2Cr1RP.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"./hY0rMePc.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"./BNN0vAFF.js";import{s as St,f as pn,c as ca,b as cm,g as hi,e as um}from"./leDczq9h.js";import{b as Er}from"./Dn334wJv.js";import{i as dm}from"./CmbheRhJ.js";import{d2 as fm,aF as hm,aT as Ul}from"./Cw2ZnpX7.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"./CIU_APaR.js";import{i as Se}from"./BWmYJDmC.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"./DETS1-K4.js";import{t as ig}from"./CjZEyjv4.js";import{e as sg}from"./-J-Hmuck.js";import{b as og,V as Yl,c as ag,p as lg,m as cg,s as ug}from"./4QXQvR4H.js";import{h as dg}from"./rNjiZ_3W.js";import{g as kr,i as fg}from"./D400ElMz.js";import{L as hg,S as pg,T as dd}from"./Cb6nJOfB.js";import{n as mg,l as ps}from"./B7JHU89G.js";import{h as gg}from"./DOU-V4Cg.js";import{br as yg}from"./DXdFemRu.js";import{g as bg}from"./BNm3whw0.js";import{c as qa,l as pe}from"./ChTqQfQN.js";import{n as Ql,l as vg,c as kg}from"./72S4_8Fo.js";import{$ as fd,a0 as xg,p as ua,aO as wg,am as Sg,a1 as Cg,e9 as Mg,a9 as Eg}from"./C9aF-Sor.js";import{i as cn,M as Tg,D as Ag,s as _o,a as Ng,p as lr}from"./B7RoQL2j.js";import{A as Og,b as Ig}from"./Bcb1iqQJ.js";import{P as Rg}from"./CWezNj5-.js";import{a as hd}from"./BEvFtidS.js";import{g as Zl}from"./k863GLf6.js";import{H as Dg}from"./Bqd7fdCF.js";import{q as Lg}from"./CbaFGz2w.js";import{b as Pg,P as _g}from"./I8XhKsSY.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/ZR3wQ419.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/rXKOJqUt.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BIGqOuh0.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/5-0LQoqd.js","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/DcOkWaeN.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/Bc1vJq_Z.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/CrbAS4DB.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Cy3lhXYa.js","/app/immutable/chunks/DG0pBglL.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/De0kCZ4v.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Dg0Tdf_A.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"./Dws-34a7.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"./B5tvpTFB.js";import{s as St,f as pn,c as ca,b as cm,g as hi,e as um}from"./BD9db4FR.js";import{b as Er}from"./Dn334wJv.js";import{i as dm}from"./C63WwVct.js";import{d2 as fm,aF as hm,aT as Ul}from"./DtFzaymP.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"./BIGqOuh0.js";import{i as Se}from"./DLCFUd4s.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"./CGYPBD6G.js";import{t as ig}from"./D-rRuAXZ.js";import{e as sg}from"./h8JtxU_T.js";import{b as og,V as Yl,c as ag,p as lg,m as cg,s as ug}from"./Cq_jjcoF.js";import{h as dg}from"./BPuz5cN_.js";import{g as kr,i as fg}from"./C-zB-6G6.js";import{L as hg,S as pg,T as dd}from"./BV1ayWTC.js";import{n as mg,l as ps}from"./B8HnjSSF.js";import{h as gg}from"./LI9J8Eor.js";import{br as yg}from"./4g_iHoQm.js";import{g as bg}from"./Da-Blgd9.js";import{c as qa,l as pe}from"./ChTqQfQN.js";import{n as Ql,l as vg,c as kg}from"./Bc1vJq_Z.js";import{$ as fd,a0 as xg,p as ua,aO as wg,am as Sg,a1 as Cg,e9 as Mg,a9 as Eg}from"./SbTG0nwQ.js";import{i as cn,M as Tg,D as Ag,s as _o,a as Ng,p as lr}from"./_i0M7_-r.js";import{A as Og,b as Ig}from"./VeUh5OMZ.js";import{P as Rg}from"./CoJyxFcH.js";import{a as hd}from"./DWa-2rkZ.js";import{g as Zl}from"./B2CniqS1.js";import{H as Dg}from"./Bqd7fdCF.js";import{q as Lg}from"./jBG7W4tL.js";import{b as Pg,P as _g}from"./BByf3ILj.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("./BziYv9ZW.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("./BziYv9ZW.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("./DnozpXMO.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("./DnozpXMO.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("./ZR3wQ419.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("./ZR3wQ419.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("./CrbAS4DB.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("./CrbAS4DB.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
- import{g as w,U as F,b as P,M as v,l as f,t as M,R as O}from"./BwLxx4IG.js";import{c as K}from"./CpMQqUEz.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/ts.worker-CxdBT0zU.js",import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class W extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
1
+ import{g as w,U as F,b as P,M as v,l as f,t as M,R as O}from"./7y3Z0Q49.js";import{c as K}from"./7OH6WUSt.js";class E{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=K({moduleId:"vs/language/typescript/tsWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/ts.worker-CxdBT0zU.js",import.meta.url),{type:"module"}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(w.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}}const s={};s["lib.d.ts"]=!0;s["lib.decorators.d.ts"]=!0;s["lib.decorators.legacy.d.ts"]=!0;s["lib.dom.asynciterable.d.ts"]=!0;s["lib.dom.d.ts"]=!0;s["lib.dom.iterable.d.ts"]=!0;s["lib.es2015.collection.d.ts"]=!0;s["lib.es2015.core.d.ts"]=!0;s["lib.es2015.d.ts"]=!0;s["lib.es2015.generator.d.ts"]=!0;s["lib.es2015.iterable.d.ts"]=!0;s["lib.es2015.promise.d.ts"]=!0;s["lib.es2015.proxy.d.ts"]=!0;s["lib.es2015.reflect.d.ts"]=!0;s["lib.es2015.symbol.d.ts"]=!0;s["lib.es2015.symbol.wellknown.d.ts"]=!0;s["lib.es2016.array.include.d.ts"]=!0;s["lib.es2016.d.ts"]=!0;s["lib.es2016.full.d.ts"]=!0;s["lib.es2016.intl.d.ts"]=!0;s["lib.es2017.arraybuffer.d.ts"]=!0;s["lib.es2017.d.ts"]=!0;s["lib.es2017.date.d.ts"]=!0;s["lib.es2017.full.d.ts"]=!0;s["lib.es2017.intl.d.ts"]=!0;s["lib.es2017.object.d.ts"]=!0;s["lib.es2017.sharedmemory.d.ts"]=!0;s["lib.es2017.string.d.ts"]=!0;s["lib.es2017.typedarrays.d.ts"]=!0;s["lib.es2018.asyncgenerator.d.ts"]=!0;s["lib.es2018.asynciterable.d.ts"]=!0;s["lib.es2018.d.ts"]=!0;s["lib.es2018.full.d.ts"]=!0;s["lib.es2018.intl.d.ts"]=!0;s["lib.es2018.promise.d.ts"]=!0;s["lib.es2018.regexp.d.ts"]=!0;s["lib.es2019.array.d.ts"]=!0;s["lib.es2019.d.ts"]=!0;s["lib.es2019.full.d.ts"]=!0;s["lib.es2019.intl.d.ts"]=!0;s["lib.es2019.object.d.ts"]=!0;s["lib.es2019.string.d.ts"]=!0;s["lib.es2019.symbol.d.ts"]=!0;s["lib.es2020.bigint.d.ts"]=!0;s["lib.es2020.d.ts"]=!0;s["lib.es2020.date.d.ts"]=!0;s["lib.es2020.full.d.ts"]=!0;s["lib.es2020.intl.d.ts"]=!0;s["lib.es2020.number.d.ts"]=!0;s["lib.es2020.promise.d.ts"]=!0;s["lib.es2020.sharedmemory.d.ts"]=!0;s["lib.es2020.string.d.ts"]=!0;s["lib.es2020.symbol.wellknown.d.ts"]=!0;s["lib.es2021.d.ts"]=!0;s["lib.es2021.full.d.ts"]=!0;s["lib.es2021.intl.d.ts"]=!0;s["lib.es2021.promise.d.ts"]=!0;s["lib.es2021.string.d.ts"]=!0;s["lib.es2021.weakref.d.ts"]=!0;s["lib.es2022.array.d.ts"]=!0;s["lib.es2022.d.ts"]=!0;s["lib.es2022.error.d.ts"]=!0;s["lib.es2022.full.d.ts"]=!0;s["lib.es2022.intl.d.ts"]=!0;s["lib.es2022.object.d.ts"]=!0;s["lib.es2022.regexp.d.ts"]=!0;s["lib.es2022.string.d.ts"]=!0;s["lib.es2023.array.d.ts"]=!0;s["lib.es2023.collection.d.ts"]=!0;s["lib.es2023.d.ts"]=!0;s["lib.es2023.full.d.ts"]=!0;s["lib.es2023.intl.d.ts"]=!0;s["lib.es2024.arraybuffer.d.ts"]=!0;s["lib.es2024.collection.d.ts"]=!0;s["lib.es2024.d.ts"]=!0;s["lib.es2024.full.d.ts"]=!0;s["lib.es2024.object.d.ts"]=!0;s["lib.es2024.promise.d.ts"]=!0;s["lib.es2024.regexp.d.ts"]=!0;s["lib.es2024.sharedmemory.d.ts"]=!0;s["lib.es2024.string.d.ts"]=!0;s["lib.es5.d.ts"]=!0;s["lib.es6.d.ts"]=!0;s["lib.esnext.array.d.ts"]=!0;s["lib.esnext.collection.d.ts"]=!0;s["lib.esnext.d.ts"]=!0;s["lib.esnext.decorators.d.ts"]=!0;s["lib.esnext.disposable.d.ts"]=!0;s["lib.esnext.error.d.ts"]=!0;s["lib.esnext.float16.d.ts"]=!0;s["lib.esnext.full.d.ts"]=!0;s["lib.esnext.intl.d.ts"]=!0;s["lib.esnext.iterator.d.ts"]=!0;s["lib.esnext.promise.d.ts"]=!0;s["lib.esnext.sharedmemory.d.ts"]=!0;s["lib.scripthost.d.ts"]=!0;s["lib.webworker.asynciterable.d.ts"]=!0;s["lib.webworker.d.ts"]=!0;s["lib.webworker.importscripts.d.ts"]=!0;s["lib.webworker.iterable.d.ts"]=!0;function A(c,e,t=0){if(typeof c=="string")return c;if(c===void 0)return"";let o="";if(t){o+=e;for(let i=0;i<t;i++)o+=" "}if(o+=c.messageText,t++,c.next)for(const i of c.next)o+=A(i,e,t);return o}function _(c){return c?c.map(e=>e.text).join(""):""}class y{constructor(e){this._worker=e}_textSpanToRange(e,t){let o=e.getPositionAt(t.start),i=e.getPositionAt(t.start+t.length),{lineNumber:l,column:p}=o,{lineNumber:n,column:r}=i;return{startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r}}}class H{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!s[e.path.slice(1)]:!1}getOrCreateModel(e){const t=F.parse(e),o=w.getModel(t);if(o)return o;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const i=M.getExtraLibs()[e];return i?w.createModel(i.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}}class W extends y{constructor(e,t,o,i){super(i),this._libFiles=e,this._defaults=t,this._selector=o,this._disposables=[],this._listener=Object.create(null);const l=r=>{if(r.getLanguageId()!==o)return;const u=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?r.isAttachedToEditor()&&this._doValidate(r):this._doValidate(r)};let d;const g=r.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(u,500)}),b=r.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(r.isAttachedToEditor()?u():w.setModelMarkers(r,this._selector,[]))});this._listener[r.uri.toString()]={dispose(){g.dispose(),b.dispose(),clearTimeout(d)}},u()},p=r=>{w.setModelMarkers(r,this._selector,[]);const u=r.uri.toString();this._listener[u]&&(this._listener[u].dispose(),delete this._listener[u])};this._disposables.push(w.onDidCreateModel(r=>l(r))),this._disposables.push(w.onWillDisposeModel(p)),this._disposables.push(w.onDidChangeModelLanguage(r=>{p(r.model),l(r.model)})),this._disposables.push({dispose(){for(const r of w.getModels())p(r)}});const n=()=>{for(const r of w.getModels())p(r),l(r)};this._disposables.push(this._defaults.onDidChange(n)),this._disposables.push(this._defaults.onDidExtraLibsChange(n)),w.getModels().forEach(r=>l(r))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const o=[],{noSyntaxValidation:i,noSemanticValidation:l,noSuggestionDiagnostics:p}=this._defaults.getDiagnosticsOptions();i||o.push(t.getSyntacticDiagnostics(e.uri.toString())),l||o.push(t.getSemanticDiagnostics(e.uri.toString())),p||o.push(t.getSuggestionDiagnostics(e.uri.toString()));const n=await Promise.all(o);if(!n||e.isDisposed())return;const r=n.reduce((d,g)=>g.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),u=r.map(d=>d.relatedInformation||[]).reduce((d,g)=>g.concat(d),[]).map(d=>d.file?F.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&w.setModelMarkers(e,this._selector,r.map(d=>this._convertDiagnostics(e,d)))}_convertDiagnostics(e,t){const o=t.start||0,i=t.length||1,{lineNumber:l,column:p}=e.getPositionAt(o),{lineNumber:n,column:r}=e.getPositionAt(o+i),u=[];return t.reportsUnnecessary&&u.push(P.Unnecessary),t.reportsDeprecated&&u.push(P.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:l,startColumn:p,endLineNumber:n,endColumn:r,message:A(t.messageText,`
2
2
  `),code:t.code.toString(),tags:u,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const o=[];return t.forEach(i=>{let l=e;if(i.file&&(l=this._libFiles.getOrCreateModel(i.file.fileName)),!l)return;const p=i.start||0,n=i.length||1,{lineNumber:r,column:u}=l.getPositionAt(p),{lineNumber:d,column:g}=l.getPositionAt(p+n);o.push({resource:l.uri,startLineNumber:r,startColumn:u,endLineNumber:d,endColumn:g,message:A(i.messageText,`
3
3
  `)})}),o}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return v.Error;case 3:return v.Info;case 0:return v.Warning;case 2:return v.Hint}return v.Info}}class C extends y{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,o,i){const l=e.getWordUntilPosition(t),p=new O(t.lineNumber,l.startColumn,t.lineNumber,l.endColumn),n=e.uri,r=e.getOffsetAt(t),u=await this._worker(n);if(e.isDisposed())return;const d=await u.getCompletionsAtPosition(n.toString(),r);return!d||e.isDisposed()?void 0:{suggestions:d.entries.map(b=>{let h=p;if(b.replacementSpan){const x=e.getPositionAt(b.replacementSpan.start),D=e.getPositionAt(b.replacementSpan.start+b.replacementSpan.length);h=new O(x.lineNumber,x.column,D.lineNumber,D.column)}const k=[];return b.kindModifiers!==void 0&&b.kindModifiers.indexOf("deprecated")!==-1&&k.push(f.CompletionItemTag.Deprecated),{uri:n,position:t,offset:r,range:h,label:b.name,insertText:b.name,sortText:b.sortText,kind:C.convertKind(b.kind),tags:k}})}}async resolveCompletionItem(e,t){const o=e,i=o.uri,l=o.position,p=o.offset,r=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),p,o.label);return r?{uri:i,position:l,label:r.name,kind:C.convertKind(r.kind),detail:_(r.displayParts),documentation:{value:C.createDocumentationString(r)}}:o}static convertKind(e){switch(e){case a.primitiveType:case a.keyword:return f.CompletionItemKind.Keyword;case a.variable:case a.localVariable:return f.CompletionItemKind.Variable;case a.memberVariable:case a.memberGetAccessor:case a.memberSetAccessor:return f.CompletionItemKind.Field;case a.function:case a.memberFunction:case a.constructSignature:case a.callSignature:case a.indexSignature:return f.CompletionItemKind.Function;case a.enum:return f.CompletionItemKind.Enum;case a.module:return f.CompletionItemKind.Module;case a.class:return f.CompletionItemKind.Class;case a.interface:return f.CompletionItemKind.Interface;case a.warning:return f.CompletionItemKind.File}return f.CompletionItemKind.Property}static createDocumentationString(e){let t=_(e.documentation);if(e.tags)for(const o of e.tags)t+=`
4
4
 
@@ -1 +1 @@
1
- import{t as l,bo as i,bw as m,b as u}from"./hY0rMePc.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as z,aA as o}from"./3SdAC2_C.js";import{t as y}from"./CjZEyjv4.js";import{a5 as C}from"./CIU_APaR.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var p={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),c=h(n);return y(c,r),v(s,n),z(p)}export{S};
1
+ import{t as l,bo as i,bw as m,b as u}from"./Dws-34a7.js";import{bs as f,bI as _,c5 as b,a7 as g,ay as h,W as v,bn as z,aA as o}from"./3SdAC2_C.js";import{t as y}from"./D-rRuAXZ.js";import{a5 as C}from"./BIGqOuh0.js";function S(s,t){if(new.target)return l({component:S,...s});f(t,!0);let a=i(t,"size",7,"default"),r=i(t,"children",7);_(C,b(()=>a()));var p={get size(){return a()},set size(e="default"){a(e),o()},get children(){return r()},set children(e){r(e),o()},$set:m,$on:(e,d)=>u(t,e,d)},n=g(),c=h(n);return y(c,r),v(s,n),z(p)}export{S};
@@ -1 +1 @@
1
- import{l as e}from"./BwLxx4IG.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};
1
+ import{l as e}from"./7y3Z0Q49.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};
@@ -1 +1 @@
1
- import{t as Q,bo as a,br as T,bw as U,bp as V,b as X}from"./hY0rMePc.js";import{bo as Y,bs as Z,ay as $,a5 as A,bl as F,bS as j,bA as D,b_ as R,W as l,aD as f,bn as ee,aA as r,c9 as g,aB as z,a7 as te,bO as k,be as ae,b$ as re}from"./3SdAC2_C.js";import{i as S}from"./BWmYJDmC.js";import{s as se}from"./leDczq9h.js";import{F as ne}from"./DETS1-K4.js";import{e as ie}from"./CbaFGz2w.js";import{aa as de}from"./CIU_APaR.js";var oe=new Set(["$$slots","$$events","$$legacy","icon","iconWeight","label","shortcut","destructive","disabled","disabledReason","aria-describedby"]),le=z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),ce=z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),ue=z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1);function be(B,t){const I=Y();if(new.target)return Q({component:be,...B});Z(t,!0);const O=e=>{var d=te(),x=$(d);{var y=b=>{{let m=g(()=>u()?"size-4 text-current":"size-4 text-muted-foreground");ne(b,{get icon(){return o()},get weight(){return _()},size:16,get class(){return f(m)}})}};S(x,b=>{o()&&b(y)})}l(e,d)};let o=a(t,"icon",7),_=a(t,"iconWeight",7),v=a(t,"label",7),c=a(t,"shortcut",7),u=a(t,"destructive",7,!1),p=a(t,"disabled",7,!1),i=a(t,"disabledReason",7),h=a(t,"aria-describedby",7),q=V(t,oe);const C=`${I}-reason`;var E={get icon(){return o()},set icon(e){o(e),r()},get iconWeight(){return _()},set iconWeight(e){_(e),r()},get label(){return v()},set label(e){v(e),r()},get shortcut(){return c()},set shortcut(e){c(e),r()},get destructive(){return u()},set destructive(e=!1){u(e),r()},get disabled(){return p()},set disabled(e=!1){p(e),r()},get disabledReason(){return i()},set disabledReason(e){i(e),r()},get"aria-describedby"(){return h()},set"aria-describedby"(e){h(e),r()},$set:U,$on:(e,d)=>X(t,e,d)};{let e=g(()=>o()?O:void 0),d=g(()=>p()||i()!==void 0),x=g(()=>[h(),i()?C:void 0].filter(Boolean).join(" ")||void 0);ie(B,T({get destructive(){return u()},get leading(){return f(e)}},()=>q,{get disabled(){return f(d)},get"aria-describedby"(){return f(x)},"data-slot":"menu-command-item",children:(y,b)=>{var m=ue(),W=$(m),M=A(W),G=F(M,!0),H=j(M,2);{var J=s=>{var n=le(),w=F(n,!0);R(()=>{se(n,"id",C),k(w,i())}),l(s,n)};S(H,s=>{i()&&s(J)})}D(W);var K=j(W,2);{var L=s=>{var n=ce(),w=A(n);de(w,{children:(N,me)=>{ae();var P=re();R(()=>k(P,c())),l(N,P)},$$slots:{default:!0}}),D(n),l(s,n)};S(K,s=>{c()&&s(L)})}R(()=>k(G,v())),l(y,m)},$$slots:{default:!0}}))}return ee(E)}export{be as M};
1
+ import{t as Q,bo as a,br as T,bw as U,bp as V,b as X}from"./Dws-34a7.js";import{bo as Y,bs as Z,ay as $,a5 as A,bl as F,bS as j,bA as D,b_ as R,W as l,aD as f,bn as ee,aA as r,c9 as g,aB as z,a7 as te,bO as k,be as ae,b$ as re}from"./3SdAC2_C.js";import{i as S}from"./DLCFUd4s.js";import{s as se}from"./BD9db4FR.js";import{F as ne}from"./CGYPBD6G.js";import{e as ie}from"./jBG7W4tL.js";import{aa as de}from"./BIGqOuh0.js";var oe=new Set(["$$slots","$$events","$$legacy","icon","iconWeight","label","shortcut","destructive","disabled","disabledReason","aria-describedby"]),le=z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),ce=z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),ue=z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1);function be(B,t){const I=Y();if(new.target)return Q({component:be,...B});Z(t,!0);const O=e=>{var d=te(),x=$(d);{var y=b=>{{let m=g(()=>u()?"size-4 text-current":"size-4 text-muted-foreground");ne(b,{get icon(){return o()},get weight(){return _()},size:16,get class(){return f(m)}})}};S(x,b=>{o()&&b(y)})}l(e,d)};let o=a(t,"icon",7),_=a(t,"iconWeight",7),v=a(t,"label",7),c=a(t,"shortcut",7),u=a(t,"destructive",7,!1),p=a(t,"disabled",7,!1),i=a(t,"disabledReason",7),h=a(t,"aria-describedby",7),q=V(t,oe);const C=`${I}-reason`;var E={get icon(){return o()},set icon(e){o(e),r()},get iconWeight(){return _()},set iconWeight(e){_(e),r()},get label(){return v()},set label(e){v(e),r()},get shortcut(){return c()},set shortcut(e){c(e),r()},get destructive(){return u()},set destructive(e=!1){u(e),r()},get disabled(){return p()},set disabled(e=!1){p(e),r()},get disabledReason(){return i()},set disabledReason(e){i(e),r()},get"aria-describedby"(){return h()},set"aria-describedby"(e){h(e),r()},$set:U,$on:(e,d)=>X(t,e,d)};{let e=g(()=>o()?O:void 0),d=g(()=>p()||i()!==void 0),x=g(()=>[h(),i()?C:void 0].filter(Boolean).join(" ")||void 0);ie(B,T({get destructive(){return u()},get leading(){return f(e)}},()=>q,{get disabled(){return f(d)},get"aria-describedby"(){return f(x)},"data-slot":"menu-command-item",children:(y,b)=>{var m=ue(),W=$(m),M=A(W),G=F(M,!0),H=j(M,2);{var J=s=>{var n=le(),w=F(n,!0);R(()=>{se(n,"id",C),k(w,i())}),l(s,n)};S(H,s=>{i()&&s(J)})}D(W);var K=j(W,2);{var L=s=>{var n=ce(),w=A(n);de(w,{children:(N,me)=>{ae();var P=re();R(()=>k(P,c())),l(N,P)},$$slots:{default:!0}}),D(n),l(s,n)};S(K,s=>{c()&&s(L)})}R(()=>k(G,v())),l(y,m)},$$slots:{default:!0}}))}return ee(E)}export{be as M};
@@ -1 +1 @@
1
- var W=Object.defineProperty;var q=(n,a,r)=>a in n?W(n,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[a]=r;var S=(n,a,r)=>q(n,typeof a!="symbol"?a+"":a,r);import{t as N,bo as f,bw as R,b as T}from"./hY0rMePc.js";import{bs as j,a7 as J,ay as K,W as s,bn as E,aA as g,be as z,b_ as V,aC as l,a5 as D,bS as P,aD as c,bA as I,c9 as y,bl as Q,bO as U}from"./3SdAC2_C.js";import{i as F}from"./BWmYJDmC.js";import{s as v,f as X,g as Y}from"./leDczq9h.js";/* empty css */var Z=l('<g transform="translate(-2 -2)"><path d="M9.958 11.718V16.135M4.658 6.455L7.477 8.082C7.826 8.284 8.264 8.246 8.573 7.986C8.881 7.727 8.995 7.302 8.857 6.924L7.744 3.865M12.172 3.865L11.059 6.924C10.921 7.302 11.035 7.727 11.344 7.986C11.653 8.246 12.091 8.284 12.44 8.082L15.259 6.455M6.014 14.111L8.106 11.618C8.366 11.309 8.404 10.871 8.202 10.522C8.001 10.173 7.602 9.987 7.205 10.057L4 10.622M16 10.622L12.794 10.057C12.397 9.987 11.999 10.173 11.797 10.522C11.596 10.871 11.634 11.309 11.893 11.618L13.985 14.111"></path></g>'),$=l('<path d="M5.333 4.666H6C7.105 4.666 8 5.561 8 6.666V8.333M5.333 11.999H6C7.105 11.999 8 11.104 8 9.999V8.332M10.667 4.666H10C8.896 4.666 8 5.561 8 6.666V8.333M10.667 11.999H10C8.896 11.999 8 11.104 8 9.999V8.332"></path><path d="M3.667 6L2.303 6.963C1.485 7.54 1.451 8.741 2.235 9.363L3.667 10.5M12.334 6L13.698 6.963C14.515 7.54 14.549 8.741 13.766 9.363L12.334 10.5"></path>',1),ee=l('<path d="M3.667 5.75L2.303 6.713C1.485 7.29 1.451 8.491 2.235 9.113L3.667 10.25M12.334 5.75L13.698 6.713C14.515 7.29 14.549 8.491 13.765 9.113L12.334 10.25M5.5 7.756L6.441 9.688C6.818 10.46 7.928 10.43 8.262 9.638L10.5 4.333"></path>'),ae=l('<rect x="6.333" y="6.333" width="3.334" height="3.334" rx="0.334"></rect><path d="M9 3H11C12.105 3 13 3.895 13 5V7M9 13H11C12.105 13 13 12.105 13 11V9M7 3H5C3.895 3 3 3.895 3 5V7M7 13H5C3.895 13 3 12.105 3 11V9"></path>',1),re=l('<g transform="translate(1 4.468)"><path d="M4 .543L1.636 2.212C.818 2.789.784 3.99 1.568 4.612L4 6.543M10 .543L12.364 2.212C13.182 2.789 13.216 3.99 12.432 4.612L10 6.543"></path><circle cx="7" cy="3.543" r="1.25" fill="currentColor" stroke="none"></circle></g>'),te=l('<g transform="translate(.5 4)"><path d="M10 7.665H5M10 4.165H5M10 .665H5M3 2.165L1.636 3.128C.818 3.705.784 4.906 1.568 5.528L3 6.665M12 2.165L13.364 3.128C14.182 3.705 14.216 4.906 13.432 5.528L12 6.665"></path></g>'),ne=l('<g transform="translate(1 3)"><path d="M7 0V10M4 2L1.636 3.669C.818 4.246.784 5.447 1.568 6.069L4 8M10 2L12.364 3.669C13.182 4.246 13.216 5.447 12.432 6.069L10 8"></path></g>'),ie=l('<g transform="translate(1 5.335)"><path d="M6 2.665H8M0 2.665H2M12 2.665H14"></path><circle cx="4" cy="2.665" r="2"></circle><circle cx="10" cy="2.665" r="2"></circle></g>'),se=l('<g><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14"></path><circle cx="4.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle><circle cx="9.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle></g>'),oe=l('<g transform="translate(1 3.085)"><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14M4 9.165H10"></path></g>'),le=l('<path d="M13 4.5L10.636 6.169C9.818 6.746 9.784 7.947 10.568 8.569L13 10.5M3 4.5L5.364 6.169C6.182 6.746 6.216 7.947 5.432 8.569L3 10.5M6 11.5H10"></path>'),ce=l('<g transform="translate(4 6.5)" fill="currentColor" stroke="none"><circle cx="1.5" cy="1.5" r="1.5"></circle><circle cx="6.5" cy="1.5" r="1.5"></circle></g>');function G(n,a){if(new.target)return N({component:G,...n});j(a,!0);let r=f(a,"design",7);var u={get design(){return r()},set design(e){r(e),g()},$set:R,$on:(e,t)=>T(a,e,t)},h=J(),M=K(h);{var p=e=>{var t=Z();s(e,t)},m=e=>{var t=$();z(),s(e,t)},_=e=>{var t=ee();s(e,t)},d=e=>{var t=ae();z(),s(e,t)},b=e=>{var t=re();s(e,t)},C=e=>{var t=te();s(e,t)},L=e=>{var t=ne();s(e,t)},A=e=>{var t=ie();s(e,t)},o=e=>{var t=se();V(()=>v(t,"transform",r()==="fallback-crown"?"translate(1 2.918)":"translate(1 13.082) scale(1 -1)")),s(e,t)},w=e=>{var t=oe();s(e,t)},k=e=>{var t=le();s(e,t)},H=e=>{var t=ce();s(e,t)};F(M,e=>{r()==="coordinator"?e(p):r()==="implementor"?e(m,1):r()==="verifier"?e(_,2):r()==="pr-reviewer"?e(d,3):r()==="ui-designer"?e(b,4):r()==="chief-of-staff"?e(C,5):r()==="ralph"?e(L,6):r()==="fallback-glasses"?e(A,7):r()==="fallback-crown"||r()==="fallback-crown-inverted"?e(o,8):r()==="fallback-crown-mouth"?e(w,9):r()==="fallback-code"?e(k,10):e(H,-1)})}return s(n,h),E(u)}function de(n){let a=0;if(n.length===0)return a;for(let r=0;r<n.length;r++){const u=n.charCodeAt(r);a=(a<<5)-a+u,a=a&a}return Math.abs(a)}class fe{constructor(a){S(this,"seed");this.seed=a}next(){return this.seed=this.seed*1103515245+12345&2147483647,this.seed/2147483648}pick(a){if(a.length===0)throw new Error("Cannot pick from empty array");const r=Math.floor(this.next()*a.length);return a[r]}nextInt(a){return Math.floor(this.next()*a)}}function ge(n){return new fe(de(n))}const ve=["fallback-glasses","fallback-crown","fallback-crown-inverted","fallback-crown-mouth","fallback-code","fallback-dots"],ue=["coordinator","implementor","verifier","pr-reviewer","ui-designer","chief-of-staff","ralph"],he={coordinator:"coordinator","spec-writer":"coordinator",implementor:"implementor",verifier:"verifier",developer:"verifier","product-manager":"coordinator","maintenance-coordinator":"ralph","pr-reviewer":"pr-reviewer","ui-designer":"ui-designer","chief-of-staff":"chief-of-staff",ralph:"ralph"};function pe(n){return ge(n).pick([...ve])}function me(n){return ue.includes(n)}function Ce(n,a,r){return r&&me(r)?r:he[a??""]??pe(n)}const Le={compact:{surface:16,art:14,clearSpace:1,radius:5,ring:1,overlap:4},standard:{surface:20,art:16,clearSpace:2,radius:6,ring:1,overlap:5},emphasized:{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},"card-stack":{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},prominent:{surface:40,art:32,clearSpace:4,radius:12,ring:2,overlap:8}},B="standard";var Me=l("<title> </title>"),_e=l('<svg viewBox="0 0 16 16" fill="none" overflow="hidden" xmlns="http://www.w3.org/2000/svg" focusable="false" data-agent-avatar=""><!><g fill="none" stroke="currentColor" stroke-width="1.33" stroke-linecap="butt" stroke-linejoin="miter"><!></g></svg>');function be(n,a){if(new.target)return N({component:be,...n});j(a,!0);let r=f(a,"agentId",7,""),u=f(a,"specialist",7,null),h=f(a,"icon",7,null),M=f(a,"provider",7,void 0),p=f(a,"variant",7,B),m=f(a,"size",7,void 0),_=f(a,"class",7,""),d=f(a,"ariaLabel",7,void 0);const b=y(()=>(M(),Ce(r(),u(),h()))),C=y(()=>m()??Le[p()].surface),L=y(()=>m()===void 0);var A={get agentId(){return r()},set agentId(i=""){r(i),g()},get specialist(){return u()},set specialist(i=null){u(i),g()},get icon(){return h()},set icon(i=null){h(i),g()},get provider(){return M()},set provider(i=void 0){M(i),g()},get variant(){return p()},set variant(i=B){p(i),g()},get size(){return m()},set size(i=void 0){m(i),g()},get class(){return _()},set class(i=""){_(i),g()},get ariaLabel(){return d()},set ariaLabel(i=void 0){d(i),g()},$set:R,$on:(i,x)=>T(a,i,x)},o=_e();let w;var k=D(o);{var H=i=>{var x=Me(),O=Q(x,!0);V(()=>U(O,d())),s(i,x)};F(k,i=>{d()&&i(H)})}var e=P(k),t=D(e);return G(t,{get design(){return c(b)}}),I(e),I(o),V(()=>{v(o,"width",c(C)),v(o,"height",c(C)),X(o,0,`agent-avatar agent-avatar--${c(L)?"named":"legacy"} ${_()??""}`,"svelte-1vi6z9y"),v(o,"role",d()?"img":void 0),v(o,"aria-label",d()),v(o,"aria-hidden",d()?void 0:"true"),v(o,"data-avatar-variant",c(L)?p():void 0),v(o,"data-avatar-design",c(b)),w=Y(o,"",w,{width:c(L)?void 0:`${c(C)}px`,height:c(L)?void 0:`${c(C)}px`})}),s(n,o),E(A)}export{be as A,Le as a,B as d};
1
+ var W=Object.defineProperty;var q=(n,a,r)=>a in n?W(n,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[a]=r;var S=(n,a,r)=>q(n,typeof a!="symbol"?a+"":a,r);import{t as N,bo as f,bw as R,b as T}from"./Dws-34a7.js";import{bs as j,a7 as J,ay as K,W as s,bn as E,aA as g,be as z,b_ as V,aC as l,a5 as D,bS as P,aD as c,bA as I,c9 as y,bl as Q,bO as U}from"./3SdAC2_C.js";import{i as F}from"./DLCFUd4s.js";import{s as v,f as X,g as Y}from"./BD9db4FR.js";/* empty css */var Z=l('<g transform="translate(-2 -2)"><path d="M9.958 11.718V16.135M4.658 6.455L7.477 8.082C7.826 8.284 8.264 8.246 8.573 7.986C8.881 7.727 8.995 7.302 8.857 6.924L7.744 3.865M12.172 3.865L11.059 6.924C10.921 7.302 11.035 7.727 11.344 7.986C11.653 8.246 12.091 8.284 12.44 8.082L15.259 6.455M6.014 14.111L8.106 11.618C8.366 11.309 8.404 10.871 8.202 10.522C8.001 10.173 7.602 9.987 7.205 10.057L4 10.622M16 10.622L12.794 10.057C12.397 9.987 11.999 10.173 11.797 10.522C11.596 10.871 11.634 11.309 11.893 11.618L13.985 14.111"></path></g>'),$=l('<path d="M5.333 4.666H6C7.105 4.666 8 5.561 8 6.666V8.333M5.333 11.999H6C7.105 11.999 8 11.104 8 9.999V8.332M10.667 4.666H10C8.896 4.666 8 5.561 8 6.666V8.333M10.667 11.999H10C8.896 11.999 8 11.104 8 9.999V8.332"></path><path d="M3.667 6L2.303 6.963C1.485 7.54 1.451 8.741 2.235 9.363L3.667 10.5M12.334 6L13.698 6.963C14.515 7.54 14.549 8.741 13.766 9.363L12.334 10.5"></path>',1),ee=l('<path d="M3.667 5.75L2.303 6.713C1.485 7.29 1.451 8.491 2.235 9.113L3.667 10.25M12.334 5.75L13.698 6.713C14.515 7.29 14.549 8.491 13.765 9.113L12.334 10.25M5.5 7.756L6.441 9.688C6.818 10.46 7.928 10.43 8.262 9.638L10.5 4.333"></path>'),ae=l('<rect x="6.333" y="6.333" width="3.334" height="3.334" rx="0.334"></rect><path d="M9 3H11C12.105 3 13 3.895 13 5V7M9 13H11C12.105 13 13 12.105 13 11V9M7 3H5C3.895 3 3 3.895 3 5V7M7 13H5C3.895 13 3 12.105 3 11V9"></path>',1),re=l('<g transform="translate(1 4.468)"><path d="M4 .543L1.636 2.212C.818 2.789.784 3.99 1.568 4.612L4 6.543M10 .543L12.364 2.212C13.182 2.789 13.216 3.99 12.432 4.612L10 6.543"></path><circle cx="7" cy="3.543" r="1.25" fill="currentColor" stroke="none"></circle></g>'),te=l('<g transform="translate(.5 4)"><path d="M10 7.665H5M10 4.165H5M10 .665H5M3 2.165L1.636 3.128C.818 3.705.784 4.906 1.568 5.528L3 6.665M12 2.165L13.364 3.128C14.182 3.705 14.216 4.906 13.432 5.528L12 6.665"></path></g>'),ne=l('<g transform="translate(1 3)"><path d="M7 0V10M4 2L1.636 3.669C.818 4.246.784 5.447 1.568 6.069L4 8M10 2L12.364 3.669C13.182 4.246 13.216 5.447 12.432 6.069L10 8"></path></g>'),ie=l('<g transform="translate(1 5.335)"><path d="M6 2.665H8M0 2.665H2M12 2.665H14"></path><circle cx="4" cy="2.665" r="2"></circle><circle cx="10" cy="2.665" r="2"></circle></g>'),se=l('<g><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14"></path><circle cx="4.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle><circle cx="9.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle></g>'),oe=l('<g transform="translate(1 3.085)"><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14M4 9.165H10"></path></g>'),le=l('<path d="M13 4.5L10.636 6.169C9.818 6.746 9.784 7.947 10.568 8.569L13 10.5M3 4.5L5.364 6.169C6.182 6.746 6.216 7.947 5.432 8.569L3 10.5M6 11.5H10"></path>'),ce=l('<g transform="translate(4 6.5)" fill="currentColor" stroke="none"><circle cx="1.5" cy="1.5" r="1.5"></circle><circle cx="6.5" cy="1.5" r="1.5"></circle></g>');function G(n,a){if(new.target)return N({component:G,...n});j(a,!0);let r=f(a,"design",7);var u={get design(){return r()},set design(e){r(e),g()},$set:R,$on:(e,t)=>T(a,e,t)},h=J(),M=K(h);{var p=e=>{var t=Z();s(e,t)},m=e=>{var t=$();z(),s(e,t)},_=e=>{var t=ee();s(e,t)},d=e=>{var t=ae();z(),s(e,t)},b=e=>{var t=re();s(e,t)},C=e=>{var t=te();s(e,t)},L=e=>{var t=ne();s(e,t)},A=e=>{var t=ie();s(e,t)},o=e=>{var t=se();V(()=>v(t,"transform",r()==="fallback-crown"?"translate(1 2.918)":"translate(1 13.082) scale(1 -1)")),s(e,t)},w=e=>{var t=oe();s(e,t)},k=e=>{var t=le();s(e,t)},H=e=>{var t=ce();s(e,t)};F(M,e=>{r()==="coordinator"?e(p):r()==="implementor"?e(m,1):r()==="verifier"?e(_,2):r()==="pr-reviewer"?e(d,3):r()==="ui-designer"?e(b,4):r()==="chief-of-staff"?e(C,5):r()==="ralph"?e(L,6):r()==="fallback-glasses"?e(A,7):r()==="fallback-crown"||r()==="fallback-crown-inverted"?e(o,8):r()==="fallback-crown-mouth"?e(w,9):r()==="fallback-code"?e(k,10):e(H,-1)})}return s(n,h),E(u)}function de(n){let a=0;if(n.length===0)return a;for(let r=0;r<n.length;r++){const u=n.charCodeAt(r);a=(a<<5)-a+u,a=a&a}return Math.abs(a)}class fe{constructor(a){S(this,"seed");this.seed=a}next(){return this.seed=this.seed*1103515245+12345&2147483647,this.seed/2147483648}pick(a){if(a.length===0)throw new Error("Cannot pick from empty array");const r=Math.floor(this.next()*a.length);return a[r]}nextInt(a){return Math.floor(this.next()*a)}}function ge(n){return new fe(de(n))}const ve=["fallback-glasses","fallback-crown","fallback-crown-inverted","fallback-crown-mouth","fallback-code","fallback-dots"],ue=["coordinator","implementor","verifier","pr-reviewer","ui-designer","chief-of-staff","ralph"],he={coordinator:"coordinator","spec-writer":"coordinator",implementor:"implementor",verifier:"verifier",developer:"verifier","product-manager":"coordinator","maintenance-coordinator":"ralph","pr-reviewer":"pr-reviewer","ui-designer":"ui-designer","chief-of-staff":"chief-of-staff",ralph:"ralph"};function pe(n){return ge(n).pick([...ve])}function me(n){return ue.includes(n)}function Ce(n,a,r){return r&&me(r)?r:he[a??""]??pe(n)}const Le={compact:{surface:16,art:14,clearSpace:1,radius:5,ring:1,overlap:4},standard:{surface:20,art:16,clearSpace:2,radius:6,ring:1,overlap:5},emphasized:{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},"card-stack":{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},prominent:{surface:40,art:32,clearSpace:4,radius:12,ring:2,overlap:8}},B="standard";var Me=l("<title> </title>"),_e=l('<svg viewBox="0 0 16 16" fill="none" overflow="hidden" xmlns="http://www.w3.org/2000/svg" focusable="false" data-agent-avatar=""><!><g fill="none" stroke="currentColor" stroke-width="1.33" stroke-linecap="butt" stroke-linejoin="miter"><!></g></svg>');function be(n,a){if(new.target)return N({component:be,...n});j(a,!0);let r=f(a,"agentId",7,""),u=f(a,"specialist",7,null),h=f(a,"icon",7,null),M=f(a,"provider",7,void 0),p=f(a,"variant",7,B),m=f(a,"size",7,void 0),_=f(a,"class",7,""),d=f(a,"ariaLabel",7,void 0);const b=y(()=>(M(),Ce(r(),u(),h()))),C=y(()=>m()??Le[p()].surface),L=y(()=>m()===void 0);var A={get agentId(){return r()},set agentId(i=""){r(i),g()},get specialist(){return u()},set specialist(i=null){u(i),g()},get icon(){return h()},set icon(i=null){h(i),g()},get provider(){return M()},set provider(i=void 0){M(i),g()},get variant(){return p()},set variant(i=B){p(i),g()},get size(){return m()},set size(i=void 0){m(i),g()},get class(){return _()},set class(i=""){_(i),g()},get ariaLabel(){return d()},set ariaLabel(i=void 0){d(i),g()},$set:R,$on:(i,x)=>T(a,i,x)},o=_e();let w;var k=D(o);{var H=i=>{var x=Me(),O=Q(x,!0);V(()=>U(O,d())),s(i,x)};F(k,i=>{d()&&i(H)})}var e=P(k),t=D(e);return G(t,{get design(){return c(b)}}),I(e),I(o),V(()=>{v(o,"width",c(C)),v(o,"height",c(C)),X(o,0,`agent-avatar agent-avatar--${c(L)?"named":"legacy"} ${_()??""}`,"svelte-1vi6z9y"),v(o,"role",d()?"img":void 0),v(o,"aria-label",d()),v(o,"aria-hidden",d()?void 0:"true"),v(o,"data-avatar-variant",c(L)?p():void 0),v(o,"data-avatar-design",c(b)),w=Y(o,"",w,{width:c(L)?void 0:`${c(C)}px`,height:c(L)?void 0:`${c(C)}px`})}),s(n,o),E(A)}export{be as A,Le as a,B as d};
@@ -1,2 +1,2 @@
1
- import{Jx as l,s1 as u,Ja as b}from"./DXdFemRu.js";import{at as v}from"./Mh0PqgbP.js";import{bJ as m}from"./C9aF-Sor.js";import{bd as S,b9 as P}from"./ZNhLMxqQ.js";import{K as M}from"./DZEg_JlV.js";import{bm as s}from"./hY0rMePc.js";import{l as E}from"./B7JHU89G.js";const D=l.createSelector(t=>t.backgroundAgentSettings.defaultModel),O=l.createSelector(t=>t.backgroundAgentSettings.typeOverrides),j=l.createSelector(t=>t.backgroundAgentSettings.defaultReasoningEffort),H=l.createSelector(t=>t.backgroundAgentSettings.typeReasoningEffortOverrides),w=l.createSelector(t=>t.backgroundAgentSettings),A=l.createSelector(t=>{const a=new Map,o=(e,i)=>{const n=a.get(e)??new Set;n.add(i),a.set(e,n)},f=m.select(t),d=M.select(t),g=v.select(t)[d];g&&d&&o(d,s.settings_providers_inUseDefaultModel_label({model:g})),u(d)&&!g&&o(d,s.settings_providers_inUseDefaultProvider_label());const p=t.backgroundAgentSettings?.providerId;p&&u(p)&&o(p,s.settings_providers_inUseQuickActions_label());for(const e of S.select(t)){const i=P.select(t,e.id),n=e.source?{project:s.settings_providers_pinSourceProject_label(),user:s.settings_providers_pinSourceUser_label(),bundled:s.settings_providers_pinSourceBundled_label(),builtin:s.settings_providers_pinSourceBuiltin_label(),"electron-store":s.settings_providers_pinSourceLegacy_label()}[e.source]:void 0,c=r=>n&&i?s.settings_providers_inUseSourcePath_label({reason:r,source:n,path:i}):n?s.settings_providers_inUseSource_label({reason:r,source:n}):i?s.settings_providers_inUsePath_label({reason:r,path:i}):r;if(e.codingAgent&&o(e.codingAgent,c(s.settings_providers_inUseSpecialistAgent_label({name:e.name}))),e.modelOptions?.forEach((r,_)=>{r.provider&&u(r.provider)&&o(r.provider,c(s.settings_providers_inUseSpecialistModelOption_label({name:e.name,position:E(_+1)})))}),e.defaultModel)if(e.defaultModel.includes(":")){const r=b(e.defaultModel).providerId??f;o(r,c(s.settings_providers_inUseSpecialistModel_label({name:e.name,model:e.defaultModel})))}else e.codingAgent||o(f,c(s.settings_providers_inUseSpecialistModel_label({name:e.name,model:e.defaultModel})))}return Object.fromEntries([...a].map(([e,i])=>[e,[...i].join(`
1
+ import{Jx as l,s1 as u,Ja as b}from"./4g_iHoQm.js";import{at as v}from"./B_4WsP9b.js";import{bJ as m}from"./SbTG0nwQ.js";import{bd as S,b9 as P}from"./DN-DN78v.js";import{K as M}from"./PhAbES0t.js";import{bm as s}from"./Dws-34a7.js";import{l as E}from"./B8HnjSSF.js";const D=l.createSelector(t=>t.backgroundAgentSettings.defaultModel),O=l.createSelector(t=>t.backgroundAgentSettings.typeOverrides),j=l.createSelector(t=>t.backgroundAgentSettings.defaultReasoningEffort),H=l.createSelector(t=>t.backgroundAgentSettings.typeReasoningEffortOverrides),w=l.createSelector(t=>t.backgroundAgentSettings),A=l.createSelector(t=>{const a=new Map,o=(e,i)=>{const n=a.get(e)??new Set;n.add(i),a.set(e,n)},f=m.select(t),d=M.select(t),g=v.select(t)[d];g&&d&&o(d,s.settings_providers_inUseDefaultModel_label({model:g})),u(d)&&!g&&o(d,s.settings_providers_inUseDefaultProvider_label());const p=t.backgroundAgentSettings?.providerId;p&&u(p)&&o(p,s.settings_providers_inUseQuickActions_label());for(const e of S.select(t)){const i=P.select(t,e.id),n=e.source?{project:s.settings_providers_pinSourceProject_label(),user:s.settings_providers_pinSourceUser_label(),bundled:s.settings_providers_pinSourceBundled_label(),builtin:s.settings_providers_pinSourceBuiltin_label(),"electron-store":s.settings_providers_pinSourceLegacy_label()}[e.source]:void 0,c=r=>n&&i?s.settings_providers_inUseSourcePath_label({reason:r,source:n,path:i}):n?s.settings_providers_inUseSource_label({reason:r,source:n}):i?s.settings_providers_inUsePath_label({reason:r,path:i}):r;if(e.codingAgent&&o(e.codingAgent,c(s.settings_providers_inUseSpecialistAgent_label({name:e.name}))),e.modelOptions?.forEach((r,_)=>{r.provider&&u(r.provider)&&o(r.provider,c(s.settings_providers_inUseSpecialistModelOption_label({name:e.name,position:E(_+1)})))}),e.defaultModel)if(e.defaultModel.includes(":")){const r=b(e.defaultModel).providerId??f;o(r,c(s.settings_providers_inUseSpecialistModel_label({name:e.name,model:e.defaultModel})))}else e.codingAgent||o(f,c(s.settings_providers_inUseSpecialistModel_label({name:e.name,model:e.defaultModel})))}return Object.fromEntries([...a].map(([e,i])=>[e,[...i].join(`
2
2
  `)]))});l.createSelector((t,a)=>A.select(t)[a]??null);const h=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],J=h.map(({id:t})=>t);export{J as T,h as a,j as b,w as c,O as d,H as e,A as f,D as s};
@@ -1 +1 @@
1
- import{_ as c,a0 as n}from"./B4mHWFlW.js";function f(s,o){const r=c(o,s,null),e=new Set([0,s.durationMs,...s.batches.flatMap(t=>t.clearAtMs===null?[]:[t.clearAtMs]),...r.marks.flatMap(t=>[t.frameAtMs,t.visibleUntilMs,...n(s,t.mark)?[n(s,t.mark).completedAtMs]:[]])]),l=[...new Set(r.marks.flatMap(t=>n(s,t.mark)?.samples.map(m=>m.atMs)??[]))].filter(t=>!e.has(t)&&t>=0&&t<=s.durationMs).sort((t,a)=>t-a),M=Math.max(0,1001-e.size),d=M>=l.length?l:Array.from({length:M},(t,a)=>l[Math.floor(a*l.length/M)]),i=[...new Set([...e,...d])].filter(t=>t>=0&&t<=s.durationMs).sort((t,a)=>t-a);return i.slice(0,-1).map((t,a)=>({atMs:t,endMs:i[a+1]})).filter(t=>t.endMs>t.atMs&&r.marks.some(a=>t.atMs>=a.frameAtMs&&t.atMs<a.visibleUntilMs))}function k(s,o,r){const e=n(s,o);return!e||r>=e.completedAtMs}export{f as a,k as d};
1
+ import{_ as c,a0 as n}from"./8jMQM9h0.js";function f(s,o){const r=c(o,s,null),e=new Set([0,s.durationMs,...s.batches.flatMap(t=>t.clearAtMs===null?[]:[t.clearAtMs]),...r.marks.flatMap(t=>[t.frameAtMs,t.visibleUntilMs,...n(s,t.mark)?[n(s,t.mark).completedAtMs]:[]])]),l=[...new Set(r.marks.flatMap(t=>n(s,t.mark)?.samples.map(m=>m.atMs)??[]))].filter(t=>!e.has(t)&&t>=0&&t<=s.durationMs).sort((t,a)=>t-a),M=Math.max(0,1001-e.size),d=M>=l.length?l:Array.from({length:M},(t,a)=>l[Math.floor(a*l.length/M)]),i=[...new Set([...e,...d])].filter(t=>t>=0&&t<=s.durationMs).sort((t,a)=>t-a);return i.slice(0,-1).map((t,a)=>({atMs:t,endMs:i[a+1]})).filter(t=>t.endMs>t.atMs&&r.marks.some(a=>t.atMs>=a.frameAtMs&&t.atMs<a.visibleUntilMs))}function k(s,o,r){const e=n(s,o);return!e||r>=e.completedAtMs}export{f as a,k as d};
@@ -1 +1 @@
1
- import{I as h}from"./Cw2ZnpX7.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./rNjiZ_3W.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
1
+ import{I as h}from"./DtFzaymP.js";import{c as v}from"./ChTqQfQN.js";import{O as d}from"./BPuz5cN_.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};