@templatical/editor 0.52.1 → 0.53.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.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
|
@@ -0,0 +1,962 @@
|
|
|
1
|
+
import { bt as e, l as t, p as n, u as r } from "./dist-Cdkm20M6.js";
|
|
2
|
+
import { t as i } from "./createLucideIcon-Dw5e5gVE.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(r), L = [...t], nt = RegExp(`^(?:(?:${n.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
|
+
}, it = {
|
|
926
|
+
USE_PROFILES: {
|
|
927
|
+
svg: !0,
|
|
928
|
+
svgFilters: !0
|
|
929
|
+
},
|
|
930
|
+
FORBID_TAGS: [
|
|
931
|
+
"script",
|
|
932
|
+
"foreignObject",
|
|
933
|
+
"animate",
|
|
934
|
+
"set",
|
|
935
|
+
"animateMotion",
|
|
936
|
+
"animateTransform"
|
|
937
|
+
],
|
|
938
|
+
ADD_FORBID_CONTENTS: [
|
|
939
|
+
"script",
|
|
940
|
+
"foreignObject",
|
|
941
|
+
"animate",
|
|
942
|
+
"set",
|
|
943
|
+
"animateMotion",
|
|
944
|
+
"animateTransform"
|
|
945
|
+
],
|
|
946
|
+
FORBID_ATTR: L,
|
|
947
|
+
ALLOWED_URI_REGEXP: nt
|
|
948
|
+
};
|
|
949
|
+
I.isSupported && I.addHook("uponSanitizeAttribute", (t, n) => {
|
|
950
|
+
let r = n.attrName.toLowerCase();
|
|
951
|
+
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);
|
|
952
|
+
});
|
|
953
|
+
function at(e) {
|
|
954
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
955
|
+
}
|
|
956
|
+
function ot(e) {
|
|
957
|
+
return I.isSupported ? I.sanitize(e, rt) : at(e);
|
|
958
|
+
}
|
|
959
|
+
function st(e) {
|
|
960
|
+
return I.isSupported ? I.sanitize(e, it) : at(e);
|
|
961
|
+
}
|
|
962
|
+
export { st as n, a as r, ot as t };
|