@sapui5/sap.ui.richtexteditor 1.136.4 → 1.136.6
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/package.json +1 -1
- package/src/sap/ui/richtexteditor/.library +1 -1
- package/src/sap/ui/richtexteditor/RTESplitButton.js +1 -1
- package/src/sap/ui/richtexteditor/RichTextEditor.js +43 -43
- package/src/sap/ui/richtexteditor/ToolbarWrapper.js +1 -1
- package/src/sap/ui/richtexteditor/js/tiny_mce7/icons/default/icons.js +234 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/icons/default/icons.min.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/icons/default/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ar.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/bg_BG.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ca.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/cs.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/cy.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/da.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/de.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/el.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/en_GB.js +261 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/es.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/es_MX.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/eu.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/fa.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/fi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/fr_FR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/he_IL.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/hi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/hr.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/hu_HU.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/id.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/it.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ja.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/kk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ko_KR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/lt.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/lv.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ms.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/nb_NO.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/nl.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/pl.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/pt_BR.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/pt_PT.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ro.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/ru.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sl_SI.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sr.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/sv_SE.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/th_TH.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/tr.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/uk.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/vi.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/zh_CN.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/langs/zh_TW.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/models/dom/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/models/dom/model.js +8147 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/models/dom/model.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/accordion/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/accordion/plugin.js +1062 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/accordion/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/CHANGELOG.md +45 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/codemirror.min.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/customeditor.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/customeditor.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/index.js +3 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ar.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/bg_BG.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ca.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/cs.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/da.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/de.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/el.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/es.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/eu.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/fa.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/fi.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/fr_FR.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/he_IL.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/hi.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/hr.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/hu_HU.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/id.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/it.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ja.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/kk.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ko_KR.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ms.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/nb_NO.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/nl.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/pl.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/pt_BR.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/pt_PT.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ro.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/ru.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/sk.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/sl_SI.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/sv_SE.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/th_TH.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/tr.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/uk.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/vi.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/zh_CN.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/langs/zh_TW.js +35 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advcode/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advlist/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advlist/plugin.js +298 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/advlist/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/anchor/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/anchor/plugin.js +219 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/anchor/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autolink/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autolink/plugin.js +233 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autolink/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autoresize/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autoresize/plugin.js +184 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autoresize/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autosave/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autosave/plugin.js +239 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/autosave/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/charmap/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/charmap/plugin.js +1663 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/charmap/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/code/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/code/plugin.js +90 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/code/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/codesample/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/codesample/plugin.js +2468 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/codesample/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/directionality/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/directionality/plugin.js +395 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/directionality/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojiimages.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojiimages.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojis.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/js/emojis.min.js +8 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/plugin.js +601 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/emoticons/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/fullscreen/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/fullscreen/plugin.js +1266 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/fullscreen/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ar.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/bg_BG.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ca.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/cs.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/da.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/de.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/el.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/en.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/es.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/eu.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/fa.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/fi.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/fr_FR.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/he_IL.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/hi.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/hr.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/hu_HU.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/id.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/it.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ja.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/kk.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ko_KR.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ms.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/nb_NO.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/nl.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/pl.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/pt_BR.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/pt_PT.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ro.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/ru.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/sk.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/sl_SI.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/sv_SE.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/th_TH.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/tr.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/uk.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/vi.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/zh_CN.js +93 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/js/i18n/keynav/zh_TW.js +99 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/plugin.js +931 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/help/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/image/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/image/plugin.js +1513 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/image/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/importcss/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/importcss/plugin.js +350 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/importcss/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/insertdatetime/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/insertdatetime/plugin.js +192 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/insertdatetime/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/link/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/link/plugin.js +1337 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/link/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/lists/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/lists/plugin.js +2186 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/lists/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/media/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/media/plugin.js +1229 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/media/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/index.js +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ar.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/bg_BG.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ca.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/cs.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/da.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/de.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/el.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/es.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/eu.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/fa.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/fi.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/fr_FR.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/he_IL.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/hi.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/hr.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/hu_HU.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/id.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/it.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ja.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/kk.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ko_KR.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ms.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/nb_NO.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/nl.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/pl.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/pt_BR.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/pt_PT.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ro.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/ru.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/sk.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/sl_SI.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/sv_SE.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/th_TH.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/tr.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/uk.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/vi.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/zh_CN.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/langs/zh_TW.js +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/mergetags/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/nonbreaking/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/nonbreaking/plugin.js +128 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/nonbreaking/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/pagebreak/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/pagebreak/plugin.js +122 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/pagebreak/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/CHANGELOG.md +20 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/index.js +2 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/js/wordimport.js +23102 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ar.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/bg_BG.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ca.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/cs.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/da.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/de.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/el.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/es.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/eu.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/fa.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/fi.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/fr_FR.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/he_IL.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/hi.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/hr.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/hu_HU.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/id.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/it.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ja.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/kk.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ko_KR.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ms.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/nb_NO.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/nl.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/pl.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/pt_BR.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/pt_PT.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ro.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/ru.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/sk.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/sl_SI.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/sv_SE.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/th_TH.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/tr.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/uk.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/vi.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/zh_CN.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/langs/zh_TW.js +19 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/readme.txt +17 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/powerpaste/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/preview/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/preview/plugin.js +598 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/preview/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/quickbars/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/quickbars/plugin.js +463 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/quickbars/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/save/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/save/plugin.js +124 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/save/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/searchreplace/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/searchreplace/plugin.js +1103 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/searchreplace/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/table/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/table/plugin.js +3466 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/table/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/CHANGELOG.md +56 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/css/tinycomments.css +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/css/tinycomments.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/index.js +3 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/js/tinycomments-sidebar.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/js/tinycomments-sidebar.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ar.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/bg_BG.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ca.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/cs.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/da.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/de.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/el.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/es.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/eu.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/fa.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/fi.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/fr_FR.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/he_IL.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/hi.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/hr.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/hu_HU.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/id.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/it.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ja.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/kk.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ko_KR.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ms.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/nb_NO.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/nl.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/pl.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/pt_BR.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/pt_PT.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ro.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/ru.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/sk.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/sl_SI.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/sv_SE.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/th_TH.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/tr.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/uk.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/vi.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/zh_CN.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/langs/zh_TW.js +58 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/license.txt +5 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/plugin.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/plugin.min.js +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/readme.txt +10 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/version.txt +1 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualblocks/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualblocks/plugin.js +105 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualblocks/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualchars/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualchars/plugin.js +567 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/visualchars/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/wordcount/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/wordcount/plugin.js +420 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/wordcount/plugin.min.js +9 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/readme.txt +12 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/dark/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/dark/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.css +67 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/default/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/document/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/document/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/document/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5/content.css +67 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5-dark/content.css +72 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5-dark/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/tinymce-5-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/writer/content.css +68 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/writer/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/content/writer/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.css +890 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.inline.css +884 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.inline.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.css +4766 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.shadowdom.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.css +878 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.inline.css +884 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.inline.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.css +4769 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.shadowdom.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.css +890 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.inline.css +884 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.inline.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.css +4880 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.shadowdom.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.css +878 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.inline.css +884 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.inline.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.inline.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/content.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.css +4880 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.shadowdom.css +36 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.shadowdom.js +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +7 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/themes/silver/index.js +13 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/themes/silver/theme.js +31928 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/themes/silver/theme.min.js +337 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/tinymce.d.ts +3313 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/tinymce.js +32267 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/tinymce.min.js +336 -0
- package/src/sap/ui/richtexteditor/js/tiny_mce7/version.txt +1 -0
- package/src/sap/ui/richtexteditor/library.js +9 -3
package/src/sap/ui/richtexteditor/js/tiny_mce7/plugins/tinycomments/js/tinycomments-sidebar.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Tiny Comments plugin
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2023 Ephox Corporation DBA Tiny Technologies, Inc.
|
|
5
|
+
* Licensed under the Tiny commercial license. See https://www.tiny.cloud/legal/
|
|
6
|
+
*
|
|
7
|
+
* Version: 7.7.2-153
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
!function(){"use strict";var e,t;!function(e){e[e.Before=0]="Before",e[e.QueryingDelete=1]="QueryingDelete",e[e.QueryingResolve=2]="QueryingResolve",e[e.PostDelete=3]="PostDelete",e[e.PostResolve=4]="PostResolve"}(e||(e={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed",e[e.Closing=2]="Closing"}(t||(t={}));var n,o,r,i,a,s,c,l,u,d,f,p={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,o){var r,i,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return b(e,s,r,i,null)}function b(e,t,n,i,a){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function w(){return{current:null}}function x(e){return e.children}function E(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function k(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return k(e)}}function M(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!T.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||s)(T)}function T(){var e,t,n,r,a,s,l,u;for(i.sort(c);e=i.shift();)e.__d&&(t=i.length,r=void 0,s=(a=(n=e).__v).__e,l=[],u=[],n.__P&&((r=v({},a)).__v=a.__v+1,o.vnode&&o.vnode(r),L(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[s]:null,l,null==s?C(a):s,!!(32&a.__u),u),r.__v=a.__v,r.__.__k[r.__i]=r,I(l,r,u),r.__e!=s&&k(r)),i.length>t&&i.sort(c));T.__r=0}function S(e,t,n,o,r,i,a,s,c,l,u){var d,f,h,v,g,y=o&&o.__k||m,w=t.length;for(n.__d=c,function(e,t,n){var o,r,i,a,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],o=0;o<c;o++)a=o+d,null!=(r=e.__k[o]=null==(r=t[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?b(null,r,null,null,null):_(r)?b(x,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?b(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=e,r.__b=e.__b+1,s=D(r,n,a,u),r.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s==a-1?d=s-a:s==a+1?d++:s>a?u>c-a?d+=s-a:d--:s<a&&d++,s!==o+d&&(r.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=C(i)),W(i,i,!1),n[a]=null,u--);if(u)for(o=0;o<l;o++)null!=(i=n[o])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=C(i)),W(i,i))}(n,t,y),c=n.__d,d=0;d<w;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(f=-1===h.__i?p:y[h.__i]||p,h.__i=d,L(e,h,f,r,i,a,s,c,l,u),v=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&U(f.ref,null,h),u.push(h.ref,h.__c||v,h)),null==g&&null!=v&&(g=v),65536&h.__u||f.__k===h.__k?c=O(h,c,e):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:v&&(c=v.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=g}function O(e,t,n){var o,r;if("function"==typeof e.type){for(o=e.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=e,t=O(o[r],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=C(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function P(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){P(e,t)})):t.push(e)),t}function D(e,t,n,o){var r=e.key,i=e.type,a=n-1,s=n+1,c=t[n];if(null===c||c&&r==c.key&&i===c.type&&!(131072&c.__u))return n;if(o>(null==c||131072&c.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&r==c.key&&i===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&r==c.key&&i===c.type)return s;s++}}return-1}function A(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function R(e,t,n,o,r){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||A(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=l,e.addEventListener(t,i?d:u,i)):e.removeEventListener(t,i?d:u,i);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function N(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=l++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function L(e,t,n,r,i,a,s,c,l,u){var d,f,p,m,h,g,y,b,w,C,k,M,T,O,P,D,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[c=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof A)try{if(b=t.props,w="prototype"in A&&A.prototype.render,C=(d=A.contextType)&&r[d.__c],k=d?C?C.props.value:d.__:r,n.__c?y=(f=t.__c=n.__c).__=f.__E:(w?t.__c=f=new A(b,k):(t.__c=f=new E(b,k),f.constructor=A,f.render=j),C&&C.sub(f),f.props=b,f.state||(f.state={}),f.context=k,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),w&&null==f.__s&&(f.__s=f.state),w&&null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,A.getDerivedStateFromProps(b,f.__s))),m=f.props,h=f.state,f.__v=t,p)w&&null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),w&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(w&&null==A.getDerivedStateFromProps&&b!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,k),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,k)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=b,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),M=0;M<f._sb.length;M++)f.__h.push(f._sb[M]);f._sb=[],f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,k),w&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(m,h,g)}))}if(f.context=k,f.props=b,f.__P=e,f.__e=!1,T=o.__r,O=0,w){for(f.state=f.__s,f.__d=!1,T&&T(t),d=f.render(f.props,f.state,f.context),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[]}else do{f.__d=!1,T&&T(t),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++O<25);f.state=f.__s,null!=f.getChildContext&&(r=v(v({},r),f.getChildContext())),w&&!p&&null!=f.getSnapshotBeforeUpdate&&(g=f.getSnapshotBeforeUpdate(m,h)),S(e,_(D=null!=d&&d.type===x&&null==d.key?d.props.children:d)?D:[D],t,n,r,i,a,s,c,l,u),f.base=t.__e,t.__u&=-161,f.__h.length&&s.push(f),y&&(f.__E=f.__=null)}catch(e){if(t.__v=null,l||null!=a){for(t.__u|=l?160:32;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;a[a.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;o.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=F(n.__e,t,n,r,i,a,s,l,u);(d=o.diffed)&&d(t)}function I(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)U(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function F(e,t,o,r,i,a,s,c,l){var u,d,f,m,h,v,y,b=o.props,w=t.props,x=t.type;if("svg"===x?i="http://www.w3.org/2000/svg":"math"===x?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:3===h.nodeType)){e=h,a[u]=null;break}if(null==e){if(null===x)return document.createTextNode(w);e=document.createElementNS(i,x,w.is&&w),a=null,c=!1}if(null===x)b===w||c&&e.data===w||(e.data=w);else{if(a=a&&n.call(e.childNodes),b=o.props||p,!c&&null!=a)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],"children"==u);else if("dangerouslySetInnerHTML"==u)f=h;else if("key"!==u&&!(u in w)){if("value"==u&&"defaultValue"in w||"checked"==u&&"defaultChecked"in w)continue;R(e,u,null,h,i)}for(u in w)h=w[u],"children"==u?m=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?v=h:"checked"==u?y=h:"key"===u||c&&"function"!=typeof h||b[u]===h||R(e,u,h,b[u],i);if(d)c||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),S(e,_(m)?m:[m],t,o,r,"foreignObject"===x?"http://www.w3.org/1999/xhtml":i,a,s,a?a[0]:o.__k&&C(o,0),c,l),null!=a)for(u=a.length;u--;)null!=a[u]&&g(a[u]);c||(u="value",void 0!==v&&(v!==e[u]||"progress"===x&&!v||"option"===x&&v!==b[u])&&R(e,u,v,b[u],i),u="checked",void 0!==y&&y!==e[u]&&R(e,u,y,b[u],i))}return e}function U(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,n)}}function W(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||U(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&W(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function H(e,t,r){var i,a,s,c;o.__&&o.__(e,t),a=(i="function"==typeof r)?null:r&&r.__k||t.__k,s=[],c=[],L(t,e=(!i&&r||t).__k=y(x,null,[e]),a||p,p,t.namespaceURI,!i&&r?[r]:a?null:t.firstChild?n.call(t.childNodes):null,s,!i&&r?r:a?a.__e:t.firstChild,i,c),I(s,e,c)}function B(e,t){H(e,t,B)}function $(e,t,o){var r,i,a,s,c=v({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?r=t[a]:"ref"==a?i=t[a]:c[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?n.call(arguments,2):o),b(e.type,c,r||e.key,i||e.ref,null)}function K(e,t){var n={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,M(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n=m.slice,o={__e:function(e,t,n,o){for(var r,i,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},r=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},E.prototype.render=x,i=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,l=0,u=N(!1),d=N(!0),f=0;var V=0;function z(e,t,n,r,i,a){t||(t={});var s,c,l=t;if("ref"in l)for(c in l={},t)"ref"==c?s=t[c]:l[c]=t[c];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--V,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(c in s)void 0===l[c]&&(l[c]=s[c]);return o.vnode&&o.vnode(u),u}let Y=0,X=[],q=[],G=(e,t)=>{let n=[],o={get:()=>(o.lc||o.listen((()=>{}))(),o.value),l:t||0,lc:0,listen:(e,t)=>(o.lc=n.push(e,t||o.l)/2,()=>{let t=n.indexOf(e);~t&&(n.splice(t,2),--o.lc||o.off())}),notify(e,t){let r=!q.length;for(let r=0;r<n.length;r+=2)q.push(n[r],n[r+1],o.value,e,t);if(r){for(let e=0;e<q.length;e+=5){let t;for(let n=e+1;!t&&(n+=5)<q.length;)q[n]<q[e+1]&&(t=q.push(q[e],q[e+1],q[e+2],q[e+3],q[e+4]));t||q[e](q[e+2],q[e+3],q[e+4])}q.length=0}},off(){},set(e){let t=o.value;t!==e&&(o.value=e,o.notify(t))},subscribe(e,t){let n=o.listen(e,t);return e(o.value),n},value:e};return o},Z=(e,t,n,o)=>(e.events=e.events||{},e.events[n+10]||(e.events[n+10]=o((t=>{e.events[n].reduceRight(((e,t)=>(t(e),e)),{shared:{},...t})}))),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let o=e.events[n],r=o.indexOf(t);o.splice(r,1),o.length||(delete e.events[n],e.events[n+10](),delete e.events[n+10])}),Q=(e,t)=>Z(e,t,1,(t=>{let n=e.off;return e.off=()=>{t(),n()},()=>{e.off=n}})),J=(e={})=>{let t=G(e);return t.setKey=function(e,n){let o=t.value;void 0===n&&e in t.value?(t.value={...t.value},delete t.value[e],t.notify(o,e)):t.value[e]!==n&&(t.value={...t.value,[e]:n},t.notify(o,e))},t};var ee=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},te=function(e){return{eq:e}},ne=te((function(e,t){return e===t})),oe=ne,re=function(e){return te((function(t,n){if(t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e.eq(t[r],n[r]))return!1;return!0}))},ie=te((function(e,t){if(e===t)return!0;var n,o=ee(e);return o===ee(t)&&(function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)}(o)?e===t:"array"===o?re(ie).eq(e,t):"object"===o&&(n=ie,te((function(e,t){var o=Object.keys(e),r=Object.keys(t);if(!function(e,t){return function(e,t){return te((function(n,o){return e.eq(t(n),t(o))}))}(re(e),(function(e){return function(e,t){return Array.prototype.slice.call(e).sort(t)}(e,t)}))}(oe).eq(o,r))return!1;for(var i=o.length,a=0;a<i;a++){var s=o[a];if(!n.eq(e[s],t[s]))return!1}return!0}))).eq(e,t))}));const ae=e=>t=>(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&((e,t)=>{var n;return!!((e,t)=>t.isPrototypeOf(e))(e,t.prototype)||(null===(n=e.constructor)||void 0===n?void 0:n.name)===t.name})(e,String)?"string":t})(t)===e,se=e=>t=>typeof t===e,ce=ae("string"),le=ae("object"),ue=ae("array"),de=se("boolean"),fe=e=>void 0===e,pe=e=>null==e,me=e=>!pe(e),he=se("function"),_e=se("number"),ve=()=>{},ge=e=>()=>e,ye=e=>e,be=(e,t)=>e===t;function we(e,...t){return(...n)=>{const o=t.concat(n);return e.apply(null,o)}}const xe=e=>t=>!e(t),Ee=e=>e(),Ce=ge(!1),ke=ge(!0);class Me{constructor(e,t){this.tag=e,this.value=t}static some(e){return new Me(!0,e)}static none(){return Me.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?Me.some(e(this.value)):Me.none()}bind(e){return this.tag?e(this.value):Me.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:Me.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return me(e)?Me.some(e):Me.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Me.singletonNone=new Me(!1);const Te=Array.prototype.slice,Se=Array.prototype.indexOf,Oe=Array.prototype.push,Pe=(e,t)=>((e,t)=>Se.call(e,t))(e,t)>-1,De=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},Ae=(e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o},Re=(e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)},Ne=(e,t)=>{const n=[];for(let o=0,r=e.length;o<r;o++){const r=e[o];t(r,o)&&n.push(r)}return n},Le=(e,t,n)=>(((e,t)=>{for(let n=e.length-1;n>=0;n--)t(e[n],n)})(e,((e,o)=>{n=t(n,e,o)})),n),Ie=(e,t,n)=>(Re(e,((e,o)=>{n=t(n,e,o)})),n),Fe=(e,t)=>((e,t,n)=>{for(let o=0,r=e.length;o<r;o++){const r=e[o];if(t(r,o))return Me.some(r);if(n(r,o))break}return Me.none()})(e,t,Ce),Ue=(e,t)=>{for(let n=0,o=e.length;n<o;n++)if(t(e[n],n))return Me.some(n);return Me.none()},We=(e,t)=>(e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!ue(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);Oe.apply(t,e[n])}return t})(Ae(e,t)),je=(e,t)=>{for(let n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0},He=e=>{const t=Te.call(e,0);return t.reverse(),t},Be=(e,t)=>t>=0&&t<e.length?Me.some(e[t]):Me.none(),$e=e=>Be(e,0),Ke=e=>Be(e,e.length-1),Ve=Object.keys,ze=Object.hasOwnProperty,Ye=(e,t)=>{const n=Ve(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}},Xe=(e,t)=>qe(e,t)?Me.from(e[t]):Me.none(),qe=(e,t)=>ze.call(e,t),Ge=(e,t)=>e?Me.some(t):Me.none(),Ze=()=>Qe(0,0),Qe=(e,t)=>({major:e,minor:t}),Je={nu:Qe,detect:(e,t)=>{const n=String(t).toLowerCase();return 0===e.length?Ze():((e,t)=>{const n=((e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.test(t))return o}})(e,t);if(!n)return{major:0,minor:0};const o=e=>Number(t.replace(n,"$"+e));return Qe(o(1),o(2))})(e,n)},unknown:Ze},et=(e,t)=>{const n=String(t).toLowerCase();return Fe(e,(e=>e.search(n)))},tt=(e,t)=>ot(e,t)?((e,t)=>e.substring(t))(e,t.length):e,nt=(e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!fe(o)||r+t.length<=o)},ot=(e,t)=>((e,t)=>""===t||e.length>=t.length&&e.substr(0,0+t.length)===t)(e,t),rt=e=>t=>t.replace(e,""),it=rt(/^\s+|\s+$/g),at=rt(/^\s+/g),st=e=>e.length>0,ct=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,lt=e=>t=>nt(t,e),ut=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>nt(e,"edge/")&&nt(e,"chrome")&&nt(e,"safari")&&nt(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ct],search:e=>nt(e,"chrome")&&!nt(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>nt(e,"msie")||nt(e,"trident")},{name:"Opera",versionRegexes:[ct,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:lt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:lt("firefox")},{name:"Safari",versionRegexes:[ct,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(nt(e,"safari")||nt(e,"mobile/"))&&nt(e,"applewebkit")}],dt=[{name:"Windows",search:lt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>nt(e,"iphone")||nt(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:lt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:lt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:lt("linux"),versionRegexes:[]},{name:"Solaris",search:lt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:lt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:lt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ft={browsers:ge(ut),oses:ge(dt)},pt=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isEdge:o("Edge"),isChromium:o("Chromium"),isIE:o("IE"),isOpera:o("Opera"),isFirefox:o("Firefox"),isSafari:o("Safari")}},mt=()=>pt({current:void 0,version:Je.unknown()}),ht=pt,_t=e=>{const t=e.current,n=e.version,o=e=>()=>t===e;return{current:t,version:n,isWindows:o("Windows"),isiOS:o("iOS"),isAndroid:o("Android"),isMacOS:o("macOS"),isLinux:o("Linux"),isSolaris:o("Solaris"),isFreeBSD:o("FreeBSD"),isChromeOS:o("ChromeOS")}},vt=()=>_t({current:void 0,version:Je.unknown()}),gt=_t,yt=(e,t,n)=>{const o=ft.browsers(),r=ft.oses(),i=t.bind((e=>((e,t)=>((e,t)=>{for(let n=0;n<e.length;n++){const o=t(e[n]);if(o.isSome())return o}return Me.none()})(t.brands,(t=>{const n=t.brand.toLowerCase();return Fe(e,(e=>{var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((e=>({current:e.name,version:Je.nu(parseInt(t.version,10),0)})))})))(o,e))).orThunk((()=>((e,t)=>et(e,t).map((e=>{const n=Je.detect(e.versionRegexes,t);return{current:e.name,version:n}})))(o,e))).fold(mt,ht),a=((e,t)=>et(e,t).map((e=>{const n=Je.detect(e.versionRegexes,t);return{current:e.name,version:n}})))(r,e).fold(vt,gt),s=((e,t,n,o)=>{const r=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!r,a=e.isiOS()||e.isAndroid(),s=a||o("(pointer:coarse)"),c=r||!i&&a&&o("(min-device-width:768px)"),l=i||a&&!c,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!u;return{isiPad:ge(r),isiPhone:ge(i),isTablet:ge(c),isPhone:ge(l),isTouch:ge(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:ge(u),isDesktop:ge(d)}})(a,i,e,n);return{browser:i,os:a,deviceType:s}},bt=e=>window.matchMedia(e).matches;let wt=(e=>{let t,n=!1;return(...o)=>(n||(n=!0,t=e.apply(null,o)),t)})((()=>yt(window.navigator.userAgent,Me.from(window.navigator.userAgentData),bt)));const xt=()=>wt(),Et="undefined"!=typeof window?window:Function("return this;")(),Ct=(e,t)=>((e,t)=>{let n=null!=t?t:Et;for(let t=0;t<e.length&&null!=n;++t)n=n[e[t]];return n})(e.split("."),t),kt=Object.getPrototypeOf,Mt=e=>{const t=Ct("ownerDocument.defaultView",e);return le(e)&&((e=>((e,t)=>{const n=((e,t)=>Ct(e,t))(e,t);if(null==n)throw new Error(e+" not available on this browser");return n})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(kt(e).constructor.name))},Tt=e=>e.dom.nodeName.toLowerCase(),St=e=>t=>(e=>e.dom.nodeType)(t)===e,Ot=e=>Pt(e)&&Mt(e.dom),Pt=St(1),Dt=St(3),At=St(11),Rt=(e,t,n)=>{((e,t,n)=>{if(!(ce(n)||de(n)||_e(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")})(e.dom,t,n)},Nt=(e,t)=>{const n=e.dom.getAttribute(t);return null===n?void 0:n},Lt=(e,t)=>Me.from(Nt(e,t)),It=(e,t)=>{e.dom.removeAttribute(t)},Ft=(e,t)=>(e=>void 0!==e.dom.classList)(e)&&e.dom.classList.contains(t);var Ut,Wt,jt,Ht,Bt=0,$t=[],Kt=o,Vt=Kt.__b,zt=Kt.__r,Yt=Kt.diffed,Xt=Kt.__c,qt=Kt.unmount,Gt=Kt.__;function Zt(e,t){Kt.__h&&Kt.__h(Wt,e,Bt||t),Bt=0;var n=Wt.__H||(Wt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Qt(e){return Bt=1,Jt(_n,e)}function Jt(e,t,n){var o=Zt(Ut++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):_n(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=Wt,!Wt.u)){var r=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};Wt.u=!0;var i=Wt.shouldComponentUpdate,a=Wt.componentWillUpdate;Wt.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,r(e,t,n),i=o}a&&a.call(this,e,t,n)},Wt.shouldComponentUpdate=r}return o.__N||o.__}function en(e,t){var n=Zt(Ut++,3);!Kt.__s&&hn(n.__H,t)&&(n.__=e,n.i=t,Wt.__H.__h.push(n))}function tn(e,t){var n=Zt(Ut++,4);!Kt.__s&&hn(n.__H,t)&&(n.__=e,n.i=t,Wt.__h.push(n))}function nn(e){return Bt=5,rn((function(){return{current:e}}),[])}function on(e,t,n){Bt=6,tn((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function rn(e,t){var n=Zt(Ut++,7);return hn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function an(e,t){return Bt=8,rn((function(){return e}),t)}function sn(e){var t=Wt.context[e.__c],n=Zt(Ut++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Wt)),t.props.value):e.__}function cn(e,t){Kt.useDebugValue&&Kt.useDebugValue(t?t(e):e)}function ln(){var e=Zt(Ut++,11);if(!e.__){for(var t=Wt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function un(){for(var e;e=$t.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pn),e.__H.__h.forEach(mn),e.__H.__h=[]}catch(t){e.__H.__h=[],Kt.__e(t,e.__v)}}Kt.__b=function(e){Wt=null,Vt&&Vt(e)},Kt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Gt&&Gt(e,t)},Kt.__r=function(e){zt&&zt(e),Ut=0;var t=(Wt=e.__c).__H;t&&(jt===Wt?(t.__h=[],Wt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(pn),t.__h.forEach(mn),t.__h=[],Ut=0)),jt=Wt},Kt.diffed=function(e){Yt&&Yt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==$t.push(t)&&Ht===Kt.requestAnimationFrame||((Ht=Kt.requestAnimationFrame)||fn)(un)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),jt=Wt=null},Kt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pn),e.__h=e.__h.filter((function(e){return!e.__||mn(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Kt.__e(n,e.__v)}})),Xt&&Xt(e,t)},Kt.unmount=function(e){qt&&qt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{pn(e)}catch(e){t=e}})),n.__H=void 0,t&&Kt.__e(t,n.__v))};var dn="function"==typeof requestAnimationFrame;function fn(e){var t,n=function(){clearTimeout(o),dn&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);dn&&(t=requestAnimationFrame(n))}function pn(e){var t=Wt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Wt=t}function mn(e){var t=Wt;e.__c=e.__(),Wt=t}function hn(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function _n(e,t){return"function"==typeof t?t(e):t}function vn(e,t={}){let[,n]=Qt({}),[o]=Qt(e.get());return en((()=>{o!==e.get()&&n({})}),[]),en((()=>{let o,r,i,a=()=>{o||(o=1,r=setTimeout((()=>{o=void 0,n({})})))};return i=t.keys?function(e,t,n){let o=new Set([...t,void 0]);return e.listen(((e,t,r)=>{o.has(r)&&n(e,t,r)}))}(e,t.keys,a):e.listen(a),()=>{i(),clearTimeout(r)}}),[e,""+t.keys]),e.get()}const gn=()=>(new Date).toISOString(),yn=36e5,bn=864e5,wn=6048e5,xn=24192e5,En=290304e5;var Cn;!function(e){e[e.LessThanMinute=0]="LessThanMinute",e[e.Minute=1]="Minute",e[e.Hour=2]="Hour",e[e.Day=3]="Day",e[e.Week=4]="Week",e[e.Month=5]="Month",e[e.Year=6]="Year"}(Cn||(Cn={}));const kn=we(((e,t)=>{const n=e()-Date.parse(t);return n<6e4?{interval:Cn.LessThanMinute,intervalUnits:n,intervalMs:n}:n<yn?{interval:Cn.Minute,intervalUnits:Math.floor(n/6e4),intervalMs:n}:n<bn?{interval:Cn.Hour,intervalUnits:Math.floor(n/yn),intervalMs:n}:n<wn?{interval:Cn.Day,intervalUnits:Math.floor(n/bn),intervalMs:n}:n<xn?{interval:Cn.Week,intervalUnits:Math.floor(n/wn),intervalMs:n}:n<En?{interval:Cn.Month,intervalUnits:Math.floor(n/xn),intervalMs:n}:{interval:Cn.Year,intervalUnits:Math.floor(n/En),intervalMs:n}}),(()=>Date.now())),Mn=(e,t,n,o)=>{const r=e+t;return r>o?n:r<n?o:r},Tn=(e,t,n)=>Math.min(Math.max(e,t),n),Sn=()=>window.crypto.getRandomValues(new Uint32Array(1))[0]/4294967295;let On=0;const Pn=e=>{const t=(new Date).getTime(),n=Math.floor(1e9*Sn());return On++,e+"_"+n+On+String(t)},Dn=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},An=Dn,Rn=(e,t)=>{const n=e.dom;if(1!==n.nodeType)return!1;{const e=n;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},Nn=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,Ln=(e,t)=>e.dom===t.dom,In=(e,t)=>{const n=e.dom.childNodes;return Me.from(n[t]).map(An)},Fn=e=>In(e,0),Un=e=>An(e.dom.getRootNode()),Wn=e=>An(e.dom.host),jn=e=>{const t=Dt(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const n=t.ownerDocument;return(e=>{const t=Un(e);return At(n=t)&&me(n.dom.host)?Me.some(t):Me.none();var n})(An(t)).fold((()=>n.body.contains(t)),(o=jn,r=Wn,e=>o(r(e))));var o,r},Hn=(e,t)=>((e,t)=>{const n=void 0===t?document:t.dom;return Nn(n)?[]:Ae(n.querySelectorAll(e),An)})(t,e),Bn=ge("tinycomments"),$n=ge("data-mce-annotation"),Kn=ge("data-mce-annotation-uid"),Vn=ge("tmp"),zn=(e,t)=>Xe(e.annotator.getAll(Bn()),t).map((t=>Ae(t,(t=>((e,t)=>{const n="SPAN"===t.nodeName;return e.serialize(t,{getInner:n,selection:!0})})(e.serializer,t))).join(" "))).getOr(""),Yn=e=>ot(e,Vn()),Xn=(e,t)=>{const n=An(t.commonAncestorContainer),o=Ot(n)?Me.some(n):(r=n,Me.from(r.dom.parentElement).map(An));var r;const i=`[${$n()}="${Bn()}"]`,a=o.map((e=>Hn(e,i))).getOr([]),s=He(((t,n)=>((e,t,n)=>Ne(((e,t)=>{const n=he(t)?t:Ce;let o=e.dom;const r=[];for(;null!==o.parentNode&&void 0!==o.parentNode;){const e=o.parentNode,t=An(e);if(r.push(t),!0===n(t))break;o=e}return r})(e,n),t))(t,(e=>Rn(e,n)),(t=>t.dom===e.getBody())))(n,i));return Rn(n,i)&&s.push(n),Ne(s.concat(a),(e=>{return!(Nt(n=e,$n())===Bn()&&Lt(n,Kn()).exists(Yn))&&((e,t)=>e.intersectsNode(t.dom))(t,e);var n}))},qn=e=>{const t=e.selection.bookmarkManager.getBookmark();Ye(e.annotator.getAll(Bn()),((t,n)=>{Yn(n)&&t.forEach((t=>{e.selection.select(t),e.annotator.remove(Bn())}))})),e.selection.bookmarkManager.moveToBookmark(t)},Gn=(e,t)=>{Xe(e.annotator.getAll(Bn()),t).each((t=>{const n=document.createRange();n.setStartBefore(t[0]),n.setEndAfter(t[t.length-1]),e.selection.setRng(n)}))},Zn=e=>Pt(e)&&"hr"===Tt(e);const Qn=(e,t)=>(e=>{const t=An(e.selection.getNode()),n=An(e.selection.getStart());return(e=>{let t=e.selection.getRng().commonAncestorContainer;return 3===t.nodeType&&(t=t.parentNode),!!me(t)&&e.dom.isEmpty(t)})(e)||Zn(t)||Zn(n)})(e)||!(e=>{if(e.selection){const t=e.selection.getRng(),n=Xn(e,t);return $e(n).forall((e=>Ke(n).forall((o=>{const r=Nt(e,Kn());if(De(n,(e=>Nt(e,Kn())!==r)))return!1;const i=new window.Range;return i.setStartBefore(e.dom),i.setEndAfter(o.dom),i.compareBoundaryPoints(window.Range.START_TO_START,t)<=0&&i.compareBoundaryPoints(window.Range.END_TO_END,t)>=0}))))}return!1})(e)||!t.get().canWrite,Jn=((e,t)=>((e,t)=>{const n={};return Ye(e,((e,o)=>{const r=t(e,o);n[r.k]=r.v})),n})(e,((e,n)=>({k:n,v:t(e,n)}))))({tc_conversations_title:"Comments",tc_announce_sidebar_available:`Comment. Sidebar available. Press ${xt().os.isMacOS()?"\u2318":"Ctrl"} + Alt + M to switch to sidebar`,tc_items_addcomment:"Add comment",tc_items_showcomments:"Show comments",tc_items_deleteall:"Delete all conversations",tc_edit_buttons_save:"Save",tc_edit_buttons_saving:"Saving",tc_edit_buttons_cancel:"Cancel",tc_reply_buttons_comment:"Comment",tc_reply_buttons_clear:"Clear",tc_reply_placeholders:"Add comment...",tc_reply_with_mentions_placeholders:"Comment or mention with @",tc_kebab_tooltip:"Comment Actions",tc_kebab_tooltip_conversation:"Conversation Actions",tc_kebab_delete_conversation:"Delete conversation",tc_kebab_resolve_conversation:"Resolve conversation",tc_kebab_delete:"Delete",tc_kebab_edit:"Edit",tc_edit_problem_comment:"An error occurred editing this comment. See the console for details.",tc_edit_unauthorised_comment:"You are not allowed to edit this comment",tc_delete_buttons_cancel:"Cancel",tc_delete_buttons_proceed:"Delete",tc_resolve_buttons_proceed:"Resolve",tc_create_problem:"An error occurred while creating a comment. See the console for details",tc_reply_problem:"An error occurred while replying to a comment. See the console for details",tc_delete_prompts_conversation:"Delete this conversation?",tc_delete_prompts_conversation_detail_sing:"1 comment will be deleted. You can't undo this action.",tc_delete_prompts_conversation_detail_pl:"{0} comments will be deleted. You can't undo this action.",tc_delete_prompts_all:"Delete all conversations in the content? This cannot be undone.",tc_delete_prompts_comment:"Are you sure you want to delete this comment?",tc_resolve_prompts_conversation:"Resolve this conversation?",tc_resolve_prompts_conversation_detail_sing:"1 comment will be resolved. You can't undo this action.",tc_resolve_prompts_conversation_detail_pl:"{0} comments will be resolved. You can't undo this action.",tc_delete_problem_all:"An error occurred deleting all the conversations. See the console for details.",tc_delete_problem_conversation:"An error occurred deleting the conversation. See the console for details.",tc_delete_problem_comment:"An error occurred deleting the comment. See the console for details.",tc_delete_unauthorised_all:"You are not allowed to delete all the conversations",tc_delete_unauthorised_conversation:"You are not allowed to delete this conversation",tc_delete_unauthorised_comment:"You are not allowed to delete this comment",tc_resolve_unauthorised_conversation:"You are not allowed to resolve this conversation",tc_resolve_problem_conversation:"An error occurred resolving the conversation. See the console for details.",tc_date_less_than_a_minute_ago:"a moment ago",tc_date_1_minute_ago:"1 minute ago",tc_date_x_minutes_ago:"{0} minutes ago",tc_date_1_hour_ago:"1 hour ago",tc_date_x_hours_ago:"{0} hours ago",tc_date_1_day_ago:"1 day ago",tc_date_x_days_ago:"{0} days ago",tc_date_1_week_ago:"1 week ago",tc_date_x_weeks_ago:"{0} weeks ago",tc_date_1_month_ago:"1 month ago",tc_date_x_months_ago:"{0} months ago",tc_date_1_year_ago:"1 year ago",tc_date_x_years_ago:"{0} years ago",tc_date_comment_edited:" (edited)",tc_conversations_one_reply:"1 reply",tc_conversations_multiple_replies:"{0} replies",tc_dialog_delete_conversation:"Delete Conversation",tc_dialog_resolve_conversation:"Resolve Conversation",tc_dialog_delete_comment:"Delete Comment",tc_mentions_no_results:"No users found"},ye),eo=(e,t,n)=>{e.notificationManager.open({text:t,type:"error"}),n&&console.error(t,n)},to=(e,t)=>{e.execCommand("tc-delete-conversation-at-cursor",!1,{conversationUid:t})},no=e=>{let t=Me.none(),n=[];const o=e=>{r()?i(e):n.push(e)},r=()=>t.isSome(),i=e=>{t.each((t=>{setTimeout((()=>{e(t)}),0)}))};return e((e=>{r()||(t=Me.some(e),Re(n,i),n=[])})),{get:o,map:e=>no((t=>{o((n=>{t(e(n))}))})),isReady:r}},oo={nu:no,pure:e=>no((t=>{t(e)}))},ro=e=>{setTimeout((()=>{throw e}),0)},io=e=>{const t=t=>{e().then(t,ro)};return{map:t=>io((()=>e().then(t))),bind:t=>io((()=>e().then((e=>t(e).toPromise())))),anonBind:t=>io((()=>e().then((()=>t.toPromise())))),toLazy:()=>oo.nu(t),toCached:()=>{let t=null;return io((()=>(null===t&&(t=e()),t)))},toPromise:e,get:t}},ao=e=>io((()=>Promise.resolve(e))),so=e=>{const t=t=>t(e),n=ge(e),o=()=>r,r={tag:!0,inner:e,fold:(t,n)=>n(e),isValue:ke,isError:Ce,map:t=>lo.value(t(e)),mapError:o,bind:t,exists:t,forall:t,getOr:n,or:o,getOrThunk:n,orThunk:o,getOrDie:n,each:t=>{t(e)},toOptional:()=>Me.some(e)};return r},co=e=>{const t=()=>n,n={tag:!1,inner:e,fold:(t,n)=>t(e),isValue:Ce,isError:ke,map:t,mapError:t=>lo.error(t(e)),bind:t,exists:Ce,forall:ke,getOr:ye,or:ye,getOrThunk:Ee,orThunk:Ee,getOrDie:(o=String(e),()=>{throw new Error(o)}),each:ve,toOptional:Me.none};var o;return n},lo={value:so,error:co,fromOption:(e,t)=>e.fold((()=>co(t)),so)},uo=e=>({...e,toCached:()=>uo(e.toCached()),bindFuture:t=>uo(e.bind((e=>e.fold((e=>ao(lo.error(e))),(e=>t(e)))))),bindResult:t=>uo(e.map((e=>e.bind(t)))),mapResult:t=>uo(e.map((e=>e.map(t)))),mapError:t=>uo(e.map((e=>e.mapError(t)))),foldResult:(t,n)=>e.map((e=>e.fold(t,n))),withTimeout:(t,n)=>{return uo((o=o=>{let r=!1;const i=setTimeout((()=>{r=!0,o(lo.error(n()))}),t);e.get((e=>{r||(clearTimeout(i),o(e))}))},io((()=>new Promise(o)))));var o}}),fo=e=>t=>t.options.get(e),po=fo("tinycomments_author"),mo=(wo=po,e=>{var t;return null!==(t=e.options.get("tinycomments_author_name"))&&void 0!==t?t:wo(e)}),ho=fo("tinycomments_author_avatar"),_o=fo("tinycomments_mentions_enabled"),vo=fo("ui_mode"),go=fo("disabled"),yo=()=>An(document),bo=(e,t=!1)=>e.dom.focus({preventScroll:t});var wo,xo=(e,t,n,o,r)=>e(n,o)?Me.some(n):he(r)&&r(n)?Me.none():t(n,o,r);const Eo=(e,t,n)=>{let o=e.dom;const r=he(n)?n:Ce;for(;o.parentNode;){o=o.parentNode;const e=An(o);if(t(e))return Me.some(e);if(r(e))break}return Me.none()},Co=(e,t,n)=>Eo(e,(e=>Rn(e,t)),n),ko=(e,t)=>((e,t)=>{const n=void 0===t?document:t.dom;return Nn(n)?Me.none():Me.from(n.querySelector(e)).map(An)})(t,e),Mo=(e,t,n)=>xo(((e,t)=>Rn(e,t)),Co,e,t,n),To=(e,t)=>ko(e,t).each(bo),So=(e,t)=>Co(e,t).each(bo),Oo=e=>void 0!==e.style&&he(e.style.getPropertyValue),Po=(e,t,n)=>{if(!ce(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Oo(e)&&e.style.setProperty(t,n)},Do=(e,t,n)=>{const o=e.dom;Po(o,t,n)},Ao=(e,t)=>{const n=e.dom;Ye(t,((e,t)=>{Po(n,t,e)}))},Ro=(e,t)=>{const n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||jn(e)?o:No(n,t)},No=(e,t)=>Oo(e)?e.style.getPropertyValue(t):"",Lo=(e,t)=>n=>"rtl"===Io(n)?t:e,Io=e=>"rtl"===Ro(e,"direction")?"rtl":"ltr",Fo=e=>(t,n,o)=>{const r=e(t);return jo(r,t,n,o)},Uo=(e,t)=>{const n=Lo(e,t);return Fo(n)},Wo=(e,t)=>{const n=Lo(t,e);return Fo(n)},jo=(e,t,n,o)=>o.focusManager.get(t).bind((n=>e(t,n,o))).map((e=>(o.focusManager.set(t,e),!0))),Ho=e=>{return!((t=e.dom).offsetWidth<=0&&t.offsetHeight<=0);var t},Bo=(e,t,n)=>{const o=Hn(e,n);return(e=>Ue(e,(e=>Ln(e,t))).map((t=>({index:t,candidates:e}))))(Ne(o,Ho))},$o=(e,t,n,o,r)=>{const i=(e,t,n)=>r(e,t,o,0,n.length-1,n[t],(t=>{return o=n[t],"button"===Tt(o)&&"disabled"===Nt(o,"disabled")?i(e,t,n):Me.from(n[t]);var o}));return Bo(e,n,t).bind((e=>{const t=e.index,n=e.candidates;return i(t,t,n)}))},Ko=(e,t,n,o)=>$o(e,t,n,o,((e,t,n,o,r,i,a)=>{const s=Tn(t+n,o,r);return s===e?Me.from(i):a(s)})),Vo=(e,t,n,o)=>$o(e,t,n,o,((e,t,n,o,r,i,a)=>{const s=Mn(t,n,o,r);return s===e?Me.none():a(s)}));var zo;!function(e){e.OnFocusMode="onFocus"}(zo||(zo={}));const Yo=(e,t)=>({matches:e,classification:t}),Xo=(e,t,n,o)=>{const r={...e,focusManager:{get:e=>{return((e=yo())=>Me.from(e.dom.activeElement).map(An))(Un(t=e)).filter((e=>t.dom.contains(e.dom)));var t},set:(e,t)=>{t.dom.focus(),t.dom.dispatchEvent(new window.Event("Focus"))}},focusInside:zo.OnFocusMode,focusIn:o},i=(e,t,n)=>((e,t)=>{const n=Fe(e,(e=>e.matches(t)));return n.map((e=>e.classification))})(n(e,t,r),t).bind((n=>n(e,t,r)));return{handleKeydown:(e,n)=>i(e,n,t).each((e=>{n.preventDefault(),n.stopPropagation()})),handleKeyup:(e,t)=>i(e,t,n).each((()=>{t.preventDefault(),t.stopPropagation()})),handleFocus:(e,t)=>{o(r).each((n=>{n(e,r),t.preventDefault(),t.stopPropagation()}))}}},qo=e=>t=>Pe(e,t.which),Go=e=>t=>je(e,(e=>e(t))),Zo=e=>!0===e.shiftKey,Qo=e=>!Zo(e),Jo=[9],er=[13],tr=[37],nr=[38],or=[39],rr=[40],ir=[32],ar=[27],sr=(e,t)=>{const n=n=>{const o=t(n);if(o<=0||null===o){const t=Ro(n,e);return parseFloat(t)||0}return o},o=(e,t)=>Ie(t,((t,n)=>{const o=Ro(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r}),0);return{set:(t,n)=>{if(!_e(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);const o=t.dom;Oo(o)&&(o.style[e]=n+"px")},get:n,getOuter:n,aggregate:o,max:(e,t,n)=>{const r=o(e,n);return t>r?t-r:0}}},cr=sr("height",(e=>{const t=e.dom;return jn(e)?t.getBoundingClientRect().height:t.offsetHeight})),lr=e=>cr.get(e),ur=e=>cr.getOuter(e),dr=(e,t,n)=>{const o=He(e.slice(0,t)),r=He(e.slice(t+1));return Fe(o.concat(r),n)},fr=(e,t,n)=>{const o=He(e.slice(0,t));return Fe(o,n)},pr=(e,t,n)=>{const o=e.slice(0,t),r=e.slice(t+1);return Fe(r.concat(o),n)},mr=(e,t,n)=>{const o=e.slice(t+1);return Fe(o,n)},hr=(e,t)=>t.closest?t.focusManager.get(e).bind((e=>Mo(e,t.selector))):t.focusManager.get(e),_r=(e,t)=>{((e,t)=>{const n=Hn(e,t.selector),o=Ne(n,(e=>lr(e)>0));return Me.from(o[t.firstTabstop])})(e,t).each((n=>t.focusManager.set(e,n)))},vr=(e,t,n,o)=>{const r=Hn(e,n.selector);return hr(e,n).bind((t=>Ue(r,we(Ln,t)).bind((t=>((e,t,n,o,r)=>r(t,n,(e=>((e,t)=>e.useTabstopAt(t))(o,e))).fold((()=>o.cyclic?Me.some(!0):Me.none()),(t=>(o.focusManager.set(e,t),Me.some(!0)))))(e,r,t,n,o)))))},gr=(e,t,n)=>{const o=n.cyclic?dr:fr;return vr(e,0,n,o)},yr=(e,t,n)=>{const o=n.cyclic?pr:mr;return vr(e,0,n,o)},br=(e,t,n)=>hr(e,n).bind((e=>n.execute(e))),wr=ge([Yo(Go([Zo,qo(Jo)]),gr),Yo(qo(Jo),yr),Yo(qo(er),br),Yo(qo(ir),br),Yo(qo(ar),((e,t,n)=>hr(e,n).bind((e=>n.escape(e)))))]),xr=ge([Yo(qo(Jo),((e,t,n)=>hr(e,n).filter((e=>!n.useTabstopAt(e))).bind((o=>((e=>{return(t=e,(e=>Me.from(e.dom.parentNode).map(An))(t)).bind(Fn).exists((t=>Ln(t,e)));var t})(o)?gr:yr)(e,t,n)))))]),Er=(e,t)=>(null==e||e.addEventListener("keydown",t.keydown),null==e||e.addEventListener("keyup",t.keyup),null==e||e.addEventListener("focus",t.focus),()=>{null==e||e.removeEventListener("keydown",t.keydown),null==e||e.removeEventListener("keyup",t.keyup),null==e||e.removeEventListener("focus",t.focus)}),Cr=e=>{en((()=>{const{containerRef:t}=e;if(t.current){const n=((e,t)=>{const n={execute:ge(Me.none()),escape:ge(Me.none()),firstTabstop:0,useTabstopAt:ke,cyclic:!0,focusIn:!1,closest:!0,...t},o=Xo(n,wr,xr,(()=>Ge(n.focusIn,_r)));return{keydown:t=>o.handleKeydown(e,t),keyup:t=>o.handleKeyup(e,t),focus:t=>o.handleFocus(e,t)}})(An(t.current),e);return Er(t.current,n)}return ve}),[])},kr=e=>{en((()=>{const{containerRef:t}=e;if(t.current){const n=((e,t)=>{const n=(e,t)=>t.closest?t.focusManager.get(e).bind((e=>Mo(e,t.selector))):t.focusManager.get(e),o=(e,t,o)=>n(e,o).bind((e=>o.execute(e))),r=(e,t,o)=>n(e,o).bind((e=>o.escape(e))),i=(e,t)=>{ko(e,t.selector).each((n=>{t.focusManager.set(e,n)}))},a=e=>(t,n,o)=>(o.cycles?Vo:Ko)(t,o.selector,n,e),s=a(-1),c=a(1),l=e=>(t,n,o)=>e(t,n,o),u=ge([]),d={execute:e=>(e.dom.dispatchEvent(new window.Event("click")),Me.some(!0)),escape:ge(Me.none()),allowVertical:!0,allowHorizontal:!0,cycles:!0,focusIn:!1,closest:!0,...t},f=Xo(d,((e,t,n)=>{const i=[...n.allowHorizontal?tr:[]].concat(n.allowVertical?nr:[]),a=[...n.allowHorizontal?or:[]].concat(n.allowVertical?rr:[]);return[Yo(qo(i),l(Uo(s,c))),Yo(qo(a),l(Wo(s,c))),Yo(qo(er),o),Yo(qo(ir),o),Yo(qo(ar),r)]}),u,(()=>Ge(d.focusIn,i)));return{keydown:t=>f.handleKeydown(e,t),keyup:t=>f.handleKeyup(e,t),focus:t=>f.handleFocus(e,t)}})(An(t.current),e);return Er(t.current,n)}return ve}),[])},Mr="tox-button--kebab",Tr="tox-comment",Sr="tox-button",Or="tox-comment__single",Pr="tox-menu",Dr="tox-collection",Ar="tox-collection--list",Rr="tox-menu-nav__js",Nr="tox-collection__item-container",Lr="tox-collection__item",Ir="tox-collection__item--state-disabled",Fr=e=>`.${e}`,Ur={kebab:Fr(Mr),card:Fr(Tr),comment:Fr(Or)},Wr="tox-comment--selected",jr={skeleton:["tox-skeleton"],skeletonLine:["tox-skeleton__line"],skeletonCircle:["tox-skeleton__circle"],conversationsTitle:["tox-conversations__title"],conversationsHead:["tox-conversations__header"],date:["tox-comment__date"],replyTextarea:["tox-textarea"],editTextarea:[],kebab:["tox-button--naked",Mr,Sr,"tox-button--icon"],kebabIcon:["tox-icon"],card:[Tr],cardHead:["tox-comment__header"],cardHeadMeta:["tox-comment__meta"],cardBody:["tox-comment__body"],button:[Sr],secondaryButton:[Sr,"tox-button--secondary"],editActions:["tox-comment__edit"],outerScroll:["tox-comment__scroll"],commentList:["tox-comment-thread"],comment:[Or],avatar:["tox-user__avatar"],username:["tox-user__name"],user:["tox-user"],kebabItem:[Lr],kebabItemLabel:["tox-collection__item-label"],kebabDisabledItem:[Ir],kebabMenu:[Pr,Dr,Ar],kebabMenuGroup:["tox-collection__group"],mentionsDropdownList:[Pr,Dr,Ar],mentionsDropdownItem:[Rr,Lr],mentionsDropdownItemActive:["tox-collection__item--active"],mentionsDropdownItemDisabled:[Rr,Lr,Ir],mentionsDropdownItemRow:[Nr,"tox-collection__item-container--row"],mentionsDropdownItemColumn:[Nr,"tox-collection__item-container--column","tox-collection__item-container--align-left","tox-collection__item-container--valign-middle"],mentionsDropdownItemName:["tox-mentions__username"],mentionsDropdownItemDescription:["tox-mentions__description"]},Hr="tox-collection__item--active",Br=(()=>{const e={};return{lookup:t=>Xe(e,t),store:(t,n)=>e[t]=n}})(),$r=["#2DC26B","#F1C40F","#E03E2D","#B96AD9","#3598DB","#169179","#E67E23","#BA372A","#843FA1","#236FA1","#95A5A6","#7E8C8D","#34495E"],Kr=(e,t)=>Me.from(t.authorAvatar).orThunk((()=>e.lookup(t.author))).getOrThunk((()=>{const n=((e,t,n=36)=>{const o=n/2;return`<svg height="${n}" width="${n}" xmlns="http://www.w3.org/2000/svg"><circle cx="${o}" cy="${o}" r="${o}" fill="${t}"/><text x="50%" y="50%" text-anchor="middle" dominant-baseline="central" fill="#FFF" font-family="sans-serif" font-size="${o}">`+(e=>{var t;let n;return Intl.Segmenter&&(n=null===(t=(new Intl.Segmenter).segment(e)[Symbol.iterator]().next().value)||void 0===t?void 0:t.segment),me(n)?n:(()=>{let t=0;for(;e.charCodeAt(t)>255&&t<e.length;)t++;return t>0?e.slice(0,t):e[0]})()})(e)+"</text></svg>"})(t.authorName,(()=>{const e=Math.floor(Sn()*$r.length);return $r[e]})()),o="data:image/svg+xml,"+encodeURIComponent(n);return e.store(t.author,o),o})),Vr=({avatarInfo:e})=>z("div",{class:jr.avatar.join(" "),children:z("img",{alt:"",role:"presentation",src:Kr(Br,e)})}),zr=K(null),Yr=Cn,Xr={[Yr.LessThanMinute]:[Jn.tc_date_less_than_a_minute_ago,Jn.tc_date_less_than_a_minute_ago],[Yr.Minute]:[Jn.tc_date_1_minute_ago,Jn.tc_date_x_minutes_ago],[Yr.Hour]:[Jn.tc_date_1_hour_ago,Jn.tc_date_x_hours_ago],[Yr.Day]:[Jn.tc_date_1_day_ago,Jn.tc_date_x_days_ago],[Yr.Week]:[Jn.tc_date_1_week_ago,Jn.tc_date_x_weeks_ago],[Yr.Month]:[Jn.tc_date_1_month_ago,Jn.tc_date_x_months_ago],[Yr.Year]:[Jn.tc_date_1_year_ago,Jn.tc_date_x_years_ago]},qr=(e,t)=>{const n=Xr[e.interval],o=1===e.intervalUnits?n[0]:n[1];return t.translate([o,e.intervalUnits])},Gr=({details:e})=>{const{universe:t}=sn(zr);return z("div",{class:jr.user.join(" "),children:[z(Vr,{avatarInfo:e}),z("div",{children:[z("div",{class:jr.username.join(" "),children:e.authorName}),z("div",{class:jr.date.join(" "),children:[qr(kn(e.createdAt),t),z("span",{children:e.createdAt!==e.modifiedAt&&t.translate(Jn.tc_date_comment_edited)})]})]})]})};function Zr(e,t){for(var n in t)e[n]=t[n];return e}function Qr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function Jr(e,t){this.props=e,this.context=t}function ei(e,t){function n(e){var n=this.props.ref,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:Qr(this.props,e)}function o(t){return this.shouldComponentUpdate=n,y(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Jr.prototype=new E).isPureReactComponent=!0,Jr.prototype.shouldComponentUpdate=function(e,t){return Qr(this.props,e)||Qr(this.state,t)};var ti=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ti&&ti(e)};var ni="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function oi(e){function t(t){var n=Zr({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ni,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ri=function(e,t){return null==e?null:P(P(e).map(t))},ii={map:ri,forEach:ri,count:function(e){return e?P(e).length:0},only:function(e){var t=P(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:P},ai=o.__e;o.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);ai(e,t,n,o)};var si=o.unmount;function ci(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Zr({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ci(e,t,n)}))),e}function li(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return li(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ui(){this.__u=0,this.t=null,this.__b=null}function di(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function fi(e){var t,n,o;function r(r){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return y(n,r)}return r.displayName="Lazy",r.__f=!0,r}function pi(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),si&&si(e)},(ui.prototype=new E).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=di(o.__v),i=!1,a=function(){i||(i=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=li(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},ui.prototype.componentWillUnmount=function(){this.t=[]},ui.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=ci(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&y(x,null,e.fallback);return r&&(r.__u&=-33),[y(x,null,t.__a?null:e.children),r]};var mi=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function hi(e){return this.getChildContext=function(){return e.context},e.children}function _i(e){var t=this,n=e.i;t.componentWillUnmount=function(){H(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),H(y(hi,{context:t.context},e.__v),t.l)}function vi(e,t){var n=y(_i,{__v:e,i:t});return n.containerInfo=t,n}(pi.prototype=new E).__a=function(e){var t=this,n=di(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),mi(t,e,o)):r()};n?n(i):i()}},pi.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},pi.prototype.componentDidUpdate=pi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){mi(e,n,t)}))};var gi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,bi=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,wi=/[A-Z0-9]/g,xi="undefined"!=typeof document,Ei=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ci(e,t,n){return null==t.__k&&(t.textContent=""),H(e,t),"function"==typeof n&&n(),e?e.__c:null}function ki(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Mi=o.event;function Ti(){}function Si(){return this.cancelBubble}function Oi(){return this.defaultPrevented}o.event=function(e){return Mi&&(e=Mi(e)),e.persist=Ti,e.isPropagationStopped=Si,e.isDefaultPrevented=Oi,e.nativeEvent=e};var Pi,Di={enumerable:!1,configurable:!0,get:function(){return this.class}},Ai=o.vnode;o.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var r in t){var i=t[r];if(!("value"===r&&"defaultValue"in t&&null==i||xi&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Ei(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":bi.test(r)?r=a:-1===n.indexOf("-")&&yi.test(r)?r=r.replace(wi,"-$&").toLowerCase():null===i&&(i=void 0):a=r="oninput","oninput"===a&&o[r=a]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=P(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=P(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",Di)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=gi,Ai&&Ai(e)};var Ri=o.__r;o.__r=function(e){Ri&&Ri(e),Pi=e.__c};var Ni=o.diffed;o.diffed=function(e){Ni&&Ni(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Pi=null};var Li={ReactCurrentDispatcher:{current:{readContext:function(e){return Pi.__n[e.__c].props.value},useCallback:an,useContext:sn,useDebugValue:cn,useDeferredValue:Yi,useEffect:en,useId:ln,useImperativeHandle:on,useInsertionEffect:qi,useLayoutEffect:tn,useMemo:rn,useReducer:Jt,useRef:nn,useState:Qt,useSyncExternalStore:Zi,useTransition:Xi}}};function Ii(e){return y.bind(null,e)}function Fi(e){return!!e&&e.$$typeof===gi}function Ui(e){return Fi(e)&&e.type===x}function Wi(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ji(e){return Fi(e)?$.apply(null,arguments):e}function Hi(e){return!!e.__k&&(H(null,e),!0)}function Bi(e){return e&&(e.base||1===e.nodeType&&e)||null}var $i=function(e,t){return e(t)},Ki=function(e,t){return e(t)},Vi=x;function zi(e){e()}function Yi(e){return e}function Xi(){return[!1,zi]}var qi=tn,Gi=Fi;function Zi(e,t){var n=t(),o=Qt({h:{__:n,v:t}}),r=o[0].h,i=o[1];return tn((function(){r.__=n,r.v=t,Qi(r)&&i({h:r})}),[e,n,t]),en((function(){return Qi(r)&&i({h:r}),e((function(){Qi(r)&&i({h:r})}))}),[e]),n}function Qi(e){var t,n,o=e.v,r=e.__;try{var i=o();return!((t=r)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Ji={useState:Qt,useId:ln,useReducer:Jt,useEffect:en,useLayoutEffect:tn,useInsertionEffect:qi,useTransition:Xi,useDeferredValue:Yi,useSyncExternalStore:Zi,startTransition:zi,useRef:nn,useImperativeHandle:on,useMemo:rn,useCallback:an,useContext:sn,useDebugValue:cn,version:"17.0.2",Children:ii,render:Ci,hydrate:ki,unmountComponentAtNode:Hi,createPortal:vi,createElement:y,createContext:K,createFactory:Ii,cloneElement:ji,createRef:w,Fragment:x,isValidElement:Fi,isElement:Gi,isFragment:Ui,isMemo:Wi,findDOMNode:Bi,Component:E,PureComponent:Jr,memo:ei,forwardRef:oi,flushSync:Ki,unstable_batchedUpdates:$i,StrictMode:Vi,Suspense:ui,SuspenseList:pi,lazy:fi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Li},ea=Object.freeze({__proto__:null,Children:ii,Component:E,Fragment:x,PureComponent:Jr,StrictMode:Vi,Suspense:ui,SuspenseList:pi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Li,cloneElement:ji,createContext:K,createElement:y,createFactory:Ii,createPortal:vi,createRef:w,default:Ji,findDOMNode:Bi,flushSync:Ki,forwardRef:oi,hydrate:ki,isElement:Gi,isFragment:Ui,isMemo:Wi,isValidElement:Fi,lazy:fi,memo:ei,render:Ci,startTransition:zi,unmountComponentAtNode:Hi,unstable_batchedUpdates:$i,useCallback:an,useContext:sn,useDebugValue:cn,useDeferredValue:Yi,useEffect:en,useErrorBoundary:function(e){var t=Zt(Ut++,10),n=Qt();return t.__=e,Wt.componentDidCatch||(Wt.componentDidCatch=function(e,o){t.__&&t.__(e,o),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:ln,useImperativeHandle:on,useInsertionEffect:qi,useLayoutEffect:tn,useMemo:rn,useReducer:Jt,useRef:nn,useState:Qt,useSyncExternalStore:Zi,useTransition:Xi,version:"17.0.2"});const ta=e=>13===e.keyCode,na=e=>32===e.keyCode,oa=qo(ar),ra=()=>z("div",{class:"tox-ring-loader"}),ia=({onClick:e,disabled:t,...n})=>{const{universe:o}=sn(zr);return z("button",{...n,type:"button",tabindex:-1,class:jr.secondaryButton.join(" "),style:{width:"100%"},disabled:t,onClick:e,children:o.translate(Jn.tc_reply_placeholders)})},aa=({length:e,...t})=>{const{universe:n}=sn(zr);return z("button",{...t,type:"button",tabindex:-1,class:jr.secondaryButton.join(" "),style:{marginTop:"12px"},children:n.translate(2===e?Jn.tc_conversations_one_reply:[Jn.tc_conversations_multiple_replies,e-1])})},sa=({onClick:e,disabled:t,...n})=>{const{universe:o}=sn(zr);return z("button",{...n,type:"button",tabindex:-1,class:jr.secondaryButton.join(" "),style:{marginLeft:"auto"},disabled:t,onClick:e,children:o.translate(Jn.tc_edit_buttons_cancel)})},ca=({onClick:e,disabled:t,saving:n,...o})=>{const{universe:r}=sn(zr);return z("button",{...o,type:"button",tabindex:-1,class:jr.button.join(" "),style:{marginLeft:"8px",display:"flex",alignItems:"center",justifyContent:"center"},disabled:t,onClick:e,children:[n&&z(ra,{}),z("span",{style:{marginLeft:"4px"},children:r.translate(n?Jn.tc_edit_buttons_saving:Jn.tc_edit_buttons_save)})]})},la=e=>{const t=An((e=>{if(me(e.target)){const t=An(e.target);if(Pt(t)&&me(t.dom.shadowRoot)&&e.composed&&e.composedPath){const t=e.composedPath();if(t)return $e(t)}}return Me.from(e.target)})(e).getOr(e.target)),n=()=>e.stopPropagation(),o=()=>e.preventDefault(),r=(i=o,a=n,(...e)=>i(a.apply(null,e)));var i,a;return((e,t,n,o,r,i,a)=>({target:e,x:t,y:n,stop:o,prevent:r,kill:i,raw:a}))(t,e.clientX,e.clientY,n,o,r,e)},ua=(e,t,n,o)=>{e.dom.removeEventListener(t,n,o)},da=ke,fa=(e,t,n)=>((e,t,n,o)=>((e,t,n,o,r)=>{const i=((e,t)=>n=>{e(n)&&t(la(n))})(n,o);return e.dom.addEventListener(t,i,r),{unbind:we(ua,e,t,i,r)}})(e,t,n,o,!1))(e,t,da,n),pa=(e,t)=>({left:e,top:t,translate:(n,o)=>pa(e+n,t+o)}),ma=pa,ha=(e,t)=>void 0!==e?e:void 0!==t?t:0,_a=e=>{const t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return ma(n.offsetLeft,n.offsetTop);const i=ha(null==o?void 0:o.pageYOffset,r.scrollTop),a=ha(null==o?void 0:o.pageXOffset,r.scrollLeft),s=ha(r.clientTop,n.clientTop),c=ha(r.clientLeft,n.clientLeft);return va(e).translate(a-c,i-s)},va=e=>{const t=e.dom,n=t.ownerDocument.body;return n===t?ma(n.offsetLeft,n.offsetTop):jn(e)?(e=>{const t=e.getBoundingClientRect();return ma(t.left,t.top)})(t):ma(0,0)},ga=e=>{const t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return ma(n,o)},ya=e=>{const t=void 0===e?window:e;return xt().browser.isFirefox()?Me.none():Me.from(t.visualViewport)},ba=(e,t,n,o)=>({x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}),wa=e=>{const t=void 0===e?window:e,n=t.document,o=ga(An(n));return ya(t).fold((()=>{const e=t.document.documentElement,n=e.clientWidth,r=e.clientHeight;return ba(o.left,o.top,n,r)}),(e=>ba(Math.max(e.pageLeft,o.left),Math.max(e.pageTop,o.top),e.width,e.height)))},xa=K({highlightingId:"",setHighlightingId:ve}),Ea=oi((({children:e,classes:t,inlineStyles:n,onMounted:o,onUnmounted:r,onMenuItemHighlighted:i,id:a,onBlur:s},c)=>{const l=nn(null),[u,d]=Qt(""),f=rn((()=>Ne(ii.toArray(e),(e=>{var t;return"TinyMCEMenuItem"===(null===(t=e.props)||void 0===t?void 0:t.InternalComponentName)}))),[e]),p=an((e=>{Ue(f,(e=>e.props.id===u)).map((t=>{const n=Mn(t,e,0,f.length-1);return f[n]})).each((e=>{d(e.props.id)}))}),[f,u]),m=an((()=>{Fe(f,(e=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.id)===u&&he(e.props.onSelect)})).each((e=>{e.props.onSelect()}))}),[f,u]),h=rn((()=>({containerRef:l,selector:"",onDown:()=>{p(1)},onUp:()=>{p(-1)},onTab:()=>{p(1)},onShiftTab:()=>{p(-1)},onEnter:m,onEscape:ve,onSpace:ve})),[m,p]);return en((()=>{const{containerRef:e}=_;if(e.current){const t=((e,t)=>{const n=e=>()=>he(e)?(e(),Me.some(!0)):Me.none(),o={selector:t.selector,onSpace:n(t.onSpace),onEnter:n(t.onEnter),onTab:n(t.onTab),onShiftTab:n(t.onShiftTab),onLeft:n(t.onLeft),onRight:n(t.onRight),onUp:n(t.onUp),onDown:n(t.onDown),onEscape:n(t.onEscape)},r=Xo(o,((e,t,n)=>[Yo(qo(ir),n.onSpace),Yo(qo(er),n.onEnter),Yo(Go([Qo,qo(er)]),n.onEnter),Yo(Go([Zo,qo(Jo)]),n.onShiftTab),Yo(Go([Qo,qo(Jo)]),n.onTab),Yo(qo(nr),n.onUp),Yo(qo(rr),n.onDown),Yo(qo(tr),n.onLeft),Yo(qo(or),n.onRight),Yo(qo(ir),n.onSpace)]),((e,t,n)=>[Yo(qo(ar),n.onEscape)]),(()=>Me.none()));return{keydown:t=>r.handleKeydown(e,t),keyup:t=>r.handleKeyup(e,t),focus:t=>r.handleFocus(e,t)}})(An(e.current),_);return Er(e.current,t)}return ve}),[_=h]),en((()=>{const e=Fe(f,(e=>{var t;return(null===(t=e.props)||void 0===t?void 0:t.id)===u})).orThunk((()=>$e(f))).fold(ge(""),(e=>e.props.id));d(e)}),[f]),on(c,(()=>l.current),[l.current]),en((()=>(he(o)&&o(),()=>{he(r)&&r()})),[]),en((()=>{i(u)}),[u,i]),z("div",{style:n,className:null==t?void 0:t.container,ref:l,tabIndex:-1,id:a,role:"menu",onBlur:e=>{he(s)&&s(e)},children:z(xa.Provider,{value:{highlightingId:u,setHighlightingId:d},children:e})});var _})),Ca=({children:e,id:t,onSelect:n,classes:o})=>{const{highlightingId:r,setHighlightingId:i}=sn(xa);return z("div",{className:me(o)?[o.container,r===t?o.highlighted:""].join(" "):void 0,role:"menuitem",onMouseDown:n,onMouseEnter:()=>{i(t)},id:t,children:e})};Ca.defaultProps={InternalComponentName:"TinyMCEMenuItem"};const ka=({children:e,container:t})=>null!==e&&null!==t?vi(e,t):null,Ma=sr("width",(e=>e.dom.offsetWidth)),Ta=e=>Ma.getOuter(e),Sa=(e,t)=>e.view(t).fold(ge([]),(t=>{const n=e.owner(t),o=Sa(e,n);return[t].concat(o)}));var Oa=Object.freeze({__proto__:null,owner:e=>(e=>An(e.dom.ownerDocument))(e),view:e=>{var t;return(e.dom===document?Me.none():Me.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(An)}});const Pa=e=>{const t=yo(),n=ga(t),o=((e,t)=>{const n=t.owner(e),o=Sa(t,n);return Me.some(o)})(e,Oa);return o.fold(we(_a,e),(t=>{const o=va(e),r=Le(t,((e,t)=>{const n=va(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return ma(r.left+o.left+n.left,r.top+o.top+n.top)}))},Da=(e,t,n,o)=>({x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}),Aa=()=>wa(window),Ra=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Na=(e,t,n,o=1)=>{const r=e*o,i=t*o,a=e=>Xe(n,e).getOr([]),s=(e,t,n)=>{const o=(r=n,Ne(Ra,(e=>!Pe(r,e))));var r;return{offset:ma(e,t),classesOn:We(n,a),classesOff:We(o,a)}};return{southeast:()=>s(-0,t,["top","alignLeft"]),southwest:()=>s(e,t,["top","alignRight"]),south:()=>s(-0,t,["top","alignCentre"]),northeast:()=>s(-0,-0,["bottom","alignLeft"]),northwest:()=>s(e,-0,["bottom","alignRight"]),north:()=>s(-0,-0,["bottom","alignCentre"]),east:()=>s(e,-0,["valignCentre","left"]),west:()=>s(-0,-0,["valignCentre","right"]),insetNortheast:()=>s(r,i,["top","alignLeft","inset"]),insetNorthwest:()=>s(-r,i,["top","alignRight","inset"]),insetNorth:()=>s(-r/2,i,["top","alignCentre","inset"]),insetSoutheast:()=>s(r,-i,["bottom","alignLeft","inset"]),insetSouthwest:()=>s(-r,-i,["bottom","alignRight","inset"]),insetSouth:()=>s(-r/2,-i,["bottom","alignCentre","inset"]),insetEast:()=>s(-r,-i/2,["valignCentre","right","inset"]),insetWest:()=>s(r,-i/2,["valignCentre","left","inset"])}},La=(e,t,n,o,r,i,a,s=!1)=>({x:e,y:t,bubble:n,direction:o,placement:r,restriction:i,label:`${a}-${r}`,alwaysFit:s}),Ia=e=>{if(!ue(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");const t=[],n={};return Re(e,((o,r)=>{const i=Ve(o);if(1!==i.length)throw new Error("one and only one name per case");const a=i[0],s=o[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!ue(s))throw new Error("case arguments must be an array");t.push(a),n[a]=(...n)=>{const o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);return{fold:(...t)=>{if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:e=>{const o=Ve(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!je(t,(e=>Pe(o,e))))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:e=>{console.log(e,{constructors:t,constructor:a,params:n})}}}})),n},Fa=Ia([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Ua=Fa.southeast,Wa=Fa.southwest,ja=Fa.northeast,Ha=Fa.northwest,Ba=Fa.south,$a=Fa.north;Fa.east,Fa.west;const Ka=(e,t)=>(n=>{const o={};for(let r=0,i=n.length;r<i;r++){const i=n[r];o[String(i)]=Xe(t,i).map((t=>((e,t)=>{switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}})(e,t)))}return o})(["left","right","top","bottom"]),Va="layout",za=e=>e.x,Ya=(e,t)=>e.x+e.width/2-t.width/2,Xa=(e,t)=>e.x+e.width-t.width,qa=(e,t)=>e.y-t.height,Ga=e=>e.y+e.height,Za=(e,t,n)=>La(za(e),Ga(e),n.southeast(),Ua(),"southeast",Ka(e,{left:1,top:3}),Va),Qa=(e,t,n)=>La(Xa(e,t),Ga(e),n.southwest(),Wa(),"southwest",Ka(e,{right:0,top:3}),Va),Ja=(e,t,n)=>La(za(e),qa(e,t),n.northeast(),ja(),"northeast",Ka(e,{left:1,bottom:2}),Va),es=(e,t,n)=>La(Xa(e,t),qa(e,t),n.northwest(),Ha(),"northwest",Ka(e,{right:0,bottom:2}),Va),ts=(e,t,n)=>La(Ya(e,t),qa(e,t),n.north(),$a(),"north",Ka(e,{bottom:2}),Va),ns=(e,t,n)=>La(Ya(e,t),Ga(e),n.south(),Ba(),"south",Ka(e,{top:3}),Va),os=(e,t,n,o,r)=>{const i=e=>e+"px";return{position:e,left:t.map(i),top:n.map(i),right:o.map(i),bottom:r.map(i)}},rs=Ia([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),is=(e,t,n,o,r,i)=>{const a=t.rect,s=a.x-n,c=a.y-o,l=r-(s+a.width),u=i-(c+a.height),d=Me.some(s),f=Me.some(c),p=Me.some(l),m=Me.some(u),h=Me.none();return _=()=>os(e,d,f,h,h),v=()=>os(e,h,f,p,h),g=()=>os(e,d,h,h,m),y=()=>os(e,h,h,p,m),b=()=>os(e,d,f,h,h),w=()=>os(e,d,h,h,m),x=()=>os(e,d,f,h,h),E=()=>os(e,h,f,p,h),t.direction.fold(_,v,g,y,b,w,x,E);var _,v,g,y,b,w,x,E},as=(e,t)=>e.fold((()=>{const e=t.rect;return os("absolute",Me.some(e.x),Me.some(e.y),Me.none(),Me.none())}),((e,n,o,r)=>is("absolute",t,e,n,o,r)),((e,n,o,r)=>is("fixed",t,e,n,o,r))),ss=(e,t)=>t.fold((()=>e.fold(Aa,Aa,Da)),(t=>e.fold(ge(t),ge(t),(()=>{const n=cs(e,t.x,t.y);return Da(n.left,n.top,t.width,t.height)})))),cs=(e,t,n)=>{const o=ma(t,n);return e.fold(ge(o),ge(o),(()=>{const e=ga();return o.translate(-e.left,-e.top)}))},ls=rs.relative,us=rs.fixed,ds=ye;var fs;!function(e){e.TopToBottom="toptobottom",e.BottomToTop="bottomtotop"}(fs||(fs={}));const ps=e=>{return((e,t,n)=>xo(((e,t)=>t(e)),Eo,e,t,n))(e,(e=>Pt(e)&&Nt(e,"data-alloy-vertical-dir")===fs.BottomToTop),t).isSome();var t},ms=(e,t,n)=>{const o=An(t.hotspot),r=((e,t)=>{const n=we(Pa,t),o=e.fold(n,n,(()=>{const e=ga();return Pa(t).translate(-e.left,-e.top)})),r=Ta(t),i=ur(t);return Da(o.left,o.top,r,i)})(n,o),i=((e,t,n,o,r,i,a)=>{const s=a.map(ps).getOr(!1),c=t.layouts.map((t=>t.onLtr(e))),l=t.layouts.map((t=>t.onRtl(e))),u=s?t.layouts.bind((t=>t.onBottomLtr.map((t=>t(e))))).or(c).getOr(r):c.getOr(n),d=s?t.layouts.bind((t=>t.onBottomRtl.map((t=>t(e))))).or(l).getOr(i):l.getOr(o);return Lo(u,d)(e)})(e,t,[Za,Qa,Ja,es,ns,ts],[Qa,Za,es,Ja,ns,ts],[Ja,es,Za,Qa,ts,ns],[es,Ja,Qa,Za,ts,ns],Me.some(o));return Me.some(ds({anchorBox:r,bubble:t.bubble.getOr(Na(0,0,{})),overrides:t.overrides,layouts:i}))},hs=Ia([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),_s=(e,t,n,o)=>{const r=e.bubble,i=r.offset,a=((e,t,n)=>{const o=(o,r)=>t[o].map((t=>{const i="top"===o||"bottom"===o,a=i?n.top:n.left,s=("left"===o||"top"===o?Math.max:Math.min)(t,r)+a;return i?Tn(s,e.y,e.bottom):Tn(s,e.x,e.right)})).getOr(r),r=o("left",e.x),i=o("top",e.y),a=o("right",e.right),s=o("bottom",e.bottom);return Da(r,i,a-r,s-i)})(o,e.restriction,i),s=e.x+i.left,c=e.y+i.top,l=Da(s,c,t,n),{originInBounds:u,sizeInBounds:d,visibleW:f,visibleH:p}=((e,t)=>{const{x:n,y:o,right:r,bottom:i}=t,{x:a,y:s,right:c,bottom:l,width:u,height:d}=e;return{originInBounds:a>=n&&a<=r&&s>=o&&s<=i,sizeInBounds:c<=r&&c>=n&&l<=i&&l>=o,visibleW:Math.min(u,a>=n?r-a:c-n),visibleH:Math.min(d,s>=o?i-s:l-o)}})(l,a),m=u&&d,h=m?l:((e,t)=>{const{x:n,y:o,right:r,bottom:i}=t,{x:a,y:s,width:c,height:l}=e,u=Math.max(n,r-c),d=Math.max(o,i-l),f=Tn(a,n,u),p=Tn(s,o,d),m=Math.min(f+c,r)-f,h=Math.min(p+l,i)-p;return Da(f,p,m,h)})(l,a),_=h.width>0&&h.height>0,{maxWidth:v,maxHeight:g}=((e,t,n)=>{const o=ge(t.bottom-n.y),r=ge(n.bottom-t.y),i=(a=r,s=r,c=o,e.fold(a,a,c,c,a,c,s,s));var a,s,c;const l=ge(t.right-n.x),u=ge(n.right-t.x),d=((e,t,n,o)=>e.fold(t,o,t,o,n,n,t,o))(e,u,u,l);return{maxWidth:d,maxHeight:i}})(e.direction,h,o),y={rect:h,maxHeight:g,maxWidth:v,direction:e.direction,placement:e.placement,classes:{on:r.classesOn,off:r.classesOff},layout:e.label,testY:c};return m||e.alwaysFit?hs.fit(y):hs.nofit(y,f,p,_)},vs=ge(((e,t)=>{((e,t)=>{((e,t)=>{const n=cr.max(e,t,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"]);Do(e,"max-height",n+"px")})(e,Math.floor(t))})(e,t),Ao(e,{"overflow-x":"hidden","overflow-y":"auto"})})),gs=(e,t,n)=>void 0===e[t]?n:e[t],ys=(e,t,n,o)=>((e,t,n,o,r,i)=>{gs(i,"maxHeightFunction",vs()),gs(i,"maxWidthFunction",ve);const a=e.anchorBox,s=e.origin,c={bounds:ss(s,r),origin:s,preference:o},l=((e,t,n,o)=>{const r=(e=>({width:Ta(e),height:ur(e)}))(t);return((e,t,n,o,r,i)=>{const a=o.width,s=o.height,c=(t,c,l,u,d)=>{const f=t(n,o,r,e,i),p=_s(f,a,s,i);return p.fold(ge(p),((e,t,n,o)=>(d===o?n>u||t>l:!d&&o)?p:hs.nofit(c,l,u,d)))},l=Ie(t,((e,t)=>{const n=we(c,t);return e.fold(ge(e),n)}),hs.nofit({rect:n,maxHeight:o.height,maxWidth:o.width,direction:Ua(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return l.fold(ye,ye)})(t,o.preference,e,r,n,o.bounds)})(a,t,n,c);return{layout:l.layout,position:as(c.origin,l),placement:l.placement,maxHeight:l.maxHeight,maxWidth:l.maxWidth}})(((e,t)=>((e,t)=>({anchorBox:e,origin:t}))(e,t))(t.anchorBox,e),o,t.bubble,t.layouts,n,t.overrides),bs=({text:e})=>z("div",{class:jr.mentionsDropdownItemDisabled.join(" "),style:{padding:"4px"},children:z("div",{class:jr.mentionsDropdownItemRow.join(" "),children:z("div",{class:jr.mentionsDropdownItemColumn.join(" "),children:z("div",{class:jr.mentionsDropdownItemName.join(" "),children:e})})})}),ws={padding:"4px",visibility:"hidden",position:"fixed",width:"100%"},xs=e=>e.map((e=>e.toString())).getOr(""),Es=oi((({onSelect:e,anchorRef:t,users:n,onBlur:o},r)=>{const{sinkRef:i,universe:a,editor:s,containerRef:c}=sn(zr),l=nn(null),u=nn(Pn("mentions-menu")),d=(e=!1)=>{const n=t.current;if(me(n)){const t=An(n);return e?()=>{It(t,"aria-activedescendant"),It(t,"aria-owns")}:e=>{Rt(t,"aria-activedescendant",e)}}return ve};on(r,(()=>({dropdownRef:l,passKeyboardEvent:e=>{if(me(l.current)&&me(e)&&(e=>De([qo(ir),qo(er),Go([Zo,qo(er)]),Go([Zo,qo(Jo)]),Go([Qo,qo(Jo)]),qo(nr),qo(rr),qo(tr),qo(or),qo(ir)],(t=>t(e))))(e)){e.preventDefault(),e.stopPropagation();const t=new KeyboardEvent(e.type,{key:e.key,code:e.code,charCode:e.charCode,keyCode:e.keyCode,bubbles:!1,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,which:e.which});return l.current.dispatchEvent(t),Me.some(!0)}return Me.none()}})),[]);const f=an((()=>{if(me(i.current)&&me(l.current)&&me(t.current)){const e=wa(),n=ya().map((e=>e.pageTop)).getOr(0),o=(e=>{const t=Pa(e),n=Ta(e),o=ur(e);return Da(t.left,t.top,n,o)})(An(t.current)),r=Math.min(o.y,e.y);let a=e.height;o.y<n?a+=n-o.y:o.y>n+e.height&&(a=o.y-n);const s=Da(o.x,r,o.width,a);((e,t,n,o)=>((e,t,n,o,r)=>{const i=o.anchor,a=An(n),s=t.useFixed()?(()=>{const e=document.documentElement;return us(0,0,e.clientWidth,e.clientHeight)})():(e=>{const t=An(e),n=_a(t),o=t.dom.getBoundingClientRect();return ls(n.left,n.top,o.width,o.height)})(e);return i.placement(An(e),i,s).map((e=>{const n=r.orThunk((()=>t.getBounds.map(Ee)));return ys(s,e,n,a)}))})(t,{useFixed:ke,getBounds:Me.none()},n,{anchor:{hotspot:e,bubble:Me.none(),layouts:Me.none(),overrides:{},placement:ms}},Me.from(o)).map((t=>({"max-height":t.maxHeight+"px","max-width":Math.min(t.maxWidth,e.offsetWidth)+"px",position:t.position.position,bottom:xs(t.position.bottom),top:xs(t.position.top),left:xs(t.position.left),right:xs(t.position.right),overflow:"auto",width:"100%"}))))(t.current,i.current,l.current,s).each((e=>{var t;t={...e,visibility:"visible"},me(l.current)&&Ao(An(l.current),t)}))}}),[]);en((()=>{s.on("ResizeWindow",f),s.on("ScrollWindow",f),s.on("ResizeEditor",f),"split"===vo(s)&&s.on("ElementScroll",f);let e=Me.none();return c.current&&(e=Me.from(fa(An(c.current),"scroll",(()=>{f()})))),()=>{s.off("ResizeWindow",f),s.off("ScrollWindow",f),s.off("ResizeEditor",f),"split"===vo(s)&&s.off("ElementScroll",f),e.each((e=>{e.unbind()}))}}),[]),en((()=>{me(n)&&f()}),[n]);const p=rn((()=>me(n)?Ae(n,((t,n)=>{const o={authorAvatar:t.image,author:t.fullName||"",authorName:t.name};return z(Ca,{id:Pn("mentions-menuitem"),onSelect:()=>e(t),classes:{container:jr.mentionsDropdownItem.join(" "),highlighted:jr.mentionsDropdownItemActive.join(" ")},children:z("div",{className:jr.mentionsDropdownItemRow.join(" "),children:[z(Vr,{avatarInfo:o}),z("div",{className:jr.mentionsDropdownItemColumn.join(" "),children:[z("div",{className:jr.mentionsDropdownItemName.join(" "),children:t.name}),t.description&&z("div",{style:"font-weight: 400; line-height: 16px;",className:jr.mentionsDropdownItemDescription.join(" "),children:t.description})]})]})},n)})):null),[n,e]);return z(ka,{container:i.current,children:me(n)?z(Ea,{id:u.current,onBlur:o,onMounted:()=>{const e=t.current;me(e)&&Rt(An(e),"aria-owns",u.current)},onUnmounted:()=>{d(!0)()},inlineStyles:ws,classes:{container:jr.mentionsDropdownList.join(" ")},onSelect:e,onMenuItemHighlighted:e=>{d()(e)},ref:l,children:(m=n,m.length>0?p:z(bs,{text:a.translate(Jn.tc_mentions_no_results)}))}):z(x,{})});var m})),Cs=e=>{e.stopPropagation(),e.preventDefault()},ks=(e,t,n,o)=>{const{mentionsApiOpt:r}=sn(zr),[i,a]=Qt(null),s=nn(-1),c=nn(-1),l=nn(),u=nn(""),d=()=>ot(u.current,"@"),f=e=>{u.current=e},p=()=>{a(null),f("")},m=()=>{c.current=-1,s.current=-1},h=an((e=>{if(ot(e,"@")){const t=tt(e,"@");r.each((e=>{e.getUsers(t,(e=>{d()&&a(e)}),10)}))}else p(),m()}),[r]),_=an((n=>{var o;if(n){const n=null===(o=e.current)||void 0===o?void 0:o.value;if(me(n)){const e=[n.slice(0,c.current)," ",n.slice(c.current)].join("");c.current=c.current+1,t(e)}}else m();p()}),[t]),v=t=>{var n;if(me(e.current)&&me(l.current)){const o=t.relatedTarget,r=null===(n=l.current.dropdownRef)||void 0===n?void 0:n.current;!me(r)||e.current.contains(o)||r.contains(o)||(p(),m())}},g=e=>{if(d()||"@"!==e.data?d()&&(c.current=e.currentTarget.selectionStart):(s.current=e.currentTarget.selectionStart-1,c.current=e.currentTarget.selectionStart),s.current>-1&&c.current>-1){const t=e.currentTarget.value.slice(s.current,c.current);h(t),f(t)}},y=an((e=>{if(d()){if(oa(e))return Cs(e),p(),Me.some(!0);if(me(l.current))return me(i)&&0===i.length&&(na(e)||ta(e))?(Cs(e),_(na(e)),Me.some(!0)):l.current.passKeyboardEvent(e)}return Me.none()}),[i,_]),b=()=>{d()&&me(e.current)&&e.current.selectionStart!==c.current&&(p(),m())},w=n=>{var o;const r=null===(o=e.current)||void 0===o?void 0:o.value;if(me(r)&&st(r)){const e=s.current+1,o=r.slice(0,e)+n.id,i=at(r.slice(c.current));c.current=e+n.id.length,t(`${o}${i}`),p()}};return en((()=>{r.isSome()&&!d()&&((()=>{if(c.current>-1&&me(e.current)){const t=An(e.current);(e=>{const t=Un(e).dom;return e.dom===t.activeElement})(t)||bo(t),t.dom.setSelectionRange(c.current,c.current,"none")}})(),m())}),[o]),r.fold((()=>({clearTypedMention:ve,onKeydownWithMentions:ge(Me.none()),updateTypedMention:ve,onUserSelected:ve,onTargetMouseUpWithMentions:ve,hideMentionsDropdownWhenOutOfFocus:ve,mentionsDropdownRef:l,users:null})),(()=>({clearTypedMention:p,onKeydownWithMentions:y,updateTypedMention:g,onUserSelected:w,onTargetMouseUpWithMentions:b,hideMentionsDropdownWhenOutOfFocus:v,users:i,mentionsDropdownRef:l})))},Ms=e=>e.dom.clientHeight,Ts=(e,t)=>{const n=he(t)?t:Ce;let o=e.dom;const r=[];for(;null!==o.parentElement&&void 0!==o.parentElement;){const e=o.parentElement,t=An(e);if(r.push(t),!0===n(t))break;o=e}return r},Ss=(e,t)=>{const n=An(e),o=n.dom;((e,t)=>{((e,t)=>{Oo(e)&&e.style.removeProperty(t)})(e.dom,t),((e,t,n=be)=>e.exists((e=>n(e,t))))(Lt(e,"style").map(it),"")&&It(e,"style")})(n,"height"),(e=>{e.dom.offsetWidth})(n);const r=o.clientHeight,i=o.scrollHeight;if(i>r){const e=lr(n),o=t(i,e,e-r);Do(n,"height",o+"px")}},Os=e=>{Ss(e,((t,n,o)=>{const r=(i=An(e),Fe(Ts(i),(e=>((e,t)=>De(t,(t=>Ft(e,t))))(e,jr.cardBody))).bind((e=>Be(Ts(e),3).bind((t=>In(t,1).map((n=>{const o=lr(e)-Ms(i);return.5*(Ms(t)-Ms(n)-o)}))))))).getOr(3*n);var i;if(r<n)return n;{const e=t+o;return e>r?r:e}}))},Ps={"data-gramm_editor":"false",rows:2},Ds={"white-space":"pre-wrap"},As=oi((({content:e="",editable:t,onCancel:n,onSave:o,autofocus:r=!0},i)=>{const{editor:a,universe:s,mentionsApiOpt:c}=sn(zr),[l,u]=Qt(e),[d,f]=Qt(!1),p=nn(null),m=nn(null),h=an((()=>{p.current&&((e,t)=>{(e=>!st(e))(e)?Os(t):(e=>{Ss(e,((e,t,n)=>e+n))})(t)})(e,p.current)}),[e]),{onKeydownWithMentions:_,updateTypedMention:v,onUserSelected:g,onTargetMouseUpWithMentions:y,hideMentionsDropdownWhenOutOfFocus:b,users:w,mentionsDropdownRef:x}=ks(p,u,0,l),E=an((()=>{var e;me((e=p).current)&&""===e.current.value.trim()||(f(!0),o(l))}),[l]),C=an((e=>{_(e).orThunk((()=>(na(e)&&e.stopPropagation(),ta(e)&&(e.stopPropagation(),e.shiftKey||(e.preventDefault(),E())),Me.none())))}),[_,E]);return tn((()=>{h()}),[h,l]),en((()=>{p.current&&r&&p.current.focus({preventScroll:!0})}),[r]),en((()=>(a.on("ResizeEditor",h),()=>a.off("ResizeEditor",h))),[a,h]),Cr({containerRef:m,selector:"textarea,button",escape:()=>(n(),Me.some(!0))}),kr({containerRef:m,selector:"button",execute:ge(Me.none())}),z("div",{ref:e=>{m.current=e,"function"==typeof i?i(e):me(i)&&(i.current=e)},class:jr.cardBody.join(" "),children:[z("textarea",{placeholder:s.translate(c.fold((()=>Jn.tc_reply_placeholders),(()=>Jn.tc_reply_with_mentions_placeholders))),ref:p,tabindex:-1,autofocus:!0,disabled:!t||d,class:jr.replyTextarea.join(" "),...Ps,onInput:e=>{v(e),u(e.currentTarget.value)},onKeyDown:C,value:l,style:Ds,onMouseUp:y,onBlur:b}),z("div",{class:jr.editActions.join(" "),children:[z(sa,{disabled:!t||d,onClick:n}),z(ca,{saving:d,disabled:!t||d,onClick:E})]}),c.isSome()?z(Es,{ref:x,onBlur:b,anchorRef:p,onSelect:g,users:w},!0):null]})}));function Rs(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),!1===n||!o.defaultPrevented)return t?.(o)}}function Ns(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Ls(...e){return an(Ns(...e),e)}function Is(e,t=[]){let n=[];const o=()=>{const t=n.map((e=>K(e)));return function(n){const o=n?.[e]||t;return rn((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return o.scopeName=e,[function(t,o){const r=K(o),i=n.length;function a(t){const{scope:n,children:o,...a}=t,s=n?.[e][i]||r,c=rn((()=>a),Object.values(a));return z(s.Provider,{value:c,children:o})}return n=[...n,o],a.displayName=t+"Provider",[a,function(n,a){const s=sn(a?.[e][i]||r);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Fs(o,...t)]}function Fs(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return rn((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Us(e){const t=nn(e);return en((()=>{t.current=e})),rn((()=>(...e)=>t.current?.(...e)),[])}function Ws({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=function({defaultProp:e,onChange:t}){const n=Qt(e),[o]=n,r=nn(o),i=Us(t);return en((()=>{r.current!==o&&(i(o),r.current=o)}),[o,r,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:o,s=Us(n);return[a,an((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else r(t)}),[i,e,r,s])]}var js=oi(((e,t)=>{const{children:n,...o}=e,r=ii.toArray(n),i=r.find($s);if(i){const e=i.props.children,n=r.map((t=>t===i?ii.count(e)>1?ii.only(null):Fi(e)?e.props.children:null:t));return z(Hs,{...o,ref:t,children:Fi(e)?ji(e,void 0,n):null})}return z(Hs,{...o,ref:t,children:n})}));js.displayName="Slot";var Hs=oi(((e,t)=>{const{children:n,...o}=e;if(Fi(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n);return ji(n,{...Ks(o,n.props),ref:t?Ns(t,e):e})}return ii.count(n)>1?ii.only(null):null}));Hs.displayName="SlotClone";var Bs=({children:e})=>z(x,{children:e});function $s(e){return Fi(e)&&e.type===Bs}function Ks(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...e)=>{i(...e),r(...e)}:r&&(n[o]=r):"style"===o?n[o]={...r,...i}:"className"===o&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}var Vs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=oi(((e,n)=>{const{asChild:o,...r}=e,i=o?js:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),z(i,{...r,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function zs(e,t){e&&Ki((()=>e.dispatchEvent(t)))}function Ys(e){const t=e+"CollectionProvider",[n,o]=Is(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,o=Ji.useRef(null),i=Ji.useRef(new Map).current;return z(r,{scope:t,itemMap:i,collectionRef:o,children:n})};a.displayName=t;const s=e+"CollectionSlot",c=Ji.forwardRef(((e,t)=>{const{scope:n,children:o}=e,r=Ls(t,i(s,n).collectionRef);return z(js,{ref:r,children:o})}));c.displayName=s;const l=e+"CollectionItemSlot",u="data-radix-collection-item",d=Ji.forwardRef(((e,t)=>{const{scope:n,children:o,...r}=e,a=Ji.useRef(null),s=Ls(t,a),c=i(l,n);return Ji.useEffect((()=>(c.itemMap.set(a,{ref:a,...r}),()=>{c.itemMap.delete(a)}))),z(js,{[u]:"",ref:s,children:o})}));return d.displayName=l,[{Provider:a,Slot:c,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),o=Ji.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),o=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return o}),[n.collectionRef,n.itemMap]);return o},o]}var Xs=K(void 0);function qs(e){const t=sn(Xs);return e||t||"ltr"}function Gs(e,t=globalThis?.document){const n=Us(e);en((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var Zs,Qs="dismissableLayer.update",Js=K({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ec=oi(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,l=sn(Js),[u,d]=Qt(null),f=u?.ownerDocument??globalThis?.document,[,p]=Qt({}),m=Ls(t,(e=>d(e))),h=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(_),g=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=g>=v,w=function(e,t=globalThis?.document){const n=Us(e),o=nn(!1),r=nn((()=>{}));return en((()=>{const e=e=>{if(e.target&&!o.current){let o=function(){nc("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=o,t.addEventListener("click",r.current,{once:!0})):o()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));b&&!n&&(r?.(e),a?.(e),e.defaultPrevented||s?.())}),f),x=function(e,t=globalThis?.document){const n=Us(e),o=nn(!1);return en((()=>{const e=e=>{e.target&&!o.current&&nc("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(i?.(e),a?.(e),e.defaultPrevented||s?.())}),f);return Gs((e=>{g===l.layers.size-1&&(o?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),en((()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(Zs=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),tc(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Zs)}}),[u,f,n,l]),en((()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),tc())}),[u,l]),en((()=>{const e=()=>p({});return document.addEventListener(Qs,e),()=>document.removeEventListener(Qs,e)}),[]),z(Vs.div,{...c,ref:m,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:Rs(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Rs(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Rs(e.onPointerDownCapture,w.onPointerDownCapture)})}));function tc(){const e=new CustomEvent(Qs);document.dispatchEvent(e)}function nc(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?zs(r,i):r.dispatchEvent(i)}ec.displayName="DismissableLayer",oi(((e,t)=>{const n=sn(Js),o=nn(null),r=Ls(t,o);return en((()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),z(Vs.div,{...e,ref:r})})).displayName="DismissableLayerBranch";var oc=0;function rc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var ic="focusScope.autoFocusOnMount",ac="focusScope.autoFocusOnUnmount",sc={bubbles:!1,cancelable:!0},cc=oi(((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...a}=e,[s,c]=Qt(null),l=Us(r),u=Us(i),d=nn(null),f=Ls(t,(e=>c(e))),p=nn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;en((()=>{if(o){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:fc(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||fc(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&fc(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return s&&o.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[o,s,p.paused]),en((()=>{if(s){pc.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(ic,sc);s.addEventListener(ic,l),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(fc(o,{select:t}),document.activeElement!==n)return}(lc(s).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&fc(s))}return()=>{s.removeEventListener(ic,l),setTimeout((()=>{const t=new CustomEvent(ac,sc);s.addEventListener(ac,u),s.dispatchEvent(t),t.defaultPrevented||fc(e??document.body,{select:!0}),s.removeEventListener(ac,u),pc.remove(p)}),0)}}}),[s,l,u,p]);const m=an((e=>{if(!n&&!o)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=lc(e);return[uc(t,e),uc(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&fc(i,{select:!0})):(e.preventDefault(),n&&fc(o,{select:!0})):r===t&&e.preventDefault()}}),[n,o,p.paused]);return z(Vs.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})}));function lc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function uc(e,t){for(const n of e)if(!dc(n,{upTo:t}))return n}function dc(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function fc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}cc.displayName="FocusScope";var pc=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=mc(e,t),e.unshift(t)},remove(t){e=mc(e,t),e[0]?.resume()}}}();function mc(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var hc=Boolean(globalThis?.document)?tn:()=>{},_c=ea["useId".toString()]||(()=>{}),vc=0;function gc(e){const[t,n]=Qt(_c());return hc((()=>{n((e=>e??String(vc++)))}),[e]),t?`radix-${t}`:""}const yc=["top","right","bottom","left"],bc=Math.min,wc=Math.max,xc=Math.round,Ec=Math.floor,Cc=e=>({x:e,y:e}),kc={left:"right",right:"left",bottom:"top",top:"bottom"},Mc={start:"end",end:"start"};function Tc(e,t,n){return wc(e,bc(t,n))}function Sc(e,t){return"function"==typeof e?e(t):e}function Oc(e){return e.split("-")[0]}function Pc(e){return e.split("-")[1]}function Dc(e){return"x"===e?"y":"x"}function Ac(e){return"y"===e?"height":"width"}function Rc(e){return["top","bottom"].includes(Oc(e))?"y":"x"}function Nc(e){return Dc(Rc(e))}function Lc(e){return e.replace(/start|end/g,(e=>Mc[e]))}function Ic(e){return e.replace(/left|right|bottom|top/g,(e=>kc[e]))}function Fc(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Uc(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Wc(e,t,n){let{reference:o,floating:r}=e;const i=Rc(t),a=Nc(t),s=Ac(a),c=Oc(t),l="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[s]/2-r[s]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Pc(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}async function jc(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Sc(t,e),m=Fc(p),h=s[f?"floating"===d?"reference":"floating":d],_=Uc(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},b=Uc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:c}):v);return{top:(_.top-b.top+m.top)/y.y,bottom:(b.bottom-_.bottom+m.bottom)/y.y,left:(_.left-b.left+m.left)/y.x,right:(b.right-_.right+m.right)/y.x}}function Hc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Bc(e){return yc.some((t=>e[t]>=0))}function $c(e){return zc(e)?(e.nodeName||"").toLowerCase():"#document"}function Kc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vc(e){var t;return null==(t=(zc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zc(e){return e instanceof Node||e instanceof Kc(e).Node}function Yc(e){return e instanceof Element||e instanceof Kc(e).Element}function Xc(e){return e instanceof HTMLElement||e instanceof Kc(e).HTMLElement}function qc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Kc(e).ShadowRoot)}function Gc(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=nl(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Zc(e){return["table","td","th"].includes($c(e))}function Qc(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Jc(e){const t=el(),n=nl(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function el(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function tl(e){return["html","body","#document"].includes($c(e))}function nl(e){return Kc(e).getComputedStyle(e)}function ol(e){return Yc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rl(e){if("html"===$c(e))return e;const t=e.assignedSlot||e.parentNode||qc(e)&&e.host||Vc(e);return qc(t)?t.host:t}function il(e){const t=rl(e);return tl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xc(t)&&Gc(t)?t:il(t)}function al(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=il(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=Kc(r);return i?t.concat(a,a.visualViewport||[],Gc(r)?r:[],a.frameElement&&n?al(a.frameElement):[]):t.concat(r,al(r,[],n))}function sl(e){const t=nl(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Xc(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=xc(n)!==i||xc(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function cl(e){return Yc(e)?e:e.contextElement}function ll(e){const t=cl(e);if(!Xc(t))return Cc(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=sl(t);let a=(i?xc(n.width):n.width)/o,s=(i?xc(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ul=Cc(0);function dl(e){const t=Kc(e);return el()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ul}function fl(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=cl(e);let a=Cc(1);t&&(o?Yc(o)&&(a=ll(o)):a=ll(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Kc(e))&&t}(i,n,o)?dl(i):Cc(0);let c=(r.left+s.x)/a.x,l=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=Kc(i),t=o&&Yc(o)?Kc(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=ll(r),t=r.getBoundingClientRect(),o=nl(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=Kc(r),r=n.frameElement}}return Uc({width:u,height:d,x:c,y:l})}function pl(e){return fl(Vc(e)).left+ol(e).scrollLeft}function ml(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Kc(e),o=Vc(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const e=el();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=Vc(e),n=ol(e),o=e.ownerDocument.body,r=wc(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=wc(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+pl(e);const s=-n.scrollTop;return"rtl"===nl(o).direction&&(a+=wc(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(Vc(e));else if(Yc(t))o=function(e,t){const n=fl(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Xc(e)?ll(e):Cc(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=dl(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Uc(o)}function hl(e,t){const n=rl(e);return!(n===t||!Yc(n)||tl(n))&&("fixed"===nl(n).position||hl(n,t))}function _l(e,t,n){const o=Xc(t),r=Vc(t),i="fixed"===n,a=fl(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Cc(0);if(o||!o&&!i)if(("body"!==$c(t)||Gc(r))&&(s=ol(t)),o){const e=fl(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=pl(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function vl(e){return"static"===nl(e).position}function gl(e,t){return Xc(e)&&"fixed"!==nl(e).position?t?t(e):e.offsetParent:null}function yl(e,t){const n=Kc(e);if(Qc(e))return n;if(!Xc(e)){let t=rl(e);for(;t&&!tl(t);){if(Yc(t)&&!vl(t))return t;t=rl(t)}return n}let o=gl(e,t);for(;o&&Zc(o)&&vl(o);)o=gl(o,t);return o&&tl(o)&&vl(o)&&!Jc(o)?n:o||function(e){let t=rl(e);for(;Xc(t)&&!tl(t);){if(Qc(t))return null;if(Jc(t))return t;t=rl(t)}return null}(e)||n}const bl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=Vc(o),s=!!t&&Qc(t.floating);if(o===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Cc(1);const u=Cc(0),d=Xc(o);if((d||!d&&!i)&&(("body"!==$c(o)||Gc(a))&&(c=ol(o)),Xc(o))){const e=fl(o);l=ll(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:Vc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i="clippingAncestors"===n?Qc(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=al(e,[],!1).filter((e=>Yc(e)&&"body"!==$c(e))),r=null;const i="fixed"===nl(e).position;let a=i?rl(e):e;for(;Yc(a)&&!tl(a);){const t=nl(a),n=Jc(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||Gc(a)&&!n&&hl(e,a))?o=o.filter((e=>e!==a)):r=t,a=rl(a)}return t.set(e,o),o}(t,this._c):[].concat(n),a=[...i,o],s=a[0],c=a.reduce(((e,n)=>{const o=ml(t,n,r);return e.top=wc(o.top,e.top),e.right=bc(o.right,e.right),e.bottom=bc(o.bottom,e.bottom),e.left=wc(o.left,e.left),e}),ml(t,s,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:yl,getElementRects:async function(e){const t=this.getOffsetParent||yl,n=this.getDimensions,o=await n(e.floating);return{reference:_l(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=sl(e);return{width:t,height:n}},getScale:ll,isElement:Yc,isRTL:function(e){return"rtl"===nl(e).direction}};const wl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=Oc(n),s=Pc(n),c="y"===Rc(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=Sc(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},xl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Sc(e,t),l={x:n,y:o},u=await jc(t,c),d=Rc(Oc(r)),f=Dc(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=Tc(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=Tc(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},El=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,..._}=Sc(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Oc(r),g=Rc(s),y=Oc(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=f||(y||!h?[Ic(s)]:function(e){const t=Ic(e);return[Lc(e),t,Lc(t)]}(s)),x="none"!==m;!f&&x&&w.push(...function(e,t,n,o){const r=Pc(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(Oc(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(Lc)))),i}(s,h,m,b));const E=[s,...w],C=await jc(t,_),k=[];let M=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&k.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=Pc(e),r=Nc(e),i=Ac(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ic(a)),[a,Ic(a)]}(r,a,b);k.push(C[e[0]],C[e[1]])}if(M=[...M,{placement:r,overflows:k}],!k.every((e=>e<=0))){var T,S;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(S=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(x){const t=Rc(e.placement);return t===g||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},Cl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:a=()=>{},...s}=Sc(e,t),c=await jc(t,s),l=Oc(n),u=Pc(n),d="y"===Rc(n),{width:f,height:p}=o.floating;let m,h;"top"===l||"bottom"===l?(m=l,h=u===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(h=l,m="end"===u?"top":"bottom");const _=p-c.top-c.bottom,v=f-c.left-c.right,g=bc(p-c[m],_),y=bc(f-c[h],v),b=!t.middlewareData.shift;let w=g,x=y;if(d?x=u||b?bc(y,v):v:w=u||b?bc(g,_):_,b&&!u){const e=wc(c.left,0),t=wc(c.right,0),n=wc(c.top,0),o=wc(c.bottom,0);d?x=f-2*(0!==e||0!==t?e+t:wc(c.left,c.right)):w=p-2*(0!==n||0!==o?n+o:wc(c.top,c.bottom))}await a({...t,availableWidth:x,availableHeight:w});const E=await r.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}},kl=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Sc(e,t);switch(o){case"referenceHidden":{const e=Hc(await jc(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Bc(e)}}}case"escaped":{const e=Hc(await jc(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Bc(e)}}}default:return{}}}}},Ml=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Sc(e,t)||{};if(null==l)return{};const d=Fc(u),f={x:n,y:o},p=Nc(r),m=Ac(p),h=await a.getDimensions(l),_="y"===p,v=_?"top":"left",g=_?"bottom":"right",y=_?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-f[p]-i.floating[m],w=f[p]-i.reference[p],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let E=x?x[y]:0;E&&await(null==a.isElement?void 0:a.isElement(x))||(E=s.floating[y]||i.floating[m]);const C=b/2-w/2,k=E/2-h[m]/2-1,M=bc(d[v],k),T=bc(d[g],k),S=M,O=E-h[m]-T,P=E/2-h[m]/2+C,D=Tc(S,P,O),A=!c.arrow&&null!=Pc(r)&&P!==D&&i.reference[m]/2-(P<S?M:T)-h[m]/2<0,R=A?P<S?P-S:P-O:0;return{[p]:f[p]+R,data:{[p]:D,centerOffset:P-D-R,...A&&{alignmentOffset:R}},reset:A}}}),Tl=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Sc(e,t),u={x:n,y:o},d=Rc(r),f=Dc(d);let p=u[f],m=u[d];const h=Sc(s,t),_="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+_.mainAxis,n=i.reference[f]+i.reference[e]-_.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var v,g;const e="y"===f?"width":"height",t=["top","left"].includes(Oc(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:_.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(g=a.offset)?void 0:g[d])||0)-(t?_.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[f]:p,[d]:m}}}},Sl=(e,t,n)=>{const o=new Map,r={platform:bl,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=Wc(l,o,c),f=o,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:_,y:v,data:g,reset:y}=await h({x:u,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=_?_:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...g}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:u,y:d}=Wc(l,f,c))),n=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})};var Ol="undefined"!=typeof document?tn:en;function Pl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!Pl(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(!("_owner"===n&&e.$$typeof||Pl(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Dl(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Al(e,t){const n=Dl(e);return Math.round(t*n)/n}function Rl(e){const t=nn(e);return Ol((()=>{t.current=e})),t}const Nl=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Ml({element:n.current,padding:o}).fn(t):{}:n?Ml({element:n,padding:o}).fn(t):{};var r}}),Ll=(e,t)=>({...wl(e),options:[e,t]}),Il=(e,t)=>({...xl(e),options:[e,t]}),Fl=(e,t)=>({...Tl(e),options:[e,t]}),Ul=(e,t)=>({...El(e),options:[e,t]}),Wl=(e,t)=>({...Cl(e),options:[e,t]}),jl=(e,t)=>({...kl(e),options:[e,t]}),Hl=(e,t)=>({...Nl(e),options:[e,t]});var Bl=oi(((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return z(Vs.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:z("polygon",{points:"0,0 30,0 15,10"})})}));Bl.displayName="Arrow";var $l=Bl,Kl="Popper",[Vl,zl]=Is(Kl),[Yl,Xl]=Vl(Kl),ql=e=>{const{__scopePopper:t,children:n}=e,[o,r]=Qt(null);return z(Yl,{scope:t,anchor:o,onAnchorChange:r,children:n})};ql.displayName=Kl;var Gl="PopperAnchor",Zl=oi(((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Xl(Gl,n),a=nn(null),s=Ls(t,a);return en((()=>{i.onAnchorChange(o?.current||a.current)})),o?null:z(Vs.div,{...r,ref:s})}));Zl.displayName=Gl;var Ql="PopperContent",[Jl,eu]=Vl(Ql),tu=oi(((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...h}=e,_=Xl(Ql,n),[v,g]=Qt(null),y=Ls(t,(e=>g(e))),[b,w]=Qt(null),x=function(e){const[t,n]=Qt(void 0);return hc((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const o=t[0];let r,i;if("borderBoxSize"in o){const e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(b),E=x?.width??0,C=x?.height??0,k=o+("center"!==i?"-"+i:""),M="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},T=Array.isArray(l)?l:[l],S=T.length>0,O={padding:M,boundary:T.filter(iu),altBoundary:S},{refs:P,floatingStyles:D,placement:A,isPositioned:R,middlewareData:N}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Qt({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Qt(o);Pl(f,o)||p(o);const[m,h]=Qt(null),[_,v]=Qt(null),g=an((e=>{e!==x.current&&(x.current=e,h(e))}),[]),y=an((e=>{e!==E.current&&(E.current=e,v(e))}),[]),b=i||m,w=a||_,x=nn(null),E=nn(null),C=nn(u),k=null!=c,M=Rl(c),T=Rl(r),S=an((()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),Sl(x.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!Pl(C.current,t)&&(C.current=t,Ki((()=>{d(t)})))}))}),[f,t,n,T]);Ol((()=>{!1===l&&C.current.isPositioned&&(C.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const O=nn(!1);Ol((()=>(O.current=!0,()=>{O.current=!1})),[]),Ol((()=>{if(b&&(x.current=b),w&&(E.current=w),b&&w){if(M.current)return M.current(b,w,S);S()}}),[b,w,S,M,k]);const P=rn((()=>({reference:x,floating:E,setReference:g,setFloating:y})),[g,y]),D=rn((()=>({reference:b,floating:w})),[b,w]),A=rn((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Al(D.floating,u.x),o=Al(D.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+o+"px)",...Dl(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}}),[n,s,D.floating,u.x,u.y]);return rn((()=>({...u,update:S,refs:P,elements:D,floatingStyles:A})),[u,S,P,D,A])}({strategy:"fixed",placement:k,whileElementsMounted:(...e)=>function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,l=cl(e),u=r||i?[...l?al(l):[],...al(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,o=null;const r=Vc(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Ec(u)+"px "+-Ec(r.clientWidth-(l+d))+"px "+-Ec(r.clientHeight-(u+f))+"px "+-Ec(l)+"px",threshold:wc(0,bc(1,c))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==c){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{o=new IntersectionObserver(h,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(h,p)}o.observe(e)}(!0),i}(l,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),l&&!c&&m.observe(l),m.observe(t));let h=c?fl(e):null;return c&&function t(){const o=fl(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n(),h=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(f)}}(...e,{animationFrame:"always"===p}),elements:{reference:_.anchor},middleware:[Ll({mainAxis:r+C,alignmentAxis:a}),c&&Il({mainAxis:!0,crossAxis:!1,limiter:"partial"===d?Fl():void 0,...O}),c&&Ul({...O}),Wl({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),b&&Hl({element:b,padding:s}),au({arrowWidth:E,arrowHeight:C}),f&&jl({strategy:"referenceHidden",...O})]}),[L,I]=su(A),F=Us(m);hc((()=>{R&&F?.()}),[R,F]);const U=N.arrow?.x,W=N.arrow?.y,j=0!==N.arrow?.centerOffset,[H,B]=Qt();return hc((()=>{v&&B(window.getComputedStyle(v).zIndex)}),[v]),z("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:R?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:H,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:z(Jl,{scope:n,placedSide:L,onArrowChange:w,arrowX:U,arrowY:W,shouldHideArrow:j,children:z(Vs.div,{"data-side":L,"data-align":I,...h,ref:y,style:{...h.style,animation:R?void 0:"none"}})})})}));tu.displayName=Ql;var nu="PopperArrow",ou={top:"bottom",right:"left",bottom:"top",left:"right"},ru=oi((function(e,t){const{__scopePopper:n,...o}=e,r=eu(nu,n),i=ou[r.placedSide];return z("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:z($l,{...o,ref:t,style:{...o.style,display:"block"}})})}));function iu(e){return null!==e}ru.displayName=nu;var au=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=0!==r.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,l]=su(n),u={start:"0%",center:"50%",end:"100%"}[l],d=(r.arrow?.x??0)+a/2,f=(r.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${d}px`,m=-s+"px"):"top"===c?(p=i?u:`${d}px`,m=`${o.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${f}px`):"left"===c&&(p=`${o.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function su(e){const[t,n="center"]=e.split("-");return[t,n]}var cu=ql,lu=Zl,uu=tu,du=ru,fu=oi(((e,t)=>{const{container:n,...o}=e,[r,i]=Qt(!1);hc((()=>i(!0)),[]);const a=n||r&&globalThis?.document?.body;return a?Ji.createPortal(z(Vs.div,{...o,ref:t}),a):null}));fu.displayName="Portal";var pu=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=Qt(),o=nn({}),r=nn(e),i=nn("none"),a=e?"mounted":"unmounted",[s,c]=function(e,t){return Jt(((e,n)=>t[e][n]??e),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return en((()=>{const e=mu(o.current);i.current="mounted"===s?e:"none"}),[s]),hc((()=>{const t=o.current,n=r.current;if(n!==e){const o=i.current,a=mu(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&o!==a?"ANIMATION_OUT":"UNMOUNT"),r.current=e}}),[e,c]),hc((()=>{if(t){const e=e=>{const n=mu(o.current).includes(e.animationName);e.target===t&&n&&Ki((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=mu(o.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:an((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),r="function"==typeof n?n({present:o.isPresent}):ii.only(n),i=Ls(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r));return"function"==typeof n||o.isPresent?ji(r,{ref:i}):null};function mu(e){return e?.animationName||"none"}pu.displayName="Presence";var hu="rovingFocusGroup.onEntryFocus",_u={bubbles:!1,cancelable:!0},vu="RovingFocusGroup",[gu,yu,bu]=Ys(vu),[wu,xu]=Is(vu,[bu]),[Eu,Cu]=wu(vu),ku=oi(((e,t)=>z(gu.Provider,{scope:e.__scopeRovingFocusGroup,children:z(gu.Slot,{scope:e.__scopeRovingFocusGroup,children:z(Mu,{...e,ref:t})})})));ku.displayName=vu;var Mu=oi(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=nn(null),p=Ls(t,f),m=qs(i),[h=null,_]=Ws({prop:a,defaultProp:s,onChange:c}),[v,g]=Qt(!1),y=Us(l),b=yu(n),w=nn(!1),[x,E]=Qt(0);return en((()=>{const e=f.current;if(e)return e.addEventListener(hu,y),()=>e.removeEventListener(hu,y)}),[y]),z(Eu,{scope:n,orientation:o,dir:m,loop:r,currentTabStopId:h,onItemFocus:an((e=>_(e)),[_]),onItemShiftTab:an((()=>g(!0)),[]),onFocusableItemAdd:an((()=>E((e=>e+1))),[]),onFocusableItemRemove:an((()=>E((e=>e-1))),[]),children:z(Vs.div,{tabIndex:v||0===x?-1:0,"data-orientation":o,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Rs(e.onMouseDown,(()=>{w.current=!0})),onFocus:Rs(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(hu,_u);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));Pu([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)),u)}}w.current=!1})),onBlur:Rs(e.onBlur,(()=>g(!1)))})})})),Tu="RovingFocusGroupItem",Su=oi(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,...a}=e,s=gc(),c=i||s,l=Cu(Tu,n),u=l.currentTabStopId===c,d=yu(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return en((()=>{if(o)return f(),()=>p()}),[o,f,p]),z(gu.ItemSlot,{scope:n,id:c,focusable:o,active:r,children:z(Vs.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...a,ref:t,onMouseDown:Rs(e.onMouseDown,(e=>{o?l.onItemFocus(c):e.preventDefault()})),onFocus:Rs(e.onFocus,(()=>l.onItemFocus(c))),onKeyDown:Rs(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const o=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)?void 0:Ou[o]}(e,l.orientation,l.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const i=r.indexOf(e.currentTarget);r=l.loop?(o=i+1,(n=r).map(((e,t)=>n[(o+t)%n.length]))):r.slice(i+1)}setTimeout((()=>Pu(r)))}var n,o}))})})}));Su.displayName=Tu;var Ou={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Pu(e,t=!1){const n=document.activeElement;for(const o of e){if(o===n)return;if(o.focus({preventScroll:t}),document.activeElement!==n)return}}var Du=ku,Au=Su,Ru=new WeakMap,Nu=new WeakMap,Lu={},Iu=0,Fu=function(e){return e&&(e.host||Fu(e.parentNode))},Uu=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),function(e,t,n,o){var r=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Fu(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Lu[n]||(Lu[n]=new WeakMap);var i=Lu[n],a=[],s=new Set,c=new Set(r),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};r.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(o),r=null!==t&&"false"!==t,c=(Ru.get(e)||0)+1,l=(i.get(e)||0)+1;Ru.set(e,c),i.set(e,l),a.push(e),1===c&&r&&Nu.set(e,!0),1===l&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),Iu++,function(){a.forEach((function(e){var t=Ru.get(e)-1,r=i.get(e)-1;Ru.set(e,t),i.set(e,r),t||(Nu.has(e)||e.removeAttribute(o),Nu.delete(e)),r||e.removeAttribute(n)})),--Iu||(Ru=new WeakMap,Ru=new WeakMap,Nu=new WeakMap,Lu={})}}(o,r,n,"aria-hidden")):function(){return null}},Wu=function(){return Wu=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Wu.apply(this,arguments)};function ju(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Hu="right-scroll-bar-position",Bu="width-before-scroll-bar";function $u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ku="undefined"!=typeof window?tn:en,Vu=new WeakMap;function zu(e){return e}var Yu=function(e){var t=e.sideCar,n=ju(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return y(o,Wu({},n))};Yu.isSideCarExport=!0;var Xu=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=zu);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return r}();return t.options=Wu({async:!0,ssr:!1},e),t}(),qu=function(){},Gu=oi((function(e,t){var n=nn(null),o=Qt({onScrollCapture:qu,onWheelCapture:qu,onTouchMoveCapture:qu}),r=o[0],i=o[1],a=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,_=e.as,v=void 0===_?"div":_,g=e.gapMode,b=ju(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,E=function(e){var t,n,o=(t=function(t){return e.forEach((function(e){return $u(e,t)}))},n=Qt((function(){return{value:null,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0],n.callback=t,n.facade);return Ku((function(){var t=Vu.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach((function(e){r.has(e)||$u(e,null)})),r.forEach((function(e){n.has(e)||$u(e,i)}))}Vu.set(o,e)}),[e]),o}([n,t]),C=Wu(Wu({},b),r);return y(x,null,u&&y(w,{sideCar:Xu,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:g}),a?ji(ii.only(s),Wu(Wu({},C),{ref:E})):y(v,Wu({},C,{className:c,ref:E}),s))}));Gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gu.classNames={fullWidth:Bu,zeroRight:Hu};var Zu=function(){var e=0,t=null;return{add:function(n){0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qu=function(){var e,t=(e=Zu(),function(t,n){en((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,o=e.dynamic;return t(n,o),null}},Ju={left:0,top:0,right:0,gap:0},ed=function(e){return parseInt(e||"",10)||0},td=Qu(),nd="data-scroll-locked",od=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(s,"px ").concat(o,";\n }\n body[").concat(nd,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Hu," {\n right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Bu," {\n margin-right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Hu," .").concat(Hu," {\n right: 0 ").concat(o,";\n }\n \n .").concat(Bu," .").concat(Bu," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(nd,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},rd=function(){var e=parseInt(document.body.getAttribute(nd)||"0",10);return isFinite(e)?e:0},id=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=void 0===o?"margin":o;en((function(){return document.body.setAttribute(nd,(rd()+1).toString()),function(){var e=rd()-1;e<=0?document.body.removeAttribute(nd):document.body.setAttribute(nd,e.toString())}}),[]);var i=rn((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ju;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[ed(n),ed(o),ed(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}}(r)}),[r]);return y(td,{styles:od(i,!t,r,n?"":"!important")})},ad=!1;if("undefined"!=typeof window)try{var sd=Object.defineProperty({},"passive",{get:function(){return ad=!0,!0}});window.addEventListener("test",sd,sd),window.removeEventListener("test",sd,sd)}catch(e){ad=!1}var cd=!!ad&&{passive:!1},ld=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ud=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),dd(e,o)){var r=fd(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},dd=function(e,t){return"v"===e?function(e){return ld(e,"overflowY")}(t):function(e){return ld(e,"overflowX")}(t)},fd=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},pd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},md=function(e){return[e.deltaX,e.deltaY]},hd=function(e){return e&&"current"in e?e.current:e},_d=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},vd=0,gd=[];function yd(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var bd,wd=(bd=function(e){var t=nn([]),n=nn([0,0]),o=nn(),r=Qt(vd++)[0],i=Qt(Qu)[0],a=nn(e);en((function(){a.current=e}),[e]),en((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(hd),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(r))})),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(r))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=an((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var r,i=pd(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-i[0],l="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=ud(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=ud(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,o){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=r*o,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,d=0;do{var f=fd(e,a),p=f[0],m=f[1]-f[2]-r*p;(p||m)&&dd(e,a)&&(u+=m,d+=p),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(d)<1)&&(c=!0),c}(p,t,e,"h"===p?c:l)}),[]),c=an((function(e){var n=e;if(gd.length&&gd[gd.length-1]===i){var o="deltaY"in n?md(n):pd(n),r=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,o)}))[0];if(r&&r.should)n.cancelable&&n.preventDefault();else if(!r){var c=(a.current.shards||[]).map(hd).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=an((function(e,n,o,r){var i={name:e,delta:n,target:o,should:r,shadowParent:yd(o)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=an((function(e){n.current=pd(e),o.current=void 0}),[]),d=an((function(t){l(t.type,md(t),t.target,s(t,e.lockRef.current))}),[]),f=an((function(t){l(t.type,pd(t),t.target,s(t,e.lockRef.current))}),[]);en((function(){return gd.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,cd),document.addEventListener("touchmove",c,cd),document.addEventListener("touchstart",u,cd),function(){gd=gd.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,cd),document.removeEventListener("touchmove",c,cd),document.removeEventListener("touchstart",u,cd)}}),[]);var p=e.removeScrollBar;return y(x,null,e.inert?y(i,{styles:_d(r)}):null,p?y(id,{gapMode:e.gapMode}):null)},Xu.useMedium(bd),Yu),xd=oi((function(e,t){return y(Gu,Wu({},e,{ref:t,sideCar:wd}))}));xd.classNames=Gu.classNames;var Ed=["Enter"," "],Cd=["ArrowUp","PageDown","End"],kd=["ArrowDown","PageUp","Home",...Cd],Md={ltr:[...Ed,"ArrowRight"],rtl:[...Ed,"ArrowLeft"]},Td={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Sd="Menu",[Od,Pd,Dd]=Ys(Sd),[Ad,Rd]=Is(Sd,[Dd,zl,xu]),Nd=zl(),Ld=xu(),[Id,Fd]=Ad(Sd),[Ud,Wd]=Ad(Sd),jd=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:i,modal:a=!0}=e,s=Nd(t),[c,l]=Qt(null),u=nn(!1),d=Us(i),f=qs(r);return en((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),z(cu,{...s,children:z(Id,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:z(Ud,{scope:t,onClose:an((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a,children:o})})})};jd.displayName=Sd;var Hd=oi(((e,t)=>{const{__scopeMenu:n,...o}=e,r=Nd(n);return z(lu,{...r,...o,ref:t})}));Hd.displayName="MenuAnchor";var Bd="MenuPortal",[$d,Kd]=Ad(Bd,{forceMount:void 0}),Vd=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,i=Fd(Bd,t);return z($d,{scope:t,forceMount:n,children:z(pu,{present:n||i.open,children:z(fu,{asChild:!0,container:r,children:o})})})};Vd.displayName=Bd;var zd="MenuContent",[Yd,Xd]=Ad(zd),qd=oi(((e,t)=>{const n=Kd(zd,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=Fd(zd,e.__scopeMenu),a=Wd(zd,e.__scopeMenu);return z(Od.Provider,{scope:e.__scopeMenu,children:z(pu,{present:o||i.open,children:z(Od.Slot,{scope:e.__scopeMenu,children:a.modal?z(Gd,{...r,ref:t}):z(Zd,{...r,ref:t})})})})})),Gd=oi(((e,t)=>{const n=Fd(zd,e.__scopeMenu),o=nn(null),r=Ls(t,o);return en((()=>{const e=o.current;if(e)return Uu(e)}),[]),z(Qd,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Rs(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})})),Zd=oi(((e,t)=>{const n=Fd(zd,e.__scopeMenu);return z(Qd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),Qd=oi(((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,_=Fd(zd,n),v=Wd(zd,n),g=Nd(n),y=Ld(n),b=Pd(n),[w,E]=Qt(null),C=nn(null),k=Ls(t,C,_.onContentChange),M=nn(0),T=nn(""),S=nn(0),O=nn(null),P=nn("right"),D=nn(0),A=m?xd:x,R=m?{as:js,allowPinchZoom:!0}:void 0;en((()=>()=>window.clearTimeout(M.current)),[]),en((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rc()),document.body.insertAdjacentElement("beforeend",e[1]??rc()),oc++,()=>{1===oc&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),oc--}}),[]);const N=an((e=>P.current===O.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>o!=l>o&&n<(c-a)*(o-s)/(l-s)+a&&(r=!r)}return r}({x:e.clientX,y:e.clientY},t)}(e,O.current?.area)),[]);return z(Yd,{scope:n,searchRef:T,onItemEnter:an((e=>{N(e)&&e.preventDefault()}),[N]),onItemLeave:an((e=>{N(e)||(C.current?.focus(),E(null))}),[N]),onTriggerLeave:an((e=>{N(e)&&e.preventDefault()}),[N]),pointerGraceTimerRef:S,onPointerGraceIntentChange:an((e=>{O.current=e}),[]),children:z(A,{...R,children:z(cc,{asChild:!0,trapped:r,onMountAutoFocus:Rs(i,(e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:a,children:z(ec,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:z(Du,{asChild:!0,...y,dir:v.dir,orientation:"vertical",loop:o,currentTabStopId:w,onCurrentTabStopIdChange:E,onEntryFocus:Rs(c,(e=>{v.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:z(uu,{role:"menu","aria-orientation":"vertical","data-state":kf(_.open),"data-radix-menu-content":"",dir:v.dir,...g,...h,ref:k,style:{outline:"none",...h.style},onKeyDown:Rs(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&o&&(e=>{const t=T.current+e,n=b().filter((e=>!e.disabled)),o=document.activeElement,r=n.find((e=>e.ref.current===o))?.textValue,i=function(e,t,n){const o=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(r,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===o.length&&(i=i.filter((e=>e!==n)));const c=i.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}(n.map((e=>e.textValue)),t,r),a=n.find((e=>e.textValue===i))?.ref.current;!function e(t){T.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))})(e.key));const r=C.current;if(e.target!==r)return;if(!kd.includes(e.key))return;e.preventDefault();const i=b().filter((e=>!e.disabled)).map((e=>e.ref.current));Cd.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:Rs(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),T.current="")})),onPointerMove:Rs(e.onPointerMove,Sf((e=>{const t=e.target,n=D.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>D.current?"right":"left";P.current=t,D.current=e.clientX}})))})})})})})})}));qd.displayName=zd;var Jd=oi(((e,t)=>{const{__scopeMenu:n,...o}=e;return z(Vs.div,{role:"group",...o,ref:t})}));Jd.displayName="MenuGroup";var ef=oi(((e,t)=>{const{__scopeMenu:n,...o}=e;return z(Vs.div,{...o,ref:t})}));ef.displayName="MenuLabel";var tf="MenuItem",nf="menu.itemSelect",of=oi(((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,i=nn(null),a=Wd(tf,e.__scopeMenu),s=Xd(tf,e.__scopeMenu),c=Ls(t,i),l=nn(!1);return z(rf,{...r,ref:c,disabled:n,onClick:Rs(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(nf,{bubbles:!0,cancelable:!0});e.addEventListener(nf,(e=>o?.(e)),{once:!0}),zs(e,t),t.defaultPrevented?l.current=!1:a.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:Rs(e.onPointerUp,(e=>{l.current||e.currentTarget?.click()})),onKeyDown:Rs(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||Ed.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));of.displayName=tf;var rf=oi(((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...i}=e,a=Xd(tf,n),s=Ld(n),c=nn(null),l=Ls(t,c),[u,d]=Qt(!1),[f,p]=Qt("");return en((()=>{const e=c.current;e&&p((e.textContent??"").trim())}),[i.children]),z(Od.ItemSlot,{scope:n,disabled:o,textValue:r??f,children:z(Au,{asChild:!0,...s,focusable:!o,children:z(Vs.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:l,onPointerMove:Rs(e.onPointerMove,Sf((e=>{o?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))}))),onPointerLeave:Rs(e.onPointerLeave,Sf((e=>a.onItemLeave(e)))),onFocus:Rs(e.onFocus,(()=>d(!0))),onBlur:Rs(e.onBlur,(()=>d(!1)))})})})})),af=oi(((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return z(mf,{scope:e.__scopeMenu,checked:n,children:z(of,{role:"menuitemcheckbox","aria-checked":Mf(n)?"mixed":n,...r,ref:t,"data-state":Tf(n),onSelect:Rs(r.onSelect,(()=>o?.(!!Mf(n)||!n)),{checkForDefaultPrevented:!1})})})}));af.displayName="MenuCheckboxItem";var sf="MenuRadioGroup",[cf,lf]=Ad(sf,{value:void 0,onValueChange:()=>{}}),uf=oi(((e,t)=>{const{value:n,onValueChange:o,...r}=e,i=Us(o);return z(cf,{scope:e.__scopeMenu,value:n,onValueChange:i,children:z(Jd,{...r,ref:t})})}));uf.displayName=sf;var df="MenuRadioItem",ff=oi(((e,t)=>{const{value:n,...o}=e,r=lf(df,e.__scopeMenu),i=n===r.value;return z(mf,{scope:e.__scopeMenu,checked:i,children:z(of,{role:"menuitemradio","aria-checked":i,...o,ref:t,"data-state":Tf(i),onSelect:Rs(o.onSelect,(()=>r.onValueChange?.(n)),{checkForDefaultPrevented:!1})})})}));ff.displayName=df;var pf="MenuItemIndicator",[mf,hf]=Ad(pf,{checked:!1}),_f=oi(((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,i=hf(pf,n);return z(pu,{present:o||Mf(i.checked)||!0===i.checked,children:z(Vs.span,{...r,ref:t,"data-state":Tf(i.checked)})})}));_f.displayName=pf;var vf=oi(((e,t)=>{const{__scopeMenu:n,...o}=e;return z(Vs.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})}));vf.displayName="MenuSeparator";var gf=oi(((e,t)=>{const{__scopeMenu:n,...o}=e,r=Nd(n);return z(du,{...r,...o,ref:t})}));gf.displayName="MenuArrow";var[yf,bf]=Ad("MenuSub"),wf="MenuSubTrigger",xf=oi(((e,t)=>{const n=Fd(wf,e.__scopeMenu),o=Wd(wf,e.__scopeMenu),r=bf(wf,e.__scopeMenu),i=Xd(wf,e.__scopeMenu),a=nn(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,l={__scopeMenu:e.__scopeMenu},u=an((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return en((()=>u),[u]),en((()=>{const e=s.current;return()=>{window.clearTimeout(e),c(null)}}),[s,c]),z(Hd,{asChild:!0,...l,children:z(rf,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":kf(n.open),...e,ref:Ns(t,r.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Rs(e.onPointerMove,Sf((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:Rs(e.onPointerLeave,Sf((e=>{u();const t=n.content?.getBoundingClientRect();if(t){const o=n.content?.dataset.side,r="right"===o,a=r?-5:5,c=t[r?"left":"right"],l=t[r?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:o}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:Rs(e.onKeyDown,(t=>{const r=""!==i.searchRef.current;e.disabled||r&&" "===t.key||Md[o.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())}))})})}));xf.displayName=wf;var Ef="MenuSubContent",Cf=oi(((e,t)=>{const n=Kd(zd,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,i=Fd(zd,e.__scopeMenu),a=Wd(zd,e.__scopeMenu),s=bf(Ef,e.__scopeMenu),c=nn(null),l=Ls(t,c);return z(Od.Provider,{scope:e.__scopeMenu,children:z(pu,{present:o||i.open,children:z(Od.Slot,{scope:e.__scopeMenu,children:z(Qd,{id:s.contentId,"aria-labelledby":s.triggerId,...r,ref:l,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{a.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Rs(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:Rs(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:Rs(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=Td[a.dir].includes(e.key);t&&n&&(i.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())}))})})})})}));function kf(e){return e?"open":"closed"}function Mf(e){return"indeterminate"===e}function Tf(e){return Mf(e)?"indeterminate":e?"checked":"unchecked"}function Sf(e){return t=>"mouse"===t.pointerType?e(t):void 0}Cf.displayName=Ef;var Of=jd,Pf=Hd,Df=Vd,Af=qd,Rf=Jd,Nf=ef,Lf=of,If=af,Ff=uf,Uf=ff,Wf=_f,jf=vf,Hf=gf,Bf=xf,$f=Cf,Kf="DropdownMenu",[Vf,zf]=Is(Kf,[Rd]),Yf=Rd(),[Xf,qf]=Vf(Kf),Gf=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=Yf(t),l=nn(null),[u=!1,d]=Ws({prop:r,defaultProp:i,onChange:a});return z(Xf,{scope:t,triggerId:gc(),triggerRef:l,contentId:gc(),open:u,onOpenChange:d,onOpenToggle:an((()=>d((e=>!e))),[d]),modal:s,children:z(Of,{...c,open:u,onOpenChange:d,dir:o,modal:s,children:n})})};Gf.displayName=Kf;var Zf="DropdownMenuTrigger",Qf=oi(((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,i=qf(Zf,n),a=Yf(n);return z(Pf,{asChild:!0,...a,children:z(Vs.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Ns(t,i.triggerRef),onPointerDown:Rs(e.onPointerDown,(e=>{o||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Rs(e.onKeyDown,(e=>{o||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Qf.displayName=Zf;var Jf=e=>{const{__scopeDropdownMenu:t,...n}=e,o=Yf(t);return z(Df,{...o,...n})};Jf.displayName="DropdownMenuPortal";var ep="DropdownMenuContent",tp=oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=qf(ep,n),i=Yf(n),a=nn(!1);return z(Af,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...o,ref:t,onCloseAutoFocus:Rs(e.onCloseAutoFocus,(e=>{a.current||r.triggerRef.current?.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:Rs(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;r.modal&&!o||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));tp.displayName=ep;var np=oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Rf,{...r,...o,ref:t})}));np.displayName="DropdownMenuGroup";var op=oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Nf,{...r,...o,ref:t})}));op.displayName="DropdownMenuLabel";var rp=oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Lf,{...r,...o,ref:t})}));rp.displayName="DropdownMenuItem",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(If,{...r,...o,ref:t})})).displayName="DropdownMenuCheckboxItem",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Ff,{...r,...o,ref:t})})).displayName="DropdownMenuRadioGroup",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Uf,{...r,...o,ref:t})})).displayName="DropdownMenuRadioItem",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Wf,{...r,...o,ref:t})})).displayName="DropdownMenuItemIndicator",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(jf,{...r,...o,ref:t})})).displayName="DropdownMenuSeparator",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Hf,{...r,...o,ref:t})})).displayName="DropdownMenuArrow",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z(Bf,{...r,...o,ref:t})})).displayName="DropdownMenuSubTrigger",oi(((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Yf(n);return z($f,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})})).displayName="DropdownMenuSubContent";var ip=Gf,ap=Qf,sp=Jf,cp=tp,lp=np,up=op,dp=rp;function fp(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return rn((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}var pp,mp="dismissableLayer.update",hp=K({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=oi(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,l=sn(hp),[u,d]=Qt(null),f=u?.ownerDocument??globalThis?.document,[,p]=Qt({}),m=Ls(t,(e=>d(e))),h=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(_),g=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=g>=v,w=function(e,t=globalThis?.document){const n=Us(e),o=nn(!1),r=nn((()=>{}));return en((()=>{const e=e=>{if(e.target&&!o.current){let o=function(){gp("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=o,t.addEventListener("click",r.current,{once:!0})):o()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}}),[t,n]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));b&&!n&&(r?.(e),a?.(e),e.defaultPrevented||s?.())}),f),x=function(e,t=globalThis?.document){const n=Us(e),o=nn(!1);return en((()=>{const e=e=>{e.target&&!o.current&&gp("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(i?.(e),a?.(e),e.defaultPrevented||s?.())}),f);return Gs((e=>{g===l.layers.size-1&&(o?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),en((()=>{if(u)return n&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(pp=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),vp(),()=>{n&&1===l.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=pp)}}),[u,f,n,l]),en((()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),vp())}),[u,l]),en((()=>{const e=()=>p({});return document.addEventListener(mp,e),()=>document.removeEventListener(mp,e)}),[]),z(Vs.div,{...c,ref:m,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:Rs(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Rs(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Rs(e.onPointerDownCapture,w.onPointerDownCapture)})}));function vp(){const e=new CustomEvent(mp);document.dispatchEvent(e)}function gp(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?zs(r,i):r.dispatchEvent(i)}_p.displayName="DismissableLayer",oi(((e,t)=>{const n=sn(hp),o=nn(null),r=Ls(t,o);return en((()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),z(Vs.div,{...e,ref:r})})).displayName="DismissableLayerBranch";var yp=oi(((e,t)=>{const{container:n,...o}=e,[r,i]=Qt(!1);hc((()=>i(!0)),[]);const a=n||r&&globalThis?.document?.body;return a?Ji.createPortal(z(Vs.div,{...o,ref:t}),a):null}));yp.displayName="Portal";var bp=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=Qt(),o=nn({}),r=nn(e),i=nn("none"),a=e?"mounted":"unmounted",[s,c]=function(e,t){return Jt(((e,n)=>t[e][n]??e),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return en((()=>{const e=wp(o.current);i.current="mounted"===s?e:"none"}),[s]),hc((()=>{const t=o.current,n=r.current;if(n!==e){const o=i.current,a=wp(t);c(e?"MOUNT":"none"===a||"none"===t?.display?"UNMOUNT":n&&o!==a?"ANIMATION_OUT":"UNMOUNT"),r.current=e}}),[e,c]),hc((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=i=>{const a=wp(o.current).includes(i.animationName);if(i.target===t&&a&&(c("ANIMATION_END"),!r.current)){const o=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=o)}))}},s=e=>{e.target===t&&(i.current=wp(o.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:an((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),r="function"==typeof n?n({present:o.isPresent}):ii.only(n),i=Ls(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r));return"function"==typeof n||o.isPresent?ji(r,{ref:i}):null};function wp(e){return e?.animationName||"none"}bp.displayName="Presence";var xp=oi(((e,t)=>z(Vs.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));xp.displayName="VisuallyHidden";var Ep=xp,[Cp,kp]=function(e,t=[]){let n=[];const o=()=>{const t=n.map((e=>K(e)));return function(n){const o=n?.[e]||t;return rn((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return o.scopeName=e,[function(t,o){const r=K(o),i=n.length;n=[...n,o];const a=t=>{const{scope:n,children:o,...a}=t,s=n?.[e]?.[i]||r,c=rn((()=>a),Object.values(a));return z(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,a){const s=sn(a?.[e]?.[i]||r);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},fp(o,...t)]}("Tooltip",[zl]),Mp=zl(),Tp="TooltipProvider",Sp=700,Op="tooltip.open",[Pp,Dp]=Cp(Tp),Ap=e=>{const{__scopeTooltip:t,delayDuration:n=Sp,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[a,s]=Qt(!0),c=nn(!1),l=nn(0);return en((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),z(Pp,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:an((()=>{window.clearTimeout(l.current),s(!1)}),[]),onClose:an((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>s(!0)),o)}),[o]),isPointerInTransitRef:c,onPointerInTransitChange:an((e=>{c.current=e}),[]),disableHoverableContent:r,children:i})};Ap.displayName=Tp;var Rp="Tooltip",[Np,Lp]=Cp(Rp),Ip=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,c=Dp(Rp,e.__scopeTooltip),l=Mp(t),[u,d]=Qt(null),f=gc(),p=nn(0),m=a??c.disableHoverableContent,h=s??c.delayDuration,_=nn(!1),[v=!1,g]=Ws({prop:o,defaultProp:r,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Op))):c.onClose(),i?.(e)}}),y=rn((()=>v?_.current?"delayed-open":"instant-open":"closed"),[v]),b=an((()=>{window.clearTimeout(p.current),p.current=0,_.current=!1,g(!0)}),[g]),w=an((()=>{window.clearTimeout(p.current),p.current=0,g(!1)}),[g]),x=an((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{_.current=!0,g(!0),p.current=0}),h)}),[h,g]);return en((()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)}),[]),z(cu,{...l,children:z(Np,{scope:t,contentId:f,open:v,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:an((()=>{c.isOpenDelayed?x():b()}),[c.isOpenDelayed,x,b]),onTriggerLeave:an((()=>{m?w():(window.clearTimeout(p.current),p.current=0)}),[w,m]),onOpen:b,onClose:w,disableHoverableContent:m,children:n})})};Ip.displayName=Rp;var Fp="TooltipTrigger",Up=oi(((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Lp(Fp,n),i=Dp(Fp,n),a=Mp(n),s=Ls(t,nn(null),r.onTriggerChange),c=nn(!1),l=nn(!1),u=an((()=>c.current=!1),[]);return en((()=>()=>document.removeEventListener("pointerup",u)),[u]),z(lu,{asChild:!0,...a,children:z(Vs.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:s,onPointerMove:Rs(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(l.current||i.isPointerInTransitRef.current||(r.onTriggerEnter(),l.current=!0))})),onPointerLeave:Rs(e.onPointerLeave,(()=>{r.onTriggerLeave(),l.current=!1})),onPointerDown:Rs(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})})),onFocus:Rs(e.onFocus,(()=>{c.current||r.onOpen()})),onBlur:Rs(e.onBlur,r.onClose),onClick:Rs(e.onClick,r.onClose)})})}));Up.displayName=Fp;var Wp="TooltipPortal",[jp,Hp]=Cp(Wp,{forceMount:void 0}),Bp=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=Lp(Wp,t);return z(jp,{scope:t,forceMount:n,children:z(bp,{present:n||i.open,children:z(yp,{asChild:!0,container:r,children:o})})})};Bp.displayName=Wp;var $p="TooltipContent",Kp=oi(((e,t)=>{const n=Hp($p,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,a=Lp($p,e.__scopeTooltip);return z(bp,{present:o||a.open,children:a.disableHoverableContent?z(Xp,{side:r,...i,ref:t}):z(Vp,{side:r,...i,ref:t})})})),Vp=oi(((e,t)=>{const n=Lp($p,e.__scopeTooltip),o=Dp($p,e.__scopeTooltip),r=nn(null),i=Ls(t,r),[a,s]=Qt(null),{trigger:c,onClose:l}=n,u=r.current,{onPointerInTransitChange:d}=o,f=an((()=>{s(null),d(!1)}),[d]),p=an(((e,t)=>{const n=e.currentTarget,o={x:e.clientX,y:e.clientY},r=function(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return o}(o,function(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}(o,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x)))break;t.pop()}t.push(o)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const o=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x)))break;n.pop()}n.push(o)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}(t.getBoundingClientRect())]);s(i),d(!0)}),[d]);return en((()=>()=>f()),[f]),en((()=>{if(c&&u){const e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}}),[c,u,p,f]),en((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},o=c?.contains(t)||u?.contains(t),r=!function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,l=t[i].y;s>o!=l>o&&n<(c-a)*(o-s)/(l-s)+a&&(r=!r)}return r}(n,a);o?f():r&&(f(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,u,a,l,f]),z(Xp,{...e,ref:i})})),[zp,Yp]=Cp(Rp,{isInside:!1}),Xp=oi(((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,c=Lp($p,n),l=Mp(n),{onClose:u}=c;return en((()=>(document.addEventListener(Op,u),()=>document.removeEventListener(Op,u))),[u]),en((()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,u]),z(_p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:z(uu,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[z(Bs,{children:o}),z(zp,{scope:n,isInside:!0,children:z(Ep,{id:c.contentId,role:"tooltip",children:r||o})})]})})}));Kp.displayName=$p;var qp="TooltipArrow";oi(((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Mp(n);return Yp(qp,n).isInside?null:z(du,{...r,...o,ref:t})})).displayName=qp;var Gp=Ap,Zp=Ip,Qp=Up,Jp=Bp,em=Kp;const tm=[Jn.tc_delete_prompts_comment],nm=(e,t)=>({type:e,text:t,context:"any"}),om=({commentType:e,numComments:t,editComment:n,deleteComment:o=ve,resolveConversation:r=ve,deleteConversation:i=ve,dialogOnCancel:a,disabled:s})=>{const{backend:c,editor:l,sinkRef:u,universe:d,$shouldFocusSidebar:f}=sn(zr),p=nn(null),m=nn(null),h=nn(null),[_,v]=Qt(!1),[g,y]=(({defaultOpen:e=!1,menuTriggerRef:t,contentContainerRef:n})=>{const[o,r]=Qt(e);return[o,e=>{var o,i;!1===e&&(null===(o=n.current)||void 0===o?void 0:o.contains(document.activeElement))&&(null===(i=t.current)||void 0===i||i.focus()),r(e)}]})({menuTriggerRef:m,contentContainerRef:h});en((()=>{const e=()=>{y(!1)},t=fa(An(document),"mousedown",(e=>{Mo(e.target,`.${jr.kebabItem.join(".")}`).fold((()=>{y(!1)}),ve)}));l.on("mousedown",e),l.on("remove",(()=>{l.off("mousedown",e),t.unbind()}))}),[l,y]);const b=({text:e,shouldReceiveFocus:t,callback:n})=>{const[o,r]=Qt(t);return en((()=>{o&&p.current&&(p.current.focus(),r(!1))}),[o]),z(dp,{ref:t?p:null,class:`${jr.kebabItem.join(" ")} ${s?jr.kebabDisabledItem.join(" "):""}`,onFocus:({currentTarget:e})=>e.classList.add(Hr),onBlur:({currentTarget:e})=>e.classList.remove(Hr),disabled:s,onClick:()=>{s||n()},children:z(up,{class:jr.kebabItemLabel.join(" "),children:d.translate(e)})})},w=e=>[nm("cancel",d.translate(Jn.tc_delete_buttons_cancel)),nm("submit",d.translate(Jn.tc_delete_buttons_proceed))],x=(e,t,n,o)=>()=>{const r=((e,t)=>Le(e,((e,n)=>`${e}<div><p>${t.translate(ce(n)?n:[n.pattern].concat(n.targets))}</p></div>`),""))(t,d),i=((e,t,n,o,r)=>({title:e,body:{type:"panel",items:[{type:"htmlpanel",html:t}]},buttons:n,onCancel:o,onSubmit:e=>{r(),e.close()}}))(d.translate(e),r,n,a,o);l.windowManager.open(i)},E=x(Jn.tc_dialog_delete_comment,tm,w(),(()=>{o(),f.set(!0)})),C=x(Jn.tc_dialog_delete_conversation,(e=>[Jn.tc_delete_prompts_conversation,1===e?Jn.tc_delete_prompts_conversation_detail_sing:{pattern:Jn.tc_delete_prompts_conversation_detail_pl,targets:[e]}])(t),w(),i),k={class:jr.kebabIcon.join(" "),dangerouslySetInnerHTML:{__html:d.getIcon("image-options")}},M=rn((()=>{const t=[];return"conversation"===e&&t.push({text:Jn.tc_kebab_delete_conversation,callback:C}),c.resolveConversation.isSome()&&"conversation"===e&&t.push({text:Jn.tc_kebab_resolve_conversation,callback:r}),t.push({text:Jn.tc_kebab_edit,callback:n}),"reply"===e&&t.push({text:Jn.tc_kebab_delete,callback:E}),t}),[n,r,c.resolveConversation,e,E,C]);return z(ip,{open:g,onOpenChange:y,modal:!1,children:[z(Gp,{children:z(Zp,{open:_,onOpenChange:v,children:[z(ap,{"aria-label":d.translate("conversation"===e?Jn.tc_kebab_tooltip_conversation:Jn.tc_kebab_tooltip),disabled:s,"data-mce-tooltip":d.translate("conversation"===e?Jn.tc_kebab_tooltip_conversation:Jn.tc_kebab_tooltip),asChild:!0,ref:m,children:z(Qp,{asChild:!0,children:z("button",{type:"button",tabindex:-1,class:jr.kebab.join(" "),children:z("div",{...k})})})}),z(Jp,{container:u.current,children:z(em,{children:z("div",{class:"tox-tooltip tox-tooltip--up",children:z("div",{class:"tox-tooltip__body",children:d.translate("conversation"===e?Jn.tc_kebab_tooltip_conversation:Jn.tc_kebab_tooltip)})})})})]})}),z(sp,{container:u.current,children:z(cp,{loop:!0,align:"end",class:jr.kebabMenu.join(" "),ref:h,children:z(lp,{class:jr.kebabMenuGroup.join(" "),children:M.map((({text:e,callback:t},n)=>z(b,{shouldReceiveFocus:0===n,text:e,callback:t},e)))})})})]})},rm="displaying",im=K({state:rm,dispatch:ve}),am=e=>{const t=()=>new RegExp(/(@[\p{L}\p{M}\p{N}.,\-'\u2019]+)/gu);return e.split(t()).map((e=>({text:e,isMention:t().test(e)})))},sm=e=>Me.from(e.match(/(@[\p{L}\p{M}\p{N}.,\-'\u2019]+)/gu)).filter((e=>e.length>0)),cm=e=>tt(e,"@"),lm=e=>Ae(e,cm),um=oi((({spanElementOpt:e,mentionsApi:t,setHovering:n,position:o},r)=>{const[i,a]=Qt(0),[s,c]=Qt(),l=nn(null),[u,d]=Qt(!0);return on(r,(()=>({contains:e=>!!me(l.current)&&l.current.contains(e)}))),en((()=>{e.each((e=>{t.selectCard(e,(e=>{c(e)}))}))}),[t,e]),en((()=>{(()=>{if(me(l.current)&&me(s)){l.current.appendChild(s);const e=Hn(An(s),"img"),t=Ae(e,(async e=>{return t=e,new Promise(((e,n)=>{const o=()=>{i(),e(t)},r=[fa(t,"load",o),fa(t,"error",(()=>{i(),n("Unable to load data from image: "+t.dom.src)}))],i=()=>Re(r,(e=>e.unbind()));t.dom.complete&&o()}));var t}));Promise.allSettled(t).then((()=>a(o.y-s.getBoundingClientRect().height))).finally((()=>d(!1)))}})()}),[s,o.y]),s?z("div",{ref:l,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),style:{visibility:u?"hidden":"visible",position:"absolute",top:i,left:o.x,zIndex:100}}):null}));let dm=()=>({emit(e,...t){for(let n=0,o=this.events[e]||[],r=o.length;n<r;n++)o[n](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter((e=>t!==e))}}});const fm=(e,t)=>{"undefined"==typeof window||addEventListener(e,t)},pm=(([e,t,n])=>{function o(e){return"string"==typeof e||"number"==typeof e||!0===e}const r=e=>{if(o(e))return[G([""+e,[e]]),()=>{}];const t=[],n=G(null),r=new Map,i=()=>{t.some((e=>null==e||!1===e))?n.set(null):n.set([t.join(""),t])};for(let n=0;n<e.length;n++){const i=e[n];o(i)?t.push(i):(t.push(null),r.set(i,n))}const s=[...r.keys()],c=((e,t)=>{let n;Array.isArray(e)||(e=[e]);let o,r=0,i=()=>{let o=e.map((e=>e.get()));if(void 0===n||o.some(((e,t)=>e!==n[t]))){let e=++r;n=o;let i=t(...o);i&&i.then&&i.t?i.then((t=>{e===r&&a.set(t)})):a.set(i)}},a=G(void 0,Math.max(...e.map((e=>e.l)))+1),s=()=>{clearTimeout(o),o=setTimeout(i)};var c,l;return l=()=>{let t=e.map((e=>e.listen(s,-1/a.l)));return i(),()=>{for(let e of t)e()}},Z(c=a,(e=>{let t=l();t&&c.events[6].push(t)}),5,(e=>{let t=c.listen;c.listen=(...n)=>(c.lc||c.active||(c.active=!0,e()),t(...n));let n=c.off;return c.events[6]=[],c.off=()=>{n(),setTimeout((()=>{if(c.active&&!c.lc){c.active=!1;for(let e of c.events[6])e();c.events[6]=[]}}),1e3)},()=>{c.listen=t,c.off=n}})),a})(s,((...e)=>{for(let n=0;n<e.length;n++){const o=s[n],i=r.get(o);t[i]=o._===l?o.value&&"data"in o.value?o.key:null:e[n]}i()}));return i(),[n,c.subscribe(a)]};function i({retryCount:e}){return 2e3*~~((Math.random()+.5)*(1<<(e<8?e:8)))}function a(){}const s=(e,t)=>Array.isArray(t)?t.includes(e):"function"==typeof t?t(e):e===t,c=()=>(new Date).getTime(),l=Symbol(),u={loading:!0},d={loading:!1};return({cache:o=new Map,fetcher:a,...f}={})=>{const p=dm();let m=!0;t((()=>{m=e(),m&&p.emit(1)})),n((()=>p.emit(2)));const h=new Map,_=new Map,v=new Map;let g={};const y=e=>{const t=o.get(e);return t&&(t.expires||0)>c()?[t.data,t.error]:[]},b=async([e,t],n,r)=>{if(!m)return;const a=t=>{n.key===e&&(n.set(t),p.emit(5,e,t,!0))},s=t=>{a({...void 0===t?{}:{data:t},...u,promise:v.get(e)})};let{dedupeTime:l=4e3,cacheLifetime:f=1/0,fetcher:h,onErrorRetry:b=i}={...r,...g};f<l&&(f=l);const w=c();if(v.has(e))return void(n.value.loading||s(y(e)[0]));let E,C;const k=o.get(e);if((void 0!==k?.data||k?.error)&&([E,C]=y(e),(k.created||0)+l>w))return void(n.value.data==E&&n.value.error==C||a({...d,data:E,error:C}));const M=(Y+=1,()=>{if(Y-=1,0===Y){let e=X;X=[];for(let t of e)t()}});try{clearTimeout(_.get(e));const n=h(...t);v.set(e,n),s(E);const r=await n;o.set(e,{data:r,created:c(),expires:c()+f}),a({data:r,...d})}catch(t){r.onError?.(t);const i=(o.get(e)?.retryCount||0)+1;if(o.set(e,{error:t,created:c(),expires:c()+f,retryCount:i}),b){const n=b({error:t,key:e,retryCount:i});n&&_.set(e,setTimeout((()=>x(e)),n))}a({data:n.value.data,error:t,...d})}finally{M(),v.delete(e)}},w=(e,t)=>{for(const n of o.keys())s(n,e)&&t(n)},x=e=>{w(e,(e=>{o.delete(e)})),p.emit(3,e)},E=e=>{w(e,(e=>{const t=o.get(e);t&&o.set(e,{...t,created:-1/0})})),p.emit(4,e)},C=(e,t)=>{w(e,(e=>{void 0===t?o.delete(e):o.set(e,{data:t,created:c(),expires:c()+(f.cacheLifetime??8e3)})})),p.emit(5,e,t)};return[(e,{fetcher:t=a,...n}={})=>{const o=J({...d}),i={...f,...n,fetcher:t};let c,u,m,_,v;o._=l,o.invalidate=()=>{const{key:e}=o;e&&x(e)},o.revalidate=()=>{const{key:e}=o;e&&E(e)},o.mutate=e=>{const{key:t}=o;t&&C(t,e)},o.fetch=async()=>{let e;const t=new Promise((t=>e=t)),n=o.listen((({error:t,data:n})=>{t&&e({error:t}),n&&e({data:n})}));return t.finally(n)};let g=[];var y;Z(y=o,(()=>{const t=!c;[v,c]=r(e),_=v.subscribe((e=>{if(e){const[t,n]=e;o.key=t,b([t,n],o,i),u=t,m=n}else o.key=u=m=void 0,o.set({...d})}));const n=v.get();n&&([u,m]=n,t&&w());const{revalidateInterval:a=0,revalidateOnFocus:l,revalidateOnReconnect:f}=i,y=()=>{u&&b([u,m],o,i)};a>0&&h.set(e,setInterval(y,a)),l&&g.push(p.on(1,y)),f&&g.push(p.on(2,y));const x=e=>{u&&s(u,e)&&b([u,m],o,i)};g.push(p.on(3,x),p.on(4,x),p.on(5,((e,t,n)=>{u&&s(u,e)&&o.value!==t&&o.value.data!==t&&o.set(n?t:{data:t,...d})})))}),0,(e=>{let t=y.listen;return y.listen=n=>(y.lc||y.starting||(y.starting=!0,e(),delete y.starting),t(n)),()=>{y.listen=t}}));const w=()=>{u&&m&&b([u,m],o,i)},k=o.listen;return o.listen=e=>{const t=k(e);return e(o.value),w(),t},Q(o,(()=>{o.value={...d},c?.(),g.forEach((e=>e())),g=[],_?.(),clearInterval(h.get(e))})),o},function(e,t){const{throttleCalls:n,onError:r}=t??{throttleCalls:!0,onError:f?.onError},i=async t=>{if(n&&a.value?.loading)return;const s=g.fetcher??e,c=[],l=[],d=(e,t)=>{a.lc&&a.setKey(e,t)};try{a.set({error:void 0,data:void 0,mutate:i,...u});const e=await s({data:t,invalidate:e=>{c.push(e)},revalidate:e=>{l.push(e)},getCacheUpdater:(e,t=!0)=>[n=>{C(e,n),t&&l.push(e)},o.get(e)?.data]});return d("data",e),e}catch(e){r?.(e),d("error",e),a.setKey("error",e)}finally{d("loading",!1),c.forEach(x),l.forEach(E)}},a=J({mutate:i,...d});return Q(a,(()=>a.set({mutate:i,...d}))),a.mutate=i,a},{__unsafeOverruleSettings:e=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),g=e},invalidateKeys:x,revalidateKeys:E,mutateCache:C}]}})([()=>!document.hidden,e=>fm("visibilitychange",e),e=>fm("online",e)]),[mm,hm]=pm({fetcher:()=>Promise.reject("Please provide the fetcher property")}),_m={},vm=(e,t,n,o,r)=>hm((async({data:i,getCacheUpdater:a})=>{const s=gn();return t.create({content:i,createdAt:s}).bindFuture((({conversationUid:n,onSuccess:o,onError:i})=>{return Qn(e,r)?(i&&i(new Error("Unable to create a new conversation")),a=new Error("Unable to create a new conversation"),uo(ao(lo.error(a)))):(o&&o(n),t.lookup({conversationUid:n}));var a})).mapResult((({conversation:t})=>{qn(e),e.annotator.remove(Bn()),e.annotator.annotate(Bn(),{uid:t.uid});const r=(e=>Ve(e.annotator.getAll(Bn())))(e);o.set(r);const[c,l]=a(e.id,!1);c(We(r,(e=>e===t.uid?[t]:Fe(null!=l?l:[],(t=>t.uid===e)).toArray()))),$e(t.comments).each((({author:o,authorName:r})=>n({type:"create",timestamp:s,conversationUid:t.uid,conversationContext:zn(e,t.uid),conversationContent:i,conversationAuthor:{author:o,authorName:r},...sm(i).map(lm).map((e=>({mentionedUids:e}))).getOr({})})))})).foldResult((e=>Promise.reject(e)),(()=>Promise.resolve())).toPromise().catch((t=>{eo(e,ce(t)?t:t.message,t)}))})),gm=({mentionUserTerm:e,mentionsApi:t})=>{var n;const{sinkRef:o,editor:r}=sn(zr),i=null!==(n=o.current)&&void 0!==n?n:(e=>{const t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return An(t)})(An(document)).dom,a=((e,t,n)=>{const o=e.id+"/mentions/"+n;return pe(_m[o])&&(_m[o]=mm(o,{fetcher:async()=>new Promise(((e,o)=>{t.getUsers(n,(t=>{Fe(t,(e=>e.name===n||e.id===n)).fold(o,e)}))})),dedupeTime:1/0}),_m[o].listen(ve)),_m[o]})(r,t,e),{data:s}=vn(a),c=nn(null),l=nn(null),[u,d]=Qt(!1),[f,p]=Qt({x:0,y:0}),[m,h]=Qt(Me.from(s).map(t.getMention));return en((()=>{if(me(s)&&m.isNone()){const e=t.getMention(s);me(e)&&h(Me.from(e))}}),[s,t,m]),en((()=>{if(me(l.current)){const e=i.getBoundingClientRect(),t=l.current.getBoundingClientRect();p({y:t.top-e.top,x:t.left-e.left})}}),[i,u]),m.fold((()=>z(x,{children:["@",e]})),(e=>z(x,{children:[z("span",{ref:l,onMouseEnter:()=>d(!0),onMouseLeave:e=>{var t,n;const o=e.relatedTarget;(null===(t=l.current)||void 0===t?void 0:t.contains(o))||(null===(n=c.current)||void 0===n?void 0:n.contains(o))||d(!1)},dangerouslySetInnerHTML:{__html:e.outerHTML}}),u&&z(ka,{container:o.current,children:z(um,{ref:c,spanElementOpt:m,mentionsApi:t,position:f,setHovering:d})})]})))},ym=({text:e,mentionsApi:t})=>z("div",{children:am(e).map((({text:e,isMention:n})=>n?z(gm,{mentionsApi:t,mentionUserTerm:cm(e)},cm(e)):e))}),bm=(e,t,n="top")=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect();"bottom"===n||r.bottom>o.bottom&&r.top>o.top&&r.height<o.height?t.scrollTop+=r.bottom-o.bottom+8:t.scrollTop+=r.top-o.top-8},wm=({comment:e,commentType:t,conversationUid:n,numComments:o,selected:r})=>{const{backend:i,editor:a,mentionsApiOpt:s,logger:c,$accessPermission:l,containerRef:u}=sn(zr),{dispatch:d}=sn(im),[f,p]=Qt(!1),[m,h]=Qt(!1),[_,v]=Qt(!1),g=nn(null),y=nn(null),b=vn(l),w=an((e=>{p(e),d(e?"start-edit-comment":"finish-edit-comment")}),[d,p]),x=rn((()=>((e,t,n,o,r)=>hm((async({data:i,getCacheUpdater:a})=>{const s=gn();return t.editComment({commentUid:o,content:i,modifiedAt:s,conversationUid:n}).foldResult((e=>Promise.reject(e)),(t=>{var c;if(t.canEdit){const[t,c]=a(e.id,!1);return t(null==c?void 0:c.map((e=>e.uid===n?{...e,comments:e.comments.map((e=>e.uid===o?{...e,content:i,modifiedAt:s}:e))}:e))),e.undoManager.dispatchChange(),Me.from(c).each((t=>{Fe(t,(e=>e.uid===n)).each((t=>{Fe(t.comments,(e=>e.uid===o)).each((({author:a,authorName:s})=>{$e(t.comments).each((({author:t,authorName:c,content:l,createdAt:u})=>{r({type:"edit-comment",timestamp:gn(),conversationUid:n,commentUid:o,conversationContext:zn(e,n),conversationContent:l,conversationCreatedAt:u,commentContent:i,commentAuthor:{author:a,authorName:s},conversationAuthor:{author:t,authorName:c},...sm(i).map(lm).map((e=>({mentionedUids:e}))).getOr({})})}))}))}))})),Promise.resolve()}return Promise.reject({message:Jn.tc_edit_unauthorised_comment,reason:null!==(c=t.reason)&&void 0!==c?c:""})})).toPromise().catch((t=>{eo(e,ce(t)?t:t.message,t)}))})))(a,i,n,e.uid,c)),[a,i,e.uid,n,c]),E=rn((()=>((e,t,n,o,r)=>hm((async({getCacheUpdater:i})=>t.deleteComment({commentUid:o,conversationUid:n}).foldResult((e=>Promise.reject(e)),(t=>{var a;if(t.canDelete){const[t,a]=i(e.id,!1);return t(null==a?void 0:a.map((e=>e.uid===n?{...e,comments:Ne(e.comments,(e=>e.uid!==o))}:e))),Me.from(a).each((t=>{Fe(t,(e=>e.uid===n)).each((t=>{Fe(t.comments,(e=>e.uid===o)).each((({author:i,authorName:a,content:s})=>{$e(t.comments).each((({author:t,authorName:c,content:l,createdAt:u})=>{r({type:"delete-comment",timestamp:gn(),conversationUid:n,commentUid:o,conversationContext:zn(e,n),conversationContent:l,conversationCreatedAt:u,commentContent:s,commentAuthor:{author:i,authorName:a},conversationAuthor:{author:t,authorName:c},...sm(s).map(lm).map((e=>({mentionedUids:e}))).getOr({})})}))}))}))})),Promise.resolve()}return Promise.reject({message:Jn.tc_delete_unauthorised_comment,reason:null!==(a=t.reason)&&void 0!==a?a:""})})).toPromise().catch((t=>{eo(e,ce(t)?t:t.message,t)})))))(a,i,n,e.uid,c)),[a,i,n,e.uid,c]),C=rn((()=>((e,t,n,o)=>hm((async({getCacheUpdater:r})=>t.deleteConversation({conversationUid:n}).foldResult((e=>Promise.reject(e)),(t=>{var i;if(t.canDelete){const[t,i]=r(e.id,!1),a=zn(e,n);return t(null==i?void 0:i.filter((e=>e.uid!==n))),to(e,n),Me.from(i).each((e=>{Fe(e,(e=>e.uid===n)).each((e=>{$e(e.comments).each((({author:e,authorName:t,content:r,createdAt:i})=>{o({type:"delete",timestamp:gn(),conversationUid:n,conversationContext:a,conversationContent:r,conversationAuthor:{author:e,authorName:t},conversationCreatedAt:i,...sm(r).map(lm).map((e=>({mentionedUids:e}))).getOr({})})}))}))})),Promise.resolve()}return Promise.reject({message:Jn.tc_delete_unauthorised_conversation,reason:null!==(i=t.reason)&&void 0!==i?i:""})})).toPromise().catch((t=>{eo(e,ce(t)?t:t.message,t)})))))(a,i,n,c)),[i,a,n,c]),k=rn((()=>((e,t,n,o)=>hm((async({getCacheUpdater:r})=>t.resolveConversation.each((t=>{t({conversationUid:n}).foldResult((e=>Promise.reject(e)),(t=>{var i;if(t.canResolve){const[t,i]=r(e.id,!1),a=zn(e,n);return t(null==i?void 0:i.filter((e=>e.uid!==n))),to(e,n),Me.from(i).each((e=>{Fe(e,(e=>e.uid===n)).each((e=>{$e(e.comments).each((({author:e,authorName:t,content:r,createdAt:i})=>{o({type:"resolve",timestamp:gn(),conversationUid:n,conversationContext:a,conversationContent:r,conversationAuthor:{author:e,authorName:t},conversationCreatedAt:i,...sm(r).map(lm).map((e=>({mentionedUids:e}))).getOr({})})}))}))})),Promise.resolve()}return Promise.reject({message:Jn.tc_resolve_unauthorised_conversation,reason:null!==(i=t.reason)&&void 0!==i?i:""})})).toPromise().catch((t=>{eo(e,ce(t)?t:t.message,t)}))})))))(a,i,n,c)),[a,i,n,c]),{mutate:M}=vn(x),{mutate:T}=vn(E),{mutate:S}=vn(C),{mutate:O}=vn(k);en((()=>{_&&g.current&&r&&(g.current.focus(),v(!1))}),[_,r]),en((()=>{f&&me(y.current)&&me(u.current)&&bm(y.current,u.current,"bottom")}),[f,u,y]);const P=e=>(So(e,"[tabindex]"),Me.some(!0));return Cr({containerRef:g,selector:"button",escape:P}),kr({containerRef:g,selector:"button",escape:P}),z("div",{ref:g,tabindex:-1,class:jr.comment.join(" "),children:[z("div",{class:jr.cardHead.join(" "),children:[z("div",{class:jr.cardHeadMeta.join(" "),children:z(Gr,{details:e})}),r&&z(om,{commentType:t,numComments:o,editComment:()=>w(!0),deleteComment:T,deleteConversation:S,resolveConversation:O,dialogOnCancel:()=>{v(!0)},disabled:!b.canWrite})]}),f?z(As,{ref:y,content:e.content,editable:f&&!m&&b.canWrite,onSave:e=>{var t;null===(t=g.current)||void 0===t||t.focus({preventScroll:!0}),h(!0),M(e).finally((()=>{w(!1),h(!1)}))},onCancel:()=>{var e;w(!1),null===(e=g.current)||void 0===e||e.focus()}}):z("div",{class:jr.cardBody.join(" "),children:s.fold((()=>z("div",{class:jr.editTextarea.join(" "),children:e.content})),(t=>z(ym,{text:e.content,mentionsApi:t})))})]})},xm=(e,t)=>{switch(t){case"start-reply":return"replying";case"start-edit-comment":return"editing-comment";default:return"displaying"}},Em=({conversation:e})=>{const{mentionsApiOpt:t}=sn(zr),n=e.comments[0];return z(x,{children:[z("div",{children:[z("div",{class:jr.cardHead.join(" "),children:z("div",{class:jr.cardHeadMeta.join(" "),children:z(Gr,{details:n})})}),z("div",{class:jr.cardBody.join(" "),children:t.fold((()=>z("div",{children:n.content})),(e=>z(ym,{text:n.content,mentionsApi:e})))})]}),e&&e.comments&&e.comments.length>1&&z(aa,{length:e.comments.length})]})},Cm=({conversation:e,selectedConversationRef:t})=>{const{editor:n,backend:o,logger:r,$shouldReply:i,$accessPermission:a,containerRef:s}=sn(zr),[c,l]=Jt(xm,rm),u=rn((()=>((e,t,n,o)=>hm((async({data:r,getCacheUpdater:i})=>{const a=gn();return t.reply({conversationUid:n.uid,content:r,createdAt:a}).bindFuture((({commentUid:i,author:a,authorName:s})=>($e(n.comments).each((({author:t,authorName:c,content:l,createdAt:u})=>{o({type:"reply",timestamp:u,conversationUid:n.uid,commentUid:i,conversationContext:zn(e,n.uid),conversationContent:l,conversationCreatedAt:n.comments[0].createdAt,commentContent:r,commentAuthor:{author:a,authorName:s},conversationAuthor:{author:t,authorName:c},...sm(r).map(lm).map((e=>({mentionedUids:e}))).getOr({})})})),t.lookup({conversationUid:n.uid})))).mapResult((({conversation:t})=>{const[o,r]=i(e.id,!1);o(null==r?void 0:r.map((e=>e.uid===n.uid?t:e))),e.undoManager.dispatchChange()})).foldResult((e=>Promise.reject(e)),(()=>Promise.resolve())).toPromise().catch((t=>{eo(e,ce(t)?t:t.message,t)}))})))(n,o,e,r)),[e,o,n,r]),{mutate:d,loading:f}=vn(u),p=nn(null),m=vn(a),h=()=>{if(l("finish-reply"),p.current){const t=Ne((e=An(p.current),Ae(e.dom.childNodes,An)),Ot);Ke(t).each(bo)}var e},_=e=>Ft(e,"tox-comment__single")?(To(e,"button"),Me.some(!0)):Ft(e,"tox-comment")?(To(e,`${Ur.comment},button:not(${Ur.kebab})`),Ge("textarea"!==Tt(e),!0)):Me.none(),v=e=>Ft(e,"tox-comment")?(n.focus(),Me.some(!0)):("replying"!==c||"textarea"!==Tt(e)&&"button"!==Tt(e)?So(e,"[tabindex]"):h(),Me.some(!0)),g=`${Ur.comment}, button:not(${Ur.kebab})`;return Cr({containerRef:t,selector:g,execute:_,escape:v}),kr({containerRef:t,selector:g,execute:_,escape:v}),en((()=>{i.subscribe((e=>{e&&(i.set(!1),l("start-reply"))}))}),[i]),en((()=>{"replying"===c&&t.current&&s.current&&bm(t.current,s.current,"bottom")}),[c,t,s]),z(x,{children:[z(im.Provider,{value:{state:c,dispatch:l},children:e&&z("div",{ref:p,children:Ae(e.comments,((t,n)=>z(wm,{comment:t,numComments:e.comments.length,conversationUid:e.uid,commentType:0===n?"conversation":"reply",selected:!0},t.uid)))})}),"displaying"===c&&z(ia,{disabled:!m.canWrite,onClick:()=>{var e;null===(e=t.current)||void 0===e||e.focus({preventScroll:!0}),l("start-reply")}}),"replying"===c&&z(As,{editable:!f&&m.canWrite,onSave:e=>{var n;null===(n=t.current)||void 0===n||n.focus({preventScroll:!0}),d(e).finally((()=>l("finish-reply")))},onCancel:h})]})},km=({conversation:e,selected:t})=>{const{editor:n,$shouldFocusSidebar:o,containerRef:r}=sn(zr),i=nn(null),a=vn(o);return en((()=>{t&&i.current&&r.current&&bm(i.current,r.current)}),[t,e.comments,r]),en((()=>{a&&t&&i.current&&r.current&&(o.set(!1),bm(i.current,r.current),i.current.focus({preventScroll:!0}))}),[a,t,o,r]),z("div",t?{ref:i,tabindex:-1,class:jr.card.concat(Wr).join(" "),children:z(Cm,{conversation:e,selectedConversationRef:i})}:{tabindex:-1,class:jr.card.join(" "),onFocus:()=>{((e,t)=>Xe(e.annotator.getAll(Bn()),t).bind($e))(n,e.uid).each((t=>{t.scrollIntoView({block:"nearest"}),Gn(n,e.uid)}))},children:z(Em,{conversation:e})})},Mm=()=>z("div",{class:jr.skeletonLine.join(" ")}),Tm=()=>z("div",{class:jr.skeletonCircle.join(" ")}),Sm=()=>z("div",{class:jr.card.concat(jr.skeleton).join(" "),style:{width:"100%"},children:[z("div",{style:{width:"100%"},class:jr.cardHead.join(" "),children:z("div",{style:{width:"100%"},class:jr.cardHeadMeta.join(" "),children:z("div",{style:{width:"100%"},class:jr.user.join(" "),children:[z("div",{class:jr.avatar.join(" "),children:z(Tm,{})}),z("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",gap:"4px"},children:[z("div",{class:jr.username.join(" "),style:{width:"50%"},children:[" ",z(Mm,{})]}),z("div",{style:{width:"30%"},class:jr.date.join(" "),children:z(Mm,{})})]})]})})}),z("div",{class:jr.cardBody.join(" "),children:z("div",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:"4px"},children:[z(Mm,{}),z(Mm,{})]})})]}),Om=({length:e})=>z("div",{class:jr.commentList.join(" "),children:Array.from(Array(e)).map(((e,t)=>z(Sm,{},t)))}),Pm=({selected:e,uid:t})=>{const{editor:n,backend:o,logger:r,$conversationUids:i,$shouldFocusSidebar:a,$accessPermission:s,containerRef:c}=sn(zr),l=rn((()=>vm(n,o,r,i,s)),[n,o,r,i,s]),{mutate:u}=vn(l),d=vn(a),f=nn(null),p=()=>{n.annotator.remove(Bn()),i.set(Ne(i.get(),xe(Yn))),n.focus()};Cr({containerRef:f,selector:"button,textarea",escape:()=>(p(),Me.some(!0))}),en((()=>{e&&f.current&&c.current&&bm(f.current,c.current)}),[e,c]),en((()=>{d&&e&&f.current&&c.current&&(a.set(!1),bm(f.current,c.current),ko(An(f.current),"textarea").each(bo))}),[d,e,a,c]);const m=vn(s);return z("div",{tabindex:-1,ref:f,class:jr.card.concat(e?Wr:"").join(" "),onFocus:()=>{Gn(n,t)},children:[z("div",{class:jr.cardHead.join(" "),children:z("div",{class:jr.cardHeadMeta.join(" "),children:z("div",{class:jr.user.join(" "),children:[z(Vr,{avatarInfo:{author:po(n),authorName:mo(n),authorAvatar:ho(n)}}),z("div",{children:z("div",{class:jr.username.join(" "),children:mo(n)})})]})})}),z(As,{content:"",editable:m.canWrite,onCancel:p,onSave:e=>{n.focus(),u(e).then((()=>{a.set(!0)}))},autofocus:!0})]})},Dm=xt().os.isMacOS(),Am=e=>t=>{t.altKey&&t.metaKey===Dm&&t.ctrlKey===!Dm&&"KeyM"===t.code&&!go(e)&&(t.preventDefault(),(e=>{e.execCommand("ToggleSidebar",!1,"showcomments")})(e))},Rm=({backend:e,editor:t,universe:n,logger:o,$conversationUids:r,$shouldFocusSidebar:i,$shouldReply:a,$forcedUpdate:s,$accessPermission:c})=>{const l=nn(null),u=nn(null),d=t.plugins.mentions,f=Ge(_o(t)&&me(d),d),p=rn((()=>({backend:e,editor:t,universe:n,sinkRef:l,containerRef:u,logger:o,mentionsApiOpt:f,$shouldFocusSidebar:i,$shouldReply:a,$conversationUids:r,$accessPermission:c})),[e,t,n,o,f,i,a,r,c,u]),m=()=>(t.focus(),Me.some(!0)),h=e=>u.current&&Ft(e,"tox-comment")?(To(e,Ur.comment),Me.some(!0)):Me.none();Cr({containerRef:u,closest:!1,selector:Ur.card,escape:m,execute:h}),kr({containerRef:u,closest:!1,selector:Ur.card,escape:m,execute:h});const _=vn(r),v=rn((()=>_.findIndex(Yn)),[_]),g=rn((()=>((e,t,n)=>mm(e.id,{fetcher:async()=>{const o=n.get(),r=o.findIndex(Yn),i=r>=0?o.filter(((e,t)=>t!==r)):o;return t.fetchConversations.fold((()=>Promise.all(i.map((e=>t.lookup({conversationUid:e}).foldResult((e=>Promise.reject(e)),(e=>Promise.resolve(e.conversation))).toPromise())).filter(me))),(async e=>e(o).foldResult((e=>Promise.reject(e)),(({conversations:e})=>Promise.resolve(i.map((t=>e[t])).filter(me)))).toPromise().then(ye))).catch((t=>(eo(e,ce(t)?t:t.message,t),Promise.reject(t))))}}))(t,e,r)),[t,e,r]);en((()=>{const e=r.subscribe(((e,n)=>{(0===e.length||n&&!((e,t,n=ie)=>re(n).eq(e,t))(Ne(e,xe(Yn)),n,oe))&&g.revalidate(t.id)}));return e}),[r,g,t.id]);const{data:y,loading:b}=vn(g),[w,x]=Qt(Me.none());en((()=>{t.annotator.annotationChanged(Bn(),((e,n,o)=>{e||(qn(t),r.set(Ne(r.get(),xe(Yn)))),a.set(!1),x(Me.from(null==o?void 0:o.uid))}))}),[t,a,r]),en((()=>{s.subscribe((()=>{g.invalidate(t.id)}))}),[s,g,t.id]),en((()=>{const e=()=>{g.revalidate(t.id)};return t.on("SetContent",e),()=>{t.off("SetContent",e)}}),[t,g]);const[E,C]=Qt(!0);en((()=>{E&&y&&y.length>0&&!t.removed&&($e(Ve((e=>((e,t)=>{const n={};return((e,t,n,o)=>{Ye(e,((e,r)=>{(t(e,r)?n:o)(e,r)}))})(e,t,(e=>(t,n)=>{e[n]=t})(n),ve),n})(e.annotator.getAll(Bn()),(t=>Pe(t,e.selection.getNode()))))(t))).each((e=>x(Me.from(e)))),C(!1))}),[E,t,y]);const k=rn((()=>{if(y){const e=y.map((e=>z(km,{selected:w.exists((t=>t===e.uid)),conversation:e},e.uid)));return v>=0&&e.splice(v,0,z(Pm,{uid:_[v],selected:w.exists(Yn)})),e}}),[y,v,w,_]),M=nn(null);return z(zr.Provider,{value:p,children:[z("div",{ref:l,class:"tox-comments-sink",style:"position: relative; z-index: 100;"}),z("div",{class:jr.conversationsHead.join(" "),children:z("div",{class:jr.conversationsTitle.join(" "),children:n.translate(Jn.tc_conversations_title)})}),z("div",{ref:u,class:jr.outerScroll.join(" "),onKeyDown:Am(t),children:!y&&b?z(Om,{length:_.length}):z("div",{ref:M,class:jr.commentList.join(" "),children:k})})]})};tinymce.Resource.add("tinymce.plugins.tinycomments.sidebar",((e,t,n,o,r,i,a,s,c)=>{const l=G(0);return e.on("mce-tinycomments-update",(()=>{l.set(l.get()+1)})),H(z(Rm,{editor:e,backend:t,universe:n,logger:o,$conversationUids:r,$shouldFocusSidebar:i,$shouldReply:a,$forcedUpdate:l,$accessPermission:s}),c),()=>{H(null,c)}}))}();
|