@templatical/editor 0.59.2 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
  57. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-CQ75I3hQ.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
  113. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
  127. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
  129. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
  132. package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
  133. package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
  135. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
  138. package/dist/cdn/chunks/en-DkulseE1.js +1 -0
  139. package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
  140. package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
  142. package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
  146. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
  150. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
  152. package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
  158. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
  163. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
  164. package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
  165. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
  166. package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
  167. package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
  168. package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
  170. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
  171. package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
  179. package/dist/cdn/editor.js +109 -109
  180. package/dist/cdn/editor.js.map +1 -1
  181. package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
  190. package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
  192. package/dist/dist-AyAOL8Bj.js +4 -0
  193. package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
  194. package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
  195. package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
  196. package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
  197. package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
  198. package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
  199. package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
  200. package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  201. package/dist/dist-DkPTWQuO.js +4 -0
  202. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  203. package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
  206. package/dist/en-DwxgN_-Y.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
  209. package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
  212. package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
  213. package/dist/index.d.ts +37 -7
  214. package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
  216. package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
  241. package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
  245. package/dist/withCurrentFont-BOg3jmCT.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
  247. package/package.json +22 -22
  248. package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
  249. package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
  250. package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
  251. package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
  252. package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
  253. package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
  254. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
  255. package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
  256. package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
  257. package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
  258. package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
  259. package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
  260. package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
  261. package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
  262. package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
  263. package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
  264. package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
  265. package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
  266. package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
  267. package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
  268. package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
  269. package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
  270. package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
  271. package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
  272. package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
  273. package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
  274. package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
  275. package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
  276. package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
  277. package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
  278. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
  279. package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
  280. package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
  282. package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
  283. package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
  284. package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
  285. package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
  286. package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
  287. package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
  288. package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
  289. package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
  290. package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
  291. package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
  292. package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
  293. package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
  294. package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
  295. package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
  296. package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
  298. package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
  299. package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
  300. package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
  301. package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
  302. package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
  303. package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
  304. package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
  305. package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
  306. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
  307. package/dist/dist-CkIeJEsa.js +0 -4
  308. package/dist/dist-eAgG-nCb.js +0 -4
  309. package/dist/en-DvCaYqiR.js +0 -1
  310. package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
  311. package/dist/withCurrentFont-y0O5kOLW.js +0 -18
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
2
  import { $ as t, C as n, E as r, I as i, J as a, M as o, N as s, U as c, Z as l, ct as u, i as d, it as f, j as p, rt as m, tt as h, ut as g, w as _ } from "./draggable-IRVFEZ-b.js";
3
- // ../../node_modules/.pnpm/@tiptap+core@3.33.0_@tiptap+pm@3.33.0/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js
3
+ // ../../node_modules/.pnpm/@tiptap+core@3.33.1_@tiptap+pm@3.33.1/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js
4
4
  var v = Object.defineProperty, y = (e, t) => {
5
5
  let n = {};
6
6
  for (var r in e) v(n, r, {
@@ -7727,7 +7727,7 @@ var Yc = Jc(!1, !0), Xc = Jc(!0, !0);
7727
7727
  function Zc(e) {
7728
7728
  return e.getMeta(Gc) != null;
7729
7729
  }
7730
- // ../../node_modules/.pnpm/@tiptap+core@3.33.0_@tiptap+pm@3.33.0/node_modules/@tiptap/core/dist/index.js
7730
+ // ../../node_modules/.pnpm/@tiptap+core@3.33.1_@tiptap+pm@3.33.1/node_modules/@tiptap/core/dist/index.js
7731
7731
  function Qc(e) {
7732
7732
  let { state: t, transaction: n } = e, { selection: r } = n, { doc: i } = n, { storedMarks: a } = n;
7733
7733
  return {
@@ -11076,7 +11076,12 @@ var Y = class e extends Qp {
11076
11076
  } }
11077
11077
  })];
11078
11078
  }
11079
- }), mm = Y.create({
11079
+ });
11080
+ function mm(e) {
11081
+ let { empty: t, from: n, to: r } = e.selection;
11082
+ return !t && n === A.atStart(e.doc).from && r === A.atEnd(e.doc).to;
11083
+ }
11084
+ var hm = Y.create({
11080
11085
  name: "keymap",
11081
11086
  addKeyboardShortcuts() {
11082
11087
  let e = () => this.editor.commands.first(({ commands: e }) => [
@@ -11126,21 +11131,19 @@ var Y = class e extends Qp {
11126
11131
  appendTransaction: (e, t, n) => {
11127
11132
  if (e.some((e) => e.getMeta("composition"))) return;
11128
11133
  let r = e.some((e) => e.docChanged) && !t.doc.eq(n.doc), i = e.some((e) => e.getMeta("preventClearDocument"));
11129
- if (!r || i) return;
11130
- let { empty: a, from: o, to: s } = t.selection, c = A.atStart(t.doc).from, l = A.atEnd(t.doc).to;
11131
- if (a || o !== c || s !== l || !vd(n.doc)) return;
11132
- let u = n.tr, d = Qc({
11134
+ if (!r || i || !mm(t) || !vd(n.doc)) return;
11135
+ let a = n.tr, o = Qc({
11133
11136
  state: n,
11134
- transaction: u
11135
- }), { commands: f } = new $c({
11137
+ transaction: a
11138
+ }), { commands: s } = new $c({
11136
11139
  editor: this.editor,
11137
- state: d
11140
+ state: o
11138
11141
  });
11139
- if (f.clearNodes(), u.steps.length) return u;
11142
+ if (s.clearNodes(), a.steps.length || n.storedMarks) return a.setStoredMarks(null);
11140
11143
  }
11141
11144
  })];
11142
11145
  }
11143
- }), hm = Y.create({
11146
+ }), gm = Y.create({
11144
11147
  name: "paste",
11145
11148
  addProseMirrorPlugins() {
11146
11149
  return [new N({
@@ -11154,7 +11157,7 @@ var Y = class e extends Qp {
11154
11157
  } }
11155
11158
  })];
11156
11159
  }
11157
- }), gm = Y.create({
11160
+ }), _m = Y.create({
11158
11161
  name: "tabindex",
11159
11162
  addOptions() {
11160
11163
  return { value: void 0 };
@@ -11165,7 +11168,7 @@ var Y = class e extends Qp {
11165
11168
  props: { attributes: () => !this.editor.isEditable && this.options.value === void 0 ? {} : { tabindex: this.options.value ?? "0" } }
11166
11169
  })];
11167
11170
  }
11168
- }), _m = Y.create({
11171
+ }), vm = Y.create({
11169
11172
  name: "textDirection",
11170
11173
  addOptions() {
11171
11174
  return { direction: void 0 };
@@ -11194,22 +11197,22 @@ var Y = class e extends Qp {
11194
11197
  } }
11195
11198
  })];
11196
11199
  }
11197
- }), vm = /* @__PURE__ */ y({
11200
+ }), ym = /* @__PURE__ */ y({
11198
11201
  ClipboardTextSerializer: () => sm,
11199
11202
  Commands: () => cm,
11200
11203
  Delete: () => lm,
11201
11204
  Drop: () => um,
11202
11205
  Editable: () => dm,
11203
11206
  FocusEvents: () => pm,
11204
- Keymap: () => mm,
11205
- Paste: () => hm,
11206
- Tabindex: () => gm,
11207
- TextDirection: () => _m,
11207
+ Keymap: () => hm,
11208
+ Paste: () => gm,
11209
+ Tabindex: () => _m,
11210
+ TextDirection: () => vm,
11208
11211
  focusEventsPluginKey: () => fm
11209
- }), ym = !1;
11210
- function bm(e) {
11211
- if (ym) return;
11212
- ym = !0;
11212
+ }), bm = !1;
11213
+ function xm(e) {
11214
+ if (bm) return;
11215
+ bm = !0;
11213
11216
  let t;
11214
11217
  try {
11215
11218
  let n = Rt.fromJSON(e, {
@@ -11223,7 +11226,7 @@ function bm(e) {
11223
11226
  }
11224
11227
  t instanceof w || console.warn("[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.");
11225
11228
  }
11226
- var xm = class e {
11229
+ var Sm = class e {
11227
11230
  get name() {
11228
11231
  return this.node.type.name;
11229
11232
  }
@@ -11345,7 +11348,7 @@ var xm = class e {
11345
11348
  ...e
11346
11349
  }), this.editor.view.dispatch(t);
11347
11350
  }
11348
- }, Sm = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}", Cm = class extends Of {
11351
+ }, Cm = ".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror [contenteditable=\"false\"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable=\"false\"] [contenteditable=\"true\"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: \"\";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}", wm = class extends Of {
11349
11352
  constructor(e = {}) {
11350
11353
  super(), this.css = null, this.className = "tiptap", this.editorView = null, this.isFocused = !1, this.destroyed = !1, this.isInitialized = !1, this.extensionStorage = {}, this.instanceId = Math.random().toString(36).slice(2, 9), this.hasWarnedStaleDecorationRead = !1, this.options = {
11351
11354
  element: typeof document < "u" ? document.createElement("div") : null,
@@ -11394,7 +11397,7 @@ var xm = class e {
11394
11397
  selection: e || void 0
11395
11398
  });
11396
11399
  }
11397
- bm(this.schema), this.options.element && this.mount(this.options.element);
11400
+ xm(this.schema), this.options.element && this.mount(this.options.element);
11398
11401
  }
