@templatical/editor 0.60.2 → 0.60.4

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 (194) hide show
  1. package/dist/{AiChatPanel-DPoq2Til.js → AiChatPanel-CjUnhJGB.js} +8 -8
  2. package/dist/{AiPanels-UdfhAzzu.js → AiPanels-DwI9KjjI.js} +1 -1
  3. package/dist/{AiRewriteMenu-Boor11-X.js → AiRewriteMenu-Bh1cIX8F.js} +6 -6
  4. package/dist/{BlockIssueBadge-DQ_6NI4p.js → BlockIssueBadge-Bug5iqcK.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-Bnkex45Y.js → BlockPreviewCanvas-C_N6f_FS.js} +3 -3
  6. package/dist/{CloudPanels-CJ-UuA_Y.js → CloudPanels-BS49EsuN.js} +3 -3
  7. package/dist/{CollaborationNotices-PqWv0q8W.js → CollaborationNotices-BM35YG72.js} +1 -1
  8. package/dist/{CollaboratorBar-p-_PWqXW.js → CollaboratorBar-DMsEOndt.js} +1 -1
  9. package/dist/{CommentsPanel-BUo-YhSX.js → CommentsPanel-BSLk23YP.js} +1 -1
  10. package/dist/{CommentsSidebar-D_Pz7FPz.js → CommentsSidebar-L-DgP_kM.js} +10 -10
  11. package/dist/{CountdownToolbar-BQdhVNaK.js → CountdownToolbar-B6erqTbz.js} +3 -3
  12. package/dist/{IssuesPanel-C7mBrK6a.js → IssuesPanel-CeCvUfa7.js} +8 -8
  13. package/dist/{LanguageMenu-S7L270RN.js → LanguageMenu-DsfCHdVi.js} +8 -8
  14. package/dist/{LocaleNotices-CAvDAawJ.js → LocaleNotices-BxR3xcLl.js} +2 -2
  15. package/dist/{LogicTagInsertButton-Clc3JTg_.js → LogicTagInsertButton-BzEZUTRZ.js} +3 -3
  16. package/dist/{MediaEditModal-YXOL0d_y.js → MediaEditModal-Bg-7RojG.js} +1 -1
  17. package/dist/{MediaPanels-VCv5epgs.js → MediaPanels-E9gLZ1Qb.js} +1 -1
  18. package/dist/{MergeTagInput-B5a9noTB.js → MergeTagInput-By2FSStk.js} +1 -1
  19. package/dist/{MergeTagModeToggle-D1r2aH5x.js → MergeTagModeToggle-DtjOZhoD.js} +3 -3
  20. package/dist/{MergeTagTextarea-CA9dPfMH.js → MergeTagTextarea-q6eeDD2l.js} +2 -2
  21. package/dist/{ParagraphEditor-CGUGIhJo.js → ParagraphEditor-25SNi_8O.js} +23 -23
  22. package/dist/{RestoreVersionDialog-P6pwVWGs.js → RestoreVersionDialog-BXtCxJF1.js} +3 -3
  23. package/dist/{RichTextEditorContent-gnRxu4-L.js → RichTextEditorContent-B1p7Ykq8.js} +4 -4
  24. package/dist/{SaveBlockDialog-SSD-GEXA.js → SaveBlockDialog-k1lxEBVW.js} +7 -7
  25. package/dist/{SavedBlocksBrowserModal-Cs6zBFlE.js → SavedBlocksBrowserModal-CV-8mDPj.js} +9 -9
  26. package/dist/{SavedBlocksPanels-JJAFQOQO.js → SavedBlocksPanels-9nZj1jG_.js} +1 -1
  27. package/dist/{SavedBlocksPickBar-DMOHjX7S.js → SavedBlocksPickBar-Dy6NN9tm.js} +2 -2
  28. package/dist/{TemplateSettings-DsaSsCC8.js → TemplateSettings-DWxdUdM5.js} +6 -6
  29. package/dist/{TestEmailModal-Cbt5u2GF.js → TestEmailModal-BAkkZTaZ.js} +7 -7
  30. package/dist/{TestEmailPanel-BQNerB-E.js → TestEmailPanel-ccT2E3em.js} +1 -1
  31. package/dist/{TitleEditor-BuctoHHf.js → TitleEditor-B19dYnER.js} +9 -9
  32. package/dist/{Toolbar-Br0W6NE0.js → Toolbar-DxlZq_36.js} +27 -27
  33. package/dist/{TplModal-DJMLN1_R.js → TplModal-Bp2qPmQw.js} +1 -1
  34. package/dist/{VersionHistoryMenu-D-RCk3oB.js → VersionHistoryMenu-B3-xJ7GO.js} +5 -5
  35. package/dist/{VersionHistoryPanels-DvrD5VaM.js → VersionHistoryPanels-wAVDmhnP.js} +1 -1
  36. package/dist/{VersionPreviewBanner-DMg2sw3V.js → VersionPreviewBanner-DLAB4ZbS.js} +1 -1
  37. package/dist/{WrapperBlock-Cp0Mo8HA.js → WrapperBlock-DHnD6Exl.js} +2 -2
  38. package/dist/{blockTypeIcons-BePGuX0b.js → blockTypeIcons-C691ZY1l.js} +3 -3
  39. package/dist/bundle-stats.json +6 -6
  40. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js → AiChatPanel-DTYmFRwb.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js.map → AiChatPanel-DTYmFRwb.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js → AiPanels-BW9ze-6O.js} +2 -2
  43. package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js.map → AiPanels-BW9ze-6O.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiRewriteMenu-DIcUZQdv.js → AiRewriteMenu-B9b92d0R.js} +4 -4
  45. package/dist/cdn/chunks/{AiRewriteMenu-DIcUZQdv.js.map → AiRewriteMenu-B9b92d0R.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js → BlockIssueBadge-fYeNnepj.js} +2 -2
  47. package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js.map → BlockIssueBadge-fYeNnepj.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-CyY5_via.js → BlockPreviewCanvas-CLid1x0c.js} +4 -4
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CyY5_via.js.map → BlockPreviewCanvas-CLid1x0c.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-Cmf0SHez.js → CloudPanels-D4dslsyk.js} +3 -3
  51. package/dist/cdn/chunks/{CloudPanels-Cmf0SHez.js.map → CloudPanels-D4dslsyk.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js → CollaborationNotices-COkmBmps.js} +2 -2
  53. package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js.map → CollaborationNotices-COkmBmps.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js → CollaboratorBar-BSzI8YIU.js} +2 -2
  55. package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js.map → CollaboratorBar-BSzI8YIU.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js → CommentsPanel-BynxXJ-F.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js.map → CommentsPanel-BynxXJ-F.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js → CommentsSidebar-C81N5Hwr.js} +2 -2
  59. package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js.map → CommentsSidebar-C81N5Hwr.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js → CountdownToolbar-f1aqEba0.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js.map → CountdownToolbar-f1aqEba0.js.map} +1 -1
  62. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js → IssuesPanel-DgxiS3hF.js} +2 -2
  63. package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js.map → IssuesPanel-DgxiS3hF.js.map} +1 -1
  64. package/dist/cdn/chunks/{LanguageMenu-BBv0oBs-.js → LanguageMenu-CJp7XdfG.js} +3 -3
  65. package/dist/cdn/chunks/{LanguageMenu-BBv0oBs-.js.map → LanguageMenu-CJp7XdfG.js.map} +1 -1
  66. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js → LocaleNotices-D5vZzcUj.js} +2 -2
  67. package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js.map → LocaleNotices-D5vZzcUj.js.map} +1 -1
  68. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js → LogicTagInsertButton-DGg1Wvhp.js} +2 -2
  69. package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js.map → LogicTagInsertButton-DGg1Wvhp.js.map} +1 -1
  70. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js → MediaEditModal-BQO6ggJK.js} +2 -2
  71. package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js.map → MediaEditModal-BQO6ggJK.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js → MediaPanels-Ciahwsyt.js} +2 -2
  73. package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js.map → MediaPanels-Ciahwsyt.js.map} +1 -1
  74. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js → MergeTagInput-BVfTwujW.js} +2 -2
  75. package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js.map → MergeTagInput-BVfTwujW.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js → MergeTagModeToggle-BoI0C1Y6.js} +2 -2
  77. package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js.map → MergeTagModeToggle-BoI0C1Y6.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js → MergeTagTextarea-DMXZgGUF.js} +3 -3
  79. package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js.map → MergeTagTextarea-DMXZgGUF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-Dc0fJ53q.js → ParagraphEditor-Ce7_Ix0K.js} +24 -24
  81. package/dist/cdn/chunks/{ParagraphEditor-Dc0fJ53q.js.map → ParagraphEditor-Ce7_Ix0K.js.map} +1 -1
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CNTMRqG2.js → RestoreVersionDialog-JmMLhN6G.js} +3 -3
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CNTMRqG2.js.map → RestoreVersionDialog-JmMLhN6G.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js → RichTextEditorContent-D3ihUF8v.js} +4 -4
  85. package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js.map → RichTextEditorContent-D3ihUF8v.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CQpCQtGe.js → SaveBlockDialog-B-2amBN5.js} +6 -6
  87. package/dist/cdn/chunks/{SaveBlockDialog-CQpCQtGe.js.map → SaveBlockDialog-B-2amBN5.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-npOfe-.js → SavedBlocksBrowserModal-BR6fQ222.js} +6 -6
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-npOfe-.js.map → SavedBlocksBrowserModal-BR6fQ222.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Bab-1ZgZ.js → SavedBlocksPanels-DVNNshfr.js} +2 -2
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Bab-1ZgZ.js.map → SavedBlocksPanels-DVNNshfr.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-DDcxSRxT.js → SavedBlocksPickBar-BfxLHLQV.js} +3 -3
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-DDcxSRxT.js.map → SavedBlocksPickBar-BfxLHLQV.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js → TemplateSettings-TMFrRV2c.js} +4 -4
  95. package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js.map → TemplateSettings-TMFrRV2c.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailModal-B-07GUK1.js → TestEmailModal-tTU35BKZ.js} +6 -6
  97. package/dist/cdn/chunks/{TestEmailModal-B-07GUK1.js.map → TestEmailModal-tTU35BKZ.js.map} +1 -1
  98. package/dist/cdn/chunks/{TestEmailPanel-Rk6ZxlY6.js → TestEmailPanel-BNJBVwx0.js} +2 -2
  99. package/dist/cdn/chunks/{TestEmailPanel-Rk6ZxlY6.js.map → TestEmailPanel-BNJBVwx0.js.map} +1 -1
  100. package/dist/cdn/chunks/{TitleEditor-I7wLUm-M.js → TitleEditor-BbscL_C1.js} +8 -8
  101. package/dist/cdn/chunks/{TitleEditor-I7wLUm-M.js.map → TitleEditor-BbscL_C1.js.map} +1 -1
  102. package/dist/cdn/chunks/{Toolbar-czJfutfE.js → Toolbar-BxzyS69X.js} +16 -16
  103. package/dist/cdn/chunks/{Toolbar-czJfutfE.js.map → Toolbar-BxzyS69X.js.map} +1 -1
  104. package/dist/cdn/chunks/{TplModal-CUF6ldtn.js → TplModal-Bzhc_l8y.js} +2 -2
  105. package/dist/cdn/chunks/{TplModal-CUF6ldtn.js.map → TplModal-Bzhc_l8y.js.map} +1 -1
  106. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js → VersionHistoryMenu-DTDO48HI.js} +2 -2
  107. package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js.map → VersionHistoryMenu-DTDO48HI.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryPanels-CPGokA56.js → VersionHistoryPanels-Bbb1xUJs.js} +2 -2
  109. package/dist/cdn/chunks/{VersionHistoryPanels-CPGokA56.js.map → VersionHistoryPanels-Bbb1xUJs.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js → VersionPreviewBanner-C1H_fYAr.js} +2 -2
  111. package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js.map → VersionPreviewBanner-C1H_fYAr.js.map} +1 -1
  112. package/dist/cdn/chunks/{WrapperBlock-BOLiH6jD.js → WrapperBlock-BboijK5T.js} +3 -3
  113. package/dist/cdn/chunks/{WrapperBlock-BOLiH6jD.js.map → WrapperBlock-BboijK5T.js.map} +1 -1
  114. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js → blockTypeIcons-ZKw-Eiu0.js} +2 -2
  115. package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js.map → blockTypeIcons-ZKw-Eiu0.js.map} +1 -1
  116. package/dist/cdn/chunks/{composables-A-9pkE2t.js → composables-C77dGo-I.js} +7 -7
  117. package/dist/cdn/chunks/{composables-A-9pkE2t.js.map → composables-C77dGo-I.js.map} +1 -1
  118. package/dist/cdn/chunks/dompurify-BflADeuH.js +850 -0
  119. package/dist/cdn/chunks/dompurify-BflADeuH.js.map +1 -0
  120. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js → editor-modal-BlSmX9Ch.js} +4 -4
  121. package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js.map → editor-modal-BlSmX9Ch.js.map} +1 -1
  122. package/dist/cdn/chunks/en-jObtIVCp.js +1 -0
  123. package/dist/cdn/chunks/{extensions-BPZirXpF.js → extensions-Bq9nXmBP.js} +3 -3
  124. package/dist/cdn/chunks/{extensions-BPZirXpF.js.map → extensions-Bq9nXmBP.js.map} +1 -1
  125. package/dist/cdn/chunks/{icons-CWEBTtbR.js → icons-DdVB-5WO.js} +28 -28
  126. package/dist/cdn/chunks/{icons-CWEBTtbR.js.map → icons-DdVB-5WO.js.map} +1 -1
  127. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js → sanitizeHtml-Plkmw1Qt.js} +2 -2
  128. package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js.map → sanitizeHtml-Plkmw1Qt.js.map} +1 -1
  129. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js → socialIcons-CSe4YJ52.js} +2 -2
  130. package/dist/cdn/chunks/{socialIcons-DMelHF3p.js.map → socialIcons-CSe4YJ52.js.map} +1 -1
  131. package/dist/cdn/chunks/{src-CCQf19hy.js → src-1MSPRtI8.js} +105 -104
  132. package/dist/cdn/chunks/src-1MSPRtI8.js.map +1 -0
  133. package/dist/cdn/chunks/{tiptap-D9amDW4u.js → tiptap-DDhueoan.js} +3061 -3050
  134. package/dist/cdn/chunks/tiptap-DDhueoan.js.map +1 -0
  135. package/dist/cdn/editor.js +16 -16
  136. package/dist/{check-C82yyyf1.js → check-8ZykoWzl.js} +1 -1
  137. package/dist/{chevron-down-BaBVjNbM.js → chevron-down-D_CUJHwi.js} +1 -1
  138. package/dist/{chevron-right-DkS-bw8X.js → chevron-right-B2WYkQtG.js} +1 -1
  139. package/dist/{chevron-up-C1KzUIK4.js → chevron-up-L-H27use.js} +1 -1
  140. package/dist/{circle-exclamation-point-DsmqtTUQ.js → circle-exclamation-point-BCx1tR91.js} +1 -1
  141. package/dist/{clock-dpIs7vo0.js → clock-DOOnNINY.js} +1 -1
  142. package/dist/{composables-CT0_xtqC.js → composables-Bu_OmyjT.js} +13 -13
  143. package/dist/{createLucideIcon-BSam2AUu.js → createLucideIcon-BKeRiObH.js} +5 -5
  144. package/dist/{dist-BNrGwgev.js → dist-B1bGGOA0.js} +2 -2
  145. package/dist/{dist-BPVNNdTv.js → dist-C3ZVR_pd.js} +2 -2
  146. package/dist/{dist-C7YLw60i.js → dist-C8aVVj28.js} +2 -2
  147. package/dist/dist-CTzstDyz.js +4 -0
  148. package/dist/{dist-DoWk1r7z.js → dist-CcxrHURm.js} +1882 -1869
  149. package/dist/{dist-CuRjmtWu.js → dist-D41-1sSL.js} +6 -6
  150. package/dist/{dist-fDsB6dCL.js → dist-DRJhbfT9.js} +2 -2
  151. package/dist/{dist-COvAA64n.js → dist-DkQutATU.js} +2 -2
  152. package/dist/{dist-DG_AWt8v.js → dist-DyrUc7rM.js} +2 -2
  153. package/dist/{dist-DYtuc3jc.js → dist-p_84-Inl.js} +2 -2
  154. package/dist/{dist-CBnAqr27.js → dist-tG9_FTOs.js} +2 -2
  155. package/dist/dist-zQ8L1LNg.js +4 -0
  156. package/dist/{editor-modal-odubnc9x.js → editor-modal-CRtEWHbQ.js} +15 -15
  157. package/dist/en-CMswCXqE.js +1 -0
  158. package/dist/{extensions-C7OLgMEj.js → extensions-zHf8YFRw.js} +4 -4
  159. package/dist/{eye-CxCHEszj.js → eye-BjZOVab7.js} +1 -1
  160. package/dist/{image-DvXPzqNd.js → image-g47lDP0J.js} +1 -1
  161. package/dist/{info-2KHWaZ2L.js → info-DXij4QjB.js} +1 -1
  162. package/dist/{link-_OmrcJMv.js → link-BFJF0mWz.js} +1 -1
  163. package/dist/{list-Dekd7JE8.js → list-Cso9vnLq.js} +1 -1
  164. package/dist/{loader-circle-D_hT5mFS.js → loader-circle-uLY01591.js} +1 -1
  165. package/dist/{message-circle-DDbiG-jz.js → message-circle-amY03UMa.js} +1 -1
  166. package/dist/{package-cORUe57D.js → package-DnjoSQa1.js} +1 -1
  167. package/dist/{pencil-D67H4fxq.js → pencil-D1HBG4pb.js} +1 -1
  168. package/dist/{plus-BpTZAx28.js → plus-PzFvtj-Z.js} +1 -1
  169. package/dist/{refresh-cw-B4T0IFwI.js → refresh-cw-BPDv-S-4.js} +1 -1
  170. package/dist/{rotate-ccw-BDQgjpuo.js → rotate-ccw-DQZVEj1V.js} +1 -1
  171. package/dist/sanitizeHtml-DxmFirMi.js +945 -0
  172. package/dist/{search-Dp9pkaVt.js → search-BUBeKVdD.js} +1 -1
  173. package/dist/{send-DO9GhgCH.js → send-BJEuoIc2.js} +1 -1
  174. package/dist/{smartphone-CPW3I3hV.js → smartphone-DZ5xyNU4.js} +1 -1
  175. package/dist/{socialIcons-DXOO2y7u.js → socialIcons-mWE33bOn.js} +3 -3
  176. package/dist/{sparkles-CIBjNfij.js → sparkles-zWGR8hrs.js} +1 -1
  177. package/dist/{square-3W65qrrH.js → square--3H462TJ.js} +1 -1
  178. package/dist/templatical-editor.js +30 -30
  179. package/dist/{text-align-start-Bs70tpRU.js → text-align-start-B5Dx2Ylg.js} +13 -13
  180. package/dist/{trash-CTzhAm1o.js → trash-CJsobpw0.js} +1 -1
  181. package/dist/{triangle-exclamation-point-D_13CuJY.js → triangle-exclamation-point-Bi7ZKTZU.js} +1 -1
  182. package/dist/{upload-DFxkP9MI.js → upload-DZ_-FNJ4.js} +1 -1
  183. package/dist/{useScrollToBlock-194ePl4q.js → useScrollToBlock-eZXiGa8o.js} +1 -1
  184. package/dist/{x-D7L8mLHJ.js → x-CuyPLm0U.js} +1 -1
  185. package/package.json +23 -23
  186. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +0 -872
  187. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +0 -1
  188. package/dist/cdn/chunks/en-DlDEofnd.js +0 -1
  189. package/dist/cdn/chunks/src-CCQf19hy.js.map +0 -1
  190. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +0 -1
  191. package/dist/dist-AyAOL8Bj.js +0 -4
  192. package/dist/dist-DkPTWQuO.js +0 -4
  193. package/dist/en-CAImT1hl.js +0 -1
  194. package/dist/sanitizeHtml-Ru5_-IbM.js +0 -973