11399
11402
  mount(e) {
11400
11403
  if (typeof document > "u") throw Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");
@@ -11428,7 +11431,7 @@ var xm = class e {
11428
11431
  return this.commandManager ? this.commandManager.can() : $c.createFallbackCan();
11429
11432
  }
11430
11433
  injectCSS() {
11431
- this.options.injectCSS && typeof document < "u" && (this.css = Qf(Sm, this.options.injectNonce));
11434
+ this.options.injectCSS && typeof document < "u" && (this.css = Qf(Cm, this.options.injectNonce));
11432
11435
  }
11433
11436
  setOptions(e = {}) {
11434
11437
  this.options = {
@@ -11493,12 +11496,12 @@ var xm = class e {
11493
11496
  sm.configure({ blockSeparator: (e = this.options.coreExtensionOptions) == null || (e = e.clipboardTextSerializer) == null ? void 0 : e.blockSeparator }),
11494
11497
  cm,
11495
11498
  pm,
11496
- mm,
11497
- gm.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
11498
- um,
11499
11499
  hm,
11500
+ _m.configure({ value: (t = this.options.coreExtensionOptions) == null || (t = t.tabindex) == null ? void 0 : t.value }),
11501
+ um,
11502
+ gm,
11500
11503
  lm,
11501
- _m.configure({ direction: this.options.textDirection })
11504
+ vm.configure({ direction: this.options.textDirection })
11502
11505
  ].filter((e) => typeof this.options.enableCoreExtensions != "object" || this.options.enableCoreExtensions[e.name] !== !1) : [], ...this.options.extensions].filter((e) => [
11503
11506
  "extension",
11504
11507
  "node",
@@ -11652,23 +11655,23 @@ var xm = class e {
11652
11655
  }
11653
11656
  $pos(e) {
11654
11657
  let t = this.state.doc.resolve(e), n = e > 0 && t.nodeAfter && !t.nodeAfter.isText && t.nodeAfter.isAtom ? t.nodeAfter : null;
11655
- return new xm(t, this, !1, n);
11658
+ return new Sm(t, this, !1, n);
11656
11659
  }
11657
11660
  get $doc() {
11658
11661
  return this.$pos(0);
11659
11662
  }
11660
- }, wm = class {
11663
+ }, Tm = class {
11661
11664
  static Inline(e, t, n = {}, r) {
11662
- return new Tm(e, t, n, r);
11665
+ return new Em(e, t, n, r);
11663
11666
  }
11664
11667
  static Node(e, t, n = {}, r) {
11665
- return new Em(e, t, n, r);
11668
+ return new Dm(e, t, n, r);
11666
11669
  }
11667
11670
  static Widget(e, t, n) {
11668
11671
  let { key: r, ...i } = n;
11669
- return new Dm(e, t, r, i);
11672
+ return new Om(e, t, r, i);
11670
11673
  }
11671
- }, Tm = class extends wm {
11674
+ }, Em = class extends Tm {
11672
11675
  constructor(e, t, n = {}, r) {
11673
11676
  super(), this.kind = "inline", this.from = e, this.to = t, this.attrs = n, this.spec = r;
11674
11677
  }
@@ -11682,7 +11685,7 @@ var xm = class e {
11682
11685
  } : this.spec;
11683
11686
  return ws.inline(this.from, this.to, this.attrs, t);
11684
11687
  }
11685
- }, Em = class extends wm {
11688
+ }, Dm = class extends Tm {
11686
11689
  constructor(e, t, n = {}, r) {
11687
11690
  super(), this.kind = "node", this.from = e, this.to = t, this.attrs = n, this.spec = r;
11688
11691
  }
@@ -11696,7 +11699,7 @@ var xm = class e {
11696
11699
  } : this.spec;
11697
11700
  return ws.node(this.from, this.to, this.attrs, t);
11698
11701
  }
11699
- }, Dm = class extends wm {
11702
+ }, Om = class extends Tm {
11700
11703
  constructor(e, t, n, r) {
11701
11704
  super(), this.kind = "widget", this.pos = e, this.render = t, this.key = n, this.spec = r;
11702
11705
  }
@@ -11715,7 +11718,7 @@ var xm = class e {
11715
11718
  return ws.widget(this.pos, this.render, t);
11716
11719
  }
11717
11720
  };
11718
- function Om(e, t) {
11721
+ function km(e, t) {
11719
11722
  let n = e, r = n[t];
11720
11723
  if (!r) {
11721
11724
  r = {
@@ -11731,7 +11734,7 @@ function Om(e, t) {
11731
11734
  }
11732
11735
  return r;
11733
11736
  }
11734
- function km(e) {
11737
+ function Am(e) {
11735
11738
  e.flushScheduled = !1;
11736
11739
  for (let [t, n] of e.pendingProps) {
11737
11740
  let r = e.renderers.get(t);
@@ -11739,13 +11742,13 @@ function km(e) {
11739
11742
  }
11740
11743
  e.pendingProps.clear();
11741
11744
  }
11742
- function Am(e) {
11743
- let { editor: t, pos: n, key: r, props: i, cacheKey: a, context: o, create: s, materialize: c, side: l, relaxedSide: u, marks: d, stopEvent: f, ignoreSelection: p, destroy: m } = e, h = Om(t, a);
11745
+ function jm(e) {
11746
+ let { editor: t, pos: n, key: r, props: i, cacheKey: a, context: o, create: s, materialize: c, side: l, relaxedSide: u, marks: d, stopEvent: f, ignoreSelection: p, destroy: m } = e, h = km(t, a);
11744
11747
  if (h.renderers.has(r)) {
11745
11748
  let e = h.pendingProps.get(r) ?? h.props.get(r);
11746
- e && Xf(e, i) || (h.pendingProps.set(r, i), h.flushScheduled || (h.flushScheduled = !0, queueMicrotask(() => km(h))));
11749
+ e && Xf(e, i) || (h.pendingProps.set(r, i), h.flushScheduled || (h.flushScheduled = !0, queueMicrotask(() => Am(h))));
11747
11750
  }
11748
- return wm.Widget(n, (e, t) => {
11751
+ return Tm.Widget(n, (e, t) => {
11749
11752
  let n = {
11750
11753
  ...i,
11751
11754
  ...o(t)
@@ -11768,7 +11771,7 @@ function Am(e) {
11768
11771
  }
11769
11772
  });
11770
11773
  }
11771
- function jm(e) {
11774
+ function Mm(e) {
11772
11775
  return new Gp({
11773
11776
  find: e.find,
11774
11777
  handler: ({ state: t, range: n, match: r }) => {
@@ -11786,7 +11789,7 @@ function jm(e) {
11786
11789
  undoable: e.undoable
11787
11790
  });
11788
11791
  }
11789
- function Mm(e) {
11792
+ function Nm(e) {
11790
11793
  return new Gp({
11791
11794
  find: e.find,
11792
11795
  handler: ({ state: t, range: n, match: r }) => {
@@ -11805,7 +11808,7 @@ function Mm(e) {
11805
11808
  undoable: e.undoable
11806
11809
  });
11807
11810
  }
11808
- function Nm(e) {
11811
+ function Pm(e) {
11809
11812
  return new Gp({
11810
11813
  find: e.find,
11811
11814
  handler: ({ state: t, range: n, match: r }) => {
@@ -11816,7 +11819,7 @@ function Nm(e) {
11816
11819
  undoable: e.undoable
11817
11820
  });
11818
11821
  }
11819
- function Pm(e) {
11822
+ function Fm(e) {
11820
11823
  return new Gp({
11821
11824
  find: e.find,
11822
11825
  handler: ({ state: t, range: n, match: r }) => {
@@ -11832,7 +11835,7 @@ function Pm(e) {
11832
11835
  undoable: e.undoable
11833
11836
  });
11834
11837
  }
11835
- function Fm(e) {
11838
+ function Im(e) {
11836
11839
  return new Gp({
11837
11840
  find: e.find,
11838
11841
  handler: ({ state: t, range: n, match: r, chain: i }) => {
@@ -11855,49 +11858,49 @@ function Fm(e) {
11855
11858
  undoable: e.undoable
11856
11859
  });
11857
11860
  }
11858
- var Im = /* @__PURE__ */ new WeakSet(), Lm = /* @__PURE__ */ new WeakSet();
11859
- function Rm(e) {
11860
- let t = e;
11861
- return Im.add(t), t;
11862
- }
11861
+ var Lm = /* @__PURE__ */ new WeakSet(), Rm = /* @__PURE__ */ new WeakSet();
11863
11862
  function zm(e) {
11864
- return Array.isArray(e) && Im.has(e);
11863
+ let t = e;
11864
+ return Lm.add(t), t;
11865
11865
  }
11866
11866
  function Bm(e) {
11867
- return e.flatMap((e) => e == null ? [] : Array.isArray(e) && Lm.has(e) && !zm(e) ? Bm(e) : [e]);
11867
+ return Array.isArray(e) && Lm.has(e);
11868
11868
  }
11869
11869
  function Vm(e) {
11870
- return Lm.add(e.children), e.children;
11870
+ return e.flatMap((e) => e == null ? [] : Array.isArray(e) && Rm.has(e) && !Bm(e) ? Vm(e) : [e]);
11871
11871
  }
11872
- function Hm(e, t) {
11872
+ function Hm(e) {
11873
+ return Rm.add(e.children), e.children;
11874
+ }
11875
+ function Um(e, t) {
11873
11876
  if (e === "slot") return 0;
11874
11877
  if (e instanceof Function) {
11875
11878
  let n = e(t);
11876
- return Array.isArray(n) && !zm(n) && !Lm.has(n) ? Rm(n) : n;
11879
+ return Array.isArray(n) && !Bm(n) && !Rm.has(n) ? zm(n) : n;
11877
11880
  }
11878
11881
  let { children: n, ...r } = t ?? {};
11879
11882
  if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
11880
11883
  if (Array.isArray(n)) {
11881
- if (zm(n)) return Rm([
11884
+ if (Bm(n)) return zm([
11882
11885
  e,
11883
11886
  r,
11884
11887
  n
11885
11888
  ]);
11886
- if (n.length === 0) return Rm([e, r]);
11887
- let t = Bm(n);
11888
- return Rm(t.length === 0 ? [e, r] : [
11889
+ if (n.length === 0) return zm([e, r]);
11890
+ let t = Vm(n);
11891
+ return zm(t.length === 0 ? [e, r] : [
11889
11892
  e,
11890
11893
  r,
11891
11894
  ...t
11892
11895
  ]);
11893
11896
  }
11894
- return Rm(n == null ? [e, r] : [
11897
+ return zm(n == null ? [e, r] : [
11895
11898
  e,
11896
11899
  r,
11897
11900
  n
11898
11901
  ]);
11899
11902
  }
11900
- var Um = (e, t) => Hm(e, t), Wm = (e) => "touches" in e, Gm = class {
11903
+ var Wm = (e, t) => Um(e, t), Gm = (e) => "touches" in e, Km = class {
11901
11904
  constructor(e) {
11902
11905
  var t;
11903
11906
  this.directions = [
@@ -11986,7 +11989,7 @@ var Um = (e, t) => Hm(e, t), Wm = (e) => "touches" in e, Gm = class {
11986
11989
  e ? (this.element.style.width = `${e}px`, this.initialWidth = e) : this.initialWidth = this.element.offsetWidth, t ? (this.element.style.height = `${t}px`, this.initialHeight = t) : this.initialHeight = this.element.offsetHeight, this.initialWidth > 0 && this.initialHeight > 0 && (this.aspectRatio = this.initialWidth / this.initialHeight);
11987
11990
  }
11988
11991
  handleResizeStart(e, t) {
11989
- e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, Wm(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
11992
+ e.preventDefault(), e.stopPropagation(), this.isResizing = !0, this.activeHandle = t, Gm(e) ? (this.startX = e.touches[0].clientX, this.startY = e.touches[0].clientY) : (this.startX = e.clientX, this.startY = e.clientY), this.startWidth = this.element.offsetWidth, this.startHeight = this.element.offsetHeight, this.startWidth > 0 && this.startHeight > 0 && (this.aspectRatio = this.startWidth / this.startHeight), this.getPos(), this.container.dataset.resizeState = "true", this.classNames.resizing && this.container.classList.add(this.classNames.resizing), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchmove", this.handleTouchMove), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
11990
11993
  }
11991
11994
  handleResize(e, t) {
11992
11995
  if (!this.activeHandle) return;
@@ -12026,7 +12029,7 @@ var Um = (e, t) => Hm(e, t), Wm = (e) => "touches" in e, Gm = class {
12026
12029
  height: e / this.aspectRatio
12027
12030
  };
12028
12031
  }
12029
- }, Km = Gm, qm = class e extends Qp {
12032
+ }, qm = Km, Jm = class e extends Qp {
12030
12033
  constructor(...e) {
12031
12034
  super(...e), this.type = "node";
12032
12035
  }
@@ -12041,7 +12044,7 @@ var Um = (e, t) => Hm(e, t), Wm = (e) => "touches" in e, Gm = class {
12041
12044
  let t = typeof e == "function" ? e() : e;
12042
12045
  return super.extend(t);
12043
12046
  }
12044
- }, Jm = class {
12047
+ }, Ym = class {
12045
12048
  constructor(e, t, n) {
12046
12049
  this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
12047
12050
  stopEvent: null,
@@ -12139,7 +12142,7 @@ var Um = (e, t) => Hm(e, t), Wm = (e) => "touches" in e, Gm = class {
12139
12142
  });
12140
12143
  }
12141
12144
  };
12142
- function Ym(e) {
12145
+ function Xm(e) {
12143
12146
  return new em({
12144
12147
  find: e.find,
12145
12148
  handler: ({ state: t, range: n, match: r, pasteEvent: i }) => {
@@ -12154,7 +12157,7 @@ function Ym(e) {
12154
12157
  }
12155
12158
  });
12156
12159
  }
12157
- function Xm(e) {
12160
+ function Zm(e) {
12158
12161
  return new em({
12159
12162
  find: e.find,
12160
12163
  handler({ match: t, chain: n, range: r, pasteEvent: i }) {
@@ -12168,7 +12171,7 @@ function Xm(e) {
12168
12171
  }
12169
12172
  });
12170
12173
  }
12171
- function Zm(e) {
12174
+ function Qm(e) {
12172
12175
  return new em({
12173
12176
  find: e.find,
12174
12177
  handler: ({ state: t, range: n, match: r }) => {
@@ -12183,7 +12186,7 @@ function Zm(e) {
12183
12186
  }
12184
12187
  });
12185
12188
  }
12186
- var Qm = class {
12189
+ var $m = class {
12187
12190
  constructor(e) {
12188
12191
  this.transaction = e, this.currentStep = this.transaction.steps.length;
12189
12192
  }
@@ -12197,28 +12200,28 @@ var Qm = class {
12197
12200
  deleted: t
12198
12201
  };
12199
12202
  }
12200
- }, $m = /* @__PURE__ */ e({
12201
- BackgroundColor: () => ih,
12202
- Color: () => ah,
12203
- FontFamily: () => oh,
12204
- FontSize: () => sh,
12205
- LineHeight: () => ch,
12206
- TextStyle: () => rh,
12207
- TextStyleKit: () => lh
12208
- }), eh = 20, th = (e, t = 0) => {
12203
+ }, eh = /* @__PURE__ */ e({
12204
+ BackgroundColor: () => ah,
12205
+ Color: () => oh,
12206
+ FontFamily: () => sh,
12207
+ FontSize: () => ch,
12208
+ LineHeight: () => lh,
12209
+ TextStyle: () => ih,
12210
+ TextStyleKit: () => uh
12211
+ }), th = 20, nh = (e, t = 0) => {
12209
12212
  let n = [];
12210
- return !e.children.length || t > eh || Array.from(e.children).forEach((e) => {
12211
- e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...th(e, t + 1));
12213
+ return !e.children.length || t > th || Array.from(e.children).forEach((e) => {
12214
+ e.tagName === "SPAN" ? n.push(e) : e.children.length && n.push(...nh(e, t + 1));
12212
12215
  }), n;
12213
- }, nh = (e) => {
12216
+ }, rh = (e) => {
12214
12217
  if (!e.children.length) return;
12215
- let t = th(e);
12218
+ let t = nh(e);
12216
12219
  t && t.forEach((e) => {
12217
12220
  var t;
12218
12221
  let n = e.getAttribute("style"), r = (t = e.parentElement) == null || (t = t.closest("span")) == null ? void 0 : t.getAttribute("style");
12219
12222
  e.setAttribute("style", `${r};${n}`);
12220
12223
  });
12221
- }, rh = $p.create({
12224
+ }, ih = $p.create({
12222
12225
  name: "textStyle",
12223
12226
  priority: 101,
12224
12227
  addOptions() {
@@ -12231,7 +12234,7 @@ var Qm = class {
12231
12234
  return [{
12232
12235
  tag: "span",
12233
12236
  consuming: !1,
12234
- getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && nh(e), {}) : !1
12237
+ getAttrs: (e) => e.hasAttribute("style") ? (this.options.mergeNestedSpanStyles && rh(e), {}) : !1
12235
12238
  }];
12236
12239
  },
12237
12240
  renderHTML({ HTMLAttributes: e }) {
@@ -12253,7 +12256,7 @@ var Qm = class {
12253
12256
  }
12254
12257
  };
12255
12258
  }
12256
- }), ih = Y.create({
12259
+ }), ah = Y.create({
12257
12260
  name: "backgroundColor",
12258
12261
  addOptions() {
12259
12262
  return { types: ["textStyle"] };
@@ -12274,7 +12277,7 @@ var Qm = class {
12274
12277
  unsetBackgroundColor: () => ({ chain: e }) => e().setMark("textStyle", { backgroundColor: null }).removeEmptyTextStyle().run()
12275
12278
  };
12276
12279
  }
12277
- }), ah = Y.create({
12280
+ }), oh = Y.create({
12278
12281
  name: "color",
12279
12282
  addOptions() {
12280
12283
  return { types: ["textStyle"] };
@@ -12295,7 +12298,7 @@ var Qm = class {
12295
12298
  unsetColor: () => ({ chain: e }) => e().setMark("textStyle", { color: null }).removeEmptyTextStyle().run()
12296
12299
  };
12297
12300
  }
12298
- }), oh = Y.create({
12301
+ }), sh = Y.create({
12299
12302
  name: "fontFamily",
12300
12303
  addOptions() {
12301
12304
  return { types: ["textStyle"] };
@@ -12316,7 +12319,7 @@ var Qm = class {
12316
12319
  unsetFontFamily: () => ({ chain: e }) => e().setMark("textStyle", { fontFamily: null }).removeEmptyTextStyle().run()
12317
12320
  };
12318
12321
  }
12319
- }), sh = Y.create({
12322
+ }), ch = Y.create({
12320
12323
  name: "fontSize",
12321
12324
  addOptions() {
12322
12325
  return { types: ["textStyle"] };
@@ -12337,7 +12340,7 @@ var Qm = class {
12337
12340
  unsetFontSize: () => ({ chain: e }) => e().setMark("textStyle", { fontSize: null }).removeEmptyTextStyle().run()
12338
12341
  };
12339
12342
  }
12340
- }), ch = Y.create({
12343
+ }), lh = Y.create({
12341
12344
  name: "lineHeight",
12342
12345
  addOptions() {
12343
12346
  return { types: ["textStyle"] };
@@ -12358,24 +12361,24 @@ var Qm = class {
12358
12361
  unsetLineHeight: () => ({ chain: e }) => e().setMark("textStyle", { lineHeight: null }).removeEmptyTextStyle().run()
12359
12362
  };
12360
12363
  }
12361
- }), lh = Y.create({
12364
+ }), uh = Y.create({
12362
12365
  name: "textStyleKit",
12363
12366
  addExtensions() {
12364
12367
  let e = [];
12365
- return this.options.backgroundColor !== !1 && e.push(ih.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(ah.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(oh.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(sh.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(ch.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(rh.configure(this.options.textStyle)), e;
12366
- }
12367
- }), uh = /* @__PURE__ */ e({
12368
- Color: () => ah,
12369
- default: () => dh
12370
- }), dh = ah, fh = /* @__PURE__ */ e({
12371
- FontFamily: () => oh,
12372
- default: () => ph
12373
- }), ph = oh, mh = /* @__PURE__ */ e({
12374
- Highlight: () => _h,
12375
- default: () => vh,
12376
- inputRegex: () => hh,
12377
- pasteRegex: () => gh
12378
- }), hh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, gh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, _h = $p.create({
12368
+ return this.options.backgroundColor !== !1 && e.push(ah.configure(this.options.backgroundColor)), this.options.color !== !1 && e.push(oh.configure(this.options.color)), this.options.fontFamily !== !1 && e.push(sh.configure(this.options.fontFamily)), this.options.fontSize !== !1 && e.push(ch.configure(this.options.fontSize)), this.options.lineHeight !== !1 && e.push(lh.configure(this.options.lineHeight)), this.options.textStyle !== !1 && e.push(ih.configure(this.options.textStyle)), e;
12369
+ }
12370
+ }), dh = /* @__PURE__ */ e({
12371
+ Color: () => oh,
12372
+ default: () => fh
12373
+ }), fh = oh, ph = /* @__PURE__ */ e({
12374
+ FontFamily: () => sh,
12375
+ default: () => mh
12376
+ }), mh = sh, hh = /* @__PURE__ */ e({
12377
+ Highlight: () => vh,
12378
+ default: () => yh,
12379
+ inputRegex: () => gh,
12380
+ pasteRegex: () => _h
12381
+ }), gh = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, _h = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, vh = $p.create({
12379
12382
  name: "highlight",
12380
12383
  addOptions() {
12381
12384
  return {
@@ -12433,37 +12436,37 @@ var Qm = class {
12433
12436
  return { "Mod-Shift-h": () => this.editor.commands.toggleHighlight() };
12434
12437
  },
12435
12438
  addInputRules() {
12436
- return [jm({
12437
- find: hh,
12439
+ return [Mm({
12440
+ find: gh,
12438
12441
  type: this.type
12439
12442
  })];
12440
12443
  },
12441
12444
  addPasteRules() {
12442
- return [Ym({
12443
- find: gh,
12445
+ return [Xm({
12446
+ find: _h,
12444
12447
  type: this.type
12445
12448
  })];
12446
12449
  }
12447
- }), vh = _h, yh = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", bh = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", xh = "numeric", Sh = "ascii", Ch = "alpha", wh = "asciinumeric", Th = "alphanumeric", Eh = "domain", Dh = "emoji", Oh = "scheme", kh = "slashscheme", Ah = "whitespace";
12448
- function jh(e, t) {
12450
+ }), yh = vh, bh = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", xh = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Sh = "numeric", Ch = "ascii", wh = "alpha", Th = "asciinumeric", Eh = "alphanumeric", Dh = "domain", Oh = "emoji", kh = "scheme", Ah = "slashscheme", jh = "whitespace";
12451
+ function Mh(e, t) {
12449
12452
  return e in t || (t[e] = []), t[e];
12450
12453
  }
12451
- function Mh(e, t, n) {
12452
- t[xh] && (t[wh] = !0, t[Th] = !0), t[Sh] && (t[wh] = !0, t[Ch] = !0), t[wh] && (t[Th] = !0), t[Ch] && (t[Th] = !0), t[Th] && (t[Eh] = !0), t[Dh] && (t[Eh] = !0);
12454
+ function Nh(e, t, n) {
12455
+ t[Sh] && (t[Th] = !0, t[Eh] = !0), t[Ch] && (t[Th] = !0, t[wh] = !0), t[Th] && (t[Eh] = !0), t[wh] && (t[Eh] = !0), t[Eh] && (t[Dh] = !0), t[Oh] && (t[Dh] = !0);
12453
12456
  for (let r in t) {
12454
- let t = jh(r, n);
12457
+ let t = Mh(r, n);
12455
12458
  t.indexOf(e) < 0 && t.push(e);
12456
12459
  }
12457
12460
  }
12458
- function Nh(e, t) {
12461
+ function Ph(e, t) {
12459
12462
  let n = {};
12460
12463
  for (let r in t) t[r].indexOf(e) >= 0 && (n[r] = !0);
12461
12464
  return n;
12462
12465
  }
12463
- function Ph(e = null) {
12466
+ function Fh(e = null) {
12464
12467
  this.j = {}, this.jr = [], this.jd = null, this.t = e;
12465
12468
  }
12466
- Ph.groups = {}, Ph.prototype = {
12469
+ Fh.groups = {}, Fh.prototype = {
12467
12470
  accepts() {
12468
12471
  return !!this.t;
12469
12472
  },
@@ -12483,9 +12486,9 @@ Ph.groups = {}, Ph.prototype = {
12483
12486
  for (let i = 0; i < e.length; i++) this.tt(e[i], t, n, r);
12484
12487
  },
12485
12488
  tr(e, t, n, r) {
12486
- r ||= Ph.groups;
12489
+ r ||= Fh.groups;
12487
12490
  let i;
12488
- return t && t.j ? i = t : (i = new Ph(t), n && r && Mh(t, n, r)), this.jr.push([e, i]), i;
12491
+ return t && t.j ? i = t : (i = new Fh(t), n && r && Nh(t, n, r)), this.jr.push([e, i]), i;
12489
12492
  },
12490
12493
  ts(e, t, n, r) {
12491
12494
  let i = this, a = e.length;
@@ -12494,123 +12497,123 @@ Ph.groups = {}, Ph.prototype = {
12494
12497
  return i.tt(e[a - 1], t, n, r);
12495
12498
  },
12496
12499
  tt(e, t, n, r) {
12497
- r ||= Ph.groups;
12500
+ r ||= Fh.groups;
12498
12501
  let i = this;
12499
12502
  if (t && t.j) return i.j[e] = t, t;
12500
12503
  let a = t, o, s = i.go(e);
12501
- return s ? (o = new Ph(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new Ph(), a && (r && (o.t && typeof o.t == "string" ? Mh(a, Object.assign(Nh(o.t, r), n), r) : n && Mh(a, n, r)), o.t = a), i.j[e] = o, o;
12504
+ return s ? (o = new Fh(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new Fh(), a && (r && (o.t && typeof o.t == "string" ? Nh(a, Object.assign(Ph(o.t, r), n), r) : n && Nh(a, n, r)), o.t = a), i.j[e] = o, o;
12502
12505
  }
12503
12506
  };
12504
- var X = (e, t, n, r, i) => e.ta(t, n, r, i), Z = (e, t, n, r, i) => e.tr(t, n, r, i), Fh = (e, t, n, r, i) => e.ts(t, n, r, i), Q = (e, t, n, r, i) => e.tt(t, n, r, i), Ih = "WORD", Lh = "UWORD", Rh = "ASCIINUMERICAL", zh = "ALPHANUMERICAL", Bh = "LOCALHOST", Vh = "TLD", Hh = "UTLD", Uh = "SCHEME", Wh = "SLASH_SCHEME", Gh = "NUM", Kh = "WS", qh = "NL", Jh = "OPENBRACE", Yh = "CLOSEBRACE", Xh = "OPENBRACKET", Zh = "CLOSEBRACKET", Qh = "OPENPAREN", $h = "CLOSEPAREN", eg = "OPENANGLEBRACKET", tg = "CLOSEANGLEBRACKET", ng = "FULLWIDTHLEFTPAREN", rg = "FULLWIDTHRIGHTPAREN", ig = "LEFTCORNERBRACKET", ag = "RIGHTCORNERBRACKET", og = "LEFTWHITECORNERBRACKET", sg = "RIGHTWHITECORNERBRACKET", cg = "FULLWIDTHLESSTHAN", lg = "FULLWIDTHGREATERTHAN", ug = "AMPERSAND", dg = "APOSTROPHE", fg = "ASTERISK", pg = "AT", mg = "BACKSLASH", hg = "BACKTICK", gg = "CARET", _g = "COLON", vg = "COMMA", yg = "DOLLAR", bg = "DOT", xg = "EQUALS", Sg = "EXCLAMATION", Cg = "HYPHEN", wg = "PERCENT", Tg = "PIPE", Eg = "PLUS", Dg = "POUND", Og = "QUERY", kg = "QUOTE", Ag = "FULLWIDTHMIDDLEDOT", jg = "SEMI", Mg = "SLASH", Ng = "TILDE", Pg = "UNDERSCORE", Fg = "EMOJI", Ig = "SYM", Lg = /*#__PURE__*/ Object.freeze({
12507
+ var X = (e, t, n, r, i) => e.ta(t, n, r, i), Z = (e, t, n, r, i) => e.tr(t, n, r, i), Ih = (e, t, n, r, i) => e.ts(t, n, r, i), Q = (e, t, n, r, i) => e.tt(t, n, r, i), Lh = "WORD", Rh = "UWORD", zh = "ASCIINUMERICAL", Bh = "ALPHANUMERICAL", Vh = "LOCALHOST", Hh = "TLD", Uh = "UTLD", Wh = "SCHEME", Gh = "SLASH_SCHEME", Kh = "NUM", qh = "WS", Jh = "NL", Yh = "OPENBRACE", Xh = "CLOSEBRACE", Zh = "OPENBRACKET", Qh = "CLOSEBRACKET", $h = "OPENPAREN", eg = "CLOSEPAREN", tg = "OPENANGLEBRACKET", ng = "CLOSEANGLEBRACKET", rg = "FULLWIDTHLEFTPAREN", ig = "FULLWIDTHRIGHTPAREN", ag = "LEFTCORNERBRACKET", og = "RIGHTCORNERBRACKET", sg = "LEFTWHITECORNERBRACKET", cg = "RIGHTWHITECORNERBRACKET", lg = "FULLWIDTHLESSTHAN", ug = "FULLWIDTHGREATERTHAN", dg = "AMPERSAND", fg = "APOSTROPHE", pg = "ASTERISK", mg = "AT", hg = "BACKSLASH", gg = "BACKTICK", _g = "CARET", vg = "COLON", yg = "COMMA", bg = "DOLLAR", xg = "DOT", Sg = "EQUALS", Cg = "EXCLAMATION", wg = "HYPHEN", Tg = "PERCENT", Eg = "PIPE", Dg = "PLUS", Og = "POUND", kg = "QUERY", Ag = "QUOTE", jg = "FULLWIDTHMIDDLEDOT", Mg = "SEMI", Ng = "SLASH", Pg = "TILDE", Fg = "UNDERSCORE", Ig = "EMOJI", Lg = "SYM", Rg = /*#__PURE__*/ Object.freeze({
12505
12508
  __proto__: null,
12506
- ALPHANUMERICAL: zh,
12507
- AMPERSAND: ug,
12508
- APOSTROPHE: dg,
12509
- ASCIINUMERICAL: Rh,
12510
- ASTERISK: fg,
12511
- AT: pg,
12512
- BACKSLASH: mg,
12513
- BACKTICK: hg,
12514
- CARET: gg,
12515
- CLOSEANGLEBRACKET: tg,
12516
- CLOSEBRACE: Yh,
12517
- CLOSEBRACKET: Zh,
12518
- CLOSEPAREN: $h,
12519
- COLON: _g,
12520
- COMMA: vg,
12521
- DOLLAR: yg,
12522
- DOT: bg,
12523
- EMOJI: Fg,
12524
- EQUALS: xg,
12525
- EXCLAMATION: Sg,
12526
- FULLWIDTHGREATERTHAN: lg,
12527
- FULLWIDTHLEFTPAREN: ng,
12528
- FULLWIDTHLESSTHAN: cg,
12529
- FULLWIDTHMIDDLEDOT: Ag,
12530
- FULLWIDTHRIGHTPAREN: rg,
12531
- HYPHEN: Cg,
12532
- LEFTCORNERBRACKET: ig,
12533
- LEFTWHITECORNERBRACKET: og,
12534
- LOCALHOST: Bh,
12535
- NL: qh,
12536
- NUM: Gh,
12537
- OPENANGLEBRACKET: eg,
12538
- OPENBRACE: Jh,
12539
- OPENBRACKET: Xh,
12540
- OPENPAREN: Qh,
12541
- PERCENT: wg,
12542
- PIPE: Tg,
12543
- PLUS: Eg,
12544
- POUND: Dg,
12545
- QUERY: Og,
12546
- QUOTE: kg,
12547
- RIGHTCORNERBRACKET: ag,
12548
- RIGHTWHITECORNERBRACKET: sg,
12549
- SCHEME: Uh,
12550
- SEMI: jg,
12551
- SLASH: Mg,
12552
- SLASH_SCHEME: Wh,
12553
- SYM: Ig,
12554
- TILDE: Ng,
12555
- TLD: Vh,
12556
- UNDERSCORE: Pg,
12557
- UTLD: Hh,
12558
- UWORD: Lh,
12559
- WORD: Ih,
12560
- WS: Kh
12561
- }), Rg = /[a-z]/, zg = /[a-z]/i, Bg = /[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;
12509
+ ALPHANUMERICAL: Bh,
12510
+ AMPERSAND: dg,
12511
+ APOSTROPHE: fg,
12512
+ ASCIINUMERICAL: zh,
12513
+ ASTERISK: pg,
12514
+ AT: mg,
12515
+ BACKSLASH: hg,
12516
+ BACKTICK: gg,
12517
+ CARET: _g,
12518
+ CLOSEANGLEBRACKET: ng,
12519
+ CLOSEBRACE: Xh,
12520
+ CLOSEBRACKET: Qh,
12521
+ CLOSEPAREN: eg,
12522
+ COLON: vg,
12523
+ COMMA: yg,
12524
+ DOLLAR: bg,
12525
+ DOT: xg,
12526
+ EMOJI: Ig,
12527
+ EQUALS: Sg,
12528
+ EXCLAMATION: Cg,
12529
+ FULLWIDTHGREATERTHAN: ug,
12530
+ FULLWIDTHLEFTPAREN: rg,
12531
+ FULLWIDTHLESSTHAN: lg,
12532
+ FULLWIDTHMIDDLEDOT: jg,
12533
+ FULLWIDTHRIGHTPAREN: ig,
12534
+ HYPHEN: wg,
12535
+ LEFTCORNERBRACKET: ag,
12536
+ LEFTWHITECORNERBRACKET: sg,
12537
+ LOCALHOST: Vh,
12538
+ NL: Jh,
12539
+ NUM: Kh,
12540
+ OPENANGLEBRACKET: tg,
12541
+ OPENBRACE: Yh,
12542
+ OPENBRACKET: Zh,
12543
+ OPENPAREN: $h,
12544
+ PERCENT: Tg,
12545
+ PIPE: Eg,
12546
+ PLUS: Dg,
12547
+ POUND: Og,
12548
+ QUERY: kg,
12549
+ QUOTE: Ag,
12550
+ RIGHTCORNERBRACKET: og,
12551
+ RIGHTWHITECORNERBRACKET: cg,
12552
+ SCHEME: Wh,
12553
+ SEMI: Mg,
12554
+ SLASH: Ng,
12555
+ SLASH_SCHEME: Gh,
12556
+ SYM: Lg,
12557
+ TILDE: Pg,
12558
+ TLD: Hh,
12559
+ UNDERSCORE: Fg,
12560
+ UTLD: Uh,
12561
+ UWORD: Rh,
12562
+ WORD: Lh,
12563
+ WS: qh
12564
+ }), zg = /[a-z]/, Bg = /[a-z]/i, Vg = /[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;
12562
12565
  try {
12563
- zg = /* @__PURE__ */ RegExp("\\p{L}", "u"), Bg = /* @__PURE__ */ RegExp("\\p{Emoji}", "u");
12566
+ Bg = /* @__PURE__ */ RegExp("\\p{L}", "u"), Vg = /* @__PURE__ */ RegExp("\\p{Emoji}", "u");
12564
12567
  } catch {}
12565
- var Vg = /\d/, Hg = /\s/, Ug = "\r", Wg = "\n", Gg = "️", Kg = "‍", qg = "", Jg = null, Yg = null;
12566
- function Xg(e = []) {
12568
+ var Hg = /\d/, Ug = /\s/, Wg = "\r", Gg = "\n", Kg = "️", qg = "‍", Jg = "", Yg = null, Xg = null;
12569
+ function Zg(e = []) {
12567
12570
  let t = {};
12568
- Ph.groups = t;
12569
- let n = new Ph();
12570
- Jg ??= e_(yh), Yg ??= e_(bh), Q(n, "'", dg), Q(n, "{", Jh), Q(n, "}", Yh), Q(n, "[", Xh), Q(n, "]", Zh), Q(n, "(", Qh), Q(n, ")", $h), Q(n, "<", eg), Q(n, ">", tg), Q(n, "(", ng), Q(n, ")", rg), Q(n, "「", ig), Q(n, "」", ag), Q(n, "『", og), Q(n, "』", sg), Q(n, "<", cg), Q(n, ">", lg), Q(n, "&", ug), Q(n, "*", fg), Q(n, "@", pg), Q(n, "`", hg), Q(n, "^", gg), Q(n, ":", _g), Q(n, ",", vg), Q(n, "$", yg), Q(n, ".", bg), Q(n, "=", xg), Q(n, "!", Sg), Q(n, "-", Cg), Q(n, "%", wg), Q(n, "|", Tg), Q(n, "+", Eg), Q(n, "#", Dg), Q(n, "?", Og), Q(n, "\"", kg), Q(n, "/", Mg), Q(n, ";", jg), Q(n, "~", Ng), Q(n, "_", Pg), Q(n, "\\", mg), Q(n, "・", Ag);
12571
- let r = Z(n, Vg, Gh, { [xh]: !0 });
12572
- Z(r, Vg, r);
12573
- let i = Z(r, Rg, Rh, { [wh]: !0 }), a = Z(r, zg, zh, { [Th]: !0 }), o = Z(n, Rg, Ih, { [Sh]: !0 });
12574
- Z(o, Vg, i), Z(o, Rg, o), Z(i, Vg, i), Z(i, Rg, i);
12575
- let s = Z(n, zg, Lh, { [Ch]: !0 });
12576
- Z(s, Rg), Z(s, Vg, a), Z(s, zg, s), Z(a, Vg, a), Z(a, Rg), Z(a, zg, a);
12577
- let c = Q(n, Wg, qh, { [Ah]: !0 }), l = Q(n, Ug, Kh, { [Ah]: !0 }), u = Z(n, Hg, Kh, { [Ah]: !0 });
12578
- Q(n, qg, u), Q(l, Wg, c), Q(l, qg, u), Z(l, Hg, u), Q(u, Ug), Q(u, Wg), Z(u, Hg, u), Q(u, qg, u);
12579
- let d = Z(n, Bg, Fg, { [Dh]: !0 });
12580
- Q(d, "#"), Z(d, Bg, d), Q(d, Gg, d);
12581
- let f = Q(d, Kg);
12582
- Q(f, "#"), Z(f, Bg, d);
12583
- let p = [[Rg, o], [Vg, i]], m = [
12584
- [Rg, null],
12585
- [zg, s],
12586
- [Vg, a]
12571
+ Fh.groups = t;
12572
+ let n = new Fh();
12573
+ Yg ??= t_(bh), Xg ??= t_(xh), Q(n, "'", fg), Q(n, "{", Yh), Q(n, "}", Xh), Q(n, "[", Zh), Q(n, "]", Qh), Q(n, "(", $h), Q(n, ")", eg), Q(n, "<", tg), Q(n, ">", ng), Q(n, "(", rg), Q(n, ")", ig), Q(n, "「", ag), Q(n, "」", og), Q(n, "『", sg), Q(n, "』", cg), Q(n, "<", lg), Q(n, ">", ug), Q(n, "&", dg), Q(n, "*", pg), Q(n, "@", mg), Q(n, "`", gg), Q(n, "^", _g), Q(n, ":", vg), Q(n, ",", yg), Q(n, "$", bg), Q(n, ".", xg), Q(n, "=", Sg), Q(n, "!", Cg), Q(n, "-", wg), Q(n, "%", Tg), Q(n, "|", Eg), Q(n, "+", Dg), Q(n, "#", Og), Q(n, "?", kg), Q(n, "\"", Ag), Q(n, "/", Ng), Q(n, ";", Mg), Q(n, "~", Pg), Q(n, "_", Fg), Q(n, "\\", hg), Q(n, "・", jg);
12574
+ let r = Z(n, Hg, Kh, { [Sh]: !0 });
12575
+ Z(r, Hg, r);
12576
+ let i = Z(r, zg, zh, { [Th]: !0 }), a = Z(r, Bg, Bh, { [Eh]: !0 }), o = Z(n, zg, Lh, { [Ch]: !0 });
12577
+ Z(o, Hg, i), Z(o, zg, o), Z(i, Hg, i), Z(i, zg, i);
12578
+ let s = Z(n, Bg, Rh, { [wh]: !0 });
12579
+ Z(s, zg), Z(s, Hg, a), Z(s, Bg, s), Z(a, Hg, a), Z(a, zg), Z(a, Bg, a);
12580
+ let c = Q(n, Gg, Jh, { [jh]: !0 }), l = Q(n, Wg, qh, { [jh]: !0 }), u = Z(n, Ug, qh, { [jh]: !0 });
12581
+ Q(n, Jg, u), Q(l, Gg, c), Q(l, Jg, u), Z(l, Ug, u), Q(u, Wg), Q(u, Gg), Z(u, Ug, u), Q(u, Jg, u);
12582
+ let d = Z(n, Vg, Ig, { [Oh]: !0 });
12583
+ Q(d, "#"), Z(d, Vg, d), Q(d, Kg, d);
12584
+ let f = Q(d, qg);
12585
+ Q(f, "#"), Z(f, Vg, d);
12586
+ let p = [[zg, o], [Hg, i]], m = [
12587
+ [zg, null],
12588
+ [Bg, s],
12589
+ [Hg, a]
12587
12590
  ];
12588
- for (let e = 0; e < Jg.length; e++) $g(n, Jg[e], Vh, Ih, p);
12589
- for (let e = 0; e < Yg.length; e++) $g(n, Yg[e], Hh, Lh, m);
12590
- Mh(Vh, {
12591
+ for (let e = 0; e < Yg.length; e++) e_(n, Yg[e], Hh, Lh, p);
12592
+ for (let e = 0; e < Xg.length; e++) e_(n, Xg[e], Uh, Rh, m);
12593
+ Nh(Hh, {
12591
12594
  tld: !0,
12592
12595
  ascii: !0
12593
- }, t), Mh(Hh, {
12596
+ }, t), Nh(Uh, {
12594
12597
  utld: !0,
12595
12598
  alpha: !0
12596
- }, t), $g(n, "file", Uh, Ih, p), $g(n, "mailto", Uh, Ih, p), $g(n, "http", Wh, Ih, p), $g(n, "https", Wh, Ih, p), $g(n, "ftp", Wh, Ih, p), $g(n, "ftps", Wh, Ih, p), Mh(Uh, {
12599
+ }, t), e_(n, "file", Wh, Lh, p), e_(n, "mailto", Wh, Lh, p), e_(n, "http", Gh, Lh, p), e_(n, "https", Gh, Lh, p), e_(n, "ftp", Gh, Lh, p), e_(n, "ftps", Gh, Lh, p), Nh(Wh, {
12597
12600
  scheme: !0,
12598
12601
  ascii: !0
12599
- }, t), Mh(Wh, {
12602
+ }, t), Nh(Gh, {
12600
12603
  slashscheme: !0,
12601
12604
  ascii: !0
12602
12605
  }, t), e = e.sort((e, t) => e[0] > t[0] ? 1 : -1);
12603
12606
  for (let t = 0; t < e.length; t++) {
12604
- let r = e[t][0], i = e[t][1] ? { [Oh]: !0 } : { [kh]: !0 };
12605
- r.indexOf("-") >= 0 ? i[Eh] = !0 : Rg.test(r) ? Vg.test(r) ? i[wh] = !0 : i[Sh] = !0 : i[xh] = !0, Fh(n, r, r, i);
12607
+ let r = e[t][0], i = e[t][1] ? { [kh]: !0 } : { [Ah]: !0 };
12608
+ r.indexOf("-") >= 0 ? i[Dh] = !0 : zg.test(r) ? Hg.test(r) ? i[Th] = !0 : i[Ch] = !0 : i[Sh] = !0, Ih(n, r, r, i);
12606
12609
  }
12607
- return Fh(n, "localhost", Bh, { ascii: !0 }), n.jd = new Ph(Ig), {
12610
+ return Ih(n, "localhost", Vh, { ascii: !0 }), n.jd = new Fh(Lg), {
12608
12611
  start: n,
12609
- tokens: Object.assign({ groups: t }, Lg)
12612
+ tokens: Object.assign({ groups: t }, Rg)
12610
12613
  };
12611
12614
  }
12612
- function Zg(e, t) {
12613
- let n = Qg(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
12615
+ function Qg(e, t) {
12616
+ let n = $g(t.replace(/[A-Z]/g, (e) => e.toLowerCase())), r = n.length, i = [], a = 0, o = 0;
12614
12617
  for (; o < r;) {
12615
12618
  let s = e, c = null, l = 0, u = null, d = -1, f = -1;
12616
12619
  for (; o < r && (c = s.go(n[o]));) s = c, s.accepts() ? (d = 0, f = 0, u = s) : d >= 0 && (d += n[o].length, f++), l += n[o].length, a += n[o].length, o++;
@@ -12623,7 +12626,7 @@ function Zg(e, t) {
12623
12626
  }
12624
12627
  return i;
12625
12628
  }
12626
- function Qg(e) {
12629
+ function $g(e) {
12627
12630
  let t = [], n = e.length, r = 0;
12628
12631
  for (; r < n;) {
12629
12632
  let i = e.charCodeAt(r), a, o = i < 55296 || i > 56319 || r + 1 === n || (a = e.charCodeAt(r + 1)) < 56320 || a > 57343 ? e[r] : e.slice(r, r + 2);
@@ -12631,15 +12634,15 @@ function Qg(e) {
12631
12634
  }
12632
12635
  return t;
12633
12636
  }
12634
- function $g(e, t, n, r, i) {
12637
+ function e_(e, t, n, r, i) {
12635
12638
  let a, o = t.length;
12636
12639
  for (let n = 0; n < o - 1; n++) {
12637
12640
  let o = t[n];
12638
- e.j[o] ? a = e.j[o] : (a = new Ph(r), a.jr = i.slice(), e.j[o] = a), e = a;
12641
+ e.j[o] ? a = e.j[o] : (a = new Fh(r), a.jr = i.slice(), e.j[o] = a), e = a;
12639
12642
  }
12640
- return a = new Ph(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
12643
+ return a = new Fh(n), a.jr = i.slice(), e.j[t[o - 1]] = a, a;
12641
12644
  }
12642
- function e_(e) {
12645
+ function t_(e) {
12643
12646
  let t = [], n = [], r = 0;
12644
12647
  for (; r < e.length;) {
12645
12648
  let i = 0;
@@ -12652,11 +12655,11 @@ function e_(e) {
12652
12655
  }
12653
12656
  return t;
12654
12657
  }
12655
- var t_ = {
12658
+ var n_ = {
12656
12659
  defaultProtocol: "http",
12657
12660
  events: null,
12658
- format: r_,
12659
- formatHref: r_,
12661
+ format: i_,
12662
+ formatHref: i_,
12660
12663
  nl2br: !1,
12661
12664
  tagName: "a",
12662
12665
  target: null,
@@ -12669,15 +12672,15 @@ var t_ = {
12669
12672
  ignoreClasses: [],
12670
12673
  render: null
12671
12674
  };
12672
- function n_(e, t = null) {
12673
- let n = Object.assign({}, t_);
12674
- e && (n = Object.assign(n, e instanceof n_ ? e.o : e));
12675
+ function r_(e, t = null) {
12676
+ let n = Object.assign({}, n_);
12677
+ e && (n = Object.assign(n, e instanceof r_ ? e.o : e));
12675
12678
  let r = n.ignoreTags, i = [];
12676
12679
  for (let e = 0; e < r.length; e++) i.push(r[e].toUpperCase());
12677
12680
  this.o = n, t && (this.defaultRender = t), this.ignoreTags = i, this.ignoreClasses = n.ignoreClasses.slice();
12678
12681
  }
12679
- n_.prototype = {
12680
- o: t_,
12682
+ r_.prototype = {
12683
+ o: n_,
12681
12684
  ignoreTags: [],
12682
12685
  ignoreClasses: [],
12683
12686
  isIgnoredClass(e) {
@@ -12694,7 +12697,7 @@ n_.prototype = {
12694
12697
  },
12695
12698
  get(e, t, n) {
12696
12699
  let r = t != null, i = this.o[e];
12697
- return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : t_[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
12700
+ return i && (typeof i == "object" ? (i = n.t in i ? i[n.t] : n_[e], typeof i == "function" && r && (i = i(t, n))) : typeof i == "function" && r && (i = i(t, n.t, n)), i);
12698
12701
  },
12699
12702
  getObj(e, t, n) {
12700
12703
  let r = this.o[e];
@@ -12705,13 +12708,13 @@ n_.prototype = {
12705
12708
  return (this.get("render", null, e) || this.defaultRender)(t, e.t, e);
12706
12709
  }
12707
12710
  };
12708
- function r_(e) {
12711
+ function i_(e) {
12709
12712
  return e;
12710
12713
  }
12711
- function i_(e, t) {
12714
+ function a_(e, t) {
12712
12715
  this.t = "token", this.v = e, this.tk = t;
12713
12716
  }
12714
- i_.prototype = {
12717
+ a_.prototype = {
12715
12718
  isLink: !1,
12716
12719
  toString() {
12717
12720
  return this.v;
@@ -12732,7 +12735,7 @@ i_.prototype = {
12732
12735
  endIndex() {
12733
12736
  return this.tk[this.tk.length - 1].e;
12734
12737
  },
12735
- toObject(e = t_.defaultProtocol) {
12738
+ toObject(e = n_.defaultProtocol) {
12736
12739
  return {
12737
12740
  type: this.t,
12738
12741
  value: this.toString(),
@@ -12765,8 +12768,8 @@ i_.prototype = {
12765
12768
  };
12766
12769
  }
12767
12770
  };
12768
- function a_(e, t) {
12769
- class n extends i_ {
12771
+ function o_(e, t) {
12772
+ class n extends a_ {
12770
12773
  constructor(t, n) {
12771
12774
  super(t, n), this.t = e;
12772
12775
  }
@@ -12774,138 +12777,138 @@ function a_(e, t) {
12774
12777
  for (let e in t) n.prototype[e] = t[e];
12775
12778
  return n.t = e, n;
12776
12779
  }
12777
- var o_ = a_("email", {
12780
+ var s_ = o_("email", {
12778
12781
  isLink: !0,
12779
12782
  toHref() {
12780
12783
  return "mailto:" + this.toString();
12781
12784
  }
12782
- }), s_ = a_("text"), c_ = a_("nl"), l_ = a_("url", {
12785
+ }), c_ = o_("text"), l_ = o_("nl"), u_ = o_("url", {
12783
12786
  isLink: !0,
12784
- toHref(e = t_.defaultProtocol) {
12787
+ toHref(e = n_.defaultProtocol) {
12785
12788
  return this.hasProtocol() ? this.v : `${e}://${this.v}`;
12786
12789
  },
12787
12790
  hasProtocol() {
12788
12791
  let e = this.tk;
12789
- return e.length >= 2 && e[0].t !== Bh && e[1].t === _g;
12792
+ return e.length >= 2 && e[0].t !== Vh && e[1].t === vg;
12790
12793
  }
12791
- }), u_ = (e) => new Ph(e);
12792
- function d_({ groups: e }) {
12794
+ }), d_ = (e) => new Fh(e);
12795
+ function f_({ groups: e }) {
12793
12796
  let t = e.domain.concat([
12794
- ug,
12795
- fg,
12797
+ dg,
12796
12798
  pg,
12797
12799
  mg,
12798
12800
  hg,
12799
12801
  gg,
12800
- yg,
12801
- xg,
12802
- Cg,
12803
- Gh,
12802
+ _g,
12803
+ bg,
12804
+ Sg,
12804
12805
  wg,
12806
+ Kh,
12805
12807
  Tg,
12806
12808
  Eg,
12807
12809
  Dg,
12808
- Mg,
12809
- Ig,
12810
+ Og,
12810
12811
  Ng,
12811
- Pg
12812
+ Lg,
12813
+ Pg,
12814
+ Fg
12812
12815
  ]), n = [
12813
- dg,
12814
- _g,
12816
+ fg,
12815
12817
  vg,
12816
- bg,
12817
- Sg,
12818
- wg,
12819
- Og,
12818
+ yg,
12819
+ xg,
12820
+ Cg,
12821
+ Tg,
12820
12822
  kg,
12821
- jg,
12822
- eg,
12823
+ Ag,
12824
+ Mg,
12823
12825
  tg,
12824
- Jh,
12826
+ ng,
12825
12827
  Yh,
12826
- Zh,
12827
12828
  Xh,
12828
12829
  Qh,
12830
+ Zh,
12829
12831
  $h,
12830
- ng,
12832
+ eg,
12831
12833
  rg,
12832
12834
  ig,
12833
12835
  ag,
12834
12836
  og,
12835
12837
  sg,
12836
12838
  cg,
12837
- lg
12839
+ lg,
12840
+ ug
12838
12841
  ], r = [
12839
- ug,
12840
12842
  dg,
12841
12843
  fg,
12842
- mg,
12844
+ pg,
12843
12845
  hg,
12844
12846
  gg,
12845
- yg,
12846
- xg,
12847
- Cg,
12848
- Jh,
12849
- Yh,
12847
+ _g,
12848
+ bg,
12849
+ Sg,
12850
12850
  wg,
12851
+ Yh,
12852
+ Xh,
12851
12853
  Tg,
12852
12854
  Eg,
12853
12855
  Dg,
12854
12856
  Og,
12855
- Mg,
12856
- Ig,
12857
+ kg,
12857
12858
  Ng,
12858
- Pg
12859
- ], i = u_(), a = Q(i, Ng);
12859
+ Lg,
12860
+ Pg,
12861
+ Fg
12862
+ ], i = d_(), a = Q(i, Pg);
12860
12863
  X(a, r, a), X(a, e.domain, a);
12861
- let o = u_(), s = u_(), c = u_();
12864
+ let o = d_(), s = d_(), c = d_();
12862
12865
  X(i, e.domain, o), X(i, e.scheme, s), X(i, e.slashscheme, c), X(o, r, a), X(o, e.domain, o);
12863
- let l = Q(o, pg);
12864
- Q(a, pg, l), Q(s, pg, l), Q(c, pg, l);
12865
- let u = Q(a, bg);
12866
+ let l = Q(o, mg);
12867
+ Q(a, mg, l), Q(s, mg, l), Q(c, mg, l);
12868
+ let u = Q(a, xg);
12866
12869
  X(u, r, a), X(u, e.domain, a);
12867
- let d = u_();
12870
+ let d = d_();
12868
12871
  X(l, e.domain, d), X(d, e.domain, d);
12869
- let f = Q(d, bg);
12872
+ let f = Q(d, xg);
12870
12873
  X(f, e.domain, d);
12871
- let p = u_(o_);
12872
- X(f, e.tld, p), X(f, e.utld, p), Q(l, Bh, p);
12873
- let m = Q(d, Cg);
12874
- Q(m, Cg, m), X(m, e.domain, d), X(p, e.domain, d), Q(p, bg, f), Q(p, Cg, m);
12875
- let h = Q(o, Cg), g = Q(o, bg);
12876
- Q(h, Cg, h), X(h, e.domain, o), X(g, r, a), X(g, e.domain, o);
12877
- let _ = u_(l_);
12878
- X(g, e.tld, _), X(g, e.utld, _), X(_, e.domain, o), X(_, r, a), Q(_, bg, g), Q(_, Cg, h), Q(_, pg, l);
12879
- let v = Q(_, _g), y = u_(l_);
12874
+ let p = d_(s_);
12875
+ X(f, e.tld, p), X(f, e.utld, p), Q(l, Vh, p);
12876
+ let m = Q(d, wg);
12877
+ Q(m, wg, m), X(m, e.domain, d), X(p, e.domain, d), Q(p, xg, f), Q(p, wg, m);
12878
+ let h = Q(o, wg), g = Q(o, xg);
12879
+ Q(h, wg, h), X(h, e.domain, o), X(g, r, a), X(g, e.domain, o);
12880
+ let _ = d_(u_);
12881
+ X(g, e.tld, _), X(g, e.utld, _), X(_, e.domain, o), X(_, r, a), Q(_, xg, g), Q(_, wg, h), Q(_, mg, l);
12882
+ let v = Q(_, vg), y = d_(u_);
12880
12883
  X(v, e.numeric, y);
12881
- let b = u_(l_), x = u_();
12882
- X(b, t, b), X(b, n, x), X(x, t, b), X(x, n, x), Q(_, Mg, b), Q(y, Mg, b), Q(_, Og, x), Q(_, Dg, b), Q(y, Og, x), Q(y, Dg, b);
12883
- let S = Q(s, _g), ee = Q(Q(Q(c, _g), Mg), Mg);
12884
- X(s, e.domain, o), Q(s, bg, g), Q(s, Cg, h), X(c, e.domain, o), Q(c, bg, g), Q(c, Cg, h), X(S, e.domain, b), Q(S, Mg, b), Q(S, Og, b), X(ee, e.domain, b), X(ee, t, b), Q(ee, Mg, b);
12884
+ let b = d_(u_), x = d_();
12885
+ X(b, t, b), X(b, n, x), X(x, t, b), X(x, n, x), Q(_, Ng, b), Q(y, Ng, b), Q(_, kg, x), Q(_, Og, b), Q(y, kg, x), Q(y, Og, b);
12886
+ let S = Q(s, vg), ee = Q(Q(Q(c, vg), Ng), Ng);
12887
+ X(s, e.domain, o), Q(s, xg, g), Q(s, wg, h), X(c, e.domain, o), Q(c, xg, g), Q(c, wg, h), X(S, e.domain, b), Q(S, Ng, b), Q(S, kg, b), X(ee, e.domain, b), X(ee, t, b), Q(ee, Ng, b);
12885
12888
  let C = [
12886
- [Jh, Yh],
12887
- [Xh, Zh],
12888
- [Qh, $h],
12889
- [eg, tg],
12890
- [ng, rg],
12891
- [ig, ag],
12892
- [og, sg],
12893
- [cg, lg]
12889
+ [Yh, Xh],
12890
+ [Zh, Qh],
12891
+ [$h, eg],
12892
+ [tg, ng],
12893
+ [rg, ig],
12894
+ [ag, og],
12895
+ [sg, cg],
12896
+ [lg, ug]
12894
12897
  ];
12895
12898
  for (let e = 0; e < C.length; e++) {
12896
12899
  let [r, i] = C[e], a = Q(b, r);
12897
12900
  Q(x, r, a);
12898
- let o = u_(l_);
12901
+ let o = d_(u_);
12899
12902
  X(a, t, o);
12900
- let s = u_();
12903
+ let s = d_();
12901
12904
  X(a, n, s), Q(a, i, b), X(o, t, o), X(o, n, s), X(s, t, o), X(s, n, s), Q(o, i, b), Q(s, i, b);
12902
12905
  }
12903
- return Q(i, Bh, _), Q(i, qh, c_), {
12906
+ return Q(i, Vh, _), Q(i, Jh, l_), {
12904
12907
  start: i,
12905
- tokens: Lg
12908
+ tokens: Rg
12906
12909
  };
12907
12910
  }
12908
- function f_(e, t, n) {
12911
+ function p_(e, t, n) {
12909
12912
  let r = n.length, i = 0, a = [], o = [], s = [];
12910
12913
  for (; i < r;) {
12911
12914
  let c = e, l = null, u = null, d = 0, f = null, p = -1, m = [];
@@ -12915,18 +12918,18 @@ function f_(e, t, n) {
12915
12918
  for (let e = 0, t = i - m.length + 1; e < m.length; e++, t++) (s[t] || (s[t] = /* @__PURE__ */ new Set())).add(m[e]);
12916
12919
  if (p < 0) i -= d, i < r && (o.push(n[i]), i++);
12917
12920
  else {
12918
- o.length > 0 && (a.push(p_(s_, t, o)), o = []), i -= p, d -= p;
12921
+ o.length > 0 && (a.push(m_(c_, t, o)), o = []), i -= p, d -= p;
12919
12922
  let e = f.t, r = n.slice(i - d, i);
12920
- a.push(p_(e, t, r));
12923
+ a.push(m_(e, t, r));
12921
12924
  }
12922
12925
  }
12923
- return o.length > 0 && a.push(p_(s_, t, o)), a;
12926
+ return o.length > 0 && a.push(m_(c_, t, o)), a;
12924
12927
  }
12925
- function p_(e, t, n) {
12928
+ function m_(e, t, n) {
12926
12929
  let r = n[0].s, i = n[n.length - 1].e;
12927
12930
  return new e(t.slice(r, i), n);
12928
12931
  }
12929
- var m_ = typeof console < "u" && console && console.warn || (() => {}), h_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", $ = {
12932
+ var h_ = typeof console < "u" && console && console.warn || (() => {}), g_ = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", $ = {
12930
12933
  scanner: null,
12931
12934
  parser: null,
12932
12935
  tokenQueue: [],
@@ -12934,50 +12937,50 @@ var m_ = typeof console < "u" && console && console.warn || (() => {}), h_ = "un
12934
12937
  customSchemes: [],
12935
12938
  initialized: !1
12936
12939
  };
12937
- function g_() {
12938
- return Ph.groups = {}, $.scanner = null, $.parser = null, $.tokenQueue = [], $.pluginQueue = [], $.customSchemes = [], $.initialized = !1, $;
12940
+ function __() {
12941
+ return Fh.groups = {}, $.scanner = null, $.parser = null, $.tokenQueue = [], $.pluginQueue = [], $.customSchemes = [], $.initialized = !1, $;
12939
12942
  }
12940
- function __(e, t = !1) {
12941
- if ($.initialized && m_(`linkifyjs: already initialized - will not register custom scheme "${e}" ${h_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
12943
+ function v_(e, t = !1) {
12944
+ if ($.initialized && h_(`linkifyjs: already initialized - will not register custom scheme "${e}" ${g_}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e)) throw Error("linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or \"-\"\n2. Cannot start or end with \"-\"\n3. \"-\" cannot repeat");
12942
12945
  $.customSchemes.push([e, t]);
12943
12946
  }
12944
- function v_() {
12945
- $.scanner = Xg($.customSchemes);
12947
+ function y_() {
12948
+ $.scanner = Zg($.customSchemes);
12946
12949
  for (let e = 0; e < $.tokenQueue.length; e++) $.tokenQueue[e][1]({ scanner: $.scanner });
12947
- $.parser = d_($.scanner.tokens);
12950
+ $.parser = f_($.scanner.tokens);
12948
12951
  for (let e = 0; e < $.pluginQueue.length; e++) $.pluginQueue[e][1]({
12949
12952
  scanner: $.scanner,
12950
12953
  parser: $.parser
12951
12954
  });
12952
12955
  return $.initialized = !0, $;
12953
12956
  }
12954
- function y_(e) {
12955
- return $.initialized || v_(), f_($.parser.start, e, Zg($.scanner.start, e));
12957
+ function b_(e) {
12958
+ return $.initialized || y_(), p_($.parser.start, e, Qg($.scanner.start, e));
12956
12959
  }
12957
- y_.scan = Zg;
12958
- function b_(e, t = null, n = null) {
12960
+ b_.scan = Qg;
12961
+ function x_(e, t = null, n = null) {
12959
12962
  if (t && typeof t == "object") {
12960
12963
  if (n) throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);
12961
12964
  n = t, t = null;
12962
12965
  }
12963
- let r = new n_(n), i = y_(e), a = [];
12966
+ let r = new r_(n), i = b_(e), a = [];
12964
12967
  for (let e = 0; e < i.length; e++) {
12965
12968
  let n = i[e];
12966
12969
  n.isLink && (!t || n.t === t) && r.check(n) && a.push(n.toFormattedObject(r));
12967
12970
  }
12968
12971
  return a;
12969
12972
  }
12970
- // ../../node_modules/.pnpm/@tiptap+extension-link@3.33.0_@tiptap+core@3.33.0_@tiptap+pm@3.33.0__@tiptap+pm@3.33.0/node_modules/@tiptap/extension-link/dist/index.js
12971
- var x_ = /* @__PURE__ */ e({
12972
- Link: () => W_,
12973
- default: () => G_,
12974
- isAllowedUri: () => U_,
12975
- pasteRegex: () => H_
12976
- }), S_ = "[\0- \xA0 ᠎ -\u2029  ]", C_ = new RegExp(S_), w_ = RegExp(`${S_}$`), T_ = RegExp(`${S_}+$`), E_ = new RegExp(S_, "g");
12977
- function D_(e, t, n) {
12973
+ // ../../node_modules/.pnpm/@tiptap+extension-link@3.33.1_@tiptap+core@3.33.1_@tiptap+pm@3.33.1__@tiptap+pm@3.33.1/node_modules/@tiptap/extension-link/dist/index.js
12974
+ var S_ = /* @__PURE__ */ e({
12975
+ Link: () => G_,
12976
+ default: () => K_,
12977
+ isAllowedUri: () => W_,
12978
+ pasteRegex: () => U_
12979
+ }), C_ = "[\0- \xA0 ᠎ -\u2029  ]", w_ = new RegExp(C_), T_ = RegExp(`${C_}$`), E_ = RegExp(`${C_}+$`), D_ = new RegExp(C_, "g");
12980
+ function O_(e, t, n) {
12978
12981
  let r = e.doc.resolve(t.to);
12979
12982
  if (!r.nodeBefore?.isText) return;
12980
- let i = e.doc.textBetween(t.from, t.to, "", "").match(T_)?.[0];
12983
+ let i = e.doc.textBetween(t.from, t.to, "", "").match(E_)?.[0];
12981
12984
  if (!i) return;
12982
12985
  let a = t.to - i.length, o = od(a, t.to, e.doc).filter((e) => e.mark.type === n);
12983
12986
  if (!o.length) return;
@@ -12986,10 +12989,10 @@ function D_(e, t, n) {
12986
12989
  let c = e.storedMarks;
12987
12990
  e.removeMark(a, t.to, n), e.setStoredMarks(c), e.selection.empty && e.selection.from === t.to && e.removeStoredMark(n);
12988
12991
  }
12989
- function O_(e) {
12992
+ function k_(e) {
12990
12993
  return e.length === 1 ? e[0].isLink : e.length === 3 && e[1].isLink ? ["()", "[]"].includes(e[0].value + e[2].value) : !1;
12991
12994
  }
12992
- function k_(e) {
12995
+ function A_(e) {
12993
12996
  return new N({
12994
12997
  key: new P("autolink"),
12995
12998
  appendTransaction: (t, n, r) => {
@@ -13005,23 +13008,23 @@ function k_(e) {
13005
13008
  from: i,
13006
13009
  to: a
13007
13010
  });
13008
- }), t.sort((e, t) => t.to - e.to), t.forEach((t) => D_(o, t, e.type));
13011
+ }), t.sort((e, t) => t.to - e.to), t.forEach((t) => O_(o, t, e.type));
13009
13012
  }
13010
13013
  if (id(s).forEach(({ newRange: t }) => {
13011
13014
  let n = yu(r.doc, t, (e) => e.isTextblock), i, a;
13012
13015
  if (n.length > 1) i = n[0], a = r.doc.textBetween(i.pos, i.pos + i.node.nodeSize, void 0, " ");
13013
13016
  else if (n.length) {
13014
13017
  let e = r.doc.textBetween(t.from, t.to, " ", " ");
13015
- if (!w_.test(e)) return;
13018
+ if (!T_.test(e)) return;
13016
13019
  i = n[0], a = r.doc.textBetween(i.pos, t.to, void 0, " ");
13017
13020
  }
13018
13021
  if (i && a) {
13019
- let t = a.split(C_).filter(Boolean);
13022
+ let t = a.split(w_).filter(Boolean);
13020
13023
  if (t.length <= 0) return !1;
13021
13024
  let n = t[t.length - 1], s = i.pos + a.lastIndexOf(n);
13022
13025
  if (!n) return !1;
13023
- let c = y_(n).map((t) => t.toObject(e.defaultProtocol));
13024
- if (!O_(c)) return !1;
13026
+ let c = b_(n).map((t) => t.toObject(e.defaultProtocol));
13027
+ if (!k_(c)) return !1;
13025
13028
  c.filter((e) => e.isLink).map((e) => ({
13026
13029
  ...e,
13027
13030
  from: s + e.start + 1,
@@ -13034,7 +13037,7 @@ function k_(e) {
13034
13037
  }
13035
13038
  });
13036
13039
  }
13037
- function A_(e) {
13040
+ function j_(e) {
13038
13041
  return new N({
13039
13042
  key: new P("handleClickLink"),
13040
13043
  props: { handleClick: (t, n, r) => {
@@ -13057,16 +13060,16 @@ function A_(e) {
13057
13060
  } }
13058
13061
  });
13059
13062
  }
13060
- var j_ = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/, M_ = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;
13061
- function N_(e, t) {
13063
+ var M_ = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/, N_ = /\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;
13064
+ function P_(e, t) {
13062
13065
  let n = 0;
13063
13066
  for (let r = t - 1; r >= 0 && e[r] === "\\"; --r) n += 1;
13064
13067
  return n % 2 == 1;
13065
13068
  }
13066
- function P_(e, t) {
13069
+ function F_(e, t) {
13067
13070
  let n = 0, r = 0;
13068
13071
  for (; r < t;) {
13069
- if (e[r] !== "`" || n === 0 && N_(e, r)) {
13072
+ if (e[r] !== "`" || n === 0 && P_(e, r)) {
13070
13073
  r += 1;
13071
13074
  continue;
13072
13075
  }
@@ -13076,11 +13079,11 @@ function P_(e, t) {
13076
13079
  }
13077
13080
  return n > 0;
13078
13081
  }
13079
- function F_(e, t, n) {
13082
+ function I_(e, t, n) {
13080
13083
  let [, r, i] = t;
13081
- return (t.index ? e[t.index - 1] : void 0) === "!" || N_(e, t.index ?? 0) || P_(e, t.index ?? 0) ? !1 : !!r.trim() && n(i);
13084
+ return (t.index ? e[t.index - 1] : void 0) === "!" || P_(e, t.index ?? 0) || F_(e, t.index ?? 0) ? !1 : !!r.trim() && n(i);
13082
13085
  }
13083
- function I_(e) {
13086
+ function L_(e) {
13084
13087
  let [t, n, r, , i, a, o] = e;
13085
13088
  return {
13086
13089
  index: e.index ?? 0,
@@ -13093,23 +13096,23 @@ function I_(e) {
13093
13096
  }
13094
13097
  };
13095
13098
  }
13096
- function L_(e, t) {
13099
+ function R_(e, t) {
13097
13100
  return e.index < t.index + t.text.length && t.index < e.index + e.text.length;
13098
13101
  }
13099
- function R_(e) {
13102
+ function z_(e) {
13100
13103
  return {
13101
13104
  href: e.data?.href,
13102
13105
  title: e.data?.title ?? null
13103
13106
  };
13104
13107
  }
13105
- function z_(e) {
13106
- let t = jm({
13108
+ function B_(e) {
13109
+ let t = Mm({
13107
13110
  find: (t) => {
13108
- let n = j_.exec(t);
13109
- return !n || !F_(t, n, e.isAllowedHref) ? null : I_(n);
13111
+ let n = M_.exec(t);
13112
+ return !n || !I_(t, n, e.isAllowedHref) ? null : L_(n);
13110
13113
  },
13111
13114
  type: e.type,
13112
- getAttributes: R_
13115
+ getAttributes: z_
13113
13116
  });
13114
13117
  return new Gp({
13115
13118
  find: t.find,
@@ -13119,16 +13122,16 @@ function z_(e) {
13119
13122
  }
13120
13123
  });
13121
13124
  }
13122
- function B_(e) {
13123
- let t = Ym({
13125
+ function V_(e) {
13126
+ let t = Xm({
13124
13127
  find: (t) => {
13125
13128
  let n = [];
13126
- for (let r of t.matchAll(M_)) F_(t, r, e.isAllowedHref) && n.push(I_(r));
13127
- let r = (e.findPlainUrls?.call(e, t) ?? []).filter((e) => !n.some((t) => L_(t, e)));
13129
+ for (let r of t.matchAll(N_)) I_(t, r, e.isAllowedHref) && n.push(L_(r));
13130
+ let r = (e.findPlainUrls?.call(e, t) ?? []).filter((e) => !n.some((t) => R_(t, e)));
13128
13131
  return [...n, ...r];
13129
13132
  },
13130
13133
  type: e.type,
13131
- getAttributes: R_
13134
+ getAttributes: z_
13132
13135
  });
13133
13136
  return new em({
13134
13137
  find: t.find,
@@ -13138,7 +13141,7 @@ function B_(e) {
13138
13141
  }
13139
13142
  });
13140
13143
  }
13141
- function V_(e) {
13144
+ function H_(e) {
13142
13145
  return new N({
13143
13146
  key: new P("handlePasteLink"),
13144
13147
  props: { handlePaste: (t, n, r) => {
@@ -13148,13 +13151,13 @@ function V_(e) {
13148
13151
  r.content.forEach((e) => {
13149
13152
  c += e.textContent;
13150
13153
  });
13151
- let l = b_(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
13154
+ let l = x_(c, { defaultProtocol: e.defaultProtocol }).find((e) => e.isLink && e.value === c);
13152
13155
  return !c || !l || i !== void 0 && !i(l.value) ? !1 : e.editor.commands.setMark(e.type, { href: l.href });
13153
13156
  } }
13154
13157
  });
13155
13158
  }
13156
- var H_ = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)/gi;
13157
- function U_(e, t) {
13159
+ var U_ = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)/gi;
13160
+ function W_(e, t) {
13158
13161
  let n = [
13159
13162
  "http",
13160
13163
  "https",
@@ -13170,20 +13173,20 @@ function U_(e, t) {
13170
13173
  return t && t.forEach((e) => {
13171
13174
  let t = typeof e == "string" ? e : e.scheme;
13172
13175
  t && n.push(t);
13173
- }), !e || e.replace(E_, "").match(RegExp(`^(?:(?:${n.map((e) => e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"));
13176
+ }), !e || e.replace(D_, "").match(RegExp(`^(?:(?:${n.map((e) => e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|")}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"));
13174
13177
  }
13175
- var W_ = $p.create({
13178
+ var G_ = $p.create({
13176
13179
  name: "link",
13177
13180
  priority: 1e3,
13178
13181
  keepOnSplit: !1,
13179
13182
  exitable: !0,
13180
13183
  onCreate() {
13181
13184
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((e) => {
13182
- typeof e == "string" ? __(e) : __(e.scheme, e.optionalSlashes);
13185
+ typeof e == "string" ? v_(e) : v_(e.scheme, e.optionalSlashes);
13183
13186
  });
13184
13187
  },
13185
13188
  onDestroy() {
13186
- g_();
13189
+ __();
13187
13190
  },
13188
13191
  inclusive() {
13189
13192
  return this.options.autolink;
@@ -13202,7 +13205,7 @@ var W_ = $p.create({
13202
13205
  rel: "noopener noreferrer nofollow",
13203
13206
  class: null
13204
13207
  },
13205
- isAllowedUri: (e, t) => !!U_(e, t.protocols),
13208
+ isAllowedUri: (e, t) => !!W_(e, t.protocols),
13206
13209
  validate: (e) => !!e,
13207
13210
  shouldAutoLink: (e) => {
13208
13211
  let t = /^[a-z][a-z0-9+.-]*:\/\//i.test(e), n = /^[a-z][a-z0-9+.-]*:/i.test(e);
@@ -13232,7 +13235,7 @@ var W_ = $p.create({
13232
13235
  getAttrs: (e) => {
13233
13236
  let t = e.getAttribute("href");
13234
13237
  return !t || !this.options.isAllowedUri(t, {
13235
- defaultValidate: (e) => !!U_(e, this.options.protocols),
13238
+ defaultValidate: (e) => !!W_(e, this.options.protocols),
13236
13239
  protocols: this.options.protocols,
13237
13240
  defaultProtocol: this.options.defaultProtocol
13238
13241
  }) ? !1 : null;
@@ -13241,7 +13244,7 @@ var W_ = $p.create({
13241
13244
  },
13242
13245
  renderHTML({ HTMLAttributes: e }) {
13243
13246
  return this.options.isAllowedUri(e.href, {
13244
- defaultValidate: (e) => !!U_(e, this.options.protocols),
13247
+ defaultValidate: (e) => !!W_(e, this.options.protocols),
13245
13248
  protocols: this.options.protocols,
13246
13249
  defaultProtocol: this.options.defaultProtocol
13247
13250
  }) ? [
@@ -13271,7 +13274,7 @@ var W_ = $p.create({
13271
13274
  setLink: (e) => ({ chain: t }) => {
13272
13275
  let { href: n } = e;
13273
13276
  return this.options.isAllowedUri(n, {
13274
- defaultValidate: (e) => !!U_(e, this.options.protocols),
13277
+ defaultValidate: (e) => !!W_(e, this.options.protocols),
13275
13278
  protocols: this.options.protocols,
13276
13279
  defaultProtocol: this.options.defaultProtocol
13277
13280
  }) ? t().setMark(this.name, e).setMeta("preventAutolink", !0).run() : !1;
@@ -13279,7 +13282,7 @@ var W_ = $p.create({
13279
13282
  toggleLink: (e) => ({ chain: t }) => {
13280
13283
  let { href: n } = e || {};
13281
13284
  return n && !this.options.isAllowedUri(n, {
13282
- defaultValidate: (e) => !!U_(e, this.options.protocols),
13285
+ defaultValidate: (e) => !!W_(e, this.options.protocols),
13283
13286
  protocols: this.options.protocols,
13284
13287
  defaultProtocol: this.options.defaultProtocol
13285
13288
  }) ? !1 : t().toggleMark(this.name, e, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run();
@@ -13288,10 +13291,10 @@ var W_ = $p.create({
13288
13291
  };
13289
13292
  },
13290
13293
  addInputRules() {
13291
- return this.options.markdownLinks ? [z_({
13294
+ return this.options.markdownLinks ? [B_({
13292
13295
  type: this.type,
13293
13296
  isAllowedHref: (e) => this.options.isAllowedUri(e, {
13294
- defaultValidate: (e) => !!U_(e, this.options.protocols),
13297
+ defaultValidate: (e) => !!W_(e, this.options.protocols),
13295
13298
  protocols: this.options.protocols,
13296
13299
  defaultProtocol: this.options.defaultProtocol
13297
13300
  })
@@ -13302,8 +13305,8 @@ var W_ = $p.create({
13302
13305
  let t = [];
13303
13306
  if (e) {
13304
13307
  let { protocols: n, defaultProtocol: r } = this.options;
13305
- b_(e, { defaultProtocol: r }).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
13306
- defaultValidate: (e) => !!U_(e, n),
13308
+ x_(e, { defaultProtocol: r }).filter((e) => e.isLink && this.options.isAllowedUri(e.value, {
13309
+ defaultValidate: (e) => !!W_(e, n),
13307
13310
  protocols: n,
13308
13311
  defaultProtocol: r
13309
13312
  })).forEach((e) => {
@@ -13316,15 +13319,15 @@ var W_ = $p.create({
13316
13319
  }
13317
13320
  return t;
13318
13321
  };
13319
- return this.options.markdownLinks ? [B_({
13322
+ return this.options.markdownLinks ? [V_({
13320
13323
  type: this.type,
13321
13324
  isAllowedHref: (e) => this.options.isAllowedUri(e, {
13322
- defaultValidate: (e) => !!U_(e, this.options.protocols),
13325
+ defaultValidate: (e) => !!W_(e, this.options.protocols),
13323
13326
  protocols: this.options.protocols,
13324
13327
  defaultProtocol: this.options.defaultProtocol
13325
13328
  }),
13326
13329
  findPlainUrls: e
13327
- })] : [Ym({
13330
+ })] : [Xm({
13328
13331
  find: e,
13329
13332
  type: this.type,
13330
13333
  getAttributes: (e) => ({ href: e.data?.href })
@@ -13332,31 +13335,31 @@ var W_ = $p.create({
13332
13335
  },
13333
13336
  addProseMirrorPlugins() {
13334
13337
  let e = [], { protocols: t, defaultProtocol: n } = this.options;
13335
- return this.options.autolink && e.push(k_({
13338
+ return this.options.autolink && e.push(A_({
13336
13339
  type: this.type,
13337
13340
  defaultProtocol: this.options.defaultProtocol,
13338
13341
  validate: (e) => this.options.isAllowedUri(e, {
13339
- defaultValidate: (e) => !!U_(e, t),
13342
+ defaultValidate: (e) => !!W_(e, t),
13340
13343
  protocols: t,
13341
13344
  defaultProtocol: n
13342
13345
  }),
13343
13346
  shouldAutoLink: this.options.shouldAutoLink
13344
- })), e.push(A_({
13347
+ })), e.push(j_({
13345
13348
  type: this.type,
13346
13349
  editor: this.editor,
13347
13350
  openOnClick: this.options.openOnClick === "whenNotEditable" || this.options.openOnClick,
13348
13351
  enableClickSelection: this.options.enableClickSelection
13349
- })), this.options.linkOnPaste && e.push(V_({
13352
+ })), this.options.linkOnPaste && e.push(H_({
13350
13353
  editor: this.editor,
13351
13354
  defaultProtocol: this.options.defaultProtocol,
13352
13355
  type: this.type,
13353
13356
  shouldAutoLink: this.options.shouldAutoLink
13354
13357
  })), e;
13355
13358
  }
13356
- }), G_ = W_, K_ = /* @__PURE__ */ e({
13357
- Subscript: () => q_,
13358
- default: () => J_
13359
- }), q_ = $p.create({
13359
+ }), K_ = G_, q_ = /* @__PURE__ */ e({
13360
+ Subscript: () => J_,
13361
+ default: () => Y_
13362
+ }), J_ = $p.create({
13360
13363
  name: "subscript",
13361
13364
  addOptions() {
13362
13365
  return { HTMLAttributes: {} };
@@ -13386,10 +13389,10 @@ var W_ = $p.create({
13386
13389
  addKeyboardShortcuts() {
13387
13390
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
13388
13391
  }
13389
- }), J_ = q_, Y_ = /* @__PURE__ */ e({
13390
- Superscript: () => X_,
13391
- default: () => Z_
13392
- }), X_ = $p.create({
13392
+ }), Y_ = J_, X_ = /* @__PURE__ */ e({
13393
+ Superscript: () => Z_,
13394
+ default: () => Q_
13395
+ }), Z_ = $p.create({
13393
13396
  name: "superscript",
13394
13397
  addOptions() {
13395
13398
  return { HTMLAttributes: {} };
@@ -13419,10 +13422,10 @@ var W_ = $p.create({
13419
13422
  addKeyboardShortcuts() {
13420
13423
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
13421
13424
  }
13422
- }), Z_ = X_, Q_ = /* @__PURE__ */ e({
13423
- TextAlign: () => $_,
13424
- default: () => ev
13425
- }), $_ = Y.create({
13425
+ }), Q_ = Z_, $_ = /* @__PURE__ */ e({
13426
+ TextAlign: () => ev,
13427
+ default: () => tv
13428
+ }), ev = Y.create({
13426
13429
  name: "textAlign",
13427
13430
  addOptions() {
13428
13431
  return {
@@ -13464,10 +13467,10 @@ var W_ = $p.create({
13464
13467
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
13465
13468
  };
13466
13469
  }
13467
- }), ev = $_, tv = /* @__PURE__ */ e({
13468
- Underline: () => nv,
13469
- default: () => rv
13470
- }), nv = $p.create({
13470
+ }), tv = ev, nv = /* @__PURE__ */ e({
13471
+ Underline: () => rv,
13472
+ default: () => iv
13473
+ }), rv = $p.create({
13471
13474
  name: "underline",
13472
13475
  addOptions() {
13473
13476
  return { HTMLAttributes: {} };
@@ -13533,46 +13536,46 @@ var W_ = $p.create({
13533
13536
  "Mod-U": () => this.editor.commands.toggleUnderline()
13534
13537
  };
13535
13538
  }
13536
- }), rv = nv, iv = /* @__PURE__ */ new WeakSet(), av = /* @__PURE__ */ new WeakSet();
13537
- function ov(e) {
13538
- let t = e;
13539
- return iv.add(t), t;
13540
- }
13539
+ }), iv = rv, av = /* @__PURE__ */ new WeakSet(), ov = /* @__PURE__ */ new WeakSet();
13541
13540
  function sv(e) {
13542
- return Array.isArray(e) && iv.has(e);
13541
+ let t = e;
13542
+ return av.add(t), t;
13543
13543
  }
13544
13544
  function cv(e) {
13545
- return e.flatMap((e) => e == null ? [] : Array.isArray(e) && av.has(e) && !sv(e) ? cv(e) : [e]);
13545
+ return Array.isArray(e) && av.has(e);
13546
13546
  }
13547
- function lv(e, t) {
13547
+ function lv(e) {
13548
+ return e.flatMap((e) => e == null ? [] : Array.isArray(e) && ov.has(e) && !cv(e) ? lv(e) : [e]);
13549
+ }
13550
+ function uv(e, t) {
13548
13551
  if (e === "slot") return 0;
13549
13552
  if (e instanceof Function) {
13550
13553
  let n = e(t);
13551
- return Array.isArray(n) && !sv(n) && !av.has(n) ? ov(n) : n;
13554
+ return Array.isArray(n) && !cv(n) && !ov.has(n) ? sv(n) : n;
13552
13555
  }
13553
13556
  let { children: n, ...r } = t ?? {};
13554
13557
  if (e === "svg") throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
13555
13558
  if (Array.isArray(n)) {
13556
- if (sv(n)) return ov([
13559
+ if (cv(n)) return sv([
13557
13560
  e,
13558
13561
  r,
13559
13562
  n
13560
13563
  ]);
13561
- if (n.length === 0) return ov([e, r]);
13562
- let t = cv(n);
13563
- return ov(t.length === 0 ? [e, r] : [
13564
+ if (n.length === 0) return sv([e, r]);
13565
+ let t = lv(n);
13566
+ return sv(t.length === 0 ? [e, r] : [
13564
13567
  e,
13565
13568
  r,
13566
13569
  ...t
13567
13570
  ]);
13568
13571
  }
13569
- return ov(n == null ? [e, r] : [
13572
+ return sv(n == null ? [e, r] : [
13570
13573
  e,
13571
13574
  r,
13572
13575
  n
13573
13576
  ]);
13574
13577
  }
13575
- var uv = (e, t) => lv(e, t), dv = (e, t) => {
13578
+ var dv = (e, t) => uv(e, t), fv = (e, t) => {
13576
13579
  let { state: n } = e, { selection: r } = n;
13577
13580
  if (!r.empty) return !1;
13578
13581
  let { $from: i } = r;
@@ -13590,7 +13593,7 @@ var uv = (e, t) => lv(e, t), dv = (e, t) => {
13590
13593
  let n = i.parent.content, r = new D(n, 0, 0);
13591
13594
  return e.replace(l, i.after(), r), e.setSelection(j.create(e.doc, l + n.size)), e.scrollIntoView(), t(e), !0;
13592
13595
  });
13593
- }, fv = /^\s*>\s$/, pv = qm.create({
13596
+ }, pv = /^\s*>\s$/, mv = Jm.create({
13594
13597
  name: "blockquote",
13595
13598
  addOptions() {
13596
13599
  return { HTMLAttributes: {} };
@@ -13602,9 +13605,9 @@ var uv = (e, t) => lv(e, t), dv = (e, t) => {
13602
13605
  return [{ tag: "blockquote" }];
13603
13606
  },
13604
13607
  renderHTML({ HTMLAttributes: e }) {
13605
- return /* @__PURE__ */ uv("blockquote", {
13608
+ return /* @__PURE__ */ dv("blockquote", {
13606
13609
  ...J(this.options.HTMLAttributes, e),
13607
- children: /* @__PURE__ */ uv("slot", {})
13610
+ children: /* @__PURE__ */ dv("slot", {})
13608
13611
  });
13609
13612
  },
13610
13613
  parseMarkdown: (e, t) => t.createNode("blockquote", void 0, (t.parseBlockChildren ?? t.parseChildren)(e.tokens || [])),
@@ -13626,16 +13629,16 @@ var uv = (e, t) => lv(e, t), dv = (e, t) => {
13626
13629
  addKeyboardShortcuts() {
13627
13630
  return {
13628
13631
  "Mod-Shift-b": () => this.editor.commands.toggleBlockquote(),
13629
- Backspace: () => dv(this.editor, this.type)
13632
+ Backspace: () => fv(this.editor, this.type)
13630
13633
  };
13631
13634
  },
13632
13635
  addInputRules() {
13633
- return [Fm({
13634
- find: fv,
13636
+ return [Im({
13637
+ find: pv,
13635
13638
  type: this.type
13636
13639
  })];
13637
13640
  }
13638
- }), mv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, hv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, gv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, _v = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, vv = $p.create({
13641
+ }), hv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, gv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, _v = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, vv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, yv = $p.create({
13639
13642
  name: "bold",
13640
13643
  addOptions() {
13641
13644
  return { HTMLAttributes: {} };
@@ -13658,9 +13661,9 @@ var uv = (e, t) => lv(e, t), dv = (e, t) => {
13658
13661
  ];
13659
13662
  },
13660
13663
  renderHTML({ HTMLAttributes: e }) {
13661
- return /* @__PURE__ */ uv("strong", {
13664
+ return /* @__PURE__ */ dv("strong", {
13662
13665
  ...J(this.options.HTMLAttributes, e),
13663
- children: /* @__PURE__ */ uv("slot", {})
13666
+ children: /* @__PURE__ */ dv("slot", {})
13664
13667
  });
13665
13668
  },
13666
13669
  markdownTokenName: "strong",
@@ -13684,31 +13687,31 @@ var uv = (e, t) => lv(e, t), dv = (e, t) => {
13684
13687
  };
13685
13688
  },
13686
13689
  addInputRules() {
13687
- return [jm({
13688
- find: mv,
13690
+ return [Mm({
13691
+ find: hv,
13689
13692
  type: this.type
13690
- }), jm({
13691
- find: gv,
13693
+ }), Mm({
13694
+ find: _v,
13692
13695
  type: this.type
13693
13696
  })];
13694
13697
  },
13695
13698
  addPasteRules() {
13696
- return [Ym({
13697
- find: hv,
13699
+ return [Xm({
13700
+ find: gv,
13698
13701
  type: this.type
13699
- }), Ym({
13700
- find: _v,
13702
+ }), Xm({
13703
+ find: vv,
13701
13704
  type: this.type
13702
13705
  })];
13703
13706
  }
13704
- }), yv = (e) => {
13707
+ }), bv = (e) => {
13705
13708
  let t = /`([^`]+)`(?!`)$/.exec(e);
13706
13709
  return !t || t.index > 0 && e[t.index - 1] === "`" ? null : {
13707
13710
  index: t.index,
13708
13711
  text: t[0],
13709
13712
  replaceWith: t[1]
13710
13713
  };
13711
- }, bv = (e) => {
13714
+ }, xv = (e) => {
13712
13715
  let t = /`([^`]+)`(?!`)/g, n = [], r;
13713
13716
  for (; (r = t.exec(e)) !== null;) r.index > 0 && e[r.index - 1] === "`" || n.push({
13714
13717
  index: r.index,
@@ -13717,12 +13720,12 @@ var uv = (e, t) => lv(e, t), dv = (e, t) => {
13717
13720
  });
13718
13721
  return n;
13719
13722
  };
13720
- function xv(e) {
13723
+ function Sv(e) {
13721
13724
  let t = new Set((e.match(/`+/g) || []).map((e) => e.length)), n = 1;
13722
13725
  for (; t.has(n);) n += 1;
13723
13726
  return n;
13724
13727
  }
13725
- var Sv = $p.create({
13728
+ var Cv = $p.create({
13726
13729
  name: "code",
13727
13730
  addOptions() {
13728
13731
  return { HTMLAttributes: {} };
@@ -13748,7 +13751,7 @@ var Sv = $p.create({
13748
13751
  renderMarkdown: (e, t, n) => {
13749
13752
  var r;
13750
13753
  if (!e.content) return "";
13751
- let i = typeof (n == null || (r = n.meta) == null ? void 0 : r.markText) == "string" ? n.meta.markText : "", a = "`".repeat(xv(i)), o = i.startsWith("`") || i.endsWith("`") ? " " : "";
13754
+ let i = typeof (n == null || (r = n.meta) == null ? void 0 : r.markText) == "string" ? n.meta.markText : "", a = "`".repeat(Sv(i)), o = i.startsWith("`") || i.endsWith("`") ? " " : "";
13752
13755
  return `${a}${o}${t.renderChildren(e.content)}${o}${a}`;
13753
13756
  },
13754
13757
  addCommands() {
@@ -13762,18 +13765,18 @@ var Sv = $p.create({
13762
13765
  return { "Mod-e": () => this.editor.commands.toggleCode() };
13763
13766
  },
13764
13767
  addInputRules() {
13765
- return [jm({
13766
- find: yv,
13768
+ return [Mm({
13769
+ find: bv,
13767
13770
  type: this.type
13768
13771
  })];
13769
13772
  },
13770
13773
  addPasteRules() {
13771
- return [Ym({
13772
- find: bv,
13774
+ return [Xm({
13775
+ find: xv,
13773
13776
  type: this.type
13774
13777
  })];
13775
13778
  }
13776
- }), Cv = 4, wv = /^```([a-z]+)?[\s\n]$/, Tv = /^~~~([a-z]+)?[\s\n]$/, Ev = qm.create({
13779
+ }), wv = 4, Tv = /^```([a-z]+)?[\s\n]$/, Ev = /^~~~([a-z]+)?[\s\n]$/, Dv = Jm.create({
13777
13780
  name: "codeBlock",
13778
13781
  addOptions() {
13779
13782
  return {
@@ -13783,7 +13786,7 @@ var Sv = $p.create({
13783
13786
  exitOnArrowUp: !0,
13784
13787
  defaultLanguage: null,
13785
13788
  enableTabIndentation: !1,
13786
- tabSize: Cv,
13789
+ tabSize: wv,
13787
13790
  HTMLAttributes: {}
13788
13791
  };
13789
13792
  },
@@ -13844,7 +13847,7 @@ var Sv = $p.create({
13844
13847
  },
13845
13848
  Tab: ({ editor: e }) => {
13846
13849
  if (!this.options.enableTabIndentation) return !1;
13847
- let t = this.options.tabSize ?? Cv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
13850
+ let t = this.options.tabSize ?? wv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
13848
13851
  if (i.parent.type !== this.type) return !1;
13849
13852
  let o = " ".repeat(t);
13850
13853
  return a ? e.commands.insertContent(o) : e.commands.command(({ tr: e }) => {
@@ -13854,7 +13857,7 @@ var Sv = $p.create({
13854
13857
  },
13855
13858
  "Shift-Tab": ({ editor: e }) => {
13856
13859
  if (!this.options.enableTabIndentation) return !1;
13857
- let t = this.options.tabSize ?? Cv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
13860
+ let t = this.options.tabSize ?? wv, { state: n } = e, { selection: r } = n, { $from: i, empty: a } = r;
13858
13861
  return i.parent.type === this.type && e.commands.command(a ? ({ tr: e }) => {
13859
13862
  let { pos: r } = i, a = i.start(), o = i.end(), s = n.doc.textBetween(a, o, "\n", "\n").split("\n"), c = 0, l = 0, u = r - a;
13860
13863
  for (let e = 0; e < s.length; e += 1) {
@@ -13901,12 +13904,12 @@ var Sv = $p.create({
13901
13904
  };
13902
13905
  },
13903
13906
  addInputRules() {
13904
- return [Nm({
13905
- find: wv,
13907
+ return [Pm({
13908
+ find: Tv,
13906
13909
  type: this.type,
13907
13910
  getAttributes: (e) => ({ language: e[1] })
13908
- }), Nm({
13909
- find: Tv,
13911
+ }), Pm({
13912
+ find: Ev,
13910
13913
  type: this.type,
13911
13914
  getAttributes: (e) => ({ language: e[1] })
13912
13915
  })];
@@ -13923,12 +13926,12 @@ var Sv = $p.create({
13923
13926
  } }
13924
13927
  })];
13925
13928
  }
13926
- }), Dv = qm.create({
13929
+ }), Ov = Jm.create({
13927
13930
  name: "doc",
13928
13931
  topNode: !0,
13929
13932
  content: "block+",
13930
13933
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n\n") : ""
13931
- }), Ov = qm.create({
13934
+ }), kv = Jm.create({
13932
13935
  name: "hardBreak",
13933
13936
  markdownTokenName: "br",
13934
13937
  addOptions() {
@@ -13972,7 +13975,7 @@ var Sv = $p.create({
13972
13975
  "Shift-Enter": () => this.editor.commands.setHardBreak()
13973
13976
  };
13974
13977
  }
13975
- }), kv = qm.create({
13978
+ }), Av = Jm.create({
13976
13979
  name: "heading",
13977
13980
  addOptions() {
13978
13981
  return {
@@ -14030,13 +14033,13 @@ var Sv = $p.create({
14030
14033
  }), {});
14031
14034
  },
14032
14035
  addInputRules() {
14033
- return this.options.levels.map((e) => Nm({
14036
+ return this.options.levels.map((e) => Pm({
14034
14037
  find: RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),
14035
14038
  type: this.type,
14036
14039
  getAttributes: { level: e }
14037
14040
  }));
14038
14041
  }
14039
- }), Av = qm.create({
14042
+ }), jv = Jm.create({
14040
14043
  name: "horizontalRule",
14041
14044
  addOptions() {
14042
14045
  return {
@@ -14073,12 +14076,12 @@ var Sv = $p.create({
14073
14076
  } };
14074
14077
  },
14075
14078
  addInputRules() {
14076
- return [Mm({
14079
+ return [Nm({
14077
14080
  find: /^(?:---|—-|___\s|\*\*\*\s)$/,
14078
14081
  type: this.type
14079
14082
  })];
14080
14083
  }
14081
- }), jv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Mv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Nv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Pv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Fv = $p.create({
14084
+ }), Mv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, Nv = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, Pv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, Fv = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, Iv = $p.create({
14082
14085
  name: "italic",
14083
14086
  addOptions() {
14084
14087
  return { HTMLAttributes: {} };
@@ -14125,24 +14128,24 @@ var Sv = $p.create({
14125
14128
  };
14126
14129
  },
14127
14130
  addInputRules() {
14128
- return [jm({
14129
- find: jv,
14131
+ return [Mm({
14132
+ find: Mv,
14130
14133
  type: this.type
14131
- }), jm({
14132
- find: Nv,
14134
+ }), Mm({
14135
+ find: Pv,
14133
14136
  type: this.type
14134
14137
  })];
14135
14138
  },
14136
14139
  addPasteRules() {
14137
- return [Ym({
14138
- find: Mv,
14140
+ return [Xm({
14141
+ find: Nv,
14139
14142
  type: this.type
14140
- }), Ym({
14141
- find: Pv,
14143
+ }), Xm({
14144
+ find: Fv,
14142
14145
  type: this.type
14143
14146
  })];
14144
14147
  }
14145
- }), Iv = "listItem", Lv = "textStyle", Rv = /^\s*([-+*])\s$/, zv = qm.create({
14148
+ }), Lv = "listItem", Rv = "textStyle", zv = /^\s*([-+*])\s$/, Bv = Jm.create({
14146
14149
  name: "bulletList",
14147
14150
  addOptions() {
14148
14151
  return {
@@ -14174,26 +14177,26 @@ var Sv = $p.create({
14174
14177
  renderMarkdown: (e, t) => e.content ? t.renderChildren(e.content, "\n") : "",
14175
14178
  markdownOptions: { indentsContent: !0 },
14176
14179
  addCommands() {
14177
- return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Iv, this.editor.getAttributes(Lv)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
14180
+ return { toggleBulletList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Lv, this.editor.getAttributes(Rv)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
14178
14181
  },
14179
14182
  addKeyboardShortcuts() {
14180
14183
  return { "Mod-Shift-8": () => this.editor.commands.toggleBulletList() };
14181
14184
  },
14182
14185
  addInputRules() {
14183
- let e = Fm({
14184
- find: Rv,
14186
+ let e = Im({
14187
+ find: zv,
14185
14188
  type: this.type
14186
14189
  });
14187
- return (this.options.keepMarks || this.options.keepAttributes) && (e = Fm({
14188
- find: Rv,
14190
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = Im({
14191
+ find: zv,
14189
14192
  type: this.type,
14190
14193
  keepMarks: this.options.keepMarks,
14191
14194
  keepAttributes: this.options.keepAttributes,
14192
- getAttributes: () => this.editor.getAttributes(Lv),
14195
+ getAttributes: () => this.editor.getAttributes(Rv),
14193
14196
  editor: this.editor
14194
14197
  })), [e];
14195
14198
  }
14196
- }), Bv = (e, t, n) => {
14199
+ }), Vv = (e, t, n) => {
14197
14200
  let { selection: r } = e;
14198
14201
  if (!r.empty) return null;
14199
14202
  let { $from: i } = r;
@@ -14224,24 +14227,24 @@ var Sv = $p.create({
14224
14227
  insertPos: i.after(a),
14225
14228
  items: f
14226
14229
  };
14227
- }, Vv = (e, t, n, r) => {
14228
- let i = Bv(e, n, r);
14230
+ }, Hv = (e, t, n, r) => {
14231
+ let i = Vv(e, n, r);
14229
14232
  if (!i) return !1;
14230
14233
  let { selection: a } = e, { nestedList: o, nestedListPos: s, insertPos: c, items: l } = i, u = e.tr;
14231
14234
  u.delete(s, s + o.nodeSize);
14232
14235
  let d = u.mapping.map(c);
14233
14236
  return u.insert(d, w.from(l)), u.setSelection(a.map(u.doc, u.mapping)), t && t(u), !0;
14234
- }, Hv = (e, t, n) => Vv(e.state, e.view.dispatch, t, n), Uv = (e, t) => Y.create({
14237
+ }, Uv = (e, t, n) => Hv(e.state, e.view.dispatch, t, n), Wv = (e, t) => Y.create({
14235
14238
  name: `${e}BranchingDeleteKeymap`,
14236
14239
  priority: 101,
14237
14240
  addKeyboardShortcuts() {
14238
- let n = () => Hv(this.editor, e, t);
14241
+ let n = () => Uv(this.editor, e, t);
14239
14242
  return {
14240
14243
  Delete: n,
14241
14244
  "Mod-Delete": n
14242
14245
  };
14243
14246
  }
14244
- }), Wv = [
14247
+ }), Gv = [
14245
14248
  [1e3, "m"],
14246
14249
  [900, "cm"],
14247
14250
  [500, "d"],
@@ -14255,20 +14258,20 @@ var Sv = $p.create({
14255
14258
  [5, "v"],
14256
14259
  [4, "iv"],
14257
14260
  [1, "i"]
14258
- ], Gv = "abcdefghijklmnopqrstuvwxyz", Kv = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
14259
- function qv(e) {
14261
+ ], Kv = "abcdefghijklmnopqrstuvwxyz", qv = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
14262
+ function Jv(e) {
14260
14263
  let t = e, n = "";
14261
- for (let [e, r] of Wv) for (; t >= e;) n += r, t -= e;
14264
+ for (let [e, r] of Gv) for (; t >= e;) n += r, t -= e;
14262
14265
  return n;
14263
14266
  }
14264
- function Jv(e) {
14265
- return qv(e).toUpperCase();
14266
- }
14267
14267
  function Yv(e) {
14268
+ return Jv(e).toUpperCase();
14269
+ }
14270
+ function Xv(e) {
14268
14271
  let t = e.toLowerCase(), n = 0, r = 0;
14269
14272
  for (; n < t.length;) {
14270
14273
  let e = !1;
14271
- for (let [i, a] of Wv) if (t.startsWith(a, n)) {
14274
+ for (let [i, a] of Gv) if (t.startsWith(a, n)) {
14272
14275
  r += i, n += a.length, e = !0;
14273
14276
  break;
14274
14277
  }
@@ -14276,12 +14279,12 @@ function Yv(e) {
14276
14279
  }
14277
14280
  return r;
14278
14281
  }
14279
- function Xv(e) {
14282
+ function Zv(e) {
14280
14283
  if (!/^[ivxlcdmIVXLCDM]+$/.test(e)) return !1;
14281
- let t = Yv(e);
14282
- return t <= 0 ? !1 : (e === e.toLowerCase() ? qv(t) : Jv(t)) === e;
14284
+ let t = Xv(e);
14285
+ return t <= 0 ? !1 : (e === e.toLowerCase() ? Jv(t) : Yv(t)) === e;
14283
14286
  }
14284
- function Zv(e) {
14287
+ function Qv(e) {
14285
14288
  let t = e.toLowerCase();
14286
14289
  if (t.length === 1) return t.charCodeAt(0) - 97 + 1;
14287
14290
  if (t.length === 2) {
@@ -14290,93 +14293,93 @@ function Zv(e) {
14290
14293
  }
14291
14294
  return 0;
14292
14295
  }
14293
- function Qv(e) {
14294
- if (e <= 26) return Gv[e - 1];
14296
+ function $v(e) {
14297
+ if (e <= 26) return Kv[e - 1];
14295
14298
  let t = Math.floor((e - 1) / 26) - 1, n = (e - 1) % 26;
14296
- return t < 0 ? Gv[n] : Gv[t] + Gv[n];
14299
+ return t < 0 ? Kv[n] : Kv[t] + Kv[n];
14297
14300
  }
14298
- function $v(e) {
14301
+ function ey(e) {
14299
14302
  if (e && !/^\d+$/.test(e)) {
14300
- if (Xv(e)) return e === e.toLowerCase() ? "i" : "I";
14303
+ if (Zv(e)) return e === e.toLowerCase() ? "i" : "I";
14301
14304
  if (/^[a-z]{1,2}$/.test(e)) return "a";
14302
14305
  if (/^[A-Z]{1,2}$/.test(e)) return "A";
14303
14306
  }
14304
14307
  }
14305
- function ey(e) {
14308
+ function ty(e) {
14306
14309
  if (/^\d+$/.test(e)) return parseInt(e, 10);
14307
- let t = $v(e);
14308
- if (t === "i" || t === "I") return Yv(e);
14310
+ let t = ey(e);
14311
+ if (t === "i" || t === "I") return Xv(e);
14309
14312
  if (t === "a" || t === "A") {
14310
- let t = Zv(e);
14313
+ let t = Qv(e);
14311
14314
  return t > 0 ? t : 1;
14312
14315
  }
14313
14316
  let n = parseInt(e, 10);
14314
14317
  return Number.isNaN(n) ? 1 : n;
14315
14318
  }
14316
- function ty(e, t) {
14319
+ function ny(e, t) {
14317
14320
  if (e === "numeric") return String(t);
14318
14321
  switch (e) {
14319
- case "a": return Qv(t);
14320
- case "A": return Qv(t).toUpperCase();
14321
- case "i": return qv(t);
14322
- case "I": return Jv(t);
14322
+ case "a": return $v(t);
14323
+ case "A": return $v(t).toUpperCase();
14324
+ case "i": return Jv(t);
14325
+ case "I": return Yv(t);
14323
14326
  default: return String(t);
14324
14327
  }
14325
14328
  }
14326
- function ny(e) {
14329
+ function ry(e) {
14327
14330
  if (e.length === 0) return !1;
14328
- let t = $v(e[0]) ?? "numeric", n = ey(e[0]);
14331
+ let t = ey(e[0]) ?? "numeric", n = ty(e[0]);
14329
14332
  if (n < 1) return !1;
14330
14333
  for (let r = 0; r < e.length; r++) {
14331
- let i = ty(t, n + r);
14334
+ let i = ny(t, n + r);
14332
14335
  if (e[r] !== i) return !1;
14333
14336
  }
14334
14337
  return !0;
14335
14338
  }
14336
- function ry(e) {
14339
+ function iy(e) {
14337
14340
  return {
14338
- type: $v(e),
14339
- start: ey(e)
14341
+ type: ey(e),
14342
+ start: ty(e)
14340
14343
  };
14341
14344
  }
14342
- function iy(e) {
14343
- let { type: t, start: n } = ry(e), r = {};
14345
+ function ay(e) {
14346
+ let { type: t, start: n } = iy(e), r = {};
14344
14347
  return t && (r.type = t), n !== 1 && (r.start = n), r;
14345
14348
  }
14346
- function ay(e, t, n = ". ") {
14349
+ function oy(e, t, n = ". ") {
14347
14350
  let r = t + 1;
14348
14351
  if (!e || e === "1") return `${r}${n}`;
14349
14352
  switch (e) {
14350
- case "a": return `${Qv(r)}${n}`;
14351
- case "A": return `${Qv(r).toUpperCase()}${n}`;
14352
- case "i": return `${qv(r)}${n}`;
14353
- case "I": return `${Jv(r)}${n}`;
14353
+ case "a": return `${$v(r)}${n}`;
14354
+ case "A": return `${$v(r).toUpperCase()}${n}`;
14355
+ case "i": return `${Jv(r)}${n}`;
14356
+ case "I": return `${Yv(r)}${n}`;
14354
14357
  default: return `${r}${n}`;
14355
14358
  }
14356
14359
  }
14357
- function oy(e) {
14360
+ function sy(e) {
14358
14361
  return !e[0] || e[0].type === "paragraph" ? e : [{
14359
14362
  type: "paragraph",
14360
14363
  content: []
14361
14364
  }, ...e];
14362
14365
  }
14363
- function sy(e) {
14366
+ function cy(e) {
14364
14367
  let t = e.content?.[0];
14365
14368
  return t?.type === "paragraph" && !t.content?.length;
14366
14369
  }
14367
- var cy = "&nbsp;", ly = 1, uy = (e) => (e?.level ?? ly) > ly;
14368
- function dy(e) {
14370
+ var ly = "&nbsp;", uy = 1, dy = (e) => (e?.level ?? uy) > uy;
14371
+ function fy(e) {
14369
14372
  let t = e.tokens?.[0];
14370
14373
  return !!(e.text && e.tokens?.length === 1 && t?.type === "list" && t.ordered && t.raw === e.text);
14371
14374
  }
14372
- function fy(e, t) {
14375
+ function py(e, t) {
14373
14376
  return t.parseInline(t.tokenizeInline ? t.tokenizeInline(e) : [{
14374
14377
  type: "text",
14375
14378
  raw: e,
14376
14379
  text: e
14377
14380
  }]);
14378
14381
  }
14379
- var py = qm.create({
14382
+ var my = Jm.create({
14380
14383
  name: "listItem",
14381
14384
  addOptions() {
14382
14385
  return {
@@ -14402,11 +14405,11 @@ var py = qm.create({
14402
14405
  if (e.type !== "list_item") return [];
14403
14406
  let n = t.parseBlockChildren ?? t.parseChildren, r = [];
14404
14407
  if (e.tokens && e.tokens.length > 0) {
14405
- if (dy(e)) return {
14408
+ if (fy(e)) return {
14406
14409
  type: "listItem",
14407
14410
  content: [{
14408
14411
  type: "paragraph",
14409
- content: fy(e.text || "", t)
14412
+ content: py(e.text || "", t)
14410
14413
  }]
14411
14414
  };
14412
14415
  let [i, ...a] = e.tokens;
@@ -14433,7 +14436,7 @@ var py = qm.create({
14433
14436
  content: []
14434
14437
  }]), {
14435
14438
  type: "listItem",
14436
- content: oy(r)
14439
+ content: sy(r)
14437
14440
  };
14438
14441
  },
14439
14442
  renderMarkdown: (e, t, n) => {
@@ -14442,16 +14445,16 @@ var py = qm.create({
14442
14445
  if (e.parentType === "orderedList") {
14443
14446
  var t, n;
14444
14447
  let r = ((t = e.meta) == null || (t = t.parentAttrs) == null ? void 0 : t.start) || 1;
14445
- return ay((n = e.meta) == null || (n = n.parentAttrs) == null ? void 0 : n.type, r - 1 + (e.index || 0), ". ");
14448
+ return oy((n = e.meta) == null || (n = n.parentAttrs) == null ? void 0 : n.type, r - 1 + (e.index || 0), ". ");
14446
14449
  }
14447
14450
  return "- ";
14448
14451
  }, i = Rp(e, t, r, n, { alignNestedToPrefix: n?.parentType === "orderedList" });
14449
- if (!sy(e) || !uy(n)) return i;
14452
+ if (!cy(e) || !dy(n)) return i;
14450
14453
  let a = r(n);
14451
- return `${a}${cy}${i.slice(a.length)}`;
14454
+ return `${a}${ly}${i.slice(a.length)}`;
14452
14455
  },
14453
14456
  addExtensions() {
14454
- return [Uv(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
14457
+ return [Wv(this.name, [this.options.bulletListTypeName, this.options.orderedListTypeName])];
14455
14458
  },
14456
14459
  addKeyboardShortcuts() {
14457
14460
  return {
@@ -14460,25 +14463,25 @@ var py = qm.create({
14460
14463
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
14461
14464
  };
14462
14465
  }
14463
- }), my = (e, t) => {
14466
+ }), hy = (e, t) => {
14464
14467
  let { $from: n } = t.selection, r = G(e, t.schema), i = null, a = n.depth, o = n.pos, s = null;
14465
14468
  for (; a > 0 && s === null;) i = n.node(a), i.type === r ? s = a : (--a, --o);
14466
14469
  return s === null ? null : {
14467
14470
  $pos: t.doc.resolve(o),
14468
14471
  depth: s
14469
14472
  };
14470
- }, hy = (e, t) => {
14471
- let n = my(e, t);
14473
+ }, gy = (e, t) => {
14474
+ let n = hy(e, t);
14472
14475
  if (!n) return !1;
14473
14476
  let [, r] = sd(t, e, n.$pos.pos + 4);
14474
14477
  return r;
14475
- }, gy = (e, t, n) => {
14478
+ }, _y = (e, t, n) => {
14476
14479
  let { $anchor: r } = e.selection, i = Math.max(0, r.pos - 2), a = e.doc.resolve(i).node();
14477
14480
  return !(!a || !n.includes(a.type.name));
14478
- }, _y = (e, t, n) => {
14481
+ }, vy = (e, t, n) => {
14479
14482
  if (e.commands.undoInputRule()) return !0;
14480
14483
  if (e.state.selection.from !== e.state.selection.to) return !1;
14481
- if (!$l(e.state, t) && gy(e.state, t, n)) {
14484
+ if (!$l(e.state, t) && _y(e.state, t, n)) {
14482
14485
  let { $anchor: n } = e.state.selection, r = e.state.doc.resolve(n.before() - 1), i = [];
14483
14486
  r.node().descendants((e, n) => {
14484
14487
  e.type.name === t && i.push({
@@ -14497,13 +14500,13 @@ var py = qm.create({
14497
14500
  if (!$l(e.state, t) || !hd(e.state)) return !1;
14498
14501
  let { $from: r } = e.state.selection, i = r.depth - 1;
14499
14502
  return r.node(i).type !== e.schema.nodes[t] || r.index(i) !== 0 ? !1 : e.chain().liftListItem(t).run();
14500
- }, vy = (e, t) => {
14501
- let n = hy(e, t), r = my(e, t);
14502
- return !r || !n ? !1 : n > r.depth;
14503
14503
  }, yy = (e, t) => {
14504
- let n = hy(e, t), r = my(e, t);
14504
+ let n = gy(e, t), r = hy(e, t);
14505
+ return !r || !n ? !1 : n > r.depth;
14506
+ }, by = (e, t) => {
14507
+ let n = gy(e, t), r = hy(e, t);
14505
14508
  return !r || !n ? !1 : n < r.depth;
14506
- }, by = (e, t) => !$l(e.state, t) || !md(e.state, t) || !e.state.selection.empty ? !1 : vy(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : yy(t, e.state) ? e.commands.command(({ state: e, dispatch: t }) => ar(e, t)) : e.commands.joinItemForward(), xy = (e, t, n) => {
14509
+ }, xy = (e, t) => !$l(e.state, t) || !md(e.state, t) || !e.state.selection.empty ? !1 : yy(t, e.state) ? e.chain().focus(e.state.selection.from + 4).lift(t).joinBackward().run() : by(t, e.state) ? e.commands.command(({ state: e, dispatch: t }) => ar(e, t)) : e.commands.joinItemForward(), Sy = (e, t, n) => {
14507
14510
  let { state: r } = e, { selection: i } = r;
14508
14511
  if (!i.empty) return !1;
14509
14512
  let { $from: a } = i;
@@ -14516,7 +14519,7 @@ var py = qm.create({
14516
14519
  if (!s.canReplace(s.childCount, s.childCount, w.from(c))) return !1;
14517
14520
  let l = a.before(), u = a.after(), d = l - 2;
14518
14521
  return e.commands.command(({ tr: e, dispatch: t }) => (t && (e.delete(l, u).insert(d, w.from(c)), e.setSelection(j.create(e.doc, d + 1)), e.scrollIntoView()), !0));
14519
- }, Sy = Y.create({
14522
+ }, Cy = Y.create({
14520
14523
  name: "listKeymap",
14521
14524
  addOptions() {
14522
14525
  return { listTypes: [{
@@ -14532,74 +14535,74 @@ var py = qm.create({
14532
14535
  Delete: ({ editor: e }) => {
14533
14536
  let t = !1;
14534
14537
  return this.options.listTypes.forEach(({ itemName: n }) => {
14535
- e.state.schema.nodes[n] !== void 0 && by(e, n) && (t = !0);
14538
+ e.state.schema.nodes[n] !== void 0 && xy(e, n) && (t = !0);
14536
14539
  }), t;
14537
14540
  },
14538
14541
  "Mod-Delete": ({ editor: e }) => {
14539
14542
  let t = !1;
14540
14543
  return this.options.listTypes.forEach(({ itemName: n }) => {
14541
- e.state.schema.nodes[n] !== void 0 && by(e, n) && (t = !0);
14544
+ e.state.schema.nodes[n] !== void 0 && xy(e, n) && (t = !0);
14542
14545
  }), t;
14543
14546
  },
14544
14547
  Backspace: ({ editor: e }) => {
14545
14548
  let t = !1;
14546
14549
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
14547
- e.state.schema.nodes[n] !== void 0 && _y(e, n, r) && (t = !0);
14550
+ e.state.schema.nodes[n] !== void 0 && vy(e, n, r) && (t = !0);
14548
14551
  }), t;
14549
14552
  },
14550
14553
  "Mod-Backspace": ({ editor: e }) => {
14551
14554
  let t = !1;
14552
14555
  return this.options.listTypes.forEach(({ itemName: n, wrapperNames: r }) => {
14553
- e.state.schema.nodes[n] !== void 0 && _y(e, n, r) && (t = !0);
14556
+ e.state.schema.nodes[n] !== void 0 && vy(e, n, r) && (t = !0);
14554
14557
  }), t;
14555
14558
  },
14556
14559
  Tab: ({ editor: e }) => {
14557
- for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 && xy(e, t, n)) return !0;
14560
+ for (let { itemName: t, wrapperNames: n } of this.options.listTypes) if (e.state.schema.nodes[t] !== void 0 && Sy(e, t, n)) return !0;
14558
14561
  return !1;
14559
14562
  }
14560
14563
  };
14561
14564
  }
14562
- }), Cy = RegExp(`^(\\s*)(${Kv})([.)])\\s+(.*)$`), wy = /^\s/, Ty = {
14565
+ }), wy = RegExp(`^(\\s*)(${qv})([.)])\\s+(.*)$`), Ty = /^\s/, Ey = {
14563
14566
  heading: /^#{1,6}(?:\s|$)/,
14564
14567
  bulletItem: /^[-+*]\s+/,
14565
14568
  codeFence: /^(?:```|~~~)/,
14566
14569
  blockMath: /^\$\$/,
14567
14570
  thematicBreak: /^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/
14568
14571
  };
14569
- function Ey(e) {
14570
- return Cy.test(e.trimStart());
14571
- }
14572
14572
  function Dy(e) {
14573
- let t = e.trimStart();
14574
- return Ty.bulletItem.test(t) || Ey(t) || Ty.heading.test(t) || Ty.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || Ty.codeFence.test(t) || Ty.blockMath.test(t);
14573
+ return wy.test(e.trimStart());
14575
14574
  }
14576
14575
  function Oy(e) {
14577
- return Object.values(Ty).some((t) => t.test(e));
14576
+ let t = e.trimStart();
14577
+ return Ey.bulletItem.test(t) || Dy(t) || Ey.heading.test(t) || Ey.thematicBreak.test(t) && !t.startsWith("-") || /^>\s?/.test(t) || Ey.codeFence.test(t) || Ey.blockMath.test(t);
14578
14578
  }
14579
14579
  function ky(e) {
14580
+ return Object.values(Ey).some((t) => t.test(e));
14581
+ }
14582
+ function Ay(e) {
14580
14583
  let t = [], n = [], r = !1;
14581
14584
  return e.forEach((e) => {
14582
- r ? n.push(e) : e.trim() === "" || t.length > 0 && Dy(e) ? (r = !0, n.push(e)) : t.push(e);
14585
+ r ? n.push(e) : e.trim() === "" || t.length > 0 && Oy(e) ? (r = !0, n.push(e)) : t.push(e);
14583
14586
  }), {
14584
14587
  paragraphLines: t,
14585
14588
  blockLines: n
14586
14589
  };
14587
14590
  }
14588
- function Ay(e) {
14591
+ function jy(e) {
14589
14592
  let t = [], n = 0, r = 0;
14590
14593
  for (; n < e.length;) {
14591
- let i = e[n], a = i.match(Cy);
14594
+ let i = e[n], a = i.match(wy);
14592
14595
  if (!a) break;
14593
- let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? $v(s) : void 0, p = isNaN(d) ? ey(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
14596
+ let [, o, s, c, l] = a, u = o.length, d = parseInt(s, 10), f = isNaN(d) ? ey(s) : void 0, p = isNaN(d) ? ty(s) : d, m = [l], h = n + 1, g = [i], _ = !1;
14594
14597
  for (; h < e.length;) {
14595
14598
  let t = e[h];
14596
- if (t.match(Cy)) break;
14599
+ if (t.match(wy)) break;
14597
14600
  if (t.trim() === "") g.push(t), m.push(""), _ = !0, h += 1;
14598
- else if (t.match(wy)) {
14601
+ else if (t.match(Ty)) {
14599
14602
  let e = t.length - t.trimStart().length, n = u + s.length + 1;
14600
14603
  g.push(t), m.push(t.slice(Math.min(e, n))), h += 1;
14601
14604
  } else {
14602
- if (_ || Oy(t)) break;
14605
+ if (_ || ky(t)) break;
14603
14606
  g.push(t), m.push(t), h += 1;
14604
14607
  }
14605
14608
  }
@@ -14614,22 +14617,22 @@ function Ay(e) {
14614
14617
  }
14615
14618
  return [t, r];
14616
14619
  }
14617
- var jy = RegExp(`^(${Kv})([.)])\\s+(.+)$`);
14618
- function My(e) {
14620
+ var My = RegExp(`^(${qv})([.)])\\s+(.+)$`);
14621
+ function Ny(e) {
14619
14622
  let t = e.split("\n").filter((e) => e.trim().length > 0);
14620
14623
  if (t.length === 0) return null;
14621
14624
  let n = [];
14622
14625
  for (let e of t) {
14623
- let t = e.trim().match(jy);
14626
+ let t = e.trim().match(My);
14624
14627
  if (!t) return null;
14625
14628
  n.push({
14626
14629
  marker: t[1],
14627
14630
  content: t[3]
14628
14631
  });
14629
14632
  }
14630
- return ny(n.map((e) => e.marker)) ? {
14633
+ return ry(n.map((e) => e.marker)) ? {
14631
14634
  type: "orderedList",
14632
- attrs: iy(n[0].marker),
14635
+ attrs: ay(n[0].marker),
14633
14636
  content: n.map((e) => ({
14634
14637
  type: "listItem",
14635
14638
  content: [{
@@ -14642,12 +14645,12 @@ function My(e) {
14642
14645
  }))
14643
14646
  } : null;
14644
14647
  }
14645
- function Ny(e, t, n) {
14648
+ function Py(e, t, n) {
14646
14649
  let r = [], i = 0;
14647
14650
  for (; i < e.length;) {
14648
14651
  let a = e[i];
14649
14652
  if (a.indent === t) {
14650
- let { paragraphLines: o, blockLines: s } = ky(a.contentLines), c = o.join("\n").trim(), l = [];
14653
+ let { paragraphLines: o, blockLines: s } = Ay(a.contentLines), c = o.join("\n").trim(), l = [];
14651
14654
  c && l.push({
14652
14655
  type: "paragraph",
14653
14656
  raw: c,
@@ -14661,7 +14664,7 @@ function Ny(e, t, n) {
14661
14664
  let d = i + 1, f = [];
14662
14665
  for (; d < e.length && e[d].indent > t;) f.push(e[d]), d += 1;
14663
14666
  if (f.length > 0) {
14664
- let e = Ny(f, Math.min(...f.map((e) => e.indent)), n);
14667
+ let e = Py(f, Math.min(...f.map((e) => e.indent)), n);
14665
14668
  l.push({
14666
14669
  type: "list",
14667
14670
  ordered: !0,
@@ -14680,7 +14683,7 @@ function Ny(e, t, n) {
14680
14683
  }
14681
14684
  return r;
14682
14685
  }
14683
- function Py(e, t) {
14686
+ function Fy(e, t) {
14684
14687
  return e.map((e) => {
14685
14688
  if (e.type !== "list_item") return t.parseChildren([e])[0];
14686
14689
  let n = [];
@@ -14702,8 +14705,8 @@ function Py(e, t) {
14702
14705
  };
14703
14706
  });
14704
14707
  }
14705
- var Fy = 64;
14706
- function Iy(e, t) {
14708
+ var Iy = 64;
14709
+ function Ly(e, t) {
14707
14710
  let n = [], r = 0;
14708
14711
  for (; n.length < t;) {
14709
14712
  let t = e.indexOf("\n", r);
@@ -14712,23 +14715,23 @@ function Iy(e, t) {
14712
14715
  }
14713
14716
  return n;
14714
14717
  }
14715
- function Ly(e) {
14718
+ function Ry(e) {
14716
14719
  let t = e.indexOf("\n"), n = t === -1 ? e : e.slice(0, t);
14717
- if (!Cy.test(n)) return [
14720
+ if (!wy.test(n)) return [
14718
14721
  [],
14719
14722
  0,
14720
14723
  []
14721
14724
  ];
14722
- let r = Fy, i = Iy(e, r), a = Ay(i);
14723
- for (; a[1] === i.length && i.length === r;) r *= 2, i = Iy(e, r), a = Ay(i);
14725
+ let r = Iy, i = Ly(e, r), a = jy(i);
14726
+ for (; a[1] === i.length && i.length === r;) r *= 2, i = Ly(e, r), a = jy(i);
14724
14727
  return [
14725
14728
  a[0],
14726
14729
  a[1],
14727
14730
  i
14728
14731
  ];
14729
14732
  }
14730
- var Ry = "listItem", zy = "textStyle", By = /^(\d+)\.\s$/;
14731
- function Vy(e) {
14733
+ var zy = "listItem", By = "textStyle", Vy = /^(\d+)\.\s$/;
14734
+ function Hy(e) {
14732
14735
  let t = e.match(/list-style-type\s*:\s*([^;]+)/i);
14733
14736
  if (!t) return null;
14734
14737
  switch (t[1].trim().toLowerCase()) {
@@ -14741,7 +14744,7 @@ function Vy(e) {
14741
14744
  default: return null;
14742
14745
  }
14743
14746
  }
14744
- var Hy = qm.create({
14747
+ var Uy = Jm.create({
14745
14748
  name: "orderedList",
14746
14749
  addOptions() {
14747
14750
  return {
@@ -14768,14 +14771,14 @@ var Hy = qm.create({
14768
14771
  if (t) return t;
14769
14772
  let n = e.getAttribute("style");
14770
14773
  if (n) {
14771
- let e = Vy(n);
14774
+ let e = Hy(n);
14772
14775
  if (e) return e;
14773
14776
  }
14774
14777
  let r = e.querySelector("li");
14775
14778
  if (r) {
14776
14779
  let e = r.getAttribute("style");
14777
14780
  if (e) {
14778
- let t = Vy(e);
14781
+ let t = Hy(e);
14779
14782
  if (t) return t;
14780
14783
  }
14781
14784
  }
@@ -14798,7 +14801,7 @@ var Hy = qm.create({
14798
14801
  markdownTokenName: "list",
14799
14802
  parseMarkdown: (e, t) => {
14800
14803
  if (e.type !== "list" || !e.ordered) return [];
14801
- let n = e.start || 1, r = e.typeMarker, i = e.items ? Py(e.items, t) : [], a = {};
14804
+ let n = e.start || 1, r = e.typeMarker, i = e.items ? Fy(e.items, t) : [], a = {};
14802
14805
  return n !== 1 && (a.start = n), r && (a.type = r), Object.keys(a).length > 0 ? {
14803
14806
  type: "orderedList",
14804
14807
  attrs: a,
@@ -14814,9 +14817,9 @@ var Hy = qm.create({
14814
14817
  level: "block",
14815
14818
  start: () => -1,
14816
14819
  tokenize: (e, t, n) => {
14817
- let [r, i, a] = Ly(e);
14820
+ let [r, i, a] = Ry(e);
14818
14821
  if (r.length === 0) return;
14819
- let o = Ny(r, r[0].indent, n);
14822
+ let o = Py(r, r[0].indent, n);
14820
14823
  if (o.length !== 0) return {
14821
14824
  type: "list",
14822
14825
  ordered: !0,
@@ -14829,7 +14832,7 @@ var Hy = qm.create({
14829
14832
  },
14830
14833
  markdownOptions: { indentsContent: !0 },
14831
14834
  addCommands() {
14832
- return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Ry, this.editor.getAttributes(zy)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
14835
+ return { toggleOrderedList: () => ({ commands: e, chain: t }) => this.options.keepAttributes ? t().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(zy, this.editor.getAttributes(By)).run() : e.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) };
14833
14836
  },
14834
14837
  addKeyboardShortcuts() {
14835
14838
  return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
@@ -14839,7 +14842,7 @@ var Hy = qm.create({
14839
14842
  if ((t.clipboardData?.getData("text/html"))?.trim()) return !1;
14840
14843
  let n = t.clipboardData?.getData("text/plain");
14841
14844
  if (!n) return !1;
14842
- let r = My(n);
14845
+ let r = Ny(n);
14843
14846
  if (!r) return !1;
14844
14847
  try {
14845
14848
  let t = e.state.schema.nodeFromJSON(r), n = e.state.tr.replaceSelectionWith(t);
@@ -14850,29 +14853,29 @@ var Hy = qm.create({
14850
14853
  } } })];
14851
14854
  },
14852
14855
  addInputRules() {
14853
- let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = Fm({
14854
- find: By,
14856
+ let e = (e, t) => (!t.attrs.type || t.attrs.type === "1") && t.childCount + t.attrs.start === +e[1], t = Im({
14857
+ find: Vy,
14855
14858
  type: this.type,
14856
14859
  getAttributes: (e) => ({ start: +e[1] }),
14857
14860
  joinPredicate: e
14858
14861
  });
14859
- return (this.options.keepMarks || this.options.keepAttributes) && (t = Fm({
14860
- find: By,
14862
+ return (this.options.keepMarks || this.options.keepAttributes) && (t = Im({
14863
+ find: Vy,
14861
14864
  type: this.type,
14862
14865
  keepMarks: this.options.keepMarks,
14863
14866
  keepAttributes: this.options.keepAttributes,
14864
14867
  getAttributes: (e) => ({
14865
14868
  start: +e[1],
14866
- ...this.editor.getAttributes(zy)
14869
+ ...this.editor.getAttributes(By)
14867
14870
  }),
14868
14871
  joinPredicate: e,
14869
14872
  editor: this.editor
14870
14873
  })), [t];
14871
14874
  }
14872
- }), Uy = /^\s*(\[([( |x])?\])\s$/, Wy = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", Gy = (e, t, n) => {
14875
+ }), Wy = /^\s*(\[([( |x])?\])\s$/, Gy = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0", Ky = (e, t, n) => {
14873
14876
  var r;
14874
14877
  return (n == null || (r = n.checkboxLabel) == null ? void 0 : r.call(n, e, t)) || `Task item checkbox for ${e.textContent || "empty task item"}`;
14875
- }, Ky = qm.create({
14878
+ }, qy = Jm.create({
14876
14879
  name: "taskItem",
14877
14880
  addOptions() {
14878
14881
  return {
@@ -14929,7 +14932,7 @@ var Hy = qm.create({
14929
14932
  },
14930
14933
  renderMarkdown: (e, t) => Rp(e, t, `- [${e.attrs?.checked ? "x" : " "}] `, void 0, { indentMainContent: !0 }),
14931
14934
  addExtensions() {
14932
- return this.options.nested ? [Uv(this.name, [this.options.taskListTypeName])] : [];
14935
+ return this.options.nested ? [Wv(this.name, [this.options.taskListTypeName])] : [];
14933
14936
  },
14934
14937
  addKeyboardShortcuts() {
14935
14938
  let e = {
@@ -14944,9 +14947,9 @@ var Hy = qm.create({
14944
14947
  addNodeView() {
14945
14948
  return ({ node: e, HTMLAttributes: t, getPos: n, editor: r }) => {
14946
14949
  let i = document.createElement("li"), a = document.createElement("label"), o = document.createElement("span"), s = document.createElement("input"), c = document.createElement("div");
14947
- o.style.cssText = Wy;
14950
+ o.style.cssText = Gy;
14948
14951
  let l = (e) => {
14949
- let t = Gy(e, e.attrs.checked, this.options.a11y);
14952
+ let t = Ky(e, e.attrs.checked, this.options.a11y);
14950
14953
  s.setAttribute("aria-label", t), o.textContent = t;
14951
14954
  };
14952
14955
  l(e), a.contentEditable = "false", s.type = "checkbox", s.addEventListener("mousedown", (e) => e.preventDefault()), s.addEventListener("change", (t) => {
@@ -14987,13 +14990,13 @@ var Hy = qm.create({
14987
14990
  };
14988
14991
  },
14989
14992
  addInputRules() {
14990
- return [Fm({
14991
- find: Uy,
14993
+ return [Im({
14994
+ find: Wy,
14992
14995
  type: this.type,
14993
14996
  getAttributes: (e) => ({ checked: e[e.length - 1] === "x" })
14994
14997
  })];
14995
14998
  }
14996
- }), qy = qm.create({
14999
+ }), Jy = Jm.create({
14997
15000
  name: "taskList",
14998
15001
  addOptions() {
14999
15002
  return {
@@ -15095,11 +15098,11 @@ Y.create({
15095
15098
  name: "listKit",
15096
15099
  addExtensions() {
15097
15100
  let e = [];
15098
- return this.options.bulletList !== !1 && e.push(zv.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(py.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Sy.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Hy.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(Ky.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(qy.configure(this.options.taskList)), e;
15101
+ return this.options.bulletList !== !1 && e.push(Bv.configure(this.options.bulletList)), this.options.listItem !== !1 && e.push(my.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Cy.configure(this.options.listKeymap)), this.options.orderedList !== !1 && e.push(Uy.configure(this.options.orderedList)), this.options.taskItem !== !1 && e.push(qy.configure(this.options.taskItem)), this.options.taskList !== !1 && e.push(Jy.configure(this.options.taskList)), e;
15099
15102
  }
15100
15103
  });
15101
- // ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.33.0_@tiptap+core@3.33.0_@tiptap+pm@3.33.0_/node_modules/@tiptap/extension-paragraph/dist/index.js
15102
- var Jy = "&nbsp;", Yy = "\xA0", Xy = qm.create({
15104
+ // ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.33.1_@tiptap+core@3.33.1_@tiptap+pm@3.33.1_/node_modules/@tiptap/extension-paragraph/dist/index.js
15105
+ var Yy = "&nbsp;", Xy = "\xA0", Zy = Jm.create({
15103
15106
  name: "paragraph",
15104
15107
  priority: 1e3,
15105
15108
  addOptions() {
@@ -15121,7 +15124,7 @@ var Jy = "&nbsp;", Yy = "\xA0", Xy = qm.create({
15121
15124
  let n = e.tokens || [];
15122
15125
  if (n.length === 1 && n[0].type === "image") return t.parseChildren([n[0]]);
15123
15126
  let r = t.parseInline(n);
15124
- return n.length === 1 && n[0].type === "text" && (n[0].raw === Jy || n[0].text === Jy || n[0].raw === Yy || n[0].text === Yy) && r.length === 1 && r[0].type === "text" && (r[0].text === Jy || r[0].text === Yy) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
15127
+ return n.length === 1 && n[0].type === "text" && (n[0].raw === Yy || n[0].text === Yy || n[0].raw === Xy || n[0].text === Xy) && r.length === 1 && r[0].type === "text" && (r[0].text === Yy || r[0].text === Xy) ? t.createNode("paragraph", void 0, []) : t.createNode("paragraph", void 0, r);
15125
15128
  },
15126
15129
  renderMarkdown: (e, t, n) => {
15127
15130
  if (!e) return "";
@@ -15129,7 +15132,7 @@ var Jy = "&nbsp;", Yy = "\xA0", Xy = qm.create({
15129
15132
  if (r.length === 0) {
15130
15133
  var i, a;
15131
15134
  let e = Array.isArray(n == null || (i = n.previousNode) == null ? void 0 : i.content) ? n.previousNode.content : [];
15132
- return (n == null || (a = n.previousNode) == null ? void 0 : a.type) === "paragraph" && e.length === 0 ? Jy : "";
15135
+ return (n == null || (a = n.previousNode) == null ? void 0 : a.type) === "paragraph" && e.length === 0 ? Yy : "";
15133
15136
  }
15134
15137
  return t.renderChildren(r);
15135
15138
  },
@@ -15139,7 +15142,7 @@ var Jy = "&nbsp;", Yy = "\xA0", Xy = qm.create({
15139
15142
  addKeyboardShortcuts() {
15140
15143
  return { "Mod-Alt-0": () => this.editor.commands.setParagraph() };
15141
15144
  }
15142
- }), Zy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Qy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, $y = $p.create({
15145
+ }), Qy = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, $y = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, eb = $p.create({
15143
15146
  name: "strike",
15144
15147
  addOptions() {
15145
15148
  return { HTMLAttributes: {} };
@@ -15177,18 +15180,18 @@ var Jy = "&nbsp;", Yy = "\xA0", Xy = qm.create({
15177
15180
  return { "Mod-Shift-s": () => this.editor.commands.toggleStrike() };
15178
15181
  },
15179
15182
  addInputRules() {
15180
- return [jm({
15181
- find: Zy,
15183
+ return [Mm({
15184
+ find: Qy,
15182
15185
  type: this.type
15183
15186
  })];
15184
15187
  },
15185
15188
  addPasteRules() {
15186
- return [Ym({
15187
- find: Qy,
15189
+ return [Xm({
15190
+ find: $y,
15188
15191
  type: this.type
15189
15192
  })];
15190
15193
  }
15191
- }), eb = qm.create({
15194
+ }), tb = Jm.create({
15192
15195
  name: "text",
15193
15196
  group: "inline",
15194
15197
  parseMarkdown: (e) => ({
@@ -15198,12 +15201,12 @@ var Jy = "&nbsp;", Yy = "\xA0", Xy = qm.create({
15198
15201
  renderMarkdown: (e) => e.text || ""
15199
15202
  });
15200
15203
  // ../../node_modules/.pnpm/prosemirror-dropcursor@1.8.4/node_modules/prosemirror-dropcursor/dist/index.js
15201
- function tb(e = {}) {
15204
+ function nb(e = {}) {
15202
15205
  return new N({ view(t) {
15203
- return new nb(t, e);
15206
+ return new rb(t, e);
15204
15207
  } });
15205
15208
  }
15206
- var nb = class {
15209
+ var rb = class {
15207
15210
  constructor(e, t) {
15208
15211
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.lastDragEvent = null, this.width = t.width ?? 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = [
15209
15212
  "dragover",
@@ -15303,7 +15306,7 @@ var nb = class {
15303
15306
  dragleave(e) {
15304
15307
  this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
15305
15308
  }
15306
- }, rb = class e extends A {
15309
+ }, ib = class e extends A {
15307
15310
  constructor(e) {
15308
15311
  super(e, e);
15309
15312
  }
@@ -15328,11 +15331,11 @@ var nb = class {
15328
15331
  return new e(t.resolve(n.pos));
15329
15332
  }
15330
15333
  getBookmark() {
15331
- return new ib(this.anchor);
15334
+ return new ab(this.anchor);
15332
15335
  }
15333
15336
  static valid(e) {
15334
15337
  let t = e.parent;
15335
- if (t.inlineContent || !ob(e) || !sb(e)) return !1;
15338
+ if (t.inlineContent || !sb(e) || !cb(e)) return !1;
15336
15339
  let n = t.type.spec.allowGapCursor;
15337
15340
  if (n != null) return n;
15338
15341
  let r = t.contentMatchAt(e.index()).defaultType;
@@ -15370,8 +15373,8 @@ var nb = class {
15370
15373
  }
15371
15374
  }
15372
15375
  };
15373
- rb.prototype.visible = !1, rb.findFrom = rb.findGapCursorFrom, A.jsonID("gapcursor", rb);
15374
- var ib = class e {
15376
+ ib.prototype.visible = !1, ib.findFrom = ib.findGapCursorFrom, A.jsonID("gapcursor", ib);
15377
+ var ab = class e {
15375
15378
  constructor(e) {
15376
15379
  this.pos = e;
15377
15380
  }
@@ -15380,54 +15383,54 @@ var ib = class e {
15380
15383
  }
15381
15384
  resolve(e) {
15382
15385
  let t = e.resolve(this.pos);
15383
- return rb.valid(t) ? new rb(t) : A.near(t);
15386
+ return ib.valid(t) ? new ib(t) : A.near(t);
15384
15387
  }
15385
15388
  };
15386
- function ab(e) {
15389
+ function ob(e) {
15387
15390
  return e.isAtom || e.spec.isolating || e.spec.createGapCursor;
15388
15391
  }
15389
- function ob(e) {
15392
+ function sb(e) {
15390
15393
  for (let t = e.depth; t >= 0; t--) {
15391
15394
  let n = e.index(t), r = e.node(t);
15392
15395
  if (n == 0) {
15393
15396
  if (r.type.spec.isolating) return !0;
15394
15397
  } else for (let e = r.child(n - 1);; e = e.lastChild) {
15395
- if (e.childCount == 0 && !e.inlineContent || ab(e.type)) return !0;
15398
+ if (e.childCount == 0 && !e.inlineContent || ob(e.type)) return !0;
15396
15399
  if (e.inlineContent) return !1;
15397
15400
  }
15398
15401
  }
15399
15402
  return !0;
15400
15403
  }
15401
- function sb(e) {
15404
+ function cb(e) {
15402
15405
  for (let t = e.depth; t >= 0; t--) {
15403
15406
  let n = e.indexAfter(t), r = e.node(t);
15404
15407
  if (n == r.childCount) {
15405
15408
  if (r.type.spec.isolating) return !0;
15406
15409
  } else for (let e = r.child(n);; e = e.firstChild) {
15407
- if (e.childCount == 0 && !e.inlineContent || ab(e.type)) return !0;
15410
+ if (e.childCount == 0 && !e.inlineContent || ob(e.type)) return !0;
15408
15411
  if (e.inlineContent) return !1;
15409
15412
  }
15410
15413
  }
15411
15414
  return !0;
15412
15415
  }
15413
- function cb() {
15416
+ function lb() {
15414
15417
  return new N({ props: {
15415
- decorations: pb,
15418
+ decorations: mb,
15416
15419
  createSelectionBetween(e, t, n) {
15417
- return t.pos == n.pos && rb.valid(n) ? new rb(n) : null;
15420
+ return t.pos == n.pos && ib.valid(n) ? new ib(n) : null;
15418
15421
  },
15419
- handleClick: db,
15420
- handleKeyDown: lb,
15421
- handleDOMEvents: { beforeinput: fb }
15422
+ handleClick: fb,
15423
+ handleKeyDown: ub,
15424
+ handleDOMEvents: { beforeinput: pb }
15422
15425
  } });
15423
15426
  }
15424
- var lb = Ec({
15425
- ArrowLeft: ub("horiz", -1),
15426
- ArrowRight: ub("horiz", 1),
15427
- ArrowUp: ub("vert", -1),
15428
- ArrowDown: ub("vert", 1)
15427
+ var ub = Ec({
15428
+ ArrowLeft: db("horiz", -1),
15429
+ ArrowRight: db("horiz", 1),
15430
+ ArrowUp: db("vert", -1),
15431
+ ArrowDown: db("vert", 1)
15429
15432
  });
15430
- function ub(e, t) {
15433
+ function db(e, t) {
15431
15434
  let n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
15432
15435
  return function(e, r, i) {
15433
15436
  let a = e.selection, o = t > 0 ? a.$to : a.$from, s = a.empty;
@@ -15435,22 +15438,22 @@ function ub(e, t) {
15435
15438
  if (!i.endOfTextblock(n) || o.depth == 0) return !1;
15436
15439
  s = !1, o = e.doc.resolve(t > 0 ? o.after() : o.before());
15437
15440
  }
15438
- let c = rb.findGapCursorFrom(o, t, s);
15439
- return c ? (r && r(e.tr.setSelection(new rb(c))), !0) : !1;
15441
+ let c = ib.findGapCursorFrom(o, t, s);
15442
+ return c ? (r && r(e.tr.setSelection(new ib(c))), !0) : !1;
15440
15443
  };
15441
15444
  }
15442
- function db(e, t, n) {
15445
+ function fb(e, t, n) {
15443
15446
  if (!e || !e.editable) return !1;
15444
15447
  let r = e.state.doc.resolve(t);
15445
- if (!rb.valid(r)) return !1;
15448
+ if (!ib.valid(r)) return !1;
15446
15449
  let i = e.posAtCoords({
15447
15450
  left: n.clientX,
15448
15451
  top: n.clientY
15449
15452
  });
15450
- return i && i.inside > -1 && M.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new rb(r))), !0);
15453
+ return i && i.inside > -1 && M.isSelectable(e.state.doc.nodeAt(i.inside)) ? !1 : (e.dispatch(e.state.tr.setSelection(new ib(r))), !0);
15451
15454
  }
15452
- function fb(e, t) {
15453
- if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof rb)) return !1;
15455
+ function pb(e, t) {
15456
+ if (t.inputType != "insertCompositionText" || !(e.state.selection instanceof ib)) return !1;
15454
15457
  let { $from: n } = e.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);
15455
15458
  if (!r) return !1;
15456
15459
  let i = w.empty;
@@ -15458,8 +15461,8 @@ function fb(e, t) {
15458
15461
  let a = e.state.tr.replace(n.pos, n.pos, new D(i, 0, 0));
15459
15462
  return a.setSelection(j.near(a.doc.resolve(n.pos + 1))), e.dispatch(a), !1;
15460
15463
  }
15461
- function pb(e) {
15462
- if (!(e.selection instanceof rb)) return null;
15464
+ function mb(e) {
15465
+ if (!(e.selection instanceof ib)) return null;
15463
15466
  let t = document.createElement("div");
15464
15467
  return t.className = "ProseMirror-gapcursor", H.create(e.doc, [ws.widget(e.selection.head, t, { key: "gapcursor" })]);
15465
15468
  }
@@ -15525,7 +15528,7 @@ Y.create({
15525
15528
  })];
15526
15529
  }
15527
15530
  });
15528
- var mb = Y.create({
15531
+ var hb = Y.create({
15529
15532
  name: "dropCursor",
15530
15533
  addOptions() {
15531
15534
  return {
@@ -15535,7 +15538,7 @@ var mb = Y.create({
15535
15538
  };
15536
15539
  },
15537
15540
  addProseMirrorPlugins() {
15538
- return [tb(this.options)];
15541
+ return [nb(this.options)];
15539
15542
  }
15540
15543
  });
15541
15544
  Y.create({
@@ -15569,10 +15572,10 @@ Y.create({
15569
15572
  })];
15570
15573
  }
15571
15574
  });
15572
- var hb = Y.create({
15575
+ var gb = Y.create({
15573
15576
  name: "gapCursor",
15574
15577
  addProseMirrorPlugins() {
15575
- return [cb()];
15578
+ return [lb()];
15576
15579
  },
15577
15580
  extendNodeSchema(e) {
15578
15581
  return { allowGapCursor: q(K(e, "allowGapCursor", {
@@ -15581,8 +15584,8 @@ var hb = Y.create({
15581
15584
  storage: e.storage
15582
15585
  })) ?? null };
15583
15586
  }
15584
- }), gb = "placeholder", _b = new P("tiptap__placeholder");
15585
- function vb(e) {
15587
+ }), _b = "placeholder", vb = new P("tiptap__placeholder");
15588
+ function yb(e) {
15586
15589
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
15587
15590
  return o && u.push(l), ws.node(i, i + a.nodeSize, {
15588
15591
  class: u.join(" "),
@@ -15594,14 +15597,14 @@ function vb(e) {
15594
15597
  }) : n
15595
15598
  });
15596
15599
  }
15597
- function yb(e, t) {
15600
+ function bb(e, t) {
15598
15601
  return typeof e == "function" ? e(t) : e;
15599
15602
  }
15600
- function bb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
15603
+ function xb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
15601
15604
  let { anchor: s } = i, c = [], l = e.isEmpty;
15602
15605
  return r.nodesBetween(a, o, (r, i) => {
15603
15606
  let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && vd(r);
15604
- return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(vb({
15607
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(yb({
15605
15608
  editor: e,
15606
15609
  isEmptyDoc: l,
15607
15610
  dataAttribute: n,
@@ -15609,7 +15612,7 @@ function bb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
15609
15612
  placeholder: t.placeholder,
15610
15613
  classes: {
15611
15614
  emptyEditor: t.emptyEditorClass,
15612
- emptyNode: yb(t.emptyNodeClass, {
15615
+ emptyNode: bb(t.emptyNodeClass, {
15613
15616
  editor: e,
15614
15617
  node: r,
15615
15618
  pos: i,
@@ -15621,14 +15624,14 @@ function bb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
15621
15624
  })), t.includeChildren;
15622
15625
  }), c;
15623
15626
  }
15624
- function xb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
15627
+ function Sb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
15625
15628
  if (!e.isEditable && t.showOnlyWhenEditable) return null;
15626
15629
  let { anchor: a } = i, o = [], s = e.isEmpty;
15627
15630
  if (t.showOnlyCurrent && !t.includeChildren) {
15628
15631
  let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
15629
15632
  if (c && c.type.isTextblock && vd(c)) {
15630
15633
  let r = a >= l && a <= l + c.nodeSize;
15631
- o.push(vb({
15634
+ o.push(yb({
15632
15635
  editor: e,
15633
15636
  isEmptyDoc: s,
15634
15637
  dataAttribute: n,
@@ -15636,7 +15639,7 @@ function xb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
15636
15639
  placeholder: t.placeholder,
15637
15640
  classes: {
15638
15641
  emptyEditor: t.emptyEditorClass,
15639
- emptyNode: yb(t.emptyNodeClass, {
15642
+ emptyNode: bb(t.emptyNodeClass, {
15640
15643
  editor: e,
15641
15644
  node: c,
15642
15645
  pos: l,
@@ -15647,7 +15650,7 @@ function xb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
15647
15650
  pos: l
15648
15651
  }));
15649
15652
  }
15650
- } else o.push(...bb({
15653
+ } else o.push(...xb({
15651
15654
  editor: e,
15652
15655
  options: t,
15653
15656
  dataAttribute: n,
@@ -15658,7 +15661,7 @@ function xb({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
15658
15661
  }));
15659
15662
  return H.create(r, o);
15660
15663
  }
15661
- function Sb(e, t) {
15664
+ function Cb(e, t) {
15662
15665
  let n = e.resolve(t);
15663
15666
  if (n.depth === 0) {
15664
15667
  let e = n.nodeAfter ?? n.nodeBefore;
@@ -15678,13 +15681,13 @@ function Sb(e, t) {
15678
15681
  to: r + n.node(1).nodeSize
15679
15682
  };
15680
15683
  }
15681
- function Cb(e, t) {
15684
+ function wb(e, t) {
15682
15685
  return {
15683
15686
  from: Math.max(0, t.from),
15684
15687
  to: Math.min(e.content.size, t.to)
15685
15688
  };
15686
15689
  }
15687
- function wb(e, t, n) {
15690
+ function Tb(e, t, n) {
15688
15691
  let r = [];
15689
15692
  return e.forEach((e, i) => {
15690
15693
  let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
@@ -15694,7 +15697,7 @@ function wb(e, t, n) {
15694
15697
  });
15695
15698
  }), r;
15696
15699
  }
15697
- function Tb(e) {
15700
+ function Eb(e) {
15698
15701
  if (e.length === 0) return [];
15699
15702
  let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
15700
15703
  for (let e = 1; e < t.length; e += 1) {
@@ -15703,31 +15706,31 @@ function Tb(e) {
15703
15706
  }
15704
15707
  return n;
15705
15708
  }
15706
- function Eb(e, t) {
15707
- let n = wb(e, t.from, t.to);
15708
- return n.push(Cb(e, Sb(e, t.from))), t.to > t.from ? n.push(Cb(e, Sb(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(Cb(e, Sb(e, Math.min(t.from + 1, e.content.size)))), n;
15709
+ function Db(e, t) {
15710
+ let n = Tb(e, t.from, t.to);
15711
+ return n.push(wb(e, Cb(e, t.from))), t.to > t.from ? n.push(wb(e, Cb(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(wb(e, Cb(e, Math.min(t.from + 1, e.content.size)))), n;
15709
15712
  }
15710
- function Db(e, t, n) {
15713
+ function Ob(e, t, n) {
15711
15714
  let r = [];
15712
15715
  if (e.docChanged) {
15713
15716
  let t = id(e);
15714
- for (let e of t) r.push(...Eb(n.doc, e.newRange));
15717
+ for (let e of t) r.push(...Db(n.doc, e.newRange));
15715
15718
  }
15716
- return e.selectionSet && (r.push(Cb(n.doc, Sb(n.doc, e.mapping.map(t.selection.anchor)))), r.push(Cb(n.doc, Sb(n.doc, n.selection.anchor)))), Tb(r);
15719
+ return e.selectionSet && (r.push(wb(n.doc, Cb(n.doc, e.mapping.map(t.selection.anchor)))), r.push(wb(n.doc, Cb(n.doc, n.selection.anchor)))), Eb(r);
15717
15720
  }
15718
- function Ob(e, t, n) {
15721
+ function kb(e, t, n) {
15719
15722
  let r = Math.max(0, Math.min(e, n.content.size));
15720
15723
  return {
15721
15724
  from: r,
15722
15725
  to: Math.max(r, Math.min(t, n.content.size))
15723
15726
  };
15724
15727
  }
15725
- function kb({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
15728
+ function Ab({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
15726
15729
  let s = e;
15727
15730
  for (let e of t) {
15728
- let { from: t, to: c } = Ob(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
15731
+ let { from: t, to: c } = kb(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
15729
15732
  l.length && (s = s.remove(l));
15730
- let u = bb({
15733
+ let u = xb({
15731
15734
  editor: n,
15732
15735
  options: r,
15733
15736
  dataAttribute: i,
@@ -15740,10 +15743,10 @@ function kb({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i
15740
15743
  }
15741
15744
  return s;
15742
15745
  }
15743
- function Ab({ editor: e, options: t, dataAttribute: n }) {
15746
+ function jb({ editor: e, options: t, dataAttribute: n }) {
15744
15747
  return {
15745
15748
  init(r, i) {
15746
- return xb({
15749
+ return Sb({
15747
15750
  editor: e,
15748
15751
  options: t,
15749
15752
  dataAttribute: n,
@@ -15752,9 +15755,9 @@ function Ab({ editor: e, options: t, dataAttribute: n }) {
15752
15755
  }) ?? H.empty;
15753
15756
  },
15754
15757
  apply(r, i, a, o) {
15755
- return !r.docChanged && !r.selectionSet ? i : kb({
15758
+ return !r.docChanged && !r.selectionSet ? i : Ab({
15756
15759
  decorations: i.map(r.mapping, r.doc),
15757
- ranges: Db(r, a, o),
15760
+ ranges: Ob(r, a, o),
15758
15761
  editor: e,
15759
15762
  options: t,
15760
15763
  dataAttribute: n,
@@ -15764,25 +15767,25 @@ function Ab({ editor: e, options: t, dataAttribute: n }) {
15764
15767
  }
15765
15768
  };
15766
15769
  }
15767
- function jb(e) {
15770
+ function Mb(e) {
15768
15771
  return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
15769
15772
  }
15770
- function Mb({ editor: e, options: t }) {
15771
- let n = t.dataAttribute ? `data-${jb(t.dataAttribute)}` : `data-${gb}`, r = t.showOnlyCurrent && !t.includeChildren;
15773
+ function Nb({ editor: e, options: t }) {
15774
+ let n = t.dataAttribute ? `data-${Mb(t.dataAttribute)}` : `data-${_b}`, r = t.showOnlyCurrent && !t.includeChildren;
15772
15775
  return new N({
15773
- key: _b,
15774
- ...r ? {} : { state: Ab({
15776
+ key: vb,
15777
+ ...r ? {} : { state: jb({
15775
15778
  editor: e,
15776
15779
  options: t,
15777
15780
  dataAttribute: n
15778
15781
  }) },
15779
- props: { decorations: r ? ({ doc: r, selection: i }) => xb({
15782
+ props: { decorations: r ? ({ doc: r, selection: i }) => Sb({
15780
15783
  editor: e,
15781
15784
  options: t,
15782
15785
  dataAttribute: n,
15783
15786
  doc: r,
15784
15787
  selection: i
15785
- }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? H.empty : _b.getState(n) ?? H.empty }
15788
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? H.empty : vb.getState(n) ?? H.empty }
15786
15789
  });
15787
15790
  }
15788
15791
  Y.create({
@@ -15791,7 +15794,7 @@ Y.create({
15791
15794
  return {
15792
15795
  emptyEditorClass: "is-editor-empty",
15793
15796
  emptyNodeClass: "is-empty",
15794
- dataAttribute: gb,
15797
+ dataAttribute: _b,
15795
15798
  placeholder: "Write something …",
15796
15799
  showOnlyWhenEditable: !0,
15797
15800
  showOnlyCurrent: !0,
@@ -15799,23 +15802,23 @@ Y.create({
15799
15802
  };
15800
15803
  },
15801
15804
  addProseMirrorPlugins() {
15802
- return [Mb({
15805
+ return [Nb({
15803
15806
  editor: this.editor,
15804
15807
  options: this.options
15805
15808
  })];
15806
15809
  }
15807
15810
  });
15808
- function Nb(e, t) {
15811
+ function Pb(e, t) {
15809
15812
  return !e.selection.empty && !yd(e.selection) && t.isEditable;
15810
15813
  }
15811
- function Pb(e, t) {
15812
- return Nb(e, t) && !t.isFocused && !t.view.dragging;
15814
+ function Fb(e, t) {
15815
+ return Pb(e, t) && !t.isFocused && !t.view.dragging;
15813
15816
  }
15814
- function Fb() {
15817
+ function Ib() {
15815
15818
  var e;
15816
15819
  (e = window.getSelection()) == null || e.removeAllRanges();
15817
15820
  }
15818
- function Ib(e) {
15821
+ function Lb(e) {
15819
15822
  e.focus();
15820
15823
  }
15821
15824
  Y.create({
@@ -15829,15 +15832,15 @@ Y.create({
15829
15832
  key: new P("selection"),
15830
15833
  props: {
15831
15834
  decorations(n) {
15832
- return Pb(n, e) ? H.create(n.doc, [ws.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
15835
+ return Fb(n, e) ? H.create(n.doc, [ws.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
15833
15836
  },
15834
15837
  handleDOMEvents: {
15835
15838
  blur(t) {
15836
- return Nb(t.state, e) && Fb(), !1;
15839
+ return Pb(t.state, e) && Ib(), !1;
15837
15840
  },
15838
15841
  focus(t) {
15839
- return Nb(t.state, e) && requestAnimationFrame(() => {
15840
- !e.isDestroyed && t.hasFocus() && Ib(t);
15842
+ return Pb(t.state, e) && requestAnimationFrame(() => {
15843
+ !e.isDestroyed && t.hasFocus() && Lb(t);
15841
15844
  }), !1;
15842
15845
  }
15843
15846
  }
@@ -15845,10 +15848,10 @@ Y.create({
15845
15848
  })];
15846
15849
  }
15847
15850
  });
15848
- function Lb({ types: e, node: t }) {
15851
+ function Rb({ types: e, node: t }) {
15849
15852
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
15850
15853
  }
15851
- var Rb = Y.create({
15854
+ var zb = Y.create({
15852
15855
  name: "trailingNode",
15853
15856
  addOptions() {
15854
15857
  return {
@@ -15867,7 +15870,7 @@ var Rb = Y.create({
15867
15870
  state: {
15868
15871
  init: (e, t) => {
15869
15872
  let r = t.tr.doc.lastChild;
15870
- return !Lb({
15873
+ return !Rb({
15871
15874
  node: r,
15872
15875
  types: n
15873
15876
  });
@@ -15875,7 +15878,7 @@ var Rb = Y.create({
15875
15878
  apply: (e, t) => {
15876
15879
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
15877
15880
  let r = e.doc.lastChild;
15878
- return !Lb({
15881
+ return !Rb({
15879
15882
  node: r,
15880
15883
  types: n
15881
15884
  });
@@ -15883,7 +15886,7 @@ var Rb = Y.create({
15883
15886
  }
15884
15887
  })];
15885
15888
  }
15886
- }), zb = Y.create({
15889
+ }), Bb = Y.create({
15887
15890
  name: "undoRedo",
15888
15891
  addOptions() {
15889
15892
  return {
@@ -15909,47 +15912,47 @@ var Rb = Y.create({
15909
15912
  "Shift-Mod-я": () => this.editor.commands.redo()
15910
15913
  };
15911
15914
  }
15912
- }), Bb = /* @__PURE__ */ e({
15913
- StarterKit: () => Vb,
15914
- default: () => Hb
15915
- }), Vb = Y.create({
15915
+ }), Vb = /* @__PURE__ */ e({
15916
+ StarterKit: () => Hb,
15917
+ default: () => Ub
15918
+ }), Hb = Y.create({
15916
15919
  name: "starterKit",
15917
15920
  addExtensions() {
15918
15921
  let e = [];
15919
- return this.options.bold !== !1 && e.push(vv.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(pv.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(zv.configure(this.options.bulletList)), this.options.code !== !1 && e.push(Sv.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(Ev.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Dv.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(mb.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(hb.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(Ov.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(kv.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(zb.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(Av.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Fv.configure(this.options.italic)), this.options.listItem !== !1 && e.push(py.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Sy.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(W_.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Hy.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Xy.configure(this.options.paragraph)), this.options.strike !== !1 && e.push($y.configure(this.options.strike)), this.options.text !== !1 && e.push(eb.configure(this.options.text)), this.options.underline !== !1 && e.push(nv.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(Rb.configure(this.options?.trailingNode)), e;
15922
+ return this.options.bold !== !1 && e.push(yv.configure(this.options.bold)), this.options.blockquote !== !1 && e.push(mv.configure(this.options.blockquote)), this.options.bulletList !== !1 && e.push(Bv.configure(this.options.bulletList)), this.options.code !== !1 && e.push(Cv.configure(this.options.code)), this.options.codeBlock !== !1 && e.push(Dv.configure(this.options.codeBlock)), this.options.document !== !1 && e.push(Ov.configure(this.options.document)), this.options.dropcursor !== !1 && e.push(hb.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && e.push(gb.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && e.push(kv.configure(this.options.hardBreak)), this.options.heading !== !1 && e.push(Av.configure(this.options.heading)), this.options.undoRedo !== !1 && e.push(Bb.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && e.push(jv.configure(this.options.horizontalRule)), this.options.italic !== !1 && e.push(Iv.configure(this.options.italic)), this.options.listItem !== !1 && e.push(my.configure(this.options.listItem)), this.options.listKeymap !== !1 && e.push(Cy.configure(this.options?.listKeymap)), this.options.link !== !1 && e.push(G_.configure(this.options?.link)), this.options.orderedList !== !1 && e.push(Uy.configure(this.options.orderedList)), this.options.paragraph !== !1 && e.push(Zy.configure(this.options.paragraph)), this.options.strike !== !1 && e.push(eb.configure(this.options.strike)), this.options.text !== !1 && e.push(tb.configure(this.options.text)), this.options.underline !== !1 && e.push(rv.configure(this.options?.underline)), this.options.trailingNode !== !1 && e.push(zb.configure(this.options?.trailingNode)), e;
15920
15923
  }
15921
- }), Hb = Vb, Ub = /* @__PURE__ */ e({
15924
+ }), Ub = Hb, Wb = /* @__PURE__ */ e({
15922
15925
  CommandManager: () => $c,
15923
15926
  DECORATION_MANAGER_PLUGIN_KEY: () => bf,
15924
- Decoration: () => wm,
15927
+ Decoration: () => Tm,
15925
15928
  DecorationManager: () => Yf,
15926
- Editor: () => Gb,
15927
- EditorContent: () => Kb,
15929
+ Editor: () => Kb,
15930
+ EditorContent: () => qb,
15928
15931
  Extendable: () => Qp,
15929
15932
  Extension: () => Y,
15930
- Fragment: () => Vm,
15931
- InlineDecoration: () => Tm,
15933
+ Fragment: () => Hm,
15934
+ InlineDecoration: () => Em,
15932
15935
  InputRule: () => Gp,
15933
15936
  MappablePosition: () => Fd,
15934
15937
  Mark: () => $p,
15935
15938
  MarkView: () => Wp,
15936
- MarkViewContent: () => Qb,
15937
- Node: () => qm,
15938
- NodeDecoration: () => Em,
15939
- NodePos: () => xm,
15940
- NodeView: () => Jm,
15941
- NodeViewContent: () => qb,
15942
- NodeViewWrapper: () => Jb,
15939
+ MarkViewContent: () => $b,
15940
+ Node: () => Jm,
15941
+ NodeDecoration: () => Dm,
15942
+ NodePos: () => Sm,
15943
+ NodeView: () => Ym,
15944
+ NodeViewContent: () => Jb,
15945
+ NodeViewWrapper: () => Yb,
15943
15946
  PasteRule: () => em,
15944
- ResizableNodeView: () => Gm,
15945
- ResizableNodeview: () => Km,
15946
- Tracker: () => Qm,
15947
- VueMarkView: () => $b,
15948
- VueMarkViewRenderer: () => ex,
15949
- VueNodeViewRenderer: () => rx,
15950
- VueRenderer: () => Xb,
15951
- VueWidgetRenderer: () => lx,
15952
- WidgetDecoration: () => Dm,
15947
+ ResizableNodeView: () => Km,
15948
+ ResizableNodeview: () => qm,
15949
+ Tracker: () => $m,
15950
+ VueMarkView: () => ex,
15951
+ VueMarkViewRenderer: () => tx,
15952
+ VueNodeViewRenderer: () => ix,
15953
+ VueRenderer: () => Zb,
15954
+ VueWidgetRenderer: () => ux,
15955
+ WidgetDecoration: () => Om,
15953
15956
  attrsEqual: () => Xf,
15954
15957
  callOrReturn: () => q,
15955
15958
  canInsertNode: () => Zf,
@@ -15959,19 +15962,19 @@ var Rb = Y.create({
15959
15962
  createBlockMarkdownSpec: () => Op,
15960
15963
  createChainableState: () => Qc,
15961
15964
  createDocument: () => mu,
15962
- createElement: () => Um,
15965
+ createElement: () => Wm,
15963
15966
  createInlineMarkdownSpec: () => jp,
15964
15967
  createMappablePosition: () => Ld,
15965
15968
  createNodeFromContent: () => Fl,
15966
15969
  createStyleTag: () => Qf,
15967
- createWidgetDecoration: () => Am,
15970
+ createWidgetDecoration: () => jm,
15968
15971
  decodeHtmlEntities: () => np,
15969
15972
  defaultBlockAt: () => zl,
15970
15973
  deleteProps: () => au,
15971
15974
  elementFromString: () => Nl,
15972
15975
  encodeHtmlEntities: () => ap,
15973
15976
  escapeForRegEx: () => $f,
15974
- extensions: () => vm,
15977
+ extensions: () => ym,
15975
15978
  findChildren: () => vu,
15976
15979
  findChildrenInRange: () => yu,
15977
15980
  findDuplicates: () => ju,
@@ -16008,7 +16011,7 @@ var Rb = Y.create({
16008
16011
  getTextContentFromNodes: () => dd,
16009
16012
  getTextSerializersFromSchema: () => Qu,
16010
16013
  getUpdatedPosition: () => Id,
16011
- h: () => Um,
16014
+ h: () => Wm,
16012
16015
  injectExtensionAttributesToParseRule: () => Bu,
16013
16016
  inputRulesPlugin: () => Zp,
16014
16017
  isActive: () => pd,
@@ -16049,17 +16052,17 @@ var Rb = Y.create({
16049
16052
  isValidCSSStyleValue: () => dp,
16050
16053
  isiOS: () => Dl,
16051
16054
  liveWidgetKeys: () => Jf,
16052
- markInputRule: () => jm,
16053
- markPasteRule: () => Ym,
16054
- markViewProps: () => Zb,
16055
+ markInputRule: () => Mm,
16056
+ markPasteRule: () => Xm,
16057
+ markViewProps: () => Qb,
16055
16058
  markdown: () => zp,
16056
16059
  marksEqual: () => Vp,
16057
16060
  mergeAttributes: () => J,
16058
16061
  mergeDeep: () => Hp,
16059
16062
  minMax: () => wl,
16060
- nodeInputRule: () => Mm,
16061
- nodePasteRule: () => Xm,
16062
- nodeViewProps: () => tx,
16063
+ nodeInputRule: () => Nm,
16064
+ nodePasteRule: () => Zm,
16065
+ nodeViewProps: () => nx,
16063
16066
  objectIncludes: () => gl,
16064
16067
  parseAttributes: () => Tp,
16065
16068
  parseIndentedBlocks: () => Fp,
@@ -16074,14 +16077,14 @@ var Rb = Y.create({
16074
16077
  serializeAttributes: () => Ep,
16075
16078
  sortExtensions: () => Gu,
16076
16079
  splitExtensions: () => Mu,
16077
- textInputRule: () => Pm,
16078
- textPasteRule: () => Zm,
16079
- textblockTypeInputRule: () => Nm,
16080
+ textInputRule: () => Fm,
16081
+ textPasteRule: () => Qm,
16082
+ textblockTypeInputRule: () => Pm,
16080
16083
  updateMarkViewAttributes: () => Up,
16081
- useEditor: () => Yb,
16082
- wrappingInputRule: () => Fm
16084
+ useEditor: () => Xb,
16085
+ wrappingInputRule: () => Im
16083
16086
  });
16084
- function Wb(e) {
16087
+ function Gb(e) {
16085
16088
  return a((t, n) => ({
16086
16089
  get() {
16087
16090
  return t(), e;
@@ -16095,9 +16098,9 @@ function Wb(e) {
16095
16098
  }
16096
16099
  }));
16097
16100
  }
16098
- var Gb = class extends Cm {
16101
+ var Kb = class extends wm {
16099
16102
  constructor(e = {}) {
16100
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Wb(this.view.state), this.reactiveExtensionStorage = Wb(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
16103
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Gb(this.view.state), this.reactiveExtensionStorage = Gb(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
16101
16104
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
16102
16105
  }), l(this);
16103
16106
  }
@@ -16115,7 +16118,7 @@ var Gb = class extends Cm {
16115
16118
  let t = super.unregisterPlugin(e);
16116
16119
  return this.reactiveState && t && (this.reactiveState.value = t), t;
16117
16120
  }
16118
- }, Kb = n({
16121
+ }, qb = n({
16119
16122
  name: "EditorContent",
16120
16123
  props: { editor: {
16121
16124
  default: null,
@@ -16143,7 +16146,7 @@ var Gb = class extends Cm {
16143
16146
  this.rootEl = e;
16144
16147
  } });
16145
16148
  }
16146
- }), qb = n({
16149
+ }), Jb = n({
16147
16150
  name: "NodeViewContent",
16148
16151
  props: { as: {
16149
16152
  type: String,
@@ -16164,7 +16167,7 @@ var Gb = class extends Cm {
16164
16167
  "data-node-view-content": ""
16165
16168
  });
16166
16169
  }
16167
- }), Jb = n({
16170
+ }), Yb = n({
16168
16171
  name: "NodeViewWrapper",
16169
16172
  props: { as: {
16170
16173
  type: String,
@@ -16180,15 +16183,15 @@ var Gb = class extends Cm {
16180
16183
  onDragstart: this.onDragStart
16181
16184
  }, (e = this.$slots).default?.call(e));
16182
16185
  }
16183
- }), Yb = (e = {}) => {
16186
+ }), Xb = (e = {}) => {
16184
16187
  let t = m();
16185
16188
  return s(() => {
16186
- t.value = new Gb(e);
16189
+ t.value = new Kb(e);
16187
16190
  }), o(() => {
16188
16191
  var e;
16189
16192
  (e = t.value) == null || e.destroy();
16190
16193
  }), t;
16191
- }, Xb = class {
16194
+ }, Zb = class {
16192
16195
  constructor(e, { props: n = {}, editor: r }) {
16193
16196
  this.destroyed = !1, this.editor = r, this.component = l(e), this.el = document.createElement("div"), this.props = t(n), this.renderedComponent = this.renderComponent();
16194
16197
  }
@@ -16218,7 +16221,7 @@ var Gb = class extends Cm {
16218
16221
  destroy() {
16219
16222
  this.destroyed || (this.destroyed = !0, this.renderedComponent.destroy());
16220
16223
  }
16221
- }, Zb = {
16224
+ }, Qb = {
16222
16225
  editor: {
16223
16226
  type: Object,
16224
16227
  required: !0
@@ -16247,7 +16250,7 @@ var Gb = class extends Cm {
16247
16250
  type: Object,
16248
16251
  required: !0
16249
16252
  }
16250
- }, Qb = n({
16253
+ }, $b = n({
16251
16254
  name: "MarkViewContent",
16252
16255
  props: { as: {
16253
16256
  type: String,
@@ -16259,7 +16262,7 @@ var Gb = class extends Cm {
16259
16262
  "data-mark-view-content": ""
16260
16263
  });
16261
16264
  }
16262
- }), $b = class extends Wp {
16265
+ }), ex = class extends Wp {
16263
16266
  constructor(e, t, r) {
16264
16267
  super(e, t, r);
16265
16268
  let i = {
@@ -16275,7 +16278,7 @@ var Gb = class extends Cm {
16275
16278
  __name: e.__name,
16276
16279
  __file: e.__file
16277
16280
  });
16278
- this.renderer = new Xb(a, {
16281
+ this.renderer = new Zb(a, {
16279
16282
  editor: this.editor,
16280
16283
  props: i
16281
16284
  });
@@ -16294,10 +16297,10 @@ var Gb = class extends Cm {
16294
16297
  this.renderer.destroy();
16295
16298
  }
16296
16299
  };
16297
- function ex(e, t = {}) {
16298
- return (n) => n.editor.contentComponent ? new $b(e, n, t) : {};
16300
+ function tx(e, t = {}) {
16301
+ return (n) => n.editor.contentComponent ? new ex(e, n, t) : {};
16299
16302
  }
16300
- var tx = {
16303
+ var nx = {
16301
16304
  editor: {
16302
16305
  type: Object,
16303
16306
  required: !0
@@ -16342,7 +16345,7 @@ var tx = {
16342
16345
  type: Object,
16343
16346
  required: !0
16344
16347
  }
16345
- }, nx = class extends Jm {
16348
+ }, rx = class extends Ym {
16346
16349
  constructor(e, t, n) {
16347
16350
  super(e, t, n), this.cachedExtensionWithSyncedStorage = null, this.handlePositionUpdate = () => {
16348
16351
  let e = this.getPos();
@@ -16391,7 +16394,7 @@ var tx = {
16391
16394
  __name: this.component.__name,
16392
16395
  __file: this.component.__file
16393
16396
  });
16394
- this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Xb(a, {
16397
+ this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.editor.on("selectionUpdate", this.handleSelectionUpdate), this.currentPos = this.getPos(), this.node.isLeaf || (this.contentDOMElement = this.options.contentDOMElementTag ? document.createElement(this.options.contentDOMElementTag) : document.createElement(this.node.isInline ? "span" : "div"), this.contentDOMElement.style.whiteSpace = "inherit", this.contentDOMElement.dataset.nodeViewContentVue = ""), this.renderer = new Zb(a, {
16395
16398
  editor: this.editor,
16396
16399
  props: t
16397
16400
  });
@@ -16465,20 +16468,20 @@ var tx = {
16465
16468
  this.renderer.destroy(), this.editor.off("selectionUpdate", this.handleSelectionUpdate), this.options.trackNodeViewPosition && this.editor.off("update", this.handlePositionUpdate), this.contentDOMElement = null;
16466
16469
  }
16467
16470
  };
16468
- function rx(e, t) {
16469
- return (n) => n.editor.contentComponent ? new nx(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
16470
- }
16471
16471
  function ix(e, t) {
16472
+ return (n) => n.editor.contentComponent ? new rx(typeof e == "function" && "__vccOpts" in e ? e.__vccOpts : e, n, t) : {};
16473
+ }
16474
+ function ax(e, t) {
16472
16475
  var n;
16473
16476
  let r = e;
16474
16477
  if (!r) return;
16475
- (n = r.mixins) == null || n.forEach((e) => ix(e, t)), ix(r.extends, t);
16478
+ (n = r.mixins) == null || n.forEach((e) => ax(e, t)), ax(r.extends, t);
16476
16479
  let { props: i } = r;
16477
16480
  Array.isArray(i) ? i.forEach((e) => t.add(g(e))) : i && Object.keys(i).forEach((e) => t.add(g(e)));
16478
16481
  }
16479
- function ax(e, t) {
16482
+ function ox(e, t) {
16480
16483
  let n = /* @__PURE__ */ new Set();
16481
- ix(e, n);
16484
+ ax(e, n);
16482
16485
  let r = {};
16483
16486
  for (let e of [
16484
16487
  "editor",
@@ -16487,41 +16490,41 @@ function ax(e, t) {
16487
16490
  ]) n.has(g(e)) || (r[e] = null);
16488
16491
  return r;
16489
16492
  }
16490
- function ox(e, t) {
16493
+ function sx(e, t) {
16491
16494
  return Array.isArray(e) ? [...e, ...Object.keys(t)] : {
16492
16495
  ...e,
16493
16496
  ...t
16494
16497
  };
16495
16498
  }
16496
- function sx(e, t) {
16499
+ function cx(e, t) {
16497
16500
  let n = (t, n) => e(t, n);
16498
- return n.props = ox(e.props, ax(e, t)), n.emits = e.emits, n.inheritAttrs = e.inheritAttrs, n.displayName = e.displayName ?? e.name, n;
16501
+ return n.props = sx(e.props, ox(e, t)), n.emits = e.emits, n.inheritAttrs = e.inheritAttrs, n.displayName = e.displayName ?? e.name, n;
16499
16502
  }
16500
- var cx = Symbol("tiptapVueWidgetCache");
16501
- function lx(e, t) {
16502
- let { editor: n, props: r = {} } = t, i = ux(e) ? sx(e, r) : dx(e, r);
16503
- return Am({
16503
+ var lx = Symbol("tiptapVueWidgetCache");
16504
+ function ux(e, t) {
16505
+ let { editor: n, props: r = {} } = t, i = dx(e) ? cx(e, r) : fx(e, r);
16506
+ return jm({
16504
16507
  ...t,
16505
16508
  props: r,
16506
- cacheKey: cx,
16509
+ cacheKey: lx,
16507
16510
  context: (e) => ({
16508
16511
  editor: l(n),
16509
16512
  getPos: e
16510
16513
  }),
16511
- create: (e) => new Xb(i, {
16514
+ create: (e) => new Zb(i, {
16512
16515
  editor: n,
16513
16516
  props: e
16514
16517
  }),
16515
16518
  materialize: (e) => e.element
16516
16519
  });
16517
16520
  }
16518
- function ux(e) {
16521
+ function dx(e) {
16519
16522
  return typeof e == "function";
16520
16523
  }
16521
- function dx(e, t) {
16524
+ function fx(e, t) {
16522
16525
  return n({
16523
16526
  extends: { ...e },
16524
- props: ax(e, t),
16527
+ props: ox(e, t),
16525
16528
  template: e.template,
16526
16529
  setup: (t, n) => e.setup?.call(e, t, n),
16527
16530
  __scopeId: e.__scopeId,
@@ -16531,72 +16534,72 @@ function dx(e, t) {
16531
16534
  });
16532
16535
  }
16533
16536
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
16534
- var fx = Math.min, px = Math.max, mx = Math.round, hx = Math.floor, gx = (e) => ({
16537
+ var px = Math.min, mx = Math.max, hx = Math.round, gx = Math.floor, _x = (e) => ({
16535
16538
  x: e,
16536
16539
  y: e
16537
- }), _x = {
16540
+ }), vx = {
16538
16541
  left: "right",
16539
16542
  right: "left",
16540
16543
  bottom: "top",
16541
16544
  top: "bottom"
16542
16545
  };
16543
- function vx(e, t) {
16546
+ function yx(e, t) {
16544
16547
  return typeof e == "function" ? e(t) : e;
16545
16548
  }
16546
- function yx(e) {
16549
+ function bx(e) {
16547
16550
  return e.split("-")[0];
16548
16551
  }
16549
- function bx(e) {
16552
+ function xx(e) {
16550
16553
  return e.split("-")[1];
16551
16554
  }
16552
- function xx(e) {
16555
+ function Sx(e) {
16553
16556
  return e === "x" ? "y" : "x";
16554
16557
  }
16555
- function Sx(e) {
16558
+ function Cx(e) {
16556
16559
  return e === "y" ? "height" : "width";
16557
16560
  }
16558
- function Cx(e) {
16561
+ function wx(e) {
16559
16562
  let t = e[0];
16560
16563
  return t === "t" || t === "b" ? "y" : "x";
16561
16564
  }
16562
- function wx(e) {
16563
- return xx(Cx(e));
16565
+ function Tx(e) {
16566
+ return Sx(wx(e));
16564
16567
  }
16565
- function Tx(e, t, n) {
16568
+ function Ex(e, t, n) {
16566
16569
  n === void 0 && (n = !1);
16567
- let r = bx(e), i = wx(e), a = Sx(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
16568
- return t.reference[a] > t.floating[a] && (o = Px(o)), [o, Px(o)];
16570
+ let r = xx(e), i = Tx(e), a = Cx(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
16571
+ return t.reference[a] > t.floating[a] && (o = Fx(o)), [o, Fx(o)];
16569
16572
  }
16570
- function Ex(e) {
16571
- let t = Px(e);
16573
+ function Dx(e) {
16574
+ let t = Fx(e);
16572
16575
  return [
16573
- Dx(e),
16576
+ Ox(e),
16574
16577
  t,
16575
- Dx(t)
16578
+ Ox(t)
16576
16579
  ];
16577
16580
  }
16578
- function Dx(e) {
16581
+ function Ox(e) {
16579
16582
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
16580
16583
  }
16581
- var Ox = ["left", "right"], kx = ["right", "left"], Ax = ["top", "bottom"], jx = ["bottom", "top"];
16582
- function Mx(e, t, n) {
16584
+ var kx = ["left", "right"], Ax = ["right", "left"], jx = ["top", "bottom"], Mx = ["bottom", "top"];
16585
+ function Nx(e, t, n) {
16583
16586
  switch (e) {
16584
16587
  case "top":
16585
- case "bottom": return n ? t ? kx : Ox : t ? Ox : kx;
16588
+ case "bottom": return n ? t ? Ax : kx : t ? kx : Ax;
16586
16589
  case "left":
16587
- case "right": return t ? Ax : jx;
16590
+ case "right": return t ? jx : Mx;
16588
16591
  default: return [];
16589
16592
  }
16590
16593
  }
16591
- function Nx(e, t, n, r) {
16592
- let i = bx(e), a = Mx(yx(e), n === "start", r);
16593
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Dx)))), a;
16594
- }
16595
- function Px(e) {
16596
- let t = yx(e);
16597
- return _x[t] + e.slice(t.length);
16594
+ function Px(e, t, n, r) {
16595
+ let i = xx(e), a = Nx(bx(e), n === "start", r);
16596
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ox)))), a;
16598
16597
  }
16599
16598
  function Fx(e) {
16599
+ let t = bx(e);
16600
+ return vx[t] + e.slice(t.length);
16601
+ }
16602
+ function Ix(e) {
16600
16603
  return {
16601
16604
  top: e.top ?? 0,
16602
16605
  right: e.right ?? 0,
@@ -16604,15 +16607,15 @@ function Fx(e) {
16604
16607
  left: e.left ?? 0
16605
16608
  };
16606
16609
  }
16607
- function Ix(e) {
16610
+ function Lx(e) {
16608
16611
  return typeof e == "number" ? {
16609
16612
  top: e,
16610
16613
  right: e,
16611
16614
  bottom: e,
16612
16615
  left: e
16613
- } : Fx(e);
16616
+ } : Ix(e);
16614
16617
  }
16615
- function Lx(e) {
16618
+ function Rx(e) {
16616
16619
  let { x: t, y: n, width: r, height: i } = e;
16617
16620
  return {
16618
16621
  width: r,
@@ -16626,8 +16629,8 @@ function Lx(e) {
16626
16629
  };
16627
16630
  }
16628
16631
  // ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
16629
- function Rx(e, t, n) {
16630
- let { reference: r, floating: i } = e, a = Cx(t), o = wx(t), s = Sx(o), c = yx(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
16632
+ function zx(e, t, n) {
16633
+ let { reference: r, floating: i } = e, a = wx(t), o = Tx(t), s = Cx(o), c = bx(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
16631
16634
  switch (c) {
16632
16635
  case "top":
16633
16636
  p = {
@@ -16658,12 +16661,12 @@ function Rx(e, t, n) {
16658
16661
  y: r.y
16659
16662
  };
16660
16663
  }
16661
- let m = bx(t);
16664
+ let m = xx(t);
16662
16665
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
16663
16666
  }
16664
- async function zx(e, t) {
16667
+ async function Bx(e, t) {
16665
16668
  t === void 0 && (t = {});
16666
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = vx(t, e), p = Ix(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Lx(await i.getClippingRect({
16669
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = yx(t, e), p = Lx(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Rx(await i.getClippingRect({
16667
16670
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
16668
16671
  boundary: c,
16669
16672
  rootBoundary: l,
@@ -16676,7 +16679,7 @@ async function zx(e, t) {
16676
16679
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
16677
16680
  x: 1,
16678
16681
  y: 1
16679
- }, y = Lx(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
16682
+ }, y = Rx(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
16680
16683
  elements: o,
16681
16684
  rect: g,
16682
16685
  offsetParent: _,
@@ -16689,15 +16692,15 @@ async function zx(e, t) {
16689
16692
  right: (y.right - h.right + p.right) / v.x
16690
16693
  };
16691
16694
  }
16692
- var Bx = 50, Vx = async (e, t, n) => {
16695
+ var Vx = 50, Hx = async (e, t, n) => {
16693
16696
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
16694
16697
  ...o,
16695
- detectOverflow: zx
16698
+ detectOverflow: Bx
16696
16699
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
16697
16700
  reference: e,
16698
16701
  floating: t,
16699
16702
  strategy: i
16700
- }), { x: u, y: d } = Rx(l, r, c), f = r, p = 0, m = {};
16703
+ }), { x: u, y: d } = zx(l, r, c), f = r, p = 0, m = {};
16701
16704
  for (let n = 0; n < a.length; n++) {
16702
16705
  let h = a[n];
16703
16706
  if (!h) continue;
@@ -16718,11 +16721,11 @@ var Bx = 50, Vx = async (e, t, n) => {
16718
16721
  u = v ?? u, d = y ?? d, m[g] = {
16719
16722
  ...m[g],
16720
16723
  ...b
16721
- }, x && p < Bx && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
16724
+ }, x && p < Vx && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
16722
16725
  reference: e,
16723
16726
  floating: t,
16724
16727
  strategy: i
16725
- }) : x.rects), {x: u, y: d} = Rx(l, f, c)), n = -1);
16728
+ }) : x.rects), {x: u, y: d} = zx(l, f, c)), n = -1);
16726
16729
  }
16727
16730
  return {
16728
16731
  x: u,
@@ -16731,19 +16734,19 @@ var Bx = 50, Vx = async (e, t, n) => {
16731
16734
  strategy: i,
16732
16735
  middlewareData: m
16733
16736
  };
16734
- }, Hx = function(e) {
16737
+ }, Ux = function(e) {
16735
16738
  return e === void 0 && (e = {}), {
16736
16739
  name: "flip",
16737
16740
  options: e,
16738
16741
  async fn(t) {
16739
16742
  var n;
16740
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = vx(e, t);
16743
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = yx(e, t);
16741
16744
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
16742
- let g = yx(r), _ = Cx(o), v = yx(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Px(o)] : Ex(o)), x = p !== "none";
16743
- !d && x && b.push(...Nx(o, m, p, y));
16745
+ let g = bx(r), _ = wx(o), v = bx(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Fx(o)] : Dx(o)), x = p !== "none";
16746
+ !d && x && b.push(...Px(o, m, p, y));
16744
16747
  let S = [o, ...b], ee = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
16745
16748
  if (l && C.push(ee[g]), u) {
16746
- let e = Tx(r, a, y);
16749
+ let e = Ex(r, a, y);
16747
16750
  C.push(ee[e[0]], ee[e[1]]);
16748
16751
  }
16749
16752
  if (w = [...w, {
@@ -16751,7 +16754,7 @@ var Bx = 50, Vx = async (e, t, n) => {
16751
16754
  overflows: C
16752
16755
  }], !C.every((e) => e <= 0)) {
16753
16756
  let e = (i.flip?.index || 0) + 1, t = S[e];
16754
- if (t && (u !== "alignment" || _ === Cx(t) || w.every((e) => Cx(e.placement) !== _ || e.overflows[0] > 0))) return {
16757
+ if (t && (u !== "alignment" || _ === wx(t) || w.every((e) => wx(e.placement) !== _ || e.overflows[0] > 0))) return {
16755
16758
  data: {
16756
16759
  index: e,
16757
16760
  overflows: w
@@ -16763,7 +16766,7 @@ var Bx = 50, Vx = async (e, t, n) => {
16763
16766
  case "bestFit": {
16764
16767
  let e = w.filter((e) => {
16765
16768
  if (x) {
16766
- let t = Cx(e.placement);
16769
+ let t = wx(e.placement);
16767
16770
  return t === _ || t === "y";
16768
16771
  }
16769
16772
  return !0;
@@ -16778,9 +16781,9 @@ var Bx = 50, Vx = async (e, t, n) => {
16778
16781
  return {};
16779
16782
  }
16780
16783
  };
16781
- }, Ux = /*#__PURE__*/ new Set(["left", "top"]);
16782
- async function Wx(e, t) {
16783
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = yx(n), s = bx(n), c = Cx(n) === "y", l = Ux.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = vx(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
16784
+ }, Wx = /*#__PURE__*/ new Set(["left", "top"]);
16785
+ async function Gx(e, t) {
16786
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = bx(n), s = xx(n), c = wx(n) === "y", l = Wx.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = yx(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
16784
16787
  mainAxis: d,
16785
16788
  crossAxis: 0,
16786
16789
  alignmentAxis: null
@@ -16797,13 +16800,13 @@ async function Wx(e, t) {
16797
16800
  y: p * u
16798
16801
  };
16799
16802
  }
16800
- var Gx = function(e) {
16803
+ var Kx = function(e) {
16801
16804
  return e === void 0 && (e = 0), {
16802
16805
  name: "offset",
16803
16806
  options: e,
16804
16807
  async fn(t) {
16805
16808
  var n;
16806
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Wx(t, e);
16809
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Gx(t, e);
16807
16810
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
16808
16811
  x: r + s.x,
16809
16812
  y: i + s.y,
@@ -16816,39 +16819,39 @@ var Gx = function(e) {
16816
16819
  };
16817
16820
  };
16818
16821
  // ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
16819
- function Kx() {
16822
+ function qx() {
16820
16823
  return typeof window < "u";
16821
16824
  }
16822
- function qx(e) {
16823
- return Xx(e) ? (e.nodeName || "").toLowerCase() : "#document";
16824
- }
16825
16825
  function Jx(e) {
16826
- var t;
16827
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
16826
+ return Zx(e) ? (e.nodeName || "").toLowerCase() : "#document";
16828
16827
  }
16829
16828
  function Yx(e) {
16830
- return ((Xx(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
16829
+ var t;
16830
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
16831
16831
  }
16832
16832
  function Xx(e) {
16833
- return Kx() ? e instanceof Node || e instanceof Jx(e).Node : !1;
16833
+ return ((Zx(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
16834
16834
  }
16835
16835
  function Zx(e) {
16836
- return Kx() ? e instanceof Element || e instanceof Jx(e).Element : !1;
16836
+ return qx() ? e instanceof Node || e instanceof Yx(e).Node : !1;
16837
16837
  }
16838
16838
  function Qx(e) {
16839
- return Kx() ? e instanceof HTMLElement || e instanceof Jx(e).HTMLElement : !1;
16839
+ return qx() ? e instanceof Element || e instanceof Yx(e).Element : !1;
16840
16840
  }
16841
16841
  function $x(e) {
16842
- return !Kx() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Jx(e).ShadowRoot;
16842
+ return qx() ? e instanceof HTMLElement || e instanceof Yx(e).HTMLElement : !1;
16843
16843
  }
16844
16844
  function eS(e) {
16845
- let { overflow: t, overflowX: n, overflowY: r, display: i } = dS(e);
16846
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
16845
+ return !qx() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Yx(e).ShadowRoot;
16847
16846
  }
16848
16847
  function tS(e) {
16849
- return /^(table|td|th)$/.test(qx(e));
16848
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = fS(e);
16849
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
16850
16850
  }
16851
16851
  function nS(e) {
16852
+ return /^(table|td|th)$/.test(Jx(e));
16853
+ }
16854
+ function rS(e) {
16852
16855
  try {
16853
16856
  if (e.matches(":popover-open")) return !0;
16854
16857
  } catch {}
@@ -16858,31 +16861,31 @@ function nS(e) {
16858
16861
  return !1;
16859
16862
  }
16860
16863
  }
16861
- var rS = /transform|translate|scale|rotate|perspective|filter/, iS = /paint|layout|strict|content/, aS = (e) => !!e && e !== "none", oS;
16862
- function sS(e) {
16863
- let t = Zx(e) ? dS(e) : e;
16864
- return aS(t.transform) || aS(t.translate) || aS(t.scale) || aS(t.rotate) || aS(t.perspective) || !lS() && (aS(t.backdropFilter) || aS(t.filter)) || rS.test(t.willChange || "") || iS.test(t.contain || "");
16865
- }
16864
+ var iS = /transform|translate|scale|rotate|perspective|filter/, aS = /paint|layout|strict|content/, oS = (e) => !!e && e !== "none", sS;
16866
16865
  function cS(e) {
16867
- let t = pS(e);
16868
- for (; Qx(t) && !uS(t);) {
16869
- if (sS(t)) return t;
16870
- if (nS(t)) return null;
16871
- t = pS(t);
16866
+ let t = Qx(e) ? fS(e) : e;
16867
+ return oS(t.transform) || oS(t.translate) || oS(t.scale) || oS(t.rotate) || oS(t.perspective) || !uS() && (oS(t.backdropFilter) || oS(t.filter)) || iS.test(t.willChange || "") || aS.test(t.contain || "");
16868
+ }
16869
+ function lS(e) {
16870
+ let t = mS(e);
16871
+ for (; $x(t) && !dS(t);) {
16872
+ if (cS(t)) return t;
16873
+ if (rS(t)) return null;
16874
+ t = mS(t);
16872
16875
  }
16873
16876
  return null;
16874
16877
  }
16875
- function lS() {
16876
- return oS ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), oS;
16877
- }
16878
- function uS(e) {
16879
- return /^(html|body|#document)$/.test(qx(e));
16878
+ function uS() {
16879
+ return sS ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), sS;
16880
16880
  }
16881
16881
  function dS(e) {
16882
- return Jx(e).getComputedStyle(e);
16882
+ return /^(html|body|#document)$/.test(Jx(e));
16883
16883
  }
16884
16884
  function fS(e) {
16885
- return Zx(e) ? {
16885
+ return Yx(e).getComputedStyle(e);
16886
+ }
16887
+ function pS(e) {
16888
+ return Qx(e) ? {
16886
16889
  scrollLeft: e.scrollLeft,
16887
16890
  scrollTop: e.scrollTop
16888
16891
  } : {
@@ -16890,101 +16893,101 @@ function fS(e) {
16890
16893
  scrollTop: e.scrollY
16891
16894
  };
16892
16895
  }
16893
- function pS(e) {
16894
- if (qx(e) === "html") return e;
16895
- let t = e.assignedSlot || e.parentNode || $x(e) && e.host || Yx(e);
16896
- return $x(t) ? t.host : t;
16897
- }
16898
16896
  function mS(e) {
16899
- let t = pS(e);
16900
- return uS(t) ? (e.ownerDocument || e).body : Qx(t) && eS(t) ? t : mS(t);
16897
+ if (Jx(e) === "html") return e;
16898
+ let t = e.assignedSlot || e.parentNode || eS(e) && e.host || Xx(e);
16899
+ return eS(t) ? t.host : t;
16901
16900
  }
16902
- function hS(e, t, n) {
16901
+ function hS(e) {
16902
+ let t = mS(e);
16903
+ return dS(t) ? (e.ownerDocument || e).body : $x(t) && tS(t) ? t : hS(t);
16904
+ }
16905
+ function gS(e, t, n) {
16903
16906
  t === void 0 && (t = []), n === void 0 && (n = !0);
16904
- let r = mS(e), i = r === e.ownerDocument?.body, a = Jx(r);
16907
+ let r = hS(e), i = r === e.ownerDocument?.body, a = Yx(r);
16905
16908
  if (i) {
16906
- let e = gS(a);
16907
- return t.concat(a, a.visualViewport || [], eS(r) ? r : [], e && n ? hS(e) : []);
16909
+ let e = _S(a);
16910
+ return t.concat(a, a.visualViewport || [], tS(r) ? r : [], e && n ? gS(e) : []);
16908
16911
  }
16909
- return t.concat(r, hS(r, [], n));
16912
+ return t.concat(r, gS(r, [], n));
16910
16913
  }
16911
- function gS(e) {
16914
+ function _S(e) {
16912
16915
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
16913
16916
  }
16914
16917
  // ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
16915
- function _S(e) {
16916
- let t = dS(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Qx(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = mx(n) !== a || mx(r) !== o;
16918
+ function vS(e) {
16919
+ let t = fS(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = $x(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = hx(n) !== a || hx(r) !== o;
16917
16920
  return s && (n = a, r = o), {
16918
16921
  width: n,
16919
16922
  height: r,
16920
16923
  $: s
16921
16924
  };
16922
16925
  }
16923
- function vS(e) {
16924
- return Zx(e) ? e : e.contextElement;
16925
- }
16926
16926
  function yS(e) {
16927
- let t = vS(e);
16928
- if (!Qx(t)) return gx(1);
16929
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = _S(t), o = (a ? mx(n.width) : n.width) / r, s = (a ? mx(n.height) : n.height) / i;
16927
+ return Qx(e) ? e : e.contextElement;
16928
+ }
16929
+ function bS(e) {
16930
+ let t = yS(e);
16931
+ if (!$x(t)) return _x(1);
16932
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = vS(t), o = (a ? hx(n.width) : n.width) / r, s = (a ? hx(n.height) : n.height) / i;
16930
16933
  return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
16931
16934
  x: o,
16932
16935
  y: s
16933
16936
  };
16934
16937
  }
16935
- var bS = /*#__PURE__*/ gx(0);
16936
- function xS(e) {
16937
- let t = Jx(e);
16938
- return !lS() || !t.visualViewport ? bS : {
16938
+ var xS = /*#__PURE__*/ _x(0);
16939
+ function SS(e) {
16940
+ let t = Yx(e);
16941
+ return !uS() || !t.visualViewport ? xS : {
16939
16942
  x: t.visualViewport.offsetLeft,
16940
16943
  y: t.visualViewport.offsetTop
16941
16944
  };
16942
16945
  }
16943
- function SS(e, t, n) {
16944
- return t === void 0 && (t = !1), !!n && t && n === Jx(e);
16946
+ function CS(e, t, n) {
16947
+ return t === void 0 && (t = !1), !!n && t && n === Yx(e);
16945
16948
  }
16946
- function CS(e, t, n, r) {
16949
+ function wS(e, t, n, r) {
16947
16950
  t === void 0 && (t = !1), n === void 0 && (n = !1);
16948
- let i = e.getBoundingClientRect(), a = vS(e), o = gx(1);
16949
- t && (r ? Zx(r) && (o = yS(r)) : o = yS(e));
16950
- let s = SS(a, n, r) ? xS(a) : gx(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
16951
+ let i = e.getBoundingClientRect(), a = yS(e), o = _x(1);
16952
+ t && (r ? Qx(r) && (o = bS(r)) : o = bS(e));
16953
+ let s = CS(a, n, r) ? SS(a) : _x(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
16951
16954
  if (a && r) {
16952
- let e = Jx(a), t = Zx(r) ? Jx(r) : r, n = e, i = gS(n);
16955
+ let e = Yx(a), t = Qx(r) ? Yx(r) : r, n = e, i = _S(n);
16953
16956
  for (; i && t !== n;) {
16954
- let e = yS(i), t = i.getBoundingClientRect(), r = dS(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
16955
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Jx(i), i = gS(n);
16957
+ let e = bS(i), t = i.getBoundingClientRect(), r = fS(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
16958
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Yx(i), i = _S(n);
16956
16959
  }
16957
16960
  }
16958
- return Lx({
16961
+ return Rx({
16959
16962
  width: u,
16960
16963
  height: d,
16961
16964
  x: c,
16962
16965
  y: l
16963
16966
  });
16964
16967
  }
16965
- function wS(e, t) {
16966
- let n = fS(e).scrollLeft;
16967
- return t ? t.left + n : CS(Yx(e)).left + n;
16968
- }
16969
16968
  function TS(e, t) {
16969
+ let n = pS(e).scrollLeft;
16970
+ return t ? t.left + n : wS(Xx(e)).left + n;
16971
+ }
16972
+ function ES(e, t) {
16970
16973
  let n = e.getBoundingClientRect();
16971
16974
  return {
16972
- x: n.left + t.scrollLeft - wS(e, n),
16975
+ x: n.left + t.scrollLeft - TS(e, n),
16973
16976
  y: n.top + t.scrollTop
16974
16977
  };
16975
16978
  }
16976
- function ES(e) {
16977
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Yx(r), s = t ? nS(t.floating) : !1;
16979
+ function DS(e) {
16980
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Xx(r), s = t ? rS(t.floating) : !1;
16978
16981
  if (r === o || s && a) return n;
16979
16982
  let c = {
16980
16983
  scrollLeft: 0,
16981
16984
  scrollTop: 0
16982
- }, l = gx(1), u = gx(0), d = Qx(r);
16983
- if ((d || !a) && ((qx(r) !== "body" || eS(o)) && (c = fS(r)), d)) {
16984
- let e = CS(r);
16985
- l = yS(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
16985
+ }, l = _x(1), u = _x(0), d = $x(r);
16986
+ if ((d || !a) && ((Jx(r) !== "body" || tS(o)) && (c = pS(r)), d)) {
16987
+ let e = wS(r);
16988
+ l = bS(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
16986
16989
  }
16987
- let f = o && !d && !a ? TS(o, c) : gx(0);
16990
+ let f = o && !d && !a ? ES(o, c) : _x(0);
16988
16991
  return {
16989
16992
  width: n.width * l.x,
16990
16993
  height: n.height * l.y,
@@ -16992,29 +16995,29 @@ function ES(e) {
16992
16995
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
16993
16996
  };
16994
16997
  }
16995
- function DS(e) {
16998
+ function OS(e) {
16996
16999
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
16997
17000
  }
16998
- function OS(e) {
16999
- let t = fS(e), n = e.ownerDocument.body, r = px(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = px(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + wS(e), o = -t.scrollTop;
17000
- return dS(n).direction === "rtl" && (a += px(e.clientWidth, n.clientWidth) - r), {
17001
+ function kS(e) {
17002
+ let t = pS(e), n = e.ownerDocument.body, r = mx(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = mx(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + TS(e), o = -t.scrollTop;
17003
+ return fS(n).direction === "rtl" && (a += mx(e.clientWidth, n.clientWidth) - r), {
17001
17004
  width: r,
17002
17005
  height: i,
17003
17006
  x: a,
17004
17007
  y: o
17005
17008
  };
17006
17009
  }
17007
- var kS = 25;
17008
- function AS(e, t, n) {
17010
+ var AS = 25;
17011
+ function jS(e, t, n) {
17009
17012
  n === void 0 && (n = "viewport");
17010
- let r = n === "layoutViewport", i = Jx(e), a = Yx(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
17013
+ let r = n === "layoutViewport", i = Yx(e), a = Xx(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
17011
17014
  if (o) {
17012
- let e = !lS() || t === "fixed";
17015
+ let e = !uS() || t === "fixed";
17013
17016
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
17014
17017
  }
17015
- if (wS(a) <= 0) {
17018
+ if (TS(a) <= 0) {
17016
17019
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
17017
- o <= kS && (s -= o);
17020
+ o <= AS && (s -= o);
17018
17021
  }
17019
17022
  return {
17020
17023
  width: s,
@@ -17023,8 +17026,8 @@ function AS(e, t, n) {
17023
17026
  y: u
17024
17027
  };
17025
17028
  }
17026
- function jS(e, t) {
17027
- let n = CS(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = yS(e);
17029
+ function MS(e, t) {
17030
+ let n = wS(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = bS(e);
17028
17031
  return {
17029
17032
  width: e.clientWidth * a.x,
17030
17033
  height: e.clientHeight * a.y,
@@ -17032,13 +17035,13 @@ function jS(e, t) {
17032
17035
  y: r * a.y
17033
17036
  };
17034
17037
  }
17035
- function MS(e, t, n) {
17038
+ function NS(e, t, n) {
17036
17039
  let r;
17037
- if (t === "viewport" || t === "layoutViewport") r = AS(e, n, t);
17038
- else if (t === "document") r = OS(Yx(e));
17039
- else if (Zx(t)) r = jS(t, n);
17040
+ if (t === "viewport" || t === "layoutViewport") r = jS(e, n, t);
17041
+ else if (t === "document") r = kS(Xx(e));
17042
+ else if (Qx(t)) r = MS(t, n);
17040
17043
  else {
17041
- let n = xS(e);
17044
+ let n = SS(e);
17042
17045
  r = {
17043
17046
  x: t.x - n.x,
17044
17047
  y: t.y - n.y,
@@ -17046,23 +17049,23 @@ function MS(e, t, n) {
17046
17049
  height: t.height
17047
17050
  };
17048
17051
  }
17049
- return Lx(r);
17052
+ return Rx(r);
17050
17053
  }
17051
- function NS(e, t) {
17054
+ function PS(e, t) {
17052
17055
  let n = t.get(e);
17053
17056
  if (n) return n;
17054
- let r = hS(e, [], !1).filter((e) => Zx(e) && qx(e) !== "body"), i = null, a = dS(e).position === "fixed", o = a ? pS(e) : e;
17055
- for (; Zx(o) && !uS(o);) {
17056
- let e = dS(o), t = sS(o), n = i ? i.position : a ? "fixed" : "";
17057
- !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = pS(o);
17057
+ let r = gS(e, [], !1).filter((e) => Qx(e) && Jx(e) !== "body"), i = null, a = fS(e).position === "fixed", o = a ? mS(e) : e;
17058
+ for (; Qx(o) && !dS(o);) {
17059
+ let e = fS(o), t = cS(o), n = i ? i.position : a ? "fixed" : "";
17060
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = mS(o);
17058
17061
  }
17059
17062
  return t.set(e, r), r;
17060
17063
  }
17061
- function PS(e) {
17062
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? nS(t) ? [] : NS(t, this._c) : [].concat(n), r], o = MS(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
17064
+ function FS(e) {
17065
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? rS(t) ? [] : PS(t, this._c) : [].concat(n), r], o = NS(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
17063
17066
  for (let e = 1; e < a.length; e++) {
17064
- let n = MS(t, a[e], i);
17065
- s = px(n.top, s), c = fx(n.right, c), l = fx(n.bottom, l), u = px(n.left, u);
17067
+ let n = NS(t, a[e], i);
17068
+ s = mx(n.top, s), c = px(n.right, c), l = px(n.bottom, l), u = mx(n.left, u);
17066
17069
  }
17067
17070
  return {
17068
17071
  width: c - u,
@@ -17071,24 +17074,24 @@ function PS(e) {
17071
17074
  y: s
17072
17075
  };
17073
17076
  }
17074
- function FS(e) {
17075
- let { width: t, height: n } = _S(e);
17077
+ function IS(e) {
17078
+ let { width: t, height: n } = vS(e);
17076
17079
  return {
17077
17080
  width: t,
17078
17081
  height: n
17079
17082
  };
17080
17083
  }
17081
- function IS(e, t, n) {
17082
- let r = Qx(t), i = Yx(t), a = n === "fixed", o = CS(e, !0, a, t), s = {
17084
+ function LS(e, t, n) {
17085
+ let r = $x(t), i = Xx(t), a = n === "fixed", o = wS(e, !0, a, t), s = {
17083
17086
  scrollLeft: 0,
17084
17087
  scrollTop: 0
17085
- }, c = gx(0);
17086
- if ((r || !a) && ((qx(t) !== "body" || eS(i)) && (s = fS(t)), r)) {
17087
- let e = CS(t, !0, a, t);
17088
+ }, c = _x(0);
17089
+ if ((r || !a) && ((Jx(t) !== "body" || tS(i)) && (s = pS(t)), r)) {
17090
+ let e = wS(t, !0, a, t);
17088
17091
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
17089
17092
  }
17090
- !r && i && (c.x = wS(i));
17091
- let l = i && !r && !a ? TS(i, s) : gx(0);
17093
+ !r && i && (c.x = TS(i));
17094
+ let l = i && !r && !a ? ES(i, s) : _x(0);
17092
17095
  return {
17093
17096
  x: o.left + s.scrollLeft - c.x - l.x,
17094
17097
  y: o.top + s.scrollTop - c.y - l.y,
@@ -17096,34 +17099,34 @@ function IS(e, t, n) {
17096
17099
  height: o.height
17097
17100
  };
17098
17101
  }
17099
- function LS(e) {
17100
- return dS(e).position === "static";
17102
+ function RS(e) {
17103
+ return fS(e).position === "static";
17101
17104
  }
17102
- function RS(e, t) {
17103
- if (!Qx(e) || dS(e).position === "fixed") return null;
17105
+ function zS(e, t) {
17106
+ if (!$x(e) || fS(e).position === "fixed") return null;
17104
17107
  if (t) return t(e);
17105
17108
  let n = e.offsetParent;
17106
- return Yx(e) === n && (n = n.ownerDocument.body), n;
17109
+ return Xx(e) === n && (n = n.ownerDocument.body), n;
17107
17110
  }
17108
- function zS(e, t) {
17109
- let n = Jx(e);
17110
- if (nS(e)) return n;
17111
- if (!Qx(e)) {
17112
- let t = pS(e);
17113
- for (; t && !uS(t);) {
17114
- if (Zx(t) && !LS(t)) return t;
17115
- t = pS(t);
17111
+ function BS(e, t) {
17112
+ let n = Yx(e);
17113
+ if (rS(e)) return n;
17114
+ if (!$x(e)) {
17115
+ let t = mS(e);
17116
+ for (; t && !dS(t);) {
17117
+ if (Qx(t) && !RS(t)) return t;
17118
+ t = mS(t);
17116
17119
  }
17117
17120
  return n;
17118
17121
  }
17119
- let r = RS(e, t);
17120
- for (; r && tS(r) && LS(r);) r = RS(r, t);
17121
- return r && uS(r) && LS(r) && !sS(r) ? n : r || cS(e) || n;
17122
+ let r = zS(e, t);
17123
+ for (; r && nS(r) && RS(r);) r = zS(r, t);
17124
+ return r && dS(r) && RS(r) && !cS(r) ? n : r || lS(e) || n;
17122
17125
  }
17123
- var BS = async function(e) {
17124
- let t = this.getOffsetParent || zS, n = this.getDimensions, r = await n(e.floating);
17126
+ var VS = async function(e) {
17127
+ let t = this.getOffsetParent || BS, n = this.getDimensions, r = await n(e.floating);
17125
17128
  return {
17126
- reference: IS(e.reference, await t(e.floating), e.strategy),
17129
+ reference: LS(e.reference, await t(e.floating), e.strategy),
17127
17130
  floating: {
17128
17131
  x: 0,
17129
17132
  y: 0,
@@ -17132,26 +17135,26 @@ var BS = async function(e) {
17132
17135
  }
17133
17136
  };
17134
17137
  };
17135
- function VS(e) {
17136
- return dS(e).direction === "rtl";
17137
- }
17138
- var HS = {
17139
- convertOffsetParentRelativeRectToViewportRelativeRect: ES,
17140
- getDocumentElement: Yx,
17141
- getClippingRect: PS,
17142
- getOffsetParent: zS,
17143
- getElementRects: BS,
17144
- getClientRects: DS,
17145
- getDimensions: FS,
17146
- getScale: yS,
17147
- isElement: Zx,
17148
- isRTL: VS
17138
+ function HS(e) {
17139
+ return fS(e).direction === "rtl";
17140
+ }
17141
+ var US = {
17142
+ convertOffsetParentRelativeRectToViewportRelativeRect: DS,
17143
+ getDocumentElement: Xx,
17144
+ getClippingRect: FS,
17145
+ getOffsetParent: BS,
17146
+ getElementRects: VS,
17147
+ getClientRects: OS,
17148
+ getDimensions: IS,
17149
+ getScale: bS,
17150
+ isElement: Qx,
17151
+ isRTL: HS
17149
17152
  };
17150
- function US(e, t) {
17153
+ function WS(e, t) {
17151
17154
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
17152
17155
  }
17153
- function WS(e, t, n) {
17154
- let r = null, i, a = Yx(e);
17156
+ function GS(e, t, n) {
17157
+ let r = null, i, a = Xx(e);
17155
17158
  function o() {
17156
17159
  var e;
17157
17160
  clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
@@ -17160,13 +17163,13 @@ function WS(e, t, n) {
17160
17163
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
17161
17164
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
17162
17165
  if (n || t(), !f || !p) return;
17163
- let m = hx(d), h = hx(a.clientWidth - (u + f)), g = hx(a.clientHeight - (d + p)), _ = hx(u), v = {
17166
+ let m = gx(d), h = gx(a.clientWidth - (u + f)), g = gx(a.clientHeight - (d + p)), _ = gx(u), v = {
17164
17167
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
17165
- threshold: px(0, fx(1, c)) || 1
17168
+ threshold: mx(0, px(1, c)) || 1
17166
17169
  }, y = !0;
17167
17170
  function b(t) {
17168
17171
  let n = t[0].intersectionRatio;
17169
- if (!US(l, e.getBoundingClientRect())) return s();
17172
+ if (!WS(l, e.getBoundingClientRect())) return s();
17170
17173
  if (n !== c) {
17171
17174
  if (!y) return s();
17172
17175
  n ? s(!1, n) : i = setTimeout(() => {
@@ -17185,18 +17188,18 @@ function WS(e, t, n) {
17185
17188
  }
17186
17189
  r.observe(e);
17187
17190
  }
17188
- let c = Jx(e), l = () => s(n);
17191
+ let c = Yx(e), l = () => s(n);
17189
17192
  return c.addEventListener("resize", l), s(!0), () => {
17190
17193
  c.removeEventListener("resize", l), o();
17191
17194
  };
17192
17195
  }
17193
- function GS(e, t, n, r) {
17196
+ function KS(e, t, n, r) {
17194
17197
  r === void 0 && (r = {});
17195
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = vS(e), u = i || a ? [...l ? hS(l) : [], ...t ? hS(t) : []] : [];
17198
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = yS(e), u = i || a ? [...l ? gS(l) : [], ...t ? gS(t) : []] : [];
17196
17199
  u.forEach((e) => {
17197
17200
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
17198
17201
  });
17199
- let d = l && s ? WS(l, n, a) : null, f = -1, p = null;
17202
+ let d = l && s ? GS(l, n, a) : null, f = -1, p = null;
17200
17203
  o && (p = new ResizeObserver((e) => {
17201
17204
  let [r] = e;
17202
17205
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -17204,11 +17207,11 @@ function GS(e, t, n, r) {
17204
17207
  (e = p) == null || e.observe(t);
17205
17208
  })), n();
17206
17209
  }), l && !c && p.observe(l), t && p.observe(t));
17207
- let m, h = c ? CS(e) : null;
17210
+ let m, h = c ? wS(e) : null;
17208
17211
  c && g();
17209
17212
  function g() {
17210
- let t = CS(e);
17211
- h && !US(h, t) && n(), h = t, m = requestAnimationFrame(g);
17213
+ let t = wS(e);
17214
+ h && !WS(h, t) && n(), h = t, m = requestAnimationFrame(g);
17212
17215
  }
17213
17216
  return n(), () => {
17214
17217
  var e;
@@ -17217,19 +17220,19 @@ function GS(e, t, n, r) {
17217
17220
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
17218
17221
  };
17219
17222
  }
17220
- var KS = Gx, qS = Hx, JS = (e, t, n) => {
17223
+ var qS = Kx, JS = Ux, YS = (e, t, n) => {
17221
17224
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
17222
- ...HS,
17225
+ ...US,
17223
17226
  ...i.platform,
17224
17227
  _c: r
17225
17228
  };
17226
- return Vx(e, t, {
17229
+ return Hx(e, t, {
17227
17230
  ...i,
17228
17231
  platform: a
17229
17232
  });
17230
17233
  };
17231
- // ../../node_modules/.pnpm/@tiptap+suggestion@3.33.0_@floating-ui+dom@1.8.0_@tiptap+core@3.33.0_@tiptap+pm@3.33.0__@tiptap+pm@3.33.0/node_modules/@tiptap/suggestion/dist/index.js
17232
- function YS(e) {
17234
+ // ../../node_modules/.pnpm/@tiptap+suggestion@3.33.1_@floating-ui+dom@1.8.0_@tiptap+core@3.33.1_@tiptap+pm@3.33.1__@tiptap+pm@3.33.1/node_modules/@tiptap/suggestion/dist/index.js
17235
+ function XS(e) {
17233
17236
  let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = $f(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), p = o.nodeBefore?.isText && o.nodeBefore.text;
17234
17237
  if (!p) return null;
17235
17238
  let m = o.pos - p.length, h = Array.from(p.matchAll(f)).pop();
@@ -17246,7 +17249,7 @@ function YS(e) {
17246
17249
  text: h[0]
17247
17250
  } : null;
17248
17251
  }
17249
- function XS(e) {
17252
+ function ZS(e) {
17250
17253
  return e.docChanged ? e.steps.some((e) => {
17251
17254
  let t = e.slice;
17252
17255
  if (!t?.content) return !1;
@@ -17254,7 +17257,7 @@ function XS(e) {
17254
17257
  return /\s/.test(n);
17255
17258
  }) : !1;
17256
17259
  }
17257
- function ZS(e) {
17260
+ function QS(e) {
17258
17261
  return () => {
17259
17262
  let { top: t, right: n, bottom: r, left: i } = e.view.coordsAtPos(e.state.selection.$anchor.pos);
17260
17263
  try {
@@ -17264,13 +17267,13 @@ function ZS(e) {
17264
17267
  }
17265
17268
  };
17266
17269
  }
17267
- function QS(e, t, n, r) {
17270
+ function $S(e, t, n, r) {
17268
17271
  return n ? () => {
17269
17272
  let n = r.getState(e.state);
17270
17273
  return t.dom.querySelector(`[data-decoration-id="${n?.decorationId}"]`)?.getBoundingClientRect() || null;
17271
- } : ZS(e);
17274
+ } : QS(e);
17272
17275
  }
17273
- function $S({ match: e, dismissedRange: t, state: n, transaction: r, editor: i, shouldResetDismissed: a, effectiveAllowSpaces: o }) {
17276
+ function eC({ match: e, dismissedRange: t, state: n, transaction: r, editor: i, shouldResetDismissed: a, effectiveAllowSpaces: o }) {
17274
17277
  return a?.({
17275
17278
  editor: i,
17276
17279
  state: n,
@@ -17278,13 +17281,13 @@ function $S({ match: e, dismissedRange: t, state: n, transaction: r, editor: i,
17278
17281
  match: e,
17279
17282
  transaction: r,
17280
17283
  allowSpaces: o
17281
- }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !XS(r);
17284
+ }) ? !1 : o ? e.range.from === t.from : e.range.from === t.from && !ZS(r);
17282
17285
  }
17283
- function eC({ view: e, pluginKeyRef: t }) {
17286
+ function tC({ view: e, pluginKeyRef: t }) {
17284
17287
  let n = e.state.tr.setMeta(t, { exit: !0 });
17285
17288
  e.dispatch(n);
17286
17289
  }
17287
- function tC({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
17290
+ function nC({ pluginKey: e, decorationTag: t, decorationClass: n, decorationContent: r, decorationEmptyClass: i, renderer: a, dispatchExit: o }) {
17288
17291
  return {
17289
17292
  handleKeyDown(t, n) {
17290
17293
  var r;
@@ -17317,7 +17320,7 @@ function tC({ pluginKey: e, decorationTag: t, decorationClass: n, decorationCont
17317
17320
  }
17318
17321
  };
17319
17322
  }
17320
- function nC({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, findSuggestionMatch: o, allow: s, shouldShow: c, shouldKeepDismissed: l, pluginKey: u }) {
17323
+ function rC({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, findSuggestionMatch: o, allow: s, shouldShow: c, shouldKeepDismissed: l, pluginKey: u }) {
17321
17324
  return {
17322
17325
  init() {
17323
17326
  return {
@@ -17376,7 +17379,7 @@ function nC({ editor: e, char: t, effectiveAllowSpaces: n, allowToIncludeChar: r
17376
17379
  }
17377
17380
  };
17378
17381
  }
17379
- function rC({ editor: e, items: t }) {
17382
+ function iC({ editor: e, items: t }) {
17380
17383
  let n = null, r = null, i = null, a = () => {
17381
17384
  r !== null && (clearTimeout(r), r = null), i?.(), i = null;
17382
17385
  }, o = (e) => new Promise((t) => {
@@ -17410,19 +17413,19 @@ function rC({ editor: e, items: t }) {
17410
17413
  }
17411
17414
  };
17412
17415
  }
17413
- function iC({ placement: e, offset: t, flip: n, floatingUi: r }) {
17416
+ function aC({ placement: e, offset: t, flip: n, floatingUi: r }) {
17414
17417
  var i;
17415
- let a = [KS({
17418
+ let a = [qS({
17416
17419
  mainAxis: t.mainAxis ?? 4,
17417
17420
  crossAxis: t.crossAxis ?? 0
17418
17421
  })];
17419
- return n && a.push(qS()), r != null && (i = r.middleware) != null && i.length && a.push(...r.middleware), {
17422
+ return n && a.push(JS()), r != null && (i = r.middleware) != null && i.length && a.push(...r.middleware), {
17420
17423
  placement: e,
17421
17424
  strategy: r?.strategy ?? "absolute",
17422
17425
  middleware: a
17423
17426
  };
17424
17427
  }
17425
- function aC(e) {
17428
+ function oC(e) {
17426
17429
  if (e instanceof HTMLElement) return e;
17427
17430
  if (typeof e == "string") try {
17428
17431
  let t = document.querySelector(e);
@@ -17432,15 +17435,15 @@ function aC(e) {
17432
17435
  }
17433
17436
  return document.body;
17434
17437
  }
17435
- function oC({ getReferenceRect: e, contextElement: t, config: n, container: r, dismissOnOutsideClick: i, dismiss: a }) {
17438
+ function sC({ getReferenceRect: e, contextElement: t, config: n, container: r, dismissOnOutsideClick: i, dismiss: a }) {
17436
17439
  return (o, s = {}) => {
17437
17440
  let c = {
17438
17441
  getBoundingClientRect: () => e() ?? new DOMRect(),
17439
17442
  contextElement: t
17440
17443
  }, l = !1, u = !o.isConnected;
17441
- u && aC(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
17442
- let d = GS(c, o, () => {
17443
- JS(c, o, {
17444
+ u && oC(r).appendChild(o), s.onPosition || (o.style.visibility = "hidden", o.style.width = "max-content");
17445
+ let d = KS(c, o, () => {
17446
+ YS(c, o, {
17444
17447
  placement: n.placement,
17445
17448
  strategy: n.strategy,
17446
17449
  middleware: n.middleware
@@ -17465,11 +17468,11 @@ function oC({ getReferenceRect: e, contextElement: t, config: n, container: r, d
17465
17468
  };
17466
17469
  };
17467
17470
  }
17468
- function sC({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i, debounce: a, initialItems: o, placement: s, offset: c, container: l, flip: u, floatingUi: d, dismissOnOutsideClick: f, command: p, clientRectFor: m, dispatchExit: h }) {
17469
- let g, _ = rC({
17471
+ function cC({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i, debounce: a, initialItems: o, placement: s, offset: c, container: l, flip: u, floatingUi: d, dismissOnOutsideClick: f, command: p, clientRectFor: m, dispatchExit: h }) {
17472
+ let g, _ = iC({
17470
17473
  editor: e,
17471
17474
  items: n
17472
- }), v = iC({
17475
+ }), v = aC({
17473
17476
  placement: s,
17474
17477
  offset: c,
17475
17478
  flip: u,
@@ -17522,7 +17525,7 @@ function sC({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
17522
17525
  container: l,
17523
17526
  flip: u,
17524
17527
  floatingUi: v,
17525
- mount: oC({
17528
+ mount: sC({
17526
17529
  getReferenceRect: te,
17527
17530
  contextElement: n.dom,
17528
17531
  config: v,
@@ -17574,24 +17577,24 @@ function sC({ editor: e, pluginKey: t, items: n, renderer: r, minQueryLength: i,
17574
17577
  }
17575
17578
  };
17576
17579
  }
17577
- var cC = new P("suggestion");
17578
- function lC({ pluginKey: e = cC, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], minQueryLength: p = 0, debounce: m = 0, initialItems: h, placement: g = "bottom-start", offset: _ = {}, container: v, flip: y = !0, floatingUi: b, dismissOnOutsideClick: x = !0, render: S = () => ({}), allow: ee = () => !0, findSuggestionMatch: C = YS, shouldShow: w, shouldResetDismissed: te }) {
17579
- let T = S?.(), ne = r && !i, E = (n, r) => QS(t, n, r, e);
17580
+ var lC = new P("suggestion");
17581
+ function uC({ pluginKey: e = lC, editor: t, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: a = [" "], startOfLine: o = !1, decorationTag: s = "span", decorationClass: c = "suggestion", decorationContent: l = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], minQueryLength: p = 0, debounce: m = 0, initialItems: h, placement: g = "bottom-start", offset: _ = {}, container: v, flip: y = !0, floatingUi: b, dismissOnOutsideClick: x = !0, render: S = () => ({}), allow: ee = () => !0, findSuggestionMatch: C = XS, shouldShow: w, shouldResetDismissed: te }) {
17582
+ let T = S?.(), ne = r && !i, E = (n, r) => $S(t, n, r, e);
17580
17583
  function re(e) {
17581
- return $S({
17584
+ return eC({
17582
17585
  ...e,
17583
17586
  editor: t,
17584
17587
  shouldResetDismissed: te,
17585
17588
  effectiveAllowSpaces: ne
17586
17589
  });
17587
17590
  }
17588
- let D = (t) => eC({
17591
+ let D = (t) => tC({
17589
17592
  view: t,
17590
17593
  pluginKeyRef: e
17591
17594
  });
17592
17595
  return new N({
17593
17596
  key: e,
17594
- view: () => sC({
17597
+ view: () => cC({
17595
17598
  editor: t,
17596
17599
  pluginKey: e,
17597
17600
  items: f,
@@ -17609,7 +17612,7 @@ function lC({ pluginKey: e = cC, editor: t, char: n = "@", allowSpaces: r = !1,
17609
17612
  clientRectFor: E,
17610
17613
  dispatchExit: D
17611
17614
  }),
17612
- state: nC({
17615
+ state: rC({
17613
17616
  editor: t,
17614
17617
  char: n,
17615
17618
  effectiveAllowSpaces: ne,
@@ -17622,7 +17625,7 @@ function lC({ pluginKey: e = cC, editor: t, char: n = "@", allowSpaces: r = !1,
17622
17625
  shouldKeepDismissed: re,
17623
17626
  pluginKey: e
17624
17627
  }),
17625
- props: tC({
17628
+ props: nC({
17626
17629
  pluginKey: e,
17627
17630
  decorationTag: s,
17628
17631
  decorationClass: c,
@@ -17633,7 +17636,7 @@ function lC({ pluginKey: e = cC, editor: t, char: n = "@", allowSpaces: r = !1,
17633
17636
  })
17634
17637
  });
17635
17638
  }
17636
- var uC = lC;
17637
- export { qm as _, Bb as a, Y_ as c, mh as d, fh as f, Gp as g, Y as h, Ub as i, K_ as l, $m as m, Jb as n, tv as o, uh as p, rx as r, Q_ as s, uC as t, x_ as u, em as v, J as y };
17639
+ var dC = uC;
17640
+ export { Jm as _, Vb as a, X_ as c, hh as d, ph as f, Gp as g, Y as h, Wb as i, q_ as l, eh as m, Yb as n, nv as o, dh as p, ix as r, $_ as s, dC as t, S_ as u, em as v, J as y };
17638
17641
 
17639
- //# sourceMappingURL=tiptap-B7gxx0aJ.js.map
17642
+ //# sourceMappingURL=tiptap-D9amDW4u.js.map