@@ -1,973 +0,0 @@
1
- import { Dt as e, d as t, f as n, h as r } from "./dist-DX_IQgcU.js";
2
- import { t as i } from "./createLucideIcon-BSam2AUu.js";
3
- var a = i({
4
- name: "languages",
5
- size: 24,
6
- node: [
7
- ["path", {
8
- d: "m5 8 6 6",
9
- key: "1wu5hv"
10
- }],
11
- ["path", {
12
- d: "m4 14 6-6 2-3",
13
- key: "1k1g8d"
14
- }],
15
- ["path", {
16
- d: "M2 5h12",
17
- key: "or177f"
18
- }],
19
- ["path", {
20
- d: "M7 2h1",
21
- key: "1t2jsx"
22
- }],
23
- ["path", {
24
- d: "m22 22-5-10-5 10",
25
- key: "don7ne"
26
- }],
27
- ["path", {
28
- d: "M14 18h6",
29
- key: "1m8k6r"
30
- }]
31
- ]
32
- });
33
- // ../../node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs
34
- function o(e, t) {
35
- this.v = e, this.k = t;
36
- }
37
- function s(e, t) {
38
- (t == null || t > e.length) && (t = e.length);
39
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
40
- return r;
41
- }
42
- function c(e) {
43
- if (Array.isArray(e)) return e;
44
- }
45
- function l(e, t) {
46
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
47
- if (n != null) {
48
- var r, i, a, o, s = [], c = !0, l = !1;
49
- try {
50
- if (a = (n = n.call(e)).next, t === 0) {
51
- if (Object(n) !== n) return;
52
- c = !1;
53
- } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
54
- } catch (e) {
55
- l = !0, i = e;
56
- } finally {
57
- try {
58
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
59
- } finally {
60
- if (l) throw i;
61
- }
62
- }
63
- return s;
64
- }
65
- }
66
- function u() {
67
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68
- }
69
- function d(e, t) {
70
- return c(e) || l(e, t) || f(e, t) || u();
71
- }
72
- function f(e, t) {
73
- if (e) {
74
- if (typeof e == "string") return s(e, t);
75
- var n = {}.toString.call(e).slice(8, -1);
76
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? s(e, t) : void 0;
77
- }
78
- }
79
- function p(e) {
80
- var t, n;
81
- function r(t, n) {
82
- try {
83
- var a = e[t](n), s = a.value, c = s instanceof o;
84
- Promise.resolve(c ? s.v : s).then(function(n) {
85
- if (c) {
86
- var o = t === "return" && s.k ? t : "next";
87
- if (!s.k || n.done) return r(o, n);
88
- n = e[o](n).value;
89
- }
90
- i(!!a.done, n);
91
- }, function(e) {
92
- r("throw", e);
93
- });
94
- } catch (e) {
95
- i(2, e);
96
- }
97
- }
98
- function i(e, i) {
99
- e === 2 ? t.reject(i) : t.resolve({
100
- value: i,
101
- done: e
102
- }), (t = t.next) ? r(t.key, t.arg) : n = null;
103
- }
104
- this._invoke = function(e, i) {
105
- return new Promise(function(a, o) {
106
- var s = {
107
- key: e,
108
- arg: i,
109
- resolve: a,
110
- reject: o,
111
- next: null
112
- };
113
- n ? n = n.next = s : (t = n = s, r(e, i));
114
- });
115
- }, typeof e.return != "function" && (this.return = void 0);
116
- }
117
- p.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
118
- return this;
119
- }, p.prototype.next = function(e) {
120
- return this._invoke("next", e);
121
- }, p.prototype.throw = function(e) {
122
- return this._invoke("throw", e);
123
- }, p.prototype.return = function(e) {
124
- return this._invoke("return", e);
125
- };
126
- var ee = Object.entries, te = Object.setPrototypeOf, ne = Object.isFrozen, m = Object.getPrototypeOf, h = Object.getOwnPropertyDescriptor, g = Object.freeze, _ = Object.seal, re = Object.create, ie = typeof Reflect < "u" && Reflect, ae = ie.apply, v = ie.construct;
127
- g ||= function(e) {
128
- return e;
129
- }, _ ||= function(e) {
130
- return e;
131
- }, ae ||= function(e, t) {
132
- var n = [...arguments].slice(2);
133
- return e.apply(t, n);
134
- }, v ||= function(e) {
135
- return new e(...[...arguments].slice(1));
136
- };
137
- var y = O(Array.prototype.forEach);
138
- Array.prototype.indexOf;
139
- var oe = O(Array.prototype.lastIndexOf), se = O(Array.prototype.pop), ce = O(Array.prototype.push), le = O(Array.prototype.slice), ue = O(Array.prototype.splice), de = Array.isArray, fe = k(Set), pe = O(Set.prototype.add), me = O(Set.prototype.has), b = O(String.prototype.toLowerCase), he = O(String.prototype.toString), ge = O(String.prototype.match), _e = O(String.prototype.replace), ve = O(String.prototype.indexOf), ye = O(String.prototype.trim), x = O(Number.prototype.toString), be = O(Boolean.prototype.toString), S = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), C = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), w = O(Object.prototype.hasOwnProperty), T = O(Object.prototype.toString), E = O(RegExp.prototype.test), D = k(TypeError);
140
- function O(e) {
141
- return function(t) {
142
- t instanceof RegExp && (t.lastIndex = 0);
143
- var n = [...arguments].slice(1);
144
- return ae(e, t, n);
145
- };
146
- }
147
- function k(e) {
148
- return function() {
149
- return v(e, [...arguments]);
150
- };
151
- }
152
- function A(e, t) {
153
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : b;
154
- if (te && te(e, null), !de(t)) return e;
155
- let r = t.length;
156
- for (; r--;) {
157
- let i = t[r];
158
- if (typeof i == "string") {
159
- let e = n(i);
160
- e !== i && (ne(t) || (t[r] = e), i = e);
161
- }
162
- e[i] = !0;
163
- }
164
- return e;
165
- }
166
- function j(e) {
167
- for (let t = 0; t < e.length; t++) w(e, t) || (e[t] = null);
168
- return e;
169
- }
170
- function M(e) {
171
- let t = re(null);
172
- for (let r of ee(e)) {
173
- var n = d(r, 2);
174
- let i = n[0], a = n[1];
175
- w(e, i) && (t[i] = de(a) ? j(a) : a && typeof a == "object" && a.constructor === Object ? M(a) : a);
176
- }
177
- return t;
178
- }
179
- function xe(e) {
180
- switch (typeof e) {
181
- case "string": return e;
182
- case "number": return x(e);
183
- case "boolean": return be(e);
184
- case "bigint": return S ? S(e) : "0";
185
- case "symbol": return C ? C(e) : "Symbol()";
186
- case "undefined": return T(e);
187
- case "function":
188
- case "object": {
189
- if (e === null) return T(e);
190
- let t = e, n = N(t, "toString");
191
- if (typeof n == "function") {
192
- let e = n(t);
193
- return typeof e == "string" ? e : T(e);
194
- }
195
- return T(e);
196
- }
197
- default: return T(e);
198
- }
199
- }
200
- function N(e, t) {
201
- for (; e !== null;) {
202
- let n = h(e, t);
203
- if (n) {
204
- if (n.get) return O(n.get);
205
- if (typeof n.value == "function") return O(n.value);
206
- }
207
- e = m(e);
208
- }
209
- function n() {
210
- return null;
211
- }
212
- return n;
213
- }
214
- function Se(e, t) {
215
- for (; e !== null;) {
216
- let n = h(e, t);
217
- if (n) return n.get ? O(n.get) : null;
218
- e = m(e);
219
- }
220
- return null;
221
- }
222
- function Ce(e) {
223
- try {
224
- return E(e, ""), !0;
225
- } catch {
226
- return !1;
227
- }
228
- }
229
- var we = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Te = g(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Ee = g([
230
- "feBlend",
231
- "feColorMatrix",
232
- "feComponentTransfer",
233
- "feComposite",
234
- "feConvolveMatrix",
235
- "feDiffuseLighting",
236
- "feDisplacementMap",
237
- "feDistantLight",
238
- "feDropShadow",
239
- "feFlood",
240
- "feFuncA",
241
- "feFuncB",
242
- "feFuncG",
243
- "feFuncR",
244
- "feGaussianBlur",
245
- "feImage",
246
- "feMerge",
247
- "feMergeNode",
248
- "feMorphology",
249
- "feOffset",
250
- "fePointLight",
251
- "feSpecularLighting",
252
- "feSpotLight",
253
- "feTile",
254
- "feTurbulence"
255
- ]), De = g([
256
- "animate",
257
- "color-profile",
258
- "cursor",
259
- "discard",
260
- "font-face",
261
- "font-face-format",
262
- "font-face-name",
263
- "font-face-src",
264
- "font-face-uri",
265
- "foreignobject",
266
- "hatch",
267
- "hatchpath",
268
- "mesh",
269
- "meshgradient",
270
- "meshpatch",
271
- "meshrow",
272
- "missing-glyph",
273
- "script",
274
- "set",
275
- "solidcolor",
276
- "unknown",
277
- "use"
278
- ]), Oe = g(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), ke = g([
279
- "maction",
280
- "maligngroup",
281
- "malignmark",
282
- "mlongdiv",
283
- "mscarries",
284
- "mscarry",
285
- "msgroup",
286
- "mstack",
287
- "msline",
288
- "msrow",
289
- "semantics",
290
- "annotation",
291
- "annotation-xml",
292
- "mprescripts",
293
- "none"
294
- ]), Ae = g(["#text"]), je = g(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Me = g(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ne = g(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Pe = g([
295
- "xlink:href",
296
- "xml:id",
297
- "xlink:title",
298
- "xml:space",
299
- "xmlns:xlink"
300
- ]), Fe = _(/{{[\w\W]*|^[\w\W]*}}/g), Ie = _(/<%[\w\W]*|^[\w\W]*%>/g), Le = _(/\${[\w\W]*/g), Re = _(/^data-[\-\w.\u00B7-\uFFFF]+$/), ze = _(/^aria-[\-\w]+$/), Be = _(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ve = _(/^(?:\w+script|data):/i), He = _(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ue = _(/^html$/i), We = _(/^[a-z][.\w]*(-[.\w]+)+$/i), Ge = _(/<[/\w!]/g), Ke = _(/<[/\w]/g), qe = _(/<\/no(script|embed|frames)/i), Je = _(/\/>/i), P = {
301
- element: 1,
302
- attribute: 2,
303
- text: 3,
304
- cdataSection: 4,
305
- entityReference: 5,
306
- entityNode: 6,
307
- processingInstruction: 7,
308
- comment: 8,
309
- document: 9,
310
- documentType: 10,
311
- documentFragment: 11,
312
- notation: 12
313
- }, Ye = g(A({}, [
314
- "style",
315
- "script",
316
- "xmp",
317
- "iframe",
318
- "noembed",
319
- "noframes",
320
- "plaintext",
321
- "noscript"
322
- ])), Xe = function() {
323
- return typeof window > "u" ? null : window;
324
- }, Ze = function(e, t) {
325
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
326
- let n = null, r = "data-tt-policy-suffix";
327
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
328
- let i = "dompurify" + (n ? "#" + n : "");
329
- try {
330
- return e.createPolicy(i, {
331
- createHTML(e) {
332
- return e;
333
- },
334
- createScriptURL(e) {
335
- return e;
336
- }
337
- });
338
- } catch {
339
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
340
- }
341
- }, Qe = function() {
342
- return {
343
- afterSanitizeAttributes: [],
344
- afterSanitizeElements: [],
345
- afterSanitizeShadowDOM: [],
346
- beforeSanitizeAttributes: [],
347
- beforeSanitizeElements: [],
348
- beforeSanitizeShadowDOM: [],
349
- uponSanitizeAttribute: [],
350
- uponSanitizeElement: [],
351
- uponSanitizeShadowNode: []
352
- };
353
- }, F = function(e, t, n, r) {
354
- return w(e, t) && de(e[t]) ? A(r.base ? M(r.base) : {}, e[t], r.transform) : n;
355
- }, $e = function(e, t, n) {
356
- let r = w(e, t) ? e[t] : void 0;
357
- return r && typeof r == "object" ? M(r) : n();
358
- };
359
- function et() {
360
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe(), t = (e) => et(e);
361
- if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== P.document || !e.Element) return t.isSupported = !1, t;
362
- let n = e.document, r = n, i = r.currentScript;
363
- e.DocumentFragment;
364
- let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
365
- e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
366
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = N(d, "cloneNode"), p = N(d, "remove"), te = N(d, "removeAttributeNode"), ne = N(d, "nextSibling"), m = N(d, "childNodes"), h = N(d, "parentNode"), ie = N(d, "shadowRoot"), ae = N(d, "attributes"), v = o && o.prototype ? N(o.prototype, "nodeType") : null, x = o && o.prototype ? N(o.prototype, "nodeName") : null, be = o && o.prototype ? N(o.prototype, "ownerDocument") : null, S = function(e) {
367
- return v ? v(e) : e.nodeType;
368
- }, C = function(e) {
369
- return x ? x(e) : e.nodeName;
370
- }, T = Se(d, "namespaceURI"), O = function(e) {
371
- return T ? T(e) : e.namespaceURI;
372
- };
373
- if (typeof a == "function") {
374
- let e = n.createElement("template");
375
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
376
- }
377
- let k, j = "", I, tt = !1, L = 0, nt = function() {
378
- if (L > 0) throw D("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
379
- }, R = function(e) {
380
- nt(), L++;
381
- try {
382
- return k.createHTML(e);
383
- } finally {
384
- L--;
385
- }
386
- }, rt = function(e) {
387
- nt(), L++;
388
- try {
389
- return k.createScriptURL(e);
390
- } finally {
391
- L--;
392
- }
393
- }, it = function() {
394
- return tt ||= (I = Ze(u, i), !0), I;
395
- }, at = n, ot = at.implementation, st = at.createNodeIterator, ct = at.createDocumentFragment, lt = at.getElementsByTagName, ut = r.importNode, z = Qe();
396
- t.isSupported = typeof ee == "function" && typeof h == "function" && ot && ot.createHTMLDocument !== void 0;
397
- let dt = Fe, ft = Ie, pt = Le, mt = Re, ht = ze, gt = Ve, _t = He, vt = We, yt = Be, B = null, bt = A({}, [
398
- ...we,
399
- ...Te,
400
- ...Ee,
401
- ...Oe,
402
- ...Ae
403
- ]), V = null, xt = A({}, [
404
- ...je,
405
- ...Me,
406
- ...Ne,
407
- ...Pe
408
- ]), H = Object.seal(re(null, {
409
- tagNameCheck: {
410
- writable: !0,
411
- configurable: !1,
412
- enumerable: !0,
413
- value: null
414
- },
415
- attributeNameCheck: {
416
- writable: !0,
417
- configurable: !1,
418
- enumerable: !0,
419
- value: null
420
- },
421
- allowCustomizedBuiltInElements: {
422
- writable: !0,
423
- configurable: !1,
424
- enumerable: !0,
425
- value: !1
426
- }
427
- })), St = null, Ct = null, U = Object.seal(re(null, {
428
- tagCheck: {
429
- writable: !0,
430
- configurable: !1,
431
- enumerable: !0,
432
- value: null
433
- },
434
- attributeCheck: {
435
- writable: !0,
436
- configurable: !1,
437
- enumerable: !0,
438
- value: null
439
- }
440
- })), wt = !0, Tt = !0, Et = !1, Dt = !0, W = !1, G = !0, K = !1, Ot = !1, kt = null, At = null, jt = !1, Mt = !1, Nt = !1, Pt = !1, Ft = !0, It = !1, Lt = "user-content-", Rt = !0, zt = !1, q = null, Bt = {}, J = null, Vt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ht = null, Ut = A({}, [
441
- "audio",
442
- "video",
443
- "img",
444
- "source",
445
- "image",
446
- "track"
447
- ]), Wt = null, Gt = A({}, [
448
- "alt",
449
- "class",
450
- "for",
451
- "id",
452
- "label",
453
- "name",
454
- "pattern",
455
- "placeholder",
456
- "role",
457
- "summary",
458
- "title",
459
- "value",
460
- "style",
461
- "xmlns"
462
- ]), Kt = "http://www.w3.org/1998/Math/MathML", qt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Jt = Y, Yt = !1, Xt = null, Zt = A({}, [
463
- Kt,
464
- qt,
465
- Y
466
- ], he), Qt = g([
467
- "mi",
468
- "mo",
469
- "mn",
470
- "ms",
471
- "mtext"
472
- ]), $t = A({}, Qt), en = g(["annotation-xml"]), tn = A({}, en), nn = A({}, [
473
- "title",
474
- "style",
475
- "font",
476
- "a",
477
- "script"
478
- ]), rn = null, an = ["application/xhtml+xml", "text/html"], X = null, on = null, sn = n.createElement("form"), cn = function(e) {
479
- return e instanceof RegExp || e instanceof Function;
480
- }, ln = function() {
481
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
482
- if (on && on === e) return;
483
- e && typeof e == "object" || (e = {}), e = M(e), rn = an.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = rn === "application/xhtml+xml" ? he : b, B = F(e, "ALLOWED_TAGS", bt, { transform: X }), V = F(e, "ALLOWED_ATTR", xt, { transform: X }), Xt = F(e, "ALLOWED_NAMESPACES", Zt, { transform: he }), Wt = F(e, "ADD_URI_SAFE_ATTR", Gt, {
484
- transform: X,
485
- base: Gt
486
- }), Ht = F(e, "ADD_DATA_URI_TAGS", Ut, {
487
- transform: X,
488
- base: Ut
489
- }), J = F(e, "FORBID_CONTENTS", Vt, { transform: X }), St = F(e, "FORBID_TAGS", M({}), { transform: X }), Ct = F(e, "FORBID_ATTR", M({}), { transform: X }), Bt = w(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? M(e.USE_PROFILES) : e.USE_PROFILES : !1, wt = e.ALLOW_ARIA_ATTR !== !1, Tt = e.ALLOW_DATA_ATTR !== !1, Et = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Dt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, W = e.SAFE_FOR_TEMPLATES || !1, G = e.SAFE_FOR_XML !== !1, K = e.WHOLE_DOCUMENT || !1, Mt = e.RETURN_DOM || !1, Nt = e.RETURN_DOM_FRAGMENT || !1, Pt = e.RETURN_TRUSTED_TYPE || !1, jt = e.FORCE_BODY || !1, Ft = e.SANITIZE_DOM !== !1, It = e.SANITIZE_NAMED_PROPS || !1, Rt = e.KEEP_CONTENT !== !1, zt = e.IN_PLACE || !1, yt = Ce(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Be, Jt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, $t = $e(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, Qt)), tn = $e(e, "HTML_INTEGRATION_POINTS", () => A({}, en));
490
- let t = $e(e, "CUSTOM_ELEMENT_HANDLING", () => re(null));
491
- if (H = re(null), w(t, "tagNameCheck") && cn(t.tagNameCheck) && (H.tagNameCheck = t.tagNameCheck), w(t, "attributeNameCheck") && cn(t.attributeNameCheck) && (H.attributeNameCheck = t.attributeNameCheck), w(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), _(H), W && (Tt = !1), Nt && (Mt = !0), Bt && (B = A({}, Ae), V = re(null), Bt.html === !0 && (A(B, we), A(V, je)), Bt.svg === !0 && (A(B, Te), A(V, Me), A(V, Pe)), Bt.svgFilters === !0 && (A(B, Ee), A(V, Me), A(V, Pe)), Bt.mathMl === !0 && (A(B, Oe), A(V, Ne), A(V, Pe))), U.tagCheck = null, U.attributeCheck = null, w(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? U.tagCheck = e.ADD_TAGS : de(e.ADD_TAGS) && (B === bt && (B = M(B)), A(B, e.ADD_TAGS, X))), w(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? U.attributeCheck = e.ADD_ATTR : de(e.ADD_ATTR) && (V === xt && (V = M(V)), A(V, e.ADD_ATTR, X))), w(e, "ADD_FORBID_CONTENTS") && de(e.ADD_FORBID_CONTENTS) && (J === Vt && (J = M(J)), A(J, e.ADD_FORBID_CONTENTS, X)), Rt && (B["#text"] = !0), K && A(B, [
492
- "html",
493
- "head",
494
- "body"
495
- ]), B.table && (A(B, ["tbody"]), delete St.tbody), e.TRUSTED_TYPES_POLICY) {
496
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw D("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
497
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw D("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
498
- let t = k;
499
- k = e.TRUSTED_TYPES_POLICY;
500
- try {
501
- j = R("");
502
- } catch (e) {
503
- throw k = t, e;
504
- }
505
- } else e.TRUSTED_TYPES_POLICY === null ? (k = void 0, j = "") : (k === void 0 && (k = it()), k && typeof j == "string" && (j = R("")));
506
- g && g(e), on = e;
507
- }, un = A({}, [
508
- ...Te,
509
- ...Ee,
510
- ...De
511
- ]), dn = A({}, [...Oe, ...ke]), fn = function(e, t, n) {
512
- return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === Kt ? e === "svg" && (n === "annotation-xml" || $t[n]) : !!un[e];
513
- }, pn = function(e, t, n) {
514
- return t.namespaceURI === Y ? e === "math" : t.namespaceURI === qt ? e === "math" && tn[n] : !!dn[e];
515
- }, mn = function(e, t, n) {
516
- return t.namespaceURI === qt && !tn[n] || t.namespaceURI === Kt && !$t[n] ? !1 : !dn[e] && (nn[e] || !un[e]);
517
- }, hn = function(e) {
518
- let t = O(e), n = b(C(e)), r = h(e), i, a;
519
- return r && S(r) === P.element ? (i = { namespaceURI: O(r) }, a = b(C(r))) : (i = { namespaceURI: Jt }, a = "template"), Xt[t] ? t === qt ? fn(n, i, a) : t === Kt ? pn(n, i, a) : t === Y ? mn(n, i, a) : !!(rn === "application/xhtml+xml" && Xt[t]) : !1;
520
- }, Z = function(e) {
521
- ce(t.removed, { element: e });
522
- try {
523
- h(e).removeChild(e);
524
- } catch {
525
- if (p(e), !h(e)) throw D("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
526
- }
527
- }, gn = function(e, t, n) {
528
- try {
529
- te(e, t);
530
- } catch {
531
- try {
532
- e.removeAttribute(n);
533
- } catch {}
534
- }
535
- }, _n = function(e) {
536
- xn(e);
537
- let t = m(e);
538
- t && y(le(t), (e) => {
539
- try {
540
- p(e);
541
- } catch {}
542
- });
543
- let n = S(e) === P.element ? ae(e) : null;
544
- if (n) for (let t = n.length - 1; t >= 0; --t) {
545
- let r = n[t], i = r && r.name;
546
- typeof i == "string" && gn(e, r, i);
547
- }
548
- }, vn = function(e, n, r) {
549
- if (!r) try {
550
- r = n.getAttributeNode(e);
551
- } catch {
552
- r = null;
553
- }
554
- ce(t.removed, {
555
- attribute: r || null,
556
- from: n
557
- });
558
- try {
559
- r ? te(n, r) : n.removeAttribute(e);
560
- } catch {
561
- try {
562
- n.removeAttribute(e);
563
- } catch {}
564
- }
565
- if (e === "is") {
566
- if (Mt || Nt) try {
567
- Z(n);
568
- } catch {}
569
- else try {
570
- n.setAttribute(e, "");
571
- } catch {}
572
- }
573
- }, yn = function(e) {
574
- let t = ae(e);
575
- if (t) for (let n = t.length - 1; n >= 0; --n) {
576
- let r = t[n], i = r && r.name;
577
- typeof i != "string" || V[X(i)] || gn(e, r, i);
578
- }
579
- }, bn = function(e, t) {
580
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
581
- for (; r.length > 0;) {
582
- let e = r.pop();
583
- if (t(e) === !1) continue;
584
- if (n && S(e) === P.element) {
585
- let t = ie(e);
586
- Q(t) && r.push(t);
587
- }
588
- let i = m(e);
589
- if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
590
- }
591
- }, xn = function(e) {
592
- bn(e, (e) => {
593
- S(e) === P.element && yn(e);
594
- });
595
- }, Sn = function(e) {
596
- let t = [];
597
- return bn(e, (e) => {
598
- t.push(e);
599
- }, !0), t;
600
- }, Cn = function(e, t) {
601
- let n = fe();
602
- y(Sn(e), (e) => {
603
- S(e) === P.element && pe(n, e);
604
- }), y(t, (e) => {
605
- S(e) === P.element && !me(n, e) && yn(e);
606
- });
607
- }, wn = function(e, n) {
608
- let r = !1;
609
- return y(t.removed, (t) => {
610
- t.element && (r ||= t.element === e, xn(t.element));
611
- }), Cn(e, n), r;
612
- }, Tn = function(e, t) {
613
- let n = q, r = null, i = () => (r || (r = fe(), y(t, (e) => {
614
- pe(r, e);
615
- })), r);
616
- for (let t = 0;; t++) {
617
- let r = Sn(e), a = [e], o = !1;
618
- if (y(r, (e) => {
619
- S(e) === P.documentFragment ? ce(a, e) : !o && !me(n, e) && (o = me(i(), e));
620
- }), !o) return;
621
- if (t >= 8) throw D("the tree kept changing during in-place sanitization; refusing to return it");
622
- y(a, (t, n) => {
623
- En(t, n > 0, e, i());
624
- });
625
- }
626
- }, En = function(e, t, n, r) {
627
- let i = jn(e), a;
628
- for (; a = i.nextNode();) me(r, a) && !me(q, a) && (t && $(z.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
629
- }, Dn = function(e) {
630
- q && pe(q, e);
631
- }, On = function(e, t) {
632
- return G ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
633
- }, kn = function(e) {
634
- G && bn(e, (e) => {
635
- let t = S(e);
636
- if (t === P.processingInstruction || t === P.comment && E(Ke, e.data)) {
637
- try {
638
- p(e);
639
- } catch {}
640
- return !1;
641
- }
642
- if (t === P.element) {
643
- let t = e, n = X(C(e));
644
- try {
645
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
646
- } catch {}
647
- }
648
- return !0;
649
- });
650
- }, An = function(e) {
651
- let t = null, r = null;
652
- if (jt) e = "<remove></remove>" + e;
653
- else {
654
- let t = ge(e, /^[\r\n\t ]+/);
655
- r = t && t[0];
656
- }
657
- rn === "application/xhtml+xml" && Jt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
658
- let i = k ? R(e) : e;
659
- if (Jt === Y) try {
660
- t = new l().parseFromString(i, rn);
661
- } catch {}
662
- if (!t || !t.documentElement) {
663
- t = ot.createDocument(Jt, "template", null);
664
- try {
665
- t.documentElement.innerHTML = Yt ? j : i;
666
- } catch {}
667
- }
668
- let a = t.body || t.documentElement;
669
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Jt === Y ? lt.call(t, K ? "html" : "body")[0] : K ? t.documentElement : a;
670
- }, jn = function(e) {
671
- let t = be ? be(e) : e.ownerDocument;
672
- return st.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
673
- }, Mn = function(e) {
674
- return e = _e(e, dt, " "), e = _e(e, ft, " "), e = _e(e, pt, " "), e;
675
- }, Nn = function(e) {
676
- Pn(e);
677
- let t = e.querySelectorAll?.call(e, "template");
678
- t && y(t, (e) => {
679
- Q(e.content) && Nn(e.content);
680
- });
681
- }, Pn = function(e) {
682
- e.normalize();
683
- let t = be ? be(e) : e.ownerDocument, n = st.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
684
- for (; r;) r.data = Mn(r.data), r = n.nextNode();
685
- }, Fn = function(e) {
686
- let t = x ? x(e) : null;
687
- return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ae(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== v(e) || e.childNodes !== m(e);
688
- }, Q = function(e) {
689
- if (!v || typeof e != "object" || !e) return !1;
690
- try {
691
- return v(e) === P.documentFragment;
692
- } catch {
693
- return !1;
694
- }
695
- }, In = function(e) {
696
- if (!v || typeof e != "object" || !e) return !1;
697
- try {
698
- return typeof v(e) == "number";
699
- } catch {
700
- return !1;
701
- }
702
- };
703
- function $(e, n, r) {
704
- e.length !== 0 && y(e, (e) => {
705
- e.call(t, n, r, on);
706
- });
707
- }
708
- let Ln = function(e, t) {
709
- return !!(G && e.hasChildNodes() && !In(e.firstElementChild) && E(Ge, e.textContent) && E(Ge, e.innerHTML) || G && Ye[t] && S(e) === P.element && O(e) === Y && (In(e.firstElementChild) || typeof e.textContent == "string" && E(Ge, e.textContent)) || e.nodeType === P.processingInstruction || G && e.nodeType === P.comment && E(Ke, e.data));
710
- }, Rn = function(e, t) {
711
- return e instanceof RegExp ? E(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
712
- }, zn = function(e, t, n) {
713
- if (!St[t] && Gn(t) && Rn(H.tagNameCheck, t)) return !1;
714
- if (Rt && !J[t] && !J[b(t)]) {
715
- let t = h(e), r = m(e);
716
- if (r && t) {
717
- let i = r.length;
718
- for (let a = i - 1; a >= 0; --a) {
719
- let i = e === n ? f(r[a], !0) : r[a];
720
- t.insertBefore(i, ne(e));
721
- }
722
- }
723
- }
724
- return Z(e), !0;
725
- }, Bn = function(e, t, n, r) {
726
- return e.length === 0 ? t : t === n || t === r ? M(t) : t;
727
- }, Vn = function(e, t) {
728
- return e === t || h(e) !== null ? !1 : (zt && xn(e), !0);
729
- }, Hn = function(e, n) {
730
- if (Dn(e), $(z.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
731
- if (Fn(e)) return Z(e), !0;
732
- let r = X(C(e));
733
- if (B = Bn(z.uponSanitizeElement, B, bt, kt), $(z.uponSanitizeElement, e, {
734
- tagName: r,
735
- allowedTags: B
736
- }), Vn(e, n)) return !0;
737
- if (Ln(e, r)) return Z(e), !0;
738
- if (St[r] || !(U.tagCheck instanceof Function && U.tagCheck(r)) && !B[r]) {
739
- let t = zn(e, r, n);
740
- return t === !1 && ($(z.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
741
- }
742
- if (S(e) === P.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && E(qe, e.innerHTML)) return Z(e), !0;
743
- if (W && e.nodeType === P.text) {
744
- let n = Mn(e.textContent);
745
- e.textContent !== n && (ce(t.removed, { element: e.cloneNode() }), e.textContent = n);
746
- }
747
- return $(z.afterSanitizeElements, e, null), Vn(e, n);
748
- }, Un = function(e, t, r) {
749
- if (Ct[t] || On(t, e) || Ft && (t === "id" || t === "name") && (r in n || r in sn)) return !1;
750
- let i = V[t] || U.attributeCheck instanceof Function && U.attributeCheck(t, e);
751
- return Tt && E(mt, t) || wt && E(ht, t) ? !0 : i ? Wt[t] || E(yt, _e(r, _t, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ve(r, "data:") === 0 && Ht[e] || Et && !E(gt, _e(r, _t, "")) ? !0 : !r : Gn(e) && Rn(H.tagNameCheck, e) && Rn(H.attributeNameCheck, t, e) || t === "is" && H.allowCustomizedBuiltInElements && Rn(H.tagNameCheck, r);
752
- }, Wn = A({}, [
753
- "annotation-xml",
754
- "color-profile",
755
- "font-face",
756
- "font-face-format",
757
- "font-face-name",
758
- "font-face-src",
759
- "font-face-uri",
760
- "missing-glyph"
761
- ]), Gn = function(e) {
762
- return !Wn[b(e)] && E(vt, e);
763
- }, Kn = function(e, t, n, r) {
764
- if (k && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
765
- case "TrustedHTML": return R(r);
766
- case "TrustedScriptURL": return rt(r);
767
- }
768
- return r;
769
- }, qn = function(e, t, n, r) {
770
- try {
771
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
772
- } catch {
773
- return vn(t, e), !1;
774
- }
775
- }, Jn = function(e, t) {
776
- return G && E(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : b(e) === "attributename" && ge(t, "href") !== null;
777
- }, Yn = function(e, n) {
778
- if ($(z.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
779
- let r = e.attributes;
780
- if (!r || Fn(e)) return;
781
- V = Bn(z.uponSanitizeAttribute, V, xt, At);
782
- let i = {
783
- attrName: "",
784
- attrValue: "",
785
- keepAttr: !0,
786
- allowedAttributes: V,
787
- forceKeepAttr: void 0
788
- }, a = r.length, o = X(e.nodeName);
789
- for (; a--;) {
790
- let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : ye(d), p = !1;
791
- i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(z.uponSanitizeAttribute, e, i), f = i.attrValue, It && (u === "id" || u === "name") && ve(f, Lt) !== 0 && (vn(s, e, n), f = Lt + f, p = !0), Jn(s, f) ? vn(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Dt && E(Je, f) ? vn(s, e, n) : (W && (f = Mn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && se(t.removed)) : vn(s, e, n)) : vn(s, e, n));
792
- }
793
- $(z.afterSanitizeAttributes, e, null), Vn(e, n);
794
- }, Xn = function(e) {
795
- let t = null, n = jn(e);
796
- for ($(z.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(z.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), S(t) === P.element) {
797
- let e = ie(t);
798
- Q(e) && (Zn(e), Xn(e));
799
- }
800
- W && Pn(e), $(z.afterSanitizeShadowDOM, e, null);
801
- }, Zn = function(e) {
802
- let t = [{
803
- node: e,
804
- shadow: null
805
- }];
806
- for (; t.length > 0;) {
807
- let e = t.pop();
808
- if (e.shadow) {
809
- Xn(e.shadow);
810
- continue;
811
- }
812
- let n = e.node, r = S(n) === P.element, i = m(n);
813
- if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
814
- node: i[e],
815
- shadow: null
816
- });
817
- if (r) {
818
- let e = x ? x(n) : null;
819
- if (typeof e == "string" && X(e) === "template") {
820
- let e = n.content;
821
- Q(e) && t.push({
822
- node: e,
823
- shadow: null
824
- });
825
- }
826
- }
827
- if (r) {
828
- let e = ie(n);
829
- Q(e) && t.push({
830
- node: null,
831
- shadow: e
832
- }, {
833
- node: e,
834
- shadow: null
835
- });
836
- }
837
- }
838
- };
839
- return t.sanitize = function(e) {
840
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
841
- if (Yt = !e, Yt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = xe(e), typeof e != "string")) throw D("dirty is not a string, aborting");
842
- if (!t.isSupported) return e;
843
- Ot ? (B = kt, V = At) : ln(n), (z.uponSanitizeElement.length > 0 || z.uponSanitizeAttribute.length > 0) && (B = M(B)), z.uponSanitizeAttribute.length > 0 && (V = M(V)), t.removed = [];
844
- let c = zt && typeof e != "string" && In(e), l = [], u = q;
845
- if (c) {
846
- kn(e);
847
- let t = C(e);
848
- if (typeof t == "string") {
849
- let n = X(t);
850
- if (!B[n] || St[n]) throw _n(e), D("root node is forbidden and cannot be sanitized in-place");
851
- }
852
- if (Fn(e)) throw _n(e), D("root node is clobbered and cannot be sanitized in-place");
853
- l = Sn(e), q = fe();
854
- } else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === P.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
855
- else {
856
- if (!Mt && !W && !K && e.indexOf("<") === -1) return k && Pt ? R(e) : e;
857
- if (i = An(e), !i) return Mt ? null : Pt ? j : "";
858
- }
859
- i && jt && Z(i.firstChild);
860
- let d = c ? e : i;
861
- try {
862
- c && Zn(e);
863
- let t = jn(d);
864
- for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
865
- c && Tn(e, l);
866
- } catch (t) {
867
- throw c && (_n(e), wn(e, l)), t;
868
- } finally {
869
- q = u;
870
- }
871
- if (c) {
872
- if (wn(e, l)) throw D("a node selected for removal could not be safely returned; refusing to sanitize in place");
873
- return W && Nn(e), e;
874
- }
875
- if (Mt) {
876
- if (W && Nn(i), Nt) for (s = ct.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
877
- else s = i;
878
- return (V.shadowroot || V.shadowrootmode) && (s = ut.call(r, s, !0)), s;
879
- }
880
- let f = K ? i.outerHTML : i.innerHTML;
881
- return K && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && E(Ue, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), W && (f = Mn(f)), k && Pt ? R(f) : f;
882
- }, t.setConfig = function() {
883
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
884
- ln(e), Ot = !0, kt = B, At = V;
885
- }, t.clearConfig = function() {
886
- on = null, Ot = !1, kt = null, At = null, k = I, j = "";
887
- }, t.isValidAttribute = function(e, t, n) {
888
- on || ln({});
889
- let r = X(e), i = X(t);
890
- return typeof n == "string" && (Jn(t, n) || !Dt && E(Je, n)) ? !1 : Un(r, i, n);
891
- }, t.addHook = function(e, t) {
892
- typeof t == "function" && w(z, e) && ce(z[e], t);
893
- }, t.removeHook = function(e, t) {
894
- if (w(z, e)) {
895
- if (t !== void 0) {
896
- let n = oe(z[e], t);
897
- return n === -1 ? void 0 : ue(z[e], n, 1)[0];
898
- }
899
- return se(z[e]);
900
- }
901
- }, t.removeHooks = function(e) {
902
- w(z, e) && (z[e] = []);
903
- }, t.removeAllHooks = function() {
904
- z = Qe();
905
- }, t;
906
- }
907
- var I = et(), tt = new Set(n), L = [...t], nt = RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"), R = [
908
- "style",
909
- "form",
910
- "iframe",
911
- "object",
912
- "embed",
913
- "link",
914
- "meta",
915
- "base",
916
- "noscript",
917
- "template",
918
- "script"
919
- ], rt = {
920
- FORBID_TAGS: R,
921
- ADD_FORBID_CONTENTS: R,
922
- FORBID_ATTR: L,
923
- ALLOWED_URI_REGEXP: nt,
924
- ADD_ATTR: ["target"],
925
- CANVAS_LINKS: !0
926
- }, it = {
927
- ...rt,
928
- CANVAS_LINKS: !1
929
- }, at = {
930
- USE_PROFILES: {
931
- svg: !0,
932
- svgFilters: !0
933
- },
934
- FORBID_TAGS: [
935
- "script",
936
- "foreignObject",
937
- "animate",
938
- "set",
939
- "animateMotion",
940
- "animateTransform"
941
- ],
942
- ADD_FORBID_CONTENTS: [
943
- "script",
944
- "foreignObject",
945
- "animate",
946
- "set",
947
- "animateMotion",
948
- "animateTransform"
949
- ],
950
- FORBID_ATTR: L,
951
- ALLOWED_URI_REGEXP: nt
952
- };
953
- I.isSupported && (I.addHook("uponSanitizeAttribute", (t, n) => {
954
- let r = n.attrName.toLowerCase();
955
- r === "contenteditable" ? t.getAttribute(n.attrName) === "false" ? n.forceKeepAttr = !0 : n.keepAttr = !1 : (r.startsWith("on") || r === "srcdoc" || tt.has(r) && !e(n.attrValue, r)) && (n.keepAttr = !1);
956
- }), I.addHook("afterSanitizeAttributes", (e, t, n) => {
957
- if (!n.CANVAS_LINKS || e.namespaceURI !== "http://www.w3.org/1999/xhtml" || e.nodeName.toLowerCase() !== "a" || e.getAttribute("target")?.toLowerCase() !== "_blank") return;
958
- let r = (e.getAttribute("rel") ?? "").split(/\s+/).filter((e) => e && e.toLowerCase() !== "opener");
959
- r.some((e) => e.toLowerCase() === "noopener") || r.push("noopener"), e.setAttribute("rel", r.join(" "));
960
- }));
961
- function ot(e) {
962
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
963
- }
964
- function st(e) {
965
- return I.isSupported ? I.sanitize(e, rt) : ot(e);
966
- }
967
- function ct(e) {
968
- return I.isSupported ? I.sanitize(e, it) : ot(e);
969
- }
970
- function lt(e) {
971
- return I.isSupported ? I.sanitize(e, at) : ot(e);
972
- }
973
- export { a as i, ct as n, lt as r, st as t };