jodit-pro 4.14.7 → 4.14.9
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/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +5 -5
- package/es2015/jodit.js +75 -44
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +9 -9
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +10 -10
- package/es2021/jodit.js +75 -44
- package/es2021/jodit.min.js +5 -5
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +5 -5
- package/es2021.en/jodit.js +75 -44
- package/es2021.en/jodit.min.js +5 -5
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +75 -44
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/package.json +1 -1
package/es2018/jodit.fat.min.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.14.
|
|
4
|
+
* Version: v4.14.9
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){return function(){var e,t,i={94668:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Plus icon with document/context --\x3e <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg>'},86428:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},75966:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},83207:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M9 18l6-6-6-6"/> </svg>'},99293:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect x="9" y="2" width="6" height="12" rx="3"></rect> <path d="M5 10v1a7 7 0 0 0 14 0v-1" fill="none"></path> <line x1="12" y1="18" x2="12" y2="22"></line> <line x1="8" y1="22" x2="16" y2="22"></line> </svg>'},99219:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg>'},63674:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/> </svg>'},4133:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M13 2L4 14h6l-1 8 9-12h-6z"/> </svg>'},68583:function(e){e.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},34586:function(e){e.exports='<svg stroke="black" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class="st0" d="M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z"/> <path class="st0" d="M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z"/> <line class="st0" x1="18" x2="18" y1="13" y2="19"/> <line class="st0" x1="21" x2="18" y1="13" y2="17"/> <line class="st0" x1="21" x2="19" y1="19" y2="16"/> </svg>'},91729:function(e){e.exports='<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.799 11.449V12H7.764V11.449L8.695 11.487C9.075 11.525 9.265 11.373 9.265 11.031C9.265 10.8157 9.20167 10.5687 9.075 10.29L8.144 8.048H3.717L2.843 10.176C2.66567 10.5687 2.577 10.8853 2.577 11.126C2.577 11.392 2.71633 11.5187 2.995 11.506L3.907 11.449V12H0.62V11.449L1.114 11.487H1.19C1.44333 11.487 1.65233 11.3667 1.817 11.126C2.007 10.8473 2.197 10.48 2.387 10.024L6.358 0.466999H6.852L10.861 10.062C11.0383 10.518 11.222 10.879 11.412 11.145C11.5893 11.373 11.811 11.487 12.077 11.487H12.172L12.799 11.449ZM3.945 7.516H7.916L5.921 2.728L3.945 7.516Z" fill="black"/> <path d="M18.45 11.61V12H16.32C16.33 11.93 16.34 11.84 16.35 11.73C16.37 11.61 16.38 11.515 16.38 11.445L16.41 10.86C16.19 11.29 15.905 11.6 15.555 11.79C15.215 11.98 14.805 12.075 14.325 12.075C13.695 12.075 13.215 11.935 12.885 11.655C12.565 11.365 12.405 10.94 12.405 10.38C12.405 9.61 12.725 9.045 13.365 8.685C14.015 8.315 15.03 8.13 16.41 8.13V7.26C16.41 6.79 16.3 6.455 16.08 6.255C15.86 6.055 15.505 5.955 15.015 5.955C14.255 5.955 13.875 6.165 13.875 6.585C13.875 6.665 13.895 6.76 13.935 6.87C13.985 6.97 14.01 7.065 14.01 7.155C14.01 7.325 13.955 7.455 13.845 7.545C13.735 7.625 13.595 7.665 13.425 7.665C13.215 7.665 13.05 7.6 12.93 7.47C12.82 7.34 12.765 7.17 12.765 6.96C12.765 6.54 12.985 6.2 13.425 5.94C13.865 5.68 14.455 5.55 15.195 5.55C16.865 5.55 17.7 6.255 17.7 7.665V11.355C17.7 11.545 17.765 11.64 17.895 11.64L18.45 11.61ZM14.775 11.535C15.215 11.535 15.59 11.355 15.9 10.995C16.21 10.625 16.38 10.15 16.41 9.57V8.535C15.47 8.535 14.795 8.675 14.385 8.955C13.975 9.225 13.77 9.66 13.77 10.26C13.77 10.68 13.855 11 14.025 11.22C14.205 11.43 14.455 11.535 14.775 11.535Z" fill="black"/> </svg>'},46995:function(e){e.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},83556:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M2 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> <path d="M17 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0" fill="none" /> <path d="M9.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5" fill="none" /> <path d="M19.5 15l3 6" fill="none" /> <path d="M19.5 21l3 -6" fill="none" /> </svg>'},4872:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" fill="none" /> <path d="M17 18h2" fill="none" /> <path d="M20 15h-3v6" fill="none" /> <path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> </svg>'},53121:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},7307:function(e){e.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},24928:function(e){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},96910:function(e){e.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},81122:function(e){e.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},49377:function(e){e.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},46425:function(e){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},86820:function(e){e.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},36576:function(e){e.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27622:function(e){e.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},89687:function(e){e.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},25088:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},67008:function(e){e.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},63643:function(e){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},27926:function(e){e.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},10690:function(e){e.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},91997:function(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},11699:function(e){e.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},27222:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},17405:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},78879:function(e){e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78955:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},18993:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},11373:function(e){e.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},74922:function(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(e){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},46146:function(e){"u">typeof self&&self,e.exports=function(){var e=[function(e,t,i){"use strict";var n=i(3);function o(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,i;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(i=t.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.PALETTE_MATERIAL_CHROME=t.PALETTE_MATERIAL_500=t.COLOR_NAMES=t.getLuminance=t.intToRgb=t.rgbToInt=t.rgbToHsv=t.rgbToHsl=t.hslToRgb=t.rgbToHex=t.parseColor=t.parseColorToHsla=t.parseColorToHsl=t.parseColorToRgba=t.parseColorToRgb=t.from=t.createPicker=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},r=i(2),s=l(i(0)),a=l(i(4));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function d(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var u="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,h="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,p={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},f="COLOR",m="RGBA_USER",g="HSLA_USER";function v(e,t,i){return e?e instanceof HTMLElement?e:e instanceof NodeList?e[0]:"string"==typeof e?document.querySelector(e):e.jquery?e.get(0):i?t:null:t}function b(e){var t=e.getContext("2d"),i=+e.width,n=+e.height,s=t.createLinearGradient(1,1,1,n-1);return s.addColorStop(0,"white"),s.addColorStop(1,"black"),{setHue:function(e){var o=t.createLinearGradient(1,0,i-1,0);o.addColorStop(0,"hsla("+e+", 100%, 50%, 0)"),o.addColorStop(1,"hsla("+e+", 100%, 50%, 1)"),t.fillStyle=s,t.fillRect(0,0,i,n),t.fillStyle=o,t.globalCompositeOperation="multiply",t.fillRect(0,0,i,n),t.globalCompositeOperation="source-over"},grabColor:function(e,i){return t.getImageData(e,i,1,1).data},findColor:function(e,t,s){var a=o((0,r.rgbToHsv)(e,t,s),3);return[a[1]*i,n-a[2]*n]}}}function y(e,t,i){return null===e?t:/^\s*$/.test(e)?i:!!/true|yes|1/i.test(e)||!/false|no|0/i.test(e)&&t}function w(e,t,i){if(null===e)return t;if(/^\s*$/.test(e))return i;var n=e.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:t}var _=function(){function e(t,i){if(c(this,e),i?(t=v(t),this.options=Object.assign({},p,i)):t&&(0,s.default)(t)?(this.options=Object.assign({},p,t),t=v(this.options.attachTo)):(this.options=Object.assign({},p),t=v((0,r.nvl)(t,this.options.attachTo))),!t)throw Error("Container not found: "+this.options.attachTo);!function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(t.hasAttribute(i+"show-hsl")&&(e.showHSL=y(t.getAttribute(i+"show-hsl"),p.showHSL,!0)),t.hasAttribute(i+"show-rgb")&&(e.showRGB=y(t.getAttribute(i+"show-rgb"),p.showRGB,!0)),t.hasAttribute(i+"show-hex")&&(e.showHEX=y(t.getAttribute(i+"show-hex"),p.showHEX,!0)),t.hasAttribute(i+"show-alpha")&&(e.showAlpha=y(t.getAttribute(i+"show-alpha"),p.showAlpha,!0)),t.hasAttribute(i+"palette-editable")&&(e.paletteEditable=y(t.getAttribute(i+"palette-editable"),p.paletteEditable,!0)),t.hasAttribute(i+"sl-bar-size")&&(e.slBarSize=w(t.getAttribute(i+"sl-bar-size"),p.slBarSize,[232,150])),t.hasAttribute(i+"hue-bar-size")&&(e.hueBarSize=w(t.getAttribute(i+"hue-bar-size"),p.hueBarSize,[150,11]),e.alphaBarSize=e.hueBarSize),t.hasAttribute(i+"palette")){var n=t.getAttribute(i+"palette");switch(n){case"PALETTE_MATERIAL_500":e.palette=r.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":e.palette=r.PALETTE_MATERIAL_CHROME;break;default:e.palette=n.split(/[;|]/)}}t.hasAttribute(i+"color")&&(e.color=t.getAttribute(i+"color"))}(this.options,t),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=a.default,t.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=b(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var o=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(o),this.slBarHelper=b(o),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(f,this.options.color)}return n(e,[{key:"setupHueCanvas",value:function(e){var t=this;e.width=this.options.hueBarSize[0],e.height=this.options.hueBarSize[1];for(var i=e.getContext("2d"),n=i.createLinearGradient(0,0,this.options.hueBarSize[0],0),o=0;o<=1;o+=1/360)n.addColorStop(o,"hsl("+360*o+", 100%, 50%)");i.fillStyle=n,i.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var s=function(i){var n=(0,r.limit)(i.clientX-e.getBoundingClientRect().left,0,t.options.hueBarSize[0]),o=Math.round(360*n/t.options.hueBarSize[0]);t.huePointer.style.left=n-7+"px",t.onValueChanged("H",o)},a=function e(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",function(e){s(e),document.addEventListener("mousemove",s),document.addEventListener("mouseup",a)})}},{key:"setupSlCanvas",value:function(e){var t=this;e.width=this.options.slBarSize[0],e.height=this.options.slBarSize[1];var i=function(i){var n=(0,r.limit)(i.clientX-e.getBoundingClientRect().left,0,t.options.slBarSize[0]-1),o=(0,r.limit)(i.clientY-e.getBoundingClientRect().top,0,t.options.slBarSize[1]-1),s=t.slBarHelper.grabColor(n,o);t.slPointer.style.left=n-7+"px",t.slPointer.style.top=o-7+"px",t.onValueChanged("RGB",s)},n=function e(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",function(e){i(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",n)})}},{key:"setupAlphaCanvas",value:function(e){var t=this;e.width=this.options.alphaBarSize[0],e.height=this.options.alphaBarSize[1];var i=e.getContext("2d"),n=i.createLinearGradient(0,0,e.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),i.fillStyle=n,i.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var o=function(i){var n=(0,r.limit)(i.clientX-e.getBoundingClientRect().left,0,t.options.alphaBarSize[0]),o=+(n/t.options.alphaBarSize[0]).toFixed(2);t.alphaPointer.style.left=n-7+"px",t.onValueChanged("ALPHA",o)},s=function e(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",function(e){o(e),document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)})}},{key:"setupInput",value:function(e){var t=this,i=+e.min,n=+e.max,o=e.getAttribute("nameref");e.hasAttribute("select-on-focus")&&e.addEventListener("focus",function(){e.select()}),"text"===e.type?e.addEventListener("change",function(){t.onValueChanged(o,e.value)}):((u||h)&&e.addEventListener("keydown",function(s){"Up"===s.key?(e.value=(0,r.limit)(+e.value+1,i,n),t.onValueChanged(o,e.value),s.returnValue=!1):"Down"===s.key&&(e.value=(0,r.limit)(e.value-1,i,n),t.onValueChanged(o,e.value),s.returnValue=!1)}),e.addEventListener("change",function(){var s=+e.value;t.onValueChanged(o,(0,r.limit)(s,i,n))}))}},{key:"setupClipboard",value:function(e){var t=this;e.title="click to copy",e.addEventListener("click",function(){e.value=(0,r.parseColor)([t.R,t.G,t.B,t.A],"hexcss4"),e.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(e){var t=this,i="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=r.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=r.PALETTE_MATERIAL_CHROME;break;default:n=(0,r.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var o=function(i,n,o){var r=e.querySelector('.a-color-picker-palette-color[data-color="'+i+'"]')||document.createElement("div");r.className="a-color-picker-palette-color",r.style.backgroundColor=i,r.setAttribute("data-color",i),r.title=i,e.insertBefore(r,n),t.palette[i]=!0,o&&t.onPaletteColorAdd(i)},s=function(i,n){i?(e.removeChild(i),t.palette[i.getAttribute("data-color")]=!1,n&&t.onPaletteColorRemove(i.getAttribute("data-color"))):(e.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(t){e.removeChild(t)}),Object.keys(t.palette).forEach(function(e){t.palette[e]=!1}),n&&t.onPaletteColorRemove())};if(n.map(function(e){return(0,r.parseColor)(e,i?"rgbcss4":"hex")}).filter(function(e){return!!e}).forEach(function(e){return o(e)}),this.options.paletteEditable){var a=document.createElement("div");a.className="a-color-picker-palette-color a-color-picker-palette-add",a.innerHTML="+",e.appendChild(a),e.addEventListener("click",function(e){/a-color-picker-palette-add/.test(e.target.className)?e.shiftKey?s(null,!0):o(i?(0,r.parseColor)([t.R,t.G,t.B,t.A],"rgbcss4"):(0,r.rgbToHex)(t.R,t.G,t.B),e.target,!0):/a-color-picker-palette-color/.test(e.target.className)&&(e.shiftKey?s(e.target,!0):t.onValueChanged(f,e.target.getAttribute("data-color")))})}else e.addEventListener("click",function(e){/a-color-picker-palette-color/.test(e.target.className)&&t.onValueChanged(f,e.target.getAttribute("data-color"))})}else e.style.display="none"}},{key:"updatePalette",value:function(e){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=e,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(e){case"H":this.H=t;var n=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=n[0],this.G=n[1],this.B=n[2],this.slBarHelper.setHue(t),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=t;var s=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=s[0],this.G=s[1],this.B=s[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=t;var a=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=t;var l=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=l[0],this.S=l[1],this.L=l[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=t;var c=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=t;var d=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var u=o(t,3);this.R=u[0],this.G=u[1],this.B=u[2];var h=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=h[0],this.S=h[1],this.L=h[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case m:var p=o(t,4);this.R=p[0],this.G=p[1],this.B=p[2],this.A=p[3];var v=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case g:var b=o(t,4);this.H=b[0],this.S=b[1],this.L=b[2],this.A=b[3];var y=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=y[0],this.G=y[1],this.B=y[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var w=o((0,r.cssColorToRgb)(t)||[this.R,this.G,this.B],3);this.R=w[0],this.G=w[1],this.B=w[2];var _=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=_[0],this.S=_[1],this.L=_[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case f:var k=o((0,r.parseColor)(t,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var C=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=t}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",i&&i.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(e){this.oncoloradd&&this.oncoloradd(e)}},{key:"onPaletteColorRemove",value:function(e){this.oncolorremove&&this.oncolorremove(e)}},{key:"updateInputHSL",value:function(e,t,i){this.options.showHSL&&(this.inputH.value=e,this.inputS.value=t,this.inputL.value=i)}},{key:"updateInputRGB",value:function(e,t,i){this.options.showRGB&&(this.inputR.value=e,this.inputG.value=t,this.inputB.value=i)}},{key:"updateInputRGBHEX",value:function(e,t,i){this.options.showHEX&&(this.inputRGBHEX.value=(0,r.rgbToHex)(e,t,i))}},{key:"updatePointerH",value:function(e){var t=this.options.hueBarSize[0]*e/360;this.huePointer.style.left=t-7+"px"}},{key:"updatePointerSL",value:function(e,t,i){var n=o((0,r.hslToRgb)(e,t,i),3),s=n[0],a=n[1],l=n[2],c=o(this.slBarHelper.findColor(s,a,l),2),d=c[0],u=c[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=u-7+"px")}},{key:"updatePointerA",value:function(e){if(this.options.showAlpha){var t=this.options.alphaBarSize[0]*e;this.alphaPointer.style.left=t-7+"px"}}}]),e}(),k=function(){function e(t){c(this,e),this.name=t,this.listeners=[]}return n(e,[{key:"on",value:function(e){e&&this.listeners.push(e)}},{key:"off",value:function(e){this.listeners=e?this.listeners.filter(function(t){return t!==e}):[]}},{key:"emit",value:function(e,t){for(var i=this.listeners.slice(0),n=0;n<i.length;n++)i[n].apply(t,e)}}]),e}();function C(e,t){var i=new _(e,t),n={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},s=!0,a={},l={get element(){return i.element},get rgb(){return[i.R,i.G,i.B]},set rgb(e){var t=o(e,3),n=t[0],s=t[1],a=t[2],l=[(0,r.limit)(n,0,255),(0,r.limit)(s,0,255),(0,r.limit)(a,0,255)];n=l[0],s=l[1],a=l[2],i.onValueChanged(m,[n,s,a,1])},get hsl(){return[i.H,i.S,i.L]},set hsl(e){var t=o(e,3),n=t[0],s=t[1],a=t[2],l=[(0,r.limit)(n,0,360),(0,r.limit)(s,0,100),(0,r.limit)(a,0,100)];n=l[0],s=l[1],a=l[2],i.onValueChanged(g,[n,s,a,1])},get rgbhex(){return this.all.hex},get rgba(){return[i.R,i.G,i.B,i.A]},set rgba(e){var t=o(e,4),n=t[0],s=t[1],a=t[2],l=t[3],c=[(0,r.limit)(n,0,255),(0,r.limit)(s,0,255),(0,r.limit)(a,0,255),(0,r.limit)(l,0,1)];n=c[0],s=c[1],a=c[2],l=c[3],i.onValueChanged(m,[n,s,a,l])},get hsla(){return[i.H,i.S,i.L,i.A]},set hsla(e){var t=o(e,4),n=t[0],s=t[1],a=t[2],l=t[3],c=[(0,r.limit)(n,0,360),(0,r.limit)(s,0,100),(0,r.limit)(a,0,100),(0,r.limit)(l,0,1)];n=c[0],s=c[1],a=c[2],l=c[3],i.onValueChanged(g,[n,s,a,l])},get color(){return this.all.toString()},set color(e){i.onValueChanged(f,e)},setColor:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.onValueChanged(f,e,{silent:t})},get all(){if(s){var e=[i.R,i.G,i.B,i.A],t=i.A<1?"rgba("+i.R+","+i.G+","+i.B+","+i.A+")":r.rgbToHex.apply(void 0,e);(a=(0,r.parseColor)(e,a)).toString=function(){return t},s=!1}return Object.assign({},a)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(i.palette).filter(function(e){return i.palette[e]})},set palette(e){i.updatePalette(e)},show:function(){i.element.classList.remove("hidden")},hide:function(){i.element.classList.add("hidden")},toggle:function(){i.element.classList.toggle("hidden")},on:function(e,t){return e&&n[e]&&n[e].on(t),this},off:function(e,t){return e&&n[e]&&n[e].off(t),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),i.element.remove(),n=null,i=null}};return i.onchange=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s=!0,n.change.emit([l].concat(t),l)},i.oncoloradd=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];n.coloradd.emit([l].concat(t),l)},i.oncolorremove=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];n.colorremove.emit([l].concat(t),l)},i.element.ctrl=l,l}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var S=i(5).toString(),x=document.createElement("style");x.setAttribute("type","text/css"),x.setAttribute("data-source","a-color-picker"),x.innerHTML=S,document.querySelector("head").appendChild(x)}t.createPicker=C,t.from=function(e,t){var i=(e?Array.isArray(e)?e:e instanceof HTMLElement?[e]:e instanceof NodeList?[].concat(d(e)):"string"==typeof e?[].concat(d(document.querySelectorAll(e))):e.jquery?e.get():[]:[]).map(function(e,i){var n=C(e,t);return n.index=i,n});return i.on=function(e,t){return i.forEach(function(i){return i.on(e,t)}),this},i.off=function(e){return i.forEach(function(t){return t.off(e)}),this},i},t.parseColorToRgb=r.parseColorToRgb,t.parseColorToRgba=r.parseColorToRgba,t.parseColorToHsl=r.parseColorToHsl,t.parseColorToHsla=r.parseColorToHsla,t.parseColor=r.parseColor,t.rgbToHex=r.rgbToHex,t.hslToRgb=r.hslToRgb,t.rgbToHsl=r.rgbToHsl,t.rgbToHsv=r.rgbToHsv,t.rgbToInt=r.rgbToInt,t.intToRgb=r.intToRgb,t.getLuminance=r.getLuminance,t.COLOR_NAMES=r.COLOR_NAMES,t.PALETTE_MATERIAL_500=r.PALETTE_MATERIAL_500,t.PALETTE_MATERIAL_CHROME=r.PALETTE_MATERIAL_CHROME,t.VERSION="1.2.1"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nvl=t.ensureArray=t.limit=t.getLuminance=t.parseColor=t.parseColorToHsla=t.parseColorToHsl=t.cssHslaToHsla=t.cssHslToHsl=t.parseColorToRgba=t.parseColorToRgb=t.cssRgbaToRgba=t.cssRgbToRgb=t.cssColorToRgba=t.cssColorToRgb=t.intToRgb=t.rgbToInt=t.rgbToHsv=t.rgbToHsl=t.hslToRgb=t.rgbToHex=t.PALETTE_MATERIAL_CHROME=t.PALETTE_MATERIAL_500=t.COLOR_NAMES=void 0;var n,o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},r=(n=i(0))&&n.__esModule?n:{default:n};function s(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var a={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function l(e,t,i){return isNaN(e*=1)||t>e?t:e>i?i:e}function c(e,t){return null==e?t:e}function d(e,t,i){var n=[l(e,0,255),l(t,0,255),l(i,0,255)];return"#"+("000000"+((e=n[0])<<16|(t=n[1])<<8|(i=n[2])).toString(16)).slice(-6)}function u(e,t,i){var n=void 0,o=void 0,r=void 0,s=[l(e,0,360)/360,l(t,0,100)/100,l(i,0,100)/100];if(e=s[0],i=s[2],0==(t=s[1]))n=o=r=i;else{var a=function(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},c=i<.5?i*(1+t):i+t-i*t,d=2*i-c;n=a(d,c,e+1/3),o=a(d,c,e),r=a(d,c,e-1/3)}return[255*n,255*o,255*r].map(Math.round)}function h(e,t,i){var n=[l(e,0,255)/255,l(t,0,255)/255,l(i,0,255)/255],o=Math.max(e=n[0],t=n[1],i=n[2]),r=Math.min(e,t,i),s=void 0,a=void 0,c=(o+r)/2;if(o==r)s=a=0;else{var d=o-r;switch(a=c>.5?d/(2-o-r):d/(o+r),o){case e:s=(t-i)/d+6*(t<i);break;case t:s=(i-e)/d+2;break;case i:s=(e-t)/d+4}s/=6}return[360*s,100*a,100*c].map(Math.round)}function p(e,t,i){return e<<16|t<<8|i}function f(e){if(e){var t=a[e.toString().toLowerCase()],i=o(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(t||e)||[],10),n=i[3],r=i[4],s=i[5],l=i[7],c=i[8],d=i[9];if(void 0!==n)return[parseInt(n+n,16),parseInt(r+r,16),parseInt(s+s,16)];if(void 0!==l)return[parseInt(l,16),parseInt(c,16),parseInt(d,16)]}}function m(e){if(e){var t=a[e.toString().toLowerCase()],i=o(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(t||e)||[],12),n=i[3],r=i[4],s=i[5],l=i[6],c=i[8],d=i[9],u=i[10],h=i[11];if(void 0!==n)return[parseInt(n+n,16),parseInt(r+r,16),parseInt(s+s,16),l?+(parseInt(l+l,16)/255).toFixed(2):1];if(void 0!==c)return[parseInt(c,16),parseInt(d,16),parseInt(u,16),h?+(parseInt(h,16)/255).toFixed(2):1]}}function g(e){if(e){var t=o(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e)||[],4),i=t[0],n=t[1],r=t[2],s=t[3];return i?[l(n,0,255),l(r,0,255),l(s,0,255)]:void 0}}function v(e){if(e){var t=o(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e)||[],6),i=t[0],n=t[1],r=t[2],s=t[3],a=t[5];return i?[l(n,0,255),l(r,0,255),l(s,0,255),l(c(a,1),0,1)]:void 0}}function b(e){if(Array.isArray(e))return[l(e[0],0,255),l(e[1],0,255),l(e[2],0,255),l(c(e[3],1),0,1)];var t=m(e)||v(e);return t&&3===t.length&&t.push(1),t}function y(e){if(e){var t=o(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e)||[],4),i=t[0],n=t[1],r=t[2],s=t[3];return i?[l(n,0,360),l(r,0,100),l(s,0,100)]:void 0}}function w(e){if(e){var t=o(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e)||[],6),i=t[0],n=t[1],r=t[2],s=t[3],a=t[5];return i?[l(n,0,255),l(r,0,255),l(s,0,255),l(c(a,1),0,1)]:void 0}}function _(e){if(Array.isArray(e))return[l(e[0],0,360),l(e[1],0,100),l(e[2],0,100),l(c(e[3],1),0,1)];var t=w(e);return t&&3===t.length&&t.push(1),t}function k(e,t){switch(t){case"rgb":default:return e.slice(0,3);case"rgbcss":return"rgb("+e[0]+", "+e[1]+", "+e[2]+")";case"rgbcss4":return"rgb("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")";case"rgba":return e;case"rgbacss":return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")";case"hsl":return h.apply(void 0,s(e));case"hslcss":return"hsl("+(e=h.apply(void 0,s(e)))[0]+", "+e[1]+", "+e[2]+")";case"hslcss4":var i=h.apply(void 0,s(e));return"hsl("+i[0]+", "+i[1]+", "+i[2]+", "+e[3]+")";case"hsla":return[].concat(s(h.apply(void 0,s(e))),[e[3]]);case"hslacss":var n=h.apply(void 0,s(e));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+e[3]+")";case"hex":return d.apply(void 0,s(e));case"hexcss4":return d.apply(void 0,s(e))+("00"+parseInt(255*e[3]).toString(16)).slice(-2);case"int":return p.apply(void 0,s(e))}}t.COLOR_NAMES=a,t.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],t.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],t.rgbToHex=d,t.hslToRgb=u,t.rgbToHsl=h,t.rgbToHsv=function(e,t,i){var n=[l(e,0,255)/255,l(t,0,255)/255,l(i,0,255)/255],o,r=Math.max(e=n[0],t=n[1],i=n[2]),s=Math.min(e,t,i),a=void 0,c=r-s;if(o=0===r?0:c/r,r==s)a=0;else{switch(r){case e:a=(t-i)/c+6*(t<i);break;case t:a=(i-e)/c+2;break;case i:a=(e-t)/c+4}a/=6}return[a,o,r]},t.rgbToInt=p,t.intToRgb=function(e){return[e>>16&255,e>>8&255,255&e]},t.cssColorToRgb=f,t.cssColorToRgba=m,t.cssRgbToRgb=g,t.cssRgbaToRgba=v,t.parseColorToRgb=function(e){return Array.isArray(e)?e=[l(e[0],0,255),l(e[1],0,255),l(e[2],0,255)]:f(e)||g(e)},t.parseColorToRgba=b,t.cssHslToHsl=y,t.cssHslaToHsla=w,t.parseColorToHsl=function(e){return Array.isArray(e)?e=[l(e[0],0,360),l(e[1],0,100),l(e[2],0,100)]:y(e)},t.parseColorToHsla=_,t.parseColor=function(e,t){if(t=t||"rgb",null!=e){var i=void 0;if((i=b(e))||(i=_(e))&&(i=[].concat(s(u.apply(void 0,s(i))),[i[3]])))return(0,r.default)(t)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(e,t){return e[t]=k(i,t),e},t||{}):k(i,t.toString().toLowerCase())}},t.getLuminance=function(e,t,i){return .2126*(e=(e/=255)<.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},t.limit=l,t.ensureArray=function(e){return e?Array.from(e):[]},t.nvl=c},function(e,t,i){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t){e.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(e,t,i){var n=i(6);e.exports="string"==typeof n?n:n.toString()},function(e,t,i){(e.exports=i(7)(!1)).push([e.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var o="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */";return[i].concat(n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"})).concat([o]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(n[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}}],t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,(function(t){return e[t]}).bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}()},6441:function(e,t,i){"use strict";i.d(t,{Config:function(){return r}});var n=i(82758);let o={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=n.globalDocument,this.ownerWindow=n.globalWindow,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=n.INSERT_AS_HTML,this.enter=n.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:n.PARAGRAPH,this.defaultMode=n.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,i){"use strict";i.d(t,{Async:function(){return f}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),d=i(70799),u=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,u.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let r=(0,o.setTimeout)(e,t,...i),s=n.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,a=!1,d=[],u=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,d.length){let e=()=>{d.forEach(e=>e()),d.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&u(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>u(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):u(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{d.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,a;return(...i)=>{(o=!0,a=i,t)?n||(r=()=>{o?(e(...a),o=!1,n=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,n,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(o=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){"use strict";i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){"use strict";i.d(t,{Component:function(){return l}});var n=i(8884),o=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push(`__${e}`)),t&&(n.push("_",t),n.push("_",(0,s.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=a.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,i){"use strict";i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(4012),o=i(78213),r=i(80480)},78213:function(e,t,i){"use strict";i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return o}});var n=i(4012);class o extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return n}});let n=!1,o="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),d="Meta",u="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",v="ArrowDown",b="Delete",y=[d,u,b,m,v,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.navigator.platform),k=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:C,isMin:S}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(o.location.href)})(),x=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.14.7","BASE_PATH",0,C,"BASE_PATH_IS_MIN",0,S,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2018","FAT_MODE",0,!0,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!1,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,_,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,u,"KEY_DELETE",0,b,"KEY_DOWN",0,v,"KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_LEFT",0,f,"KEY_META",0,d,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0,"\xa0","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,x,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>n=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,o,"lang",0,{}])},20218:function(e,t,i){"use strict";i.d(t,{Create:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,r.isPlainObject)(t)?(0,r.attr)(n,t):i=t),i&&(0,r.asArray)(i).forEach(e=>o.Dom.append(n,(0,r.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(o.Dom.safeRemove(n),t){let e=(0,r.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&o.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){"use strict";i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){"use strict";i.d(t,{autobind:function(){return o}});var n=i(23282);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var n=i(78213),o=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;let i,n=null!=(i=this.od)?i:document,r=c.get(n);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(n,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(82758),o=i(80568);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},81577:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),o=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){"use strict";i.d(t,{derive:function(){return o}});var n=i(23282);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){"use strict";i.d(t,{hook:function(){return r}});var n=i(23282),o=i(89890);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var n=i(91907),o=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},65478:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return d.nonenumerable},persistent:function(){return u.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),d=i(31589),u=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){"use strict";i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},53213:function(e,t,i){"use strict";i.d(t,{persistent:function(){return r}});var n=i(78213),o=i(39955);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var n=i(78213),o=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){"use strict";i.d(t,{watch:function(){return u}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),d=i(37790);function u(e,t){return(i,u)=>{var h;if(!(0,s.isFunction)(i[u]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[u](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,c),r||n.events.on(o,c),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,u=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${u.join(".")}`,c);let p=(0,d.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${u.join(".")}`,c),c(l,i,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){"use strict";i.d(t,{Dom:function(){return y}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),d=i(86068),u=i(49055),h=i(38837),p=i(29960),f=i(41180),m=i(86583),g=i(89890),v=i(37790);let b=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o,r=e;i.s.save();do o=!1,(n=r.nextSibling)&&!y.isBlock(n)&&!y.isTag(n,"br")&&(o=!0,r=n);while(o);return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let o=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o,r=e,s=e;i.s.save();do o=!1,(n=r.previousSibling)&&!y.isBlock(n)&&(o=!0,r=n);while(o);do o=!1,(n=s.nextSibling)&&!y.isBlock(n)&&(o=!0,s=n);while(o);return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)if((n=n.parentNode)===t)return;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&y.isElement(e)&&y.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,u.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,n.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,d.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,d.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let n=i?"lastChild":"firstChild",o=i?"previousSibling":"nextSibling",r=null==e?void 0:e[n];if(!r)return null;do{if(t(r))return r;let i=r[n]||r[o];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);i=null==r?void 0:r[o]}r=i}while(r);return null}static prev(e,t,i,n=!0){return y.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return y.find(e,t,i,!0,n)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let n=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return i?y.prev(e,n,o):y.next(e,n,o)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=i?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let n=y.sibling(e,t);for(;n&&!i(n);)n=y.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,u.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,u.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,n.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,p.attr)(e,n.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(b,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(n.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){"use strict";i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(2748),o=i(70071)},70071:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return s}});var n=i(45219),o=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class d{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,o){let c,d,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,d=e,h=t,p=i):(c=e,d=t,h=i,p=o),!((0,a.isString)(d)||(0,a.isStringArray)(d))||0===d.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,d,h,p)}),this;let f=c,m=this.__getStore(f),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return u(f)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(d,(e,t)=>{var i,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==p?void 0:p.top),u(f)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(o=null==p?void 0:p.capture)&&o;v.options=t,f.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(f,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=i):(o=e,r=t,s=i,l=n);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,i){let n,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,o=e,l=t):(n=e,o=t,l=i),(0,r.isArray)(n))return n.forEach(e=>{this.off(e,o,l)}),this;let d=n,h=this.__getStore(d);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(d,"."+e)}),this.__removeStoreFromSubject(d),this;let p=e=>{var t;u(d)&&(d.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(d,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let n=h.indexOf(e,t,l);!1!==n&&(p(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,n=(0,a.isString)(e)?e:t;if("string"!=typeof n)throw(0,l.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,d=(0,a.isString)(e)?[t,...i]:i;if(!u(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&u(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(u(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...d),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||u(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...d]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function u(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return n}});class n{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let n;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{n=e(...t)})),n}constructor(){this.__map=new Map}}},57012:function(e,t,i){"use strict";let n=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,n])},3827:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(98220),o=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){"use strict";i.d(t,{observable:function(){return c}});var n=i(68345),o=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,o)=>((0,n.isArray)(t)?t.map(e=>c(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),d=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>d(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},u=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){d(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&u(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];d(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&u(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return u(e),e}},15738:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return s}});var n=i(4510),o=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,o.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return y},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var n=i(19306),o=i(70799),r=i(39955),s=i(12475),a=i(29960),l=i(41180),c=i(80568),d=i(41876),u=i(57012),h=i(82758),p=i(22732);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new d.PluginSystem({getContainer:y}),b=new WeakMap;function y(e,t,i="div",l=!1){let d,u=(0,o.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",h=b.get(e)||{},f=u+i,m=(0,r.isViewObject)(e)?e:e.j;if(!h[f]){let t=m.c;if(d=w(m.o,m.container,e.od.body),l&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;d=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(o,"nonce",m.o.nonce),o.classList.add(`jodit_theme_${m.o.theme||"default"}`),p.Dom.append(d,o),h[f]=o,e.hookStatus("beforeDestruct",()=>{m.events.off(o),p.Dom.safeRemove(o),delete h[f],Object.keys(h).length&&b.delete(e)}),b.set(e,h),m.events.fire("getContainer",o)}return h[f].classList.remove("jodit_theme_default","jodit_theme_dark"),h[f].classList.add(`jodit_theme_${m.o.theme||"default"}`),h[f]}function w(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?r:i}let _=u.eventEmitter;i.d(t,["eventEmitter",0,_,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,v])},29999:function(e,t,i){"use strict";var n=i(68345);i.d(t,["asArray",0,e=>(0,n.isArray)(e)?e:[e]])},76855:function(e,t,i){"use strict";i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(29999),o=i(46559),r=i(4510)},46559:function(e,t,i){"use strict";function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return n}})},4510:function(e,t,i){"use strict";var n=i(70722),o=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(82758);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return u.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return u.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return u.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return _.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return S.isValidName},isViewObject:function(){return x.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return E.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),d=i(29673),u=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),w=i(14773),_=i(42320),k=i(70799),C=i(26049),S=i(37508),x=i(39955),I=i(86068),E=i(52742)},12045:function(e,t,i){"use strict";function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return n}})},68345:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}i.d(t,{isArray:function(){return n}})},87612:function(e,t,i){"use strict";function n(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return n}})},59292:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(67462);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.d(t,{isFunction:function(){return n}})},29673:function(e,t,i){"use strict";function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return n}})},58487:function(e,t,i){"use strict";var n=i(70799);i.d(t,["isHTML",0,e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},60132:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(2748),o=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var n=i(29807),o=i(70799);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){"use strict";var n=i(70799);i.d(t,["isLicense",0,e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},78116:function(e,t,i){"use strict";i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){"use strict";function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}i.d(t,{isNativeFunction:function(){return n}})},84767:function(e,t,i){"use strict";function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return n}})},29807:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return o}});var n=i(70799);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){"use strict";i.d(t,{isPlainObject:function(){return o}});var n=i(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){"use strict";function n(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return n}})},42320:function(e,t,i){"use strict";i.d(t,{isSet:function(){return o}});var n=i(23282);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},70799:function(e,t,i){"use strict";i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(68345);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},26049:function(e,t,i){"use strict";i.d(t,{isURL:function(){return o}});var n=i(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){"use strict";function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return n}})},39955:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){"use strict";function n(e){return null==e}i.d(t,{isVoid:function(){return n}})},52742:function(e,t,i){"use strict";function n(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return n}})},35278:function(e,t,i){"use strict";i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},32574:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return d}});var n=i(82758),o=i(2748),r=i(49055),s=i(29960),a=i(41180),l=i(76078);function c(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function d(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let d=n.globalDocument.createElement("iframe");(0,a.css)(d,"display","none"),o.Dom.append(n.globalDocument.body,d);let u="";try{let t=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,l.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=c(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),u=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(d)}return u&&(e=u),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return l}});var n=i(82758),o=i(2748),r=i(4510),s=i(49055),a=i(29960);function l(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return o}});var n=i(82758);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(32574),o=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003)},45971:function(e,t,i){"use strict";function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return n}})},86518:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var n=i(2748),o=i(43555),r=i(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let l=[];for(let t of(n.Dom.each(e,e=>{n.Dom.isElement(e)&&n.Dom.up(e.parentNode,a)&&l.push(e)}),l))n.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==n.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&n.Dom.safeRemove(t);let c=null!=(i=t.removeEventAttributes)?i:t.removeOnError,d=e=>{if(n.Dom.isElement(e)&&(c&&function(e){if(!n.Dom.isElement(e))return;let t=[];for(let i=0;i<e.attributes.length;i++)e.attributes[i].name.toLowerCase().startsWith("on")&&t.push(e.attributes[i].name);for(let i of t)(0,r.attrRaw)(e,i,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};d(e),n.Dom.each(e,d)}let c=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["iframe","frame","object","embed"]);function u(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&d.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let s=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,o.attr)(e,"href");if(t&&l&&u(l,a)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),s=!0),c)){let i=(0,r.attrRaw)(e,t);i&&u(i,a)&&((0,o.attr)(e,t,null),s=!0)}return s}},91003:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,c=null,d=!1){let u=i.createElement("div");(0,o.isString)(t)?u.innerHTML=t:n.Dom.append(u,t);let h=[];return n.Dom.each(u,e=>{n.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(c&&n.Dom.isTag(t,c)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,l)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,c,d)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,a))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,s))return;let o=t.nextSibling;!(n.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&n.Dom.before(o,i.createTextNode(d?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(u.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),o=i(70799),r=i(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},21537:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return u.$$},CamelCaseToKebabCase:function(){return d.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return u.ConnectionError},LimitedStack:function(){return u.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return u.OptionsError},UNSAFE_PROTO_KEYS:function(){return u.UNSAFE_PROTO_KEYS},abort:function(){return u.abort},alignElement:function(){return u.alignElement},alreadyLoadedList:function(){return u.alreadyLoadedList},appendScriptAsync:function(){return u.appendScriptAsync},appendStyleAsync:function(){return u.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},assert:function(){return u.assert},attr:function(){return u.attr},attrRaw:function(){return u.attrRaw},browser:function(){return u.browser},buildQuery:function(){return u.buildQuery},call:function(){return u.call},callPromise:function(){return u.callPromise},callThis:function(){return u.callThis},camelCase:function(){return d.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return u.clearAlign},clearCenterAlign:function(){return u.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return u.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return u.completeUrl},connection:function(){return u.connection},convertMediaUrlToVideoEmbed:function(){return u.convertMediaUrlToVideoEmbed},css:function(){return u.css},cssInline:function(){return u.cssInline},cssPath:function(){return u.cssPath},ctrlKey:function(){return u.ctrlKey},dataBind:function(){return u.dataBind},defaultLanguage:function(){return u.defaultLanguage},error:function(){return u.error},fastClone:function(){return u.fastClone},fuzzySearchIndex:function(){return d.fuzzySearchIndex},get:function(){return u.get},getClassName:function(){return u.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return u.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return u.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return u.getXPathByElement},hAlignElement:function(){return u.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return u.humanSizeToBytes},i18n:function(){return d.i18n},inView:function(){return u.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return u.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return u.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return d.kebabCase},keepNames:function(){return u.keepNames},keys:function(){return u.keys},loadImage:function(){return u.loadImage},loadNext:function(){return u.loadNext},loadNextStyle:function(){return u.loadNextStyle},markAsAtomic:function(){return u.markAsAtomic},markDeprecated:function(){return u.markDeprecated},markOwner:function(){return u.markOwner},memorizeExec:function(){return u.memorizeExec},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},options:function(){return u.options},parseQuery:function(){return u.parseQuery},position:function(){return c.position},previewBox:function(){return u.previewBox},refs:function(){return u.refs},reset:function(){return u.reset},resolveElement:function(){return u.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return u.scrollIntoViewIfNeeded},set:function(){return u.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return n.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var n=i(76855),o=i(91898),r=i(27613),s=i(35278),a=i(75275),l=i(71521),c=i(56175),d=i(59007),u=i(43555)},71521:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var n=i(21224),o=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),d=i(37406)},21224:function(e,t,i){"use strict";var n=i(35278),o=i(49055);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},3760:function(e,t,i){"use strict";i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var n=i(29807),o=i(86068),r=i(35278),s=i(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(82758),o=i(49055);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,i){"use strict";i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},9992:function(e,t,i){"use strict";var n=i(49055);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,i){"use strict";i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},46334:function(e,t,i){"use strict";i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,i){"use strict";i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,i){"use strict";i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,i){"use strict";function n(e){var t,i;let n=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;n&&o;){if(""!==(i=n.getComputedStyle(o)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}return{x:0,y:0}}i.d(t,{getFixedPositionOffset:function(){return n}})},16442:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(82758),o=i(2748),r=i(43555)},56175:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var n=i(44506),o=i(35224),r=i(16442),s=i(81630),a=i(21496),l=i(81284),c=i(5700)},81630:function(e,t,i){"use strict";i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},21496:function(e,t,i){"use strict";i.d(t,{size:function(){return o}});var n=i(27613);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){"use strict";let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=i.defaultView||i.parentWindow,u=d.pageYOffset||c.scrollTop||l.scrollTop,h=d.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=n(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+u-p,a=r.left+h-f;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,n])},5700:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,c+=n}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(19306)},87058:function(e,t,i){"use strict";i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},67477:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(82758);function o(e,t,i=0,r=1){let s=0,a,l=-1,c=0,d=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,d=0,-1===l&&(l=a)):s>0&&(d>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,c=0,d=0,a--):(d++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){"use strict";i.d(t,{i18n:function(){return c}});var n=i(82758),o=i(70799),r=i(36409),s=i(43555),a=i(6441);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==i?void 0:i.debugLanguage),d={},u=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),f=t=>{if(!t)return;if((0,o.isString)(t[e]))return u(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return u(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return u(t[n])};void 0!==n.lang[p]?d=n.lang[p]:c||(d=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(d)||(!c&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?u(n.lang.en[e]):c?"{"+e+"}":(n.IS_PROD,u(e)))}i.d(t,["sprintf",0,l])},59007:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(87058),o=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){"use strict";i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},67462:function(e,t,i){"use strict";function n(e,t={}){if("object"!=typeof e)return String(e);let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return n}})},49055:function(e,t,i){"use strict";i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(82758);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,i){"use strict";function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return n}})},25726:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return c},clearAlign:function(){return a},hAlignElement:function(){return s}});var n=i(22732),o=i(29960),r=i(41180);function s(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function a(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,o.attr)(e,"style")||"").trim().length||(0,o.attr)(e,"style",null))})}let l=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t)){a(t);let i=l.get(e.toLowerCase());i&&(0,r.css)(t,"textAlign",i)}}},63799:function(e,t,i){"use strict";i.d(t,{loadNext:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?c(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?d(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}}});var n=i(2748),o=i(70799),r=i(29960),s=i(66292);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let n=e(t,i);return a.set(i,n),n},c=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",i),n.Dom.append(e.od.body,a)})),d=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?n.Dom.append(e.o.shadowRoot,a):n.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,d])},38837:function(e,t,i){"use strict";i.d(t,{assert:function(){return o}});class n extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new n(`Assertion failed: ${t}`)}},29960:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let c=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,`data${c}`);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var n=i(23282),o=i(72430),r=i(70799),s=i(12475),a=i(41180);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},97639:function(e,t,i){"use strict";i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},44710:function(e,t,i){"use strict";var n=i(72430);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,o])},66292:function(e,t,i){"use strict";var n=i(82758);i.d(t,["completeUrl",0,e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,d.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return u},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{if((0,c.isUnsafeProtoKey)(n))return;let r=i[n],s=t[n];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[n]=r})}},ConfigProto:function(){return function e(t,i,d=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let u=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==u.presets[t.preset]){let e=u.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,d+1);return}if(0!==d&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var n=i(68345),o=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(69175),d=i(37790);function u(e){return(0,d.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){"use strict";var n=i(82758),o=i(26049),r=i(82501);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let n=s.pathname.split("/").filter(Boolean),o=n.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=n[o],l=n[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let n=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,i){"use strict";i.d(t,{css:function(){return l},cssInline:function(){return c}});var n=i(87612),o=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,n.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let d=(0,a.kebabCase)(t),u=e.ownerDocument||document,h=!!u&&(u.defaultView||u.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:h&&!c&&(f=h.getComputedStyle(e).getPropertyValue(d)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,r.normalizeCssValue)(t,f)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},15456:function(e,t,i){"use strict";i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},86583:function(e,t,i){"use strict";var n=i(39955);let o=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},96325:function(e,t,i){"use strict";var n=i(82758),o=i(70799);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(32880);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},93661:function(e,t,i){"use strict";function n(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return n}})},86397:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},32880:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(93661),o=i(86397),r=i(57865)},57865:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},89890:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(82760),o=i(32880)},97735:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(67462);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},80568:function(e,t,i){"use strict";var n=i(23282);let o=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,o])},94643:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var n=i(70799),o=i(86068);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,i){"use strict";i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},43555:function(e,t,i){"use strict";i.d(t,{$$:function(){return E.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return _.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return D.call},callPromise:function(){return D.callPromise},callThis:function(){return D.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return k.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return u.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return E.cssPath},ctrlKey:function(){return p.ctrlKey},dataBind:function(){return f.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return D.getDataTransfer},getPropertyDescriptor:function(){return D.getPropertyDescriptor},getXPathByElement:function(){return E.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return _.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return D.keys},loadImage:function(){return D.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return k.markDeprecated},markOwner:function(){return D.markOwner},memorizeExec:function(){return D.memorizeExec},options:function(){return g.options},parseQuery:function(){return C.parseQuery},previewBox:function(){return S.previewBox},refs:function(){return E.refs},reset:function(){return x.reset},resolveElement:function(){return E.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var n=i(25726),o=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),d=i(68934),u=i(55877),h=i(41180),p=i(15456),f=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),w=i(38420),_=i(69175),k=i(95942),C=i(82501),S=i(11628),x=i(58844),I=i(26395),E=i(76078),T=i(3703),j=i(50535),D=i(37790)},69175:function(e,t,i){"use strict";i.d(t,{isUnsafeProtoKey:function(){return o}});let n=["__proto__","constructor","prototype"];function o(e){return -1!==n.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,n])},95942:function(e,t,i){"use strict";i.d(t,{markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}i.d(t,["cns",0,n])},82501:function(e,t,i){"use strict";i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}])},11628:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return a}});var n=i(2748),o=i(70799),r=i(29960),s=i(41180);function a(e,t,i="px",l=null){let c=[],d=function(e,t){let i=[],o=[];n.Dom.each(e.editor,e=>{n.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();n.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),n.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let d=e.c.div("jodit__preview-box jodit-context");l&&n.Dom.append(l,d),(0,s.css)(d,{position:"relative",padding:16});let u=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),n.Dom.append(d,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),d=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),a=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(d,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{n.Dom.append(t,e)}catch(e){}}else try{n.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(d,u),e.e.fire("afterPreviewBox",d),[d,()=>{c.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},58844:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var n=i(82758),o=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=n.globalDocument.createElement("iframe");try{if(i.src="about:blank",n.globalDocument.body.appendChild(i),!i.contentWindow)return null;let t=(0,r.get)(e,i.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){"use strict";i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(2748);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(r+s>(n=(o=o.parentNode).getBoundingClientRect()).bottom+1&&r>n.top||r+s<=n.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(n.Dom.isHTMLElement(e)&&!o(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}o(e,t,i)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,i){"use strict";i.d(t,{$$:function(){return u},resolveElement:function(){return p}});var n=i(82758),o=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let d=1;function u(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+ ++d;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t);e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},3703:function(e,t,i){"use strict";i.d(t,{set:function(){return l}});var n=i(68345),o=i(29807),r=i(72430),s=i(70799),a=i(69175);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,n.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return n}});class n{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,i){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return d},callThis:function(){return l},getPropertyDescriptor:function(){return u},markOwner:function(){return c}});var n=i(14773),o=i(86068),r=i(29960),s=i(86583);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function d(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function u(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:i},n)=>{var r;let a=`button${i.command}`,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},31359:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var n=i(82758),o=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return d},loadStyle:function(){return l}});var n=i(82758),o=i(12475),r=i(63799),s=i(89672);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,o.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function d(e,t,i,o){try{let n=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));n.length&&n.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},48591:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var n=i(82758),o=i(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},89672:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return o}});var n=i(12475);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return n.Plugin}});var n=i(20356);i(41876)},41876:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return p}});var n=i(82758),o=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),d=i(14041),u=i(48591),h=i(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},p=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([n,o])=>{if(i.has(n)||p.has(n))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(n)}t=!0;let a=(0,u.makeInstance)(e,o);if(!a){p.set(n,null),m.delete(n);return}(0,c.init)(e,n,o,a,p,m,this.opts.getContainer),f[n]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,a.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),n.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,i)};o.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return a}});var n=i(91907),o=i(65478),r=i(19306),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return d}});var n=i(8884),o=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class d{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof o.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(n,o)=>{var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,n(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=d,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,n)},e.onreadystatechange=()=>{var i,n;null==(n=(i=this.options).onProgress)||n.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?d():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:u,data:h,method:p}=i;e.open(p,u,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=await f.call(this)),f&&e.setRequestHeader&&Object.keys(f).forEach(t=>{e.setRequestHeader(t,f[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}async *stream(){var e;this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest(),o=0,r="",l=[],c=null,d=!1,u=null,h=()=>{if(c){let e=c;c=null,e()}},p=e=>{var i;let n=t.responseText;r+=n.substring(o),o=n.length;let s=r.split("\n\n");for(let t of(r=e?"":null!=(i=s.pop())?i:"",s)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split("\n"))t.startsWith("data: ")?i.push(t.slice(6)):t.startsWith("data:")&&i.push(t.slice(5));i.length&&l.push(i.join("\n"))}h()};t.onprogress=()=>p(!1),t.onload=()=>{p(!0),d=!0,this.__isFulfilled=!0,h()},t.onerror=()=>{u=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,h()},t.onabort=()=>{u=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,h()},t.withCredentials=null!=(e=i.withCredentials)&&e;let{url:f,data:m,method:g}=n;t.open(g,f,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:v}=i;(0,s.isFunction)(v)&&(v=await v.call(this)),v&&t.setRequestHeader&&Object.keys(v).forEach(e=>{t.setRequestHeader(e,v[e])}),t.send(m?this.__buildParams(m):void 0);try{for(;;)if(l.length>0)yield l.shift();else if(d)break;else await new Promise(e=>{c=e})}finally{this.__isFulfilled||this.abort()}if(u)throw u}prepareRequest(){if(!this.o.url)throw a.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,s.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let n=(0,s.parseQuery)(e.substring(i));e=e.substring(0,i)+"?"+(0,s.buildQuery)({...n,...t})}else e+="?"+(0,s.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return d.log.splice(100),d.log.push(n),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=l.Config.prototype.defaultAjaxOptions){this.__async=new n.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,s.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}d.log=[],function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([r.autobind],d.prototype,"destruct",null)},57459:function(e,t,i){"use strict";i(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return n.Ajax},Response:function(){return o.Response}});var n=i(54079),o=i(98582)},98582:function(e,t,i){"use strict";i.d(t,{Response:function(){return n}});class n{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(e,t,i,n){this.request=e,this.status=t,this.statusText=i,this.body=n}}},45124:function(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var n=i(82758),o=i(2748),r=i(26716);function s(e,t,i,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,n.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,i,n,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=e=>i?e.lastChild:s(e),n=t(e);for(;n;){if(n&&o.Dom.isText(n)){e=n;break}n=t(n)}}}if(e&&!n&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t));t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(43463)},26716:function(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:function(){return r}});var n=i(82758),o=i(2748);function r(e,t,i){let r=o.Dom.findSibling(t,i),s=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,n.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?o.Dom.append(r,t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},43463:function(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var n=i(2748);function o(e,t,i){let o=e;for(;o&&o!==i&&!(n.Dom.findSibling(o,t)||n.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?n.Dom.before(o,e):n.Dom.after(o,e))}},59242:function(e,t,i){"use strict";i.d(t,{CHANGE:function(){return"change"},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return n.Selection},UNWRAP:function(){return"unwrap"},WRAP:function(){return"wrap"}});var n=i(79348),o=i(25639),r=i(77361)},79348:function(e,t,i){"use strict";i.d(t,{Selection:function(){return p}});var n=i(82758),o=i(65478),r=i(2748),s=i(21537),a=i(27613),l=i(38837),c=i(43463),d=i(25639),u=i(45124),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class p{get j(){return this.jodit}errorNode(e){if(!r.Dom.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,a.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this;if(!(null==e?void 0:e.rangeCount))return!1;for(let t=0;t<e.rangeCount;t+=1)if(!r.Dom.isOrContains(this.area,e.getRangeAt(t).commonAncestorContainer))return!1;return!0}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1){let i=e.getRangeAt(t);r.Dom.isOrContains(this.area,i.commonAncestorContainer)&&(i.deleteContents(),i.collapse(!0))}}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!r.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){var i,n,o,s;try{let a=this.createRange(),l=null==(n=(i=this.doc).caretPositionFromPoint)?void 0:n.call(i,e,t),c=l?null:null==(s=(o=this.doc).caretRangeFromPoint)?void 0:s.call(o,e,t);if(l)a.setStart(l.offsetNode,l.offset);else{if(!c)return!1;a.setStart(c.startContainer,c.startOffset)}if(!r.Dom.isOrContains(this.area,a.startContainer))return!1;return a.collapse(!0),this.removeMarkers(),this.selectRange(a),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+n.MARKER_CLASS+"]",this.area)}removeMarkers(){r.Dom.safeRemove(...this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let o=this.j.createInside.span();return o.id=n.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,s.css)(o,{lineHeight:"0",display:"none"}),r.Dom.markTemporary(o),(0,s.attr)(o,"data-"+n.MARKER_CLASS,e?"start":"end"),r.Dom.append(o,this.j.createInside.text(n.INVISIBLE_SPACE)),i&&r.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){var e,t;let i=this.markers,o=new Map(i.map(e=>[e.id,e])),a=[],l=!1;for(let c=0;c<i.length;c+=1){let d=i[c];if("start"!==(0,s.attr)(d,"data-"+n.MARKER_CLASS))continue;l||(l="true"===(0,s.attr)(d,"data-selection-backward"));let u=(0,s.attr)(d,"data-selection-end"),h=u?o.get(u):void 0;!u&&i[c+1]&&"end"===(0,s.attr)(i[c+1],"data-"+n.MARKER_CLASS)&&(h=i[c+1]);let p=this.createRange();if(h)p.setStartAfter(d),p.setEndBefore(h);else{let i=d.previousSibling;r.Dom.isText(i)?p.setStart(i,null!=(t=null==(e=i.nodeValue)?void 0:e.length)?t:0):p.setStartBefore(d),p.collapse(!0)}a.push(p)}r.Dom.safeRemove(...i),a.length&&this.__selectRanges(a,l)}__isBackward(){let e=this.sel;return!!(e&&1===e.rangeCount&&!e.isCollapsed&&e.anchorNode===e.getRangeAt(0).endContainer&&e.anchorOffset===e.getRangeAt(0).endOffset)}__ranges(){let e=this.sel;return e?Array.from({length:e.rangeCount},(t,i)=>e.getRangeAt(i).cloneRange()):[]}fakes(){if(!this.isInsideArea)return[];let e=this.__isBackward(),t=this.__ranges(),i=t.map(e=>{let t=e.collapsed,i=e.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();r.Dom.safeInsertNode(i,n),e.setStartBefore(n);let o=[n];if(t)e.collapse(!0);else{let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();r.Dom.safeInsertNode(t,i),e.setEndAfter(i),o.push(i)}return o});return this.__fakeSelections.set(i[0][0],{pairs:i,backward:e}),this.__selectRanges(t,e),i[0]}restoreFakes(e){var t,i,n;if(!e.length)return;let o=this.__fakeSelections.get(e[0]);if(this.__fakeSelections.delete(e[0]),this.j.isInDestruct)return;let s=[];for(let a of null!=(t=null==o?void 0:o.pairs)?t:[e]){let e=a.filter(e=>e.isConnected&&r.Dom.isOrContains(this.area,e,!0));if(!e.length)continue;let[t,o]=e,l=this.createRange();for(let s of(l.setStartAfter(t),o?l.setEndBefore(o):l.collapse(!0),e))(null==(i=s.parentNode)?void 0:i.firstChild)!==(null==(n=s.parentNode)?void 0:n.lastChild)&&r.Dom.safeRemove(s);s.push(l)}s.length&&this.__selectRanges(s,null==o?void 0:o.backward)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=this.__isBackward(),n=[],o=t.rangeCount,a=[];for(let e=0;o>e;e+=1)if(a[e]=t.getRangeAt(e),!r.Dom.isOrContains(this.area,a[e].commonAncestorContainer))return[];for(let e=0;o>e;e+=1)if(a[e].collapsed){let t=this.marker(!0,a[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,a[e]),r=this.marker(!1,a[e]);o>1&&(0,s.attr)(t,"data-selection-end",r.id),i&&(0,s.attr)(t,"data-selection-backward","true"),n[e]={startId:t.id,endId:r.id,collapsed:!1,startMarker:t.outerHTML,endMarker:r.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){let i=this.area.querySelector("#"+n[e].startId);if(i){if(n[e].collapsed)a[e].setStartAfter(i),a[e].collapse(!0);else if(a[e].setStartBefore(i),n[e].endId){let t=this.area.querySelector("#"+n[e].endId);t&&a[e].setEndAfter(t)}try{t.addRange(a[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){var t,i;if(!this.isFocused()){let n=(0,s.getScrollParent)(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.Dom.isOrContains(this.area,l.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null==(i=null==(t=this.j)?void 0:t.events)||i.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==n.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),o=i.startContainer,s=!1;if(!r.Dom.isOrContains(this.area,o))return null;if(r.Dom.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let n=(0,u.findCorrectCurrentNode)(o,i,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);o=n.node,s=n.rightMode}return o&&r.Dom.isOrContains(this.area,o)?o:null}insertNode(e,t=!0,i=!0){this.errorNode(e),this.j.e.fire("safeHTML",e);let n=r.Dom.isFragment(e)?e.lastChild:e;if(!n||this.j.isInDestruct)return;!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),!(n=r.Dom.isFragment(e)?e.lastChild:e)||this.j.isInDestruct)return;if(o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):r.Dom.append(this.area,e),[()=>null==i?void 0:i.previousSibling,()=>null==i?void 0:i.previousSibling,()=>{var e;return null==(e=null==i?void 0:i.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&r.Dom.isEmptyTextNode(t)&&r.Dom.safeRemove(t)})}else r.Dom.append(this.area,e);let i=e=>{if(r.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(r.Dom.isFragment(e)?n&&i(n):i(e)),this.j.o.scrollToPastedContent&&(0,s.scrollIntoViewIfNeeded)(null!=n?n:e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",r.Dom.isFragment(e)?n:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),n=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?r.Dom.append(i,e):i.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",i.innerHTML)||i.lastChild&&(r.Dom.moveContent(i,n),this.insertNode(n,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,i=null){let n=(0,a.isString)(e)?this.j.createInside.element("img"):e;if((0,a.isString)(e)&&(0,s.attr)(n,"src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,s.attr)(n,"width",e)}t&&"object"==typeof t&&(0,s.css)(n,t);let o=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(0,s.css)(n,{width:"",height:""}),n.removeEventListener("load",o)};this.j.e.on(n,"load",o),n.complete&&o(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){let t=new Set;for(let i of this.__ranges())r.Dom.isOrContains(this.area,i.commonAncestorContainer)&&this.__eachRange(i,i=>{t.has(i)||(t.add(i),e(i))})}__eachRange(e,t){var i;let o=e.commonAncestorContainer;r.Dom.isHTMLElement(o)||(o=o.parentElement);let l=[],c=e.startOffset,d=o.childNodes.length,u=e.startContainer===this.area?o.childNodes[c<d?c:d-1]:e.startContainer,h=e.endContainer===this.area?o.childNodes[e.endOffset-1]:e.endContainer;r.Dom.isText(u)&&u===e.startContainer&&e.startOffset===(null==(i=u.nodeValue)?void 0:i.length)&&u.nextSibling&&(u=u.nextSibling),r.Dom.isText(h)&&h===e.endContainer&&0===e.endOffset&&h.previousSibling&&(h=h.previousSibling);let p=e=>{!e||e===o||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||l.push(e)};p(u),u!==h&&r.Dom.isOrContains(o,u,!0)&&r.Dom.find(u,e=>(p(e),e===h||e&&e.contains&&e.contains(h)),o,!0,!1);let f=e=>{if(r.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(e.childNodes).forEach(f);if(r.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(n.INVISIBLE_SPACE);r.Dom.append(e,t),e=t}t(e)}};0===l.length&&(r.Dom.isEmptyTextNode(u)&&l.push(u),(null==u?void 0:u.firstChild)&&l.push(u.firstChild)),l.forEach(f)}cursorInTheEdge(e,t,i=null){let n=!e,o=this.sel,s=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(!s)return null;let a=e?s.startContainer:s.endContainer,l=e?s.startOffset:s.endOffset;if(null!=i||(i=a),!r.Dom.isOrContains(t,a)||!r.Dom.isOrContains(t,i))return null;let c=e=>!!(e&&!r.Dom.isTag(e,"br")&&!r.Dom.isEmptyTextNode(e)&&!r.Dom.isTemporary(e)&&!(r.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(r.Dom.isText(a)){if((0,u.cursorInTheEdgeOfString)(a,l,e,n))return!1}else{let e=a.childNodes,t=n?e.length:l;for(let i=n?l:0;t>i;i+=1)if(c(e[i]))return!1}let d=i;for(;d&&d!==t;){let t=r.Dom.sibling(d,e);if(!t){d=d.parentNode;continue}if(c(d=t))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var i,n;if(this.errorNode(e),!r.Dom.isOrContains(this.area,e,!0))throw(0,s.error)("Node element must be in editor");let o=this.createRange(),a=null;return r.Dom.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!=(n=null==(i=e.nodeValue)?void 0:i.length)?n:0):(a=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),r.Dom.safeInsertNode(o,a),o.selectNode(a)),o.collapse(t),this.selectRange(o),a}setCursorIn(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let i=this.createRange(),o=e,a=e;do{if(r.Dom.isText(o)||r.Dom.isTag(o,n.INSEPARABLE_TAGS))break;a=o,o=t?o.firstChild:o.lastChild}while(o);if(!o){let e=this.j.createInside.text(n.INVISIBLE_SPACE);r.Dom.isTag(a,n.INSEPARABLE_TAGS)?o=a:(r.Dom.append(a,e),a=e)}let l=o||a;return r.Dom.isTag(l,n.INSEPARABLE_TAGS)?t||r.Dom.isTag(l,"br")?i.setStartBefore(l):i.setEndAfter(l):i.selectNodeContents(l),i.collapse(t),this.selectRange(i),a}selectRange(e,t=!0){return this.__selectRanges([e],!1,t)}__selectRanges(e,t=!1,i=!0){let n=this.sel;if(i&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),e.forEach(e=>n.addRange(e)),t&&1===e.length)){let t=e[0];n.setBaseAndExtent(t.endContainer,t.endOffset,t.startContainer,t.startOffset)}return this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let i=this.createRange();return i[t||e===this.area?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let e=this.j.createInside.div();return this.__ranges().forEach(t=>r.Dom.append(e,t.cloneContents())),e.innerHTML}return""}__wrapSelectionFragments(e){this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(r.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,i,n,o;let{endContainer:s,endOffset:a}=e;r.Dom.isText(s)&&a>0&&a<(null!=(i=null==(t=s.nodeValue)?void 0:t.length)?i:0)&&s.splitText(a);let{startContainer:l,startOffset:c}=e;if(r.Dom.isText(l)&&c>0&&c<(null!=(o=null==(n=l.nodeValue)?void 0:n.length)?o:0)){let t=l.splitText(c);e.setStart(t,0)}this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var i,n;let o=t?e.startContainer:e.endContainer;if(!r.Dom.isText(o))return;let s=t?e.startOffset:e.endOffset,a=null!=(n=null==(i=o.nodeValue)?void 0:i.length)?n:0;0===s?t?e.setStartBefore(o):e.setEndBefore(o):s>=a&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t,i=this.createRange()){let n=[];return(0,s.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e,i)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t,i))}),n}__isFullyContained(e,t,i){return i.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,i)&&e.compareBoundaryPoints(Range.END_TO_END,i)>=0}__wrapSelectionRuns(e){let t=[],i=[],n=()=>{i.length&&(t.push(this.__wrapRunInFont(i)),i=[])};return e.forEach(e=>{r.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(n(),t.push(...this.__wrapSelectionRuns((0,s.toArray)(e.childNodes)))):(i.length&&i[i.length-1].parentNode!==e.parentNode&&n(),i.push(e))}),n(),t}__isOrContainsBlock(e){return!!r.Dom.isBlock(e)||(0,s.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[i]=e;return r.Dom.before(i,t),e.forEach(e=>r.Dom.append(t,e)),t}*wrapInTagGen(e){var t;if((null==(t=this.sel)?void 0:t.rangeCount)&&!this.isInsideArea)return;if(this.isCollapsed()){let t=this.jodit.createInside.element("font",n.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&r.Dom.append(t,e[0]);try{yield t}finally{r.Dom.unwrap(t)}return}let i=this.__ranges().flatMap(e=>this.__wrapSelectionFragments(e));try{for(let e of i){if(this.j.isInDestruct||!r.Dom.isOrContains(this.area,e,!0))continue;let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,a.isMarker)(t)){r.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&r.Dom.before(e,t),i&&(0,a.isMarker)(i)&&r.Dom.after(e,i),yield e,r.Dom.unwrap(e)}}finally{i.forEach(e=>r.Dom.unwrap(e))}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,a.isMarker)(i.firstChild))continue;(0,a.isFunction)(e)?e(i):t.push(r.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(r.Dom.unwrap(i),r.Dom.isEmpty(e)&&r.Dom.unwrap(e))}return t}commitStyle(e){(0,l.assert)((0,s.size)(e)>0,"Need to pass at least one option"),new d.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed()||!this.isInsideArea||!r.Dom.isOrContains(this.area,e,!0)||!r.Dom.isOrContains(e,this.range.startContainer)||t&&!r.Dom.isOrContains(e,t,!0))return null;let i=this.createRange(),o=this.range;i.setStartBefore(e);let s=this.cursorOnTheRight(e,t),a=this.cursorOnTheLeft(e,t),c=this.j.createInside.element("br"),d=this.j.createInside.fake(),u=d.cloneNode();try{if(s||a){t?r.Dom.before(t,c):r.Dom.safeInsertNode(o,c);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(r.Dom.isTag(i,"br")||r.Dom.isEmptyTextNode(i)))r.Dom.safeRemove(i);else break;i=e}};e(c,e=>e.nextSibling),e(c,e=>e.previousSibling),r.Dom.after(c,u),r.Dom.before(c,d),s?(i.setEndBefore(c),o.setEndBefore(c)):(i.setEndAfter(c),o.setEndAfter(c))}else i.setEnd(o.startContainer,o.startOffset);let h=i.extractContents(),p=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,l.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),r.Dom.before(e,h),!t&&s&&(null==c?void 0:c.parentNode)){let e=this.createRange();e.setStartBefore(c),this.selectRange(e)}}catch(e){if(!n.IS_PROD)throw e}let f=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&r.Dom.append(t,c.cloneNode())};f(d),f(u)}finally{r.Dom.safeRemove(d),r.Dom.safeRemove(u)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed()||!this.isInsideArea)return this;let e=this.__isBackward(),t=this.__ranges().map(e=>this.__expandRange(e));return this.__selectRanges(t,e),this}__expandRange(e){let t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return e;let i=t=>{let i=this.j.createInside.fake(),n=e.cloneRange();return n.collapse(t),r.Dom.safeInsertNode(n,i),(0,c.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),o=i(!1);t.setStartAfter(n),t.setEndBefore(o);let a=r.Dom.findSibling(n,!1),l=r.Dom.findSibling(o,!0);if(a!==l){let e=r.Dom.isElement(a)&&r.Dom.isOrContains(a,o),i=!e&&r.Dom.isElement(l)&&r.Dom.isOrContains(l,n);if(e||i){let i=e?a:l,s=i;for(;r.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?r.Dom.isOrContains(i,o):r.Dom.isOrContains(i,n))&&(s=i);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(r.Dom.safeRemove(n,o),t.collapsed)throw(0,s.error)("Selection is collapsed");return t}constructor(e){this.jodit=e,this.__fakeSelections=new WeakMap,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([o.autobind],p.prototype,"createRange",null),h([o.autobind],p.prototype,"focus",null),h([o.autobind],p.prototype,"setCursorAfter",null),h([o.autobind],p.prototype,"setCursorBefore",null),h([o.autobind],p.prototype,"setCursorIn",null)},32526:function(e,t,i){"use strict";i.d(t,{extractSelectedPart:function(){return s}});var n=i(2748),o=i(78116),r=i(37790);function s(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),a(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),a(e,n,!1)}function a(e,t,i){let o=t.extractContents();n.Dom.isEmpty(o)&&o.firstChild&&n.Dom.unwrap(o.firstChild),e.parentNode&&(0,r.call)(i?n.Dom.before:n.Dom.after,e,o)}},49996:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return s}});var n=i(82758),o=i(70799),r=i(38837);class s{setState(e){(0,r.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,r.assert)(e&&e!==t,"Action should return new value"),(0,r.assert)((0,o.isString)(e.next),"Value should contain the next state"),(0,r.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),n.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},23738:function(e,t,i){"use strict";i.d(t,{getSuitChild:function(){return s}});var n=i(2748),o=i(29136),r=i(97380);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},44602:function(e,t,i){"use strict";i.d(t,{getSuitParent:function(){return function e(t,i,s){var a;let{parentNode:l}=i;return l===s||!n.Dom.isHTMLElement(l)||n.Dom.next(i,o.isNormalNode,l)||n.Dom.prev(i,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(l)?e(t,l,s):n.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!n.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!n.Dom.isBlock(l)?e(t,l,s):null}}});var n=i(2748),o=i(29136),r=i(97380)},22030:function(e,t,i){"use strict";i.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return d}});var n=i(82758),o=i(2748),r=i(86068),s=i(3760),a=i(38837),l=i(41180);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,r.isVoid)(n)&&""!==n&&!(0,r.isVoid)(t[i])&&(0,s.normalizeCssValue)(i,t[i]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function d(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(d(e,{color:"red"}),"Style test"),(0,a.assert)(!d(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!d(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return d.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return u.unwrapChildren},wrap:function(){return h.wrap}});var n=i(32526),o=i(49996),r=i(23738),s=i(44602);i(22030);var a=i(64291);i(29136),i(94466);var l=i(97380),c=i(20199);i(82515);var d=i(44253),u=i(75882),h=i(19263);i(6980)},64291:function(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:function(){return o}});var n=i(2748);function o(e,t){return!!n.Dom.closest(e,["style","script"],t)}},29136:function(e,t,i){"use strict";i.d(t,{isNormalNode:function(){return r}});var n=i(2748),o=i(78116);function r(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},94466:function(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var n=i(21496),o=i(43555),r=i(38837),s=i(29960),a=i(22030);function l(e,t){return!(0,n.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>{var n;if("class"===i||"className"===i)return(null!=(n=String(t[i]).match(/[^\t\n\f\r ]+/g))?n:[]).every(t=>e.classList.contains(t));if("style"===i)return(0,a.hasSameStyle)(e,t[i]);let r=t[i];return(0,o.attr)(e,i)===(null==r?r:String(r))}))}function c(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},97380:function(e,t,i){"use strict";i.d(t,{isSuitElement:function(){return s},suitableClosest:function(){return a}});var n=i(2748),o=i(22030),r=i(29136);function s(e,t,i,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:c,elementIsDefault:d,options:u}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,c);return!!(h&&!(d&&i)||(null==(l=u.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,u.attributes.style):(0,o.hasSameStyleKeys)(t,u.attributes.style))&&!e.elementIsList)||!h&&!i&&d&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}},20199:function(e,t,i){"use strict";i.d(t,{toggleOrderedList:function(){return c}});var n=i(2748),o=i(38837),r=i(32526),s=i(44253),a=i(77361),l=i(82515);function c(e,t,i,n){if(!t)return n;let o=t.parentElement;if(!o)return n;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,o);if(void 0!==r)return r;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if("unwrap"!==n){let r="change"===(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0);if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=d(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return c(a.REPLACE,r,e),a.REPLACE}}return c("unwrap",d("unwrap",o,t,i,e),e),"unwrap"}function d(e,t,i,s,l){let c=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return c?((0,o.assert)(n.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,r.extractSelectedPart)(t,i,s),(0,o.assert)(n.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),n.Dom.unwrap(i.parentElement),e===a.REPLACE)?i:n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside)}},82515:function(e,t,i){"use strict";i.d(t,{wrapList:function(){return a}});var n=i(2748),o=i(94466),r=i(44253),s=i(77361);function a(e,t,i){let a=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:n.Dom.replace(t,"li",i.createInside),c=l.previousElementSibling,d=l.nextElementSibling,u=n.Dom.isTag(c,e.element)?c:null;return null!=u||(u=n.Dom.isTag(d,e.element)?d:null),n.Dom.isList(u)&&(0,o.isSameAttributes)(u,e.options.attributes)||(u=i.createInside.element(e.element),(0,r.toggleAttributes)(e,u,i,s.INITIAL),n.Dom.before(l,u)),c===u?n.Dom.append(u,l):n.Dom.prepend(u,l),n.Dom.isTag(u.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(u,u.nextElementSibling)&&(n.Dom.append(u,Array.from(u.nextElementSibling.childNodes)),n.Dom.safeRemove(u.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,"wrap",u,e),u}},44253:function(e,t,i){"use strict";i.d(t,{toggleAttributes:function(){return f}});var n=i(82758),o=i(2748),r=i(580),s=i(27613),a=i(3760),l=i(21496),c=i(43555),d=i(41180),u=i(86583),h=i(77361);let p="toggleAttributes";function f(e,t,i,m,g=!1){var v;if(!g&&e.isApplied(t,p))return m;g||e.setApplied(t,p);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(e=>{var p,f;let v=b[e];switch(e){case"style":p=m,(0,c.assert)((0,s.isPlainObject)(v)&&(0,l.size)(v),"Style must be an object"),Object.keys(v).forEach(e=>{let s=(0,d.cssInline)(t,e),l=v[e];if(""!==s||null!=l){let h,f,m,v;if(null==l||""===l){s&&(g||(0,d.css)(t,e,null),p="change");return}if(h=function(e){var t;if(void 0!==(0,u.dataBind)(e,"shadowRoot"))return(0,u.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),s=n.globalDocument.createElement("iframe");(0,d.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,c.attr)(s,"src","about:blank"),o.Dom.append(i,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,u.dataBind)(e,"shadowRoot",l),l}(i),f=i.create.element("div"),(0,d.css)(f,"color",(0,d.css)(i.editor,"color")),m=i.create.element(t.tagName.toLowerCase()),(0,c.attr)(m,"style",(0,c.attr)(t,"style")),o.Dom.append(f,m),o.Dom.append(h,f),v=(0,d.css)(m,e),o.Dom.safeRemove(f),v===(0,a.normalizeCssValue)(e,l)){if(!s)return;g||(0,d.css)(t,e,null),p="unset";return}p="change",g||(0,d.css)(t,e,l)}}),m=p;break;case"className":case"class":m=function(e,t,i,n,o){var r;(0,c.assert)((0,s.isString)(t),"Class name must be a string");let a=null!=(r=t.match(/[^\t\n\f\r ]+/g))?r:[];if(!a.length)return n;let l=e.e.fire.bind(e.e,`${h._PREFIX}AfterToggleAttribute`);return a.every(e=>i.classList.contains(e))?(n="unset",o||(i.classList.remove(...a),0===i.classList.length&&(0,c.attr)(i,"class",null),l(n,i,"class",(0,c.attr)(i,"class")))):(n="change",o||(i.classList.add(...a),l(n,i,"class",t))),n}(i,v,t,m,g);break;default:let y;f=m,(0,c.assert)((0,s.isString)(v)||(0,s.isNumber)(v)||(0,s.isBoolean)(v)||null==v,"Attribute value must be a string or number or boolean or null"),y=i.e.fire.bind(i.e,`${h._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,e)===(null==v?v:String(v))?(g||(0,c.attr)(t,e,null),f="unset",g||y(f,t,e,v)):(f="change",g||((0,c.attr)(t,e,v),y(f,t,e,v))),m=f}}),!g&&(null==b?void 0:b.style)?(v=m,!(0,c.attr)(t,"style")&&((0,c.attr)(t,"style",null),t.attributes.length||t.tagName.toLowerCase()!==e.defaultTag||(o.Dom.unwrap(t),v="unwrap")),v):m}},75882:function(e,t,i){"use strict";i.d(t,{unwrapChildren:function(){return a}});var n=i(2748),o=i(43555),r=i(22030),s=i(97380);function a(e,t){var i;let a,l=[],c=[],d=null==(i=e.options.attributes)?void 0:i.style,u=Object.keys(null!=d?d:{}),h={};u.forEach(e=>{h[e]=null});let p=t=>{(0,o.css)(t,h),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),!t.attributes.length&&n.Dom.isTag(t,e.element)&&l.push(t)};for(let i of n.Dom.eachGen(t))n.Dom.isContentEditable(i,t)&&((0,s.isSuitElement)(e,i,!0)&&(!d||(0,r.hasSameStyleKeys)(i,d))?(void 0===a&&(a=!0),d?c.push(()=>p(i)):l.push(i)):d&&n.Dom.isHTMLElement(i)&&u.some(e=>""!==(0,o.css)(i,e,!0))?(void 0===a&&(a=!1),c.push(()=>p(i))):n.Dom.isEmptyTextNode(i)||void 0!==a||(a=!1));return c.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},6980:function(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:function(){return r}});var n=i(2748),o=i(78116);function r(e,t,i){let r=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!n.Dom.isTag(a,i.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!n.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!n.Dom.isBlock(a)););return s},l=a(t),c=a(t,"nextSibling"),d=i.s.createRange();d.setStartBefore(l),d.setEndAfter(c);let u=d.extractContents(),h=s.element(e.element);return n.Dom.append(h,u),n.Dom.safeInsertNode(d,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&n.Dom.append(h,s.element("br")),h}},19263:function(e,t,i){"use strict";i.d(t,{wrap:function(){return l}});var n=i(22732),o=i(29960),r=i(41180),s=i(82515),a=i(6980);function l(e,t,i){var l,d,u;let h=(l=e,d=t,u=i,l.elementIsBlock?n.Dom.up(d,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,c)&&!Array.from(e.childNodes).some(e=>n.Dom.isBlock(e)),u.editor)||(0,a.wrapUnwrappedText)(l,d,u):((0,o.attr)(d,"size",null),d));if(e.elementIsList)return(0,s.wrapList)(e,h,i);let p=n.Dom.replace(h,e.element,i.createInside,!0);return e.elementIsBlock&&((0,r.css)(p,"fontSize",null),(0,r.css)(p,"fontWeight",null),(0,o.attr)(p,"style")||(0,o.attr)(p,"style",null)),p}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"]);i.d(t,["WRAP_NODES",0,c])},83632:function(e,t,i){"use strict";i.d(t,{ApplyStyle:function(){return s}});var n=i(63687),o=i(77361),r=i(55307);function s(e,t){var i;let{s:s,editor:a}=e;null==(i=a.firstChild)||i.normalize();let l=s.fakes(),c=s.isCollapsed(),d=o.INITIAL;try{for(let i of s.wrapInTagGen(l)){let o={collapsed:c,mode:d,element:i,next:r.states.START,jodit:e,style:t},s=new n.FiniteStateMachine(r.states.START,r.transactions);for(;!e.isInDestruct&&s.getState()!==r.states.END;)o=s.dispatch("exec",o);d=o.mode}}finally{s.restoreFakes(l)}}},25639:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return a}});var n=i(82758),o=i(87058),r=i(77361),s=i(83632);class a{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&!!i[t]}setApplied(e,t){var i;let n=null!=(i=this.__applyMap.get(e))?i:{};n[t]=!0,this.__applyMap.set(e,n)}get elementIsList(){return!!(this.options.element&&n.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&n.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,o.camelCase)(r._PREFIX+"_"+i),t[i])}),(0,s.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,o.camelCase)(r._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.isInDestruct||(e.synchronizeValues(),e.e.fire("afterCommitStyle",this))}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,i){"use strict";i.d(t,["INITIAL",0,"initial","REPLACE",0,"replace","_PREFIX",0,"commitStyle"])},55307:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(38837),s=i(63687),a=i(77361);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(e){let{element:t,jodit:i,style:n,mode:r,collapsed:a}=e;if(!o.Dom.isContentEditable(t,i.editor)||(0,s.isInsideInvisibleElement)(t,i.editor)||!a&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let c=(0,s.getSuitParent)(n,t,i.editor)||(0,s.getSuitChild)(n,t);if(c)return{...e,next:l.ELEMENT,element:c};let d=(0,s.suitableClosest)(n,t,i.editor);return n.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:"unwrap"!==r?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==a.INITIAL&&"unwrap"!==r&&r!==a.REPLACE)return{...e,next:l.END};let s=o.Dom.closest(t,"li",i.editor);return s&&o.Dom.closest(t,n.LIST_TAGS,i.editor)?{...e,element:s,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec(e){return{...e,mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END}}},[l.EXTRACT]:{exec(e){var t;let{element:i,jodit:n,style:a}=e,c=(0,s.suitableClosest)(a,i,n.editor);return((0,r.assert)(c,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(c))?{...e,next:l.WRAP}:(a.elementIsBlock||(0,s.extractSelectedPart)(c,i,n),{...e,element:c,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,s.unwrapChildren)(i,t)?{...e,mode:"unwrap",next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:n}=e,o=(0,s.wrap)(n,t,i);return{...e,next:n.elementIsList?l.END:l.CHANGE,mode:"wrap",element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:n}=e;return(0,s.toggleAttributes)(t,i,n,a.INITIAL,!0)!==a.INITIAL?{...e,next:l.CHANGE}:o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,next:l.END}}},[l.CHANGE]:{exec(e){let{style:t,element:i,jodit:n,mode:r}=e,a=(0,s.toggleAttributes)(t,i,n,e.mode);return"wrap"!==r&&"unset"===a&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:a,next:l.END}}},[l.UNWRAP]:{exec(e){let{element:t,style:i,jodit:n}=e;if(t.attributes.length&&o.Dom.isTag(t,i.element))return{...e,next:l.REPLACE_DEFAULT};let r=t.parentElement;return i.elementIsBlock&&!i.elementIsDefault&&r&&r!==n.editor&&o.Dom.isBlock(r)&&!o.Dom.isTag(r,s.WRAP_NODES)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(t),{...e,mode:"unwrap",next:l.END})}},[l.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:a.REPLACE,next:l.END}}},[l.END]:{exec(e){return e}}};i.d(t,["states",0,l,"transactions",0,c])},97333:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return a}});var n=i(87058),o=i(2621),r=i(65638),s=i(21162);class a{async set(e,t){let i=await this.provider;return await i.set((0,n.camelCase)(this.prefix+e),t),this}async delete(e){let t=await this.provider;return await t.delete((0,n.camelCase)(this.prefix+e)),this}async get(e){return(await this.provider).get((0,n.camelCase)(this.prefix+e))}async exists(e){return(await this.provider).exists((0,n.camelCase)(this.prefix+e))}async clear(){let e=await this.provider;return await e.clear(),this}async close(){let e=await this.provider;"close"in e&&"function"==typeof e.close&&await e.close()}static makeStorage(e=!1,t,i){let n,l=null==i?void 0:i.defaultProvider;return null!=l?new a(Promise.resolve(n="local"===l?(0,r.canUsePersistentStorage)("localStorage")?new r.LocalStorageProvider("Jodit_"+(t||"")):new s.MemoryStorageProvider:"memory"===l?new s.MemoryStorageProvider:l),t):("localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(n=new r.LocalStorageProvider("Jodit_"+(t||""),e)):("indexedDB"===e||!0===e)&&(n=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider("Jodit_"+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),n||(n=new s.MemoryStorageProvider),new a(Promise.resolve(n),t))}constructor(e,t){this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}}},2621:function(e,t,i){"use strict";i.d(t,{IndexedDBProvider:function(){return o},canUseIndexedDB:function(){return a},clearUseIndexedDBCache:function(){return s}});var n=i(82758);class o{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{t(i.error)},i.onsuccess=()=>{e(i.result)},i.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(e,t){try{let i=(await this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),n=t(i);return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}async set(e,t){try{await this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){n.IS_PROD}return this}async delete(e){try{await this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}async get(e){try{return await this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}async exists(e){try{let t=await this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}async clear(){try{await this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(e){}this.dbPromise=null}}async keys(){try{let e=await this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=await e),e.map(e=>String(e))}catch(e){return[]}}async values(){try{let e=await this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=await e),e}catch(e){return[]}}async entries(){try{let[e,t]=await Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let r=null;function s(){r=null}async function a(){if(null!=r)return r;try{if("u"<typeof indexedDB)return r=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return r=await new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return r=!1,!1}}},65638:function(e,t,i){"use strict";i.d(t,{LocalStorageProvider:function(){return n}});class n{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};n[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let i=JSON.parse(t);delete i[e],this.storage.setItem(this.rootKey,JSON.stringify(i))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}}i.d(t,["canUsePersistentStorage",0,(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let i="___Jodit___"+Math.random().toString(),n="sessionStorage"===e?sessionStorage:localStorage;try{n.setItem(i,"1");let o="1"===n.getItem(i);return n.removeItem(i),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}])},21162:function(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:function(){return n}});class n{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return n.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return"Jodit_"},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var n=i(97333),o=i(2621),r=i(65638),s=i(21162),a=i(6700)},6700:function(e,t,i){"use strict";i.d(t,{Storage:function(){return a}});var n=i(87058),o=i(65638),r=i(21162);let s="Jodit_";class a{set(e,t){return this.provider.set((0,n.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,n.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,n.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,n.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,o.canUsePersistentStorage)(e)&&(i=new o.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,o.canUsePersistentStorage)("localStorage")&&(i=new o.LocalStorageProvider(s+(t||""))),i||(i=new r.MemoryStorageProvider),new a(i,t)}constructor(e,t){this.provider=e,this.prefix=s,t&&(this.prefix+=t)}}},70231:function(e,t,i){"use strict";i.d(t,{Dlgs:function(){return a}});var n=i(580),o=i(27613),r=i(37790),s=i(638);class a{dlg(e){let t=(0,n.getPopupViewRoot)(this.o,this.container,this.od.body),i=new s.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...e});return(0,r.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,n,o){return e=l(e,this),t=l(t,this),n=l(n,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,o)}alert(e,t,i,n){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,i){"use strict";i.d(t,{Elms:function(){return o}});var n=i(2748);class o{getElm(e){let t=this.getFullElName(e);return n.Dom.first(this.container,e=>n.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),i=[];return n.Dom.each(this.container,e=>{n.Dom.isHTMLElement(e)&&e.classList.contains(t)&&i.push(e)}),i}}},34176:function(e,t,i){"use strict";i.d(t,{Mods:function(){return o}});var n=i(86068);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},10830:function(e,t,i){"use strict";i.d(t,{Button:function(){return v},UIButton:function(){return g}});var n=i(78213),o=i(33433),r=i(87325),s=i(37133),a=i(2748),l=i(23282),c=i(70799),d=i(38837),u=i(29960),h=i(48538),p=i(12153),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),g=class e extends h.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,d.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,d.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,u.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,u.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,r.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,u.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,u.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,u.attr)(this.container,"data-ref",this.state.name),(0,u.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,u.attr)(this.container,"title",e),(0,u.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,u.attr)(this.container,"aria-label",t),(0,u.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,u.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=p.Icon.makeIcon(this.j,this.state.icon);t&&a.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return a.Dom.append(t,i),a.Dom.append(t,n),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),this.isButton=!0,this.state=m(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(n.STATUSES.ready,()=>{this.setState(t)})}};function v(e,t,i,n){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),i&&(o.state.text=i)):o.setState(t),o}f([o.cache],g.prototype,"text",null),f([o.cache],g.prototype,"icon",null),f([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),f([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),f([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),f([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),f([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),f([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),f([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),f([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),f([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),f([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),f([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),f([o.cacheHTML],g.prototype,"createContainer",null),f([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=f([r.component],g),i.d(t,["UIButtonState",0,m])},71916:function(e,t,i){"use strict";i.d(t,{UIButtonGroup:function(){return l}});var n=i(87325),o=i(2748),r=i(38837),s=i(10830),a=i(62405);let l=class e extends a.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){return function(){var e,t,i={94668:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Plus icon with document/context --\x3e <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg>'},86428:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},75966:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},83207:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M9 18l6-6-6-6"/> </svg>'},99293:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect x="9" y="2" width="6" height="12" rx="3"></rect> <path d="M5 10v1a7 7 0 0 0 14 0v-1" fill="none"></path> <line x1="12" y1="18" x2="12" y2="22"></line> <line x1="8" y1="22" x2="16" y2="22"></line> </svg>'},99219:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg>'},63674:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/> </svg>'},4133:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M13 2L4 14h6l-1 8 9-12h-6z"/> </svg>'},68583:function(e){e.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},34586:function(e){e.exports='<svg stroke="black" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class="st0" d="M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z"/> <path class="st0" d="M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z"/> <line class="st0" x1="18" x2="18" y1="13" y2="19"/> <line class="st0" x1="21" x2="18" y1="13" y2="17"/> <line class="st0" x1="21" x2="19" y1="19" y2="16"/> </svg>'},91729:function(e){e.exports='<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.799 11.449V12H7.764V11.449L8.695 11.487C9.075 11.525 9.265 11.373 9.265 11.031C9.265 10.8157 9.20167 10.5687 9.075 10.29L8.144 8.048H3.717L2.843 10.176C2.66567 10.5687 2.577 10.8853 2.577 11.126C2.577 11.392 2.71633 11.5187 2.995 11.506L3.907 11.449V12H0.62V11.449L1.114 11.487H1.19C1.44333 11.487 1.65233 11.3667 1.817 11.126C2.007 10.8473 2.197 10.48 2.387 10.024L6.358 0.466999H6.852L10.861 10.062C11.0383 10.518 11.222 10.879 11.412 11.145C11.5893 11.373 11.811 11.487 12.077 11.487H12.172L12.799 11.449ZM3.945 7.516H7.916L5.921 2.728L3.945 7.516Z" fill="black"/> <path d="M18.45 11.61V12H16.32C16.33 11.93 16.34 11.84 16.35 11.73C16.37 11.61 16.38 11.515 16.38 11.445L16.41 10.86C16.19 11.29 15.905 11.6 15.555 11.79C15.215 11.98 14.805 12.075 14.325 12.075C13.695 12.075 13.215 11.935 12.885 11.655C12.565 11.365 12.405 10.94 12.405 10.38C12.405 9.61 12.725 9.045 13.365 8.685C14.015 8.315 15.03 8.13 16.41 8.13V7.26C16.41 6.79 16.3 6.455 16.08 6.255C15.86 6.055 15.505 5.955 15.015 5.955C14.255 5.955 13.875 6.165 13.875 6.585C13.875 6.665 13.895 6.76 13.935 6.87C13.985 6.97 14.01 7.065 14.01 7.155C14.01 7.325 13.955 7.455 13.845 7.545C13.735 7.625 13.595 7.665 13.425 7.665C13.215 7.665 13.05 7.6 12.93 7.47C12.82 7.34 12.765 7.17 12.765 6.96C12.765 6.54 12.985 6.2 13.425 5.94C13.865 5.68 14.455 5.55 15.195 5.55C16.865 5.55 17.7 6.255 17.7 7.665V11.355C17.7 11.545 17.765 11.64 17.895 11.64L18.45 11.61ZM14.775 11.535C15.215 11.535 15.59 11.355 15.9 10.995C16.21 10.625 16.38 10.15 16.41 9.57V8.535C15.47 8.535 14.795 8.675 14.385 8.955C13.975 9.225 13.77 9.66 13.77 10.26C13.77 10.68 13.855 11 14.025 11.22C14.205 11.43 14.455 11.535 14.775 11.535Z" fill="black"/> </svg>'},46995:function(e){e.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},83556:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M2 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> <path d="M17 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0" fill="none" /> <path d="M9.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5" fill="none" /> <path d="M19.5 15l3 6" fill="none" /> <path d="M19.5 21l3 -6" fill="none" /> </svg>'},4872:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" fill="none" /> <path d="M17 18h2" fill="none" /> <path d="M20 15h-3v6" fill="none" /> <path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> </svg>'},53121:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},7307:function(e){e.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},24928:function(e){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},96910:function(e){e.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},81122:function(e){e.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},49377:function(e){e.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},46425:function(e){e.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},86820:function(e){e.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},36576:function(e){e.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27622:function(e){e.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},89687:function(e){e.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},25088:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},67008:function(e){e.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},63643:function(e){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},27926:function(e){e.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},10690:function(e){e.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},91997:function(e){e.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},11699:function(e){e.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},27222:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},17405:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},75689:function(e){e.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},78879:function(e){e.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78955:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},18993:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},11373:function(e){e.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},74922:function(e){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(e){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},46146:function(e){"u">typeof self&&self,e.exports=function(){var e=[function(e,t,i){"use strict";var n=i(3);function o(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,i;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(i=t.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.PALETTE_MATERIAL_CHROME=t.PALETTE_MATERIAL_500=t.COLOR_NAMES=t.getLuminance=t.intToRgb=t.rgbToInt=t.rgbToHsv=t.rgbToHsl=t.hslToRgb=t.rgbToHex=t.parseColor=t.parseColorToHsla=t.parseColorToHsl=t.parseColorToRgba=t.parseColorToRgb=t.from=t.createPicker=void 0;var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},r=i(2),s=l(i(0)),a=l(i(4));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function d(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var u="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,h="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,p={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},f="COLOR",m="RGBA_USER",g="HSLA_USER";function v(e,t,i){return e?e instanceof HTMLElement?e:e instanceof NodeList?e[0]:"string"==typeof e?document.querySelector(e):e.jquery?e.get(0):i?t:null:t}function b(e){var t=e.getContext("2d"),i=+e.width,n=+e.height,s=t.createLinearGradient(1,1,1,n-1);return s.addColorStop(0,"white"),s.addColorStop(1,"black"),{setHue:function(e){var o=t.createLinearGradient(1,0,i-1,0);o.addColorStop(0,"hsla("+e+", 100%, 50%, 0)"),o.addColorStop(1,"hsla("+e+", 100%, 50%, 1)"),t.fillStyle=s,t.fillRect(0,0,i,n),t.fillStyle=o,t.globalCompositeOperation="multiply",t.fillRect(0,0,i,n),t.globalCompositeOperation="source-over"},grabColor:function(e,i){return t.getImageData(e,i,1,1).data},findColor:function(e,t,s){var a=o((0,r.rgbToHsv)(e,t,s),3);return[a[1]*i,n-a[2]*n]}}}function y(e,t,i){return null===e?t:/^\s*$/.test(e)?i:!!/true|yes|1/i.test(e)||!/false|no|0/i.test(e)&&t}function w(e,t,i){if(null===e)return t;if(/^\s*$/.test(e))return i;var n=e.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:t}var _=function(){function e(t,i){if(c(this,e),i?(t=v(t),this.options=Object.assign({},p,i)):t&&(0,s.default)(t)?(this.options=Object.assign({},p,t),t=v(this.options.attachTo)):(this.options=Object.assign({},p),t=v((0,r.nvl)(t,this.options.attachTo))),!t)throw Error("Container not found: "+this.options.attachTo);!function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(t.hasAttribute(i+"show-hsl")&&(e.showHSL=y(t.getAttribute(i+"show-hsl"),p.showHSL,!0)),t.hasAttribute(i+"show-rgb")&&(e.showRGB=y(t.getAttribute(i+"show-rgb"),p.showRGB,!0)),t.hasAttribute(i+"show-hex")&&(e.showHEX=y(t.getAttribute(i+"show-hex"),p.showHEX,!0)),t.hasAttribute(i+"show-alpha")&&(e.showAlpha=y(t.getAttribute(i+"show-alpha"),p.showAlpha,!0)),t.hasAttribute(i+"palette-editable")&&(e.paletteEditable=y(t.getAttribute(i+"palette-editable"),p.paletteEditable,!0)),t.hasAttribute(i+"sl-bar-size")&&(e.slBarSize=w(t.getAttribute(i+"sl-bar-size"),p.slBarSize,[232,150])),t.hasAttribute(i+"hue-bar-size")&&(e.hueBarSize=w(t.getAttribute(i+"hue-bar-size"),p.hueBarSize,[150,11]),e.alphaBarSize=e.hueBarSize),t.hasAttribute(i+"palette")){var n=t.getAttribute(i+"palette");switch(n){case"PALETTE_MATERIAL_500":e.palette=r.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":e.palette=r.PALETTE_MATERIAL_CHROME;break;default:e.palette=n.split(/[;|]/)}}t.hasAttribute(i+"color")&&(e.color=t.getAttribute(i+"color"))}(this.options,t),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=a.default,t.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=b(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var o=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(o),this.slBarHelper=b(o),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(f,this.options.color)}return n(e,[{key:"setupHueCanvas",value:function(e){var t=this;e.width=this.options.hueBarSize[0],e.height=this.options.hueBarSize[1];for(var i=e.getContext("2d"),n=i.createLinearGradient(0,0,this.options.hueBarSize[0],0),o=0;o<=1;o+=1/360)n.addColorStop(o,"hsl("+360*o+", 100%, 50%)");i.fillStyle=n,i.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var s=function(i){var n=(0,r.limit)(i.clientX-e.getBoundingClientRect().left,0,t.options.hueBarSize[0]),o=Math.round(360*n/t.options.hueBarSize[0]);t.huePointer.style.left=n-7+"px",t.onValueChanged("H",o)},a=function e(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",function(e){s(e),document.addEventListener("mousemove",s),document.addEventListener("mouseup",a)})}},{key:"setupSlCanvas",value:function(e){var t=this;e.width=this.options.slBarSize[0],e.height=this.options.slBarSize[1];var i=function(i){var n=(0,r.limit)(i.clientX-e.getBoundingClientRect().left,0,t.options.slBarSize[0]-1),o=(0,r.limit)(i.clientY-e.getBoundingClientRect().top,0,t.options.slBarSize[1]-1),s=t.slBarHelper.grabColor(n,o);t.slPointer.style.left=n-7+"px",t.slPointer.style.top=o-7+"px",t.onValueChanged("RGB",s)},n=function e(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",function(e){i(e),document.addEventListener("mousemove",i),document.addEventListener("mouseup",n)})}},{key:"setupAlphaCanvas",value:function(e){var t=this;e.width=this.options.alphaBarSize[0],e.height=this.options.alphaBarSize[1];var i=e.getContext("2d"),n=i.createLinearGradient(0,0,e.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),i.fillStyle=n,i.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var o=function(i){var n=(0,r.limit)(i.clientX-e.getBoundingClientRect().left,0,t.options.alphaBarSize[0]),o=+(n/t.options.alphaBarSize[0]).toFixed(2);t.alphaPointer.style.left=n-7+"px",t.onValueChanged("ALPHA",o)},s=function e(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)};e.addEventListener("mousedown",function(e){o(e),document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)})}},{key:"setupInput",value:function(e){var t=this,i=+e.min,n=+e.max,o=e.getAttribute("nameref");e.hasAttribute("select-on-focus")&&e.addEventListener("focus",function(){e.select()}),"text"===e.type?e.addEventListener("change",function(){t.onValueChanged(o,e.value)}):((u||h)&&e.addEventListener("keydown",function(s){"Up"===s.key?(e.value=(0,r.limit)(+e.value+1,i,n),t.onValueChanged(o,e.value),s.returnValue=!1):"Down"===s.key&&(e.value=(0,r.limit)(e.value-1,i,n),t.onValueChanged(o,e.value),s.returnValue=!1)}),e.addEventListener("change",function(){var s=+e.value;t.onValueChanged(o,(0,r.limit)(s,i,n))}))}},{key:"setupClipboard",value:function(e){var t=this;e.title="click to copy",e.addEventListener("click",function(){e.value=(0,r.parseColor)([t.R,t.G,t.B,t.A],"hexcss4"),e.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(e){var t=this,i="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=r.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=r.PALETTE_MATERIAL_CHROME;break;default:n=(0,r.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var o=function(i,n,o){var r=e.querySelector('.a-color-picker-palette-color[data-color="'+i+'"]')||document.createElement("div");r.className="a-color-picker-palette-color",r.style.backgroundColor=i,r.setAttribute("data-color",i),r.title=i,e.insertBefore(r,n),t.palette[i]=!0,o&&t.onPaletteColorAdd(i)},s=function(i,n){i?(e.removeChild(i),t.palette[i.getAttribute("data-color")]=!1,n&&t.onPaletteColorRemove(i.getAttribute("data-color"))):(e.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(t){e.removeChild(t)}),Object.keys(t.palette).forEach(function(e){t.palette[e]=!1}),n&&t.onPaletteColorRemove())};if(n.map(function(e){return(0,r.parseColor)(e,i?"rgbcss4":"hex")}).filter(function(e){return!!e}).forEach(function(e){return o(e)}),this.options.paletteEditable){var a=document.createElement("div");a.className="a-color-picker-palette-color a-color-picker-palette-add",a.innerHTML="+",e.appendChild(a),e.addEventListener("click",function(e){/a-color-picker-palette-add/.test(e.target.className)?e.shiftKey?s(null,!0):o(i?(0,r.parseColor)([t.R,t.G,t.B,t.A],"rgbcss4"):(0,r.rgbToHex)(t.R,t.G,t.B),e.target,!0):/a-color-picker-palette-color/.test(e.target.className)&&(e.shiftKey?s(e.target,!0):t.onValueChanged(f,e.target.getAttribute("data-color")))})}else e.addEventListener("click",function(e){/a-color-picker-palette-color/.test(e.target.className)&&t.onValueChanged(f,e.target.getAttribute("data-color"))})}else e.style.display="none"}},{key:"updatePalette",value:function(e){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=e,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(e){case"H":this.H=t;var n=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=n[0],this.G=n[1],this.B=n[2],this.slBarHelper.setHue(t),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=t;var s=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=s[0],this.G=s[1],this.B=s[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=t;var a=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=t;var l=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=l[0],this.S=l[1],this.L=l[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=t;var c=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=t;var d=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var u=o(t,3);this.R=u[0],this.G=u[1],this.B=u[2];var h=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=h[0],this.S=h[1],this.L=h[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case m:var p=o(t,4);this.R=p[0],this.G=p[1],this.B=p[2],this.A=p[3];var v=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case g:var b=o(t,4);this.H=b[0],this.S=b[1],this.L=b[2],this.A=b[3];var y=o((0,r.hslToRgb)(this.H,this.S,this.L),3);this.R=y[0],this.G=y[1],this.B=y[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var w=o((0,r.cssColorToRgb)(t)||[this.R,this.G,this.B],3);this.R=w[0],this.G=w[1],this.B=w[2];var _=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=_[0],this.S=_[1],this.L=_[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case f:var k=o((0,r.parseColor)(t,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var C=o((0,r.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=t}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",i&&i.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(e){this.oncoloradd&&this.oncoloradd(e)}},{key:"onPaletteColorRemove",value:function(e){this.oncolorremove&&this.oncolorremove(e)}},{key:"updateInputHSL",value:function(e,t,i){this.options.showHSL&&(this.inputH.value=e,this.inputS.value=t,this.inputL.value=i)}},{key:"updateInputRGB",value:function(e,t,i){this.options.showRGB&&(this.inputR.value=e,this.inputG.value=t,this.inputB.value=i)}},{key:"updateInputRGBHEX",value:function(e,t,i){this.options.showHEX&&(this.inputRGBHEX.value=(0,r.rgbToHex)(e,t,i))}},{key:"updatePointerH",value:function(e){var t=this.options.hueBarSize[0]*e/360;this.huePointer.style.left=t-7+"px"}},{key:"updatePointerSL",value:function(e,t,i){var n=o((0,r.hslToRgb)(e,t,i),3),s=n[0],a=n[1],l=n[2],c=o(this.slBarHelper.findColor(s,a,l),2),d=c[0],u=c[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=u-7+"px")}},{key:"updatePointerA",value:function(e){if(this.options.showAlpha){var t=this.options.alphaBarSize[0]*e;this.alphaPointer.style.left=t-7+"px"}}}]),e}(),k=function(){function e(t){c(this,e),this.name=t,this.listeners=[]}return n(e,[{key:"on",value:function(e){e&&this.listeners.push(e)}},{key:"off",value:function(e){this.listeners=e?this.listeners.filter(function(t){return t!==e}):[]}},{key:"emit",value:function(e,t){for(var i=this.listeners.slice(0),n=0;n<i.length;n++)i[n].apply(t,e)}}]),e}();function C(e,t){var i=new _(e,t),n={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},s=!0,a={},l={get element(){return i.element},get rgb(){return[i.R,i.G,i.B]},set rgb(e){var t=o(e,3),n=t[0],s=t[1],a=t[2],l=[(0,r.limit)(n,0,255),(0,r.limit)(s,0,255),(0,r.limit)(a,0,255)];n=l[0],s=l[1],a=l[2],i.onValueChanged(m,[n,s,a,1])},get hsl(){return[i.H,i.S,i.L]},set hsl(e){var t=o(e,3),n=t[0],s=t[1],a=t[2],l=[(0,r.limit)(n,0,360),(0,r.limit)(s,0,100),(0,r.limit)(a,0,100)];n=l[0],s=l[1],a=l[2],i.onValueChanged(g,[n,s,a,1])},get rgbhex(){return this.all.hex},get rgba(){return[i.R,i.G,i.B,i.A]},set rgba(e){var t=o(e,4),n=t[0],s=t[1],a=t[2],l=t[3],c=[(0,r.limit)(n,0,255),(0,r.limit)(s,0,255),(0,r.limit)(a,0,255),(0,r.limit)(l,0,1)];n=c[0],s=c[1],a=c[2],l=c[3],i.onValueChanged(m,[n,s,a,l])},get hsla(){return[i.H,i.S,i.L,i.A]},set hsla(e){var t=o(e,4),n=t[0],s=t[1],a=t[2],l=t[3],c=[(0,r.limit)(n,0,360),(0,r.limit)(s,0,100),(0,r.limit)(a,0,100),(0,r.limit)(l,0,1)];n=c[0],s=c[1],a=c[2],l=c[3],i.onValueChanged(g,[n,s,a,l])},get color(){return this.all.toString()},set color(e){i.onValueChanged(f,e)},setColor:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.onValueChanged(f,e,{silent:t})},get all(){if(s){var e=[i.R,i.G,i.B,i.A],t=i.A<1?"rgba("+i.R+","+i.G+","+i.B+","+i.A+")":r.rgbToHex.apply(void 0,e);(a=(0,r.parseColor)(e,a)).toString=function(){return t},s=!1}return Object.assign({},a)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(i.palette).filter(function(e){return i.palette[e]})},set palette(e){i.updatePalette(e)},show:function(){i.element.classList.remove("hidden")},hide:function(){i.element.classList.add("hidden")},toggle:function(){i.element.classList.toggle("hidden")},on:function(e,t){return e&&n[e]&&n[e].on(t),this},off:function(e,t){return e&&n[e]&&n[e].off(t),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),i.element.remove(),n=null,i=null}};return i.onchange=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s=!0,n.change.emit([l].concat(t),l)},i.oncoloradd=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];n.coloradd.emit([l].concat(t),l)},i.oncolorremove=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];n.colorremove.emit([l].concat(t),l)},i.element.ctrl=l,l}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var S=i(5).toString(),x=document.createElement("style");x.setAttribute("type","text/css"),x.setAttribute("data-source","a-color-picker"),x.innerHTML=S,document.querySelector("head").appendChild(x)}t.createPicker=C,t.from=function(e,t){var i=(e?Array.isArray(e)?e:e instanceof HTMLElement?[e]:e instanceof NodeList?[].concat(d(e)):"string"==typeof e?[].concat(d(document.querySelectorAll(e))):e.jquery?e.get():[]:[]).map(function(e,i){var n=C(e,t);return n.index=i,n});return i.on=function(e,t){return i.forEach(function(i){return i.on(e,t)}),this},i.off=function(e){return i.forEach(function(t){return t.off(e)}),this},i},t.parseColorToRgb=r.parseColorToRgb,t.parseColorToRgba=r.parseColorToRgba,t.parseColorToHsl=r.parseColorToHsl,t.parseColorToHsla=r.parseColorToHsla,t.parseColor=r.parseColor,t.rgbToHex=r.rgbToHex,t.hslToRgb=r.hslToRgb,t.rgbToHsl=r.rgbToHsl,t.rgbToHsv=r.rgbToHsv,t.rgbToInt=r.rgbToInt,t.intToRgb=r.intToRgb,t.getLuminance=r.getLuminance,t.COLOR_NAMES=r.COLOR_NAMES,t.PALETTE_MATERIAL_500=r.PALETTE_MATERIAL_500,t.PALETTE_MATERIAL_CHROME=r.PALETTE_MATERIAL_CHROME,t.VERSION="1.2.1"},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nvl=t.ensureArray=t.limit=t.getLuminance=t.parseColor=t.parseColorToHsla=t.parseColorToHsl=t.cssHslaToHsla=t.cssHslToHsl=t.parseColorToRgba=t.parseColorToRgb=t.cssRgbaToRgba=t.cssRgbToRgb=t.cssColorToRgba=t.cssColorToRgb=t.intToRgb=t.rgbToInt=t.rgbToHsv=t.rgbToHsl=t.hslToRgb=t.rgbToHex=t.PALETTE_MATERIAL_CHROME=t.PALETTE_MATERIAL_500=t.COLOR_NAMES=void 0;var n,o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},r=(n=i(0))&&n.__esModule?n:{default:n};function s(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var a={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function l(e,t,i){return isNaN(e*=1)||t>e?t:e>i?i:e}function c(e,t){return null==e?t:e}function d(e,t,i){var n=[l(e,0,255),l(t,0,255),l(i,0,255)];return"#"+("000000"+((e=n[0])<<16|(t=n[1])<<8|(i=n[2])).toString(16)).slice(-6)}function u(e,t,i){var n=void 0,o=void 0,r=void 0,s=[l(e,0,360)/360,l(t,0,100)/100,l(i,0,100)/100];if(e=s[0],i=s[2],0==(t=s[1]))n=o=r=i;else{var a=function(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},c=i<.5?i*(1+t):i+t-i*t,d=2*i-c;n=a(d,c,e+1/3),o=a(d,c,e),r=a(d,c,e-1/3)}return[255*n,255*o,255*r].map(Math.round)}function h(e,t,i){var n=[l(e,0,255)/255,l(t,0,255)/255,l(i,0,255)/255],o=Math.max(e=n[0],t=n[1],i=n[2]),r=Math.min(e,t,i),s=void 0,a=void 0,c=(o+r)/2;if(o==r)s=a=0;else{var d=o-r;switch(a=c>.5?d/(2-o-r):d/(o+r),o){case e:s=(t-i)/d+6*(t<i);break;case t:s=(i-e)/d+2;break;case i:s=(e-t)/d+4}s/=6}return[360*s,100*a,100*c].map(Math.round)}function p(e,t,i){return e<<16|t<<8|i}function f(e){if(e){var t=a[e.toString().toLowerCase()],i=o(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(t||e)||[],10),n=i[3],r=i[4],s=i[5],l=i[7],c=i[8],d=i[9];if(void 0!==n)return[parseInt(n+n,16),parseInt(r+r,16),parseInt(s+s,16)];if(void 0!==l)return[parseInt(l,16),parseInt(c,16),parseInt(d,16)]}}function m(e){if(e){var t=a[e.toString().toLowerCase()],i=o(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(t||e)||[],12),n=i[3],r=i[4],s=i[5],l=i[6],c=i[8],d=i[9],u=i[10],h=i[11];if(void 0!==n)return[parseInt(n+n,16),parseInt(r+r,16),parseInt(s+s,16),l?+(parseInt(l+l,16)/255).toFixed(2):1];if(void 0!==c)return[parseInt(c,16),parseInt(d,16),parseInt(u,16),h?+(parseInt(h,16)/255).toFixed(2):1]}}function g(e){if(e){var t=o(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e)||[],4),i=t[0],n=t[1],r=t[2],s=t[3];return i?[l(n,0,255),l(r,0,255),l(s,0,255)]:void 0}}function v(e){if(e){var t=o(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e)||[],6),i=t[0],n=t[1],r=t[2],s=t[3],a=t[5];return i?[l(n,0,255),l(r,0,255),l(s,0,255),l(c(a,1),0,1)]:void 0}}function b(e){if(Array.isArray(e))return[l(e[0],0,255),l(e[1],0,255),l(e[2],0,255),l(c(e[3],1),0,1)];var t=m(e)||v(e);return t&&3===t.length&&t.push(1),t}function y(e){if(e){var t=o(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e)||[],4),i=t[0],n=t[1],r=t[2],s=t[3];return i?[l(n,0,360),l(r,0,100),l(s,0,100)]:void 0}}function w(e){if(e){var t=o(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e)||[],6),i=t[0],n=t[1],r=t[2],s=t[3],a=t[5];return i?[l(n,0,255),l(r,0,255),l(s,0,255),l(c(a,1),0,1)]:void 0}}function _(e){if(Array.isArray(e))return[l(e[0],0,360),l(e[1],0,100),l(e[2],0,100),l(c(e[3],1),0,1)];var t=w(e);return t&&3===t.length&&t.push(1),t}function k(e,t){switch(t){case"rgb":default:return e.slice(0,3);case"rgbcss":return"rgb("+e[0]+", "+e[1]+", "+e[2]+")";case"rgbcss4":return"rgb("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")";case"rgba":return e;case"rgbacss":return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")";case"hsl":return h.apply(void 0,s(e));case"hslcss":return"hsl("+(e=h.apply(void 0,s(e)))[0]+", "+e[1]+", "+e[2]+")";case"hslcss4":var i=h.apply(void 0,s(e));return"hsl("+i[0]+", "+i[1]+", "+i[2]+", "+e[3]+")";case"hsla":return[].concat(s(h.apply(void 0,s(e))),[e[3]]);case"hslacss":var n=h.apply(void 0,s(e));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+e[3]+")";case"hex":return d.apply(void 0,s(e));case"hexcss4":return d.apply(void 0,s(e))+("00"+parseInt(255*e[3]).toString(16)).slice(-2);case"int":return p.apply(void 0,s(e))}}t.COLOR_NAMES=a,t.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],t.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],t.rgbToHex=d,t.hslToRgb=u,t.rgbToHsl=h,t.rgbToHsv=function(e,t,i){var n=[l(e,0,255)/255,l(t,0,255)/255,l(i,0,255)/255],o,r=Math.max(e=n[0],t=n[1],i=n[2]),s=Math.min(e,t,i),a=void 0,c=r-s;if(o=0===r?0:c/r,r==s)a=0;else{switch(r){case e:a=(t-i)/c+6*(t<i);break;case t:a=(i-e)/c+2;break;case i:a=(e-t)/c+4}a/=6}return[a,o,r]},t.rgbToInt=p,t.intToRgb=function(e){return[e>>16&255,e>>8&255,255&e]},t.cssColorToRgb=f,t.cssColorToRgba=m,t.cssRgbToRgb=g,t.cssRgbaToRgba=v,t.parseColorToRgb=function(e){return Array.isArray(e)?e=[l(e[0],0,255),l(e[1],0,255),l(e[2],0,255)]:f(e)||g(e)},t.parseColorToRgba=b,t.cssHslToHsl=y,t.cssHslaToHsla=w,t.parseColorToHsl=function(e){return Array.isArray(e)?e=[l(e[0],0,360),l(e[1],0,100),l(e[2],0,100)]:y(e)},t.parseColorToHsla=_,t.parseColor=function(e,t){if(t=t||"rgb",null!=e){var i=void 0;if((i=b(e))||(i=_(e))&&(i=[].concat(s(u.apply(void 0,s(i))),[i[3]])))return(0,r.default)(t)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(e,t){return e[t]=k(i,t),e},t||{}):k(i,t.toString().toLowerCase())}},t.getLuminance=function(e,t,i){return .2126*(e=(e/=255)<.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*((i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},t.limit=l,t.ensureArray=function(e){return e?Array.from(e):[]},t.nvl=c},function(e,t,i){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t){e.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(e,t,i){var n=i(6);e.exports="string"==typeof n?n:n.toString()},function(e,t,i){(e.exports=i(7)(!1)).push([e.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var o="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */";return[i].concat(n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"})).concat([o]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(n[r]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}}],t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,(function(t){return e[t]}).bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}()},6441:function(e,t,i){"use strict";i.d(t,{Config:function(){return r}});var n=i(82758);let o={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=n.globalDocument,this.ownerWindow=n.globalWindow,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=n.INSERT_AS_HTML,this.enter=n.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:n.PARAGRAPH,this.defaultMode=n.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,i){"use strict";i.d(t,{Async:function(){return f}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),d=i(70799),u=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,u.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let r=(0,o.setTimeout)(e,t,...i),s=n.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,d.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,a=!1,d=[],u=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,d.length){let e=()=>{d.forEach(e=>e()),d.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&u(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>u(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):u(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{d.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,a;return(...i)=>{(o=!0,a=i,t)?n||(r=()=>{o?(e(...a),o=!1,n=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,n,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(o=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){"use strict";i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){"use strict";i.d(t,{Component:function(){return l}});var n=i(8884),o=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push(`__${e}`)),t&&(n.push("_",t),n.push("_",(0,s.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=a.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,i){"use strict";i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(4012),o=i(78213),r=i(80480)},78213:function(e,t,i){"use strict";i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){"use strict";i.d(t,{ViewComponent:function(){return o}});var n=i(4012);class o extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){"use strict";i.r(t),i.d(t,{IS_TEST:function(){return n}});let n=!1,o="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),d="Meta",u="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",v="ArrowDown",b="Delete",y=[d,u,b,m,v,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.navigator.platform),k=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:C,isMin:S}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(o.location.href)})(),x=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.14.9","BASE_PATH",0,C,"BASE_PATH_IS_MIN",0,S,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2018","FAT_MODE",0,!0,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!1,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,_,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,u,"KEY_DELETE",0,b,"KEY_DOWN",0,v,"KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_LEFT",0,f,"KEY_META",0,d,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0,"\xa0","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,x,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>n=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,o,"lang",0,{}])},20218:function(e,t,i){"use strict";i.d(t,{Create:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,r.isPlainObject)(t)?(0,r.attr)(n,t):i=t),i&&(0,r.asArray)(i).forEach(e=>o.Dom.append(n,(0,r.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(o.Dom.safeRemove(n),t){let e=(0,r.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&o.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){"use strict";i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){"use strict";i.d(t,{autobind:function(){return o}});var n=i(23282);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){"use strict";i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var n=i(78213),o=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;let i,n=null!=(i=this.od)?i:document,r=c.get(n);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(n,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){"use strict";i.d(t,{component:function(){return s},getComponentClass:function(){return a}});var n=i(82758),o=i(80568);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function a(e){return r.get(e)}},81577:function(e,t,i){"use strict";i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),o=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){"use strict";i.d(t,{derive:function(){return o}});var n=i(23282);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){"use strict";i.d(t,{hook:function(){return r}});var n=i(23282),o=i(89890);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){"use strict";i.d(t,{idle:function(){return s}});var n=i(91907),o=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},65478:function(e,t,i){"use strict";i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return d.nonenumerable},persistent:function(){return u.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),d=i(31589),u=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){"use strict";i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},53213:function(e,t,i){"use strict";i.d(t,{persistent:function(){return r}});var n=i(78213),o=i(39955);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){"use strict";i.d(t,{wait:function(){return s}});var n=i(78213),o=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){"use strict";i.d(t,{watch:function(){return u}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),d=i(37790);function u(e,t){return(i,u)=>{var h;if(!(0,s.isFunction)(i[u]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[u](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,c),r||n.events.on(o,c),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,u=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${u.join(".")}`,c);let p=(0,d.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${u.join(".")}`,c),c(l,i,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){"use strict";i.d(t,{Dom:function(){return y}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),d=i(86068),u=i(49055),h=i(38837),p=i(29960),f=i(41180),m=i(86583),g=i(89890),v=i(37790);let b=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o,r=e;i.s.save();do o=!1,(n=r.nextSibling)&&!y.isBlock(n)&&!y.isTag(n,"br")&&(o=!0,r=n);while(o);return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let o=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o,r=e,s=e;i.s.save();do o=!1,(n=r.previousSibling)&&!y.isBlock(n)&&(o=!0,r=n);while(o);do o=!1,(n=s.nextSibling)&&!y.isBlock(n)&&(o=!0,s=n);while(o);return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)if((n=n.parentNode)===t)return;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&y.isElement(e)&&y.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,u.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,n.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,d.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,d.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let n=i?"lastChild":"firstChild",o=i?"previousSibling":"nextSibling",r=null==e?void 0:e[n];if(!r)return null;do{if(t(r))return r;let i=r[n]||r[o];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);i=null==r?void 0:r[o]}r=i}while(r);return null}static prev(e,t,i,n=!0){return y.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return y.find(e,t,i,!0,n)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let n=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return i?y.prev(e,n,o):y.next(e,n,o)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=i?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let n=y.sibling(e,t);for(;n&&!i(n);)n=y.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,u.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,u.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,n.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,p.attr)(e,n.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(b,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(n.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){"use strict";i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(2748),o=i(70071)},70071:function(e,t,i){"use strict";i.d(t,{LazyWalker:function(){return s}});var n=i(45219),o=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return d}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class d{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,o){let c,d,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,d=e,h=t,p=i):(c=e,d=t,h=i,p=o),!((0,a.isString)(d)||(0,a.isStringArray)(d))||0===d.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,d,h,p)}),this;let f=c,m=this.__getStore(f),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return u(f)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(d,(e,t)=>{var i,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==p?void 0:p.top),u(f)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(o=null==p?void 0:p.capture)&&o;v.options=t,f.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(f,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=i):(o=e,r=t,s=i,l=n);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,i){let n,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,o=e,l=t):(n=e,o=t,l=i),(0,r.isArray)(n))return n.forEach(e=>{this.off(e,o,l)}),this;let d=n,h=this.__getStore(d);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(d,"."+e)}),this.__removeStoreFromSubject(d),this;let p=e=>{var t;u(d)&&(d.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(d,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let n=h.indexOf(e,t,l);!1!==n&&(p(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,n=(0,a.isString)(e)?e:t;if("string"!=typeof n)throw(0,l.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,d=(0,a.isString)(e)?[t,...i]:i;if(!u(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&u(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(u(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...d),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||u(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...d]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function u(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){"use strict";i.d(t,{Eventify:function(){return n}});class n{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let n;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{n=e(...t)})),n}constructor(){this.__map=new Map}}},57012:function(e,t,i){"use strict";let n=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,n])},3827:function(e,t,i){"use strict";i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(98220),o=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){"use strict";i.d(t,{observable:function(){return c}});var n=i(68345),o=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,o)=>((0,n.isArray)(t)?t.map(e=>c(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),d=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>d(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},u=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){d(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&u(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];d(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&u(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return u(e),e}},15738:function(e,t,i){"use strict";i.d(t,{EventHandlersStore:function(){return s}});var n=i(4510),o=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,o.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){"use strict";i.d(t,{getContainer:function(){return y},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var n=i(19306),o=i(70799),r=i(39955),s=i(12475),a=i(29960),l=i(41180),c=i(80568),d=i(41876),u=i(57012),h=i(82758),p=i(22732);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new d.PluginSystem({getContainer:y}),b=new WeakMap;function y(e,t,i="div",l=!1){let d,u=(0,o.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",h=b.get(e)||{},f=u+i,m=(0,r.isViewObject)(e)?e:e.j;if(!h[f]){let t=m.c;if(d=w(m.o,m.container,e.od.body),l&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;d=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(o,"nonce",m.o.nonce),o.classList.add(`jodit_theme_${m.o.theme||"default"}`),p.Dom.append(d,o),h[f]=o,e.hookStatus("beforeDestruct",()=>{m.events.off(o),p.Dom.safeRemove(o),delete h[f],Object.keys(h).length&&b.delete(e)}),b.set(e,h),m.events.fire("getContainer",o)}return h[f].classList.remove("jodit_theme_default","jodit_theme_dark"),h[f].classList.add(`jodit_theme_${m.o.theme||"default"}`),h[f]}function w(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?r:i}let _=u.eventEmitter;i.d(t,["eventEmitter",0,_,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,v])},29999:function(e,t,i){"use strict";var n=i(68345);i.d(t,["asArray",0,e=>(0,n.isArray)(e)?e:[e]])},76855:function(e,t,i){"use strict";i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(29999),o=i(46559),r=i(4510)},46559:function(e,t,i){"use strict";function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{splitArray:function(){return n}})},4510:function(e,t,i){"use strict";var n=i(70722),o=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){"use strict";i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(82758);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){"use strict";i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return u.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return u.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return u.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return _.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return S.isValidName},isViewObject:function(){return x.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return E.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),d=i(29673),u=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),w=i(14773),_=i(42320),k=i(70799),C=i(26049),S=i(37508),x=i(39955),I=i(86068),E=i(52742)},12045:function(e,t,i){"use strict";function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}i.d(t,{isAbortError:function(){return n}})},68345:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}i.d(t,{isArray:function(){return n}})},87612:function(e,t,i){"use strict";function n(e){return"boolean"==typeof e}i.d(t,{isBoolean:function(){return n}})},59292:function(e,t,i){"use strict";i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(67462);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){"use strict";function n(e){return"function"==typeof e}i.d(t,{isFunction:function(){return n}})},29673:function(e,t,i){"use strict";function n(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}i.d(t,{isHtmlFromWord:function(){return n}})},58487:function(e,t,i){"use strict";var n=i(70799);i.d(t,["isHTML",0,e=>(0,n.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},60132:function(e,t,i){"use strict";i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(2748),o=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){"use strict";i.d(t,{isInt:function(){return r}});var n=i(29807),o=i(70799);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){"use strict";i.d(t,{isJoditObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){"use strict";var n=i(70799);i.d(t,["isLicense",0,e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},78116:function(e,t,i){"use strict";i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){"use strict";function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}i.d(t,{isNativeFunction:function(){return n}})},84767:function(e,t,i){"use strict";function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{isNumber:function(){return n}})},29807:function(e,t,i){"use strict";i.d(t,{isNumeric:function(){return o}});var n=i(70799);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){"use strict";i.d(t,{isPlainObject:function(){return o}});var n=i(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){"use strict";function n(e){return e&&"function"==typeof e.then}i.d(t,{isPromise:function(){return n}})},42320:function(e,t,i){"use strict";i.d(t,{isSet:function(){return o}});var n=i(23282);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},70799:function(e,t,i){"use strict";i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(68345);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},26049:function(e,t,i){"use strict";i.d(t,{isURL:function(){return o}});var n=i(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){"use strict";function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}i.d(t,{isValidName:function(){return n}})},39955:function(e,t,i){"use strict";i.d(t,{isViewObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){"use strict";function n(e){return null==e}i.d(t,{isVoid:function(){return n}})},52742:function(e,t,i){"use strict";function n(e){return null!=e&&e===e.window}i.d(t,{isWindow:function(){return n}})},35278:function(e,t,i){"use strict";i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},32574:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return d}});var n=i(82758),o=i(2748),r=i(49055),s=i(29960),a=i(41180),l=i(76078);function c(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function d(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let d=n.globalDocument.createElement("iframe");(0,a.css)(d,"display","none"),o.Dom.append(n.globalDocument.body,d);let u="";try{let t=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,l.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=c(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),u=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(d)}return u&&(e=u),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){"use strict";i.d(t,{cleanFromWord:function(){return l}});var n=i(82758),o=i(2748),r=i(4510),s=i(49055),a=i(29960);function l(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[];i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,i){"use strict";i.d(t,{htmlspecialchars:function(){return o}});var n=i(82758);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){"use strict";i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var n=i(32574),o=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003)},45971:function(e,t,i){"use strict";function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}i.d(t,{nl2br:function(){return n}})},86518:function(e,t,i){"use strict";i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var n=i(2748),o=i(43555),r=i(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let l=[];for(let t of(n.Dom.each(e,e=>{n.Dom.isElement(e)&&n.Dom.up(e.parentNode,a)&&l.push(e)}),l))n.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==n.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&n.Dom.safeRemove(t);let c=null!=(i=t.removeEventAttributes)?i:t.removeOnError,d=e=>{if(n.Dom.isElement(e)&&(c&&function(e){if(!n.Dom.isElement(e))return;let t=[];for(let i=0;i<e.attributes.length;i++)e.attributes[i].name.toLowerCase().startsWith("on")&&t.push(e.attributes[i].name);for(let i of t)(0,r.attrRaw)(e,i,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};d(e),n.Dom.each(e,d)}let c=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["iframe","frame","object","embed"]);function u(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&d.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let s=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,o.attr)(e,"href");if(t&&l&&u(l,a)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),s=!0),c)){let i=(0,r.attrRaw)(e,t);i&&u(i,a)&&((0,o.attr)(e,t,null),s=!0)}return s}},91003:function(e,t,i){"use strict";i.d(t,{stripTags:function(){return function e(t,i=document,c=null,d=!1){let u=i.createElement("div");(0,o.isString)(t)?u.innerHTML=t:n.Dom.append(u,t);let h=[];return n.Dom.each(u,e=>{n.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(c&&n.Dom.isTag(t,c)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,l)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,c,d)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,a))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,s))return;let o=t.nextSibling;!(n.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&n.Dom.before(o,i.createTextNode(d?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(u.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),o=i(70799),r=i(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},21537:function(e,t,i){"use strict";i.r(t),i.d(t,{$$:function(){return u.$$},CamelCaseToKebabCase:function(){return d.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return u.ConnectionError},LimitedStack:function(){return u.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return u.OptionsError},UNSAFE_PROTO_KEYS:function(){return u.UNSAFE_PROTO_KEYS},abort:function(){return u.abort},alignElement:function(){return u.alignElement},alreadyLoadedList:function(){return u.alreadyLoadedList},appendScriptAsync:function(){return u.appendScriptAsync},appendStyleAsync:function(){return u.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},assert:function(){return u.assert},attr:function(){return u.attr},attrRaw:function(){return u.attrRaw},browser:function(){return u.browser},buildQuery:function(){return u.buildQuery},call:function(){return u.call},callPromise:function(){return u.callPromise},callThis:function(){return u.callThis},camelCase:function(){return d.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return u.clearAlign},clearCenterAlign:function(){return u.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return u.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return u.completeUrl},connection:function(){return u.connection},convertMediaUrlToVideoEmbed:function(){return u.convertMediaUrlToVideoEmbed},css:function(){return u.css},cssInline:function(){return u.cssInline},cssPath:function(){return u.cssPath},ctrlKey:function(){return u.ctrlKey},dataBind:function(){return u.dataBind},defaultLanguage:function(){return u.defaultLanguage},error:function(){return u.error},fastClone:function(){return u.fastClone},fuzzySearchIndex:function(){return d.fuzzySearchIndex},get:function(){return u.get},getClassName:function(){return u.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return u.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return u.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return u.getXPathByElement},hAlignElement:function(){return u.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return u.humanSizeToBytes},i18n:function(){return d.i18n},inView:function(){return u.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return u.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return u.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return d.kebabCase},keepNames:function(){return u.keepNames},keys:function(){return u.keys},loadImage:function(){return u.loadImage},loadNext:function(){return u.loadNext},loadNextStyle:function(){return u.loadNextStyle},markAsAtomic:function(){return u.markAsAtomic},markDeprecated:function(){return u.markDeprecated},markOwner:function(){return u.markOwner},memorizeExec:function(){return u.memorizeExec},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},options:function(){return u.options},parseQuery:function(){return u.parseQuery},position:function(){return c.position},previewBox:function(){return u.previewBox},refs:function(){return u.refs},reset:function(){return u.reset},resolveElement:function(){return u.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return u.scrollIntoViewIfNeeded},set:function(){return u.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return n.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var n=i(76855),o=i(91898),r=i(27613),s=i(35278),a=i(75275),l=i(71521),c=i(56175),d=i(59007),u=i(43555)},71521:function(e,t,i){"use strict";i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var n=i(21224),o=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),d=i(37406)},21224:function(e,t,i){"use strict";var n=i(35278),o=i(49055);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},3760:function(e,t,i){"use strict";i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var n=i(29807),o=i(86068),r=i(35278),s=i(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,i){"use strict";i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(82758),o=i(49055);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,i){"use strict";i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},9992:function(e,t,i){"use strict";var n=i(49055);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,i){"use strict";i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},46334:function(e,t,i){"use strict";i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,i){"use strict";i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,i){"use strict";i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,i){"use strict";function n(e){var t,i;let n=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;n&&o;){if(""!==(i=n.getComputedStyle(o)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}return{x:0,y:0}}i.d(t,{getFixedPositionOffset:function(){return n}})},16442:function(e,t,i){"use strict";i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(82758),o=i(2748),r=i(43555)},56175:function(e,t,i){"use strict";i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var n=i(44506),o=i(35224),r=i(16442),s=i(81630),a=i(21496),l=i(81284),c=i(5700)},81630:function(e,t,i){"use strict";i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},21496:function(e,t,i){"use strict";i.d(t,{size:function(){return o}});var n=i(27613);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){"use strict";let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=i.defaultView||i.parentWindow,u=d.pageYOffset||c.scrollTop||l.scrollTop,h=d.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=n(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+u-p,a=r.left+h-f;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,n])},5700:function(e,t,i){"use strict";i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,c+=n}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(19306)},87058:function(e,t,i){"use strict";i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},67477:function(e,t,i){"use strict";i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(82758);function o(e,t,i=0,r=1){let s=0,a,l=-1,c=0,d=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,d=0,-1===l&&(l=a)):s>0&&(d>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,c=0,d=0,a--):(d++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){"use strict";i.d(t,{i18n:function(){return c}});var n=i(82758),o=i(70799),r=i(36409),s=i(43555),a=i(6441);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==i?void 0:i.debugLanguage),d={},u=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),f=t=>{if(!t)return;if((0,o.isString)(t[e]))return u(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return u(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return u(t[n])};void 0!==n.lang[p]?d=n.lang[p]:c||(d=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(d)||(!c&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?u(n.lang.en[e]):c?"{"+e+"}":(n.IS_PROD,u(e)))}i.d(t,["sprintf",0,l])},59007:function(e,t,i){"use strict";i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var n=i(87058),o=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){"use strict";i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},67462:function(e,t,i){"use strict";function n(e,t={}){if("object"!=typeof e)return String(e);let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}i.d(t,{stringify:function(){return n}})},49055:function(e,t,i){"use strict";i.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var n=i(82758);function o(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,i){"use strict";function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}i.d(t,{ucfirst:function(){return n}})},25726:function(e,t,i){"use strict";i.d(t,{alignElement:function(){return c},clearAlign:function(){return a},hAlignElement:function(){return s}});var n=i(22732),o=i(29960),r=i(41180);function s(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function a(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,o.attr)(e,"style")||"").trim().length||(0,o.attr)(e,"style",null))})}let l=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t)){a(t);let i=l.get(e.toLowerCase());i&&(0,r.css)(t,"textAlign",i)}}},63799:function(e,t,i){"use strict";i.d(t,{loadNext:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?c(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?d(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}}});var n=i(2748),o=i(70799),r=i(29960),s=i(66292);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let n=e(t,i);return a.set(i,n),n},c=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",i),n.Dom.append(e.od.body,a)})),d=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?n.Dom.append(e.o.shadowRoot,a):n.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,d])},38837:function(e,t,i){"use strict";i.d(t,{assert:function(){return o}});class n extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new n(`Assertion failed: ${t}`)}},29960:function(e,t,i){"use strict";i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let c=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,`data${c}`);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var n=i(23282),o=i(72430),r=i(70799),s=i(12475),a=i(41180);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},97639:function(e,t,i){"use strict";i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},44710:function(e,t,i){"use strict";var n=i(72430);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,o])},66292:function(e,t,i){"use strict";var n=i(82758);i.d(t,["completeUrl",0,e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,i){"use strict";i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,d.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return u},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{if((0,c.isUnsafeProtoKey)(n))return;let r=i[n],s=t[n];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[n]=r})}},ConfigProto:function(){return function e(t,i,d=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let u=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==u.presets[t.preset]){let e=u.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,d+1);return}if(0!==d&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var n=i(68345),o=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(69175),d=i(37790);function u(e){return(0,d.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){"use strict";var n=i(82758),o=i(26049),r=i(82501);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let n=s.pathname.split("/").filter(Boolean),o=n.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=n[o],l=n[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let n=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,i){"use strict";i.d(t,{css:function(){return l},cssInline:function(){return c}});var n=i(87612),o=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,n.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let d=(0,a.kebabCase)(t),u=e.ownerDocument||document,h=!!u&&(u.defaultView||u.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:h&&!c&&(f=h.getComputedStyle(e).getPropertyValue(d)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,r.normalizeCssValue)(t,f)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},15456:function(e,t,i){"use strict";i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},86583:function(e,t,i){"use strict";var n=i(39955);let o=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},96325:function(e,t,i){"use strict";var n=i(82758),o=i(70799);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,i){"use strict";i.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(32880);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}},93661:function(e,t,i){"use strict";function n(e="Aborted"){return new DOMException(e,"AbortError")}i.d(t,{abort:function(){return n}})},86397:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},32880:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return n.abort}});var n=i(93661),o=i(86397),r=i(57865)},57865:function(e,t,i){"use strict";i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},89890:function(e,t,i){"use strict";i.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(82760),o=i(32880)},97735:function(e,t,i){"use strict";i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(67462);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},80568:function(e,t,i){"use strict";var n=i(23282);let o=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,o])},94643:function(e,t,i){"use strict";i.d(t,{get:function(){return r}});var n=i(70799),o=i(86068);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,i){"use strict";i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},43555:function(e,t,i){"use strict";i.d(t,{$$:function(){return E.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return _.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return D.call},callPromise:function(){return D.callPromise},callThis:function(){return D.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return k.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return u.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return E.cssPath},ctrlKey:function(){return p.ctrlKey},dataBind:function(){return f.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return D.getDataTransfer},getPropertyDescriptor:function(){return D.getPropertyDescriptor},getXPathByElement:function(){return E.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return _.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return D.keys},loadImage:function(){return D.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return k.markDeprecated},markOwner:function(){return D.markOwner},memorizeExec:function(){return D.memorizeExec},options:function(){return g.options},parseQuery:function(){return C.parseQuery},previewBox:function(){return S.previewBox},refs:function(){return E.refs},reset:function(){return x.reset},resolveElement:function(){return E.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var n=i(25726),o=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),d=i(68934),u=i(55877),h=i(41180),p=i(15456),f=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),w=i(38420),_=i(69175),k=i(95942),C=i(82501),S=i(11628),x=i(58844),I=i(26395),E=i(76078),T=i(3703),j=i(50535),D=i(37790)},69175:function(e,t,i){"use strict";i.d(t,{isUnsafeProtoKey:function(){return o}});let n=["__proto__","constructor","prototype"];function o(e){return -1!==n.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,n])},95942:function(e,t,i){"use strict";i.d(t,{markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}i.d(t,["cns",0,n])},82501:function(e,t,i){"use strict";i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}])},11628:function(e,t,i){"use strict";i.d(t,{previewBox:function(){return a}});var n=i(2748),o=i(70799),r=i(29960),s=i(41180);function a(e,t,i="px",l=null){let c=[],d=function(e,t){let i=[],o=[];n.Dom.each(e.editor,e=>{n.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();n.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),n.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let d=e.c.div("jodit__preview-box jodit-context");l&&n.Dom.append(l,d),(0,s.css)(d,{position:"relative",padding:16});let u=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),n.Dom.append(d,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),d=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),a=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(d,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{n.Dom.append(t,e)}catch(e){}}else try{n.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(d,u),e.e.fire("afterPreviewBox",d),[d,()=>{c.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},58844:function(e,t,i){"use strict";i.d(t,{reset:function(){return a}});var n=i(82758),o=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=n.globalDocument.createElement("iframe");try{if(i.src="about:blank",n.globalDocument.body.appendChild(i),!i.contentWindow)return null;let t=(0,r.get)(e,i.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){"use strict";i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(2748);function o(e,t,i){let n=e.getBoundingClientRect(),o=e,r=n.top,s=n.height;for(;o&&o!==t&&o.parentNode;)if(r+s>(n=(o=o.parentNode).getBoundingClientRect()).bottom+1&&r>n.top||r+s<=n.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(n.Dom.isHTMLElement(e)&&!o(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}o(e,t,i)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,i){"use strict";i.d(t,{$$:function(){return u},resolveElement:function(){return p}});var n=i(82758),o=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let d=1;function u(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+String(Math.random()).slice(2)+ ++d;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t);e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},3703:function(e,t,i){"use strict";i.d(t,{set:function(){return l}});var n=i(68345),o=i(29807),r=i(72430),s=i(70799),a=i(69175);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,n.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){"use strict";i.d(t,{LimitedStack:function(){return n}});class n{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,i){"use strict";i.d(t,{call:function(){return a},callPromise:function(){return d},callThis:function(){return l},getPropertyDescriptor:function(){return u},markOwner:function(){return c}});var n=i(14773),o=i(86068),r=i(29960),s=i(86583);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function d(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function u(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:i},n)=>{var r;let a=`button${i.command}`,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},31359:function(e,t,i){"use strict";i.d(t,{init:function(){return s}});var n=i(82758),o=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){"use strict";i.d(t,{loadExtras:function(){return d},loadStyle:function(){return l}});var n=i(82758),o=i(12475),r=i(63799),s=i(89672);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,o.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function d(e,t,i,o){try{let n=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));n.length&&n.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},48591:function(e,t,i){"use strict";i.d(t,{makeInstance:function(){return r}});var n=i(82758),o=i(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},89672:function(e,t,i){"use strict";i.d(t,{normalizeName:function(){return o}});var n=i(12475);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return n.Plugin}});var n=i(20356);i(41876)},41876:function(e,t,i){"use strict";i.d(t,{PluginSystem:function(){return p}});var n=i(82758),o=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),d=i(14041),u=i(48591),h=i(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},p=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([n,o])=>{if(i.has(n)||p.has(n))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(n)}t=!0;let a=(0,u.makeInstance)(e,o);if(!a){p.set(n,null),m.delete(n);return}(0,c.init)(e,n,o,a,p,m,this.opts.getContainer),f[n]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,d.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,a.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),n.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,i)};o.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){"use strict";i.d(t,{Plugin:function(){return a}});var n=i(91907),o=i(65478),r=i(19306),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return d}});var n=i(8884),o=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class d{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof o.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(n,o)=>{var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,n(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=d,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,n)},e.onreadystatechange=()=>{var i,n;null==(n=(i=this.options).onProgress)||n.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?d():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:u,data:h,method:p}=i;e.open(p,u,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=await f.call(this)),f&&e.setRequestHeader&&Object.keys(f).forEach(t=>{e.setRequestHeader(t,f[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}async *stream(){var e;this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest(),o=0,r="",l=[],c=null,d=!1,u=null,h=()=>{if(c){let e=c;c=null,e()}},p=e=>{var i;let n=t.responseText;r+=n.substring(o),o=n.length;let s=r.split("\n\n");for(let t of(r=e?"":null!=(i=s.pop())?i:"",s)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split("\n"))t.startsWith("data: ")?i.push(t.slice(6)):t.startsWith("data:")&&i.push(t.slice(5));i.length&&l.push(i.join("\n"))}h()};t.onprogress=()=>p(!1),t.onload=()=>{p(!0),d=!0,this.__isFulfilled=!0,h()},t.onerror=()=>{u=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,h()},t.onabort=()=>{u=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,h()},t.withCredentials=null!=(e=i.withCredentials)&&e;let{url:f,data:m,method:g}=n;t.open(g,f,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:v}=i;(0,s.isFunction)(v)&&(v=await v.call(this)),v&&t.setRequestHeader&&Object.keys(v).forEach(e=>{t.setRequestHeader(e,v[e])}),t.send(m?this.__buildParams(m):void 0);try{for(;;)if(l.length>0)yield l.shift();else if(d)break;else await new Promise(e=>{c=e})}finally{this.__isFulfilled||this.abort()}if(u)throw u}prepareRequest(){if(!this.o.url)throw a.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&t&&(0,s.isPlainObject)(t)){let i=e.indexOf("?");if(-1!==i){let n=(0,s.parseQuery)(e.substring(i));e=e.substring(0,i)+"?"+(0,s.buildQuery)({...n,...t})}else e+="?"+(0,s.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return d.log.splice(100),d.log.push(n),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=l.Config.prototype.defaultAjaxOptions){this.__async=new n.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,s.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}d.log=[],function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([r.autobind],d.prototype,"destruct",null)},57459:function(e,t,i){"use strict";i(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(e,t,i){"use strict";i.d(t,{Ajax:function(){return n.Ajax},Response:function(){return o.Response}});var n=i(54079),o=i(98582)},98582:function(e,t,i){"use strict";i.d(t,{Response:function(){return n}});class n{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(e,t,i,n){this.request=e,this.status=t,this.statusText=i,this.body=n}}},45124:function(e,t,i){"use strict";i.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var n=i(82758),o=i(2748),r=i(26716);function s(e,t,i,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,n.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,i,n,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!o.Dom.isText(e)){if(!i&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=e=>i?e.lastChild:s(e),n=t(e);for(;n;){if(n&&o.Dom.isText(n)){e=n;break}n=t(n)}}}if(e&&!n&&!o.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!o.Dom.isText(t));t===i&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(43463)},26716:function(e,t,i){"use strict";i.d(t,{moveNodeInsideStart:function(){return r}});var n=i(82758),o=i(2748);function r(e,t,i){let r=o.Dom.findSibling(t,i),s=o.Dom.findSibling(t,!i);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,n.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)i||!r.firstChild?o.Dom.append(r,t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},43463:function(e,t,i){"use strict";i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var n=i(2748);function o(e,t,i){let o=e;for(;o&&o!==i&&!(n.Dom.findSibling(o,t)||n.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==i&&(t?n.Dom.before(o,e):n.Dom.after(o,e))}},59242:function(e,t,i){"use strict";i.d(t,{CHANGE:function(){return"change"},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return n.Selection},UNWRAP:function(){return"unwrap"},WRAP:function(){return"wrap"}});var n=i(79348),o=i(25639),r=i(77361)},79348:function(e,t,i){"use strict";i.d(t,{Selection:function(){return p}});var n=i(82758),o=i(65478),r=i(2748),s=i(21537),a=i(27613),l=i(38837),c=i(43463),d=i(25639),u=i(45124),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class p{get j(){return this.jodit}errorNode(e){if(!r.Dom.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,a.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this;if(!(null==e?void 0:e.rangeCount))return!1;for(let t=0;t<e.rangeCount;t+=1)if(!r.Dom.isOrContains(this.area,e.getRangeAt(t).commonAncestorContainer))return!1;return!0}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1){let i=e.getRangeAt(t);r.Dom.isOrContains(this.area,i.commonAncestorContainer)&&(i.deleteContents(),i.collapse(!0))}}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!r.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){var i,n,o,s;try{let a=this.createRange(),l=null==(n=(i=this.doc).caretPositionFromPoint)?void 0:n.call(i,e,t),c=l?null:null==(s=(o=this.doc).caretRangeFromPoint)?void 0:s.call(o,e,t);if(l)a.setStart(l.offsetNode,l.offset);else{if(!c)return!1;a.setStart(c.startContainer,c.startOffset)}if(!r.Dom.isOrContains(this.area,a.startContainer))return!1;return a.collapse(!0),this.removeMarkers(),this.selectRange(a),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+n.MARKER_CLASS+"]",this.area)}removeMarkers(){r.Dom.safeRemove(...this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let o=this.j.createInside.span();return o.id=n.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,s.css)(o,{lineHeight:"0",display:"none"}),r.Dom.markTemporary(o),(0,s.attr)(o,"data-"+n.MARKER_CLASS,e?"start":"end"),r.Dom.append(o,this.j.createInside.text(n.INVISIBLE_SPACE)),i&&r.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){var e,t;let i=this.markers,o=new Map(i.map(e=>[e.id,e])),a=[],l=!1;for(let c=0;c<i.length;c+=1){let d=i[c];if("start"!==(0,s.attr)(d,"data-"+n.MARKER_CLASS))continue;l||(l="true"===(0,s.attr)(d,"data-selection-backward"));let u=(0,s.attr)(d,"data-selection-end"),h=u?o.get(u):void 0;!u&&i[c+1]&&"end"===(0,s.attr)(i[c+1],"data-"+n.MARKER_CLASS)&&(h=i[c+1]);let p=this.createRange();if(h)p.setStartAfter(d),p.setEndBefore(h);else{let i=d.previousSibling;r.Dom.isText(i)?p.setStart(i,null!=(t=null==(e=i.nodeValue)?void 0:e.length)?t:0):p.setStartBefore(d),p.collapse(!0)}a.push(p)}r.Dom.safeRemove(...i),a.length&&this.__selectRanges(a,l)}__isBackward(){let e=this.sel;return!!(e&&1===e.rangeCount&&!e.isCollapsed&&e.anchorNode===e.getRangeAt(0).endContainer&&e.anchorOffset===e.getRangeAt(0).endOffset)}__ranges(){let e=this.sel;return e?Array.from({length:e.rangeCount},(t,i)=>e.getRangeAt(i).cloneRange()):[]}fakes(){if(!this.isInsideArea)return[];let e=this.__isBackward(),t=this.__ranges(),i=t.map(e=>{let t=e.collapsed,i=e.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();r.Dom.safeInsertNode(i,n),e.setStartBefore(n);let o=[n];if(t)e.collapse(!0);else{let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();r.Dom.safeInsertNode(t,i),e.setEndAfter(i),o.push(i)}return o});return this.__fakeSelections.set(i[0][0],{pairs:i,backward:e}),this.__selectRanges(t,e),i[0]}restoreFakes(e){var t,i,n;if(!e.length)return;let o=this.__fakeSelections.get(e[0]);if(this.__fakeSelections.delete(e[0]),this.j.isInDestruct)return;let s=[];for(let a of null!=(t=null==o?void 0:o.pairs)?t:[e]){let e=a.filter(e=>e.isConnected&&r.Dom.isOrContains(this.area,e,!0));if(!e.length)continue;let[t,o]=e,l=this.createRange();for(let s of(l.setStartAfter(t),o?l.setEndBefore(o):l.collapse(!0),e))(null==(i=s.parentNode)?void 0:i.firstChild)!==(null==(n=s.parentNode)?void 0:n.lastChild)&&r.Dom.safeRemove(s);s.push(l)}s.length&&this.__selectRanges(s,null==o?void 0:o.backward)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=this.__isBackward(),n=[],o=t.rangeCount,a=[];for(let e=0;o>e;e+=1)if(a[e]=t.getRangeAt(e),!r.Dom.isOrContains(this.area,a[e].commonAncestorContainer))return[];for(let e=0;o>e;e+=1)if(a[e].collapsed){let t=this.marker(!0,a[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,a[e]),r=this.marker(!1,a[e]);o>1&&(0,s.attr)(t,"data-selection-end",r.id),i&&(0,s.attr)(t,"data-selection-backward","true"),n[e]={startId:t.id,endId:r.id,collapsed:!1,startMarker:t.outerHTML,endMarker:r.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){let i=this.area.querySelector("#"+n[e].startId);if(i){if(n[e].collapsed)a[e].setStartAfter(i),a[e].collapse(!0);else if(a[e].setStartBefore(i),n[e].endId){let t=this.area.querySelector("#"+n[e].endId);t&&a[e].setEndAfter(t)}try{t.addRange(a[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){var t,i;if(!this.isFocused()){let n=(0,s.getScrollParent)(this.j.container),o=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,o);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.Dom.isOrContains(this.area,l.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null==(i=null==(t=this.j)?void 0:t.events)||i.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==n.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let i=t.getRangeAt(0),o=i.startContainer,s=!1;if(!r.Dom.isOrContains(this.area,o))return null;if(r.Dom.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let n=(0,u.findCorrectCurrentNode)(o,i,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);o=n.node,s=n.rightMode}return o&&r.Dom.isOrContains(this.area,o)?o:null}insertNode(e,t=!0,i=!0){this.errorNode(e),this.j.e.fire("safeHTML",e);let n=r.Dom.isFragment(e)?e.lastChild:e;if(!n||this.j.isInDestruct)return;!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),!(n=r.Dom.isFragment(e)?e.lastChild:e)||this.j.isInDestruct)return;if(o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):r.Dom.append(this.area,e),[()=>null==i?void 0:i.previousSibling,()=>null==i?void 0:i.previousSibling,()=>{var e;return null==(e=null==i?void 0:i.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&r.Dom.isEmptyTextNode(t)&&r.Dom.safeRemove(t)})}else r.Dom.append(this.area,e);let i=e=>{if(r.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(r.Dom.isFragment(e)?n&&i(n):i(e)),this.j.o.scrollToPastedContent&&(0,s.scrollIntoViewIfNeeded)(null!=n?n:e,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",r.Dom.isFragment(e)?n:e)}insertHTML(e,t=!0){if(""===e)return;let i=this.j.createInside.div(),n=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?r.Dom.append(i,e):i.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",i.innerHTML)||i.lastChild&&(r.Dom.moveContent(i,n),this.insertNode(n,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,i=null){let n=(0,a.isString)(e)?this.j.createInside.element("img"):e;if((0,a.isString)(e)&&(0,s.attr)(n,"src",e),null!=i){let e=i.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,s.attr)(n,"width",e)}t&&"object"==typeof t&&(0,s.css)(n,t);let o=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(0,s.css)(n,{width:"",height:""}),n.removeEventListener("load",o)};this.j.e.on(n,"load",o),n.complete&&o(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){let t=new Set;for(let i of this.__ranges())r.Dom.isOrContains(this.area,i.commonAncestorContainer)&&this.__eachRange(i,i=>{t.has(i)||(t.add(i),e(i))})}__eachRange(e,t){var i;let o=e.commonAncestorContainer;r.Dom.isHTMLElement(o)||(o=o.parentElement);let l=[],c=e.startOffset,d=o.childNodes.length,u=e.startContainer===this.area?o.childNodes[c<d?c:d-1]:e.startContainer,h=e.endContainer===this.area?o.childNodes[e.endOffset-1]:e.endContainer;r.Dom.isText(u)&&u===e.startContainer&&e.startOffset===(null==(i=u.nodeValue)?void 0:i.length)&&u.nextSibling&&(u=u.nextSibling),r.Dom.isText(h)&&h===e.endContainer&&0===e.endOffset&&h.previousSibling&&(h=h.previousSibling);let p=e=>{!e||e===o||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||l.push(e)};p(u),u!==h&&r.Dom.isOrContains(o,u,!0)&&r.Dom.find(u,e=>(p(e),e===h||e&&e.contains&&e.contains(h)),o,!0,!1);let f=e=>{if(r.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(e.childNodes).forEach(f);if(r.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(n.INVISIBLE_SPACE);r.Dom.append(e,t),e=t}t(e)}};0===l.length&&(r.Dom.isEmptyTextNode(u)&&l.push(u),(null==u?void 0:u.firstChild)&&l.push(u.firstChild)),l.forEach(f)}cursorInTheEdge(e,t,i=null){let n=!e,o=this.sel,s=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(!s)return null;let a=e?s.startContainer:s.endContainer,l=e?s.startOffset:s.endOffset;if(null!=i||(i=a),!r.Dom.isOrContains(t,a)||!r.Dom.isOrContains(t,i))return null;let c=e=>!!(e&&!r.Dom.isTag(e,"br")&&!r.Dom.isEmptyTextNode(e)&&!r.Dom.isTemporary(e)&&!(r.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(r.Dom.isText(a)){if((0,u.cursorInTheEdgeOfString)(a,l,e,n))return!1}else{let e=a.childNodes,t=n?e.length:l;for(let i=n?l:0;t>i;i+=1)if(c(e[i]))return!1}let d=i;for(;d&&d!==t;){let t=r.Dom.sibling(d,e);if(!t){d=d.parentNode;continue}if(c(d=t))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var i,n;if(this.errorNode(e),!r.Dom.isOrContains(this.area,e,!0))throw(0,s.error)("Node element must be in editor");let o=this.createRange(),a=null;return r.Dom.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!=(n=null==(i=e.nodeValue)?void 0:i.length)?n:0):(a=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),r.Dom.safeInsertNode(o,a),o.selectNode(a)),o.collapse(t),this.selectRange(o),a}setCursorIn(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let i=this.createRange(),o=e,a=e;do{if(r.Dom.isText(o)||r.Dom.isTag(o,n.INSEPARABLE_TAGS))break;a=o,o=t?o.firstChild:o.lastChild}while(o);if(!o){let e=this.j.createInside.text(n.INVISIBLE_SPACE);r.Dom.isTag(a,n.INSEPARABLE_TAGS)?o=a:(r.Dom.append(a,e),a=e)}let l=o||a;return r.Dom.isTag(l,n.INSEPARABLE_TAGS)?t||r.Dom.isTag(l,"br")?i.setStartBefore(l):i.setEndAfter(l):i.selectNodeContents(l),i.collapse(t),this.selectRange(i),a}selectRange(e,t=!0){return this.__selectRanges([e],!1,t)}__selectRanges(e,t=!1,i=!0){let n=this.sel;if(i&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),e.forEach(e=>n.addRange(e)),t&&1===e.length)){let t=e[0];n.setBaseAndExtent(t.endContainer,t.endOffset,t.startContainer,t.startOffset)}return this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let i=this.createRange();return i[t||e===this.area?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let e=this.j.createInside.div();return this.__ranges().forEach(t=>r.Dom.append(e,t.cloneContents())),e.innerHTML}return""}__wrapSelectionFragments(e){this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(r.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,i,n,o;let{endContainer:s,endOffset:a}=e;r.Dom.isText(s)&&a>0&&a<(null!=(i=null==(t=s.nodeValue)?void 0:t.length)?i:0)&&s.splitText(a);let{startContainer:l,startOffset:c}=e;if(r.Dom.isText(l)&&c>0&&c<(null!=(o=null==(n=l.nodeValue)?void 0:n.length)?o:0)){let t=l.splitText(c);e.setStart(t,0)}this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var i,n;let o=t?e.startContainer:e.endContainer;if(!r.Dom.isText(o))return;let s=t?e.startOffset:e.endOffset,a=null!=(n=null==(i=o.nodeValue)?void 0:i.length)?n:0;0===s?t?e.setStartBefore(o):e.setEndBefore(o):s>=a&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t,i=this.createRange()){let n=[];return(0,s.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e,i)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t,i))}),n}__isFullyContained(e,t,i){return i.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,i)&&e.compareBoundaryPoints(Range.END_TO_END,i)>=0}__wrapSelectionRuns(e){let t=[],i=[],n=()=>{i.length&&(t.push(this.__wrapRunInFont(i)),i=[])};return e.forEach(e=>{r.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(n(),t.push(...this.__wrapSelectionRuns((0,s.toArray)(e.childNodes)))):(i.length&&i[i.length-1].parentNode!==e.parentNode&&n(),i.push(e))}),n(),t}__isOrContainsBlock(e){return!!r.Dom.isBlock(e)||(0,s.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[i]=e;return r.Dom.before(i,t),e.forEach(e=>r.Dom.append(t,e)),t}*wrapInTagGen(e){var t;if((null==(t=this.sel)?void 0:t.rangeCount)&&!this.isInsideArea)return;if(this.isCollapsed()){let t=this.jodit.createInside.element("font",n.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&r.Dom.append(t,e[0]);try{yield t}finally{r.Dom.unwrap(t)}return}let i=this.__ranges().flatMap(e=>this.__wrapSelectionFragments(e));try{for(let e of i){if(this.j.isInDestruct||!r.Dom.isOrContains(this.area,e,!0))continue;let{firstChild:t,lastChild:i}=e;if(t&&t===i&&(0,a.isMarker)(t)){r.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&r.Dom.before(e,t),i&&(0,a.isMarker)(i)&&r.Dom.after(e,i),yield e,r.Dom.unwrap(e)}}finally{i.forEach(e=>r.Dom.unwrap(e))}}wrapInTag(e){let t=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,a.isMarker)(i.firstChild))continue;(0,a.isFunction)(e)?e(i):t.push(r.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(r.Dom.unwrap(i),r.Dom.isEmpty(e)&&r.Dom.unwrap(e))}return t}commitStyle(e){(0,l.assert)((0,s.size)(e)>0,"Need to pass at least one option"),new d.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed()||!this.isInsideArea||!r.Dom.isOrContains(this.area,e,!0)||!r.Dom.isOrContains(e,this.range.startContainer)||t&&!r.Dom.isOrContains(e,t,!0))return null;let i=this.createRange(),o=this.range;i.setStartBefore(e);let s=this.cursorOnTheRight(e,t),a=this.cursorOnTheLeft(e,t),c=this.j.createInside.element("br"),d=this.j.createInside.fake(),u=d.cloneNode();try{if(s||a){t?r.Dom.before(t,c):r.Dom.safeInsertNode(o,c);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(r.Dom.isTag(i,"br")||r.Dom.isEmptyTextNode(i)))r.Dom.safeRemove(i);else break;i=e}};e(c,e=>e.nextSibling),e(c,e=>e.previousSibling),r.Dom.after(c,u),r.Dom.before(c,d),s?(i.setEndBefore(c),o.setEndBefore(c)):(i.setEndAfter(c),o.setEndAfter(c))}else i.setEnd(o.startContainer,o.startOffset);let h=i.extractContents(),p=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,l.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),r.Dom.before(e,h),!t&&s&&(null==c?void 0:c.parentNode)){let e=this.createRange();e.setStartBefore(c),this.selectRange(e)}}catch(e){if(!n.IS_PROD)throw e}let f=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&r.Dom.append(t,c.cloneNode())};f(d),f(u)}finally{r.Dom.safeRemove(d),r.Dom.safeRemove(u)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed()||!this.isInsideArea)return this;let e=this.__isBackward(),t=this.__ranges().map(e=>this.__expandRange(e));return this.__selectRanges(t,e),this}__expandRange(e){let t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return e;let i=t=>{let i=this.j.createInside.fake(),n=e.cloneRange();return n.collapse(t),r.Dom.safeInsertNode(n,i),(0,c.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),o=i(!1);t.setStartAfter(n),t.setEndBefore(o);let a=r.Dom.findSibling(n,!1),l=r.Dom.findSibling(o,!0);if(a!==l){let e=r.Dom.isElement(a)&&r.Dom.isOrContains(a,o),i=!e&&r.Dom.isElement(l)&&r.Dom.isOrContains(l,n);if(e||i){let i=e?a:l,s=i;for(;r.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?r.Dom.isOrContains(i,o):r.Dom.isOrContains(i,n))&&(s=i);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(r.Dom.safeRemove(n,o),t.collapsed)throw(0,s.error)("Selection is collapsed");return t}constructor(e){this.jodit=e,this.__fakeSelections=new WeakMap,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([o.autobind],p.prototype,"createRange",null),h([o.autobind],p.prototype,"focus",null),h([o.autobind],p.prototype,"setCursorAfter",null),h([o.autobind],p.prototype,"setCursorBefore",null),h([o.autobind],p.prototype,"setCursorIn",null)},32526:function(e,t,i){"use strict";i.d(t,{extractSelectedPart:function(){return s}});var n=i(2748),o=i(78116),r=i(37790);function s(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),a(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),a(e,n,!1)}function a(e,t,i){let o=t.extractContents();n.Dom.isEmpty(o)&&o.firstChild&&n.Dom.unwrap(o.firstChild),e.parentNode&&(0,r.call)(i?n.Dom.before:n.Dom.after,e,o)}},49996:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return s}});var n=i(82758),o=i(70799),r=i(38837);class s{setState(e){(0,r.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let i=this.transitions[this.getState()][e];if(i){let e=i.call(this,t);return(0,r.assert)(e&&e!==t,"Action should return new value"),(0,r.assert)((0,o.isString)(e.next),"Value should contain the next state"),(0,r.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),n.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},23738:function(e,t,i){"use strict";i.d(t,{getSuitChild:function(){return s}});var n=i(2748),o=i(29136),r=i(97380);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,o.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,o.isNormalNode,t)&&(0,r.isSuitElement)(e,i,!1)?i:null}},44602:function(e,t,i){"use strict";i.d(t,{getSuitParent:function(){return function e(t,i,s){var a;let{parentNode:l}=i;return l===s||!n.Dom.isHTMLElement(l)||n.Dom.next(i,o.isNormalNode,l)||n.Dom.prev(i,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(l)?e(t,l,s):n.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!n.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!n.Dom.isBlock(l)?e(t,l,s):null}}});var n=i(2748),o=i(29136),r=i(97380)},22030:function(e,t,i){"use strict";i.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return d}});var n=i(82758),o=i(2748),r=i(86068),s=i(3760),a=i(38837),l=i(41180);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,r.isVoid)(n)&&""!==n&&!(0,r.isVoid)(t[i])&&(0,s.normalizeCssValue)(i,t[i]).toString().toLowerCase()===n.toString().toLowerCase()}))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function d(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(n.globalDocument){let e=n.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(d(e,{color:"red"}),"Style test"),(0,a.assert)(!d(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!d(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,i){"use strict";i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return d.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return u.unwrapChildren},wrap:function(){return h.wrap}});var n=i(32526),o=i(49996),r=i(23738),s=i(44602);i(22030);var a=i(64291);i(29136),i(94466);var l=i(97380),c=i(20199);i(82515);var d=i(44253),u=i(75882),h=i(19263);i(6980)},64291:function(e,t,i){"use strict";i.d(t,{isInsideInvisibleElement:function(){return o}});var n=i(2748);function o(e,t){return!!n.Dom.closest(e,["style","script"],t)}},29136:function(e,t,i){"use strict";i.d(t,{isNormalNode:function(){return r}});var n=i(2748),o=i(78116);function r(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},94466:function(e,t,i){"use strict";i.d(t,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var n=i(21496),o=i(43555),r=i(38837),s=i(29960),a=i(22030);function l(e,t){return!(0,n.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>{var n;if("class"===i||"className"===i)return(null!=(n=String(t[i]).match(/[^\t\n\f\r ]+/g))?n:[]).every(t=>e.classList.contains(t));if("style"===i)return(0,a.hasSameStyle)(e,t[i]);let r=t[i];return(0,o.attr)(e,i)===(null==r?r:String(r))}))}function c(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},97380:function(e,t,i){"use strict";i.d(t,{isSuitElement:function(){return s},suitableClosest:function(){return a}});var n=i(2748),o=i(22030),r=i(29136);function s(e,t,i,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:c,elementIsDefault:d,options:u}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,c);return!!(h&&!(d&&i)||(null==(l=u.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,u.attributes.style):(0,o.hasSameStyleKeys)(t,u.attributes.style))&&!e.elementIsList)||!h&&!i&&d&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}},20199:function(e,t,i){"use strict";i.d(t,{toggleOrderedList:function(){return c}});var n=i(2748),o=i(38837),r=i(32526),s=i(44253),a=i(77361),l=i(82515);function c(e,t,i,n){if(!t)return n;let o=t.parentElement;if(!o)return n;let r=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,o);if(void 0!==r)return r;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if("unwrap"!==n){let r="change"===(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0);if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=d(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return c(a.REPLACE,r,e),a.REPLACE}}return c("unwrap",d("unwrap",o,t,i,e),e),"unwrap"}function d(e,t,i,s,l){let c=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return c?((0,o.assert)(n.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,r.extractSelectedPart)(t,i,s),(0,o.assert)(n.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),n.Dom.unwrap(i.parentElement),e===a.REPLACE)?i:n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside)}},82515:function(e,t,i){"use strict";i.d(t,{wrapList:function(){return a}});var n=i(2748),o=i(94466),r=i(44253),s=i(77361);function a(e,t,i){let a=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:n.Dom.replace(t,"li",i.createInside),c=l.previousElementSibling,d=l.nextElementSibling,u=n.Dom.isTag(c,e.element)?c:null;return null!=u||(u=n.Dom.isTag(d,e.element)?d:null),n.Dom.isList(u)&&(0,o.isSameAttributes)(u,e.options.attributes)||(u=i.createInside.element(e.element),(0,r.toggleAttributes)(e,u,i,s.INITIAL),n.Dom.before(l,u)),c===u?n.Dom.append(u,l):n.Dom.prepend(u,l),n.Dom.isTag(u.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(u,u.nextElementSibling)&&(n.Dom.append(u,Array.from(u.nextElementSibling.childNodes)),n.Dom.safeRemove(u.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,"wrap",u,e),u}},44253:function(e,t,i){"use strict";i.d(t,{toggleAttributes:function(){return f}});var n=i(82758),o=i(2748),r=i(580),s=i(27613),a=i(3760),l=i(21496),c=i(43555),d=i(41180),u=i(86583),h=i(77361);let p="toggleAttributes";function f(e,t,i,m,g=!1){var v;if(!g&&e.isApplied(t,p))return m;g||e.setApplied(t,p);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(e=>{var p,f;let v=b[e];switch(e){case"style":p=m,(0,c.assert)((0,s.isPlainObject)(v)&&(0,l.size)(v),"Style must be an object"),Object.keys(v).forEach(e=>{let s=(0,d.cssInline)(t,e),l=v[e];if(""!==s||null!=l){let h,f,m,v;if(null==l||""===l){s&&(g||(0,d.css)(t,e,null),p="change");return}if(h=function(e){var t;if(void 0!==(0,u.dataBind)(e,"shadowRoot"))return(0,u.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),s=n.globalDocument.createElement("iframe");(0,d.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,c.attr)(s,"src","about:blank"),o.Dom.append(i,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,u.dataBind)(e,"shadowRoot",l),l}(i),f=i.create.element("div"),(0,d.css)(f,"color",(0,d.css)(i.editor,"color")),m=i.create.element(t.tagName.toLowerCase()),(0,c.attr)(m,"style",(0,c.attr)(t,"style")),o.Dom.append(f,m),o.Dom.append(h,f),v=(0,d.css)(m,e),o.Dom.safeRemove(f),v===(0,a.normalizeCssValue)(e,l)){if(!s)return;g||(0,d.css)(t,e,null),p="unset";return}p="change",g||(0,d.css)(t,e,l)}}),m=p;break;case"className":case"class":m=function(e,t,i,n,o){var r;(0,c.assert)((0,s.isString)(t),"Class name must be a string");let a=null!=(r=t.match(/[^\t\n\f\r ]+/g))?r:[];if(!a.length)return n;let l=e.e.fire.bind(e.e,`${h._PREFIX}AfterToggleAttribute`);return a.every(e=>i.classList.contains(e))?(n="unset",o||(i.classList.remove(...a),0===i.classList.length&&(0,c.attr)(i,"class",null),l(n,i,"class",(0,c.attr)(i,"class")))):(n="change",o||(i.classList.add(...a),l(n,i,"class",t))),n}(i,v,t,m,g);break;default:let y;f=m,(0,c.assert)((0,s.isString)(v)||(0,s.isNumber)(v)||(0,s.isBoolean)(v)||null==v,"Attribute value must be a string or number or boolean or null"),y=i.e.fire.bind(i.e,`${h._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,e)===(null==v?v:String(v))?(g||(0,c.attr)(t,e,null),f="unset",g||y(f,t,e,v)):(f="change",g||((0,c.attr)(t,e,v),y(f,t,e,v))),m=f}}),!g&&(null==b?void 0:b.style)?(v=m,!(0,c.attr)(t,"style")&&((0,c.attr)(t,"style",null),t.attributes.length||t.tagName.toLowerCase()!==e.defaultTag||(o.Dom.unwrap(t),v="unwrap")),v):m}},75882:function(e,t,i){"use strict";i.d(t,{unwrapChildren:function(){return a}});var n=i(2748),o=i(43555),r=i(22030),s=i(97380);function a(e,t){var i;let a,l=[],c=[],d=null==(i=e.options.attributes)?void 0:i.style,u=Object.keys(null!=d?d:{}),h={};u.forEach(e=>{h[e]=null});let p=t=>{(0,o.css)(t,h),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),!t.attributes.length&&n.Dom.isTag(t,e.element)&&l.push(t)};for(let i of n.Dom.eachGen(t))n.Dom.isContentEditable(i,t)&&((0,s.isSuitElement)(e,i,!0)&&(!d||(0,r.hasSameStyleKeys)(i,d))?(void 0===a&&(a=!0),d?c.push(()=>p(i)):l.push(i)):d&&n.Dom.isHTMLElement(i)&&u.some(e=>""!==(0,o.css)(i,e,!0))?(void 0===a&&(a=!1),c.push(()=>p(i))):n.Dom.isEmptyTextNode(i)||void 0!==a||(a=!1));return c.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},6980:function(e,t,i){"use strict";i.d(t,{wrapUnwrappedText:function(){return r}});var n=i(2748),o=i(78116);function r(e,t,i){let r=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!n.Dom.isTag(a,i.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!n.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!n.Dom.isBlock(a)););return s},l=a(t),c=a(t,"nextSibling"),d=i.s.createRange();d.setStartBefore(l),d.setEndAfter(c);let u=d.extractContents(),h=s.element(e.element);return n.Dom.append(h,u),n.Dom.safeInsertNode(d,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&n.Dom.append(h,s.element("br")),h}},19263:function(e,t,i){"use strict";i.d(t,{wrap:function(){return l}});var n=i(22732),o=i(29960),r=i(41180),s=i(82515),a=i(6980);function l(e,t,i){var l,d,u;let h=(l=e,d=t,u=i,l.elementIsBlock?n.Dom.up(d,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,c)&&!Array.from(e.childNodes).some(e=>n.Dom.isBlock(e)),u.editor)||(0,a.wrapUnwrappedText)(l,d,u):((0,o.attr)(d,"size",null),d));if(e.elementIsList)return(0,s.wrapList)(e,h,i);let p=n.Dom.replace(h,e.element,i.createInside,!0);return e.elementIsBlock&&((0,r.css)(p,"fontSize",null),(0,r.css)(p,"fontWeight",null),(0,o.attr)(p,"style")||(0,o.attr)(p,"style",null)),p}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"]);i.d(t,["WRAP_NODES",0,c])},83632:function(e,t,i){"use strict";i.d(t,{ApplyStyle:function(){return s}});var n=i(63687),o=i(77361),r=i(55307);function s(e,t){var i;let{s:s,editor:a}=e;null==(i=a.firstChild)||i.normalize();let l=s.fakes(),c=s.isCollapsed(),d=o.INITIAL;try{for(let i of s.wrapInTagGen(l)){let o={collapsed:c,mode:d,element:i,next:r.states.START,jodit:e,style:t},s=new n.FiniteStateMachine(r.states.START,r.transactions);for(;!e.isInDestruct&&s.getState()!==r.states.END;)o=s.dispatch("exec",o);d=o.mode}}finally{s.restoreFakes(l)}}},25639:function(e,t,i){"use strict";i.d(t,{CommitStyle:function(){return a}});var n=i(82758),o=i(87058),r=i(77361),s=i(83632);class a{isApplied(e,t){let i=this.__applyMap.get(e);return!!i&&!!i[t]}setApplied(e,t){var i;let n=null!=(i=this.__applyMap.get(e))?i:{};n[t]=!0,this.__applyMap.set(e,n)}get elementIsList(){return!!(this.options.element&&n.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&n.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,i=t?Object.keys(t):[];try{i.forEach(i=>{e.e.on((0,o.camelCase)(r._PREFIX+"_"+i),t[i])}),(0,s.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,o.camelCase)(r._PREFIX+"_"+i),t[i])}),this.__applyMap=new WeakMap}e.isInDestruct||(e.synchronizeValues(),e.e.fire("afterCommitStyle",this))}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,i){"use strict";i.d(t,["INITIAL",0,"initial","REPLACE",0,"replace","_PREFIX",0,"commitStyle"])},55307:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(38837),s=i(63687),a=i(77361);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(e){let{element:t,jodit:i,style:n,mode:r,collapsed:a}=e;if(!o.Dom.isContentEditable(t,i.editor)||(0,s.isInsideInvisibleElement)(t,i.editor)||!a&&o.Dom.isEmptyContent(t))return{...e,next:l.END};let c=(0,s.getSuitParent)(n,t,i.editor)||(0,s.getSuitChild)(n,t);if(c)return{...e,next:l.ELEMENT,element:c};let d=(0,s.suitableClosest)(n,t,i.editor);return n.elementIsList&&o.Dom.isList(d)?{...e,next:l.LIST}:d?{...e,next:l.EXTRACT}:{...e,next:"unwrap"!==r?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==a.INITIAL&&"unwrap"!==r&&r!==a.REPLACE)return{...e,next:l.END};let s=o.Dom.closest(t,"li",i.editor);return s&&o.Dom.closest(t,n.LIST_TAGS,i.editor)?{...e,element:s,next:l.TOGGLE_LIST}:{...e,next:l.END}}},[l.TOGGLE_LIST]:{exec(e){return{...e,mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:l.END}}},[l.EXTRACT]:{exec(e){var t;let{element:i,jodit:n,style:a}=e,c=(0,s.suitableClosest)(a,i,n.editor);return((0,r.assert)(c,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(c))?{...e,next:l.WRAP}:(a.elementIsBlock||(0,s.extractSelectedPart)(c,i,n),{...e,element:c,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,s.unwrapChildren)(i,t)?{...e,mode:"unwrap",next:l.END}:{...e,next:l.WRAP}}},[l.WRAP]:{exec(e){let{element:t,jodit:i,style:n}=e,o=(0,s.wrap)(n,t,i);return{...e,next:n.elementIsList?l.END:l.CHANGE,mode:"wrap",element:o}}},[l.ELEMENT]:{exec(e){let{style:t,element:i,jodit:n}=e;return(0,s.toggleAttributes)(t,i,n,a.INITIAL,!0)!==a.INITIAL?{...e,next:l.CHANGE}:o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,next:l.END}}},[l.CHANGE]:{exec(e){let{style:t,element:i,jodit:n,mode:r}=e,a=(0,s.toggleAttributes)(t,i,n,e.mode);return"wrap"!==r&&"unset"===a&&!i.attributes.length&&o.Dom.isTag(i,t.element)?{...e,next:l.UNWRAP}:{...e,mode:a,next:l.END}}},[l.UNWRAP]:{exec(e){let{element:t,style:i,jodit:n}=e;if(t.attributes.length&&o.Dom.isTag(t,i.element))return{...e,next:l.REPLACE_DEFAULT};let r=t.parentElement;return i.elementIsBlock&&!i.elementIsDefault&&r&&r!==n.editor&&o.Dom.isBlock(r)&&!o.Dom.isTag(r,s.WRAP_NODES)?{...e,next:l.REPLACE_DEFAULT}:(o.Dom.unwrap(t),{...e,mode:"unwrap",next:l.END})}},[l.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),{...e,mode:a.REPLACE,next:l.END}}},[l.END]:{exec(e){return e}}};i.d(t,["states",0,l,"transactions",0,c])},97333:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return a}});var n=i(87058),o=i(2621),r=i(65638),s=i(21162);class a{async set(e,t){let i=await this.provider;return await i.set((0,n.camelCase)(this.prefix+e),t),this}async delete(e){let t=await this.provider;return await t.delete((0,n.camelCase)(this.prefix+e)),this}async get(e){return(await this.provider).get((0,n.camelCase)(this.prefix+e))}async exists(e){return(await this.provider).exists((0,n.camelCase)(this.prefix+e))}async clear(){let e=await this.provider;return await e.clear(),this}async close(){let e=await this.provider;"close"in e&&"function"==typeof e.close&&await e.close()}static makeStorage(e=!1,t,i){let n,l=null==i?void 0:i.defaultProvider;return null!=l?new a(Promise.resolve(n="local"===l?(0,r.canUsePersistentStorage)("localStorage")?new r.LocalStorageProvider("Jodit_"+(t||"")):new s.MemoryStorageProvider:"memory"===l?new s.MemoryStorageProvider:l),t):("localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(n=new r.LocalStorageProvider("Jodit_"+(t||""),e)):("indexedDB"===e||!0===e)&&(n=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider("Jodit_"+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),n||(n=new s.MemoryStorageProvider),new a(Promise.resolve(n),t))}constructor(e,t){this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}}},2621:function(e,t,i){"use strict";i.d(t,{IndexedDBProvider:function(){return o},canUseIndexedDB:function(){return a},clearUseIndexedDBCache:function(){return s}});var n=i(82758);class o{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{t(i.error)},i.onsuccess=()=>{e(i.result)},i.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(e,t){try{let i=(await this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),n=t(i);return new Promise((e,t)=>{n.onsuccess=()=>{e(n.result)},n.onerror=()=>{t(n.error)}})}catch(e){return Promise.reject(e)}}async set(e,t){try{await this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){n.IS_PROD}return this}async delete(e){try{await this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}async get(e){try{return await this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}async exists(e){try{let t=await this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}async clear(){try{await this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(e){}this.dbPromise=null}}async keys(){try{let e=await this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=await e),e.map(e=>String(e))}catch(e){return[]}}async values(){try{let e=await this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=await e),e}catch(e){return[]}}async entries(){try{let[e,t]=await Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let r=null;function s(){r=null}async function a(){if(null!=r)return r;try{if("u"<typeof indexedDB)return r=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return r=await new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return r=!1,!1}}},65638:function(e,t,i){"use strict";i.d(t,{LocalStorageProvider:function(){return n}});class n{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};n[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let i=JSON.parse(t);delete i[e],this.storage.setItem(this.rootKey,JSON.stringify(i))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),i=t?JSON.parse(t):{};return void 0!==i[e]?i[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}}i.d(t,["canUsePersistentStorage",0,(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let i="___Jodit___"+Math.random().toString(),n="sessionStorage"===e?sessionStorage:localStorage;try{n.setItem(i,"1");let o="1"===n.getItem(i);return n.removeItem(i),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}])},21162:function(e,t,i){"use strict";i.d(t,{MemoryStorageProvider:function(){return n}});class n{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(e,t,i){"use strict";i.d(t,{AsyncStorage:function(){return n.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return"Jodit_"},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var n=i(97333),o=i(2621),r=i(65638),s=i(21162),a=i(6700)},6700:function(e,t,i){"use strict";i.d(t,{Storage:function(){return a}});var n=i(87058),o=i(65638),r=i(21162);let s="Jodit_";class a{set(e,t){return this.provider.set((0,n.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,n.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,n.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,n.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,o.canUsePersistentStorage)(e)&&(i=new o.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,o.canUsePersistentStorage)("localStorage")&&(i=new o.LocalStorageProvider(s+(t||""))),i||(i=new r.MemoryStorageProvider),new a(i,t)}constructor(e,t){this.provider=e,this.prefix=s,t&&(this.prefix+=t)}}},70231:function(e,t,i){"use strict";i.d(t,{Dlgs:function(){return a}});var n=i(580),o=i(27613),r=i(37790),s=i(638);class a{dlg(e){let t=(0,n.getPopupViewRoot)(this.o,this.container,this.od.body),i=new s.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...e});return(0,r.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(e,t,i){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,i)}prompt(e,t,i,n,o){return e=l(e,this),t=l(t,this),n=l(n,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,o)}alert(e,t,i,n){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,i){"use strict";i.d(t,{Elms:function(){return o}});var n=i(2748);class o{getElm(e){let t=this.getFullElName(e);return n.Dom.first(this.container,e=>n.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),i=[];return n.Dom.each(this.container,e=>{n.Dom.isHTMLElement(e)&&e.classList.contains(t)&&i.push(e)}),i}}},34176:function(e,t,i){"use strict";i.d(t,{Mods:function(){return o}});var n=i(86068);class o{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},10830:function(e,t,i){"use strict";i.d(t,{Button:function(){return v},UIButton:function(){return g}});var n=i(78213),o=i(33433),r=i(87325),s=i(37133),a=i(2748),l=i(23282),c=i(70799),d=i(38837),u=i(29960),h=i(48538),p=i(12153),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),g=class e extends h.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,d.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,d.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,u.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,u.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,r.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,u.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,u.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,u.attr)(this.container,"data-ref",this.state.name),(0,u.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,u.attr)(this.container,"title",e),(0,u.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,u.attr)(this.container,"aria-label",t),(0,u.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,u.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=p.Icon.makeIcon(this.j,this.state.icon);t&&a.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return a.Dom.append(t,i),a.Dom.append(t,n),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),this.isButton=!0,this.state=m(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(n.STATUSES.ready,()=>{this.setState(t)})}};function v(e,t,i,n){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,n&&(o.state.variant=n),i&&(o.state.text=i)):o.setState(t),o}f([o.cache],g.prototype,"text",null),f([o.cache],g.prototype,"icon",null),f([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),f([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),f([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),f([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),f([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),f([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),f([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),f([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),f([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),f([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),f([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),f([o.cacheHTML],g.prototype,"createContainer",null),f([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=f([r.component],g),i.d(t,["UIButtonState",0,m])},71916:function(e,t,i){"use strict";i.d(t,{UIButtonGroup:function(){return l}});var n=i(87325),o=i(2748),r=i(38837),s=i(10830),a=i(62405);let l=class e extends a.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
|
|
9
9
|
<div class="&__label">~${e.label}~</div>
|
|
10
10
|
<div class="&__options"></div>
|
|
11
11
|
</div>`}appendChildToContainer(e){let t=this.getElm("options");(0,r.assert)(null!=t,"Options does not exist"),o.Dom.append(t,e)}select(e){var t,i;this.elements.forEach((t,i)=>{i===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});let n=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",n),null==(i=(t=this.options).onChange)||i.call(t,n)}constructor(e,t={radio:!0}){var i,n;super(e,null==(i=t.options)?void 0:i.map(t=>{let i=new s.UIButton(e,{text:t.text,value:t.value,variant:"primary"});return i.onAction(()=>{this.select(t.value)}),i}),t),this.options=t,this.select(null!=(n=t.value)?n:0)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},62843:function(e,t,i){"use strict";i.d(t,{Button:function(){return n.Button},UIButton:function(){return n.UIButton},UIButtonGroup:function(){return o.UIButtonGroup},UIButtonState:function(){return n.UIButtonState},UITooltip:function(){return r.UITooltip}});var n=i(10830),o=i(71916),r=i(57340)},57340:function(e,t,i){"use strict";i.d(t,{UITooltip:function(){return m}});var n,o=i(91907),r=i(65478),s=i(22732),a=i(580),l=i(35224),c=i(5700),d=i(43555),u=i(48538),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],f=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],m=n=class e extends u.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(e){s.Dom.append((0,a.getContainer)(this.j,n),this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let e=this.j;e.e.on(e.ow,p,this.__hide).on(f,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,p,this.__hide).off(f,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!s.Dom.isHTMLElement(e.target))return;let t=(0,d.attr)(e.target,"aria-label");if(!t||(0,d.attr)(e.target,"disabled")||!e.target.className.includes("jodit"))return;this.__currentTarget=e.target;let i=e.target;this.__open(()=>{let e=(0,c.position)(i);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),i):this.__show(e,t)}__show(e,t){this.setMod("visible",!0),this.setMod("above",!1),this.getElm("content").innerHTML=t;let i=e(),n=(0,l.getFixedPositionOffset)(this.container);(0,d.css)(this.container,{left:i.x-n.x,top:i.y-n.y});let o=(0,c.position)(this.container),r=this.j.ow.innerHeight;if(o.top+o.height>r){let e=(0,c.position)(this.__currentTarget);this.setMod("above",!0),(0,d.css)(this.container,{top:e.top-o.height-n.y})}}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),s.Dom.detach(this.getElm("content")),(0,d.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(e){super(e),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(o.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}};h([r.autobind],m.prototype,"__onMouseLeave",null),h([r.autobind],m.prototype,"__onMouseEnter",null),h([r.autobind],m.prototype,"__hide",null),h([r.autobind],m.prototype,"__hideDelay",null),m=n=h([r.component],m)},48538:function(e,t,i){"use strict";i.d(t,{UIElement:function(){return h}});var n,o=i(91907),r=i(55153),s=i(2748),a=i(70799),l=i(29960),c=i(14316),d=i(34176),u=i(12153);let h=n=class e extends o.ViewComponent{getRole(){var e;return(null==(e=this.options)?void 0:e.role)||""}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null==(t=this.__parentElement)||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){let t="object"==typeof e?t=>t===e:t=>o.Component.isInstanceOf(t,e),i=this.__parentElement;for(;i;){if(t(i))return i;i=!i.parentElement&&i.container.parentElement?n.closestElement(i.container.parentElement,n):i.parentElement}return null}static closestElement(e,t){let i=s.Dom.up(e,e=>{if(e){let{component:i}=e;return i&&o.Component.isInstanceOf(i,t)}return!1});return i?null==i?void 0:i.component:null}update(){}appendTo(e){return s.Dom.append(e,this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){let t=this.render(e);if((0,a.isString)(t)){let e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>u.Icon.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}destruct(){return s.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(e,t){super(e),this.name="",this.__parentElement=null,this.mods={},this.options=t,this.container=this.createContainer(t);let i=this.getRole();i&&(0,l.attr)(this.container,"role",i),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};h=n=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([(0,r.derive)(d.Mods,c.Elms)],h)},19070:function(e,t,i){"use strict";i.d(t,{UIBlock:function(){return s}});var n=i(87325),o=i(43555),r=i(62405);let s=class e extends r.UIGroup{className(){return"UIBlock"}constructor(e,t,i={align:"left"}){super(e,t),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,o.attr)(this.container,"data-ref",i.ref),(0,o.attr)(this.container,"ref",i.ref)}};s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],s)},86327:function(e,t,i){"use strict";i.d(t,{UIForm:function(){return c}});var n=i(4012),o=i(87325),r=i(43555),s=i(80256),a=i(12234),l=i(62405);let c=class e extends l.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let e of this.allChildren.filter(e=>n.Component.isInstanceOf(e,s.UIInput)))if(!e.validate())return!1;for(let e of this.allChildren.filter(e=>n.Component.isInstanceOf(e,a.UISelect)))if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{let t=this.allChildren.filter(e=>n.Component.isInstanceOf(e,s.UIInput));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){let e=this.j.c.element("form");return e.classList.add(this.componentName),(0,r.attr)(e,"dir",this.j.o.direction||"auto"),(0,r.attr)(e,"novalidate",""),e}constructor(...e){var t,i;super(...e),(null==(t=this.options)?void 0:t.className)&&this.container.classList.add(null==(i=this.options)?void 0:i.className)}};c=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([o.component],c)},2525:function(e,t,i){"use strict";i.d(t,{UIBlock:function(){return n.UIBlock},UICheckbox:function(){return r.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return o.UIForm},UIInput:function(){return r.UIInput},UISelect:function(){return r.UISelect},UITextArea:function(){return r.UITextArea}});var n=i(19070),o=i(86327),r=i(8959)},85120:function(e,t,i){"use strict";i.d(t,{UITextArea:function(){return c}});var n,o=i(65478),r=i(87325),s=i(41180),a=i(80256),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let c=n=class e extends a.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;(0,s.css)(this.nativeInput,"resize",t?"auto":"none"),this.nativeInput.rows=null!=e?e:5}constructor(e,t){super(e,t),this.state={...n.defaultState},Object.assign(this.state,t),!1===this.state.resizable&&(0,s.css)(this.nativeInput,"resize","none")}};c.defaultState={...a.UIInput.defaultState,size:5,resizable:!0},l([(0,o.watch)(["state.size","state.resizable"])],c.prototype,"onChangeStateSize",null),c=n=l([r.component],c)},17328:function(e,t,i){"use strict";i.d(t,{UICheckbox:function(){return l}});var n,o=i(65478),r=i(2748),s=i(80256),a=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let l=n=class e extends s.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,e)):r.Dom.safeRemove(e)}constructor(e,t){super(e,{...t,type:"checkbox"}),this.state={...n.defaultState},Object.assign(this.state,t)}};l.defaultState={...s.UIInput.defaultState,checked:!1,switch:!1},a([(0,o.watch)("state.checked"),(0,o.hook)("ready")],l.prototype,"onChangeChecked",null),a([(0,o.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),a([(0,o.watch)("state.switch"),(0,o.hook)("ready")],l.prototype,"onChangeSwitch",null),l=n=a([o.component],l)},4242:function(e,t,i){"use strict";i.d(t,{UIFileInput:function(){return a}});var n=i(87325),o=i(2748),r=i(10830),s=i(80256);let a=class e extends s.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new r.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),o.Dom.append(t,i),t}createNativeInput(e){return this.j.create.fromHTML(`<input
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<div class="${t("footer")}"></div>
|
|
28
28
|
<div class="${t("resizer")}">${p.Icon.get("resize_handler")}</div>
|
|
29
29
|
</div>
|
|
30
|
-
</div>`),"rtl"===this.options.direction&&((0,u.css)(this.container,"direction","rtl"),(0,u.attr)(this.container,"dir","rtl")),this.o.zIndex&&(0,u.css)(this.container,"zIndex",this.o.zIndex.toString()),(0,u.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,h.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,h.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,h.assert)(null!=r,"header-title element does not exist");let s=this.getElm("content");(0,h.assert)(null!=s,"Content element does not exist");let c=this.getElm("footer");(0,h.assert)(null!=c,"Footer element does not exist");let f=this.getElm("header-toolbar");(0,h.assert)(null!=f,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=s,this.dialogbox_footer=c,this.dialogbox_toolbar=f,(0,u.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let v=l.pluginSystem.get("fullsize");if((0,d.isFunction)(v)&&v(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,h.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}};b.__opened=new Set,b.defaultOptions={...f.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},v([s.autobind],b.prototype,"__onMouseUp",null),v([s.autobind],b.prototype,"__onHeaderMouseDown",null),v([s.autobind],b.prototype,"__onMouseMove",null),v([s.autobind],b.prototype,"__onEsc",null),v([s.autobind],b.prototype,"__onResizerMouseDown",null),v([s.autobind],b.prototype,"close",null),v([(0,s.hook)("ready")],b.prototype,"buildToolbar",null),b=n=v([s.component],b)},638:function(e,t,i){"use strict";i.d(t,{Alert:function(){return n.Alert},Confirm:function(){return o.Confirm},Dialog:function(){return r.Dialog},Prompt:function(){return s.Prompt}});var n=i(71568),o=i(26866),r=i(78584),s=i(36806)},36806:function(e,t,i){"use strict";i.d(t,{Prompt:function(){return l}});var n=i(2748),o=i(23282),r=i(29960),s=i(10830),a=i(78584);function l(e,t,i,l,c){let d=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),u=(0,s.Button)(d,"cancel","Cancel"),h=(0,s.Button)(d,"ok","Ok"),p=d.c.element("form",{class:"jodit-dialog_prompt"}),f=d.c.element("input",{autofocus:!0,class:"jodit-input"}),m=d.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),l&&(0,r.attr)(f,"placeholder",l),n.Dom.append(m,d.c.text(e)),n.Dom.append(p,m),n.Dom.append(p,f),u.onAction(d.close);let g=()=>{i&&(0,o.isFunction)(i)&&!1===i(f.value)||d.close()};return h.onAction(g),d.e.on(p,"submit",()=>(g(),!1)),d.setFooter([h,u]),d.open(p,t||" ",!0,!0),f.focus(),void 0!==c&&c.length&&(f.value=c,f.select()),d}},41457:function(e,t,i){"use strict";var n=i(22732),o=i(29960),r=i(89890),s=i(12153),a=i(32118),l=i(21735),c=i(63399),d=i(44450),u=i(20201),h=i(50050);let p="jodit-file-browser-preview",f=(e="next",t="right")=>`<div class="${p}__navigation ${p}__navigation_arrow_${e}">`+s.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,c.makeContextMenu)(e);return i=>{let s=(0,l.getItem)(i.target,e.container);if(!s)return;let c=s,m=e.options,g=e=>(0,o.attr)(c,e)||"";return e.async.setTimeout(()=>{let v=(0,l.elementToItem)(s,(0,a.elementsMap)(e));v&&(e.state.activeElements=[v],t.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>h.openImageEditor.call(e,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:()=>{e.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:async()=>{try{await (0,d.deleteFile)(e,g("data-name"),g("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,u.loadTree)(e).catch(e.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec:()=>{let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(p,'<div class="jodit-icon_loader"></div>'),s=e.c.div(p+"__box"),a=e.c.fromHTML(f()),l=e.c.fromHTML(f("prev","left")),d=r=>{let d=e.c.element("img");(0,o.attr)(d,"src",r);let u=()=>{var o;e.isInDestruct||(e.e.off(d,"load"),n.Dom.detach(i),m.showPreviewNavigation&&(n.Dom.prevWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,l),n.Dom.nextWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,a)),n.Dom.append(i,s),n.Dom.append(s,d),t.setPosition(),null==(o=null==e?void 0:e.events)||o.fire("previewOpenedAndLoaded"))};e.e.on(d,"load",u),d.complete&&u()};e.e.on([a,l],"click",function(){if(!(c=this===a?n.Dom.nextWithClass(c,e.files.getFullElName("item")):n.Dom.prevWithClass(c,e.files.getFullElName("item"))))throw(0,r.error)("Need element");n.Dom.detach(i),n.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',d(g("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(p+"__dialog"),t.setContent(i),t.setPosition(),t.open(),d(g("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"
|
|
30
|
+
</div>`),"rtl"===this.options.direction&&((0,u.css)(this.container,"direction","rtl"),(0,u.attr)(this.container,"dir","rtl")),this.o.zIndex&&(0,u.css)(this.container,"zIndex",this.o.zIndex.toString()),(0,u.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,h.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,h.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,h.assert)(null!=r,"header-title element does not exist");let s=this.getElm("content");(0,h.assert)(null!=s,"Content element does not exist");let c=this.getElm("footer");(0,h.assert)(null!=c,"Footer element does not exist");let f=this.getElm("header-toolbar");(0,h.assert)(null!=f,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=s,this.dialogbox_footer=c,this.dialogbox_toolbar=f,(0,u.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let v=l.pluginSystem.get("fullsize");if((0,d.isFunction)(v)&&v(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,h.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}};b.__opened=new Set,b.defaultOptions={...f.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},v([s.autobind],b.prototype,"__onMouseUp",null),v([s.autobind],b.prototype,"__onHeaderMouseDown",null),v([s.autobind],b.prototype,"__onMouseMove",null),v([s.autobind],b.prototype,"__onEsc",null),v([s.autobind],b.prototype,"__onResizerMouseDown",null),v([s.autobind],b.prototype,"close",null),v([(0,s.hook)("ready")],b.prototype,"buildToolbar",null),b=n=v([s.component],b)},638:function(e,t,i){"use strict";i.d(t,{Alert:function(){return n.Alert},Confirm:function(){return o.Confirm},Dialog:function(){return r.Dialog},Prompt:function(){return s.Prompt}});var n=i(71568),o=i(26866),r=i(78584),s=i(36806)},36806:function(e,t,i){"use strict";i.d(t,{Prompt:function(){return l}});var n=i(2748),o=i(23282),r=i(29960),s=i(10830),a=i(78584);function l(e,t,i,l,c){let d=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),u=(0,s.Button)(d,"cancel","Cancel"),h=(0,s.Button)(d,"ok","Ok"),p=d.c.element("form",{class:"jodit-dialog_prompt"}),f=d.c.element("input",{autofocus:!0,class:"jodit-input"}),m=d.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),l&&(0,r.attr)(f,"placeholder",l),n.Dom.append(m,d.c.text(e)),n.Dom.append(p,m),n.Dom.append(p,f),u.onAction(d.close);let g=()=>{i&&(0,o.isFunction)(i)&&!1===i(f.value)||d.close()};return h.onAction(g),d.e.on(p,"submit",()=>(g(),!1)),d.setFooter([h,u]),d.open(p,t||" ",!0,!0),f.focus(),void 0!==c&&c.length&&(f.value=c,f.select()),d}},41457:function(e,t,i){"use strict";var n=i(22732),o=i(29960),r=i(89890),s=i(12153),a=i(32118),l=i(21735),c=i(63399),d=i(44450),u=i(20201),h=i(50050);let p="jodit-file-browser-preview",f=(e="next",t="right")=>`<div class="${p}__navigation ${p}__navigation_arrow_${e}">`+s.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,c.makeContextMenu)(e);return i=>{let s=(0,l.getItem)(i.target,e.container);if(!s)return;let c=s,m=e.options,g=e=>(0,o.attr)(c,e)||"";return e.async.setTimeout(()=>{let v=(0,l.elementToItem)(s,(0,a.elementsMap)(e));v&&(e.state.activeElements=[v],t.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>h.openImageEditor.call(e,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:()=>{e.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:async()=>{try{await (0,d.deleteFile)(e,g("data-name"),g("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,u.loadTree)(e).catch(e.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec:()=>{let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(p,'<div class="jodit-icon_loader"></div>'),s=e.c.div(p+"__box"),a=e.c.fromHTML(f()),l=e.c.fromHTML(f("prev","left")),d=r=>{let d=e.c.element("img");(0,o.attr)(d,"src",r);let u=()=>{var o;e.isInDestruct||(e.e.off(d,"load"),n.Dom.detach(i),m.showPreviewNavigation&&(n.Dom.prevWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,l),n.Dom.nextWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,a)),n.Dom.append(i,s),n.Dom.append(s,d),t.setPosition(),null==(o=null==e?void 0:e.events)||o.fire("previewOpenedAndLoaded"))};e.e.on(d,"load",u),d.complete&&u()};e.e.on([a,l],"click",function(){if(!(c=this===a?n.Dom.nextWithClass(c,e.files.getFullElName("item")):n.Dom.prevWithClass(c,e.files.getFullElName("item"))))throw(0,r.error)("Need element");n.Dom.detach(i),n.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',d(g("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(p+"__dialog"),t.setContent(i),t.setPosition(),t.open(),d(g("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"download",title:"Download",exec:()=>{let t=g("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},32118:function(e,t,i){"use strict";let n=new WeakMap;i.d(t,["elementsMap",0,e=>{let t=n.get(e);return t||(t={},n.set(e,t)),t}])},159:function(e,t,i){"use strict";i.d(t,{FileBrowserItem:function(){return o}});var n=i(21537);class o{static create(e){return e instanceof o?e:new o(e)}get path(){return(0,n.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let e=this.time||new Date().getTime().toString(),{thumbIsAbsolute:t,source:i,thumb:o,file:r}=this.data,s=o||r;return t&&s?s:(0,n.normalizeUrl)(i.baseurl,i.path,s||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data,{file:t,fileIsAbsolute:i,source:o}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,n.normalizeUrl)(o.baseurl,o.path,e||"")}get time(){let{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){let e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(e){this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}}},21735:function(e,t,i){"use strict";var n=i(2748);i.d(t,["elementToItem",0,(e,t)=>{let{key:i}=e.dataset,{item:n}=t[i||""];return n},"getItem",0,(e,t,i="a")=>n.Dom.closest(e,e=>n.Dom.isTag(e,i),t)])},61251:function(e,t,i){"use strict";i(57459);var n=i(2748),o=i(27613),r=i(38420),s=i(4242),a=i(6441);a.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter(e,t){return(t=t.toLowerCase(),(0,o.isString)(e))?-1!==e.toLowerCase().indexOf(t):(0,o.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,o.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort(e,t,i){let[n,s]=i.toLowerCase().split("-"),a="asc"===s,l=(e,t)=>t>e?a?-1:1:e>t?a?1:-1:0;if((0,o.isString)(e))return l(e.toLowerCase(),t.toLowerCase());if(void 0===e[n]||"name"===n)return(0,o.isString)(e.name)?l(e.name.toLowerCase(),t.name.toLowerCase()):(0,o.isString)(e.file)?l(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(e.changed).getTime(),n=new Date(t.changed).getTime();return a?i-n:n-i}case"size":{let i=(0,r.humanSizeToBytes)(e.size),n=(0,r.humanSizeToBytes)(t.size);return a?i-n:n-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,o.isArray)(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){let n=this.options,o=this.files.getFullElName("item"),r=n.showFileName,s=n.showFileSize&&e.size,a=n.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);let c=`<div class="${o}-info">${r?`<span class="${o}-info-filename">${l}</span>`:""}${s?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a
|
|
31
31
|
data-jodit-file-browser-item="true"
|
|
32
32
|
data-is-file="${+!e.isImage}"
|
|
33
33
|
draggable="true"
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<div class="&__spinner"></div>
|
|
126
126
|
</div>
|
|
127
127
|
</div>
|
|
128
|
-
</div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[n,(0,s.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,"ai-assistant","").onAction(n),this.__tryAgainButton=(0,a.Button)(e,"update","","initial").onAction(n),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let o=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,o.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,o.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),c([(0,o.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),c([(0,o.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=c([n.component],d)},25187:function(e,t,i){"use strict";i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(26551),i(72253),i(65735),i(83671),i(3115)},93183:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),d=i(14630);class u extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),(0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,u=i.createInside.text(n.INVISIBLE_SPACE);try{if(o.Dom.safeInsertNode(a,u),!o.Dom.isOrContains(i.editor,u))return;if(i.e.fire("backSpaceBeforeCases",e,u))return!1;(0,l.moveNodeInsideStart)(i,u,e);let r=i.o.delete.disableCases;if(d.casesMap.some(([o,a])=>{if(!(r&&r.has(o))&&(0,s.isFunction)(a)&&a(i,u,e,t))return n.IS_PROD,!0}))return!1}catch(e){throw n.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,u),this.safeRemoveEmptyNode(u)}return!1}safeRemoveEmptyNode(e){var t,i;let{range:n}=this.j.s;n.startContainer===e&&(e.previousSibling?o.Dom.isText(e.previousSibling)?n.setStart(e.previousSibling,null!=(i=null==(t=e.previousSibling.nodeValue)?void 0:t.length)?i:0):n.setStartAfter(e.previousSibling):e.nextSibling&&(o.Dom.isText(e.nextSibling)?n.setStart(e.nextSibling,0):n.setStartBefore(e.nextSibling)),n.collapse(!0),this.j.s.selectRange(n)),o.Dom.safeRemove(e)}}u.requires=["hotkeys"],r.pluginSystem.add("backspace",u)},62845:function(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:function(){return s}});var n=i(82758),o=i(2748),r=i(63785);function s(e,t,i){let r=t,s=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)s=r=r.parentElement;if(o.Dom.isElement(s)&&o.Dom.isContentEditable(s,e.editor)){var l,c;let r,d,u,h=o.Dom.findNotEmptySibling(s,i);if(o.Dom.isTag(h,"br"))return o.Dom.safeRemove(h),e.s.setCursorBefore(t),!0;if(h&&(l=s,c=h,r=o.Dom.isTag(c,n.LIST_TAGS),d=o.Dom.isTag(l,n.LIST_TAGS),u=(e,t)=>t?e.firstElementChild:e.lastElementChild,(d?(c=e.createInside.element(e.o.enterBlock),o.Dom.before(l,c),a(e,u(l,i),c,i)):!!c&&!!r&&!d&&a(e,l,u(c,!i),i))||a(e,s,function(e,t){if(!o.Dom.isTag(e,"table"))return e;let i=[];return o.Dom.each(e,e=>{o.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(h,i),i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,n){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!n,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&o.Dom.isEmpty(s);){let e=s.parentElement;o.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:function(){return s}});var n=i(2748),o=i(37790),r=i(63785);function s(e,t,i){let s=n.Dom.findSibling(t,i),a=n.Dom.findSibling(t,!i);if(!n.Dom.closest(t,n.Dom.isElement,e.editor)&&n.Dom.isList(s)&&n.Dom.isList(a)&&n.Dom.isTag(s.lastElementChild,"li")&&n.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,d=s.lastElementChild,u=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,u,t),n.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),n.Dom.safeRemove(a),(0,o.call)(i?n.Dom.append:n.Dom.prepend,d,t),(0,o.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){"use strict";function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:function(){return n}})},73792:function(e,t,i){"use strict";i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var c,d,u,h;let p,f=s?-1:1,m=o.Dom.sibling(i,!s),g=o.Dom.sibling(i,s),v=null,b=!1;for(g||(g=a(i,s,t.editor));g&&(o.Dom.isText(g)||o.Dom.isInlineBlock(g));){for(;o.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if((null==(c=g.nodeValue)?void 0:c.length)&&(p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===n.INVISIBLE_SPACE)for(;a[c]===n.INVISIBLE_SPACE;)c+=i;let d=a[c];if(a[c+i]===n.INVISIBLE_SPACE){for(c+=i;a[c]===n.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=n.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),d}(g,s,f,m),!g.nodeValue.length&&o.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=n.INVISIBLE_SPACE)),(null==(d=g.nodeValue)?void 0:d.length)||(v=g),!(0,r.isVoid)(p)&&p!==n.INVISIBLE_SPACE){u=g,h=p,(0,r.call)(s?o.Dom.after:o.Dom.before,u,i),("sentence"===l||"word"===l&&" "!==h&&h!==n.NBSP_SPACE)&&e(t,i,s,l),b=!0;break}let y=a(g,s,t.editor);v&&(o.Dom.safeRemove(v),v=null),g=y}return v&&o.Dom.safeRemove(v),b&&(function(e){let t=e.parentElement;for(;t&&o.Dom.isInlineBlock(t)&&o.Dom.isTag(t,"a");){let i=t.parentElement;o.Dom.isEmpty(t)&&(o.Dom.after(t,e),o.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&o.Dom.isBlock(i.parentElement)&&o.Dom.each(i.parentElement,o.Dom.isEmptyTextNode)&&o.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),b}}});var n=i(82758),o=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let n=o.Dom.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==i&&(n=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&o.Dom.closest(e,"li",i)!==o.Dom.closest(n,"li",i)?null:n}},87536:function(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:function(){return s}});var n=i(22732),o=i(21537),r=i(45124);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=n.Dom.findSibling(t.parentElement,i)),!(!n.Dom.isElement(s)||n.Dom.isContentEditable(s,e.editor))&&((0,o.call)(i?n.Dom.before:n.Dom.after,s,t),n.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},12474:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:function(){return o}});var n=i(2748);function o(e,t,i){let o=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!o)return!1;let r=n.Dom.findNotEmptySibling(o,i);return!!(r&&n.Dom.isEmpty(r))&&(n.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:function(){return s}});var n=i(82758),o=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!c||!o.Dom.isEmpty(c))return!1;let d=o.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&o.Dom.isEmpty(c)&&!o.Dom.isCell(c)){o.Dom.after(c,t);let i=o.Dom.closest(c,e=>o.Dom.isElement(e)&&e!==c,e.editor);o.Dom.safeRemove(c),s=!0,c=i}else break;while(c);return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!d||o.Dom.isText(d)||o.Dom.isTag(d,n.INSEPARABLE_TAGS)?a(t):l(d,!i),s)}},56825:function(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var n=i(82758),o=i(2748),r=i(58940);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(s)&&(o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isEmpty(s)))&&(o.Dom.safeRemove(s),o.Dom.isTag(s,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){"use strict";i.d(t,{checkTableCell:function(){return o}});var n=i(2748);function o(e,t){let i=t.parentElement;return!!n.Dom.isCell(i)}},68034:function(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:function(){return r}});var n=i(2748),o=i(43555);function r(e,t,i){var r;let s=n.Dom.closest(t,n.Dom.isElement,e.editor),{s:a}=e;if(n.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?n.Dom.before:n.Dom.after,r,l),n.Dom.moveContent(s,l),n.Dom.safeRemove(s),n.Dom.isEmpty(r)&&n.Dom.safeRemove(r),(0,o.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},14630:function(e,t,i){"use strict";var n=i(62845),o=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),d=i(90240),u=i(68034);let h=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",d.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",o.checkJoinTwoLists],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",u.checkUnwrapFirstListItem]];h.map(([,e])=>e),i.d(t,["casesMap",0,h])},32496:function(e,t,i){"use strict";i(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:function(){return o},getMoveFilter:function(){return r}});var n=i(22732);function o(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=n.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&n.Dom.isElement(a)&&!n.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a);return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},41107:function(e,t,i){"use strict";var n=i(580),o=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),d=i(89758),u=i(98527),h=i(51855);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r={...n.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",d.default).set("superscript",u.default).set("underline",h.default)},73674:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},n.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},n.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(e,t)=>{let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&o.classList.contains(t.control.args[0].toString()))}return!1},isActive:(e,t)=>{let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{o.classList.contains(e)&&(r=!0)}),!!(o&&o!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class d extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,n)=>(e.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}o.pluginSystem.add("classSpan",d),a.Icon.set("class-span",c.default)},31151:function(e,t){"use strict";t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(e,t,i){"use strict";var n=i(65478),o=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(59498),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,c.getHash)(this.j.o.cleanHTML.allowTags),i=(0,c.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,c.visitNodeWalker)(e,n,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,c.removeFormatForCollapsedSelection)(this.j):(0,c.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),o.Dom.safeRemove(i),!1}onAfterGetValueFromEditor(e){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(e.value.trim())&&(e.value="")}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}d([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),d([(0,n.hook)("ready")],u.prototype,"startWalker",null),d([(0,n.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),d([(0,n.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),d([(0,n.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),d([(0,n.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",u)},46776:function(e,t,i){"use strict";var n=i(12153),o=i(6441),r=i(44330);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},n.Icon.set("eraser",r.default)},44330:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(e,t,i){"use strict";i.d(t,{getHash:function(){return r}});var n=i(70799),o=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,n.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let n=t.exec(e),a={};if(n){let e=n[2].split(i);n[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[n[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){"use strict";i.d(t,{getHash:function(){return n.getHash},removeFormatForCollapsedSelection:function(){return o.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},visitNodeWalker:function(){return s.visitNodeWalker}});var n=i(83447),o=i(84272),r=i(42312),s=i(39516)},15908:function(e,t,i){"use strict";i.d(t,{isAllowedMediaEmbed:function(){return r}});let n=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,o=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return n.test(e)||o.test(e)}},84272:function(e,t,i){"use strict";i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var n=i(82758),o=i(2748);function r(e,t){let{s:i}=e,n=t;if(!n){n=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,n),t.collapse()}let r=o.Dom.furthest(n,s,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,n);else if(i.cursorOnTheRight(r))o.Dom.after(r,n);else{let e=i.splitSelection(r);e&&o.Dom.after(e,n)}t||(i.setCursorBefore(n),o.Dom.safeRemove(n))}function s(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,n.INSEPARABLE_TAGS)}},42312:function(e,t,i){"use strict";i.d(t,{removeFormatForSelection:function(){return s}});var n=i(2748),o=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),d=s.fake(),u=s.fake();l.collapse(!0),c.collapse(!1),n.Dom.safeInsertNode(l,d),n.Dom.safeInsertNode(c,u),a.setStartBefore(d),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d),a.setEndAfter(u),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u);let h=[];n.Dom.between(d,u,e=>{(0,r.isInlineBlock)(e)&&!n.Dom.isTag(e,"a")&&h.push(e),n.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),h.forEach(e=>n.Dom.unwrap(e));let p=(e,t)=>{if(!n.Dom.findNotEmptySibling(e,t)){let n=e.parentNode;if(n&&n!==i&&(0,o.attr)(n,"style"))return(0,o.attr)(n,"style",null),p(n,t),!0}};p(d,!0)&&p(u,!1),a.setStartAfter(d),a.setEndBefore(u),t.selectRange(a),n.Dom.safeRemove(d),n.Dom.safeRemove(u)}},82558:function(e,t,i){"use strict";i.d(t,{allowAttributes:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i,r){let s=r&&n.Dom.isElement(t)&&r[t.nodeName];if(r&&n.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let n=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||n.push(e[t].name)}n.length&&(i=!0),n.forEach(e=>{(0,o.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){"use strict";i.d(t,{convertUnsafeEmbeds:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!n.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,o.attr)(t,"data")||(0,o.attr)(t,"src")||(0,o.attr)(t,"movie")||"";if(!a)return n.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,o.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,o.attr)(t,"width"),height:(0,o.attr)(t,"height")}),n.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:function(){return s}});var n=i(82758),o=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,n.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return o.Dom.append(t,i),!0}return i}},45235:function(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return o.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return d.sandboxIframesInContent},sanitizeAttributes:function(){return u.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var n=i(82558),o=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),d=i(85978),u=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:function(){return o}});var n=i(2748);function o(e,t,i,o,r,s){return n.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){"use strict";i.d(t,{removeInvTextNodes:function(){return r}});var n=i(82758),o=i(2748);function r(e,t,i,r,s,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},80973:function(e,t,i){"use strict";i.d(t,{replaceOldTags:function(){return o}});var n=i(2748);function o(e,t,i){let o=function(e,t,i){if(!i||!n.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?n.Dom.replace(t,o,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==o||i}},95614:function(e,t,i){"use strict";i.d(t,{safeLinksTarget:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,o.attr)(t,"target"))return i;let r=((0,o.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,o.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){"use strict";i.d(t,{sandboxIframesInContent:function(){return s}});var n=i(2748),o=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,o.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){"use strict";i.d(t,{sanitizeAttributes:function(){return r}});var n=i(2748),o=i(21537);function r(e,t,i){if(!n.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){"use strict";i.d(t,{sanitizeStyles:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!n.Dom.isElement(t))return i;let s=(0,o.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],n=t["*"];if(!i&&!n)return null;let o=new Set;if(n)for(let e of n)o.add(e.toLowerCase());if(i)for(let e of i)o.add(e.toLowerCase());return o}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,o.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){"use strict";i.d(t,{tryRemoveNode:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,d){return!function(e,t,i,l,c){if(!o.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let d=e.s.isCollapsed()?e.s.range.startContainer:null;return o.Dom.isElement(t)&&null!=t.nodeName.match(n.IS_INLINE)&&!o.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!o.Dom.isOrContains(t,i))&&(null==d||!o.Dom.isOrContains(t,d))}(e,t,d,l,c)?i:(o.Dom.safeRemove(t),!0)}},39516:function(e,t,i){"use strict";i.d(t,{visitNodeWalker:function(){return s}});var n=i(82758),o=i(45235);let r=Object.keys(o);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let d of r)if(!(c&&c.has(d))&&(l=(0,o[d])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){"use strict";var n=i(82758),o=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,t=>{var i;let o=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let n=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=n,n=e.outerHTML,i=i.parentElement}return n}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(n.TEXT_PLAIN,(0,a.stripTags)(o)),s.setData(n.TEXT_HTML,o)),e.buffer.set(n.CLIPBOARD_ID,o),e.e.fire("pasteStack",{html:o,action:e.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",o)})}destruct(e){var t,i;null==(t=(0,o.cached)(e,"buffer"))||t.set(n.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+n.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){"use strict";var n=i(12153),o=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){"use strict";t.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(e,t){"use strict";t.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(e,t,i){"use strict";var n=i(580),o=i(21537);i(21988),n.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,n)=>{var r;let s=(0,o.normalizeColor)(n)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){"use strict";var n=i(2748),o=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup:(e,t,i)=>{if(!(0,o.isJoditObject)(e))return;let n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{n.forEach(e=>{(0,o.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(n[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,n)=>!!n&&n!==(0,o.css)(e.editor,i).toString()&&(t.state.icon.fill=n,!0);if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=n.Dom.closest(s,n.Dom.isElement,e.editor)||e.editor,i=r("color",(0,o.css)(t,"color").toString()),a=r("background-color",(0,o.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup:(e,t,i,r)=>{let s="",l="",c,d=null;return t&&t!==e.editor&&n.Dom.isNode(t)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),n.Dom.up(t,e=>{if(n.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,o.css)(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,o.css)(d,"color",t):e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(e,c,d)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),s=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t)&&n.Dom.isElement(t))switch(r){case"color":(0,o.css)(t,"color",s);break;case"background":(0,o.css)(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let d="copy-format",u=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,n)=>{let o=(0,r.css)(i,t);return o===n[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,n):void 0),o};a.Config.prototype.controls.copyformat={exec:(e,t,{button:i})=>{if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();n.Dom.append(e.editor,a),u.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&u.forEach(t=>{i[t]=h(e,t,s,o),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(n.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},o.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},63819:function(e){"use strict";e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){"use strict";e.exports={"copy-format":"Kop\xedrovat form\xe1t"}},74551:function(e){"use strict";e.exports={"copy-format":"Format kopierenт"}},2536:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},52285:function(e){"use strict";e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){"use strict";e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){"use strict";e.exports={"copy-format":"Format de copie"}},28435:function(e){"use strict";e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){"use strict";e.exports={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},96457:function(e){"use strict";e.exports={"copy-format":"salin format"}},23914:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return d},hu:function(){return u},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return v},pl:function(){return b},pt_br:function(){return y},ru:function(){return w},tr:function(){return _},zh_cn:function(){return k},zh_tw:function(){return C}});var n=i(63819),o=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),d=i(28435),u=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),w=i(60629),_=i(68278),k=i(1172),C=i(4164)},33561:function(e){"use strict";e.exports={"copy-format":"Copia il formato"}},96545:function(e){"use strict";e.exports={"copy-format":"copyformat"}},52230:function(e){"use strict";e.exports={"copy-format":"복사 형식"}},33307:function(e){"use strict";e.exports={"copy-format":"Формат хуулах"}},71042:function(e){"use strict";e.exports={"copy-format":"opmaak kopi\xebren"}},32172:function(e){"use strict";e.exports={"copy-format":"format kopii"}},39179:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},60629:function(e){"use strict";e.exports={"copy-format":"Копировать формат"}},68278:function(e){"use strict";e.exports={"copy-format":"Kopyalama Bi\xe7imi"}},1172:function(e){"use strict";e.exports={"copy-format":"复制格式"}},4164:function(e){"use strict";e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(21537),s=i(49055),a=i(50911);let l=new Set(["img","table","jodit","iframe","hr"]);class c extends a.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&n.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,s.trim)(e.editor.textContent||"")&&!n.Dom.first(e.editor,e=>n.Dom.isTag(e,l))&&(!t||!n.Dom.closest(t,"table",e.editor))){n.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let o=n.Dom.findSibling(i,!0),r=n.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,o,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,o,i,t),this.__addBrInEmptyBlock(i,r,t),n.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!n.Dom.isList(i)&&!n.Dom.isTag(i,"table")&&n.Dom.isBlock(i)&&n.Dom.isBlock(t)&&(n.Dom.append(t,e),n.Dom.moveContent(i,t),n.Dom.safeRemove(i)),n.Dom.isList(i)&&n.Dom.isLeaf(i.firstElementChild)&&n.Dom.isEmpty(i.firstElementChild)&&n.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!n.Dom.isList(e))return e;let t=e.lastElementChild;return n.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),n.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let o=this.j;if(e.isConnected&&n.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=o.createInside.element("br");n.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(n.Dom.isTag(t,"table")){let e=(0,r.$$)("td,th",t).shift();n.Dom.isCell(e)&&n.Dom.isEmpty(e)&&n.Dom.append(e,o.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,o){var r;if(!t||!n.Dom.isText(t)){let t=null!=(r=n.Dom.closest(i,n.Dom.isBlock,e.editor))?r:e.editor,s=n.Dom.prev(i,n.Dom.isText,t);s&&(o.setStartAfter(s),o.collapse(!0),n.Dom.safeRemove(i))}}}c.requires=["backspace"],o.pluginSystem.add("deleteCommand",c)},44586:function(e,t,i){"use strict";i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){"use strict";var n,o,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(n=o||(o={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class u extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>o.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>o.IDLE)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),n=s.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);n&&(s.Dom.isTag(n.parentElement,"a")&&n.parentElement.firstChild===n&&n.parentElement.lastChild===n&&(n=n.parentElement),this.startDragging(n,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=o.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===o.IDLE)return;let n=e.clientX,r=e.clientY;if(!(this.state===o.WAIT_DRAGGING&&Math.sqrt(Math.pow(n-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)){if(this.state===o.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=o.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let n=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!=(t=null==n?void 0:n.offsetWidth)?t:100,height:null!=(i=null==n?void 0:n.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,u),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=o.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<o.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=o.IDLE}}d([r.autobind],u.prototype,"onStartDragElement",null),d([r.autobind],u.prototype,"onDragStart",null),d([(0,r.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([r.autobind],u.prototype,"onDragEnd",null),d([r.autobind],u.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",u)},19271:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(n.TEXT_HTML)||t.getData(n.TEXT_PLAIN):null}}}d([o.autobind],u.prototype,"onDragStart",null),d([(0,o.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([o.autobind],u.prototype,"onDragEnd",null),d([o.autobind],u.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",u)},46124:function(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(94870)},94870:function(e,t,i){"use strict";i.d(t,{removeExtraBr:function(){return r}});var n=i(2748);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||n.Dom.isTag(t,"br"))return;let i=n.Dom.furthest(t,n.Dom.isBlock,e.editor);if(i&&!n.Dom.isTag(i,o)){let i=n.Dom.isTag(t,"br")?t:n.Dom.findNotEmptySibling(t,!1);if(!n.Dom.isTag(i,"br")||n.Dom.findNotEmptySibling(i,!1))return;e.s.setCursorBefore(i),n.Dom.safeRemove(i)}}},78720:function(e,t,i){"use strict";i.d(t,{checkBlockNesting:function(){return o}});var n=i(2748);function o(e,t){var i,o;if(n.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&n.Dom.isBlock(t)){let t=null,r=null!=(o=null==(i=e.s.current())?void 0:i.parentElement)?o:null;for(;r&&r!==e.editor;){if(n.Dom.isBlock(r)){if(e.o.dtd.blockLimits[r.nodeName.toLowerCase()])break;t=r}r=r.parentElement}t&&(e.s.setCursorAfter(t),n.Dom.isEmpty(t)&&n.Dom.safeRemove(t))}}},43267:function(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(78720)},9045:function(e,t,i){"use strict";i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){"use strict";var n=i(37133),o=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,n.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,n.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),o.pluginSystem.add("dtd",c)},575:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class d extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===n.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?n.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===n.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let n=(0,c.getBlockWrapper)(i,t),o=r.Dom.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey))return!1;if(n||(0,c.hasPreviousBlock)(i,t)||(n=(0,c.wrapText)(i,t)),!n)return(0,c.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return(0,c.processEmptyLILeaf)(i,t,n),!1;(0,c.splitFragment)(i,t,n)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",d)},41872:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return s}});var n=i(82758),o=i(2748),r=i(26395);function s(e,t,i){let s=!!o.Dom.closest(e,["pre","blockquote"],t.editor),l=!s&&o.Dom.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===n.BR.toLowerCase()||l||i&&!s||!i&&s){var c;let i;if(s&&(i=a(a(c=e)))&&(o.Dom.safeRemove(a(c)),o.Dom.safeRemove(i),1))return!1;let n=t.createInside.element("br");if(o.Dom.before(e,n),!o.Dom.findNotEmptySibling(n,!1)){let t=n.cloneNode();o.Dom.after(n,t),o.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(n,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:function(){return o}});var n=i(2748);function o(e,t,i){return!!n.Dom.canSplitBlock(i)||(n.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){"use strict";i.d(t,{getBlockWrapper:function(){return function e(t,i,r=n.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(o.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a);return null}}});var n=i(82758),o=i(2748)},19057:function(e,t,i){"use strict";i.d(t,{hasPreviousBlock:function(){return o}});var n=i(2748);function o(e,t){return!!n.Dom.prev(e,e=>n.Dom.isBlock(e)||n.Dom.isImage(e),t.editor)}},35399:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return o.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return d.splitFragment},wrapText:function(){return u.wrapText}});var n=i(41872),o=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),d=i(54600),u=i(5287)},44245:function(e,t,i){"use strict";i.d(t,{insertParagraph:function(){return s}});var n=i(2748),o=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),d=l.element("br");return a||n.Dom.append(c,d),s&&s.cssText&&(0,o.attr)(c,"style",s.cssText),n.Dom.after(e,c),n.Dom.before(a?c:d,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:function(){return o}});var n=i(2748);function o(e,t,i){let{s:o}=e,r=n.Dom.closest(t,i,e.editor);r&&(o.cursorOnTheRight(r,t)?n.Dom.after(r,t):o.cursorOnTheLeft(r,t)&&n.Dom.before(r,t))}},65181:function(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:function(){return s}});var n=i(2748),o=i(76078),r=i(44245);function s(e,t,i){let s=n.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=n.Dom.isLeaf(a),c=l?a:s,d=t.s.createRange();d.setStartAfter(i),d.setEndAfter(s);let u=d.extractContents();n.Dom.after(c,e),n.Dom.safeRemove(i),(0,o.$$)("li",s).length||n.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);n.Dom.first(u,e=>n.Dom.isTag(e,"li"))&&(l?n.Dom.append(h,u):n.Dom.after(h,u))}},54600:function(e,t,i){"use strict";i.d(t,{splitFragment:function(){return s}});var n=i(2748),o=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=n.Dom.isLeaf(i),d=i.tagName.toLowerCase()===l||c,u=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!d&&(u||h)){u?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!u&&n.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,o.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){"use strict";i.d(t,{wrapText:function(){return o}});var n=i(2748);function o(e,t){let i=e;n.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=n.Dom.wrapInline(i,t.o.enter,t);if(n.Dom.isEmpty(o)){let i=t.createInside.element("br");n.Dom.append(o,i),n.Dom.before(i,e)}return o}},11317:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(29960),s=i(6441),a=i(92762);s.Config.prototype.controls.file={popup:(e,t,i)=>{let o=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(s=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser:e=>{e.files&&e.files.forEach(t=>o(e.baseurl+t)),i()},upload:!0,url:(e,t)=>{s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):o(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(6441);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,o.pluginSystem.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.isEditorMode()&&e.s.restore()});let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=n.Dom.first(e.editor,e=>n.Dom.isText(e));break;case"end":t=n.Dom.last(e.editor,e=>n.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&n.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){"use strict";var n=i(22732),o=i(49055),r=i(41180),s=i(12153),a=i(6441),l=i(4104),c=i(83709);a.Config.prototype.defaultFontSizePoints="px",s.Icon.set("font",l.default).set("fontsize",c.default),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value:(e,t)=>{var i;let o=e.s.current();if(!o)return;let s=n.Dom.closest(o,n.Dom.isElement,e.editor);if(!s)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,r.css)(s,a);if("font-size"===a){let t=parseFloat(l.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return l.toString()},isChildActive:(e,t)=>{var i,n;let o=t.state.value,r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e;return!!(o&&t.control.args&&r(t.control.args[0].toString())===r(o.toString()))},isActive:(e,t)=>{var i,n;let o=t.state.value;if(!o)return!1;let r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(o.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate:(e,t)=>{let[i]=t.split(",");return(0,o.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(e,t,i)=>{let n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check(`16px ${t}`,i)}catch(e){}return`<span data-style="${t}" style="${n?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value:e=>{let t=e.s.current();if(!t)return;let i=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!i)return;let o=(0,r.css)(i,"font-family").toString();return o===(0,r.css)(e.editor,"font-family").toString()?"":o},tooltip:"Font family"}},23399:function(e,t,i){"use strict";var n=i(580),o=i(21537);i(28252),n.pluginSystem.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,n)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},4104:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(e,t,i){"use strict";var n=i(2748),o=i(72430),r=i(12153),s=i(6441),a=i(89816);r.Icon.set("paragraph",a.default),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,o;let r=t.control,s=e.s.current(),a=n.Dom.closest(s,n.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(o=r.data)?void 0:o.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let n=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[n.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(e,t)=>{var i,n;return t.state.value===(null==(n=null==(i=t.control)?void 0:i.args)?void 0:n[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},96111:function(e,t,i){"use strict";var n=i(580);i(24630),n.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,n)=>(e.s.commitStyle({element:n}),e.synchronizeValues(),!1))})},89816:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(e,t,i){"use strict";var n=i(82758),o=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec:e=>{e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},2169:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;o.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,l=0,c=0,d=!1,u=()=>{let{container:n,events:r}=e;r&&(t?(d||(i=(0,s.css)(n,"height",!0),o=(0,s.css)(n,"width",!0),d=!0),(0,s.css)(n,{height:e.ow.innerHeight,width:e.ow.innerWidth})):d&&((0,s.css)(n,{height:i||"auto",width:o||"auto"}),d=!1))},h=i=>{let{container:o,events:d}=e;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,o.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&n.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(o):a.delete(o),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;u(),i||e.ow.scrollTo(l,c)}d.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",u),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",u)})})},6950:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(e,t,i){"use strict";i(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(e,t,i){"use strict";var n=i(82758),o=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===n.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let n=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&n.push(i)}),(0,r.normalizeKeyAliases)(n.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}o.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=n.Dom.closest(t.parentElement,n.Dom.isBlock,e.editor);i&&n.Dom.isEmpty(i)&&i!==e.editor&&(n.Dom.after(i,t),n.Dom.safeRemove(i));let o=n.Dom.next(t,n.Dom.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),n.Dom.after(t,o)),e.s.setCursorIn(o),!1})})},72337:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeTitle="Jodit Editor",n.Config.prototype.iframeDoctype="<!DOCTYPE html>",n.Config.prototype.iframeDefaultSrc="about:blank",n.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',n.Config.prototype.iframeCSSLinks=[],n.Config.prototype.iframeSandbox=null},77469:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(21537);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let n=e||i.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=n.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),n.head&&o.Dom.append(n.head,t)}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&o.Dom.append(n.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),o.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,r=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==n.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",n=t.exec(e);return n&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(i,n[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(o){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>!e.isLocked&&(/<(html|body)/i.test(t)?a(i.documentElement.outerHTML)!==a(t)&&(i.open(),i.write(e.o.iframeDoctype+a(t)),i.close(),e.editor=i.body,e.e.fire("safeHTML",e.editor),r(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=t,!0),{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let n=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",n).on([e.iframe,e.ew,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let t=new ResizeObserver(n);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},85745:function(e,t,i){"use strict";i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911),l=i(74569);i(85745);var c=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends a.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,o.cached)(e,"buffer"),i=null==t?void 0:t.get(u);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(u)}}onAfterGetValueFromEditor(e,t){if(t!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(u);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,s.$$)("img",t.editor).forEach(e=>{(0,s.dataBind)(e,d)||((0,s.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var n;t.isInDestruct||null==(n=t.e)||n.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=t.src;try{i=(0,l.dataURItoBlob)(n)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(u)||{};r[t.src]=n,e.buffer.set(u,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}c([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,o.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,o.watch)([":change",":afterInit",":changePlace"]),(0,o.debounce)()],h.prototype,"afterChange",null),r.pluginSystem.add("imageProcessor",h)},97536:function(e,t,i){"use strict";i(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(e,t,i){"use strict";var n=i(65478),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),d=i(53636),u=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,u.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let n=i.target;if(o.Dom.isTag(n,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;t.state.sourceImage=n,t.state.image=n.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(n)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,o;Object.values(null!=(t=(0,n.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,n.cached)(this,"dialog"))||i.destruct(),null==(o=(0,n.cached)(this,"form"))||o.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}f([n.cache],m.prototype,"form",null),f([n.cache],m.prototype,"dialog",null),f([n.cache],m.prototype,"__buttons",null),f([(0,n.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){"use strict";i.d(t,{readAlign:function(){return o}});var n=i(41180);function o(e,t){(0,n.cssInline)(e,"float")&&-1!==["left","right"].indexOf((0,n.cssInline)(e,"float").toLowerCase())?t.align=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===(0,n.cssInline)(e,"margin-left")&&"auto"===(0,n.cssInline)(e,"margin-right")?t.align="center":t.align=""}},94575:function(e,t,i){"use strict";i.d(t,{readValuesFromImage:function(){return c}});var n=i(29960),o=i(41180),r=i(51642),s=i(75595),a=i(47749),l=i(32566);async function c(e,t){let{sourceImage:i,values:c}=t;return(0,r.readAlign)(i,c),c.borderRadius=parseInt((0,o.cssInline)(i,"border-radius")||"0",10)||0,c.id=(0,n.attr)(i,"id")||"",c.imageTitle=(0,n.attr)(i,"title")||"",c.imageAlt=(0,n.attr)(i,"alt")||"",c.style=(0,n.attr)(i,"style")||"",c.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(i,c,t),(0,s.readLink)(t,e,c),c.imageSrc=(0,n.attr)(i,"src")||"",(0,l.readSizes)(i,c,t)}},75595:function(e,t,i){"use strict";i.d(t,{readLink:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=n.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){"use strict";i.d(t,{readMargins:function(){return o}});var n=i(12475);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,n.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},32566:function(e,t,i){"use strict";i.d(t,{readSizes:function(){return a}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,o.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,n.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:d}=t,u=parseFloat(c.toString());if(!(0,n.isNumeric)(c)||!(0,n.isNumeric)(d)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(u/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(u-parseFloat(d.toString())*i.ratio)}},59436:function(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:function(){return p}});var n=i(65478),o=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),d=i(35105),u=i(29827),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
|
|
128
|
+
</div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[n,(0,s.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,"ai-assistant","").onAction(n),this.__tryAgainButton=(0,a.Button)(e,"update","","initial").onAction(n),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let o=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,o.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,o.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),c([(0,o.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),c([(0,o.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=c([n.component],d)},25187:function(e,t,i){"use strict";i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(26551),i(72253),i(65735),i(83671),i(3115)},93183:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),d=i(14630);class u extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),(0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,u=i.createInside.text(n.INVISIBLE_SPACE);try{if(o.Dom.safeInsertNode(a,u),!o.Dom.isOrContains(i.editor,u))return;if(i.e.fire("backSpaceBeforeCases",e,u))return!1;(0,l.moveNodeInsideStart)(i,u,e);let r=i.o.delete.disableCases;if(d.casesMap.some(([o,a])=>{if(!(r&&r.has(o))&&(0,s.isFunction)(a)&&a(i,u,e,t))return n.IS_PROD,!0}))return!1}catch(e){throw n.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,u),this.safeRemoveEmptyNode(u)}return!1}safeRemoveEmptyNode(e){var t,i;let{range:n}=this.j.s;n.startContainer===e&&(e.previousSibling?o.Dom.isText(e.previousSibling)?n.setStart(e.previousSibling,null!=(i=null==(t=e.previousSibling.nodeValue)?void 0:t.length)?i:0):n.setStartAfter(e.previousSibling):e.nextSibling&&(o.Dom.isText(e.nextSibling)?n.setStart(e.nextSibling,0):n.setStartBefore(e.nextSibling)),n.collapse(!0),this.j.s.selectRange(n)),o.Dom.safeRemove(e)}}u.requires=["hotkeys"],r.pluginSystem.add("backspace",u)},62845:function(e,t,i){"use strict";i.d(t,{checkJoinNeighbors:function(){return s}});var n=i(82758),o=i(2748),r=i(63785);function s(e,t,i){let r=t,s=r;for(;r&&!o.Dom.findNotEmptySibling(r,i)&&r.parentElement!==e.editor;)s=r=r.parentElement;if(o.Dom.isElement(s)&&o.Dom.isContentEditable(s,e.editor)){var l,c;let r,d,u,h=o.Dom.findNotEmptySibling(s,i);if(o.Dom.isTag(h,"br"))return o.Dom.safeRemove(h),e.s.setCursorBefore(t),!0;if(h&&(l=s,c=h,r=o.Dom.isTag(c,n.LIST_TAGS),d=o.Dom.isTag(l,n.LIST_TAGS),u=(e,t)=>t?e.firstElementChild:e.lastElementChild,(d?(c=e.createInside.element(e.o.enterBlock),o.Dom.before(l,c),a(e,u(l,i),c,i)):!!c&&!!r&&!d&&a(e,l,u(c,!i),i))||a(e,s,function(e,t){if(!o.Dom.isTag(e,"table"))return e;let i=[];return o.Dom.each(e,e=>{o.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(h,i),i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,n){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!n,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&o.Dom.isEmpty(s);){let e=s.parentElement;o.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){"use strict";i.d(t,{checkJoinTwoLists:function(){return s}});var n=i(2748),o=i(37790),r=i(63785);function s(e,t,i){let s=n.Dom.findSibling(t,i),a=n.Dom.findSibling(t,!i);if(!n.Dom.closest(t,n.Dom.isElement,e.editor)&&n.Dom.isList(s)&&n.Dom.isList(a)&&n.Dom.isTag(s.lastElementChild,"li")&&n.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,d=s.lastElementChild,u=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,u,t),n.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),n.Dom.safeRemove(a),(0,o.call)(i?n.Dom.append:n.Dom.prepend,d,t),(0,o.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){"use strict";function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}i.d(t,{checkNotCollapsed:function(){return n}})},73792:function(e,t,i){"use strict";i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var c,d,u,h;let p,f=s?-1:1,m=o.Dom.sibling(i,!s),g=o.Dom.sibling(i,s),v=null,b=!1;for(g||(g=a(i,s,t.editor));g&&(o.Dom.isText(g)||o.Dom.isInlineBlock(g));){for(;o.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if((null==(c=g.nodeValue)?void 0:c.length)&&(p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===n.INVISIBLE_SPACE)for(;a[c]===n.INVISIBLE_SPACE;)c+=i;let d=a[c];if(a[c+i]===n.INVISIBLE_SPACE){for(c+=i;a[c]===n.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=n.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),d}(g,s,f,m),!g.nodeValue.length&&o.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=n.INVISIBLE_SPACE)),(null==(d=g.nodeValue)?void 0:d.length)||(v=g),!(0,r.isVoid)(p)&&p!==n.INVISIBLE_SPACE){u=g,h=p,(0,r.call)(s?o.Dom.after:o.Dom.before,u,i),("sentence"===l||"word"===l&&" "!==h&&h!==n.NBSP_SPACE)&&e(t,i,s,l),b=!0;break}let y=a(g,s,t.editor);v&&(o.Dom.safeRemove(v),v=null),g=y}return v&&o.Dom.safeRemove(v),b&&(function(e){let t=e.parentElement;for(;t&&o.Dom.isInlineBlock(t)&&o.Dom.isTag(t,"a");){let i=t.parentElement;o.Dom.isEmpty(t)&&(o.Dom.after(t,e),o.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&o.Dom.isBlock(i.parentElement)&&o.Dom.each(i.parentElement,o.Dom.isEmptyTextNode)&&o.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),b}}});var n=i(82758),o=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let n=o.Dom.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==i&&(n=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&o.Dom.closest(e,"li",i)!==o.Dom.closest(n,"li",i)?null:n}},87536:function(e,t,i){"use strict";i.d(t,{checkRemoveContentNotEditable:function(){return s}});var n=i(22732),o=i(21537),r=i(45124);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=n.Dom.findSibling(t.parentElement,i)),!(!n.Dom.isElement(s)||n.Dom.isContentEditable(s,e.editor))&&((0,o.call)(i?n.Dom.before:n.Dom.after,s,t),n.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},12474:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyNeighbor:function(){return o}});var n=i(2748);function o(e,t,i){let o=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!o)return!1;let r=n.Dom.findNotEmptySibling(o,i);return!!(r&&n.Dom.isEmpty(r))&&(n.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){"use strict";i.d(t,{checkRemoveEmptyParent:function(){return s}});var n=i(82758),o=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!c||!o.Dom.isEmpty(c))return!1;let d=o.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&o.Dom.isEmpty(c)&&!o.Dom.isCell(c)){o.Dom.after(c,t);let i=o.Dom.closest(c,e=>o.Dom.isElement(e)&&e!==c,e.editor);o.Dom.safeRemove(c),s=!0,c=i}else break;while(c);return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!d||o.Dom.isText(d)||o.Dom.isTag(d,n.INSEPARABLE_TAGS)?a(t):l(d,!i),s)}},56825:function(e,t,i){"use strict";i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var n=i(82758),o=i(2748),r=i(58940);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(s)&&(o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isEmpty(s)))&&(o.Dom.safeRemove(s),o.Dom.isTag(s,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){"use strict";i.d(t,{checkTableCell:function(){return o}});var n=i(2748);function o(e,t){let i=t.parentElement;return!!n.Dom.isCell(i)}},68034:function(e,t,i){"use strict";i.d(t,{checkUnwrapFirstListItem:function(){return r}});var n=i(2748),o=i(43555);function r(e,t,i){var r;let s=n.Dom.closest(t,n.Dom.isElement,e.editor),{s:a}=e;if(n.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?n.Dom.before:n.Dom.after,r,l),n.Dom.moveContent(s,l),n.Dom.safeRemove(s),n.Dom.isEmpty(r)&&n.Dom.safeRemove(r),(0,o.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},14630:function(e,t,i){"use strict";var n=i(62845),o=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),d=i(90240),u=i(68034);let h=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",d.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",o.checkJoinTwoLists],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",u.checkUnwrapFirstListItem]];h.map(([,e])=>e),i.d(t,["casesMap",0,h])},32496:function(e,t,i){"use strict";i(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){"use strict";i.d(t,{findMostNestedNeighbor:function(){return o},getMoveFilter:function(){return r}});var n=i(22732);function o(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=n.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&n.Dom.isElement(a)&&!n.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a);return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},41107:function(e,t,i){"use strict";var n=i(580),o=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),d=i(89758),u=i(98527),h=i(51855);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r={...n.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",d.default).set("superscript",u.default).set("underline",h.default)},73674:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},n.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},n.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(e,t)=>{let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&o.classList.contains(t.control.args[0].toString()))}return!1},isActive:(e,t)=>{let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{o.classList.contains(e)&&(r=!0)}),!!(o&&o!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class d extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,n)=>(e.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}o.pluginSystem.add("classSpan",d),a.Icon.set("class-span",c.default)},31151:function(e,t){"use strict";t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(e,t,i){"use strict";var n=i(65478),o=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(59498),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}startWalker(){let{jodit:e}=this,t=(0,c.getHash)(this.j.o.cleanHTML.allowTags),i=(0,c.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,c.visitNodeWalker)(e,n,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,c.removeFormatForCollapsedSelection)(this.j):(0,c.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),o.Dom.safeRemove(i),!1}onAfterGetValueFromEditor(e){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(e.value.trim())&&(e.value="")}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}d([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),d([(0,n.hook)("ready")],u.prototype,"startWalker",null),d([(0,n.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),d([(0,n.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),d([(0,n.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),d([(0,n.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",u)},46776:function(e,t,i){"use strict";var n=i(12153),o=i(6441),r=i(44330);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},n.Icon.set("eraser",r.default)},44330:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(e,t,i){"use strict";i.d(t,{getHash:function(){return r}});var n=i(70799),o=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,n.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let n=t.exec(e),a={};if(n){let e=n[2].split(i);n[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[n[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){"use strict";i.d(t,{getHash:function(){return n.getHash},removeFormatForCollapsedSelection:function(){return o.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},visitNodeWalker:function(){return s.visitNodeWalker}});var n=i(83447),o=i(84272),r=i(42312),s=i(39516)},15908:function(e,t,i){"use strict";i.d(t,{isAllowedMediaEmbed:function(){return r}});let n=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,o=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return n.test(e)||o.test(e)}},84272:function(e,t,i){"use strict";i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var n=i(82758),o=i(2748);function r(e,t){let{s:i}=e,n=t;if(!n){n=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,n),t.collapse()}let r=o.Dom.furthest(n,s,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,n);else if(i.cursorOnTheRight(r))o.Dom.after(r,n);else{let e=i.splitSelection(r);e&&o.Dom.after(e,n)}t||(i.setCursorBefore(n),o.Dom.safeRemove(n))}function s(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,n.INSEPARABLE_TAGS)}},42312:function(e,t,i){"use strict";i.d(t,{removeFormatForSelection:function(){return s}});var n=i(2748),o=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),d=s.fake(),u=s.fake();l.collapse(!0),c.collapse(!1),n.Dom.safeInsertNode(l,d),n.Dom.safeInsertNode(c,u),a.setStartBefore(d),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d),a.setEndAfter(u),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u);let h=[];n.Dom.between(d,u,e=>{(0,r.isInlineBlock)(e)&&!n.Dom.isTag(e,"a")&&h.push(e),n.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),h.forEach(e=>n.Dom.unwrap(e));let p=(e,t)=>{if(!n.Dom.findNotEmptySibling(e,t)){let n=e.parentNode;if(n&&n!==i&&(0,o.attr)(n,"style"))return(0,o.attr)(n,"style",null),p(n,t),!0}};p(d,!0)&&p(u,!1),a.setStartAfter(d),a.setEndBefore(u),t.selectRange(a),n.Dom.safeRemove(d),n.Dom.safeRemove(u)}},82558:function(e,t,i){"use strict";i.d(t,{allowAttributes:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i,r){let s=r&&n.Dom.isElement(t)&&r[t.nodeName];if(r&&n.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let n=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||n.push(e[t].name)}n.length&&(i=!0),n.forEach(e=>{(0,o.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){"use strict";i.d(t,{convertUnsafeEmbeds:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!n.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,o.attr)(t,"data")||(0,o.attr)(t,"src")||(0,o.attr)(t,"movie")||"";if(!a)return n.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,o.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,o.attr)(t,"width"),height:(0,o.attr)(t,"height")}),n.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){"use strict";i.d(t,{fillEmptyParagraph:function(){return s}});var n=i(82758),o=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,n.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return o.Dom.append(t,i),!0}return i}},45235:function(e,t,i){"use strict";i.r(t),i.d(t,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return o.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return d.sandboxIframesInContent},sanitizeAttributes:function(){return u.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var n=i(82558),o=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),d=i(85978),u=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){"use strict";i.d(t,{removeEmptyTextNode:function(){return o}});var n=i(2748);function o(e,t,i,o,r,s){return n.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){"use strict";i.d(t,{removeInvTextNodes:function(){return r}});var n=i(82758),o=i(2748);function r(e,t,i,r,s,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},80973:function(e,t,i){"use strict";i.d(t,{replaceOldTags:function(){return o}});var n=i(2748);function o(e,t,i){let o=function(e,t,i){if(!i||!n.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];return o?n.Dom.replace(t,o,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==o||i}},95614:function(e,t,i){"use strict";i.d(t,{safeLinksTarget:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,o.attr)(t,"target"))return i;let r=((0,o.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,o.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){"use strict";i.d(t,{sandboxIframesInContent:function(){return s}});var n=i(2748),o=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,o.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){"use strict";i.d(t,{sanitizeAttributes:function(){return r}});var n=i(2748),o=i(21537);function r(e,t,i){if(!n.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){"use strict";i.d(t,{sanitizeStyles:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!n.Dom.isElement(t))return i;let s=(0,o.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],n=t["*"];if(!i&&!n)return null;let o=new Set;if(n)for(let e of n)o.add(e.toLowerCase());if(i)for(let e of i)o.add(e.toLowerCase());return o}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,o.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){"use strict";i.d(t,{tryRemoveNode:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,d){return!function(e,t,i,l,c){if(!o.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let d=e.s.isCollapsed()?e.s.range.startContainer:null;return o.Dom.isElement(t)&&null!=t.nodeName.match(n.IS_INLINE)&&!o.Dom.isTemporary(t)&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!o.Dom.isOrContains(t,i))&&(null==d||!o.Dom.isOrContains(t,d))}(e,t,d,l,c)?i:(o.Dom.safeRemove(t),!0)}},39516:function(e,t,i){"use strict";i.d(t,{visitNodeWalker:function(){return s}});var n=i(82758),o=i(45235);let r=Object.keys(o);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let d of r)if(!(c&&c.has(d))&&(l=(0,o[d])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){"use strict";var n=i(82758),o=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,t=>{var i;let o=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let n=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=n,n=e.outerHTML,i=i.parentElement}return n}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(n.TEXT_PLAIN,(0,a.stripTags)(o)),s.setData(n.TEXT_HTML,o)),e.buffer.set(n.CLIPBOARD_ID,o),e.e.fire("pasteStack",{html:o,action:e.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",o)})}destruct(e){var t,i;null==(t=(0,o.cached)(e,"buffer"))||t.set(n.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+n.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){"use strict";var n=i(12153),o=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){"use strict";t.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(e,t){"use strict";t.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(e,t,i){"use strict";var n=i(580),o=i(21537);i(21988),n.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,n)=>{var r;let s=(0,o.normalizeColor)(n)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){"use strict";var n=i(2748),o=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup:(e,t,i)=>{if(!(0,o.isJoditObject)(e))return;let n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,r=>{n.forEach(e=>{(0,o.css)(e,t,r)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(n[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,n)=>!!n&&n!==(0,o.css)(e.editor,i).toString()&&(t.state.icon.fill=n,!0);if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=n.Dom.closest(s,n.Dom.isElement,e.editor)||e.editor,i=r("color",(0,o.css)(t,"color").toString()),a=r("background-color",(0,o.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup:(e,t,i,r)=>{let s="",l="",c,d=null;return t&&t!==e.editor&&n.Dom.isNode(t)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),n.Dom.up(t,e=>{if(n.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,o.css)(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?(0,o.css)(d,"color",t):e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(e,c,d)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),s=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t)&&n.Dom.isElement(t))switch(r){case"color":(0,o.css)(t,"color",s);break;case"background":(0,o.css)(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let d="copy-format",u=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,n)=>{let o=(0,r.css)(i,t);return o===n[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,n):void 0),o};a.Config.prototype.controls.copyformat={exec:(e,t,{button:i})=>{if(t){if(e.buffer.exists(d))e.buffer.delete(d),e.e.off(e.editor,"mouseup."+d);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();n.Dom.append(e.editor,a),u.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&u.forEach(t=>{i[t]=h(e,t,s,o),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+d,()=>{e.buffer.delete(d);let t=e.s.current();t&&(n.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+d)}),e.buffer.set(d,!0)}i.update()}},isActive:e=>e.buffer.exists(d),tooltip:"Paint format"},o.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},63819:function(e){"use strict";e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){"use strict";e.exports={"copy-format":"Kop\xedrovat form\xe1t"}},74551:function(e){"use strict";e.exports={"copy-format":"Format kopierenт"}},2536:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},52285:function(e){"use strict";e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){"use strict";e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){"use strict";e.exports={"copy-format":"Format de copie"}},28435:function(e){"use strict";e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){"use strict";e.exports={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},96457:function(e){"use strict";e.exports={"copy-format":"salin format"}},23914:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return d},hu:function(){return u},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return v},pl:function(){return b},pt_br:function(){return y},ru:function(){return w},tr:function(){return _},zh_cn:function(){return k},zh_tw:function(){return C}});var n=i(63819),o=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),d=i(28435),u=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),w=i(60629),_=i(68278),k=i(1172),C=i(4164)},33561:function(e){"use strict";e.exports={"copy-format":"Copia il formato"}},96545:function(e){"use strict";e.exports={"copy-format":"copyformat"}},52230:function(e){"use strict";e.exports={"copy-format":"복사 형식"}},33307:function(e){"use strict";e.exports={"copy-format":"Формат хуулах"}},71042:function(e){"use strict";e.exports={"copy-format":"opmaak kopi\xebren"}},32172:function(e){"use strict";e.exports={"copy-format":"format kopii"}},39179:function(e){"use strict";e.exports={"copy-format":"Copiar formato"}},60629:function(e){"use strict";e.exports={"copy-format":"Копировать формат"}},68278:function(e){"use strict";e.exports={"copy-format":"Kopyalama Bi\xe7imi"}},1172:function(e){"use strict";e.exports={"copy-format":"复制格式"}},4164:function(e){"use strict";e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(21537),s=i(49055),a=i(50911);let l=new Set(["img","table","jodit","iframe","hr"]);class c extends a.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&n.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,s.trim)(e.editor.textContent||"")&&!n.Dom.first(e.editor,e=>n.Dom.isTag(e,l))&&(!t||!n.Dom.closest(t,"table",e.editor))){n.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;t.deleteContents();let i=e.createInside.fake();t.insertNode(i);let o=n.Dom.findSibling(i,!0),r=n.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,o,r),t.setStartBefore(i),t.collapse(!0),this.__moveCursorInEditableSibling(e,o,i,t),this.__addBrInEmptyBlock(i,r,t),n.Dom.safeRemove(i),e.s.selectRange(t),!1}__moveContentInLeftSibling(e,t,i){t=this.__defineRightLeftBox(t),!n.Dom.isList(i)&&!n.Dom.isTag(i,"table")&&n.Dom.isBlock(i)&&n.Dom.isBlock(t)&&(n.Dom.append(t,e),n.Dom.moveContent(i,t),n.Dom.safeRemove(i)),n.Dom.isList(i)&&n.Dom.isLeaf(i.firstElementChild)&&n.Dom.isEmpty(i.firstElementChild)&&n.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(e){if(!n.Dom.isList(e))return e;let t=e.lastElementChild;return n.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),n.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t,i){let o=this.j;if(e.isConnected&&n.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let t=o.createInside.element("br");n.Dom.after(e,t),i.setStartBefore(t),i.collapse(!0)}if(n.Dom.isTag(t,"table")){let e=(0,r.$$)("td,th",t).shift();n.Dom.isCell(e)&&n.Dom.isEmpty(e)&&n.Dom.append(e,o.createInside.element("br"))}}__moveCursorInEditableSibling(e,t,i,o){var r;if(!t||!n.Dom.isText(t)){let t=null!=(r=n.Dom.closest(i,n.Dom.isBlock,e.editor))?r:e.editor,s=n.Dom.prev(i,n.Dom.isText,t);s&&(o.setStartAfter(s),o.collapse(!0),n.Dom.safeRemove(i))}}}c.requires=["backspace"],o.pluginSystem.add("deleteCommand",c)},44586:function(e,t,i){"use strict";i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){"use strict";var n,o,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(n=o||(o={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class u extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>o.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>o.IDLE)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),n=s.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);n&&(s.Dom.isTag(n.parentElement,"a")&&n.parentElement.firstChild===n&&n.parentElement.lastChild===n&&(n=n.parentElement),this.startDragging(n,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=o.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===o.IDLE)return;let n=e.clientX,r=e.clientY;if(!(this.state===o.WAIT_DRAGGING&&Math.sqrt(Math.pow(n-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)){if(this.state===o.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=o.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let n=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!=(t=null==n?void 0:n.offsetWidth)?t:100,height:null!=(i=null==n?void 0:n.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,u),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=o.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<o.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=o.IDLE}}d([r.autobind],u.prototype,"onStartDragElement",null),d([r.autobind],u.prototype,"onDragStart",null),d([(0,r.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([r.autobind],u.prototype,"onDragEnd",null),d([r.autobind],u.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",u)},19271:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(n.TEXT_HTML)||t.getData(n.TEXT_PLAIN):null}}}d([o.autobind],u.prototype,"onDragStart",null),d([(0,o.throttle)(e=>e.defaultTimeout/10)],u.prototype,"onDrag",null),d([o.autobind],u.prototype,"onDragEnd",null),d([o.autobind],u.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",u)},46124:function(e,t,i){"use strict";i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(94870)},94870:function(e,t,i){"use strict";i.d(t,{removeExtraBr:function(){return r}});var n=i(2748);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||n.Dom.isTag(t,"br"))return;let i=n.Dom.furthest(t,n.Dom.isBlock,e.editor);if(i&&!n.Dom.isTag(i,o)){let i=n.Dom.isTag(t,"br")?t:n.Dom.findNotEmptySibling(t,!1);if(!n.Dom.isTag(i,"br")||n.Dom.findNotEmptySibling(i,!1))return;e.s.setCursorBefore(i),n.Dom.safeRemove(i)}}},78720:function(e,t,i){"use strict";i.d(t,{checkBlockNesting:function(){return o}});var n=i(2748);function o(e,t){var i,o;if(n.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&n.Dom.isBlock(t)){let t=null,r=null!=(o=null==(i=e.s.current())?void 0:i.parentElement)?o:null;for(;r&&r!==e.editor;){if(n.Dom.isBlock(r)){if(e.o.dtd.blockLimits[r.nodeName.toLowerCase()])break;t=r}r=r.parentElement}t&&(e.s.setCursorAfter(t),n.Dom.isEmpty(t)&&n.Dom.safeRemove(t))}}},43267:function(e,t,i){"use strict";i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(78720)},9045:function(e,t,i){"use strict";i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){"use strict";var n=i(37133),o=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,n.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,n.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),o.pluginSystem.add("dtd",c)},575:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class d extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===n.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?n.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===n.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let n=(0,c.getBlockWrapper)(i,t),o=r.Dom.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey))return!1;if(n||(0,c.hasPreviousBlock)(i,t)||(n=(0,c.wrapText)(i,t)),!n)return(0,c.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return(0,c.processEmptyLILeaf)(i,t,n),!1;(0,c.splitFragment)(i,t,n)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",d)},41872:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return s}});var n=i(82758),o=i(2748),r=i(26395);function s(e,t,i){let s=!!o.Dom.closest(e,["pre","blockquote"],t.editor),l=!s&&o.Dom.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===n.BR.toLowerCase()||l||i&&!s||!i&&s){var c;let i;if(s&&(i=a(a(c=e)))&&(o.Dom.safeRemove(a(c)),o.Dom.safeRemove(i),1))return!1;let n=t.createInside.element("br");if(o.Dom.before(e,n),!o.Dom.findNotEmptySibling(n,!1)){let t=n.cloneNode();o.Dom.after(n,t),o.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(n,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){"use strict";i.d(t,{checkUnsplittableBox:function(){return o}});var n=i(2748);function o(e,t,i){return!!n.Dom.canSplitBlock(i)||(n.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){"use strict";i.d(t,{getBlockWrapper:function(){return function e(t,i,r=n.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(o.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a);return null}}});var n=i(82758),o=i(2748)},19057:function(e,t,i){"use strict";i.d(t,{hasPreviousBlock:function(){return o}});var n=i(2748);function o(e,t){return!!n.Dom.prev(e,e=>n.Dom.isBlock(e)||n.Dom.isImage(e),t.editor)}},35399:function(e,t,i){"use strict";i.d(t,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return o.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return d.splitFragment},wrapText:function(){return u.wrapText}});var n=i(41872),o=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),d=i(54600),u=i(5287)},44245:function(e,t,i){"use strict";i.d(t,{insertParagraph:function(){return s}});var n=i(2748),o=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),d=l.element("br");return a||n.Dom.append(c,d),s&&s.cssText&&(0,o.attr)(c,"style",s.cssText),n.Dom.after(e,c),n.Dom.before(a?c:d,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){"use strict";i.d(t,{moveCursorOutFromSpecialTags:function(){return o}});var n=i(2748);function o(e,t,i){let{s:o}=e,r=n.Dom.closest(t,i,e.editor);r&&(o.cursorOnTheRight(r,t)?n.Dom.after(r,t):o.cursorOnTheLeft(r,t)&&n.Dom.before(r,t))}},65181:function(e,t,i){"use strict";i.d(t,{processEmptyLILeaf:function(){return s}});var n=i(2748),o=i(76078),r=i(44245);function s(e,t,i){let s=n.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=n.Dom.isLeaf(a),c=l?a:s,d=t.s.createRange();d.setStartAfter(i),d.setEndAfter(s);let u=d.extractContents();n.Dom.after(c,e),n.Dom.safeRemove(i),(0,o.$$)("li",s).length||n.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);n.Dom.first(u,e=>n.Dom.isTag(e,"li"))&&(l?n.Dom.append(h,u):n.Dom.after(h,u))}},54600:function(e,t,i){"use strict";i.d(t,{splitFragment:function(){return s}});var n=i(2748),o=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=n.Dom.isLeaf(i),d=i.tagName.toLowerCase()===l||c,u=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!d&&(u||h)){u?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!u&&n.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,o.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){"use strict";i.d(t,{wrapText:function(){return o}});var n=i(2748);function o(e,t){let i=e;n.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=n.Dom.wrapInline(i,t.o.enter,t);if(n.Dom.isEmpty(o)){let i=t.createInside.element("br");n.Dom.append(o,i),n.Dom.before(i,e)}return o}},11317:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(29960),s=i(6441),a=i(92762);s.Config.prototype.controls.file={popup:(e,t,i)=>{let o=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(s=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser:e=>{e.files&&e.files.forEach(t=>o(e.baseurl+t)),i()},upload:!0,url:(e,t)=>{s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):o(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(6441);r.Config.prototype.autofocus=!1,r.Config.prototype.cursorAfterAutofocus="end",r.Config.prototype.saveSelectionOnBlur=!0,o.pluginSystem.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",()=>{e.isEditorMode()&&e.s.save(!0)}).on("focus",()=>{e.isEditorMode()&&e.s.restore()});let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=n.Dom.first(e.editor,e=>n.Dom.isText(e));break;case"end":t=n.Dom.last(e.editor,e=>n.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&n.Dom.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){"use strict";var n=i(22732),o=i(49055),r=i(41180),s=i(12153),a=i(6441),l=i(4104),c=i(83709);a.Config.prototype.defaultFontSizePoints="px",s.Icon.set("font",l.default).set("fontsize",c.default),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value:(e,t)=>{var i;let o=e.s.current();if(!o)return;let s=n.Dom.closest(o,n.Dom.isElement,e.editor);if(!s)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,r.css)(s,a);if("font-size"===a){let t=parseFloat(l.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return l.toString()},isChildActive:(e,t)=>{var i,n;let o=t.state.value,r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e;return!!(o&&t.control.args&&r(t.control.args[0].toString())===r(o.toString()))},isActive:(e,t)=>{var i,n;let o=t.state.value;if(!o)return!1;let r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(o.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate:(e,t)=>{let[i]=t.split(",");return(0,o.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(e,t,i)=>{let n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check(`16px ${t}`,i)}catch(e){}return`<span data-style="${t}" style="${n?`font-family: ${t}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value:e=>{let t=e.s.current();if(!t)return;let i=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!i)return;let o=(0,r.css)(i,"font-family").toString();return o===(0,r.css)(e.editor,"font-family").toString()?"":o},tooltip:"Font family"}},23399:function(e,t,i){"use strict";var n=i(580),o=i(21537);i(28252),n.pluginSystem.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let t=(t,i,n)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},4104:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(e,t,i){"use strict";var n=i(2748),o=i(72430),r=i(12153),s=i(6441),a=i(89816);r.Icon.set("paragraph",a.default),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,o;let r=t.control,s=e.s.current(),a=n.Dom.closest(s,n.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(o=r.data)?void 0:o.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let n=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[n.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(e,t)=>{var i,n;return t.state.value===(null==(n=null==(i=t.control)?void 0:i.args)?void 0:n[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},96111:function(e,t,i){"use strict";var n=i(580);i(24630),n.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,n)=>(e.s.commitStyle({element:n}),e.synchronizeValues(),!1))})},89816:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(e,t,i){"use strict";var n=i(82758),o=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec:e=>{e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},2169:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;o.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,l=0,c=0,d=!1,u=()=>{let{container:n,events:r}=e;r&&(t?(d||(i=(0,s.css)(n,"height",!0),o=(0,s.css)(n,"width",!0),d=!0),(0,s.css)(n,{height:e.ow.innerHeight,width:e.ow.innerWidth})):d&&((0,s.css)(n,{height:i||"auto",width:o||"auto"}),d=!1))},h=i=>{let{container:o,events:d}=e;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,o.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&n.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(o):a.delete(o),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;u(),i||e.ow.scrollTo(l,c)}d.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",u),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",u)})})},6950:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(e,t,i){"use strict";i(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(e,t,i){"use strict";var n=i(82758),o=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===n.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let n=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&n.push(i)}),(0,r.normalizeKeyAliases)(n.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}o.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{let t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);let i=n.Dom.closest(t.parentElement,n.Dom.isBlock,e.editor);i&&n.Dom.isEmpty(i)&&i!==e.editor&&(n.Dom.after(i,t),n.Dom.safeRemove(i));let o=n.Dom.next(t,n.Dom.isBlock,e.editor,!1);return o||(o=e.createInside.element(e.o.enter),n.Dom.after(t,o)),e.s.setCursorIn(o),!1})})},72337:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeTitle="Jodit Editor",n.Config.prototype.iframeDoctype="<!DOCTYPE html>",n.Config.prototype.iframeDefaultSrc="about:blank",n.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',n.Config.prototype.iframeCSSLinks=[],n.Config.prototype.iframeSandbox=null},77469:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(21537);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let n=e||i.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=n.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),n.head&&o.Dom.append(n.head,t)}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&o.Dom.append(n.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),o.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,r=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==n.MODE_SOURCE&&!e.getReadOnly()||null)},a=e=>{let t=/<body.*<\/body>/im,i="{%%BODY%%}",n=t.exec(e);return n&&(e=e.replace(t,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(i,n[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(o){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>a(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(a(i.documentElement.outerHTML)!==a(t)){var n;let o;n=a(t),o=new DOMParser().parseFromString(n,"text/html"),e.e.fire("safeHTML",o.documentElement),i.replaceChild(i.adoptNode(o.documentElement),i.documentElement),e.editor=i.body,r(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let n=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",n).on([e.iframe,e.ew,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let t=new ResizeObserver(n);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},85745:function(e,t,i){"use strict";i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911),l=i(74569);i(85745);var c=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends a.Plugin{afterInit(e){}beforeDestruct(e){let t=(0,o.cached)(e,"buffer"),i=null==t?void 0:t.get(u);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(u)}}onAfterGetValueFromEditor(e,t){if(t!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(u);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}async afterChange(e){let{jodit:t}=this;t.editor&&(0,s.$$)("img",t.editor).forEach(e=>{(0,s.dataBind)(e,d)||((0,s.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var n;t.isInDestruct||null==(n=t.e)||n.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=t.src;try{i=(0,l.dataURItoBlob)(n)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(u)||{};r[t.src]=n,e.buffer.set(u,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{t.s.select(e)}))})}}c([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,o.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,o.watch)([":change",":afterInit",":changePlace"]),(0,o.debounce)()],h.prototype,"afterChange",null),r.pluginSystem.add("imageProcessor",h)},97536:function(e,t,i){"use strict";i(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(e,t,i){"use strict";var n=i(65478),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),d=i(53636),u=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,u.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.sourceImage),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),e.e.on(t,"afterClose",()=>{this.state.image.parentNode&&e.o.image.selectImageAfterClose&&e.s.select(this.state.sourceImage)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let n=i.target;if(o.Dom.isTag(n,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;t.state.sourceImage=n,t.state.image=n.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(n)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,o;Object.values(null!=(t=(0,n.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,n.cached)(this,"dialog"))||i.destruct(),null==(o=(0,n.cached)(this,"form"))||o.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}f([n.cache],m.prototype,"form",null),f([n.cache],m.prototype,"dialog",null),f([n.cache],m.prototype,"__buttons",null),f([(0,n.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){"use strict";i.d(t,{readAlign:function(){return o}});var n=i(41180);function o(e,t){(0,n.cssInline)(e,"float")&&-1!==["left","right"].indexOf((0,n.cssInline)(e,"float").toLowerCase())?t.align=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===(0,n.cssInline)(e,"margin-left")&&"auto"===(0,n.cssInline)(e,"margin-right")?t.align="center":t.align=""}},94575:function(e,t,i){"use strict";i.d(t,{readValuesFromImage:function(){return c}});var n=i(29960),o=i(41180),r=i(51642),s=i(75595),a=i(47749),l=i(32566);async function c(e,t){let{sourceImage:i,values:c}=t;return(0,r.readAlign)(i,c),c.borderRadius=parseInt((0,o.cssInline)(i,"border-radius")||"0",10)||0,c.id=(0,n.attr)(i,"id")||"",c.imageTitle=(0,n.attr)(i,"title")||"",c.imageAlt=(0,n.attr)(i,"alt")||"",c.style=(0,n.attr)(i,"style")||"",c.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(i,c,t),(0,s.readLink)(t,e,c),c.imageSrc=(0,n.attr)(i,"src")||"",(0,l.readSizes)(i,c,t)}},75595:function(e,t,i){"use strict";i.d(t,{readLink:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=n.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){"use strict";i.d(t,{readMargins:function(){return o}});var n=i(12475);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,n.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},32566:function(e,t,i){"use strict";i.d(t,{readSizes:function(){return a}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,o.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,n.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:d}=t,u=parseFloat(c.toString());if(!(0,n.isNumeric)(c)||!(0,n.isNumeric)(d)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(u/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(u-parseFloat(d.toString())*i.ratio)}},59436:function(e,t,i){"use strict";i.d(t,{UIImagePropertiesForm:function(){return p}});var n=i(65478),o=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),d=i(35105),u=i(29827),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
|
|
129
129
|
<div class="jodit-grid jodit-grid_xs-column">
|
|
130
130
|
<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
|
|
131
131
|
<div class="&__view-box">
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
>
|
|
205
205
|
<label>~Border radius~</label>
|
|
206
206
|
<input type="number" class="jodit-input &__borderRadius"/>
|
|
207
|
-
</div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let e=this.getElm("align");this.state.values.align=e.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let e=this.getElm("id");this.state.values.id=e.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let e=this.getElm("style");this.state.values.style=e.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let e=this.getElm("classes");this.state.values.classes=e.value}onLockMarginClick(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}onChangeMarginIsLocked(){let e=this.getElm("marginBottom"),t=this.getElm("marginRight"),i=this.getElm("marginLeft"),n=this.getElm("lockMargin");if([t,e,i].forEach(e=>{(0,l.attr)(e,"disabled",this.state.marginIsLocked||null)}),n.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let e=this.state.values.marginTop;this.state.values.marginRight=e,this.state.values.marginBottom=e,this.state.values.marginLeft=e}}onStateValuesMarginChange(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),n.value=this.state.values.marginLeft.toString()}onChangeMargin(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");this.state.values.marginTop=(0,u.normalSizeFromString)(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,u.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,u.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,u.normalSizeFromString)(n.value))}hideFieldByOptions(){let e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,i])=>{let n=this.getElm(i);(0,s.css)(n,"display",e[t]?null:"none")})}constructor(e,t,i){super(e,{availableClasses:e.o.image.availableClasses}),this.state=t,this.handlers=i}};h([(0,o.hook)("ready"),(0,r.watch)("state.values.align")],p.prototype,"onStateAlignChange",null),h([(0,r.watch)("align:change")],p.prototype,"onChangeAlign",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.borderRadius")],p.prototype,"onStateValuesBorderRadiusChange",null),h([(0,r.watch)("borderRadius:change")],p.prototype,"onChangeBorderRadius",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.id")],p.prototype,"onStateValuesIdChange",null),h([(0,r.watch)("id:change")],p.prototype,"onChangeId",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.style")],p.prototype,"onStateValuesStyleChange",null),h([(0,r.watch)("style:change")],p.prototype,"onChangeStyle",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.classes")],p.prototype,"onStateValuesClassesChange",null),h([(0,r.watch)("classes:change")],p.prototype,"onChangClasses",null),h([(0,r.watch)("lockMargin:click")],p.prototype,"onLockMarginClick",null),h([(0,o.hook)("ready"),(0,r.watch)("state.marginIsLocked")],p.prototype,"onChangeMarginIsLocked",null),h([(0,o.hook)("ready"),(0,r.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],p.prototype,"onStateValuesMarginChange",null),h([(0,r.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],p.prototype,"onChangeMargin",null),h([(0,o.hook)("ready")],p.prototype,"hideFieldByOptions",null),p=h([n.component],p)},53636:function(e,t,i){"use strict";i.d(t,{openImageEditorDialog:function(){return s}});var n=i(70799),o=i(29960),r=i(50050);function s(e,t){let i=(0,o.attr)(t.image,"src")||"",s=e.c.element("a"),a=()=>{if(s.host!==location.host)return void e.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&e.uploader&&e.uploader.uploadRemoteImage(s.href.toString(),i=>{e.alert("The image has been successfully uploaded to the host!",()=>{(0,n.isString)(i.newfilename)&&(t.values.imageSrc=i.baseurl+i.newfilename)})},t=>{e.alert(e.i18n("There was an error loading %s",t.message))})})};s.href=i,e.filebrowser.dataProvider.getPathByUrl(s.href.toString()).then(n=>{r.openImageEditor.call(e.filebrowser,s.href,n.name,n.path,n.source,e=>{let n=new Date().getTime(),o=e||i;t.values.imageSrc=o+(-1!==o.indexOf("?")?"":"?")+"&_tmp="+n.toString()},t=>{e.alert(t.message)})}).catch(t=>{e.alert(t.message,a)})}},10263:function(e,t,i){"use strict";i.d(t,{openImagePopup:function(){return a}});var n=i(68345),o=i(5700),r=i(56917),s=i(34793);function a(e,t,i,a){let l=new r.Popup(t),c=()=>{l.close(),l.destruct()};l.setContent((0,s.FileSelectorWidget)(e,{upload:e=>{e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),c()},filebrowser:async e=>{e&&(0,n.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],c())}},i.image,c)).open(()=>(0,o.position)(a))}},14415:function(e,t,i){"use strict";var n=i(84767),o=i(49055);i.d(t,["normalSizeFromString",0,e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,"normalSizeToString",0,e=>(0,n.isNumber)(e)?e?e+"px":e.toString():(e=(0,o.trim)(e),/^[0-9]+$/.test(e)?e+"px":e)])},34755:function(e,t,i){"use strict";i.d(t,{applyValuesToImage:function(){return c}});var n=i(2748),o=i(43555),r=i(41180),s=i(29615),a=i(14721),l=i(87602);function c(e,t,i){let{style:c,imageSrc:d,borderRadius:u,imageTitle:h,imageAlt:p,imageLink:f,imageWidth:m,imageHeight:g,marginTop:v,marginRight:b,marginBottom:y,marginLeft:w,imageLinkOpenInNewTab:_,align:k,classes:C,id:S}=t.values,x=e.o;(x.image.editStyle&&(0,o.attr)(i,"style",c||null),d)?((0,o.attr)(i,"src",d),(0,r.css)(i,"borderRadius",u?u+"px":""),(0,o.attr)(i,"title",h||null),(0,o.attr)(i,"alt",p||null),(0,s.applyLink)(e,i,f,_),(0,l.applySize)(i,m,g,t.sizeIsLocked),e.o.image.editMargins&&(0,a.applyMargin)(e,v,b,y,w,i,t.marginIsLocked),x.image.editClass&&(0,o.attr)(i,"class",C||null),x.image.editId&&(0,o.attr)(i,"id",S||null),x.image.editAlign&&(0,o.hAlignElement)(i,k)):n.Dom.safeRemove(i)}},29615:function(e,t,i){"use strict";i.d(t,{applyLink:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i,r){let s=n.Dom.closest(t,"a",e.editor);if(i){if(s||(s=n.Dom.wrap(t,"a",e.createInside)),(0,o.attr)(s,"href",i),(0,o.attr)(s,"target",r?"_blank":null),!r){let e=((0,o.attr)(s,"rel")||"").split(/\s+/).filter(e=>e&&"noopener"!==e&&"noreferrer"!==e);(0,o.attr)(s,"rel",e.length?e.join(" "):null)}}else s&&s.parentNode&&n.Dom.replace(s,t,void 0,!1,!0)}},14721:function(e,t,i){"use strict";i.d(t,{applyMargin:function(){return r}});var n=i(41180),o=i(14415);function r(e,t,i,r,s,a,l){let c=[t,i,r,s],d=(e,t)=>{let i=(0,n.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,n.css)(a,e,r)};if(l)d("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{d(e[i],t)})}}},87602:function(e,t,i){"use strict";i.d(t,{applySize:function(){return a}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);function a(e,t,i,a){if(t!==e.offsetWidth||i!==e.offsetHeight){let l=t?(0,s.normalSizeToString)(t):null,c=i?(0,s.normalSizeToString)(i):null;(0,r.css)(e,{width:l,height:l&&a?null:c}),(0,o.attr)(e,"width",l&&(0,n.isNumeric)(t)&&(0,o.attr)(e,"width")?l:null),(!(0,o.attr)(e,"width")||a)&&(c=null),(0,o.attr)(e,"height",c)}}},23531:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(21537),s=i(29960),a=i(12153),l=i(6441),c=i(92762),d=i(25179);a.Icon.set("image",d.default),l.Config.prototype.controls.image={popup:(e,t,i)=>{let o=null;return t&&!n.Dom.isText(t)&&n.Dom.isHTMLElement(t)&&(n.Dom.isTag(t,"img")||(0,r.$$)("img",t).length)&&(o=n.Dom.isTag(t,"img")?t:(0,r.$$)("img",t)[0]),e.s.save(),(0,c.FileSelectorWidget)(e,{filebrowser:t=>{e.s.restore(),t.files&&t.files.forEach(i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth)),i()},upload:!0,url:async(t,n)=>{e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);let r=o||e.createInside.element("img");(0,s.attr)(r,"src",t),(0,s.attr)(r,"alt",n),o||await e.s.insertImage(r,null,e.o.imageDefaultWidth),i()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",function(e){e.registerButton({name:"image",group:"media"})})},25179:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '},54389:function(e,t,i){"use strict";var n=i(22732),o=i(41180),r=i(12153),s=i(6441),a=i(78614),l=i(86835),c=i(302);r.Icon.set("indent",a.default).set("outdent",l.default),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled:e=>{var t;let i=e.s.current();if(!i)return!0;if(null==(t=e.o.tab)?void 0:t.tabInsideLiInsertNewList){let t=n.Dom.closest(i,"li",e.editor);if(t){let i=n.Dom.closest(t,["ul","ol"],e.editor);if(i&&n.Dom.closest(i,"li",e.editor))return!1}}let r=n.Dom.closest(i,n.Dom.isBlock,e.editor);if(r){let t=(0,c.getKey)(e.o.direction,r),i=(0,o.cssInline)(r,t);return!i||0>=parseInt(i,10)}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},302:function(e,t,i){"use strict";var n=i(2748);i.d(t,["getKey",0,(e,t)=>`${n.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`])},78614:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},86835:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},70045:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(580),s=i(43555),a=i(41180);i(54389);var l=i(302);let c=(e,t,i,n)=>{if(!t||e.has(t))return;let o=(0,l.getKey)(i.o.direction,t);e.add(t);let r=(0,a.cssInline)(t,o),c=r?parseInt(r,10):0;c+=i.o.indentMargin*("outdent"===n?-1:1),(0,a.css)(t,o,c>0?c:""),(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null)};r.pluginSystem.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let t=t=>{let i=new Set,{enter:r,enterBlock:a}=e.o,l=r.toLowerCase()===n.BR,d=e.s.current();return l&&e.s.isCollapsed()&&d?c(i,o.Dom.wrapNextInline(d,a,e),e,t):(e.s.eachSelection(n=>{e.s.save();let d=!!n&&o.Dom.up(n,o.Dom.isBlock,e.editor);if(!d&&n&&(d=(0,s.call)(l?o.Dom.wrapNextInline:o.Dom.wrapInline,n,l?a:r.toLowerCase(),e)),!d)return e.s.restore(),!1;c(i,d,e,t),e.s.restore()}),e.synchronizeValues()),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})})},46448:function(e,t,i){"use strict";i(73391),i(93183),i(66707),i(41107),i(93079),i(575),i(23399),i(96111),i(42263),i(77469),i(23531),i(93401),i(65517),i(64837),i(59451),i(18363),i(6687),i(45927),i(7309),i(43003),i(72253),i(65735)},24526:function(e,t,i){"use strict";var n=i(27613),o=i(12153),r=i(6441),s=i(61122),a=i(62e3),l=i(66789),c=i(20882),d=i(14306),u=i(24231),h=i(75393),p=i(14862),f=i(96257),m=i(9914),g=i(53696),v=i(33489);r.Config.prototype.toolbarInline=!0,r.Config.prototype.toolbarInlineForSelection=!1,r.Config.prototype.toolbarInlineDisableFor=[],r.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",u.default).set("addrow",h.default).set("merge",p.default).set("th",g.default).set("splitg",f.default).set("splitv",m.default).set("th-list",v.default),a.default.forEach(e=>{(0,n.isString)(e)||!e.name||r.Config.prototype.controls[e.name]||(r.Config.prototype.controls[e.name]=e)}),r.Config.prototype.popup={a:s.default,img:c.default,cells:a.default,toolbar:d.default,jodit:l.default,iframe:l.default,"jodit-media":l.default,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},61122:function(e,t,i){"use strict";var n=i(29960);t.default=[{name:"eye",tooltip:"Open link",exec:(e,t)=>{let i=(0,n.attr)(t,"href");t&&i&&/^(https?:|mailto:|tel:)/i.test(i.trim())&&!/^(javascript:|data:|vbscript:)/i.test(i.trim())&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},62e3:function(e,t,i){"use strict";var n=i(27613),o=i(41180);let r=e=>e.args&&(0,n.isString)(e.args[0])?e.args[0].toLowerCase():"";t.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec:(e,t,{control:i})=>{let n=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,o.css)(e,"vertical-align","normal"===n?"":n)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},66789:function(e,t,i){"use strict";t.default=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},i(20882).align]},20882:function(e,t,i){"use strict";var n=i(22732),o=i(70799),r=i(25726),s=i(41180);let a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,new Set(["img","jodit","jodit-media"])))return;let s=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.hAlignElement)(t,s),n.Dom.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&(0,r.hAlignElement)(t.firstElementChild,s),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,"img"))return;let r=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.css)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a],i.d(t,["align",0,a])},14306:function(e,t){"use strict";t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},24231:function(e,t){"use strict";t.default='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> '},75393:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> '},14862:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> '},96257:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},9914:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},33489:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '},53696:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> '},93401:function(e,t,i){"use strict";var n=i(65478),o=i(22732),r=i(580),s=i(21537),a=i(50911),l=i(67510),c=i(61259),d=i(21491);i(24526);var u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{get popup(){return new c.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=o.Dom.isTag(e,"img")?e:o.Dom.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,s.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(e,t,i){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||i!==this.previousTarget){let e;this.previousTarget=i;let n=this.j.o.popup[t];if(e=(0,s.isFunction)(n)?n(this.j,i,this.popup.close):n,(0,s.isArray)(e)){let t=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(t.length?e.filter(e=>{let i=(0,s.isString)(e)?e:e.name;return!t.includes(null!=i?i:"")}):e,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,e=this.toolbar.container}this.popup.setContent(e),this.type=t}return this.popup.open(e),!0}hidePopup(e){this.popup.isOpened&&(!(0,s.isString)(e)||e===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){let t=this.j.o.popup[e.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!t&&!this.isExcludedTarget(e)}isExcludedTarget(e){return(0,s.splitArray)(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){let t=this.toolbar.getButtonsNames();return(0,s.toArray)(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{let i=(0,s.isString)(e)?e:e.name;return i&&"|"!==i&&"\n"!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,s.isString)(e)?e:e.nodeName),(0,s.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(e){this.popup.isOpened&&"selection"===this.type&&e.target&&l.UIElement.closestElement(e.target,c.Popup)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){!this.__reopenSelectionPopup||(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{let e=this.j.s.sel;e&&!e.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){let e=this.j.s.range.getBoundingClientRect(),{left:t,top:i}=e;if(this.j.iframe){let e=(0,s.position)(this.j.iframe,this.j,!0);t+=e.left,i+=e.top}return{left:t,top:i,width:e.width,height:e.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&l.UIElement.closestElement(e.target,c.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if((null==t?void 0:t.isCollapsed)||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),e)}isSelectedTarget(e){let t=e.startContainer;return o.Dom.isElement(t)&&t===e.endContainer&&o.Dom.isTag(t.childNodes[e.startOffset],new Set((0,s.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,s.camelCase)(`click_${e}`)).concat(e.map(e=>(0,s.camelCase)(`touchstart_${e}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(){super(...arguments),this.type=null,this.__reopenSelectionPopup=!1,this.snapRange=null,this.elmsList=(0,s.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e))}}h.requires=["select"],u([n.cache],h.prototype,"popup",null),u([n.cache],h.prototype,"toolbar",null),u([n.autobind],h.prototype,"onClick",null),u([(0,n.wait)(e=>!e.j.isLocked)],h.prototype,"showPopup",null),u([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],h.prototype,"hidePopup",null),u([(0,n.watch)(":outsideClick")],h.prototype,"onOutsideClick",null),u([n.autobind],h.prototype,"__onDocumentMouseDown",null),u([n.autobind],h.prototype,"__onCloseAllPopups",null),u([n.autobind],h.prototype,"onSelectionStart",null),u([n.autobind],h.prototype,"onSelectionEnd",null),u([(0,n.debounce)(e=>e.defaultTimeout)],h.prototype,"onSelectionChange",null),u([n.autobind],h.prototype,"showInlineToolbar",null),r.pluginSystem.add("inlinePopup",h)},76295:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(21537),s=i(25726),a=i(41180),l=i(12153),c=i(6441),d=i(5567);l.Icon.set("justify",d.default),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,o=e.s.current();if(o){let s=n.Dom.closest(o,n.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(s,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:d}=i;d&&d.currentValue!==l&&c&&((0,r.isPlainObject)(c)?c[l]:c.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,d.currentValue=l)}},isActive:(e,t)=>{let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let o=n.Dom.closest(i,n.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(o,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},o.pluginSystem.add("justify",function(e){e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let o=n.Dom.up(i,n.Dom.isBlock,e.editor);o||(o=n.Dom.wrapInline(i,e.o.enterBlock,e)),(0,s.alignElement)(t,o)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},5567:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},59483:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(50911);class l extends a.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:i,endOffset:o}=this.j.selection.range;if(r.Dom.isText(i)&&(null==(t=i.nodeValue)?void 0:t.length)===o){let{parentNode:e}=i;r.Dom.isInlineBlock(e)&&!r.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&r.Dom.after(e,this.j.createInside.text(n.NBSP_SPACE))}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":keydown")],l.prototype,"onKeyDownArrow",null),s.pluginSystem.add("keyArrowOutside",l)},57288:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1},91071:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(580),s=i(50911);i(57288);var a=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class l extends s.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(n.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t;let{jodit:i}=this,{limitWords:o,limitChars:r}=i.o,s=i.o.limitHTML?i.value:i.text,a=this.__splitWords(s);if(o&&(t=a.length,e?t>o:t>=o))return i.e.fire("denyWords.limit limit.limit"),!0;let l=i.o.countTextSpaces?s.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,"").length:a.join("").length,c=!!(r&&(e?l>r:l>=r));return c&&i.e.fire("denyChars.limit limit.limit"),c}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}a([o.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),a([o.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},26295:function(e,t,i){"use strict";var n=i(21537),o=i(12153),r=i(6441),s=i(53259);r.Config.prototype.defaultLineHeight=null,o.Icon.set("line-height",s.default),r.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,n.memorizeExec)(e,t,{control:i},e=>e)}},80084:function(e){"use strict";e.exports={"Line height":"ارتفاع الخط"}},76725:function(e){"use strict";e.exports={"Line height":"V\xfdška č\xe1ry"}},71724:function(e){"use strict";e.exports={"Line height":"Zeilenh\xf6he"}},46295:function(e){"use strict";e.exports={"Line height":"Altura de la l\xednea"}},70190:function(e){"use strict";e.exports={"Line height":"ارتفاع خط"}},67206:function(e){"use strict";e.exports={"Line height":"Rivin korkeus"}},85723:function(e){"use strict";e.exports={"Line height":"Hauteur de ligne"}},61072:function(e){"use strict";e.exports={"Line height":"גובה שורה"}},30592:function(e){"use strict";e.exports={"Line height":"Vonal magass\xe1ga"}},89194:function(e){"use strict";e.exports={"Line height":"Tinggi baris"}},28143:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(E,2))},de:function(){return r||(r=i.t(T,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(D,2))},fi:function(){return l||(l=i.t(A,2))},fr:function(){return c||(c=i.t(L,2))},he:function(){return d||(d=i.t(P,2))},hu:function(){return u||(u=i.t(M,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(z,2))},ja:function(){return f||(f=i.t(B,2))},ko:function(){return m||(m=i.t(N,2))},mn:function(){return g||(g=i.t(O,2))},nl:function(){return v||(v=i.t(F,2))},pl:function(){return b||(b=i.t(H,2))},pt_br:function(){return y||(y=i.t(U,2))},ru:function(){return w||(w=i.t(q,2))},sk:function(){return _||(_=i.t(V,2))},tr:function(){return k||(k=i.t(W,2))},ua:function(){return C||(C=i.t($,2))},zh_cn:function(){return S||(S=i.t(G,2))},zh_tw:function(){return x||(x=i.t(K,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x,I=i(80084),E=i(76725),T=i(71724),j=i(46295),D=i(70190),A=i(67206),L=i(85723),P=i(61072),M=i(30592),R=i(89194),z=i(51834),B=i(5082),N=i(80105),O=i(26556),F=i(98689),H=i(42727),U=i(43646),q=i(53822),V=i(70717),W=i(41817),$=i(69625),G=i(28973),K=i(19033)},51834:function(e){"use strict";e.exports={"Line height":"Altezza linea"}},5082:function(e){"use strict";e.exports={"Line height":"ラインの高さ"}},80105:function(e){"use strict";e.exports={"Line height":"선 높이"}},26556:function(e){"use strict";e.exports={"Line height":"Зураасны өндөр"}},98689:function(e){"use strict";e.exports={"Line height":"Lijnhoogte"}},42727:function(e){"use strict";e.exports={"Line height":"Wysokość linii"}},43646:function(e){"use strict";e.exports={"Line height":"Altura da linha"}},53822:function(e){"use strict";e.exports={"Line height":"Высота линии"}},70717:function(e){"use strict";e.exports={"Line height":"V\xfdška riadku"}},41817:function(e){"use strict";e.exports={"Line height":"\xc7izgi y\xfcksekliği"}},69625:function(e){"use strict";e.exports={"Line height":"Висота лінії"}},28973:function(e){"use strict";e.exports={"Line height":"线高"}},19033:function(e){"use strict";e.exports={"Line height":"行高"}},61019:function(e,t,i){"use strict";var n=i(65478),o=i(2748),r=i(580),s=i(21537),a=i(50911);i(26295);var l=i(28143);class c extends a.Plugin{afterInit(e){(0,s.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let n,{s:r,createInside:a,editor:l,o:c}=this.j;r.isFocused()||r.focus(),r.save();let d=e=>{let t=o.Dom.closest(e,o.Dom.isBlock,l);t||(t=o.Dom.wrap(e,c.enter,a));let r=(0,s.css)(t,"lineHeight");void 0===n&&(n=r.toString()!==i.toString()),(0,s.css)(t,"lineHeight",n?i:null)};try{if(r.isCollapsed()){let e=a.fake();r.insertNode(e,!1,!1),d(e),o.Dom.safeRemove(e)}else r.eachSelection(d)}finally{r.restore()}}beforeDestruct(e){(0,s.css)(e.editor,{lineHeight:null})}constructor(e){super(e),this.buttons=[{name:"lineHeight",group:"font"}],(0,r.extendLang)(l)}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],c.prototype,"applyLineHeight",null),r.pluginSystem.add("lineHeight",c)},53259:function(e,t){"use strict";t.default='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '},5827:function(e,t,i){"use strict";var n=i(2748),o=i(12153),r=i(6441),s=i(27190),a=i(42345),l=i(10411);r.Config.prototype.link={formTemplate:l.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,deriveUrlFromText:!1,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,ariaLabelInput:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},o.Icon.set("link",s.default).set("unlink",a.default),r.Config.prototype.controls.unlink={exec:(e,t)=>{let i=n.Dom.closest(t,"a",e.editor);i&&n.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},r.Config.prototype.controls.link={isActive:e=>{let t=e.s.current();return!!(t&&n.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},27190:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> '},42345:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '},65517:function(e,t,i){"use strict";var n=i(65478),o=i(22732),r=i(580),s=i(21537),a=i(50911);i(5827);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,s.refs)(i.container);null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!o.Dom.isTag(e.target,"a"))return;let t=(0,s.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){var i,n,o,r;let{jodit:a}=this;if((0,s.isURL)(t)&&a.o.link.processPastedLink){if(a.e.stopPropagation("processPaste"),a.o.link.processVideoLink){let e=(0,s.call)(null!=(n=null==(i=a.o.video)?void 0:i.parseUrlToVideoEmbed)?n:s.convertMediaUrlToVideoEmbed,t,{width:null==(o=a.o.video)?void 0:o.defaultWidth,height:null==(r=a.o.video)?void 0:r.defaultHeight});if(e!==t)return a.createInside.fromHTML(e)}if(a.s.isCollapsed()){let e=a.createInside.element("a");return(0,s.attr)(e,"href",t),e.textContent=t,a.e.fire("applyLink",a,e,null),e}return a.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,n,{jodit:r}=this,a=r.i18n.bind(r),{openInNewTabCheckbox:l,openInNewTabCheckboxDefaultChecked:c,noFollowCheckbox:d,formTemplate:u,formClassName:h,modeClassName:p}=r.o.link,f=u(r),m=(0,s.isString)(f)?r.c.fromHTML(f,{target_checkbox_box:l,nofollow_checkbox_box:d}):f,g=o.Dom.isElement(m)?m:m.container,v=(0,s.refs)(g),{insert:b,unlink:y,content_input_box:w}=v,{target_checkbox:_,nofollow_checkbox:k,url_input:C}=v,S=o.Dom.isImage(e),{content_input:x}=v,{className_input:I}=v,{className_select:E}=v,{aria_label_input:T}=v;x||(x=r.c.element("input",{type:"hidden",ref:"content_input"})),h&&g.classList.add(h),S&&o.Dom.hide(w);let j=()=>n?n.innerText:(0,s.stripTags)(r.s.range.cloneContents(),r.ed);n=!!(e&&o.Dom.closest(e,"a",r.editor))&&o.Dom.closest(e,"a",r.editor),!S&&e&&(x.value=j()),T&&(T.value=n&&(0,s.attr)(n,"aria-label")||""),n?(C.value=(0,s.attr)(n,"href")||"",p&&function(e,t,i,n){switch(e){case"input":t&&(t.value=(0,s.attr)(i,"class")||"");break;case"select":if(n){for(let e=0;e<n.selectedOptions.length;e++){let t=n.options.item(e);t&&(t.selected=!1)}((0,s.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<n.options.length;t++){let i=n.options.item(t);(null==i?void 0:i.value)&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}}(p,I,n,E),l&&_&&(_.checked="_blank"===(0,s.attr)(n,"target")),d&&k&&(k.checked=((0,s.attr)(n,"rel")||"").split(/\s+/).includes("nofollow")),b.textContent=a("Update")):(o.Dom.hide(y),r.o.link.deriveUrlFromText&&C&&!S&&!C.value.trim()&&(C.value=!(i=x.value.trim())||/\s/.test(i)?"":/^(https?:|mailto:|tel:|ftp:|#|\/|\.{1,2}\/)/i.test(i)?i:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)?`mailto:${i}`:/^[a-z0-9-]+(\.[a-z0-9-]+)+(\/\S*)?$/i.test(i)?`https://${i}`:""),l&&_&&(_.checked=c)),r.editor.normalize();let D=r.history.snapshot.make();y&&r.e.on(y,"click",e=>{r.s.restore(),r.history.snapshot.restore(D),n&&o.Dom.unwrap(n),r.synchronizeValues(),t(),e.preventDefault()});let A=()=>{let e;if(!C.value.trim().length)return C.focus(),C.classList.add("jodit_error"),!1;r.s.restore(),r.s.removeMarkers(),r.editor.normalize(),r.history.snapshot.restore(D);let i=j()!==x.value.trim(),a=r.createInside;if(n&&o.Dom.isOrContains(r.editor,n))e=[n];else{if(r.s.isCollapsed()){let t=a.element("a");r.s.insertNode(t,!1,!1),e=[t]}else{let t=r.s.current();e=o.Dom.isTag(t,"img")?[o.Dom.wrap(t,"a",a)]:r.s.wrapInTag("a")}e.forEach(e=>r.s.select(e))}return e.forEach(e=>{var t;let n;if((0,s.attr)(e,"href",C.value),function(e,t,i,n){var o;if(e&&(null!=t?t:i)){if("input"===e)""===t.value&&n.hasAttribute("class")&&(0,s.attr)(n,"class",null),""!==t.value&&(0,s.attr)(n,"class",t.value);else if("select"===e){n.hasAttribute("class")&&(0,s.attr)(n,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=null==(o=i.selectedOptions.item(e))?void 0:o.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{n.classList.add(e)})}}}}(p,I,E,e),S||(t=x,n=e.textContent,t.value.trim().length?i&&(n=t.value):n=C.value,n!==e.textContent&&(e.textContent=n)),l&&_&&(0,s.attr)(e,"target",_.checked?"_blank":null),d&&k){let t=((0,s.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");k.checked&&!i?t.push("nofollow"):!k.checked&&i&&t.splice(t.indexOf("nofollow"),1),(0,s.attr)(e,"rel",t.length?t.join(" "):null)}if(T){let t=T.value.trim();(0,s.attr)(e,"aria-label",t||null)}r.e.fire("applyLink",r,e,m)}),r.synchronizeValues(),t(),!1};return o.Dom.isElement(m)?r.e.on(m,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),A(),!1)):m.onSubmit(A),m}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&o.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}}l([n.autobind],c.prototype,"__onDblClickOnLink",null),l([n.autobind],c.prototype,"onProcessPasteLink",null),l([n.autobind],c.prototype,"__generateForm",null),l([n.autobind],c.prototype,"__onClickReadOnlyLink",null),r.pluginSystem.add("link",c)},10411:function(e,t,i){"use strict";var n=i(62843),o=i(2525);i.d(t,["formTemplate",0,e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,ariaLabelInput:r,modeClassName:s,selectSizeClassName:a,selectMultipleClassName:l,selectOptionsClassName:c}=e.o.link;return new o.UIForm(e,[new o.UIBlock(e,[new o.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),r?new o.UIBlock(e,[new o.UIInput(e,{name:"ariaLabel",ref:"aria_label_input",label:"Aria label"})]):null,new o.UIBlock(e,[new o.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),s?new o.UIBlock(e,["input"===s?new o.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===s?new o.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:a,multiple:l,options:c}):null]):null,t?new o.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new o.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new o.UIBlock(e,[new n.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new n.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}])},757:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.mediaFakeTag="jodit-media",n.Config.prototype.mediaInFakeBlock=!0,n.Config.prototype.mediaBlocks=["video","audio"]},20071:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(43555),a=i(41180);i(757),r.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:r,mediaInFakeBlock:l}=e.options;l&&e.e.on("afterGetValueFromEditor",e=>{let n=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");n.test(e.value)&&(e.value=e.value.replace(n,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===n.MODE_SOURCE||(0,s.$$)(r.join(","),e.editor).forEach(n=>{if(!(0,s.dataBind)(n,t)){(0,s.dataBind)(n,t,!0);var r=n;if(r.parentNode&&(0,s.attr)(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{let n=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});(0,s.attr)(n,"style",(0,s.attr)(r,"style")),(0,a.css)(n,{display:"inline-block"===(0,a.cssInline)(r,"display")?"inline-block":"block",width:r.offsetWidth,height:r.offsetHeight}),r.parentNode&&o.Dom.before(r,n),o.Dom.append(n,r),r=n}e.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(r)})}})},e.defaultTimeout))})},37585:function(e,t,i){"use strict";var n=i(82758),o=i(21537),r=i(41180),s=i(6441),a=i(11676),l=i(21491);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],s.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],s.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],s.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:(e,t,i,n)=>{let s=n.control.data;return void 0===s&&(s={toolbar:(0,l.makeCollection)(e),rebuild:()=>{var t,i;if(n){let l=e.e.fire("getDiffButtons.mobile",n.closest(a.ToolbarCollection));if(l&&s){s.toolbar.build((0,o.splitArray)(l));let n=(null==(i=null==(t=e.toolbar)?void 0:t.firstButton)?void 0:i.container.offsetWidth)||36;(0,r.css)(s.toolbar.container,"width",(n+4)*3)}}}},n.control.data=s),s.rebuild(),s.toolbar},tooltip:"Show all"}},32309:function(e,t,i){"use strict";var n=i(580),o=i(21537),r=i(43649);i(37585);let s=e=>"|"===e||"---"===e||"\n"===e;function a(e,t){var i;let n=(0,r.flatButtonsSet)((0,o.splitArray)(t.o.buttons),t),a=t.getRegisteredButtonGroups(),l=!1,c=!1,d=[];for(let t of e)if((0,r.isButtonGroup)(t)){let e=[...t.buttons,...null!=(i=a[t.group])?i:[]],o=e.filter(e=>n.has(e));o.length!==e.length&&(l=!0),d.push(...o)}else s(t)?d.push(t):"dots"===t?c=!0:n.has(t)?d.push(t):l=!0;if(!l)return e;let u=[];for(let e of d)s(e)&&(0===u.length||s(u[u.length-1]))||u.push(e);for(;u.length&&s(u[u.length-1]);)u.pop();if(c){let e=(0,r.flatButtonsSet)(u,t);(0,o.toArray)(n).some(t=>!e.has(t))&&u.push("dots")}return u}n.pluginSystem.add("mobile",function(e){let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let n=new Date().getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),n=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(n.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t,n;if(!e.o.toolbar)return;let r=(null!=(t=e.container.parentElement)?t:e.container).offsetWidth,s=e.isFullSize||r>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):r>=e.o.sizeMD?a((0,o.splitArray)(e.o.buttonsMD),e):r>=e.o.sizeSM?a((0,o.splitArray)(e.o.buttonsSM),e):a((0,o.splitArray)(e.o.buttonsXS),e);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),null==(n=e.toolbar)||n.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},57951:function(e,t,i){"use strict";var n=i(86583),o=i(12153),r=i(6441),s=i(13465),a=i(50267);let l=(e,t,{control:i})=>{var o;let r=`button${i.command}`,s=null!=(o=i.args&&i.args[0])?o:(0,n.dataBind)(e,r);(0,n.dataBind)(e,r,s),e.execCommand(i.command,!1,"default"===s?null:s)};o.Icon.set("ol",s.default).set("ul",a.default),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:l},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:l}},13465:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},50267:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},64837:function(e,t,i){"use strict";var n=i(65478),o=i(580),r=i(50911);i(57951);class s extends r.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=i?i:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"onCommand",null),o.pluginSystem.add("orderedList",s)},71842:function(e,t,i){"use strict";var n=i(82758),o=i(6441);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Clean"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}]},31571:function(e,t,i){"use strict";i.d(t,{pasteFromWord:function(){return c}});var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911);i(71842);var l=i(117);class c extends a.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:n}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:a,defaultActionOnPaste:c,pasteFromWordActionList:d}=n.o;return!!(o&&(0,s.isHtmlFromWord)(t))&&(r?(0,l.askInsertTypeDialog)(n,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",n=>{this.insertFromWordByType(e,t,n,i)},d):this.insertFromWordByType(e,t,a||c,i),!0)}insertFromWordByType(e,t,i,o){var r;switch(i){case n.INSERT_AS_HTML:{t=(0,s.applyStyles)(t);let e=null==(r=this.j.events)?void 0:r.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e);break}case n.INSERT_AS_TEXT:t=(0,s.cleanFromWord)(t);break;case n.INSERT_ONLY_TEXT:t=(0,s.stripTags)((0,s.cleanFromWord)(t),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,l.pasteInsertHtml)(e,this.j,t)}}c.requires=["paste"],function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":processHTML")],c.prototype,"processWordHTML",null),r.pluginSystem.add("pasteFromWord",c)},85407:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(10830);class c extends a.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,l.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,l.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),o.Dom.append(this.container,this.listBox),o.Dom.append(this.container,this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return o.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,s.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),o.Dom.safeRemove(this.previewBox),o.Dom.safeRemove(this.listBox),o.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(e.key)){if(e.key===n.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===n.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===n.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}},this.selectIndex=e=>{this.listBox&&(0,s.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&o.Dom.detach(this.listBox),this.previewBox&&o.Dom.detach(this.previewBox),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,s.attr)(i,"href","#"),(0,s.attr)(i,"data-index",t.toString()),(0,s.attr)(i,"tab-index","-1"),this.listBox&&o.Dom.append(this.listBox,i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}r.pluginSystem.add("pasteStorage",c)},84380:function(e,t,i){"use strict";var n=i(82758),o=i(6441),r=i(117);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Insert as Text"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let s="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){var o;if(i.name===s)return void e.execCommand("showPasteStorage");e.s.focus();let a="",l=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=e[0],i=(null==(o=t.types)?void 0:o.includes(n.TEXT_HTML))?n.TEXT_HTML:n.TEXT_PLAIN,r=await t.getType(i);a=await new Response(r).text()}l=!1}catch(e){n.IS_PROD}if(l)try{a=await navigator.clipboard.readText(),l=!1}catch(e){n.IS_PROD}}l&&(l=0===(a=e.buffer.get(n.CLIPBOARD_ID)||"").length);let c=e.value;l?(e.ed.execCommand("paste"),(l=c===e.value)||e.e.fire("afterPaste")):a.length?((0,r.pasteInsertHtml)(null,e,a),e.e.fire("afterPaste")):l&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[s]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}}},117:function(e,t,i){"use strict";i.d(t,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var n=i(82758),o=i(2748),r=i(27613),s=i(10830);function a(e,t,i){var n;let s,a;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let l=t.e.fire("beforePasteInsert",i);!(0,r.isVoid)(l)&&((0,r.isString)(l)||(0,r.isNumber)(l)||o.Dom.isNode(l))&&(i=l),(0,r.isString)(i)&&(-1!==(s=(n=(n=i).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(n=n.substring(s+20)),-1!==(a=n.search(/<!--EndFragment-->/i))&&(n=n.substring(0,a)),i=n),t.s.insertHTML(i)}function l(e){let t=e.types,i="";if((0,r.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||n.TEXT_PLAIN).toString()+";";return i}function c(e,t,i,n,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,n,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),a=o.map(({text:t,value:i})=>(0,s.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),n(i)}));r.e.one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus()});let l=(0,s.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,n,o),r}},79799:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(84380);var c=i(117),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,a.getDataTransfer)(e),i=[null==t?void 0:t.getData(n.TEXT_PLAIN),null==t?void 0:t.getData(n.TEXT_HTML),null==t?void 0:t.getData(n.TEXT_RTF)];for(let t of i)if((0,a.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,a.getDataTransfer)(e),i=(null==t?void 0:t.getData(n.TEXT_HTML))||(null==t?void 0:t.getData(n.TEXT_PLAIN));if(t&&i&&""!==(0,a.trim)(i)){let n=this.j.e.fire("processPaste",e,i,(0,c.getAllTypes)(t));void 0!==n&&(i=n),((0,a.isString)(i)||r.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,c.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,a.isString)(t))switch(this.j.buffer.set(n.CLIPBOARD_ID,t),i){case n.INSERT_CLEAR_HTML:t=(0,a.cleanFromWord)(t);break;case n.INSERT_ONLY_TEXT:t=(0,a.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case n.INSERT_AS_TEXT:t=(0,a.htmlspecialchars)(t),this.j.o.nl2brInPlainText&&(t=(0,a.nl2br)(t));break;default:{let n=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof n&&(t=n)}}(0,c.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===n.TEXT_PLAIN+";"&&!(0,a.isHTML)(t)){let e=(0,a.htmlspecialchars)(t);return this.j.o.nl2brInPlainText?(0,a.nl2br)(e):e}}constructor(){super(...arguments),this.pasteStack=new a.LimitedStack(20),this._isDialogOpened=!1}}d([o.autobind],u.prototype,"onPaste",null),d([o.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),s.pluginSystem.add("paste",u)},61926:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.showPlaceholder=!0,n.Config.prototype.placeholder="Type something",n.Config.prototype.useInputsPlaceholder=!0},59451:function(e,t,i){"use strict";i.d(t,{isEditorEmpty:function(){return u}});var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(78116),l=i(29960),c=i(41180),d=i(20356);function u(e){var t;if(!e.firstChild)return!0;let i=e.firstChild;if(n.INSEPARABLE_TAGS.has(null==(t=i.nodeName)?void 0:t.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;let o=r.Dom.next(i,e=>e&&!r.Dom.isEmptyTextNode(e),e);return r.Dom.isText(i)&&!o?r.Dom.isEmptyTextNode(i):!o&&r.Dom.each(i,e=>!(r.Dom.isLeaf(e)||r.Dom.isList(e))&&(r.Dom.isEmpty(e)||r.Dom.isTag(e,"br")))}i(61926);class h extends d.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(0,c.css)(this.placeholderElm,{right:0,direction:"rtl"}),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,n=e.s.current(),o=n&&r.Dom.closest(n,r.Dom.isBlock,e.editor)||e.editor,s=e.ew.getComputedStyle(o),l=e.ew.getComputedStyle(e.editor);r.Dom.append(e.workplace,this.placeholderElm);let{firstChild:d}=e.editor;if(r.Dom.isElement(d)&&!(0,a.isMarker)(d)){let n=e.ew.getComputedStyle(d);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),(0,c.css)(this.placeholderElm,{fontSize:parseInt(n.getPropertyValue("font-size"),10),lineHeight:n.getPropertyValue("line-height")})}else(0,c.css)(this.placeholderElm,{fontSize:parseInt(s.getPropertyValue("font-size"),10),lineHeight:s.getPropertyValue("line-height")});(0,c.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(l.paddingTop,10)+"px",paddingLeft:parseInt(l.paddingLeft,10)+"px",paddingRight:parseInt(l.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){r.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==n.MODE_WYSIWYG)return void this.hide();u(e.editor)?this.show():this.hide()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,l.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.debounce)(e=>e.defaultTimeout/10,!0)],h.prototype,"toggle",null),s.pluginSystem.add("placeholder",h)},18363:function(e,t,i){"use strict";i(580).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
|
|
207
|
+
</div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let e=this.getElm("align");this.state.values.align=e.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let e=this.getElm("id");this.state.values.id=e.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let e=this.getElm("style");this.state.values.style=e.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let e=this.getElm("classes");this.state.values.classes=e.value}onLockMarginClick(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}onChangeMarginIsLocked(){let e=this.getElm("marginBottom"),t=this.getElm("marginRight"),i=this.getElm("marginLeft"),n=this.getElm("lockMargin");if([t,e,i].forEach(e=>{(0,l.attr)(e,"disabled",this.state.marginIsLocked||null)}),n.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let e=this.state.values.marginTop;this.state.values.marginRight=e,this.state.values.marginBottom=e,this.state.values.marginLeft=e}}onStateValuesMarginChange(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),n.value=this.state.values.marginLeft.toString()}onChangeMargin(){let e=this.getElm("marginTop"),t=this.getElm("marginRight"),i=this.getElm("marginBottom"),n=this.getElm("marginLeft");this.state.values.marginTop=(0,u.normalSizeFromString)(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,u.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,u.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,u.normalSizeFromString)(n.value))}hideFieldByOptions(){let e=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([t,i])=>{let n=this.getElm(i);(0,s.css)(n,"display",e[t]?null:"none")})}constructor(e,t,i){super(e,{availableClasses:e.o.image.availableClasses}),this.state=t,this.handlers=i}};h([(0,o.hook)("ready"),(0,r.watch)("state.values.align")],p.prototype,"onStateAlignChange",null),h([(0,r.watch)("align:change")],p.prototype,"onChangeAlign",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.borderRadius")],p.prototype,"onStateValuesBorderRadiusChange",null),h([(0,r.watch)("borderRadius:change")],p.prototype,"onChangeBorderRadius",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.id")],p.prototype,"onStateValuesIdChange",null),h([(0,r.watch)("id:change")],p.prototype,"onChangeId",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.style")],p.prototype,"onStateValuesStyleChange",null),h([(0,r.watch)("style:change")],p.prototype,"onChangeStyle",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.classes")],p.prototype,"onStateValuesClassesChange",null),h([(0,r.watch)("classes:change")],p.prototype,"onChangClasses",null),h([(0,r.watch)("lockMargin:click")],p.prototype,"onLockMarginClick",null),h([(0,o.hook)("ready"),(0,r.watch)("state.marginIsLocked")],p.prototype,"onChangeMarginIsLocked",null),h([(0,o.hook)("ready"),(0,r.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],p.prototype,"onStateValuesMarginChange",null),h([(0,r.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],p.prototype,"onChangeMargin",null),h([(0,o.hook)("ready")],p.prototype,"hideFieldByOptions",null),p=h([n.component],p)},53636:function(e,t,i){"use strict";i.d(t,{openImageEditorDialog:function(){return s}});var n=i(70799),o=i(29960),r=i(50050);function s(e,t){let i=(0,o.attr)(t.image,"src")||"",s=e.c.element("a"),a=()=>{if(s.host!==location.host)return void e.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&e.uploader&&e.uploader.uploadRemoteImage(s.href.toString(),i=>{e.alert("The image has been successfully uploaded to the host!",()=>{(0,n.isString)(i.newfilename)&&(t.values.imageSrc=i.baseurl+i.newfilename)})},t=>{e.alert(e.i18n("There was an error loading %s",t.message))})})};s.href=i,e.filebrowser.dataProvider.getPathByUrl(s.href.toString()).then(n=>{r.openImageEditor.call(e.filebrowser,s.href,n.name,n.path,n.source,e=>{let n=new Date().getTime(),o=e||i;t.values.imageSrc=o+(-1!==o.indexOf("?")?"":"?")+"&_tmp="+n.toString()},t=>{e.alert(t.message)})}).catch(t=>{e.alert(t.message,a)})}},10263:function(e,t,i){"use strict";i.d(t,{openImagePopup:function(){return a}});var n=i(68345),o=i(5700),r=i(56917),s=i(34793);function a(e,t,i,a){let l=new r.Popup(t),c=()=>{l.close(),l.destruct()};l.setContent((0,s.FileSelectorWidget)(e,{upload:e=>{e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),c()},filebrowser:async e=>{e&&(0,n.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],c())}},i.image,c)).open(()=>(0,o.position)(a))}},14415:function(e,t,i){"use strict";var n=i(84767),o=i(49055);i.d(t,["normalSizeFromString",0,e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,"normalSizeToString",0,e=>(0,n.isNumber)(e)?e?e+"px":e.toString():(e=(0,o.trim)(e),/^[0-9]+$/.test(e)?e+"px":e)])},34755:function(e,t,i){"use strict";i.d(t,{applyValuesToImage:function(){return c}});var n=i(2748),o=i(43555),r=i(41180),s=i(29615),a=i(14721),l=i(87602);function c(e,t,i){let{style:c,imageSrc:d,borderRadius:u,imageTitle:h,imageAlt:p,imageLink:f,imageWidth:m,imageHeight:g,marginTop:v,marginRight:b,marginBottom:y,marginLeft:w,imageLinkOpenInNewTab:_,align:k,classes:C,id:S}=t.values,x=e.o;(x.image.editStyle&&(0,o.attr)(i,"style",c||null),d)?((0,o.attr)(i,"src",d),(0,r.css)(i,"borderRadius",u?u+"px":""),(0,o.attr)(i,"title",h||null),(0,o.attr)(i,"alt",p||null),(0,s.applyLink)(e,i,f,_),(0,l.applySize)(i,m,g,t.sizeIsLocked),e.o.image.editMargins&&(0,a.applyMargin)(e,v,b,y,w,i,t.marginIsLocked),x.image.editClass&&(0,o.attr)(i,"class",C||null),x.image.editId&&(0,o.attr)(i,"id",S||null),x.image.editAlign&&(0,o.hAlignElement)(i,k)):n.Dom.safeRemove(i)}},29615:function(e,t,i){"use strict";i.d(t,{applyLink:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i,r){let s=n.Dom.closest(t,"a",e.editor);if(i){if(s||(s=n.Dom.wrap(t,"a",e.createInside)),(0,o.attr)(s,"href",i),(0,o.attr)(s,"target",r?"_blank":null),!r){let e=((0,o.attr)(s,"rel")||"").split(/\s+/).filter(e=>e&&"noopener"!==e&&"noreferrer"!==e);(0,o.attr)(s,"rel",e.length?e.join(" "):null)}}else s&&s.parentNode&&n.Dom.replace(s,t,void 0,!1,!0)}},14721:function(e,t,i){"use strict";i.d(t,{applyMargin:function(){return r}});var n=i(41180),o=i(14415);function r(e,t,i,r,s,a,l){let c=[t,i,r,s],d=(e,t)=>{let i=(0,n.css)(a,e),r=(0,o.normalSizeToString)(t);i.toString()!==r.toString()&&(0,n.css)(a,e,r)};if(l)d("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{d(e[i],t)})}}},87602:function(e,t,i){"use strict";i.d(t,{applySize:function(){return a}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);function a(e,t,i,a){if(t!==e.offsetWidth||i!==e.offsetHeight){let l=t?(0,s.normalSizeToString)(t):null,c=i?(0,s.normalSizeToString)(i):null;(0,r.css)(e,{width:l,height:l&&a?null:c}),(0,o.attr)(e,"width",l&&(0,n.isNumeric)(t)&&(0,o.attr)(e,"width")?l:null),(!(0,o.attr)(e,"width")||a)&&(c=null),(0,o.attr)(e,"height",c)}}},23531:function(e,t,i){"use strict";var n=i(22732),o=i(580),r=i(21537),s=i(29960),a=i(12153),l=i(6441),c=i(92762),d=i(25179);a.Icon.set("image",d.default),l.Config.prototype.controls.image={popup:(e,t,i)=>{let o=null;return t&&!n.Dom.isText(t)&&n.Dom.isHTMLElement(t)&&(n.Dom.isTag(t,"img")||(0,r.$$)("img",t).length)&&(o=n.Dom.isTag(t,"img")?t:(0,r.$$)("img",t)[0]),e.s.save(),(0,c.FileSelectorWidget)(e,{filebrowser:t=>{e.s.restore(),t.files&&t.files.forEach(i=>e.s.insertImage(t.baseurl+i,null,e.o.imageDefaultWidth)),i()},upload:!0,url:async(t,n)=>{e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t);let r=o||e.createInside.element("img");(0,s.attr)(r,"src",t),(0,s.attr)(r,"alt",n),o||await e.s.insertImage(r,null,e.o.imageDefaultWidth),i()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",function(e){e.registerButton({name:"image",group:"media"})})},25179:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '},54389:function(e,t,i){"use strict";var n=i(22732),o=i(41180),r=i(12153),s=i(6441),a=i(78614),l=i(86835),c=i(302);r.Icon.set("indent",a.default).set("outdent",l.default),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled:e=>{var t;let i=e.s.current();if(!i)return!0;if(null==(t=e.o.tab)?void 0:t.tabInsideLiInsertNewList){let t=n.Dom.closest(i,"li",e.editor);if(t){let i=n.Dom.closest(t,["ul","ol"],e.editor);if(i&&n.Dom.closest(i,"li",e.editor))return!1}}let r=n.Dom.closest(i,n.Dom.isBlock,e.editor);if(r){let t=(0,c.getKey)(e.o.direction,r),i=(0,o.cssInline)(r,t);return!i||0>=parseInt(i,10)}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},302:function(e,t,i){"use strict";var n=i(2748);i.d(t,["getKey",0,(e,t)=>`${n.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`])},78614:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},86835:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},70045:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(580),s=i(43555),a=i(41180);i(54389);var l=i(302);let c=(e,t,i,n)=>{if(!t||e.has(t))return;let o=(0,l.getKey)(i.o.direction,t);e.add(t);let r=(0,a.cssInline)(t,o),c=r?parseInt(r,10):0;c+=i.o.indentMargin*("outdent"===n?-1:1),(0,a.css)(t,o,c>0?c:""),(0,s.attr)(t,"style")||(0,s.attr)(t,"style",null)};r.pluginSystem.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let t=t=>{let i=new Set,{enter:r,enterBlock:a}=e.o,l=r.toLowerCase()===n.BR,d=e.s.current();return l&&e.s.isCollapsed()&&d?c(i,o.Dom.wrapNextInline(d,a,e),e,t):(e.s.eachSelection(n=>{e.s.save();let d=!!n&&o.Dom.up(n,o.Dom.isBlock,e.editor);if(!d&&n&&(d=(0,s.call)(l?o.Dom.wrapNextInline:o.Dom.wrapInline,n,l?a:r.toLowerCase(),e)),!d)return e.s.restore(),!1;c(i,d,e,t),e.s.restore()}),e.synchronizeValues()),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})})},46448:function(e,t,i){"use strict";i(73391),i(93183),i(66707),i(41107),i(93079),i(575),i(23399),i(96111),i(42263),i(77469),i(23531),i(93401),i(65517),i(64837),i(59451),i(18363),i(6687),i(45927),i(7309),i(43003),i(72253),i(65735)},24526:function(e,t,i){"use strict";var n=i(27613),o=i(12153),r=i(6441),s=i(61122),a=i(62e3),l=i(66789),c=i(20882),d=i(14306),u=i(24231),h=i(75393),p=i(14862),f=i(96257),m=i(9914),g=i(53696),v=i(33489);r.Config.prototype.toolbarInline=!0,r.Config.prototype.toolbarInlineForSelection=!1,r.Config.prototype.toolbarInlineDisableFor=[],r.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",u.default).set("addrow",h.default).set("merge",p.default).set("th",g.default).set("splitg",f.default).set("splitv",m.default).set("th-list",v.default),a.default.forEach(e=>{(0,n.isString)(e)||!e.name||r.Config.prototype.controls[e.name]||(r.Config.prototype.controls[e.name]=e)}),r.Config.prototype.popup={a:s.default,img:c.default,cells:a.default,toolbar:d.default,jodit:l.default,iframe:l.default,"jodit-media":l.default,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},61122:function(e,t,i){"use strict";var n=i(29960);t.default=[{name:"eye",tooltip:"Open link",exec:(e,t)=>{let i=(0,n.attr)(t,"href");t&&i&&/^(https?:|mailto:|tel:)/i.test(i.trim())&&!/^(javascript:|data:|vbscript:)/i.test(i.trim())&&e.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},62e3:function(e,t,i){"use strict";var n=i(27613),o=i(41180);let r=e=>e.args&&(0,n.isString)(e.args[0])?e.args[0].toLowerCase():"";t.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(e,t,i)=>i,exec:(e,t,{control:i})=>{let n=r(i);e.getInstance("Table",e.o).getAllSelectedCells().forEach(e=>{(0,o.css)(e,"vertical-align","normal"===n?"":n)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(e,t,{control:i})=>{if(!(0,n.isJoditObject)(e))return;if(!i.args)return!1;let o=r(i);e.execCommand(o,!1,t),e.e.fire("hidePopup")},tooltip:"Delete"}]},66789:function(e,t,i){"use strict";t.default=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},i(20882).align]},20882:function(e,t,i){"use strict";var n=i(22732),o=i(70799),r=i(25726),s=i(41180);let a={name:"left",childTemplate:(e,t,i)=>i,list:["Left","Right","Center","Normal"],exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,new Set(["img","jodit","jodit-media"])))return;let s=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.hAlignElement)(t,s),n.Dom.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&(0,r.hAlignElement)(t.firstElementChild,s),e.synchronizeValues(),e.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};t.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},{name:"pencil",exec(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(e,t,{control:i})=>{if(!n.Dom.isTag(t,"img"))return;let r=i.args&&(0,o.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.css)(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}},a],i.d(t,["align",0,a])},14306:function(e,t){"use strict";t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},24231:function(e,t){"use strict";t.default='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> '},75393:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> '},14862:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> '},96257:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},9914:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},33489:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '},53696:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> '},93401:function(e,t,i){"use strict";var n=i(65478),o=i(22732),r=i(580),s=i(21537),a=i(50911),l=i(67510),c=i(61259),d=i(21491);i(24526);var u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{get popup(){return new c.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(e){let t=this.elmsList,i=o.Dom.isTag(e,"img")?e:o.Dom.closest(e,t,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,s.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(e,t,i){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||i!==this.previousTarget){let e;this.previousTarget=i;let n=this.j.o.popup[t];if(e=(0,s.isFunction)(n)?n(this.j,i,this.popup.close):n,(0,s.isArray)(e)){let t=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(t.length?e.filter(e=>{let i=(0,s.isString)(e)?e:e.name;return!t.includes(null!=i?i:"")}):e,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,e=this.toolbar.container}this.popup.setContent(e),this.type=t}return this.popup.open(e),!0}hidePopup(e){this.popup.isOpened&&(!(0,s.isString)(e)||e===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(e){let t=this.j.o.popup[e.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!t&&!this.isExcludedTarget(e)}isExcludedTarget(e){return(0,s.splitArray)(this.j.o.toolbarInlineDisableFor).map(e=>e.toLowerCase()).includes(e.toLowerCase())}afterInit(e){this.j.e.on("getDiffButtons.mobile",t=>{if(this.toolbar===t){let t=this.toolbar.getButtonsNames();return(0,s.toArray)(e.registeredButtons).filter(e=>!this.j.o.toolbarInlineDisabledButtons.includes(e.name)).filter(e=>{let i=(0,s.isString)(e)?e:e.name;return i&&"|"!==i&&"\n"!==i&&!t.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(e,t,i)=>{this.showPopup(t,i||((0,s.isString)(e)?e:e.nodeName),(0,s.isString)(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(e){this.popup.isOpened&&"selection"===this.type&&e.target&&l.UIElement.closestElement(e.target,c.Popup)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){!this.__reopenSelectionPopup||(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{let e=this.j.s.sel;e&&!e.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){let e=this.j.s.range.getBoundingClientRect(),{left:t,top:i}=e;if(this.j.iframe){let e=(0,s.position)(this.j.iframe,this.j,!0);t+=e.left,i+=e.top}return{left:t,top:i,width:e.width,height:e.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(e){if(e&&e.target&&l.UIElement.closestElement(e.target,c.Popup))return;let{snapRange:t}=this,{range:i}=this.j.s;(!t||i.collapsed||i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let e="selection",t=this.j.s.sel,i=this.j.s.range;if((null==t?void 0:t.isCollapsed)||this.isSelectedTarget(i)){this.type===e&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),e)}isSelectedTarget(e){let t=e.startContainer;return o.Dom.isElement(t)&&t===e.endContainer&&o.Dom.isTag(t.childNodes[e.startOffset],new Set((0,s.keys)(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}beforeDestruct(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){let e=this.elmsList;return e.map(e=>(0,s.camelCase)(`click_${e}`)).concat(e.map(e=>(0,s.camelCase)(`touchstart_${e}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(e){this.showPopup(()=>{if(e)return e;let{range:t}=this.j.s;return t.getBoundingClientRect()},"toolbar")}constructor(){super(...arguments),this.type=null,this.__reopenSelectionPopup=!1,this.snapRange=null,this.elmsList=(0,s.keys)(this.j.o.popup,!1).filter(e=>!this.isExcludedTarget(e))}}h.requires=["select"],u([n.cache],h.prototype,"popup",null),u([n.cache],h.prototype,"toolbar",null),u([n.autobind],h.prototype,"onClick",null),u([(0,n.wait)(e=>!e.j.isLocked)],h.prototype,"showPopup",null),u([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],h.prototype,"hidePopup",null),u([(0,n.watch)(":outsideClick")],h.prototype,"onOutsideClick",null),u([n.autobind],h.prototype,"__onDocumentMouseDown",null),u([n.autobind],h.prototype,"__onCloseAllPopups",null),u([n.autobind],h.prototype,"onSelectionStart",null),u([n.autobind],h.prototype,"onSelectionEnd",null),u([(0,n.debounce)(e=>e.defaultTimeout)],h.prototype,"onSelectionChange",null),u([n.autobind],h.prototype,"showInlineToolbar",null),r.pluginSystem.add("inlinePopup",h)},76295:function(e,t,i){"use strict";var n=i(2748),o=i(580),r=i(21537),s=i(25726),a=i(41180),l=i(12153),c=i(6441),d=i(5567);l.Icon.set("justify",d.default),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(e,t){let i=t.control,o=e.s.current();if(o){let s=n.Dom.closest(o,n.Dom.isBlock,e.editor)||e.editor,l=(0,a.css)(s,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:d}=i;d&&d.currentValue!==l&&c&&((0,r.isPlainObject)(c)?c[l]:c.includes(l))&&(e.o.textIcons||"select"===i.component?t.state.text=l:t.state.icon.name=l,d.currentValue=l)}},isActive:(e,t)=>{let i=e.s.current();if(!i||!t.control.defaultValue)return!1;let o=n.Dom.closest(i,n.Dom.isBlock,e.editor)||e.editor;return -1===t.control.defaultValue.indexOf((0,a.css)(o,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},o.pluginSystem.add("justify",function(e){e.registerButton({name:"align",group:"indent"});let t=t=>(e.s.focus(),e.s.eachSelection(i=>{if(!i)return;let o=n.Dom.up(i,n.Dom.isBlock,e.editor);o||(o=n.Dom.wrapInline(i,e.o.enterBlock,e)),(0,s.alignElement)(t,o)}),!1);e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)})},5567:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},59483:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(50911);class l extends a.Plugin{afterInit(e){}beforeDestruct(e){}onKeyDownArrow(e){var t;if(e.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:i,endOffset:o}=this.j.selection.range;if(r.Dom.isText(i)&&(null==(t=i.nodeValue)?void 0:t.length)===o){let{parentNode:e}=i;r.Dom.isInlineBlock(e)&&!r.Dom.findNotEmptyNeighbor(e,!1,this.j.editor)&&r.Dom.after(e,this.j.createInside.text(n.NBSP_SPACE))}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":keydown")],l.prototype,"onKeyDownArrow",null),s.pluginSystem.add("keyArrowOutside",l)},57288:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1},91071:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(580),s=i(50911);i(57288);var a=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class l extends s.Plugin{afterInit(e){let{limitWords:t,limitChars:i}=e.o;if(e&&(t||i)){let t=null;e.e.off(".limit").on("beforePaste.limit",()=>{t=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&t)return e.history.snapshot.restore(t),e.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(e){return!(e&&(n.COMMAND_KEYS.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(e){var t;let{jodit:i}=this,{limitWords:o,limitChars:r}=i.o,s=i.o.limitHTML?i.value:i.text,a=this.__splitWords(s);if(o&&(t=a.length,e?t>o:t>=o))return i.e.fire("denyWords.limit limit.limit"),!0;let l=i.o.countTextSpaces?s.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,"").length:a.join("").length,c=!!(r&&(e?l>r:l>=r));return c&&i.e.fire("denyChars.limit limit.limit"),c}checkPreventKeyPressOrPaste(e){if(this.shouldPreventInsertHTML(e))return!1}checkPreventChanging(e,t){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=t)}__splitWords(e){return e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length)}beforeDestruct(e){e.e.off(".limit")}}a([o.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),a([o.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},26295:function(e,t,i){"use strict";var n=i(21537),o=i(12153),r=i(6441),s=i(53259);r.Config.prototype.defaultLineHeight=null,o.Icon.set("line-height",s.default),r.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(e,t,{control:i})=>(0,n.memorizeExec)(e,t,{control:i},e=>e)}},80084:function(e){"use strict";e.exports={"Line height":"ارتفاع الخط"}},76725:function(e){"use strict";e.exports={"Line height":"V\xfdška č\xe1ry"}},71724:function(e){"use strict";e.exports={"Line height":"Zeilenh\xf6he"}},46295:function(e){"use strict";e.exports={"Line height":"Altura de la l\xednea"}},70190:function(e){"use strict";e.exports={"Line height":"ارتفاع خط"}},67206:function(e){"use strict";e.exports={"Line height":"Rivin korkeus"}},85723:function(e){"use strict";e.exports={"Line height":"Hauteur de ligne"}},61072:function(e){"use strict";e.exports={"Line height":"גובה שורה"}},30592:function(e){"use strict";e.exports={"Line height":"Vonal magass\xe1ga"}},89194:function(e){"use strict";e.exports={"Line height":"Tinggi baris"}},28143:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(E,2))},de:function(){return r||(r=i.t(T,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(D,2))},fi:function(){return l||(l=i.t(A,2))},fr:function(){return c||(c=i.t(L,2))},he:function(){return d||(d=i.t(P,2))},hu:function(){return u||(u=i.t(M,2))},id:function(){return h||(h=i.t(z,2))},it:function(){return p||(p=i.t(R,2))},ja:function(){return f||(f=i.t(B,2))},ko:function(){return m||(m=i.t(N,2))},mn:function(){return g||(g=i.t(O,2))},nl:function(){return v||(v=i.t(F,2))},pl:function(){return b||(b=i.t(H,2))},pt_br:function(){return y||(y=i.t(U,2))},ru:function(){return w||(w=i.t(q,2))},sk:function(){return _||(_=i.t(V,2))},tr:function(){return k||(k=i.t(W,2))},ua:function(){return C||(C=i.t($,2))},zh_cn:function(){return S||(S=i.t(G,2))},zh_tw:function(){return x||(x=i.t(K,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x,I=i(80084),E=i(76725),T=i(71724),j=i(46295),D=i(70190),A=i(67206),L=i(85723),P=i(61072),M=i(30592),z=i(89194),R=i(51834),B=i(5082),N=i(80105),O=i(26556),F=i(98689),H=i(42727),U=i(43646),q=i(53822),V=i(70717),W=i(41817),$=i(69625),G=i(28973),K=i(19033)},51834:function(e){"use strict";e.exports={"Line height":"Altezza linea"}},5082:function(e){"use strict";e.exports={"Line height":"ラインの高さ"}},80105:function(e){"use strict";e.exports={"Line height":"선 높이"}},26556:function(e){"use strict";e.exports={"Line height":"Зураасны өндөр"}},98689:function(e){"use strict";e.exports={"Line height":"Lijnhoogte"}},42727:function(e){"use strict";e.exports={"Line height":"Wysokość linii"}},43646:function(e){"use strict";e.exports={"Line height":"Altura da linha"}},53822:function(e){"use strict";e.exports={"Line height":"Высота линии"}},70717:function(e){"use strict";e.exports={"Line height":"V\xfdška riadku"}},41817:function(e){"use strict";e.exports={"Line height":"\xc7izgi y\xfcksekliği"}},69625:function(e){"use strict";e.exports={"Line height":"Висота лінії"}},28973:function(e){"use strict";e.exports={"Line height":"线高"}},19033:function(e){"use strict";e.exports={"Line height":"行高"}},61019:function(e,t,i){"use strict";var n=i(65478),o=i(2748),r=i(580),s=i(21537),a=i(50911);i(26295);var l=i(28143);class c extends a.Plugin{afterInit(e){(0,s.css)(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(e,t,i){let n,{s:r,createInside:a,editor:l,o:c}=this.j;r.isFocused()||r.focus(),r.save();let d=e=>{let t=o.Dom.closest(e,o.Dom.isBlock,l);t||(t=o.Dom.wrap(e,c.enter,a));let r=(0,s.css)(t,"lineHeight");void 0===n&&(n=r.toString()!==i.toString()),(0,s.css)(t,"lineHeight",n?i:null)};try{if(r.isCollapsed()){let e=a.fake();r.insertNode(e,!1,!1),d(e),o.Dom.safeRemove(e)}else r.eachSelection(d)}finally{r.restore()}}beforeDestruct(e){(0,s.css)(e.editor,{lineHeight:null})}constructor(e){super(e),this.buttons=[{name:"lineHeight",group:"font"}],(0,r.extendLang)(l)}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],c.prototype,"applyLineHeight",null),r.pluginSystem.add("lineHeight",c)},53259:function(e,t){"use strict";t.default='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '},5827:function(e,t,i){"use strict";var n=i(2748),o=i(12153),r=i(6441),s=i(27190),a=i(42345),l=i(10411);r.Config.prototype.link={formTemplate:l.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,deriveUrlFromText:!1,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,ariaLabelInput:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},o.Icon.set("link",s.default).set("unlink",a.default),r.Config.prototype.controls.unlink={exec:(e,t)=>{let i=n.Dom.closest(t,"a",e.editor);i&&n.Dom.unwrap(i),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},r.Config.prototype.controls.link={isActive:e=>{let t=e.s.current();return!!(t&&n.Dom.closest(t,"a",e.editor))},popup:(e,t,i)=>e.e.fire("generateLinkForm.link",t,i),tags:["a"],tooltip:"Insert link"}},27190:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> '},42345:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '},65517:function(e,t,i){"use strict";var n=i(65478),o=i(22732),r=i(580),s=i(21537),a=i(50911);i(5827);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:()=>{let t=e.dlg({resizable:!1}),i=this.__generateForm(e.s.current(),()=>{t.close()});i.container.classList.add("jodit-dialog_alert"),t.setContent(i),t.open(),e.async.requestIdleCallback(()=>{let{url_input:e}=(0,s.refs)(i.container);null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}__onDblClickOnLink(e){if(!o.Dom.isTag(e.target,"a"))return;let t=(0,s.attr)(e.target,"href");t&&(location.href=t,e.preventDefault())}onProcessPasteLink(e,t){var i,n,o,r;let{jodit:a}=this;if((0,s.isURL)(t)&&a.o.link.processPastedLink){if(a.e.stopPropagation("processPaste"),a.o.link.processVideoLink){let e=(0,s.call)(null!=(n=null==(i=a.o.video)?void 0:i.parseUrlToVideoEmbed)?n:s.convertMediaUrlToVideoEmbed,t,{width:null==(o=a.o.video)?void 0:o.defaultWidth,height:null==(r=a.o.video)?void 0:r.defaultHeight});if(e!==t)return a.createInside.fromHTML(e)}if(a.s.isCollapsed()){let e=a.createInside.element("a");return(0,s.attr)(e,"href",t),e.textContent=t,a.e.fire("applyLink",a,e,null),e}return a.s.commitStyle({element:"a",attributes:{href:t}}),!0}}__generateForm(e,t){let i,n,{jodit:r}=this,a=r.i18n.bind(r),{openInNewTabCheckbox:l,openInNewTabCheckboxDefaultChecked:c,noFollowCheckbox:d,formTemplate:u,formClassName:h,modeClassName:p}=r.o.link,f=u(r),m=(0,s.isString)(f)?r.c.fromHTML(f,{target_checkbox_box:l,nofollow_checkbox_box:d}):f,g=o.Dom.isElement(m)?m:m.container,v=(0,s.refs)(g),{insert:b,unlink:y,content_input_box:w}=v,{target_checkbox:_,nofollow_checkbox:k,url_input:C}=v,S=o.Dom.isImage(e),{content_input:x}=v,{className_input:I}=v,{className_select:E}=v,{aria_label_input:T}=v;x||(x=r.c.element("input",{type:"hidden",ref:"content_input"})),h&&g.classList.add(h),S&&o.Dom.hide(w);let j=()=>n?n.innerText:(0,s.stripTags)(r.s.range.cloneContents(),r.ed);n=!!(e&&o.Dom.closest(e,"a",r.editor))&&o.Dom.closest(e,"a",r.editor),!S&&e&&(x.value=j()),T&&(T.value=n&&(0,s.attr)(n,"aria-label")||""),n?(C.value=(0,s.attr)(n,"href")||"",p&&function(e,t,i,n){switch(e){case"input":t&&(t.value=(0,s.attr)(i,"class")||"");break;case"select":if(n){for(let e=0;e<n.selectedOptions.length;e++){let t=n.options.item(e);t&&(t.selected=!1)}((0,s.attr)(i,"class")||"").split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{if(e)for(let t=0;t<n.options.length;t++){let i=n.options.item(t);(null==i?void 0:i.value)&&i.value.split(/\s+/).map(e=>e.trim()).includes(e)&&(i.selected=!0)}})}}}(p,I,n,E),l&&_&&(_.checked="_blank"===(0,s.attr)(n,"target")),d&&k&&(k.checked=((0,s.attr)(n,"rel")||"").split(/\s+/).includes("nofollow")),b.textContent=a("Update")):(o.Dom.hide(y),r.o.link.deriveUrlFromText&&C&&!S&&!C.value.trim()&&(C.value=!(i=x.value.trim())||/\s/.test(i)?"":/^(https?:|mailto:|tel:|ftp:|#|\/|\.{1,2}\/)/i.test(i)?i:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)?`mailto:${i}`:/^[a-z0-9-]+(\.[a-z0-9-]+)+(\/\S*)?$/i.test(i)?`https://${i}`:""),l&&_&&(_.checked=c)),r.editor.normalize();let D=r.history.snapshot.make();y&&r.e.on(y,"click",e=>{r.s.restore(),r.history.snapshot.restore(D),n&&o.Dom.unwrap(n),r.synchronizeValues(),t(),e.preventDefault()});let A=()=>{let e;if(!C.value.trim().length)return C.focus(),C.classList.add("jodit_error"),!1;r.s.restore(),r.s.removeMarkers(),r.editor.normalize(),r.history.snapshot.restore(D);let i=j()!==x.value.trim(),a=r.createInside;if(n&&o.Dom.isOrContains(r.editor,n))e=[n];else{if(r.s.isCollapsed()){let t=a.element("a");r.s.insertNode(t,!1,!1),e=[t]}else{let t=r.s.current();e=o.Dom.isTag(t,"img")?[o.Dom.wrap(t,"a",a)]:r.s.wrapInTag("a")}e.forEach(e=>r.s.select(e))}return e.forEach(e=>{var t;let n;if((0,s.attr)(e,"href",C.value),function(e,t,i,n){var o;if(e&&(null!=t?t:i)){if("input"===e)""===t.value&&n.hasAttribute("class")&&(0,s.attr)(n,"class",null),""!==t.value&&(0,s.attr)(n,"class",t.value);else if("select"===e){n.hasAttribute("class")&&(0,s.attr)(n,"class",null);for(let e=0;e<i.selectedOptions.length;e++){let t=null==(o=i.selectedOptions.item(e))?void 0:o.value;t&&t.split(/\s+/).filter(e=>e.trim().length>0).forEach(e=>{n.classList.add(e)})}}}}(p,I,E,e),S||(t=x,n=e.textContent,t.value.trim().length?i&&(n=t.value):n=C.value,n!==e.textContent&&(e.textContent=n)),l&&_&&(0,s.attr)(e,"target",_.checked?"_blank":null),d&&k){let t=((0,s.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");k.checked&&!i?t.push("nofollow"):!k.checked&&i&&t.splice(t.indexOf("nofollow"),1),(0,s.attr)(e,"rel",t.length?t.join(" "):null)}if(T){let t=T.value.trim();(0,s.attr)(e,"aria-label",t||null)}r.e.fire("applyLink",r,e,m)}),r.synchronizeValues(),t(),!1};return o.Dom.isElement(m)?r.e.on(m,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),A(),!1)):m.onSubmit(A),m}beforeDestruct(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(e){let{jodit:t}=this;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&o.Dom.isTag(e.target,"a")&&e.preventDefault()}constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}}l([n.autobind],c.prototype,"__onDblClickOnLink",null),l([n.autobind],c.prototype,"onProcessPasteLink",null),l([n.autobind],c.prototype,"__generateForm",null),l([n.autobind],c.prototype,"__onClickReadOnlyLink",null),r.pluginSystem.add("link",c)},10411:function(e,t,i){"use strict";var n=i(62843),o=i(2525);i.d(t,["formTemplate",0,e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,ariaLabelInput:r,modeClassName:s,selectSizeClassName:a,selectMultipleClassName:l,selectOptionsClassName:c}=e.o.link;return new o.UIForm(e,[new o.UIBlock(e,[new o.UIInput(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),r?new o.UIBlock(e,[new o.UIInput(e,{name:"ariaLabel",ref:"aria_label_input",label:"Aria label"})]):null,new o.UIBlock(e,[new o.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),s?new o.UIBlock(e,["input"===s?new o.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===s?new o.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:a,multiple:l,options:c}):null]):null,t?new o.UICheckbox(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new o.UICheckbox(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new o.UIBlock(e,[new n.UIButton(e,{name:"unlink",variant:"default",text:"Unlink"}),new n.UIButton(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}])},757:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.mediaFakeTag="jodit-media",n.Config.prototype.mediaInFakeBlock=!0,n.Config.prototype.mediaBlocks=["video","audio"]},20071:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(43555),a=i(41180);i(757),r.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:r,mediaInFakeBlock:l}=e.options;l&&e.e.on("afterGetValueFromEditor",e=>{let n=RegExp(`<${i}[^>]+data-${t}[^>]+>([^]+?)</${i}>`,"ig");n.test(e.value)&&(e.value=e.value.replace(n,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===n.MODE_SOURCE||(0,s.$$)(r.join(","),e.editor).forEach(n=>{if(!(0,s.dataBind)(n,t)){(0,s.dataBind)(n,t,!0);var r=n;if(r.parentNode&&(0,s.attr)(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{let n=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});(0,s.attr)(n,"style",(0,s.attr)(r,"style")),(0,a.css)(n,{display:"inline-block"===(0,a.cssInline)(r,"display")?"inline-block":"block",width:r.offsetWidth,height:r.offsetHeight}),r.parentNode&&o.Dom.before(r,n),o.Dom.append(n,r),r=n}e.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(r)})}})},e.defaultTimeout))})},37585:function(e,t,i){"use strict";var n=i(82758),o=i(21537),r=i(41180),s=i(6441),a=i(11676),l=i(21491);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],s.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],s.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],s.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:(e,t,i,n)=>{let s=n.control.data;return void 0===s&&(s={toolbar:(0,l.makeCollection)(e),rebuild:()=>{var t,i;if(n){let l=e.e.fire("getDiffButtons.mobile",n.closest(a.ToolbarCollection));if(l&&s){s.toolbar.build((0,o.splitArray)(l));let n=(null==(i=null==(t=e.toolbar)?void 0:t.firstButton)?void 0:i.container.offsetWidth)||36;(0,r.css)(s.toolbar.container,"width",(n+4)*3)}}}},n.control.data=s),s.rebuild(),s.toolbar},tooltip:"Show all"}},32309:function(e,t,i){"use strict";var n=i(580),o=i(21537),r=i(43649);i(37585);let s=e=>"|"===e||"---"===e||"\n"===e;function a(e,t){var i;let n=(0,r.flatButtonsSet)((0,o.splitArray)(t.o.buttons),t),a=t.getRegisteredButtonGroups(),l=!1,c=!1,d=[];for(let t of e)if((0,r.isButtonGroup)(t)){let e=[...t.buttons,...null!=(i=a[t.group])?i:[]],o=e.filter(e=>n.has(e));o.length!==e.length&&(l=!0),d.push(...o)}else s(t)?d.push(t):"dots"===t?c=!0:n.has(t)?d.push(t):l=!0;if(!l)return e;let u=[];for(let e of d)s(e)&&(0===u.length||s(u[u.length-1]))||u.push(e);for(;u.length&&s(u[u.length-1]);)u.pop();if(c){let e=(0,r.flatButtonsSet)(u,t);(0,o.toArray)(n).some(t=>!e.has(t))&&u.push("dots")}return u}n.pluginSystem.add("mobile",function(e){let t=0,i=(0,o.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let n=new Date().getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,r.flatButtonsSet)((0,o.splitArray)(e.o.buttons),e),n=(0,r.flatButtonsSet)(i,e);return(0,o.toArray)(t).reduce((e,t)=>(n.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t,n;if(!e.o.toolbar)return;let r=(null!=(t=e.container.parentElement)?t:e.container).offsetWidth,s=e.isFullSize||r>=e.o.sizeLG?(0,o.splitArray)(e.o.buttons):r>=e.o.sizeMD?a((0,o.splitArray)(e.o.buttonsMD),e):r>=e.o.sizeSM?a((0,o.splitArray)(e.o.buttonsSM),e):a((0,o.splitArray)(e.o.buttonsXS),e);s.toString()!==i.toString()&&(i=s,e.e.fire("closeAllPopups"),null==(n=e.toolbar)||n.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},57951:function(e,t,i){"use strict";var n=i(86583),o=i(12153),r=i(6441),s=i(13465),a=i(50267);let l=(e,t,{control:i})=>{var o;let r=`button${i.command}`,s=null!=(o=i.args&&i.args[0])?o:(0,n.dataBind)(e,r);(0,n.dataBind)(e,r,s),e.execCommand(i.command,!1,"default"===s?null:s)};o.Icon.set("ol",s.default).set("ul",a.default),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:l},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:l}},13465:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},50267:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},64837:function(e,t,i){"use strict";var n=i(65478),o=i(580),r=i(50911);i(57951);class s extends r.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=i?i:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"onCommand",null),o.pluginSystem.add("orderedList",s)},71842:function(e,t,i){"use strict";var n=i(82758),o=i(6441);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Clean"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}]},31571:function(e,t,i){"use strict";i.d(t,{pasteFromWord:function(){return c}});var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911);i(71842);var l=i(117);class c extends a.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:n}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:a,defaultActionOnPaste:c,pasteFromWordActionList:d}=n.o;return!!(o&&(0,s.isHtmlFromWord)(t))&&(r?(0,l.askInsertTypeDialog)(n,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",n=>{this.insertFromWordByType(e,t,n,i)},d):this.insertFromWordByType(e,t,a||c,i),!0)}insertFromWordByType(e,t,i,o){var r;switch(i){case n.INSERT_AS_HTML:{t=(0,s.applyStyles)(t);let e=null==(r=this.j.events)?void 0:r.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e);break}case n.INSERT_AS_TEXT:t=(0,s.cleanFromWord)(t);break;case n.INSERT_ONLY_TEXT:t=(0,s.stripTags)((0,s.cleanFromWord)(t),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,l.pasteInsertHtml)(e,this.j,t)}}c.requires=["paste"],function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":processHTML")],c.prototype,"processWordHTML",null),r.pluginSystem.add("pasteFromWord",c)},85407:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(10830);class c extends a.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,l.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,l.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),o.Dom.append(this.container,this.listBox),o.Dom.append(this.container,this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return o.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,s.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),o.Dom.safeRemove(this.previewBox),o.Dom.safeRemove(this.listBox),o.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(e.key)){if(e.key===n.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===n.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===n.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}},this.selectIndex=e=>{this.listBox&&(0,s.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&o.Dom.detach(this.listBox),this.previewBox&&o.Dom.detach(this.previewBox),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,s.attr)(i,"href","#"),(0,s.attr)(i,"data-index",t.toString()),(0,s.attr)(i,"tab-index","-1"),this.listBox&&o.Dom.append(this.listBox,i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}r.pluginSystem.add("pasteStorage",c)},84380:function(e,t,i){"use strict";var n=i(82758),o=i(6441),r=i(117);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Insert as Text"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let s="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){var o;if(i.name===s)return void e.execCommand("showPasteStorage");e.s.focus();let a="",l=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=e[0],i=(null==(o=t.types)?void 0:o.includes(n.TEXT_HTML))?n.TEXT_HTML:n.TEXT_PLAIN,r=await t.getType(i);a=await new Response(r).text()}l=!1}catch(e){n.IS_PROD}if(l)try{a=await navigator.clipboard.readText(),l=!1}catch(e){n.IS_PROD}}l&&(l=0===(a=e.buffer.get(n.CLIPBOARD_ID)||"").length);let c=e.value;l?(e.ed.execCommand("paste"),(l=c===e.value)||e.e.fire("afterPaste")):a.length?((0,r.pasteInsertHtml)(null,e,a),e.e.fire("afterPaste")):l&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[s]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}}},117:function(e,t,i){"use strict";i.d(t,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var n=i(82758),o=i(2748),r=i(27613),s=i(10830);function a(e,t,i){var n;let s,a;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let l=t.e.fire("beforePasteInsert",i);!(0,r.isVoid)(l)&&((0,r.isString)(l)||(0,r.isNumber)(l)||o.Dom.isNode(l))&&(i=l),(0,r.isString)(i)&&(-1!==(s=(n=(n=i).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(n=n.substring(s+20)),-1!==(a=n.search(/<!--EndFragment-->/i))&&(n=n.substring(0,a)),i=n),t.s.insertHTML(i)}function l(e){let t=e.types,i="";if((0,r.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||n.TEXT_PLAIN).toString()+";";return i}function c(e,t,i,n,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,n,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),a=o.map(({text:t,value:i})=>(0,s.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),n(i)}));r.e.one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus()});let l=(0,s.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,n,o),r}},79799:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(84380);var c=i(117),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,a.getDataTransfer)(e),i=[null==t?void 0:t.getData(n.TEXT_PLAIN),null==t?void 0:t.getData(n.TEXT_HTML),null==t?void 0:t.getData(n.TEXT_RTF)];for(let t of i)if((0,a.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,a.getDataTransfer)(e),i=(null==t?void 0:t.getData(n.TEXT_HTML))||(null==t?void 0:t.getData(n.TEXT_PLAIN));if(t&&i&&""!==(0,a.trim)(i)){let n=this.j.e.fire("processPaste",e,i,(0,c.getAllTypes)(t));void 0!==n&&(i=n),((0,a.isString)(i)||r.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,c.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,a.isString)(t))switch(this.j.buffer.set(n.CLIPBOARD_ID,t),i){case n.INSERT_CLEAR_HTML:t=(0,a.cleanFromWord)(t);break;case n.INSERT_ONLY_TEXT:t=(0,a.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case n.INSERT_AS_TEXT:t=(0,a.htmlspecialchars)(t),this.j.o.nl2brInPlainText&&(t=(0,a.nl2br)(t));break;default:{let n=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof n&&(t=n)}}(0,c.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===n.TEXT_PLAIN+";"&&!(0,a.isHTML)(t)){let e=(0,a.htmlspecialchars)(t);return this.j.o.nl2brInPlainText?(0,a.nl2br)(e):e}}constructor(){super(...arguments),this.pasteStack=new a.LimitedStack(20),this._isDialogOpened=!1}}d([o.autobind],u.prototype,"onPaste",null),d([o.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),s.pluginSystem.add("paste",u)},61926:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.showPlaceholder=!0,n.Config.prototype.placeholder="Type something",n.Config.prototype.useInputsPlaceholder=!0},59451:function(e,t,i){"use strict";i.d(t,{isEditorEmpty:function(){return u}});var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(78116),l=i(29960),c=i(41180),d=i(20356);function u(e){var t;if(!e.firstChild)return!0;let i=e.firstChild;if(n.INSEPARABLE_TAGS.has(null==(t=i.nodeName)?void 0:t.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;let o=r.Dom.next(i,e=>e&&!r.Dom.isEmptyTextNode(e),e);return r.Dom.isText(i)&&!o?r.Dom.isEmptyTextNode(i):!o&&r.Dom.each(i,e=>!(r.Dom.isLeaf(e)||r.Dom.isList(e))&&(r.Dom.isEmpty(e)||r.Dom.isTag(e,"br")))}i(61926);class h extends d.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(0,c.css)(this.placeholderElm,{right:0,direction:"rtl"}),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,n=e.s.current(),o=n&&r.Dom.closest(n,r.Dom.isBlock,e.editor)||e.editor,s=e.ew.getComputedStyle(o),l=e.ew.getComputedStyle(e.editor);r.Dom.append(e.workplace,this.placeholderElm);let{firstChild:d}=e.editor;if(r.Dom.isElement(d)&&!(0,a.isMarker)(d)){let n=e.ew.getComputedStyle(d);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),(0,c.css)(this.placeholderElm,{fontSize:parseInt(n.getPropertyValue("font-size"),10),lineHeight:n.getPropertyValue("line-height")})}else(0,c.css)(this.placeholderElm,{fontSize:parseInt(s.getPropertyValue("font-size"),10),lineHeight:s.getPropertyValue("line-height")});(0,c.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(l.paddingTop,10)+"px",paddingLeft:parseInt(l.paddingLeft,10)+"px",paddingRight:parseInt(l.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){r.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==n.MODE_WYSIWYG)return void this.hide();u(e.editor)?this.show():this.hide()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,l.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.debounce)(e=>e.defaultTimeout/10,!0)],h.prototype,"toggle",null),s.pluginSystem.add("placeholder",h)},18363:function(e,t,i){"use strict";i(580).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
|
|
208
208
|
tabindex="-1"
|
|
209
209
|
style="text-transform: uppercase"
|
|
210
210
|
class="jodit-status-bar-link"
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
|
|
240
240
|
</div>
|
|
241
241
|
</div>
|
|
242
|
-
</div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===n.MODE_WYSIWYG)switch(e.key){case n.KEY_ESC:this.close();break;case n.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(r.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),r.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,s.position)(this.j.toolbarContainer);(0,s.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,s.css)(this.container,{top:null,left:null})}constructor(e){let t;super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;let{query:i,replace:o,cancel:r,next:a,prev:l,replaceBtn:c,current:d,count:u}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=o,this.closeButton=r,this.replaceButton=c,this.currentBox=d,this.countBox=u;let h=()=>this.close(),p=()=>void e.e.fire(this,"pressReplaceButton"),f=()=>void e.e.fire("searchNext"),m=()=>void e.e.fire("searchPrevious"),g=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(h(),!1)).on(this.closeButton,"click",g(h)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(p(),!1)).on(this.replaceButton,"click",g(p)).on(a,"pointerdown",()=>(f(),!1)).on(a,"click",g(f)).on(l,"pointerdown",()=>(m(),!1)).on(l,"click",g(m)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(t=this.j.async.debounce(async t=>{t.key===n.KEY_ENTER?await e.e.fire("searchNext")&&this.close():e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout),e=>{e.key===n.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),t(e)}))}};l([(0,o.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),l([o.autobind],c.prototype,"open",null),l([o.autobind],c.prototype,"close",null),l([(0,o.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=l([o.component],c)},55311:function(e,t,i){"use strict";i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(76014);i(55311);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let u="table_processor_observer",h="onMoveTableSelectCell";class p extends l.Plugin{get __tableModule(){return this.j.getInstance(c.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===n.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var e;let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null==(e=this.j.s.sel)||e.removeAllRanges()),!1})}onStartSelection(e,t){var i;if(this.j.o.readonly)return;let n=r.Dom.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&n&&r.Dom.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(i=this.j.s.sel)||i.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",n,()=>(0,a.position)(e,this.j),"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e===this.j.editor)?void 0:e&&n?(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(n,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,n),{label:h,timeout:this.j.defaultTimeout/2})).on(n,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,n)),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){var i,n;let o;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(u))return;let s=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!s)return;let a=r.Dom.closest(s,["td","th"],e);if(!a||!this.__selectedCell)return;a!==this.__selectedCell&&this.j.lock(u),this.unselectCells();let l=this.__tableModule.getSelectedBound(e,[a,this.__selectedCell]),c=this.__tableModule.formalMatrix(e);for(let e=l[0][0];e<=l[1][0];e+=1)for(let t=l[0][1];t<=l[1][1];t+=1)this.__tableModule.addSelection(c[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),o=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),r.Dom.append(a,o),this.j.async.setTimeout(()=>{r.Dom.safeRemove(o)},this.j.defaultTimeout/5)}__onRemoveSelection(e){var t;if(!(null==(t=null==e?void 0:e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){var i,n,o;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let s=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!s)return;let l=r.Dom.closest(s,["td","th"],e);if(!l)return;let c=r.Dom.closest(l,"table",e);if(c&&c!==e)return;let d=this.__tableModule.getSelectedBound(e,[l,this.__selectedCell]),u=this.__tableModule.formalMatrix(e),p=null==(n=u[d[1][0]])?void 0:n[d[1][1]],f=null==(o=u[d[0][0]])?void 0:o[d[0][1]];f&&p&&(this.j.e.fire("showPopup",e,()=>{let e=(0,a.position)(f,this.j),t=(0,a.position)(p,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,a.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(h))}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=r.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>r.Dom.detach(e));break;case"bin":r.Dom.safeRemove(n);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)});break;case"bincolumn":{let e=new Set,i=[];t.forEach(t=>{let[,o]=this.__tableModule.formalCoordinate(n,t);e.has(o)||(i.push(o),e.add(o))}),i.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,a.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}}p.requires=["select"],d([o.autobind],p.prototype,"onStartSelection",null),d([(0,o.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),d([(0,o.watch)(":change")],p.prototype,"onChange",null),d([o.autobind],p.prototype,"__onRemoveSelection",null),d([o.autobind],p.prototype,"__onStopSelection",null),d([o.autobind],p.prototype,"onExecCommand",null),d([o.autobind],p.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",p)},67215:function(e,t,i){"use strict";i(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87058),l=i(50911),c=i(67510);i(67215);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,a.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsideClick(e){let t=e.target;r.Dom.up(t,e=>e===this.j.editor)||c.UIElement.closestElement(t,c.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&r.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,i=t.range;if(!i.collapsed||0!==i.startOffset||!r.Dom.isText(i.startContainer))return;let o=i.startContainer,s=o.parentNode;if(!r.Dom.isTag(s,"li")||!r.Dom.first(s,e=>r.Dom.isTag(e,n.LIST_TAGS)))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(o)}onClickKeepPendingFormat(){var e,t;let{s:i}=this.j,o=i.range;if(!o.collapsed||!r.Dom.isText(o.startContainer))return;let s=o.startContainer;if(o.startOffset!==(null!=(t=null==(e=s.nodeValue)?void 0:e.length)?t:0))return;let a=s.nextSibling;if(!r.Dom.isElement(a)||!a.nodeName.match(n.IS_INLINE)||!r.Dom.isEmpty(a))return;let l=a;for(;r.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(n.IS_INLINE);)l=l.firstElementChild;i.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&r.Dom.isText(i)&&t.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&r.Dom.isNode(e.target)&&r.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}}d([o.autobind],u.prototype,"onStartSelection",null),d([(0,o.watch)("ow:click")],u.prototype,"onOutsideClick",null),d([(0,o.watch)([":beforeCommandCut"])],u.prototype,"beforeCommandCut",null),d([(0,o.watch)([":beforeCommandSelectall"])],u.prototype,"beforeCommandSelectAll",null),d([(0,o.watch)([":click"])],u.prototype,"onClickRightOfNestedListItem",null),d([(0,o.watch)([":click"])],u.prototype,"onClickKeepPendingFormat",null),d([(0,o.watch)([":click"])],u.prototype,"onTripleClickNormalizeSelection",null),d([(0,o.watch)([":copy",":cut"])],u.prototype,"onCopyNormalizeSelectionBound",null),s.pluginSystem.add("select",u)},80792:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},45927:function(e,t,i){"use strict";var n=i(65478),o=i(580),r=i(84767),s=i(41180),a=i(20356);i(80792);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,s.css)(e.editor,{minHeight:"100%"}),(0,s.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&i<e&&(e=i)}(0,s.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&e>i&&(e=i)}(0,s.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,s.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,s.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,r.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,s.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,s.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,r.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}l([(0,n.throttle)()],c.prototype,"__initialize",null),l([n.autobind],c.prototype,"__setHeight",null),l([n.autobind],c.prototype,"__setWidth",null),l([n.autobind],c.prototype,"__resizeWorkspaceImd",null),o.pluginSystem.add("size",c)},36204:function(e,t,i){"use strict";var n=i(82758),o=i(12153),r=i(6441),s=i(35599);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",s.default),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},60031:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(23370);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");o.Dom.append(this.container,t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==n.MODE_WYSIWYG&&this.setValue(this.getValue());let r=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===n.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}}},7483:function(e,t,i){"use strict";i.d(t,{TextAreaEditor:function(){return a}});var n=i(2748),o=i(29960),r=i(41180),s=i(23370);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),n.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){n.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,o.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,o.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{(0,r.css)(this.instance,"height","auto"),(0,r.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0)}}},52968:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(60031),o=i(7483)},70022:function(e,t,i){"use strict";i.d(t,{createSourceEditor:function(){return r}});var n=i(21537),o=i(52968);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},23370:function(e,t,i){"use strict";i.d(t,{SourceEditor:function(){return n}});class n{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null==(t=this.j.events)||t.on(this,"ready",e)}constructor(e,t,i,n){this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=n,this.className="",this.isReady=!1}}},52951:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911);i(36204);var c=i(70022),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,n.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=n.INVISIBLE_SPACE;return t});e>0&&t[e]===n.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(n.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===n.MODE_SOURCE)return null==(t=this.sourceEditor)||t.selectAll(),!1}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===n.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===n.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let i=this.getMirrorValue();try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",i);(0,a.isString)(e)&&(i=e)}if(t=e=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),-1!==e){let e=i.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),r.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{r.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===n.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{var t;if(e.isInDestruct)return!1;let i=e.ow.html_beautify;return!!i&&!e.isInDestruct&&(null==(t=e.events)||t.off("beautifyHTML").on("beautifyHTML",e=>i(e)),!0)};t()||(0,a.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===n.MODE_SPLIT||t.getMode()===n.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){let t=(0,c.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i,n;null==(i=this.sourceEditor)||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),r.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionStart())?t:0},this.getSelectionEnd=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionEnd())?t:0}}}d([(0,o.watch)(":insertHTML.source")],u.prototype,"onInsertHTML",null),d([o.autobind],u.prototype,"fromWYSIWYG",null),d([o.autobind],u.prototype,"toWYSIWYG",null),d([o.autobind],u.prototype,"getNormalPosition",null),d([(0,o.watch)(":beforeCommand.source")],u.prototype,"onSelectAll",null),d([(0,o.watch)(":beforeSetMode.source")],u.prototype,"saveSelection",null),d([(0,o.watch)(":afterSetMode.source")],u.prototype,"removeSelection",null),d([o.autobind],u.prototype,"setMirrorSelectionRange",null),d([(0,o.watch)(":readonly.source")],u.prototype,"onReadonlyReact",null),d([o.autobind],u.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",u)},35599:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '},46614:function(e,t,i){"use strict";var n=i(87612),o=i(70799),r=i(29960),s=i(86583),a=i(12153),l=i(6441),c=i(26532),d=i(93602),u=i(75259);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",u.default),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:i,control:a}){var l;let{api:c,lang:u,continuous:h,interimResults:p,sound:f}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){let t=new c;(m=new d.RecognizeManager(e.async,t)).lang=(0,o.isString)(u)?u:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=p,m.sound=f,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'> ${i}</span>`},mods:{stroke:!1}}},26532:function(e,t,i){"use strict";var n=i(82758);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0;i.d(t,["SpeechRecognition",0,o])},54076:function(e,t,i){"use strict";function n(e,t){let[i,n]=t.split("::");"open"===i.toLowerCase()&&n&&/^(javascript:|data:|vbscript:)/i.test(n.trim())||e.execCommand(i,null,n)}i.d(t,{execSpellCommand:function(){return n}})},93602:function(e,t,i){"use strict";i.d(t,{RecognizeManager:function(){return a}});var n=i(65478),o=i(72757),r=i(37643),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,r.closeSound)(this),a._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,a._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,r.sound)(this,{frequency:e})}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,a._instances.add(this)}}a._instances=new Set,s([n.autobind],a.prototype,"_onResults",null),s([n.autobind],a.prototype,"_onProgress",null),s([n.autobind],a.prototype,"_onError",null)},37643:function(e,t,i){"use strict";i.d(t,{closeSound:function(){return s},sound:function(){return r}});var n=i(82758);let o=new WeakMap;function r(e,{sec:t=.1,frequency:i=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!l)return;let c=l.createGain(),d=l.createOscillator();d.type=a,d.frequency.value=i,c.gain.value=s,d.connect(c),c.connect(l.destination),d.start(),d.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},71705:function(e){"use strict";e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e){"use strict";e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},34945:function(e){"use strict";e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e){"use strict";e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e){"use strict";e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e){"use strict";e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(e){"use strict";e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(e){"use strict";e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e){"use strict";e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},80651:function(e){"use strict";e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(j,2))},es:function(){return s||(s=i.t(D,2))},fa:function(){return a||(a=i.t(A,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return c||(c=i.t(P,2))},he:function(){return d||(d=i.t(M,2))},hu:function(){return u||(u=i.t(R,2))},id:function(){return h||(h=i.t(z,2))},it:function(){return p||(p=i.t(B,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(q,2))},pt_br:function(){return w||(w=i.t(V,2))},ru:function(){return _||(_=i.t(W,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return C||(C=i.t(G,2))},ua:function(){return S||(S=i.t(K,2))},zh_cn:function(){return x||(x=i.t(Y,2))},zh_tw:function(){return I||(I=i.t(J,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x,I,E=i(71705),T=i(89930),j=i(34945),D=i(63134),A=i(66835),L=i(1115),P=i(59302),M=i(94141),R=i(24877),z=i(80651),B=i(62395),N=i(16407),O=i(37272),F=i(22113),H=i(22432),U=i(17081),q=i(30798),V=i(8661),W=i(19147),$=i(76220),G=i(93620),K=i(40372),Y=i(69874),J=i(88774)},62395:function(e){"use strict";e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e){"use strict";e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e){"use strict";e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e){"use strict";e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e){"use strict";e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e){"use strict";e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e){"use strict";e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e){"use strict";e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(e){"use strict";e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},76220:function(e){"use strict";e.exports={newline:"nov\xfd riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpozn\xe1vanie reči",Sound:"Zvuk","Interim Results":"Predbežn\xe9 v\xfdsledky"}},93620:function(e){"use strict";e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(e){"use strict";e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e){"use strict";e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e){"use strict";e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,i){"use strict";var n=i(37133),o=i(2748),r=i(580),s=i(37790),a=i(50911);i(46614);var l=i(2303),c=i(54076),d=i(90492),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(d),(0,s.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){o.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),o.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{o.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),o.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,r=i.current();if(i.isCollapsed()&&o.Dom.isText(r)&&o.Dom.isOrContains(t.editor,r)&&r.nodeValue){let o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,n.setStartAfter(r),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,c.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}u([(0,n.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),u([(0,n.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259:function(e,t){"use strict";t.default='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '},99085:function(e,t,i){"use strict";var n=i(12153),o=i(6441),r=i(10937);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",r.default),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:r.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(e){"use strict";e.exports={Spellcheck:"التدقيق الإملائي"}},24351:function(e){"use strict";e.exports={Spellcheck:"Kontrola pravopisu"}},32806:function(e){"use strict";e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(e){"use strict";e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(e){"use strict";e.exports={Spellcheck:"غلطیابی املایی"}},42820:function(e){"use strict";e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e){"use strict";e.exports={Spellcheck:"V\xe9rification Orthographique"}},98370:function(e){"use strict";e.exports={Spellcheck:"בדיקת איות"}},44850:function(e){"use strict";e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(e){"use strict";e.exports={Spellcheck:"Spellchecking"}},26529:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(j,2))},es:function(){return s||(s=i.t(D,2))},fa:function(){return a||(a=i.t(A,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return c||(c=i.t(P,2))},he:function(){return d||(d=i.t(M,2))},hu:function(){return u||(u=i.t(R,2))},id:function(){return h||(h=i.t(z,2))},it:function(){return p||(p=i.t(B,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(q,2))},pt_br:function(){return w||(w=i.t(V,2))},ru:function(){return _||(_=i.t(W,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return C||(C=i.t(G,2))},ua:function(){return S||(S=i.t(K,2))},zh_cn:function(){return x||(x=i.t(Y,2))},zh_tw:function(){return I||(I=i.t(J,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x,I,E=i(28906),T=i(24351),j=i(32806),D=i(77725),A=i(26428),L=i(42820),P=i(60373),M=i(98370),R=i(44850),z=i(3636),B=i(73220),N=i(55776),O=i(13995),F=i(6402),H=i(1879),U=i(1322),q=i(53361),V=i(70824),W=i(65140),$=i(60407),G=i(42247),K=i(68891),Y=i(63195),J=i(42107)},73220:function(e){"use strict";e.exports={Spellcheck:"Controllo ortografico"}},55776:function(e){"use strict";e.exports={Spellcheck:"スペルチェック"}},13995:function(e){"use strict";e.exports={Spellcheck:"맞춤법 검사"}},6402:function(e){"use strict";e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e){"use strict";e.exports={Spellcheck:"Spellingcontrole"}},1322:function(e){"use strict";e.exports={Spellcheck:"Stavekontroll"}},53361:function(e){"use strict";e.exports={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e){"use strict";e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(e){"use strict";e.exports={Spellcheck:"Проверка орфографии"}},60407:function(e){"use strict";e.exports={Spellcheck:"Kontrola pravopisu"}},42247:function(e){"use strict";e.exports={Spellcheck:"Yazım denetimi"}},68891:function(e){"use strict";e.exports={Spellcheck:"Перевірка орфографії"}},63195:function(e){"use strict";e.exports={Spellcheck:"拼写检查"}},42107:function(e){"use strict";e.exports={Spellcheck:"拼字檢查"}},43809:function(e,t,i){"use strict";var n=i(65478),o=i(580),r=i(29960),s=i(50911);i(99085);var a=i(26529);class l extends s.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,r.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.extendLang)(a)}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],l.prototype,"toggleSpellcheck",null),o.pluginSystem.add("spellcheck",l)},10937:function(e,t){"use strict";t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> '},99649:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},7309:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(20356);i(99649);class a extends s.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.Dom.safeRemove(this.charCounter),o.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,n.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout)}}r.pluginSystem.add("stat",a)},48038:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(48038);let c=!n.IS_ES_NEXT&&n.IS_IE;class d extends l.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,a.offset)(e.container,e,e.od,!0),o=e.getMode()===n.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let r=e.toolbarContainer;r&&(o?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",o)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){r.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),r.Dom.before(e,this.__dummyBox)},this.addSticky=e=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,a.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.throttle)()],d.prototype,"__onScroll",null),s.pluginSystem.add("sticky",d)},87394:function(e,t,i){"use strict";var n=i(2748),o=i(12153),r=i(6441),s=i(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),n.Dom.append(t,o),e.e.on(o,"close_dialog",i),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.Dom.first(o,e=>n.Dom.isTag(e,"a"));t&&t.focus()}}}},20741:function(e){"use strict";e.exports={symbols:"رمز"}},3958:function(e){"use strict";e.exports={symbols:"symbol"}},53437:function(e){"use strict";e.exports={symbols:"Symbol"}},56882:function(e){"use strict";e.exports={symbols:"S\xedmbolo"}},75703:function(e){"use strict";e.exports={symbols:"سمبل"}},49759:function(e){"use strict";e.exports={symbols:"Symbolit"}},44730:function(e){"use strict";e.exports={symbols:"caract\xe8re"}},70945:function(e){"use strict";e.exports={symbols:"תו מיוחד"}},49841:function(e){"use strict";e.exports={symbols:"Szimb\xf3lum"}},33295:function(e){"use strict";e.exports={symbols:"simbol"}},32824:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(x,2))},cs_cz:function(){return o||(o=i.t(I,2))},de:function(){return r||(r=i.t(E,2))},es:function(){return s||(s=i.t(T,2))},fa:function(){return a||(a=i.t(j,2))},fi:function(){return l||(l=i.t(D,2))},fr:function(){return c||(c=i.t(A,2))},he:function(){return d||(d=i.t(L,2))},hu:function(){return u||(u=i.t(P,2))},id:function(){return h||(h=i.t(M,2))},it:function(){return p||(p=i.t(R,2))},ja:function(){return f||(f=i.t(z,2))},ko:function(){return m||(m=i.t(B,2))},mn:function(){return g||(g=i.t(N,2))},nl:function(){return v||(v=i.t(O,2))},pl:function(){return b||(b=i.t(F,2))},pt_br:function(){return y||(y=i.t(H,2))},ru:function(){return w||(w=i.t(U,2))},tr:function(){return _||(_=i.t(q,2))},ua:function(){return k||(k=i.t(V,2))},zh_cn:function(){return C||(C=i.t(W,2))},zh_tw:function(){return S||(S=i.t($,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x=i(20741),I=i(3958),E=i(53437),T=i(56882),j=i(75703),D=i(49759),A=i(44730),L=i(70945),P=i(49841),M=i(33295),R=i(47615),z=i(83059),B=i(22396),N=i(58285),O=i(51804),F=i(53650),H=i(41369),U=i(57855),q=i(44328),V=i(91080),W=i(89702),$=i(66434)},47615:function(e){"use strict";e.exports={symbols:"Simbolo"}},83059:function(e){"use strict";e.exports={symbols:"symbol"}},22396:function(e){"use strict";e.exports={symbols:"기호"}},58285:function(e){"use strict";e.exports={symbols:"тэмдэгт"}},51804:function(e){"use strict";e.exports={symbols:"symbool"}},53650:function(e){"use strict";e.exports={symbols:"symbol"}},41369:function(e){"use strict";e.exports={symbols:"S\xedmbolo"}},57855:function(e){"use strict";e.exports={symbols:"символ"}},44328:function(e){"use strict";e.exports={symbols:"Sembol"}},91080:function(e){"use strict";e.exports={symbols:"символ"}},89702:function(e){"use strict";e.exports={symbols:"符号"}},66434:function(e){"use strict";e.exports={symbols:"符號"}},59495:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(43555),a=i(20356);i(87394);var l=i(32824);class c extends a.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
|
|
242
|
+
</div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===n.MODE_WYSIWYG)switch(e.key){case n.KEY_ESC:this.close();break;case n.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(r.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),r.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,s.position)(this.j.toolbarContainer);(0,s.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,s.css)(this.container,{top:null,left:null})}constructor(e){let t;super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;let{query:i,replace:o,cancel:r,next:a,prev:l,replaceBtn:c,current:d,count:u}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=o,this.closeButton=r,this.replaceButton=c,this.currentBox=d,this.countBox=u;let h=()=>this.close(),p=()=>void e.e.fire(this,"pressReplaceButton"),f=()=>void e.e.fire("searchNext"),m=()=>void e.e.fire("searchPrevious"),g=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(h(),!1)).on(this.closeButton,"click",g(h)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(p(),!1)).on(this.replaceButton,"click",g(p)).on(a,"pointerdown",()=>(f(),!1)).on(a,"click",g(f)).on(l,"pointerdown",()=>(m(),!1)).on(l,"click",g(m)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(t=this.j.async.debounce(async t=>{t.key===n.KEY_ENTER?await e.e.fire("searchNext")&&this.close():e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout),e=>{e.key===n.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),t(e)}))}};l([(0,o.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),l([o.autobind],c.prototype,"open",null),l([o.autobind],c.prototype,"close",null),l([(0,o.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=l([o.component],c)},55311:function(e,t,i){"use strict";i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(76014);i(55311);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let u="table_processor_observer",h="onMoveTableSelectCell";class p extends l.Plugin{get __tableModule(){return this.j.getInstance(c.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",e=>{e.key===n.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var e;let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null==(e=this.j.s.sel)||e.removeAllRanges()),!1})}onStartSelection(e,t){var i;if(this.j.o.readonly)return;let n=r.Dom.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&n&&r.Dom.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(i=this.j.s.sel)||i.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",n,()=>(0,a.position)(e,this.j),"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e===this.j.editor)?void 0:e&&n?(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(n,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,n),{label:h,timeout:this.j.defaultTimeout/2})).on(n,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,n)),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(e,t){var i,n;let o;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(u))return;let s=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!s)return;let a=r.Dom.closest(s,["td","th"],e);if(!a||!this.__selectedCell)return;a!==this.__selectedCell&&this.j.lock(u),this.unselectCells();let l=this.__tableModule.getSelectedBound(e,[a,this.__selectedCell]),c=this.__tableModule.formalMatrix(e);for(let e=l[0][0];e<=l[1][0];e+=1)for(let t=l[0][1];t<=l[1][1];t+=1)this.__tableModule.addSelection(c[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),o=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),r.Dom.append(a,o),this.j.async.setTimeout(()=>{r.Dom.safeRemove(o)},this.j.defaultTimeout/5)}__onRemoveSelection(e){var t;if(!(null==(t=null==e?void 0:e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(e,t){var i,n,o;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let s=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(t.clientX,t.clientY);if(!s)return;let l=r.Dom.closest(s,["td","th"],e);if(!l)return;let c=r.Dom.closest(l,"table",e);if(c&&c!==e)return;let d=this.__tableModule.getSelectedBound(e,[l,this.__selectedCell]),u=this.__tableModule.formalMatrix(e),p=null==(n=u[d[1][0]])?void 0:n[d[1][1]],f=null==(o=u[d[0][0]])?void 0:o[d[0][1]];f&&p&&(this.j.e.fire("showPopup",e,()=>{let e=(0,a.position)(f,this.j),t=(0,a.position)(p,this.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),(0,a.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(h))}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=r.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>r.Dom.detach(e));break;case"bin":r.Dom.safeRemove(n);break;case"binrow":new Set(t.map(e=>e.parentNode)).forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)});break;case"bincolumn":{let e=new Set,i=[];t.forEach(t=>{let[,o]=this.__tableModule.formalCoordinate(n,t);e.has(o)||(i.push(o),e.add(o))}),i.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e)}}return!1}}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,a.alignElement)(e,t))}beforeDestruct(e){this.__onRemoveSelection(),e.e.off(".select-cells")}constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}}p.requires=["select"],d([o.autobind],p.prototype,"onStartSelection",null),d([(0,o.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),d([(0,o.watch)(":change")],p.prototype,"onChange",null),d([o.autobind],p.prototype,"__onRemoveSelection",null),d([o.autobind],p.prototype,"__onStopSelection",null),d([o.autobind],p.prototype,"onExecCommand",null),d([o.autobind],p.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",p)},67215:function(e,t,i){"use strict";i(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87058),l=i(50911),c=i(67510);i(67215);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)})}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,a.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsideClick(e){let t=e.target;r.Dom.up(t,e=>e===this.j.editor)||c.UIElement.closestElement(t,c.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&r.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,i=t.range;if(!i.collapsed||0!==i.startOffset||!r.Dom.isText(i.startContainer))return;let o=i.startContainer,s=o.parentNode;if(!r.Dom.isTag(s,"li")||!r.Dom.first(s,e=>r.Dom.isTag(e,n.LIST_TAGS)))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(o)}onClickKeepPendingFormat(){var e,t;let{s:i}=this.j,o=i.range;if(!o.collapsed||!r.Dom.isText(o.startContainer))return;let s=o.startContainer;if(o.startOffset!==(null!=(t=null==(e=s.nodeValue)?void 0:e.length)?t:0))return;let a=s.nextSibling;if(!r.Dom.isElement(a)||!a.nodeName.match(n.IS_INLINE)||!r.Dom.isEmpty(a))return;let l=a;for(;r.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(n.IS_INLINE);)l=l.firstElementChild;i.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&r.Dom.isText(i)&&t.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&r.Dom.isNode(e.target)&&r.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}}d([o.autobind],u.prototype,"onStartSelection",null),d([(0,o.watch)("ow:click")],u.prototype,"onOutsideClick",null),d([(0,o.watch)([":beforeCommandCut"])],u.prototype,"beforeCommandCut",null),d([(0,o.watch)([":beforeCommandSelectall"])],u.prototype,"beforeCommandSelectAll",null),d([(0,o.watch)([":click"])],u.prototype,"onClickRightOfNestedListItem",null),d([(0,o.watch)([":click"])],u.prototype,"onClickKeepPendingFormat",null),d([(0,o.watch)([":click"])],u.prototype,"onTripleClickNormalizeSelection",null),d([(0,o.watch)([":copy",":cut"])],u.prototype,"onCopyNormalizeSelectionBound",null),s.pluginSystem.add("select",u)},80792:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},45927:function(e,t,i){"use strict";var n=i(65478),o=i(580),r=i(84767),s=i(41180),a=i(20356);i(80792);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,s.css)(e.editor,{minHeight:"100%"}),(0,s.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&i<e&&(e=i)}(0,s.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&e>i&&(e=i)}(0,s.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,s.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,s.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,r.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,s.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,s.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,r.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}l([(0,n.throttle)()],c.prototype,"__initialize",null),l([n.autobind],c.prototype,"__setHeight",null),l([n.autobind],c.prototype,"__setWidth",null),l([n.autobind],c.prototype,"__resizeWorkspaceImd",null),o.pluginSystem.add("size",c)},36204:function(e,t,i){"use strict";var n=i(82758),o=i(12153),r=i(6441),s=i(35599);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",s.default),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},60031:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(23370);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");o.Dom.append(this.container,t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==n.MODE_WYSIWYG&&this.setValue(this.getValue());let r=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===n.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}}},7483:function(e,t,i){"use strict";i.d(t,{TextAreaEditor:function(){return a}});var n=i(2748),o=i(29960),r=i(41180),s=i(23370);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),n.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){n.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,o.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,o.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{(0,r.css)(this.instance,"height","auto"),(0,r.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0)}}},52968:function(e,t,i){"use strict";i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(60031),o=i(7483)},70022:function(e,t,i){"use strict";i.d(t,{createSourceEditor:function(){return r}});var n=i(21537),o=i(52968);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},23370:function(e,t,i){"use strict";i.d(t,{SourceEditor:function(){return n}});class n{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null==(t=this.j.events)||t.on(this,"ready",e)}constructor(e,t,i,n){this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=n,this.className="",this.isReady=!1}}},52951:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911);i(36204);var c=i(70022),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,n.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=n.INVISIBLE_SPACE;return t});e>0&&t[e]===n.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(n.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===n.MODE_SOURCE)return null==(t=this.sourceEditor)||t.selectAll(),!1}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===n.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===n.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let i=this.getMirrorValue();try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",i);(0,a.isString)(e)&&(i=e)}if(t=e=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),-1!==e){let e=i.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),r.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{r.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===n.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{var t;if(e.isInDestruct)return!1;let i=e.ow.html_beautify;return!!i&&!e.isInDestruct&&(null==(t=e.events)||t.off("beautifyHTML").on("beautifyHTML",e=>i(e)),!0)};t()||(0,a.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(t,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===n.MODE_SPLIT||t.getMode()===n.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){let t=(0,c.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i,n;null==(i=this.sourceEditor)||i.destruct(),this.sourceEditor=t,this.syncValueFromWYSIWYG(!0),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),r.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionStart())?t:0},this.getSelectionEnd=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionEnd())?t:0}}}d([(0,o.watch)(":insertHTML.source")],u.prototype,"onInsertHTML",null),d([o.autobind],u.prototype,"fromWYSIWYG",null),d([o.autobind],u.prototype,"toWYSIWYG",null),d([o.autobind],u.prototype,"getNormalPosition",null),d([(0,o.watch)(":beforeCommand.source")],u.prototype,"onSelectAll",null),d([(0,o.watch)(":beforeSetMode.source")],u.prototype,"saveSelection",null),d([(0,o.watch)(":afterSetMode.source")],u.prototype,"removeSelection",null),d([o.autobind],u.prototype,"setMirrorSelectionRange",null),d([(0,o.watch)(":readonly.source")],u.prototype,"onReadonlyReact",null),d([o.autobind],u.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",u)},35599:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '},46614:function(e,t,i){"use strict";var n=i(87612),o=i(70799),r=i(29960),s=i(86583),a=i(12153),l=i(6441),c=i(26532),d=i(93602),u=i(75259);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",u.default),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:i,control:a}){var l;let{api:c,lang:u,continuous:h,interimResults:p,sound:f}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){let t=new c;(m=new d.RecognizeManager(e.async,t)).lang=(0,o.isString)(u)?u:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=p,m.sound=f,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'> ${i}</span>`},mods:{stroke:!1}}},26532:function(e,t,i){"use strict";var n=i(82758);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0;i.d(t,["SpeechRecognition",0,o])},54076:function(e,t,i){"use strict";function n(e,t){let[i,n]=t.split("::");"open"===i.toLowerCase()&&n&&/^(javascript:|data:|vbscript:)/i.test(n.trim())||e.execCommand(i,null,n)}i.d(t,{execSpellCommand:function(){return n}})},93602:function(e,t,i){"use strict";i.d(t,{RecognizeManager:function(){return a}});var n=i(65478),o=i(72757),r=i(37643),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,r.closeSound)(this),a._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,a._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,r.sound)(this,{frequency:e})}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,a._instances.add(this)}}a._instances=new Set,s([n.autobind],a.prototype,"_onResults",null),s([n.autobind],a.prototype,"_onProgress",null),s([n.autobind],a.prototype,"_onError",null)},37643:function(e,t,i){"use strict";i.d(t,{closeSound:function(){return s},sound:function(){return r}});var n=i(82758);let o=new WeakMap;function r(e,{sec:t=.1,frequency:i=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!l)return;let c=l.createGain(),d=l.createOscillator();d.type=a,d.frequency.value=i,c.gain.value=s,d.connect(c),c.connect(l.destination),d.start(),d.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},71705:function(e){"use strict";e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e){"use strict";e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},34945:function(e){"use strict";e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e){"use strict";e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e){"use strict";e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e){"use strict";e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(e){"use strict";e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(e){"use strict";e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e){"use strict";e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},80651:function(e){"use strict";e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(j,2))},es:function(){return s||(s=i.t(D,2))},fa:function(){return a||(a=i.t(A,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return c||(c=i.t(P,2))},he:function(){return d||(d=i.t(M,2))},hu:function(){return u||(u=i.t(z,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(B,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(q,2))},pt_br:function(){return w||(w=i.t(V,2))},ru:function(){return _||(_=i.t(W,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return C||(C=i.t(G,2))},ua:function(){return S||(S=i.t(K,2))},zh_cn:function(){return x||(x=i.t(Y,2))},zh_tw:function(){return I||(I=i.t(J,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x,I,E=i(71705),T=i(89930),j=i(34945),D=i(63134),A=i(66835),L=i(1115),P=i(59302),M=i(94141),z=i(24877),R=i(80651),B=i(62395),N=i(16407),O=i(37272),F=i(22113),H=i(22432),U=i(17081),q=i(30798),V=i(8661),W=i(19147),$=i(76220),G=i(93620),K=i(40372),Y=i(69874),J=i(88774)},62395:function(e){"use strict";e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e){"use strict";e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e){"use strict";e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e){"use strict";e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e){"use strict";e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e){"use strict";e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e){"use strict";e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e){"use strict";e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(e){"use strict";e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},76220:function(e){"use strict";e.exports={newline:"nov\xfd riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpozn\xe1vanie reči",Sound:"Zvuk","Interim Results":"Predbežn\xe9 v\xfdsledky"}},93620:function(e){"use strict";e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(e){"use strict";e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e){"use strict";e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e){"use strict";e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,i){"use strict";var n=i(37133),o=i(2748),r=i(580),s=i(37790),a=i(50911);i(46614);var l=i(2303),c=i(54076),d=i(90492),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(d),(0,s.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){o.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),o.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{o.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),o.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,r=i.current();if(i.isCollapsed()&&o.Dom.isText(r)&&o.Dom.isOrContains(t.editor,r)&&r.nodeValue){let o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,n.setStartAfter(r),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,c.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}u([(0,n.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),u([(0,n.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259:function(e,t){"use strict";t.default='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '},99085:function(e,t,i){"use strict";var n=i(12153),o=i(6441),r=i(10937);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",r.default),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:r.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(e){"use strict";e.exports={Spellcheck:"التدقيق الإملائي"}},24351:function(e){"use strict";e.exports={Spellcheck:"Kontrola pravopisu"}},32806:function(e){"use strict";e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(e){"use strict";e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(e){"use strict";e.exports={Spellcheck:"غلطیابی املایی"}},42820:function(e){"use strict";e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e){"use strict";e.exports={Spellcheck:"V\xe9rification Orthographique"}},98370:function(e){"use strict";e.exports={Spellcheck:"בדיקת איות"}},44850:function(e){"use strict";e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(e){"use strict";e.exports={Spellcheck:"Spellchecking"}},26529:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(j,2))},es:function(){return s||(s=i.t(D,2))},fa:function(){return a||(a=i.t(A,2))},fi:function(){return l||(l=i.t(L,2))},fr:function(){return c||(c=i.t(P,2))},he:function(){return d||(d=i.t(M,2))},hu:function(){return u||(u=i.t(z,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(B,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(O,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(q,2))},pt_br:function(){return w||(w=i.t(V,2))},ru:function(){return _||(_=i.t(W,2))},sk:function(){return k||(k=i.t($,2))},tr:function(){return C||(C=i.t(G,2))},ua:function(){return S||(S=i.t(K,2))},zh_cn:function(){return x||(x=i.t(Y,2))},zh_tw:function(){return I||(I=i.t(J,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x,I,E=i(28906),T=i(24351),j=i(32806),D=i(77725),A=i(26428),L=i(42820),P=i(60373),M=i(98370),z=i(44850),R=i(3636),B=i(73220),N=i(55776),O=i(13995),F=i(6402),H=i(1879),U=i(1322),q=i(53361),V=i(70824),W=i(65140),$=i(60407),G=i(42247),K=i(68891),Y=i(63195),J=i(42107)},73220:function(e){"use strict";e.exports={Spellcheck:"Controllo ortografico"}},55776:function(e){"use strict";e.exports={Spellcheck:"スペルチェック"}},13995:function(e){"use strict";e.exports={Spellcheck:"맞춤법 검사"}},6402:function(e){"use strict";e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e){"use strict";e.exports={Spellcheck:"Spellingcontrole"}},1322:function(e){"use strict";e.exports={Spellcheck:"Stavekontroll"}},53361:function(e){"use strict";e.exports={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e){"use strict";e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(e){"use strict";e.exports={Spellcheck:"Проверка орфографии"}},60407:function(e){"use strict";e.exports={Spellcheck:"Kontrola pravopisu"}},42247:function(e){"use strict";e.exports={Spellcheck:"Yazım denetimi"}},68891:function(e){"use strict";e.exports={Spellcheck:"Перевірка орфографії"}},63195:function(e){"use strict";e.exports={Spellcheck:"拼写检查"}},42107:function(e){"use strict";e.exports={Spellcheck:"拼字檢查"}},43809:function(e,t,i){"use strict";var n=i(65478),o=i(580),r=i(29960),s=i(50911);i(99085);var a=i(26529);class l extends s.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,r.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.extendLang)(a)}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],l.prototype,"toggleSpellcheck",null),o.pluginSystem.add("spellcheck",l)},10937:function(e,t){"use strict";t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> '},99649:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},7309:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(20356);i(99649);class a extends s.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.Dom.safeRemove(this.charCounter),o.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,n.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout)}}r.pluginSystem.add("stat",a)},48038:function(e,t,i){"use strict";var n=i(6441);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(48038);let c=!n.IS_ES_NEXT&&n.IS_IE;class d extends l.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,a.offset)(e.container,e,e.od,!0),o=e.getMode()===n.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let r=e.toolbarContainer;r&&(o?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",o)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){r.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),r.Dom.before(e,this.__dummyBox)},this.addSticky=e=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,a.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.throttle)()],d.prototype,"__onScroll",null),s.pluginSystem.add("sticky",d)},87394:function(e,t,i){"use strict";var n=i(2748),o=i(12153),r=i(6441),s=i(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),n.Dom.append(t,o),e.e.on(o,"close_dialog",i),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.Dom.first(o,e=>n.Dom.isTag(e,"a"));t&&t.focus()}}}},20741:function(e){"use strict";e.exports={symbols:"رمز"}},3958:function(e){"use strict";e.exports={symbols:"symbol"}},53437:function(e){"use strict";e.exports={symbols:"Symbol"}},56882:function(e){"use strict";e.exports={symbols:"S\xedmbolo"}},75703:function(e){"use strict";e.exports={symbols:"سمبل"}},49759:function(e){"use strict";e.exports={symbols:"Symbolit"}},44730:function(e){"use strict";e.exports={symbols:"caract\xe8re"}},70945:function(e){"use strict";e.exports={symbols:"תו מיוחד"}},49841:function(e){"use strict";e.exports={symbols:"Szimb\xf3lum"}},33295:function(e){"use strict";e.exports={symbols:"simbol"}},32824:function(e,t,i){"use strict";i.r(t),i.d(t,{ar:function(){return n||(n=i.t(x,2))},cs_cz:function(){return o||(o=i.t(I,2))},de:function(){return r||(r=i.t(E,2))},es:function(){return s||(s=i.t(T,2))},fa:function(){return a||(a=i.t(j,2))},fi:function(){return l||(l=i.t(D,2))},fr:function(){return c||(c=i.t(A,2))},he:function(){return d||(d=i.t(L,2))},hu:function(){return u||(u=i.t(P,2))},id:function(){return h||(h=i.t(M,2))},it:function(){return p||(p=i.t(z,2))},ja:function(){return f||(f=i.t(R,2))},ko:function(){return m||(m=i.t(B,2))},mn:function(){return g||(g=i.t(N,2))},nl:function(){return v||(v=i.t(O,2))},pl:function(){return b||(b=i.t(F,2))},pt_br:function(){return y||(y=i.t(H,2))},ru:function(){return w||(w=i.t(U,2))},tr:function(){return _||(_=i.t(q,2))},ua:function(){return k||(k=i.t(V,2))},zh_cn:function(){return C||(C=i.t(W,2))},zh_tw:function(){return S||(S=i.t($,2))}});var n,o,r,s,a,l,c,d,u,h,p,f,m,g,v,b,y,w,_,k,C,S,x=i(20741),I=i(3958),E=i(53437),T=i(56882),j=i(75703),D=i(49759),A=i(44730),L=i(70945),P=i(49841),M=i(33295),z=i(47615),R=i(83059),B=i(22396),N=i(58285),O=i(51804),F=i(53650),H=i(41369),U=i(57855),q=i(44328),V=i(91080),W=i(89702),$=i(66434)},47615:function(e){"use strict";e.exports={symbols:"Simbolo"}},83059:function(e){"use strict";e.exports={symbols:"symbol"}},22396:function(e){"use strict";e.exports={symbols:"기호"}},58285:function(e){"use strict";e.exports={symbols:"тэмдэгт"}},51804:function(e){"use strict";e.exports={symbols:"symbool"}},53650:function(e){"use strict";e.exports={symbols:"symbol"}},41369:function(e){"use strict";e.exports={symbols:"S\xedmbolo"}},57855:function(e){"use strict";e.exports={symbols:"символ"}},44328:function(e){"use strict";e.exports={symbols:"Sembol"}},91080:function(e){"use strict";e.exports={symbols:"символ"}},89702:function(e){"use strict";e.exports={symbols:"符号"}},66434:function(e){"use strict";e.exports={symbols:"符號"}},59495:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(43555),a=i(20356);i(87394);var l=i(32824);class c extends a.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
|
|
243
243
|
<div class="jodit-symbols__container_table">
|
|
244
244
|
<table class="jodit-symbols__table"><tbody></tbody></table>
|
|
245
245
|
</div>
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
data-index-j="${n}"
|
|
252
252
|
role="option"
|
|
253
253
|
tabindex="-1"
|
|
254
|
-
>${e.o.specialCharacters[t]}</a>`);a.push(s),o.Dom.append(r,s),o.Dom.append(i,r)}o.Dom.append(r,i)}let l=this;return e.e.on(a,"focus",function(){i.innerHTML=this.innerHTML}).on(a,"mousedown",function(t){o.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(a,"mouseenter",function(){o.Dom.isTag(this,"a")&&this.focus()}).on(a,"keydown",t=>{let i=t.target;if(o.Dom.isTag(i,"a")){let o,r=parseInt((0,s.attr)(i,"-index")||"0",10),c=parseInt((0,s.attr)(i,"data-index-j")||"0",10);switch(t.key){case n.KEY_UP:case n.KEY_DOWN:void 0===a[o=t.key===n.KEY_UP?r-l.__countInRow:r+l.__countInRow]&&(o=t.key===n.KEY_UP?Math.floor(a.length/l.__countInRow)*l.__countInRow+c:c)>a.length-1&&(o-=l.__countInRow),a[o]&&a[o].focus();break;case n.KEY_RIGHT:case n.KEY_LEFT:void 0===a[o=t.key===n.KEY_LEFT?r-1:r+1]&&(o=t.key===n.KEY_LEFT?a.length-1:0),a[o]&&a[o].focus();break;case n.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}constructor(e){super(e),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,r.extendLang)(l)}}r.pluginSystem.add("symbols",c)},5119:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},47686:function(e,t,i){"use strict";i.d(t,{onTabInsideLi:function(){return n.onTabInsideLi}});var n=i(26658)},26658:function(e,t,i){"use strict";i.d(t,{onTabInsideLi:function(){return r}});var n=i(2748),o=i(38837);function r(e,t=!1){let i,s,a,l;if(!e.o.tab.tabInsideLiInsertNewList)return!1;let[c,d]=(i=e.createInside.fake(),s=e.createInside.fake(),(a=e.s.range.cloneRange()).collapse(!0),a.insertNode(i),(l=e.s.range.cloneRange()).collapse(!1),l.insertNode(s),[i,s]);try{let i,r,s,a,l,d=!!(i=n.Dom.closest(c,"li",e.editor))&&(!!t||!!n.Dom.isLeaf(i.previousElementSibling))&&(!t||!!n.Dom.closest(i,"li",e.editor))&&i;if(!d||!(r=n.Dom.closest(c,"li",e.editor))||r!==d&&!d.contains(r))return!1;let u=n.Dom.closest(d,["ol","ul"],e.editor);if(!u||t&&!n.Dom.closest(u,"li",e.editor))return!1;return t?function(e,t,i){let r=n.Dom.closest(t,"li",e.editor);(0,o.assert)(r,"tab parent li is null");let s=Array.from(t.children).filter(e=>n.Dom.isLeaf(e));n.Dom.after(r,i);let a=s.indexOf(i);if((0===a||1===s.length)&&n.Dom.safeRemove(t),a!==s.length-1){let e=t.cloneNode();n.Dom.append(i,e);for(let t=a+1;t<s.length;t+=1)n.Dom.append(e,s[t])}}(e,u,d):(s=d.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,l=n.Dom.isTag(a,u.tagName)?a:e.createInside.element(u.tagName,Array.from(u.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{})),n.Dom.append(l,d),a!==l&&n.Dom.append(s,l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(d),e.s.selectRange(t),n.Dom.safeRemove(c),n.Dom.safeRemove(d)}}},66288:function(e,t,i){"use strict";i(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(580),s=i(50911);i(66288);var a=i(47686),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends s.Plugin{afterInit(e){}__onTab(e){if(e.key===n.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,a.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}l([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),l([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},72439:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(76014);let l=new Set([n.KEY_TAB,n.KEY_LEFT,n.KEY_RIGHT,n.KEY_UP,n.KEY_DOWN]);r.pluginSystem.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{let{key:i}=t,r=function(e,t){if(!l.has(t))return;let i=e.s.current();if(!i)return;let r=o.Dom.up(i,o.Dom.isCell,e.editor);if(!r)return;let{range:a}=e.s;if(t!==n.KEY_TAB&&i!==r){let e=t===n.KEY_RIGHT||t===n.KEY_DOWN,l=(0,s.call)(e?o.Dom.next:o.Dom.prev,i,e=>t===n.KEY_UP||t===n.KEY_DOWN?o.Dom.isTag(e,"br"):!!e,r);if(!e&&(l||t!==n.KEY_UP&&o.Dom.isText(i)&&0!==a.startOffset)||e&&(l||t!==n.KEY_DOWN&&o.Dom.isText(i)&&i.nodeValue&&a.startOffset!==i.nodeValue.length))return}return r}(e,i);if(!r)return;let c=e.getInstance(a.Table,e.o),d=o.Dom.closest(r,"table",e.editor),u=null,h=i===n.KEY_LEFT||t.shiftKey,p=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,d);switch(i){case n.KEY_TAB:case n.KEY_LEFT:(u=p())||(c.appendRow(d,!!h&&o.Dom.first(d,e=>o.Dom.isTag(e,"tr")),!h),u=p());break;case n.KEY_UP:case n.KEY_DOWN:{let e=c.formalMatrix(d),[t,o]=c.formalCoordinate(d,r);i===n.KEY_UP?void 0!==e[t-1]&&(u=e[t-1][o]):void 0!==e[t+1]&&(u=e[t+1][o])}}if(u){if(e.e.fire("hidePopup hideResizer"),u.firstChild)i===n.KEY_TAB?e.s.select(u,!0):e.s.setCursorIn(u,i===n.KEY_RIGHT||i===n.KEY_DOWN);else{let t=e.createInside.element("br");o.Dom.append(u,t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(21537),s=i(43555),a=i(12153),l=i(6441),c=i(6091);l.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},a.Icon.set("table",c.default),l.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:(e,t,i,a)=>{let l;e.editor.normalize();let c=e.history.snapshot.make(),d=a.control,u=d.data&&d.data.rows?d.data.rows:10,h=d.data&&d.data.cols?d.data.cols:10,p=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";let t=[];if(d.data){let e=d.data.classList;Object.keys(e).forEach(i=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${e[i]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),[f,m]=(l=[],o.Dom.each(p,e=>{o.Dom.isTag(e,"span")&&l.push(e)}),l),g=o.Dom.first(p,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__container")),v=o.Dom.first(p,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__options")),b=[],y=u*h;(0,s.attr)(g,{role:"grid",ariaLabel:"Table size",ariaRowcount:u,ariaColcount:h});for(let t=0;t<y;t+=1)if(!b[t]){let i=Math.floor(t/h)+1,n=t%h+1;b.push(e.c.element("span",{dataIndex:t,role:"gridcell",tabindex:0===t?0:-1,ariaLabel:`${i} by ${n}`}))}let w=e=>{let t=parseInt((0,s.attr)(e,"-index")||"0",10),i=Math.ceil((t+1)/h),n=t%h+1;for(let e=0;e<b.length;e+=1)n>=e%h+1&&i>=Math.ceil((e+1)/h)?b[e].className="jodit_hovered":b[e].className="";m.textContent=n.toString(),f.textContent=i.toString()},_=t=>{let n=parseInt((0,s.attr)(t,"-index")||"0",10),a=Math.ceil((n+1)/h),l=n%h+1,d=e.createInside,u=d.element("tbody"),p=d.element("table");o.Dom.append(p,u);let f=null,m,g;for(let e=1;a>=e;e+=1){m=d.element("tr");for(let e=1;e<=l;e+=1)g=d.element("td"),f||(f=g),(0,r.css)(g,"width",(100/l).toFixed(4)+"%"),o.Dom.append(g,d.element("br")),o.Dom.append(m,d.text("\n")),o.Dom.append(m,d.text(" ")),o.Dom.append(m,g);o.Dom.append(u,d.text("\n")),o.Dom.append(u,m)}(0,r.$$)("input[type=checkbox]:checked",v).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{p.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(c);let b=o.Dom.furthest(e.s.current(),o.Dom.isBlock,e.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,p,void 0,!1,!0);else if(b){let t=d.text("\n");if(e.o.table.splitBlockOnInsertTable){let i=e.s.range;i.collapse(!1),i.insertNode(t),i.collapse(!1),e.s.selectRange(i);let n=e.s.splitSelection(b,t);n?o.Dom.after(n,p):o.Dom.after(b,p)}else o.Dom.after(b,t),o.Dom.after(t,p)}else e.s.insertNode(p,!1);f&&(e.s.setCursorIn(f),(0,r.scrollIntoViewIfNeeded)(f,e.editor,e.ed)),i()};if(e.e.on(g,"mousemove",e=>{o.Dom.isTag(e.target,"span")&&w(e.target)}).on(g,"touchstart mousedown",e=>{o.Dom.isTag(e.target,"span")&&(e.preventDefault(),e.stopImmediatePropagation(),_(e.target))}).on(g,"keydown",e=>{let t;if(!o.Dom.isTag(e.target,"span"))return;if(e.key===n.KEY_ENTER){e.preventDefault(),e.stopImmediatePropagation(),_(e.target);return}if(e.key===n.KEY_ESC){e.preventDefault(),e.stopImmediatePropagation(),i();return}let r=parseInt((0,s.attr)(e.target,"-index")||"0",10),a=Math.floor(r/h),l=r%h;switch(e.key){case n.KEY_LEFT:t=l>0?r-1:r;break;case n.KEY_RIGHT:t=l<h-1?r+1:r;break;case n.KEY_UP:t=a>0?r-h:r;break;case n.KEY_DOWN:t=a<u-1?r+h:r;break;default:return}e.preventDefault(),e.stopImmediatePropagation(),t!==r&&(b[r].tabIndex=-1,b[t].tabIndex=0,b[t].focus(),w(b[t]))}),a&&a.parentElement){for(let t=0;t<u;t+=1){let i=e.c.div();(0,s.attr)(i,"role","row");for(let e=0;e<h;e+=1)o.Dom.append(i,b[t*h+e]);o.Dom.append(g,i)}b[0]&&(b[0].className="hovered")}return p},tooltip:"Insert table"}},43003:function(e,t,i){"use strict";var n=i(580);i(40329),n.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(e,t,i){"use strict";var n=i(21537),o=i(62843),r=i(2525),s=i(12153),a=i(6441),l=i(92762),c=i(37775);a.Config.prototype.video={parseUrlToVideoEmbed:n.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup:(e,t,i)=>{let s=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>s.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],d=t=>{e.s.restore(),e.s.insertHTML(t),i()};return e.s.save(),c.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:a.container}),s.onSubmit(t=>{var i,o,r,s;d((0,n.call)(null!=(o=null==(i=e.o.video)?void 0:i.parseUrlToVideoEmbed)?o:n.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),a.onSubmit(e=>{d(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){"use strict";var n=i(580);i(14984),n.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(e,t,i){"use strict";i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){"use strict";var n=i(65478),o=i(22732),r=i(580),s=i(70799),a=i(50911);i(96967);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=function(e,t){let i=e,n=e;do if(o.Dom.isElement(n)&&o.Dom.isLeaf(n)&&!o.Dom.isList(n.parentElement)){let e=o.Dom.findNotEmptySibling(n,!1);o.Dom.isTag(i,"ul")?o.Dom.append(i,n):i=o.Dom.wrap(n,"ul",t.createInside),n=e}else break;while(n);return i}(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let n=e.createInside.element(e.o.enter);for(o.Dom.before(t,n);t&&this.isSuitable(t);){let e=t.nextSibling;o.Dom.append(n,t),t=e}n.normalize(),t=n}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),n=e.createInside.element("br");o.Dom.append(i,n),o.Dom.append(e.editor,i),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(n),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return o.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!o.Dom.isTemporary(e)},this.isSuitable=e=>o.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>o.Dom.isElement(e)&&!(o.Dom.isBlock(e)||o.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([n.autobind],c.prototype,"postProcessSetEditorValue",null),l([n.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,i){"use strict";i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),d=i(80870),u=i(21491);i(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===n.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new d.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?o.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,n)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${n}" tabindex="-1"'>${(0,s.trim)(i)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&o.Dom.prepend(this.container,this.selectAllButton.container)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),e){let t,i,n;o.Dom.up(e,e=>{e&&this.j.editor!==e&&!o.Dom.isText(e)&&!o.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),n=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&o.Dom.prepend(this.container,n))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(e,t){"use strict";t.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},43478:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(e,t,i){"use strict";i.r(t),i.d(t,{angle_down:function(){return n.default},angle_left:function(){return o.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return d.default},chevron:function(){return u.default},dots:function(){return h.default},eye:function(){return p.default},file:function(){return f.default},folder:function(){return m.default},info_circle:function(){return g.default},left:function(){return v.default},lock:function(){return b.default},ok:function(){return y.default},pencil:function(){return w.default},plus:function(){return _.default},resize_handler:function(){return k.default},right:function(){return C.default},save:function(){return S.default},settings:function(){return x.default},unlock:function(){return I.default},update:function(){return E.default},upload:function(){return T.default},valign:function(){return j.default}});var n=i(78173),o=i(16260),r=i(37663),s=i(51036),a=i(31554),l=i(18309),c=i(99762),d=i(7903),u=i(58032),h=i(52507),p=i(43478),f=i(60097),m=i(49155),g=i(17176),v=i(57882),b=i(58908),y=i(24829),w=i(4038),_=i(45575),k=i(84858),C=i(445),S=i(36886),x=i(10766),I=i(33651),E=i(20362),T=i(12202),j=i(80152)},17176:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(e,t){"use strict";t.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(e,t){"use strict";t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},62357:function(e,t,i){"use strict";i.d(t,{UIRange:function(){return l}});var n=i(82749),o=i(31635),r=i(65478),s=i(21537),a=i(67510);class l extends a.UIInput{className(){return"UIRange"}appendUIRange(){let e=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(e);let t=this.j.create.div(this.getFullElName("handle"));e.appendChild(t);let i=this.j.create.div(this.getFullElName("log")),n=this.getElm("label");n&&n.appendChild(i)}onDragStart(e){this.startValue=parseFloat(this.value)||0,this.startX=e.clientX;let t=this.getElm("slider");(0,s.assert)(null!=t,"slider element does not exists"),this.width=t.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(e){let{min:t,max:i,step:n=1}=this.state,o=(e.clientX-this.startX)/this.width*(this.state.max-this.state.min),r=this.startValue+o;r<t&&(r=t),r>i&&(r=i),r=Math.round(r/n)*n,this.value=r.toFixed(10)}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){let e=this.getElm("handle"),t=parseFloat(this.value)||0;(0,s.assert)(null!=e,"Handle element does not exist"),(0,s.css)(e,{left:(t-this.state.min)/(this.state.max-this.state.min)*100+"%"});let i=this.getElm("log");(0,s.assert)(null!=i,"log element does not exist"),i.innerText=t.toString()}destruct(){return this.onDragEnd(),super.destruct()}constructor(e,t){super(e,{...t,type:"hidden"}),(0,n._)(this,"state",{...a.UIInput.defaultState,min:0,max:100,step:1}),(0,n._)(this,"startValue",0),(0,n._)(this,"startX",0),(0,n._)(this,"width",100),Object.assign(this.state,t),this.appendUIRange(),this.onChangeSelfValue()}}(0,o.__decorate)([(0,r.watch)(["handle:mousedown","handle:touchstart"])],l.prototype,"onDragStart",null),(0,o.__decorate)([r.autobind],l.prototype,"onDrag",null),(0,o.__decorate)([(0,r.watch)(["j.ow:mouseup","j.ow:touchend"])],l.prototype,"onDragEnd",null),(0,o.__decorate)([(0,r.watch)(":change")],l.prototype,"onChangeSelfValue",null),l=(0,o.__decorate)([r.component],l)},31356:function(e,t,i){"use strict";i.d(t,{ListReconciler:function(){return n}});class n{static reconcile(e,t,i){let{getId:n,isEqual:o=(e,t)=>n(e)===n(t),preserveOrder:r=!0}=i,s=new Map,a=new Map;e.forEach((e,t)=>{let i=n(e);s.set(i,e),a.set(i,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let i=n(e);l.set(i,e),c.set(i,t)});let d=[],u=[],h=[],p=[];return t.forEach((e,t)=>{let i=n(e),l=s.get(i);l?!o(l,e)||r&&a.get(i)!==t?u.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):p.push(l):d.push(e)}),e.forEach(e=>{let t=n(e);l.has(t)||h.push(e)}),{toCreate:d,toUpdate:u,toRemove:h,unchanged:p}}static applyResult(e,t,i={}){t.toRemove.forEach(t=>{let n=e.indexOf(t);if(-1!==n){var o;null==(o=i.onRemove)||o.call(i,t,n),e.splice(n,1)}}),t.toUpdate.forEach(({oldItem:t,newItem:n,index:o})=>{let r=e.indexOf(t);if(-1!==r){var s;null==(s=i.onUpdate)||s.call(i,t,n,o),e[r]=n}}),t.toCreate.forEach(t=>{var n;null==(n=i.onCreate)||n.call(i,t,e.length),e.push(t)})}}},2692:function(e,t,i){"use strict";i.d(t,{JoditPro:function(){return a}});var n=i(82758),o=i(63799),r=i(41180),s=i(86019);class a extends s.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(n.IS_PROD&&!n.IS_TEST&&this.o.loadExternalConfig)return(0,o.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');n.IS_TEST||n.IS_PROD,(0,r.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+n.APP_VERSION}}},41810:function(e,t,i){"use strict";var n=i(82749),o=i(31635);i(66645);var r=i(86449),s=i(21020),a=i(46166),l=i(62895),c=i(55487),d=i(27769),u=i(58579),h=i(63805),p=i(82758),f=i(65478),m=i(580),g=i(21537),v=i(50911),b=i(2692),y=i(18549),w=i(54747);class _ extends v.Plugin{get state(){return this.stateManager.state}get toolRegistry(){return new c.ToolRegistry(this.j)}get permissionManager(){return new s.PermissionManager(this.j,this.toolRegistry)}get apiClient(){return new r.APIClient(this.j,this.toolRegistry)}get storage(){let{storage:e,storageKey:t,maxConversations:i}=this.j.o.aiAssistantPro;if("string"==typeof e){let n=(0,l.createStorageProvider)(e,t);return new l.WebStorageConversationStorage(n,i)}return e}get stateManager(){return new a.StateManager(this.j)}get mainPanel(){return new d.UIMainPanel(this.j,this.stateManager.state,this.j.o.aiAssistantPro,e=>{let t=this.stateManager.getCurrentConversation();t&&this.stateManager.setCurrentConversation({...t,...e})})}get dialog(){let e=this.j.dlg({resizable:this.j.o.aiAssistantPro.resizable,eventEmmiter:this.j.e});return e.e.on(e,"afterClose",()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro")}),e}setupTextAutocomplete(){let{textAutocompleteEnabled:e,textAutocompleteApiRequest:t,textAutocompleteMinQueryLength:i,textAutocompleteMaxSuggestions:n,textAutocompleteDebounceMs:o,textAutocompleteCacheTTL:r,textAutocompleteCacheMaxSize:s}=this.j.o.aiAssistantPro;if(!e||!t)return;this.j.o.autocomplete={...this.j.o.autocomplete,displayMode:"inline"};let a=this.textAutocompleteCache,l=null;this.textAutocompleteSource=e=>{if(e.length<i)return[];let c=`${e}:${n}`;if(r>0){let e=a.get(c);if(e&&Date.now()-e.ts<r)return e.data.map(e=>({value:e,title:e}))}l&&clearTimeout(l);let d=new AbortController;return new Promise(i=>{l=setTimeout(async()=>{try{let o=await t(e,n,d.signal);if(Array.isArray(o)){let e=o.slice(0,n);if(r>0){if(a.size>=s){let e=a.keys().next().value;null!=e&&a.delete(e)}a.set(c,{ts:Date.now(),data:e})}i(e.map(e=>({value:e,title:e})));return}i([])}catch(e){i([])}},o)})},this.j.e.fire("registerAutocompleteSource",this.textAutocompleteSource)}afterInit(){(0,m.extendLang)(h),this.setupEventListeners(),this.setupTextAutocomplete(),this.j.async.promise(e=>{let{initiallyOpened:t,persistOpenState:i}=this.j.o.aiAssistantPro,n=t;i?this.storage.getGlobalSettings().then(e=>{if((null==e?void 0:e.isOpen)!=null&&(n=e.isOpen),n)return this.openAssistant()}).catch(()=>null).finally(()=>e(void 0)):e(void 0)}).catch(()=>null)}__loadData(){return this.__initedPromise?this.__initedPromise:this.isDestructed?Promise.reject():(this.__initedPromise=this.j.async.promise(e=>{this.loadInitialData().then(e)}).catch(()=>null),this.__initedPromise)}async loadInitialData(){this.mainPanel.setMod("ready",!0),await (0,u.loadInitialData)(this.j,this.storage,this.stateManager),await this.restorePendingToolCalls()}async restorePendingToolCalls(){let e=this.stateManager.getCurrentConversation();if(!e)return;let t=(0,u.findMessagesWithPendingToolCalls)(e);if(0!==t.length)for(let e of t)await this.handleToolCalls(e.id)}setupEventListeners(){this.j.e.on("selectConversation.ai-assistant-pro",async e=>{try{await this.__loadData(),await (0,u.handleConversationSelect)(e,this.storage,this.stateManager)}catch(e){p.IS_PROD}}),this.j.e.on("newConversation.ai-assistant-pro",async()=>{await this.__loadData();let e=(0,u.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature);this.stateManager.setCurrentConversation(e)}),this.j.e.on("deleteConversation.ai-assistant-pro",async e=>{await this.__loadData(),await this.deleteConversation(e)}),this.j.e.on("renameConversation.ai-assistant-pro",async(e,t)=>{await this.__loadData(),await this.renameConversation(e,t)}),this.j.e.on("backToList.ai-assistant-pro",async()=>{await this.__loadData(),await (0,u.handleBackToList)(this.storage,this.stateManager)}),this.j.e.on("removeContext.ai-assistant-pro",async e=>{await this.__loadData(),this.stateManager.removeSelectionContext(e)}),this.j.e.on("approveToolCall.ai-assistant-pro",async(e,t)=>{try{await this.__loadData();let i=await (0,u.handleToolApproval)(e,t,this.stateManager,this.permissionManager,this.storage);if(i){let e=this.stateManager.getCurrentConversation();if(!e)return;let t=e.messages.find(e=>{var t;return null==(t=e.toolCalls)?void 0:t.some(e=>e.id===i.id)});if(!t)return;await this.executeToolCall(t.id,i)}}catch(e){if((0,g.isAbortError)(e))return;this.stateManager.setError(e instanceof Error?e.message:String(e))}}),this.j.e.on("denyToolCall.ai-assistant-pro",async e=>{await this.__loadData(),await (0,u.handleToolDenial)(this.j,e,this.stateManager,this.storage)}),this.j.e.on("abortRequest.ai-assistant-pro",async()=>{await this.__loadData(),this.apiClient.abort(),this.stateManager.setLoading(!1)})}__applyTheme(){(0,u.applyTheme)(this.j,this.stateManager.state.theme,this.stateManager.state.displayMode,this.mainPanel.container,this.dialog)}async openAssistant(){if(this.stateManager.isOpen()){this.stateManager.close(),await this.__closeInContainer();return}await this.__loadData(),this.isDestructed||(this.stateManager.open(),await this.__openInContainer(),this.j.o.aiAssistantPro.includeSelectionByDefault&&!this.j.s.isCollapsed()&&this.addCurrentSelectionToContext())}async __openInContainer(){let{resizable:e,allowClose:t,flightPanelHeight:i}=this.j.o.aiAssistantPro,{displayMode:n="right",panelWidth:o,panelHeight:r}=this.stateManager.state;switch(this.__applyTheme(),this.mainPanel.setMod("displayMode",n),this.mainPanel.setMod("allowClose",t),this.mainPanel.setParentView("dialog"===n||"flight"===n?this.dialog:this.j),this.__openedMode=n,n){case"dialog":this.dialog.setSize(o,r).open().setContent(this.mainPanel.container);break;case"flight":y.UIFlightPosition.install(this.mainPanel,this.j.container,{panelHeight:i,containerClassName:this.getFullElName("flight-container")});break;default:e&&(w.UIResize.remove(this.mainPanel),w.UIResize.install(this.mainPanel,(0,u.invertMode)(n),{handleClassName:this.getFullElName("ai-assistent-resize-handle"),onResize:({newSize:e})=>{let t="left"===n||"right"===n?e:o,i="top"===n||"bottom"===n?e:r;return this.stateManager.state.panelWidth=t,this.stateManager.state.panelHeight=i,!0}})),this.j.currentPlace.slots[n].appendChild(this.mainPanel.container),(0,u.resizeInPanelView)(this.j,n,o,r)}}__onResizeInPanelView(){let{displayMode:e,panelWidth:t,panelHeight:i}=this.stateManager.state;(0,u.resizeInPanelView)(this.j,e,t,i)}async __closeInContainer(){let{displayMode:e}=await this.stateManager.state;switch(this.__openedMode!==e&&"dialog"===this.__openedMode&&this.dialog.close(),this.__openedMode!==e&&"flight"===this.__openedMode&&this.__closeFlightMode(),e){case"dialog":this.dialog.close();break;case"flight":this.__closeFlightMode();break;default:this.mainPanel.container.remove()}}__closeFlightMode(){y.UIFlightPosition.remove(this.mainPanel)}__onSavedStateChange(){var e;let t=this.stateManager.state;return this.storage.saveGlobalSettings({displayMode:t.displayMode,panelWidth:t.panelWidth,panelHeight:t.panelHeight,theme:t.theme,defaultModel:t.defaultModel,defaultTemperature:t.defaultTemperature,currentConversationId:null==(e=t.currentConversation)?void 0:e.id,...this.j.o.aiAssistantPro.persistOpenState?{isOpen:t.isOpen}:{}})}async closeAssistant(){this.stateManager.isOpen()&&(await this.__loadData(),this.stateManager.close(),this.__closeInContainer())}async addCurrentSelectionToContext(){await this.__loadData();let e=(0,u.getCurrentSelectionContext)(this.j);e&&this.stateManager.addSelectionContext(e)}async executeQuickCommand(e){let t,{quickCommandsSilentMode:i,quickCommandsDisplayMode:n}=this.j.o.aiAssistantPro,o=this.j.o.aiAssistant;if(o&&o[e]&&(0,g.isString)(o[e])&&(t=o[e]),!t)return void this.j.e.fire("error",`Command not found: ${e}`);let r=this.j.s.isCollapsed()?this.j.value:this.j.s.html;if(!r)return;let s=(null==o?void 0:o.aiCommonPrefixPrompt)||"",a=(null==o?void 0:o.aiCommonSuffixPrompt)||"",l=`${s}${t}${a}
|
|
254
|
+
>${e.o.specialCharacters[t]}</a>`);a.push(s),o.Dom.append(r,s),o.Dom.append(i,r)}o.Dom.append(r,i)}let l=this;return e.e.on(a,"focus",function(){i.innerHTML=this.innerHTML}).on(a,"mousedown",function(t){o.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(a,"mouseenter",function(){o.Dom.isTag(this,"a")&&this.focus()}).on(a,"keydown",t=>{let i=t.target;if(o.Dom.isTag(i,"a")){let o,r=parseInt((0,s.attr)(i,"-index")||"0",10),c=parseInt((0,s.attr)(i,"data-index-j")||"0",10);switch(t.key){case n.KEY_UP:case n.KEY_DOWN:void 0===a[o=t.key===n.KEY_UP?r-l.__countInRow:r+l.__countInRow]&&(o=t.key===n.KEY_UP?Math.floor(a.length/l.__countInRow)*l.__countInRow+c:c)>a.length-1&&(o-=l.__countInRow),a[o]&&a[o].focus();break;case n.KEY_RIGHT:case n.KEY_LEFT:void 0===a[o=t.key===n.KEY_LEFT?r-1:r+1]&&(o=t.key===n.KEY_LEFT?a.length-1:0),a[o]&&a[o].focus();break;case n.KEY_ENTER:e.e.fire(i,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}constructor(e){super(e),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,r.extendLang)(l)}}r.pluginSystem.add("symbols",c)},5119:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},47686:function(e,t,i){"use strict";i.d(t,{onTabInsideLi:function(){return n.onTabInsideLi}});var n=i(26658)},26658:function(e,t,i){"use strict";i.d(t,{onTabInsideLi:function(){return r}});var n=i(2748),o=i(38837);function r(e,t=!1){let i,s,a,l;if(!e.o.tab.tabInsideLiInsertNewList)return!1;let[c,d]=(i=e.createInside.fake(),s=e.createInside.fake(),(a=e.s.range.cloneRange()).collapse(!0),a.insertNode(i),(l=e.s.range.cloneRange()).collapse(!1),l.insertNode(s),[i,s]);try{let i,r,s,a,l,d=!!(i=n.Dom.closest(c,"li",e.editor))&&(!!t||!!n.Dom.isLeaf(i.previousElementSibling))&&(!t||!!n.Dom.closest(i,"li",e.editor))&&i;if(!d||!(r=n.Dom.closest(c,"li",e.editor))||r!==d&&!d.contains(r))return!1;let u=n.Dom.closest(d,["ol","ul"],e.editor);if(!u||t&&!n.Dom.closest(u,"li",e.editor))return!1;return t?function(e,t,i){let r=n.Dom.closest(t,"li",e.editor);(0,o.assert)(r,"tab parent li is null");let s=Array.from(t.children).filter(e=>n.Dom.isLeaf(e));n.Dom.after(r,i);let a=s.indexOf(i);if((0===a||1===s.length)&&n.Dom.safeRemove(t),a!==s.length-1){let e=t.cloneNode();n.Dom.append(i,e);for(let t=a+1;t<s.length;t+=1)n.Dom.append(e,s[t])}}(e,u,d):(s=d.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,l=n.Dom.isTag(a,u.tagName)?a:e.createInside.element(u.tagName,Array.from(u.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{})),n.Dom.append(l,d),a!==l&&n.Dom.append(s,l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(d),e.s.selectRange(t),n.Dom.safeRemove(c),n.Dom.safeRemove(d)}}},66288:function(e,t,i){"use strict";i(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,i){"use strict";var n=i(82758),o=i(65478),r=i(580),s=i(50911);i(66288);var a=i(47686),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends s.Plugin{afterInit(e){}__onTab(e){if(e.key===n.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,a.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}l([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),l([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},72439:function(e,t,i){"use strict";var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(76014);let l=new Set([n.KEY_TAB,n.KEY_LEFT,n.KEY_RIGHT,n.KEY_UP,n.KEY_DOWN]);r.pluginSystem.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{let{key:i}=t,r=function(e,t){if(!l.has(t))return;let i=e.s.current();if(!i)return;let r=o.Dom.up(i,o.Dom.isCell,e.editor);if(!r)return;let{range:a}=e.s;if(t!==n.KEY_TAB&&i!==r){let e=t===n.KEY_RIGHT||t===n.KEY_DOWN,l=(0,s.call)(e?o.Dom.next:o.Dom.prev,i,e=>t===n.KEY_UP||t===n.KEY_DOWN?o.Dom.isTag(e,"br"):!!e,r);if(!e&&(l||t!==n.KEY_UP&&o.Dom.isText(i)&&0!==a.startOffset)||e&&(l||t!==n.KEY_DOWN&&o.Dom.isText(i)&&i.nodeValue&&a.startOffset!==i.nodeValue.length))return}return r}(e,i);if(!r)return;let c=e.getInstance(a.Table,e.o),d=o.Dom.closest(r,"table",e.editor),u=null,h=i===n.KEY_LEFT||t.shiftKey,p=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,d);switch(i){case n.KEY_TAB:case n.KEY_LEFT:(u=p())||(c.appendRow(d,!!h&&o.Dom.first(d,e=>o.Dom.isTag(e,"tr")),!h),u=p());break;case n.KEY_UP:case n.KEY_DOWN:{let e=c.formalMatrix(d),[t,o]=c.formalCoordinate(d,r);i===n.KEY_UP?void 0!==e[t-1]&&(u=e[t-1][o]):void 0!==e[t+1]&&(u=e[t+1][o])}}if(u){if(e.e.fire("hidePopup hideResizer"),u.firstChild)i===n.KEY_TAB?e.s.select(u,!0):e.s.setCursorIn(u,i===n.KEY_RIGHT||i===n.KEY_DOWN);else{let t=e.createInside.element("br");o.Dom.append(u,t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(21537),s=i(43555),a=i(12153),l=i(6441),c=i(6091);l.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},a.Icon.set("table",c.default),l.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:(e,t,i,a)=>{let l;e.editor.normalize();let c=e.history.snapshot.make(),d=a.control,u=d.data&&d.data.rows?d.data.rows:10,h=d.data&&d.data.cols?d.data.cols:10,p=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";let t=[];if(d.data){let e=d.data.classList;Object.keys(e).forEach(i=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${e[i]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),[f,m]=(l=[],o.Dom.each(p,e=>{o.Dom.isTag(e,"span")&&l.push(e)}),l),g=o.Dom.first(p,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__container")),v=o.Dom.first(p,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__options")),b=[],y=u*h;(0,s.attr)(g,{role:"grid",ariaLabel:"Table size",ariaRowcount:u,ariaColcount:h});for(let t=0;t<y;t+=1)if(!b[t]){let i=Math.floor(t/h)+1,n=t%h+1;b.push(e.c.element("span",{dataIndex:t,role:"gridcell",tabindex:0===t?0:-1,ariaLabel:`${i} by ${n}`}))}let w=e=>{let t=parseInt((0,s.attr)(e,"-index")||"0",10),i=Math.ceil((t+1)/h),n=t%h+1;for(let e=0;e<b.length;e+=1)n>=e%h+1&&i>=Math.ceil((e+1)/h)?b[e].className="jodit_hovered":b[e].className="";m.textContent=n.toString(),f.textContent=i.toString()},_=t=>{let n=parseInt((0,s.attr)(t,"-index")||"0",10),a=Math.ceil((n+1)/h),l=n%h+1,d=e.createInside,u=d.element("tbody"),p=d.element("table");o.Dom.append(p,u);let f=null,m,g;for(let e=1;a>=e;e+=1){m=d.element("tr");for(let e=1;e<=l;e+=1)g=d.element("td"),f||(f=g),(0,r.css)(g,"width",(100/l).toFixed(4)+"%"),o.Dom.append(g,d.element("br")),o.Dom.append(m,d.text("\n")),o.Dom.append(m,d.text(" ")),o.Dom.append(m,g);o.Dom.append(u,d.text("\n")),o.Dom.append(u,m)}(0,r.$$)("input[type=checkbox]:checked",v).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{p.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(c);let b=o.Dom.furthest(e.s.current(),o.Dom.isBlock,e.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,p,void 0,!1,!0);else if(b){let t=d.text("\n");if(e.o.table.splitBlockOnInsertTable){let i=e.s.range;i.collapse(!1),i.insertNode(t),i.collapse(!1),e.s.selectRange(i);let n=e.s.splitSelection(b,t);n?o.Dom.after(n,p):o.Dom.after(b,p)}else o.Dom.after(b,t),o.Dom.after(t,p)}else e.s.insertNode(p,!1);f&&(e.s.setCursorIn(f),(0,r.scrollIntoViewIfNeeded)(f,e.editor,e.ed)),i()};if(e.e.on(g,"mousemove",e=>{o.Dom.isTag(e.target,"span")&&w(e.target)}).on(g,"touchstart mousedown",e=>{o.Dom.isTag(e.target,"span")&&(e.preventDefault(),e.stopImmediatePropagation(),_(e.target))}).on(g,"keydown",e=>{let t;if(!o.Dom.isTag(e.target,"span"))return;if(e.key===n.KEY_ENTER){e.preventDefault(),e.stopImmediatePropagation(),_(e.target);return}if(e.key===n.KEY_ESC){e.preventDefault(),e.stopImmediatePropagation(),i();return}let r=parseInt((0,s.attr)(e.target,"-index")||"0",10),a=Math.floor(r/h),l=r%h;switch(e.key){case n.KEY_LEFT:t=l>0?r-1:r;break;case n.KEY_RIGHT:t=l<h-1?r+1:r;break;case n.KEY_UP:t=a>0?r-h:r;break;case n.KEY_DOWN:t=a<u-1?r+h:r;break;default:return}e.preventDefault(),e.stopImmediatePropagation(),t!==r&&(b[r].tabIndex=-1,b[t].tabIndex=0,b[t].focus(),w(b[t]))}),a&&a.parentElement){for(let t=0;t<u;t+=1){let i=e.c.div();(0,s.attr)(i,"role","row");for(let e=0;e<h;e+=1)o.Dom.append(i,b[t*h+e]);o.Dom.append(g,i)}b[0]&&(b[0].className="hovered")}return p},tooltip:"Insert table"}},43003:function(e,t,i){"use strict";var n=i(580);i(40329),n.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(e,t,i){"use strict";var n=i(21537),o=i(62843),r=i(2525),s=i(12153),a=i(6441),l=i(92762),c=i(37775);a.Config.prototype.video={parseUrlToVideoEmbed:n.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup:(e,t,i)=>{let s=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>s.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],d=t=>{e.s.restore(),e.s.insertHTML(t),i()};return e.s.save(),c.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:a.container}),s.onSubmit(t=>{var i,o,r,s;d((0,n.call)(null!=(o=null==(i=e.o.video)?void 0:i.parseUrlToVideoEmbed)?o:n.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),a.onSubmit(e=>{d(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){"use strict";var n=i(580);i(14984),n.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(e,t,i){"use strict";i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){"use strict";var n=i(65478),o=i(22732),r=i(580),s=i(70799),a=i(50911);i(96967);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=function(e,t){let i=e,n=e;do if(o.Dom.isElement(n)&&o.Dom.isLeaf(n)&&!o.Dom.isList(n.parentElement)){let e=o.Dom.findNotEmptySibling(n,!1);o.Dom.isTag(i,"ul")?o.Dom.append(i,n):i=o.Dom.wrap(n,"ul",t.createInside),n=e}else break;while(n);return i}(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let n=e.createInside.element(e.o.enter);for(o.Dom.before(t,n);t&&this.isSuitable(t);){let e=t.nextSibling;o.Dom.append(n,t),t=e}n.normalize(),t=n}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),n=e.createInside.element("br");o.Dom.append(i,n),o.Dom.append(e.editor,i),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(n),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return o.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!o.Dom.isTemporary(e)},this.isSuitable=e=>o.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>o.Dom.isElement(e)&&!(o.Dom.isBlock(e)||o.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([n.autobind],c.prototype,"postProcessSetEditorValue",null),l([n.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,i){"use strict";i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){"use strict";var n=i(82758),o=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),d=i(80870),u=i(21491);i(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===n.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new d.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?o.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,n)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${n}" tabindex="-1"'>${(0,s.trim)(i)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&o.Dom.prepend(this.container,this.selectAllButton.container)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),e){let t,i,n;o.Dom.up(e,e=>{e&&this.j.editor!==e&&!o.Dom.isText(e)&&!o.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),n=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&o.Dom.prepend(this.container,n))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(e,t){"use strict";t.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},1647:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1344q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h465l135 136q58 56 136 56t136-56l136-136h464q40 0 68 28t28 68zm-325-569q17 41-14 70l-448 448q-18 19-45 19t-45-19l-448-448q-31-29-14-70 17-39 59-39h256v-448q0-26 19-45t45-19h256q26 0 45 19t19 45v448h256q42 0 59 39z"/> </svg> '},43478:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(e,t,i){"use strict";i.r(t),i.d(t,{angle_down:function(){return n.default},angle_left:function(){return o.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return d.default},chevron:function(){return u.default},dots:function(){return h.default},download:function(){return p.default},eye:function(){return f.default},file:function(){return m.default},folder:function(){return g.default},info_circle:function(){return v.default},left:function(){return b.default},lock:function(){return y.default},ok:function(){return w.default},pencil:function(){return _.default},plus:function(){return k.default},resize_handler:function(){return C.default},right:function(){return S.default},save:function(){return x.default},settings:function(){return I.default},unlock:function(){return E.default},update:function(){return T.default},upload:function(){return j.default},valign:function(){return D.default}});var n=i(78173),o=i(16260),r=i(37663),s=i(51036),a=i(31554),l=i(18309),c=i(99762),d=i(7903),u=i(58032),h=i(52507),p=i(1647),f=i(43478),m=i(60097),g=i(49155),v=i(17176),b=i(57882),y=i(58908),w=i(24829),_=i(4038),k=i(45575),C=i(84858),S=i(445),x=i(36886),I=i(10766),E=i(33651),T=i(20362),j=i(12202),D=i(80152)},17176:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(e,t){"use strict";t.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(e,t){"use strict";t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(e,t){"use strict";t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},62357:function(e,t,i){"use strict";i.d(t,{UIRange:function(){return l}});var n=i(82749),o=i(31635),r=i(65478),s=i(21537),a=i(67510);class l extends a.UIInput{className(){return"UIRange"}appendUIRange(){let e=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(e);let t=this.j.create.div(this.getFullElName("handle"));e.appendChild(t);let i=this.j.create.div(this.getFullElName("log")),n=this.getElm("label");n&&n.appendChild(i)}onDragStart(e){this.startValue=parseFloat(this.value)||0,this.startX=e.clientX;let t=this.getElm("slider");(0,s.assert)(null!=t,"slider element does not exists"),this.width=t.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(e){let{min:t,max:i,step:n=1}=this.state,o=(e.clientX-this.startX)/this.width*(this.state.max-this.state.min),r=this.startValue+o;r<t&&(r=t),r>i&&(r=i),r=Math.round(r/n)*n,this.value=r.toFixed(10)}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){let e=this.getElm("handle"),t=parseFloat(this.value)||0;(0,s.assert)(null!=e,"Handle element does not exist"),(0,s.css)(e,{left:(t-this.state.min)/(this.state.max-this.state.min)*100+"%"});let i=this.getElm("log");(0,s.assert)(null!=i,"log element does not exist"),i.innerText=t.toString()}destruct(){return this.onDragEnd(),super.destruct()}constructor(e,t){super(e,{...t,type:"hidden"}),(0,n._)(this,"state",{...a.UIInput.defaultState,min:0,max:100,step:1}),(0,n._)(this,"startValue",0),(0,n._)(this,"startX",0),(0,n._)(this,"width",100),Object.assign(this.state,t),this.appendUIRange(),this.onChangeSelfValue()}}(0,o.__decorate)([(0,r.watch)(["handle:mousedown","handle:touchstart"])],l.prototype,"onDragStart",null),(0,o.__decorate)([r.autobind],l.prototype,"onDrag",null),(0,o.__decorate)([(0,r.watch)(["j.ow:mouseup","j.ow:touchend"])],l.prototype,"onDragEnd",null),(0,o.__decorate)([(0,r.watch)(":change")],l.prototype,"onChangeSelfValue",null),l=(0,o.__decorate)([r.component],l)},31356:function(e,t,i){"use strict";i.d(t,{ListReconciler:function(){return n}});class n{static reconcile(e,t,i){let{getId:n,isEqual:o=(e,t)=>n(e)===n(t),preserveOrder:r=!0}=i,s=new Map,a=new Map;e.forEach((e,t)=>{let i=n(e);s.set(i,e),a.set(i,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let i=n(e);l.set(i,e),c.set(i,t)});let d=[],u=[],h=[],p=[];return t.forEach((e,t)=>{let i=n(e),l=s.get(i);l?!o(l,e)||r&&a.get(i)!==t?u.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):p.push(l):d.push(e)}),e.forEach(e=>{let t=n(e);l.has(t)||h.push(e)}),{toCreate:d,toUpdate:u,toRemove:h,unchanged:p}}static applyResult(e,t,i={}){t.toRemove.forEach(t=>{let n=e.indexOf(t);if(-1!==n){var o;null==(o=i.onRemove)||o.call(i,t,n),e.splice(n,1)}}),t.toUpdate.forEach(({oldItem:t,newItem:n,index:o})=>{let r=e.indexOf(t);if(-1!==r){var s;null==(s=i.onUpdate)||s.call(i,t,n,o),e[r]=n}}),t.toCreate.forEach(t=>{var n;null==(n=i.onCreate)||n.call(i,t,e.length),e.push(t)})}}},2692:function(e,t,i){"use strict";i.d(t,{JoditPro:function(){return a}});var n=i(82758),o=i(63799),r=i(41180),s=i(86019);class a extends s.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(n.IS_PROD&&!n.IS_TEST&&this.o.loadExternalConfig)return(0,o.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');n.IS_TEST||n.IS_PROD,(0,r.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+n.APP_VERSION}}},41810:function(e,t,i){"use strict";var n=i(82749),o=i(31635);i(66645);var r=i(86449),s=i(21020),a=i(46166),l=i(62895),c=i(55487),d=i(27769),u=i(58579),h=i(63805),p=i(82758),f=i(65478),m=i(580),g=i(21537),v=i(50911),b=i(2692),y=i(18549),w=i(54747);class _ extends v.Plugin{get state(){return this.stateManager.state}get toolRegistry(){return new c.ToolRegistry(this.j)}get permissionManager(){return new s.PermissionManager(this.j,this.toolRegistry)}get apiClient(){return new r.APIClient(this.j,this.toolRegistry)}get storage(){let{storage:e,storageKey:t,maxConversations:i}=this.j.o.aiAssistantPro;if("string"==typeof e){let n=(0,l.createStorageProvider)(e,t);return new l.WebStorageConversationStorage(n,i)}return e}get stateManager(){return new a.StateManager(this.j)}get mainPanel(){return new d.UIMainPanel(this.j,this.stateManager.state,this.j.o.aiAssistantPro,e=>{let t=this.stateManager.getCurrentConversation();t&&this.stateManager.setCurrentConversation({...t,...e})})}get dialog(){let e=this.j.dlg({resizable:this.j.o.aiAssistantPro.resizable,eventEmmiter:this.j.e});return e.e.on(e,"afterClose",()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro")}),e}setupTextAutocomplete(){let{textAutocompleteEnabled:e,textAutocompleteApiRequest:t,textAutocompleteMinQueryLength:i,textAutocompleteMaxSuggestions:n,textAutocompleteDebounceMs:o,textAutocompleteCacheTTL:r,textAutocompleteCacheMaxSize:s}=this.j.o.aiAssistantPro;if(!e||!t)return;this.j.o.autocomplete={...this.j.o.autocomplete,displayMode:"inline"};let a=this.textAutocompleteCache,l=null;this.textAutocompleteSource=e=>{if(e.length<i)return[];let c=`${e}:${n}`;if(r>0){let e=a.get(c);if(e&&Date.now()-e.ts<r)return e.data.map(e=>({value:e,title:e}))}l&&clearTimeout(l);let d=new AbortController;return new Promise(i=>{l=setTimeout(async()=>{try{let o=await t(e,n,d.signal);if(Array.isArray(o)){let e=o.slice(0,n);if(r>0){if(a.size>=s){let e=a.keys().next().value;null!=e&&a.delete(e)}a.set(c,{ts:Date.now(),data:e})}i(e.map(e=>({value:e,title:e})));return}i([])}catch(e){i([])}},o)})},this.j.e.fire("registerAutocompleteSource",this.textAutocompleteSource)}afterInit(){(0,m.extendLang)(h),this.setupEventListeners(),this.setupTextAutocomplete(),this.j.async.promise(e=>{let{initiallyOpened:t,persistOpenState:i}=this.j.o.aiAssistantPro,n=t;i?this.storage.getGlobalSettings().then(e=>{if((null==e?void 0:e.isOpen)!=null&&(n=e.isOpen),n)return this.openAssistant()}).catch(()=>null).finally(()=>e(void 0)):e(void 0)}).catch(()=>null)}__loadData(){return this.__initedPromise?this.__initedPromise:this.isDestructed?Promise.reject():(this.__initedPromise=this.j.async.promise(e=>{this.loadInitialData().then(e)}).catch(()=>null),this.__initedPromise)}async loadInitialData(){this.mainPanel.setMod("ready",!0),await (0,u.loadInitialData)(this.j,this.storage,this.stateManager),await this.restorePendingToolCalls()}async restorePendingToolCalls(){let e=this.stateManager.getCurrentConversation();if(!e)return;let t=(0,u.findMessagesWithPendingToolCalls)(e);if(0!==t.length)for(let e of t)await this.handleToolCalls(e.id)}setupEventListeners(){this.j.e.on("selectConversation.ai-assistant-pro",async e=>{try{await this.__loadData(),await (0,u.handleConversationSelect)(e,this.storage,this.stateManager)}catch(e){p.IS_PROD}}),this.j.e.on("newConversation.ai-assistant-pro",async()=>{await this.__loadData();let e=(0,u.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature);this.stateManager.setCurrentConversation(e)}),this.j.e.on("deleteConversation.ai-assistant-pro",async e=>{await this.__loadData(),await this.deleteConversation(e)}),this.j.e.on("renameConversation.ai-assistant-pro",async(e,t)=>{await this.__loadData(),await this.renameConversation(e,t)}),this.j.e.on("backToList.ai-assistant-pro",async()=>{await this.__loadData(),await (0,u.handleBackToList)(this.storage,this.stateManager)}),this.j.e.on("removeContext.ai-assistant-pro",async e=>{await this.__loadData(),this.stateManager.removeSelectionContext(e)}),this.j.e.on("approveToolCall.ai-assistant-pro",async(e,t)=>{try{await this.__loadData();let i=await (0,u.handleToolApproval)(e,t,this.stateManager,this.permissionManager,this.storage);if(i){let e=this.stateManager.getCurrentConversation();if(!e)return;let t=e.messages.find(e=>{var t;return null==(t=e.toolCalls)?void 0:t.some(e=>e.id===i.id)});if(!t)return;await this.executeToolCall(t.id,i)}}catch(e){if((0,g.isAbortError)(e))return;this.stateManager.setError(e instanceof Error?e.message:String(e))}}),this.j.e.on("denyToolCall.ai-assistant-pro",async e=>{await this.__loadData(),await (0,u.handleToolDenial)(this.j,e,this.stateManager,this.storage)}),this.j.e.on("abortRequest.ai-assistant-pro",async()=>{await this.__loadData(),this.apiClient.abort(),this.stateManager.setLoading(!1)})}__applyTheme(){(0,u.applyTheme)(this.j,this.stateManager.state.theme,this.stateManager.state.displayMode,this.mainPanel.container,this.dialog)}async openAssistant(){if(this.stateManager.isOpen()){this.stateManager.close(),await this.__closeInContainer();return}await this.__loadData(),this.isDestructed||(this.stateManager.open(),await this.__openInContainer(),this.j.o.aiAssistantPro.includeSelectionByDefault&&!this.j.s.isCollapsed()&&this.addCurrentSelectionToContext())}async __openInContainer(){let{resizable:e,allowClose:t,flightPanelHeight:i}=this.j.o.aiAssistantPro,{displayMode:n="right",panelWidth:o,panelHeight:r}=this.stateManager.state;switch(this.__applyTheme(),this.mainPanel.setMod("displayMode",n),this.mainPanel.setMod("allowClose",t),this.mainPanel.setParentView("dialog"===n||"flight"===n?this.dialog:this.j),this.__openedMode=n,n){case"dialog":this.dialog.setSize(o,r).open().setContent(this.mainPanel.container);break;case"flight":y.UIFlightPosition.install(this.mainPanel,this.j.container,{panelHeight:i,containerClassName:this.getFullElName("flight-container")});break;default:e&&(w.UIResize.remove(this.mainPanel),w.UIResize.install(this.mainPanel,(0,u.invertMode)(n),{handleClassName:this.getFullElName("ai-assistent-resize-handle"),onResize:({newSize:e})=>{let t="left"===n||"right"===n?e:o,i="top"===n||"bottom"===n?e:r;return this.stateManager.state.panelWidth=t,this.stateManager.state.panelHeight=i,!0}})),this.j.currentPlace.slots[n].appendChild(this.mainPanel.container),(0,u.resizeInPanelView)(this.j,n,o,r)}}__onResizeInPanelView(){let{displayMode:e,panelWidth:t,panelHeight:i}=this.stateManager.state;(0,u.resizeInPanelView)(this.j,e,t,i)}async __closeInContainer(){let{displayMode:e}=await this.stateManager.state;switch(this.__openedMode!==e&&"dialog"===this.__openedMode&&this.dialog.close(),this.__openedMode!==e&&"flight"===this.__openedMode&&this.__closeFlightMode(),e){case"dialog":this.dialog.close();break;case"flight":this.__closeFlightMode();break;default:this.mainPanel.container.remove()}}__closeFlightMode(){y.UIFlightPosition.remove(this.mainPanel)}__onSavedStateChange(){var e;let t=this.stateManager.state;return this.storage.saveGlobalSettings({displayMode:t.displayMode,panelWidth:t.panelWidth,panelHeight:t.panelHeight,theme:t.theme,defaultModel:t.defaultModel,defaultTemperature:t.defaultTemperature,currentConversationId:null==(e=t.currentConversation)?void 0:e.id,...this.j.o.aiAssistantPro.persistOpenState?{isOpen:t.isOpen}:{}})}async closeAssistant(){this.stateManager.isOpen()&&(await this.__loadData(),this.stateManager.close(),this.__closeInContainer())}async addCurrentSelectionToContext(){await this.__loadData();let e=(0,u.getCurrentSelectionContext)(this.j);e&&this.stateManager.addSelectionContext(e)}async executeQuickCommand(e){let t,{quickCommandsSilentMode:i,quickCommandsDisplayMode:n}=this.j.o.aiAssistantPro,o=this.j.o.aiAssistant;if(o&&o[e]&&(0,g.isString)(o[e])&&(t=o[e]),!t)return void this.j.e.fire("error",`Command not found: ${e}`);let r=this.j.s.isCollapsed()?this.j.value:this.j.s.html;if(!r)return;let s=(null==o?void 0:o.aiCommonPrefixPrompt)||"",a=(null==o?void 0:o.aiCommonSuffixPrompt)||"",l=`${s}${t}${a}
|
|
255
255
|
|
|
256
256
|
${r}`.trim();i?await this.__executeQuickCommandSilent(l,r):await this.__executeQuickCommandWithPanel(l,n)}async __executeQuickCommandSilent(e,t){await this.__loadData(),this.j.progressbar.show().progress(100);try{let t=(0,u.createUserMessage)(e),i=(0,u.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature,[t]),n=await this.apiClient.sendRequest(i.id,i.messages,null,[],i.options);if("final"===n.mode){let e=n.response.content;e&&this.j.s.insertHTML(e)}}catch(e){(0,g.isAbortError)(e)||this.j.e.fire("error",e)}finally{this.j.progressbar.hide()}}async __executeQuickCommandWithPanel(e,t){await this.__loadData();let i=this.stateManager.state.displayMode;this.stateManager.state.displayMode=t;let n=(0,u.getCurrentSelectionContext)(this.j);n&&this.stateManager.addSelectionContext(n),this.stateManager.isOpen()||await this.openAssistant(),await this.sendMessage(e),this.stateManager.state.displayMode=i}async sendMessage(e){await this.__loadData();let t=this.stateManager.getCurrentConversation(),i=this.stateManager.getEditingMessageId();if(i&&t){let e=t.messages.findIndex(e=>e.id===i);if(-1!==e){let i=t.messages.slice(0,e),n={...t,messages:i,updatedAt:Date.now()};this.stateManager.setCurrentConversation(n),await this.storage.save(n),this.stateManager.clearEditingMessage(),t=n}}t||(t=(0,u.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature),this.stateManager.setCurrentConversation(t));let n=null;e.trim()&&(n=(0,u.createUserMessage)(e),t.title||(t={...t,title:e}),t={...t,updated:Date.now(),messages:[...t.messages,n]}),this.stateManager.setCurrentConversation({...t}),n&&this.j.e.fire("messageSent.ai-assistant-pro",n),this.stateManager.setLoading(!0),this.stateManager.clearError();try{await this.sendRequestToAI(0),this.stateManager.clearSelectionContexts()}catch(e){if((0,g.isAbortError)(e))return;this.stateManager.setError(e instanceof Error?e.message:String(e))}finally{this.stateManager.setLoading(!1)}}async sendRequestToAI(e=0){let t,i,n=this.j.o.aiAssistantPro.maxRecursionToolCallDepth;if(e>=n)throw Error(`Max recursion depth ${n} reached for tool calls`);let o=this.stateManager.getCurrentConversation();if(!o)return;let r=(0,u.findParentMessageId)(o),[s]=await Promise.all([this.apiClient.sendRequest(o.id,o.messages,r,this.stateManager.getSelectionContexts(),o.options),this.storage.save(o)]);if("stream"===s.mode){let e=await (0,u.processStreamingResponse)(this.stateManager,s,o);t=e.aiMessage,i=e.index,o=e.conversation}else{let e=(0,u.processFinalResponse)(s,o);t=e.aiMessage,i=e.index,o=e.conversation}o=await (0,u.processArtifacts)(this.j,t,o,i),this.j.e.fire("messageReceived.ai-assistant-pro",t),this.stateManager.setCurrentConversation({...o}),await this.storage.save(o),await this.handleToolCalls(t.id,e)}async deleteConversation(e){await this.__loadData(),await (0,u.deleteConversationWithCleanup)(this.j,e,this.storage,this.stateManager,this.permissionManager)}async renameConversation(e,t){var i;let n=await this.storage.get(e);if(!n)return;let o={...n,title:t,updated:Date.now()};await this.storage.save(o),(null==(i=this.state.currentConversation)?void 0:i.id)===e&&this.stateManager.setCurrentConversation(o);let r=await this.storage.list();this.stateManager.setConversations(r)}async searchConversations(e){await this.__loadData(),await (0,u.handleConversationSearch)(e,this.storage,this.stateManager)}async handleToolCalls(e,t=0){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.find(t=>t.id===e);if(!n)return;let o=n.toolCalls;if(!o||0===o.length)return;let r=o.filter(e=>!(0,u.isTerminalToolCallStatus)(e.status));if(0===r.length)return;let{approved:s,needsPermission:a}=this.permissionManager.filterToolCalls(r,i.permissions);for(let i of(this.stateManager.setPendingToolCalls(a),s))await this.executeToolCall(e,i,t)}async executeToolCall(e,t,i=0){let n=this.stateManager.getCurrentConversation();if(!n)return;let o=await (0,u.executeToolCall)(this.j,t,this.toolRegistry),r=n.messages.findIndex(t=>t.id===e);if(-1===r)return;let s=n.messages[r],a=n.messages.slice();a[r]=(0,u.updateToolCallInMessage)(s,o),n={...n,messages:a,updated:Date.now()},this.stateManager.setCurrentConversation(n),(0,u.areAllToolCallsExecuted)(n)&&await this.sendRequestToAI(i+1)}async copyMessage(e){let t=this.stateManager.getCurrentConversation();if(!t)return;let i=t.messages.find(t=>t.id===e);if(i)try{await navigator.clipboard.writeText(i.content),this.j.message.success("Message copied to clipboard")}catch(e){this.j.e.fire("error",Error("Failed to copy message"))}}async restartFromMessage(e){let t=this.stateManager.getCurrentConversation();if(!t)return;let i=t.messages.findIndex(t=>t.id===e);if(-1===i)return;let n=t.messages[i];if("user"!==n.role)return;await this.__loadData();let o=t.messages.slice(0,i),r={...t,messages:o,updatedAt:Date.now()};this.stateManager.setCurrentConversation(r),await this.storage.save(r),await this.sendMessage(n.content)}async editMessage(e){let t=this.stateManager.getCurrentConversation();if(!t)return;let i=t.messages.find(t=>t.id===e);i&&"user"===i.role&&(this.stateManager.setEditingMessageId(e),this.mainPanel.inputArea.setValue(i.content),this.mainPanel.inputArea.focus())}cancelEditMessage(){this.stateManager.isEditingMessage()&&(this.stateManager.clearEditingMessage(),this.mainPanel.inputArea.setValue(""))}async deleteMessage(e){await this.__loadData();let t=this.stateManager.getCurrentConversation();if(!t||-1===t.messages.findIndex(t=>t.id===e))return;let i=t.messages.filter(t=>t.id!==e),n={...t,messages:i,updatedAt:Date.now()};this.stateManager.setCurrentConversation(n),await this.storage.save(n)}beforeDestruct(){var e,t,i,n,o,r,s,a;this.textAutocompleteSource&&(this.j.e.fire("unregisterAutocompleteSource",this.textAutocompleteSource),this.textAutocompleteSource=null),this.textAutocompleteCache.clear(),this.__closeFlightMode(),null==(e=(0,f.cached)(this,"toolRegistry"))||e.destruct(),null==(t=(0,f.cached)(this,"permissionManager"))||t.destruct(),null==(i=(0,f.cached)(this,"apiClient"))||i.destruct(),null==(n=(0,f.cached)(this,"stateManager"))||n.destruct(),null==(o=(0,f.cached)(this,"mainPanel"))||o.destruct(),null==(r=(0,f.cached)(this,"dialog"))||r.destruct(),null==(a=(0,f.cached)(this,"storage"))||null==(s=a.close)||s.call(a)}constructor(...e){super(...e),(0,n._)(this,"buttons",[{name:"aiAssistantPro",group:"insert"},{name:"aiCommandsPro",group:"insert"}]),(0,n._)(this,"textAutocompleteSource",null),(0,n._)(this,"textAutocompleteCache",new Map),(0,n._)(this,"__initedPromise",null),(0,n._)(this,"__openedMode",null)}}(0,n._)(_,"requires",["license","autocomplete"]),(0,o.__decorate)([f.cache],_.prototype,"toolRegistry",null),(0,o.__decorate)([f.cache],_.prototype,"permissionManager",null),(0,o.__decorate)([f.cache],_.prototype,"apiClient",null),(0,o.__decorate)([f.cache],_.prototype,"storage",null),(0,o.__decorate)([f.cache],_.prototype,"stateManager",null),(0,o.__decorate)([f.cache],_.prototype,"mainPanel",null),(0,o.__decorate)([f.cache],_.prototype,"dialog",null),(0,o.__decorate)([(0,f.watch)("state.theme")],_.prototype,"__applyTheme",null),(0,o.__decorate)([(0,f.watch)(":openAIAssistantPro.ai-assistant-pro")],_.prototype,"openAssistant",null),(0,o.__decorate)([(0,f.watch)([":resize","state.panelWidth","state.panelHeight"])],_.prototype,"__onResizeInPanelView",null),(0,o.__decorate)([(0,f.watch)(["state.isOpen","state.displayMode","state.panelWidth","state.panelHeight","state.theme","state.defaultModel","state.defaultTemperature","state.currentConversation"]),(0,f.debounce)()],_.prototype,"__onSavedStateChange",null),(0,o.__decorate)([(0,f.watch)(":closeAIAssistantPro.ai-assistant-pro")],_.prototype,"closeAssistant",null),(0,o.__decorate)([(0,f.watch)(":addContextToAIAssistant.ai-assistant-pro")],_.prototype,"addCurrentSelectionToContext",null),(0,o.__decorate)([(0,f.watch)(":executeQuickCommand.ai-assistant-pro")],_.prototype,"executeQuickCommand",null),(0,o.__decorate)([(0,f.watch)(":sendMessage.ai-assistant-pro")],_.prototype,"sendMessage",null),(0,o.__decorate)([(0,f.watch)(":searchConversations.ai-assistant-pro")],_.prototype,"searchConversations",null),(0,o.__decorate)([(0,f.watch)(":copyMessage.ai-assistant-pro")],_.prototype,"copyMessage",null),(0,o.__decorate)([(0,f.watch)(":restartFromMessage.ai-assistant-pro")],_.prototype,"restartFromMessage",null),(0,o.__decorate)([(0,f.watch)(":editMessage.ai-assistant-pro")],_.prototype,"editMessage",null),(0,o.__decorate)([(0,f.watch)(":cancelEditMessage.ai-assistant-pro")],_.prototype,"cancelEditMessage",null),(0,o.__decorate)([(0,f.watch)(":deleteMessage.ai-assistant-pro")],_.prototype,"deleteMessage",null),_=(0,o.__decorate)([f.component],_),b.JoditPro.plugins.add("aiAssistantPro",_)},66645:function(e,t,i){"use strict";var n,o=i(47373),r=i(94668),s=i.n(r),a=i(86428),l=i.n(a),c=i(75966),d=i.n(c),u=i(83207),h=i.n(u),p=i(99293),f=i.n(p),m=i(99219),g=i.n(m),v=i(63674),b=i.n(v),y=i(4133),w=i.n(y),_=i(94454),k=i(53835),C=i(6441),S=i(12153),x=i(31974),I=i(72573);S.Icon.set("ai-assistant-pro",l()).set("ai-commands-pro",d()).set("ai-add-context",s()).set("send",g()).set("microphone",f()).set("tool-bolt",w()).set("chevron-right",h()).set("shield",b()),C.Config.prototype.aiAssistantPro={displayMode:"right",panelWidth:400,panelHeight:500,flightPanelHeight:250,dialogFullSize:!1,resizable:!0,apiMode:"incremental",apiRequest:null,maxRetries:3,requestTimeout:3e5,retryDelay:1e3,maxRecursionToolCallDepth:1e3,enabledTools:(0,k.getToolNames)(),customTools:[],toolPermissions:{},autoApproveTools:["readDocument","readBlocks","readSelection","insertHTML","addHTML"],alwaysDenyTools:[],defaultPermissionScope:"conversation",storage:"indexedDB",maxConversations:50,storageKey:"jodit-ai-assistant-pro",showConversationList:!0,enableMarkdown:!0,enableCodeHighlight:!0,maxMessageHeight:400,placeholderText:"Ask AI assistant...",sendShortcut:"Ctrl+Enter",showTimestamps:!0,formatTimestamp:(e,t)=>{let i=new Date(e),n=new Date().getTime()-i.getTime();return n<6e4?t("Just now"):n<36e5?t("%dm ago",Math.floor(n/6e4)):n<864e5?t("%dh ago",Math.floor(n/36e5)):i.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},formatMessageContent:(e,t)=>I.marked.parse(e,{breaks:!0,gfm:!0}),showAvatars:!0,showTypingIndicator:!0,includeSelectionByDefault:!0,maxContextRanges:5,showContextPreview:!0,sendOnEnter:!0,instructions:void 0,includeEditorMetadata:!1,autoOpen:!0,rememberLastConversation:!0,autoFocusInput:!0,voiceInputEnabled:!1,closeAfterInsert:!1,enableSoundNotifications:!1,debug:!1,textAutocompleteEnabled:!1,textAutocompleteApiRequest:null,textAutocompleteMinQueryLength:3,textAutocompleteMaxSuggestions:3,textAutocompleteDebounceMs:500,textAutocompleteCacheTTL:3e4,textAutocompleteCacheMaxSize:50,quickCommandsSilentMode:!1,quickCommandsDisplayMode:"flight",showCopyMessageAction:!0,showRestartMessageAction:!0,showEditMessageAction:!0,showDeleteMessageAction:!0,dialogSettings:{},allowEditDialogSettings:!1,allowEditDisplayMode:!0,allowEditPanelWidth:!0,initiallyOpened:!1,allowClose:!0,persistOpenState:!0,theme:"parent",allowEditTheme:!0,async uploadBase64Artifact(e,t){if("image"===e.type&&e.data&&"base64"===e.data.kind)try{let i=(0,o.base64ToFile)(e.data.base64,e.id,e.mimeType),n=await t.uploader.upload([i]);return{...e,data:{kind:"url",url:n.baseurl+n.files[0]},metadata:{...e.metadata,filename:n.files[0]}}}catch(e){t.e.fire("error",e)}return e},getAIProviderOptions(e,t){return(0,_.getAIProviderOptions)(e,t)},registerAIProvider(e,t){(0,_.registerAIProvider)(e,t)}},C.Config.prototype.controls.aiAssistantPro={icon:"ai-assistant-pro",tooltip:"AI Assistant",hotkeys:["ctrl+shift+a","cmd+shift+a"],exec(e){e.e.fire("openAIAssistantPro.ai-assistant-pro")},isDisabled(e){return!e.o.aiAssistantPro.apiRequest},getLabel(e){return e.o.aiAssistantPro.apiRequest?"AI Assistant":"AI Assistant (not configured)"}},C.Config.prototype.controls.aiAddContext={icon:"ai-add-context",tooltip:"Add to AI Context",exec(e){e.e.fire("addContextToAIAssistant")},isDisabled(e){return!e.o.aiAssistantPro.apiRequest||e.s.isCollapsed()}},C.Config.prototype.controls.aiCommandsPro={icon:"ai-commands-pro",tooltip:"AI Commands",isDisabled(e){return!e.o.aiAssistantPro.apiRequest},list:x.aiAssitentCommands,exec(e,t,{control:i}){e.e.fire("executeQuickCommand.ai-assistant-pro",i.name)}};let E=(null==(n=C.Config.prototype.tuneBlock)?void 0:n.popup)||{},T={};["p","h1","h2","h3","h4","h5","h6","div","section","article","pre","blockquote","ul","ol","li","table","tr","td","th","img","figure"].forEach(e=>{let t=E[e]||["tune.up","tune.remove","tune.down"];T[e]=[...t,"|","aiAddContext"]}),C.Config.prototype.tuneBlock&&(C.Config.prototype.tuneBlock.popup={...E,...T})},6689:function(e,t,i){"use strict";i.d(t,{throwIfAborted:function(){return o}});var n=i(93661);function o(e){if(e.aborted)throw(0,n.abort)()}},61872:function(e,t,i){"use strict";i.d(t,{processArtifacts:function(){return s},processFinalResponse:function(){return r},processStreamingResponse:function(){return o}});var n=i(61558);async function o(e,t,i){let o=(0,n.createAIMessage)(),r=-1;for await(let s of t.stream){switch(s.type){case"created":o={...o,id:s.response.responseId,content:""},r=i.messages.length;break;case"text-delta":o={...o,content:o.content+s.delta};break;case"completed":o={...o,id:s.response.responseId,toolCalls:s.response.toolCalls||[],artifacts:s.response.artifacts||[]};break;case"error":{let e=(0,n.createErrorMessage)(s.error);o={...o,id:e.id,content:e.content}}}if(o.id){let t=i.messages.slice();t[r>=0?r:i.messages.length]=o,i={...i,messages:t,updated:Date.now()},e.setCurrentConversation(i)}}return{aiMessage:o,index:r,conversation:i}}function r(e,t){let i={...(0,n.createAIMessage)(),id:e.response.responseId,content:e.response.content,toolCalls:e.response.toolCalls||[],artifacts:e.response.artifacts||[]},o=t.messages.slice();return o.push(i),{aiMessage:i,index:(t={...t,messages:o,updated:Date.now()}).messages.length-1,conversation:t}}async function s(e,t,i,o){if(t.artifacts&&t.artifacts.length>0){let r=i.messages.slice();return r[o]={...r[o],artifacts:await (0,n.uploadArtifacts)(e,t.artifacts)},{...i,messages:r,updated:Date.now()}}return i}},49459:function(e,t,i){"use strict";function n(e,t,i={}){let o=e[t];if("string"!=typeof o||!i.allowEmpty&&""===o)throw Error(`Parameter "${t}" is required and must be a${i.allowEmpty?"":" non-empty"} string`);return o}i.d(t,{requireString:function(){return n}})},44526:function(e,t,i){"use strict";i.d(t,{resolveBlock:function(){return o}});var n=i(22732);function o(e,{selector:t,index:i,requireExactlyOne:r=!1}={}){let s=null!=t&&""!==t.trim(),a=null!=i;if(r&&s===a)throw Error("Either index or selector must be provided, but not both");if(!s&&!a)throw Error("Block identifier is required");if(s){if("string"!=typeof t)throw Error("Selector must be a string");let i=e.editor.querySelector(t);if(!i)throw Error(`No element found matching selector "${t}"`);if(!n.Dom.isElement(i))throw Error(`Selector "${t}" does not point to an element node`);return{element:i,identifier:`with selector "${t}"`}}if("number"!=typeof i)throw Error("Block index must be a number");let l=Array.from(e.editor.children);if(i<0||i>=l.length)throw Error(`Block index ${i} is out of range. Document has ${l.length} blocks`);let c=l[i];if(!n.Dom.isElement(c))throw Error(`Block at index ${i} is not a valid element`);return{element:c,identifier:`at index ${i}`}}},70308:function(e,t,i){"use strict";i.d(t,{areAllToolCallsExecuted:function(){return l},createNewConversation:function(){return o},findMessagesWithPendingToolCalls:function(){return c},findParentMessageId:function(){return r},isTerminalToolCallStatus:function(){return a}});var n=i(21064);function o(e,t,i,r=[]){let s=e.o.aiAssistantPro,a={id:(0,n.generateConversationId)(),created:Date.now(),updated:Date.now(),messages:r,permissions:[],options:{model:null!=t?t:s.defaultModel,temperature:null!=i?i:s.defaultTemperature}};return e.e.fire("conversationCreated.ai-assistant-pro",a),a}function r(e){for(let t=e.messages.length-1;t>=0;t--){let i=e.messages[t];if("assistant"===i.role&&!i.id.startsWith("error_"))return i.id}return null}let s=new Set(["executed","denied","error"]);function a(e){return s.has(e)}function l(e){let t=e.messages[e.messages.length-1];return!!(null==t?void 0:t.toolCalls)&&t.toolCalls.every(e=>a(e.status))}function c(e){return e.messages.filter(e=>e.toolCalls&&e.toolCalls.length>0&&e.toolCalls.some(e=>!a(e.status)))}},473:function(e,t,i){"use strict";i.d(t,{handleBackToList:function(){return l},handleConversationSearch:function(){return c},handleConversationSelect:function(){return a},handleToolApproval:function(){return r},handleToolDenial:function(){return s}});var n=i(79078),o=i(82758);async function r(e,t,i,n,o){let r=i.getPendingToolCalls().find(t=>t.id===e);if(!r)return null;let s=n.grantPermission(r.name,t),a=i.getCurrentConversation();return a&&(a.permissions.push(s),await o.save(a)),i.removePendingToolCall(e),{...r,status:"approved"}}async function s(e,t,i,o){let r=i.getPendingToolCalls().find(e=>e.id===t);if(!r)return;let s=i.getCurrentConversation();if(!s)return;let a=s.messages.findIndex(e=>{var i;return null==(i=e.toolCalls)?void 0:i.find(e=>e.id===t)});if(-1===a)return;let l=s.messages[a],c={...r,result:{error:"Tool call denied by user."},status:"denied"},d=(0,n.updateToolCallInMessage)(l,c),u=[...s.messages];u[a]=d,s={...s,messages:u,updated:Date.now()},i.setCurrentConversation(s),await o.save(s),e.e.fire("toolCallDenied.ai-assistant-pro",r),i.removePendingToolCall(t)}async function a(e,t,i){try{i.setLoading(!0);let n=await t.get(e);if(!n)throw Error("Conversation not found: "+e);i.setCurrentConversation({...n})}catch(e){o.IS_PROD}finally{i.setLoading(!1)}}async function l(e,t){t.setView("conversationList");try{t.setLoading(!0);let i=await e.list().catch(()=>[]);t.setConversations(i)}finally{t.setLoading(!1)}}async function c(e,t,i){i.setLoading(!0);try{let n=await t.list(e||void 0);i.setConversations(n),i.setView("conversationList")}finally{i.setLoading(!1)}}},58579:function(e,t,i){"use strict";i.d(t,{applyTheme:function(){return d.applyTheme},areAllToolCallsExecuted:function(){return o.areAllToolCallsExecuted},createNewConversation:function(){return o.createNewConversation},createUserMessage:function(){return s.createUserMessage},deleteConversationWithCleanup:function(){return c.deleteConversationWithCleanup},executeToolCall:function(){return u.executeToolCall},findMessagesWithPendingToolCalls:function(){return o.findMessagesWithPendingToolCalls},findParentMessageId:function(){return o.findParentMessageId},getCurrentSelectionContext:function(){return l.getCurrentSelectionContext},handleBackToList:function(){return r.handleBackToList},handleConversationSearch:function(){return r.handleConversationSearch},handleConversationSelect:function(){return r.handleConversationSelect},handleToolApproval:function(){return r.handleToolApproval},handleToolDenial:function(){return r.handleToolDenial},invertMode:function(){return a.invertMode},isTerminalToolCallStatus:function(){return o.isTerminalToolCallStatus},loadInitialData:function(){return c.loadInitialData},processArtifacts:function(){return n.processArtifacts},processFinalResponse:function(){return n.processFinalResponse},processStreamingResponse:function(){return n.processStreamingResponse},resizeInPanelView:function(){return a.resizeInPanelView},updateToolCallInMessage:function(){return u.updateToolCallInMessage}});var n=i(61872),o=i(70308),r=i(473),s=i(61558),a=i(71050),l=i(15927),c=i(56110),d=i(53014),u=i(79078)},61558:function(e,t,i){"use strict";i.d(t,{createAIMessage:function(){return r},createErrorMessage:function(){return s},createUserMessage:function(){return o},uploadArtifacts:function(){return a}});var n=i(21064);function o(e){return{id:(0,n.generateMessageId)(),role:"user",content:e,timestamp:Date.now()}}function r(){return{id:"",role:"assistant",content:"",artifacts:[],timestamp:Date.now(),toolCalls:[]}}function s(e){return{id:"error_"+(0,n.generateMessageId)(),role:"assistant",content:`❌ Error: ${e.message}`,timestamp:Date.now(),toolCalls:[],artifacts:[]}}async function a(e,t){if(!t||0===t.length)return t;let i=e.o.aiAssistantPro.uploadBase64Artifact;return i?Promise.all(t.map(async t=>{var n;return null!=(n=i(t,e))?n:t})):t}},71050:function(e,t,i){"use strict";i.d(t,{invertMode:function(){return o},resizeInPanelView:function(){return r}});var n=i(41180);function o(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top"}}function r(e,t,i,r){var s,a,l,c;if("dialog"===t||"flight"===t)return;("left"===t||"right"===t)&&(null==(l=e.currentPlace.slots[o(t)])||l.style.setProperty(`--jd-slot-${o(t)}-width`,"auto"),null==(c=e.currentPlace.slots[t])||c.style.setProperty(`--jd-slot-${t}-width`,`${i}px`));let d=null!=(s=(0,n.css)(e.currentPlace.workplace,"height"))?s:0;null==(a=e.currentPlace.slots[t])||a.style.setProperty("min-height",`${Math.min(d,r)}px`)}},85696:function(e,t,i){"use strict";function n(e,t){let i=e.createInside.div();return i.innerHTML=t,o(e,i),i}function o(e,t){e.e.fire("safeHTML",t)}i.d(t,{createSanitizedContainer:function(){return n},sanitizeElement:function(){return o}})},15927:function(e,t,i){"use strict";function n(e){if(e.s.isCollapsed())return null;let t=e.s.html,i=e.s.range;return{html:t,rangeInfo:{startContainer:i.startContainer.nodeName,startOffset:i.startOffset,endContainer:i.endContainer.nodeName,endOffset:i.endOffset}}}i.d(t,{getCurrentSelectionContext:function(){return n}})},56110:function(e,t,i){"use strict";i.d(t,{deleteConversationWithCleanup:function(){return o},loadInitialData:function(){return r}});var n=i(82758);async function o(e,t,i,n,o){try{n.setLoading(!0),await i.delete(t),n.removeConversation(t),o.clearConversationPermissions(t);let r=n.getCurrentConversation();(null==r?void 0:r.id)===t&&n.setCurrentConversation(null);let s=await i.list();n.setConversations(s),n.setView(0===s.length?"welcome":"conversationList"),e.e.fire("conversationDeleted.ai-assistant-pro",t)}catch(t){e.alert(e.i18n("Failed to delete conversation")+": "+((null==t?void 0:t.message)||"Unknown error"))}finally{n.setLoading(!1)}}async function r(e,t,i){i.setLoading(!0);try{let[n,r]=await Promise.all([t.list().catch(()=>[]),t.getGlobalSettings().catch(()=>null)]);if(i.setConversations(n),r&&i.setSavedState(r),0===n.length)i.setView("welcome");else if(e.o.aiAssistantPro.rememberLastConversation&&(null==r?void 0:r.currentConversationId)){var o;let e=null!=(o=n.find(e=>e.id===r.currentConversationId))?o:n[0],s=await t.get(e.id);s?i.setCurrentConversation(s):i.setView("conversationList")}else i.setView("conversationList")}catch(e){n.IS_PROD,i.setView("welcome")}finally{i.setLoading(!1)}}},53014:function(e,t,i){"use strict";i.d(t,{applyTheme:function(){return r}});let n=["jodit_theme_dark","jodit-ai-assistant-pro_theme_dark","jodit-dialog_theme_dark"],o=["jodit_theme_light","jodit-ai-assistant-pro_theme_light","jodit-dialog_theme_light"];function r(e,t,i,r,s){let a;if(null==r||r.classList.remove(...n),null==r||r.classList.remove(...o),"dialog"===i){let e=null==s?void 0:s.container;null==e||e.classList.remove(...n),null==e||e.classList.remove(...o)}if(a="dark"===t?n:o,null==r||r.classList.add(...a),"dialog"===i){let e=null==s?void 0:s.container;null==e||e.classList.add(...a)}}},79078:function(e,t,i){"use strict";async function n(e,t,i){let n;try{let e=new AbortController().signal,o=await i.executeTool(t.name,t.arguments,e);n={...t,result:{result:o},status:"executed"}}catch(i){n={...t,result:{error:i instanceof Error?i.message:String(i)},status:"error"},e.e.fire("toolCallFailed.ai-assistant-pro",n)}return e.e.fire("toolCallExecuted.ai-assistant-pro",n,{toolCallId:n.id,result:n.result}),n}function o(e,t){var i,n;let o=null==(n=e.toolCalls)?void 0:n.findIndex(e=>e.id===t.id);if(null==o||-1===o)return e;let r=[...null!=(i=null==e?void 0:e.toolCalls)?i:[]];return r[o]=t,{...e,toolCalls:r}}i.d(t,{executeToolCall:function(){return n},updateToolCallInMessage:function(){return o}})},86449:function(e,t,i){"use strict";i.d(t,{APIClient:function(){return s}});var n=i(82749),o=i(82758),r=i(21537);class s{async sendRequest(e,t,i,n,s){let{apiRequest:a,requestTimeout:l,maxRetries:c}=this.jodit.o.aiAssistantPro;if(!a)throw Error("AI Assistant Pro callback is not configured");let d=new AbortController;this.abortControllers.add(d);try{let u=this.buildRequestContext(e,t,i,n,s),h=null;for(let e=0;c>=e;e++)try{if(d.signal.aborted)throw(0,r.abort)();let e=setTimeout(()=>{d.abort()},l);try{let t=await a(u,d.signal);return clearTimeout(e),this.validateResponse(t),t}catch(t){throw clearTimeout(e),t}}catch(t){if(h=t,o.IS_PROD,c>e){let t=this.calculateRetryDelay(e);await this.sleep(t)}else throw t}throw h||Error("API request failed after all retries")}finally{this.abortControllers.delete(d)}}abort(){this.abortControllers.forEach(e=>{e.abort()}),this.abortControllers.clear()}isInProgress(){return this.abortControllers.size>0}buildRequestContext(e,t,i,n,o){let r,{apiMode:s,instructions:a}=this.jodit.o.aiAssistantPro,l={mode:s,conversationId:e,tools:this.toolRegistry.getAllTools(),selectionContexts:n,conversationOptions:o,instructions:a};if("full"===s)r=t;else if(i){let e=t.findIndex(e=>e.id===i);r=-1!==e?t.slice(e+1):t,l={...l,parentMessageId:i}}else r=t;return{...l,messages:this.expandToolMessages(r,t.find(e=>e.id===i))}}expandToolMessages(e,t){let i=[];for(let t of e)i.push(t),this.expandToolResultsMessage(t,i);return t&&this.expandToolResultsMessage(t,i),i}expandToolResultsMessage(e,t){if(e.toolCalls&&e.toolCalls.length>0)for(let n of e.toolCalls){var i;let o=null!=(i=n.result)?i:{error:"result not found"};if(t.find(e=>e.id===`${n.id}-result`))continue;let r={id:`${n.id}-result`,role:"tool",content:o.error?`Error: ${o.error}`:JSON.stringify(o.result),timestamp:e.timestamp,toolResults:[{toolCallId:n.id,result:o}]};t.push(r)}}validateResponse(e){if("final"!==e.mode)return;let t=e.response;if(!t)throw Error("API returned empty response");if(!t.responseId)throw Error("API response missing responseId");if(void 0===t.content)throw Error("API response missing content");if(void 0===t.finished)throw Error("API response missing finished flag");if(t.toolCalls){if(!Array.isArray(t.toolCalls))throw Error("API response toolCalls must be an array");t.toolCalls.forEach((e,t)=>{if(!e.id)throw Error(`Tool call at index ${t} is missing id`);if(!e.name)throw Error(`Tool call at index ${t} is missing name`);if(!e.arguments||"object"!=typeof e.arguments)throw Error(`Tool call at index ${t} has invalid arguments`)})}}calculateRetryDelay(e){let{retryDelay:t}=this.jodit.o.aiAssistantPro;return t*Math.pow(2,e)+Math.random()*t}sleep(e){return new Promise(t=>setTimeout(t,e))}destruct(){this.abort()}constructor(e,t){(0,n._)(this,"jodit",void 0),(0,n._)(this,"toolRegistry",void 0),(0,n._)(this,"abortControllers",void 0),this.jodit=e,this.toolRegistry=t,this.abortControllers=new Set}}},47373:function(e,t,i){"use strict";function n(e,t,i="image/png"){let o=atob(e),r=o.length,s=new Uint8Array(r);for(let e=0;r>e;e++)s[e]=o.charCodeAt(e);return new File([new Blob([s],{type:i})],t,{type:i})}i.d(t,{base64ToFile:function(){return n}})},21020:function(e,t,i){"use strict";i.d(t,{PermissionManager:function(){return o}});var n=i(82749);class o{requiresPermission(e){let{autoApproveTools:t,alwaysDenyTools:i}=this.jodit.o.aiAssistantPro;if(i.includes(e))return!0;if(t.includes(e))return!1;let n=this.toolRegistry.getTool(e);return!n||n.requiresPermission}isAutoDenied(e){let{alwaysDenyTools:t}=this.jodit.o.aiAssistantPro;return t.includes(e)}isAutoApproved(e){let{autoApproveTools:t}=this.jodit.o.aiAssistantPro;return t.includes(e)}checkPermission(e,t){if(this.isAutoApproved(e))return{toolName:e,granted:!0,grantedAt:Date.now(),scope:"once"};if(this.isAutoDenied(e))return null;let i=this.permanentPermissions.get(e);return i&&i.granted?i:t.find(t=>t.toolName===e&&t.granted)||null}grantPermission(e,t){let i={toolName:e,granted:!0,grantedAt:Date.now(),scope:t};return"forever"===t&&(this.permanentPermissions.set(e,i),this.savePermanentPermissions()),i}denyPermission(e){return{toolName:e,granted:!1,grantedAt:Date.now(),scope:"once"}}filterToolCalls(e,t){let i=[],n=[],o=[];for(let r of e){if(this.isAutoDenied(r.name)){o.push({...r,status:"denied"});continue}if(this.isAutoApproved(r.name)){i.push({...r,status:"approved"});continue}let e=this.checkPermission(r.name,t);e&&e.granted?i.push({...r,status:"approved"}):this.requiresPermission(r.name)?(this.jodit.e.fire("permissionRequested.ai-assistant-pro",r.name),n.push({...r,status:"pending"})):i.push({...r,status:"approved"})}return{approved:i,needsPermission:n,denied:o}}clearConversationPermissions(e){}loadPermanentPermissions(){try{let e=localStorage.getItem(this.PERMANENT_PERMISSIONS_KEY);e&&JSON.parse(e).forEach(e=>{"forever"===e.scope&&e.granted&&this.permanentPermissions.set(e.toolName,e)})}catch(e){}}savePermanentPermissions(){try{let e=Array.from(this.permanentPermissions.values());localStorage.setItem(this.PERMANENT_PERMISSIONS_KEY,JSON.stringify(e))}catch(e){}}clearPermanentPermissions(){this.permanentPermissions.clear(),localStorage.removeItem(this.PERMANENT_PERMISSIONS_KEY)}getPermanentPermissions(){return Array.from(this.permanentPermissions.values())}revokePermanentPermission(e){this.permanentPermissions.delete(e),this.savePermanentPermissions()}destruct(){this.permanentPermissions.clear()}constructor(e,t){(0,n._)(this,"jodit",void 0),(0,n._)(this,"toolRegistry",void 0),(0,n._)(this,"permanentPermissions",void 0),(0,n._)(this,"PERMANENT_PERMISSIONS_KEY",void 0),this.jodit=e,this.toolRegistry=t,this.permanentPermissions=new Map,this.PERMANENT_PERMISSIONS_KEY="jodit-permissions.ai-assistant-pro",this.loadPermanentPermissions()}}},46166:function(e,t,i){"use strict";i.d(t,{StateManager:function(){return o}});var n=i(82749);class o{createInitialState(){return{isOpen:!1,currentView:"welcome",currentConversation:null,conversations:[],isLoading:!1,error:null,pendingToolCalls:[],selectionContexts:[],abortController:null,editingMessageId:null,theme:this.jodit.o.aiAssistantPro.theme||"parent",displayMode:this.jodit.o.aiAssistantPro.displayMode,panelWidth:this.jodit.o.aiAssistantPro.panelWidth,panelHeight:this.jodit.o.aiAssistantPro.panelHeight,defaultModel:this.jodit.o.aiAssistantPro.defaultModel,defaultTemperature:this.jodit.o.aiAssistantPro.defaultTemperature}}open(){this.state.isOpen=!0,this.jodit.e.fire("open.ai-assistant-pro",this.state.currentConversation)}close(){this.state.isOpen=!1,this.jodit.e.fire("close.ai-assistant-pro")}isOpen(){return this.state.isOpen}setView(e){this.state.currentView=e,this.jodit.e.fire("viewChanged.ai-assistant-pro",e)}getView(){return this.state.currentView}setConversations(e){this.state.conversations=e}setSavedState(e){e.theme&&(this.state.theme=e.theme),e.displayMode&&(this.state.displayMode=e.displayMode),e.panelWidth&&(this.state.panelWidth=e.panelWidth),e.panelHeight&&(this.state.panelHeight=e.panelHeight),e.defaultModel&&(this.state.defaultModel=e.defaultModel),e.defaultTemperature&&(this.state.defaultTemperature=e.defaultTemperature)}getConversations(){return this.state.conversations}setCurrentConversation(e){if(this.state.currentConversation===e)throw Error("Conversation is already current");this.state.currentConversation=e||null,e&&(this.setView("conversation"),this.jodit.e.fire("conversationSwitched.ai-assistant-pro",e))}getCurrentConversation(){return this.state.currentConversation}removeConversation(e){let t=this.state.conversations.filter(t=>t.id!==e);this.setConversations(t)}setLoading(e){this.state.isLoading=e}isLoading(){return this.state.isLoading}setError(e){this.state.error=e,e&&this.jodit.e.fire("error.ai-assistant-pro",Error(e))}getError(){return this.state.error}clearError(){this.setError(null)}setPendingToolCalls(e){this.state.pendingToolCalls=e}getPendingToolCalls(){return this.state.pendingToolCalls}addPendingToolCall(e){let t=[...this.state.pendingToolCalls,e];this.setPendingToolCalls(t)}removePendingToolCall(e){let t=this.state.pendingToolCalls.filter(t=>t.id!==e);this.setPendingToolCalls(t)}updateToolCallStatus(e,t){let i=this.state.pendingToolCalls.map(i=>i.id===e?{...i,status:t}:i);this.setPendingToolCalls(i)}setSelectionContexts(e){this.state.selectionContexts=e}getSelectionContexts(){return this.state.selectionContexts}addSelectionContext(e){let{maxContextRanges:t}=this.jodit.o.aiAssistantPro,i=[...this.state.selectionContexts,e];i.length>t&&(i=i.slice(-t)),this.setSelectionContexts(i),this.jodit.e.fire("contextAdded.ai-assistant-pro",e)}removeSelectionContext(e){let t=this.state.selectionContexts.filter((t,i)=>i!==e);this.setSelectionContexts(t),this.jodit.e.fire("contextRemoved.ai-assistant-pro",e)}clearSelectionContexts(){this.setSelectionContexts([])}setAbortController(e){this.state.abortController=e}getAbortController(){return this.state.abortController}setEditingMessageId(e){this.state.editingMessageId=e}getEditingMessageId(){return this.state.editingMessageId}isEditingMessage(){return null!=this.state.editingMessageId}clearEditingMessage(){this.setEditingMessageId(null)}reset(){this.state=this.createInitialState()}destruct(){this.state.abortController&&this.state.abortController.abort(),this.reset()}constructor(e){(0,n._)(this,"jodit",void 0),(0,n._)(this,"state",void 0),this.jodit=e,this.state=this.createInitialState()}}},62895:function(e,t,i){"use strict";i.d(t,{WebStorageConversationStorage:function(){return n.WebStorageConversationStorage},createStorageProvider:function(){return n.createStorageProvider}});var n=i(21064)},21064:function(e,t,i){"use strict";i.d(t,{WebStorageConversationStorage:function(){return r},createStorageProvider:function(){return s},generateConversationId:function(){return a},generateMessageId:function(){return l}});var n=i(82749),o=i(97333);class r{close(){return this.storage.close()}getConversationKey(e){return`conv:${e}`}async getAllKeys(){let e=await this.storage.get("__conversation_index__");return e&&Array.isArray(e)?e:[]}async updateIndex(e){await this.storage.set("__conversation_index__",e)}async addToIndex(e){let t=await this.getAllKeys();t.includes(e)||(t.push(e),await this.updateIndex(t))}async removeFromIndex(e){let t=(await this.getAllKeys()).filter(t=>t!==e);await this.updateIndex(t)}async list(e){try{let n=await this.getAllKeys(),o=[],r=null==e?void 0:e.toLowerCase().trim();for(let e of n){var t,i;let n=await this.get(e);if(n){if(r){let e=null==(i=n.title)?void 0:i.toLowerCase().includes(r),t=!e&&n.messages.some(e=>e.content.toLowerCase().includes(r));if(!e&&!t)continue}o.push({id:n.id,title:null!=(t=n.title)?t:"",created:n.created,updated:n.updated,messageCount:n.messages.length})}}return o.sort((e,t)=>t.updated-e.updated),o}catch(e){return[]}}async get(e){try{let t=this.getConversationKey(e);return await this.storage.get(t)||null}catch(e){return null}}async save(e){try{if(0===e.messages.length)throw Error("Conversation must have at least one message.");let t=await this.getAllKeys();t.length>=this.maxConversations&&!t.includes(e.id)&&await this.evictOldest();let i=this.getConversationKey(e.id);await this.storage.set(i,e),await this.addToIndex(e.id)}catch(t){if((null==t?void 0:t.name)==="QuotaExceededError"||(null==t?void 0:t.code)===22||(null==t?void 0:t.code)===1014){await this.evictOldest();try{let t=this.getConversationKey(e.id);await this.storage.set(t,e),await this.addToIndex(e.id)}catch(e){throw Error("Storage quota exceeded. Please delete some conversations.")}}else throw Error(`Failed to save conversation: ${(null==t?void 0:t.message)||"Unknown error"}`)}}async delete(e){try{let t=this.getConversationKey(e);await this.storage.delete(t),await this.removeFromIndex(e)}catch(e){}}async clear(){try{for(let e of(await this.getAllKeys())){let t=this.getConversationKey(e);await this.storage.delete(t)}await this.updateIndex([])}catch(e){}}async evictOldest(){try{let e=await this.list();if(0===e.length)return;e.sort((e,t)=>e.updated-t.updated);let t=e[0];await this.delete(t.id)}catch(e){}}async getGlobalSettings(){try{return await this.storage.get("global-settings")||null}catch(e){return null}}async saveGlobalSettings(e){try{let t={...await this.getGlobalSettings(),...e};await this.storage.set("global-settings",t)}catch(e){throw Error("Failed to save global settings")}}constructor(e,t){(0,n._)(this,"storage",void 0),(0,n._)(this,"maxConversations",void 0),this.storage=e,this.maxConversations=t}}function s(e,t){return o.AsyncStorage.makeStorage(e,t)}function a(){return`conv_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function l(){return`msg_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}},55487:function(e,t,i){"use strict";i.d(t,{ToolRegistry:function(){return r}});var n=i(82749),o=i(53835);class r{registerBuiltInTools(e){e.forEach(e=>{let t=o.BUILT_IN_TOOLS[e];t&&this.tools.set(e,t)})}registerCustomTools(e){e.forEach(e=>{this.validateToolDefinition(e),this.tools.set(e.name,e)})}validateToolDefinition(e){if(!e.name||"string"!=typeof e.name)throw Error("Tool must have a valid name");if(!e.description||"string"!=typeof e.description)throw Error(`Tool "${e.name}" must have a description`);if(!Array.isArray(e.parameters))throw Error(`Tool "${e.name}" must have a parameters array`);if("function"!=typeof e.execute)throw Error(`Tool "${e.name}" must have an execute function`);e.parameters.forEach(t=>{if(!t.name||"string"!=typeof t.name)throw Error(`Tool "${e.name}" has a parameter without a valid name`);if(!t.type)throw Error(`Tool "${e.name}" parameter "${t.name}" must have a type`);if("boolean"!=typeof t.required)throw Error(`Tool "${e.name}" parameter "${t.name}" must specify if it's required`)})}getAllTools(){return Array.from(this.tools.values())}getTool(e){return this.tools.get(e)}hasTool(e){return this.tools.has(e)}getToolNames(){return Array.from(this.tools.keys())}async executeTool(e,t,i){let n=this.getTool(e);if(!n)throw Error(`Tool "${e}" not found`);let o=this.applyDefaults(n,t);this.validateArguments(n,o);try{return await n.execute(this.jodit,o,i)}catch(e){if((null==e?void 0:e.name)==="AbortError"||i.aborted)throw Error("Tool execution was aborted");throw e}}validateArguments(e,t){let i=Object.keys(t);for(let t of e.parameters.filter(e=>e.required).map(e=>e.name))if(!i.includes(t))throw Error(`Tool "${e.name}" requires parameter "${t}"`);for(let[i,n]of Object.entries(t)){let t=e.parameters.find(e=>e.name===i);if(!t){this.jodit.o.aiAssistantPro.debug;continue}let o=Array.isArray(n)?"array":"object"==typeof n&&null!=n?"object":typeof n;if(t.type!==o&&!("number"===t.type&&"string"===o&&!isNaN(Number(n))))throw Error(`Tool "${e.name}" parameter "${i}" expects type "${t.type}" but got "${o}"`);if(t.enum&&t.enum.length>0&&!t.enum.includes(n))throw Error(`Tool "${e.name}" parameter "${i}" must be one of: ${t.enum.join(", ")}`)}}applyDefaults(e,t){let i={...t};for(let t of e.parameters)void 0===i[t.name]&&void 0!==t.default&&(i[t.name]=t.default);return i}destruct(){this.tools.clear()}constructor(e){(0,n._)(this,"jodit",void 0),(0,n._)(this,"tools",void 0),this.jodit=e,this.tools=new Map,this.registerBuiltInTools(e.o.aiAssistantPro.enabledTools||[]),this.registerCustomTools(e.o.aiAssistantPro.customTools||[])}}},26612:function(e){e.exports={"AI Assistant":"AI Assistant","AI Assistant Pro":"AI Assistant Pro","Welcome to AI Assistant":"Welcome to AI Assistant","Start your first conversation":"Start your first conversation","Tip: Select text in editor to add context":"Tip: Select text in editor to add context","New Chat":"New Chat","Search conversations...":"Search conversations...","No conversations yet":"No conversations yet","Ask me anything...":"Ask me anything...","Ask a follow-up...":"Ask a follow-up...","Reply...":"Reply...","Type your message...":"Type your message...",Send:"Send",Cancel:"Cancel",Retry:"Retry",Insert:"Insert",Copy:"Copy",Edit:"Edit",Delete:"Delete",New:"New",Back:"Back","Permission Required":"Permission Required",Approve:"Approve",Deny:"Deny",Once:"Once","This conversation":"This conversation",Always:"Always","The AI wants to execute:":"The AI wants to execute:","This will modify your document content.":"This will modify your document content.","Executing...":"Executing...","Completed successfully":"Completed successfully",Failed:"Failed","Pending approval":"Pending approval","Denied by user":"Denied by user","Tool Result":"Tool Result","Tool Execution Error":"Tool Execution Error",Context:"Context",Contexts:"Contexts","Add to AI Context":"Add to AI Context",Remove:"Remove","Clear all":"Clear all","An error occurred":"An error occurred","Request failed":"Request failed","Connection error":"Connection error","AI Assistant is not configured":"AI Assistant is not configured","Thinking...":"Thinking...","Generating response...":"Generating response...",insertHTML:"Insert HTML",readDocument:"Read Document",readBlock:"Read Block",replaceInDocument:"Replace in Document",replaceInBlock:"Replace in Block",getSelection:"Get Selection","Just now":"Just now",Conversation:"Conversation","New Conversation":"New Conversation",Yesterday:"Yesterday","Delete conversation":"Delete conversation","Are you sure you want to delete this conversation?":"Are you sure you want to delete this conversation?","Failed to delete conversation":"Failed to delete conversation"}},63805:function(e,t,i){"use strict";i.r(t),i.d(t,{en:function(){return n},ru:function(){return o}});var n=i(26612),o=i(55790)},55790:function(e){e.exports={"AI Assistant":"AI Ассистент","AI Assistant Pro":"AI Ассистент Pro","Welcome to AI Assistant":"Добро пожаловать в AI Ассистент","Start your first conversation":"Начните первый диалог","Tip: Select text in editor to add context":"Подсказка: Выделите текст в редакторе для добавления контекста","New chat":"Новый чат","Search conversations...":"Поиск диалогов...","No conversations yet":"Пока нет диалогов","Ask me anything...":"Спросите меня о чем угодно...","Ask a follow-up...":"Задайте дополнительный вопрос...","Reply...":"Ответить...","Type your message...":"Введите ваше сообщение...",Send:"Отправить",Cancel:"Отмена",Retry:"Повторить",Insert:"Вставить",Copy:"Копировать",Edit:"Редактировать",Delete:"Удалить",New:"Новый",Back:"Назад","Permission Required":"Требуется разрешение",Approve:"Разрешить",Deny:"Отклонить",Once:"Один раз","This conversation":"Этот диалог",Always:"Всегда","The AI wants to execute:":"AI хочет выполнить:","This will modify your document content.":"Это изменит содержимое вашего документа.","Executing...":"Выполняется...","Completed successfully":"Успешно выполнено",Failed:"Ошибка","Pending approval":"Ожидает разрешения","Denied by user":"Отклонено пользователем","Tool Result":"Результат инструмента","Tool Execution Error":"Ошибка выполнения инструмента",Context:"Контекст",Contexts:"Контексты","Add to AI Context":"Добавить в контекст AI",Remove:"Удалить","Clear all":"Очистить все","An error occurred":"Произошла ошибка","Request failed":"Запрос не выполнен","Connection error":"Ошибка соединения","AI Assistant is not configured":"AI Ассистент не настроен","Thinking...":"Думаю...","Generating response...":"Генерирую ответ...",insertHTML:"Вставить HTML",readDocument:"Прочитать документ",readBlock:"Прочитать блок",replaceInDocument:"Заменить в документе",replaceInBlock:"Заменить в блоке",getSelection:"Получить выделение","Just now":"Только что",Conversation:"Диалог","New Conversation":"Новый диалог",Yesterday:"Вчера","Delete conversation":"Удалить диалог","Are you sure you want to delete this conversation?":"Вы уверены, что хотите удалить этот диалог?","Failed to delete conversation":"Не удалось удалить диалог",Settings:"Настройки","General Settings":"Общие настройки","Conversation Settings":"Настройки диалога","Display Mode":"Режим отображения","Panel Width":"Ширина панели",Theme:"Тема",Model:"Модель",Temperature:"Температура",Close:"Закрыть",Dialog:"Модальное окно",Left:"Левая панель",Right:"Правая панель",Top:"Верхняя панель",Bottom:"Нижняя панель",Inherit:"Наследовать от редактора",Light:"Светлая тема",Dark:"Тёмная тема","%dm ago":"%dм назад","%dh ago":"%dч назад"}},94454:function(e,t,i){"use strict";i.d(t,{getAIProviderOptions:function(){return n.getAIProviderOptions},registerAIProvider:function(){return n.registerAIProvider}}),i(82923);var n=i(58211)},82923:function(e,t,i){"use strict";var n=i(58211),o=i(54079);(0,n.registerAIProvider)("jodit-ai-adapter",e=>{var t;let i=e.url.replace(/\/+$/,""),n=null!=(t=e.provider)?t:"openai",r=!1!==e.stream;return{apiMode:"incremental",maxRetries:0,voiceInputEnabled:!0,voiceInputUrl:`${i.replace(/^http/,"ws")}/v1/ai/transcribe`,voiceInputApiKey:e.apiKey,textAutocompleteEnabled:!0,textAutocompleteApiRequest:async(t,r,s)=>{var a;let l=new o.Ajax({url:`${i}/ai/autocomplete?query=${encodeURIComponent(t)}&key=${encodeURIComponent(e.apiKey)}`,method:"POST",contentType:"application/json",data:{provider:n,context:{maxSuggestions:r}}});s.addEventListener("abort",()=>l.abort(),{once:!0});let c=await l.send(),d=await c.json();return d.success&&(null==(a=d.result)?void 0:a.suggestions)?d.result.suggestions:[]},apiRequest:async(t,s)=>{let a=new o.Ajax({url:`${i}/ai/request?key=${encodeURIComponent(e.apiKey)}`,method:"POST",contentType:"application/json",data:{provider:n,context:r?{...t,metadata:{...t.metadata,stream:!0}}:t}});if(s&&s.addEventListener("abort",()=>a.abort(),{once:!0}),!r){let e=await a.send();return{mode:"final",response:(await e.json()).result}}let l=a.stream();return{mode:"stream",stream:async function*(){for await(let e of l)yield JSON.parse(e)}()}}}})},58211:function(e,t,i){"use strict";i.d(t,{getAIProviderOptions:function(){return o},registerAIProvider:function(){return r}});let n=new Map;function o(e,t){let i=n.get(e);if(!i)throw Error(`AI provider "${e}" is not registered. Available providers: ${[...n.keys()].join(", ")}`);return i(t)}function r(e,t){n.set(e,t)}},65374:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Add HTML content to the beginning or end of the document","name",0,"addHTML","parameters",0,[{name:"html",type:"string",description:"HTML content to add",required:!0},{name:"position",type:"string",description:'Where to add: "start" adds at the beginning of the document, "end" appends to the end',required:!1,default:"end"}],"requiresPermission",0,!0])},686:function(e,t,i){"use strict";i.d(t,{execute:function(){return a}});var n=i(6689),o=i(49459),r=i(85696),s=i(22732);async function a(e,t,i){let a=(0,o.requireString)(t,"html",{allowEmpty:!0}),{position:l="end"}=t;if(!a.trim())return{success:!0,message:"Nothing to add: HTML is empty"};(0,n.throwIfAborted)(i);try{let t=e.createInside.fragment(),i=(0,r.createSanitizedContainer)(e,a);for(;i.firstChild;)t.appendChild(i.firstChild);return"start"===l?s.Dom.prepend(e.editor,t):s.Dom.append(e.editor,t),e.synchronizeValues(),{success:!0,message:`Added ${a.length} characters of HTML at the ${"start"===l?"beginning":"end"} of the document`}}catch(e){throw Error(`Failed to add HTML: ${(null==e?void 0:e.message)||"Unknown error"}`)}}},78907:function(e,t,i){"use strict";var n=i(65374),o=i(686);t.default={...n,execute:o.execute}},73943:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block","name",0,"applyFormat","parameters",0,[{name:"element",type:"string",description:'HTML element to wrap selection (e.g., "strong", "em", "u", "span")',required:!1},{name:"attributes",type:"object",description:'Attributes to apply (e.g., {"className": "highlight"}, {"style": {"color": "red"}})',required:!1},{name:"remove",type:"boolean",description:"If true, remove the formatting instead of applying it",required:!1,default:!1},{name:"blockIndex",type:"number",description:"Zero-based index of the block to format (if not using current selection)",required:!1},{name:"selector",type:"string",description:"CSS selector to find the block to format (if not using current selection)",required:!1}],"requiresPermission",0,!0])},19127:function(e,t,i){"use strict";i.d(t,{execute:function(){return r}});var n=i(6689),o=i(44526);async function r(e,t,i){let{element:r,attributes:s,remove:a,blockIndex:l,selector:c}=t;if((0,n.throwIfAborted)(i),!r&&!s)throw Error('Either "element" or "attributes" must be provided');if(e.s.restore(),void 0!==l||c){let{element:t}=(0,o.resolveBlock)(e,{selector:c,index:l});e.s.select(t)}if(e.s.isCollapsed())throw Error("No selection found. Please select text to format");try{let t={};return r&&(t.element=r),s&&(t.attributes=s),a?e.s.commitStyle({...t,mode:"remove"}):e.s.commitStyle(t),e.synchronizeValues(),{success:!0,message:a?"Formatting removed successfully":"Formatting applied successfully"}}catch(e){throw Error(`Failed to ${a?"remove":"apply"} formatting: ${e.message}`)}}},39296:function(e,t,i){"use strict";var n=i(73943),o=i(19127);t.default={...n,execute:o.execute}},53835:function(e,t,i){"use strict";i.d(t,{getToolNames:function(){return f}});var n=i(78907),o=i(39296),r=i(16745),s=i(78717),a=i(5618),l=i(90991),c=i(2020),d=i(12570),u=i(95323),h=i(97603);let p={readDocument:a.default,readBlocks:s.default,readSelection:l.default,writeDocument:h.default,replaceSelection:u.default,replaceBlock:c.default,replaceInDocument:d.default,insertHTML:r.default,addHTML:n.default,applyFormat:o.default};function f(){return Object.keys(p)}i.d(t,["BUILT_IN_TOOLS",0,p])},56732:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Insert or replace HTML content at the current cursor position in the editor","name",0,"insertHTML","parameters",0,[{name:"html",type:"string",description:"HTML content to insert",required:!0},{name:"replace",type:"boolean",description:"If true, replaces current selection. If false, inserts at cursor",required:!1,default:!1}],"requiresPermission",0,!0])},39592:function(e,t,i){"use strict";i.d(t,{execute:function(){return r}});var n=i(6689),o=i(49459);async function r(e,t,i){let r=(0,o.requireString)(t,"html",{allowEmpty:!0}),{replace:s}=t;if(!r.trim())return{success:!0,message:"Nothing to insert: HTML is empty"};(0,n.throwIfAborted)(i);try{return e.s.focus(),s&&!e.s.isCollapsed()&&e.s.remove(),e.s.insertHTML(r),e.synchronizeValues(),{success:!0,message:`Inserted ${r.length} characters of HTML`}}catch(e){throw Error(`Failed to insert HTML: ${(null==e?void 0:e.message)||"Unknown error"}`)}}},16745:function(e,t,i){"use strict";var n=i(56732),o=i(39592);t.default={...n,execute:o.execute}},75352:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Read blocks from the editor with optional filtering and pagination","name",0,"readBlocks","parameters",0,[{name:"offset",type:"number",description:"Number of blocks to skip from the beginning (default: 0)",required:!1,default:0},{name:"limit",type:"number",description:"Maximum number of blocks to return (default: all)",required:!1},{name:"query",type:"string",description:"Filter blocks by text content",required:!1}],"requiresPermission",0,!1])},91140:function(e,t,i){"use strict";i.d(t,{execute:function(){return r}});var n=i(6689),o=i(22732);async function r(e,t,i){let{offset:r,limit:s,query:a}=t;(0,n.throwIfAborted)(i);let l=[];Array.from(e.editor.children).forEach((e,t)=>{o.Dom.isElement(e)&&l.push({blockIndex:t,tagName:e.tagName.toLowerCase(),content:e.innerHTML,textContent:e.textContent||"",classList:Array.from(e.classList)})});let c=l;if(a&&"string"==typeof a){let e=a.toLowerCase();c=l.filter(t=>t.textContent.toLowerCase().includes(e)||t.tagName.includes(e)||t.content.toLowerCase().includes(e))}let d=Math.max(0,Math.min("number"==typeof r?r:0,c.length)),u=void 0!==s?Math.min(d+s,c.length):c.length;return{blocks:c.slice(d,u),total:l.length,offset:d,limit:void 0!==s?s:void 0}}},78717:function(e,t,i){"use strict";var n=i(75352),o=i(91140);t.default={...n,execute:o.execute}},93809:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Read the entire content of the editor document in HTML format","name",0,"readDocument","parameters",0,[{name:"start",type:"number",description:"Start character position (default: 0)",required:!1,default:0},{name:"end",type:"number",description:"End character position (default: length of document)",required:!1},{name:"aroundSelection",type:"boolean",description:"If true, return only the maximum block around the current selection",required:!1,default:!1}],"requiresPermission",0,!1])},28157:function(e,t,i){"use strict";i.d(t,{execute:function(){return r}});var n=i(6689),o=i(22732);async function r(e,t,i){let{start:r,end:s,aroundSelection:a}=t;(0,n.throwIfAborted)(i);let l=e.value,c=l.length;if(a&&!e.s.isCollapsed()){let t=e.s.range.commonAncestorContainer;for(;t&&t!==e.editor;){if(o.Dom.isElement(t)&&t.parentNode===e.editor){l=t.outerHTML;break}t=t.parentNode}return{html:l,length:c}}let d=void 0!==s?Math.min(s,c):c,u=Math.max(0,Math.min("number"==typeof r?r:0,c));return(u>0||c>d)&&(l=l.substring(u,d)),{html:l,length:c,start:u,end:d}}},5618:function(e,t,i){"use strict";var n=i(93809),o=i(28157);t.default={...n,execute:o.execute}},52826:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Get information about the current selection including HTML content and optional context","name",0,"readSelection","parameters",0,[{name:"contextCharsBefore",type:"number",description:"Number of characters to include before the selection",required:!1,default:0},{name:"contextCharsAfter",type:"number",description:"Number of characters to include after the selection",required:!1,default:0}],"requiresPermission",0,!1])},85130:function(e,t,i){"use strict";i.d(t,{execute:function(){return o}});var n=i(6689);async function o(e,t,i){let{contextCharsBefore:o,contextCharsAfter:r}=t;if((0,n.throwIfAborted)(i),e.s.restore(),e.s.isCollapsed())return{hasSelection:!1};let s=e.s.html,a=e.s.range,l=a.toString(),c={hasSelection:!0,html:s,text:l,startContainer:a.startContainer.nodeName,endContainer:a.endContainer.nodeName};if(o>0||r>0){let t=e.editor.textContent||"",i=t.substring(0,t.indexOf(l)),n=t.substring(t.indexOf(l)+l.length);o>0&&(c.contextBefore=i.slice(-o)),r>0&&(c.contextAfter=n.slice(0,r))}return c}},90991:function(e,t,i){"use strict";var n=i(52826),o=i(85130);t.default={...n,execute:o.execute}},96675:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Replace a specific block in the document by its index or CSS selector with new HTML content","name",0,"replaceBlock","parameters",0,[{name:"index",type:"number",description:"Zero-based index of the block to replace (use either index or selector, not both)",required:!1},{name:"selector",type:"string",description:'CSS selector to find the block to replace (e.g., "h1", ".my-class", "#my-id"). Use either selector or index, not both',required:!1},{name:"html",type:"string",description:"HTML content for the new block",required:!0}],"requiresPermission",0,!0])},3091:function(e,t,i){"use strict";i.d(t,{execute:function(){return l}});var n=i(6689),o=i(49459),r=i(44526),s=i(85696),a=i(22732);async function l(e,t,i){let{index:l,selector:c}=t,d=(0,o.requireString)(t,"html");if((0,n.throwIfAborted)(i),void 0===l&&!c||void 0!==l&&c)throw Error("Either index or selector must be provided, but not both");let{element:u,identifier:h}=(0,r.resolveBlock)(e,{selector:c,index:l,requireExactlyOne:!0});try{var p;let t=(0,s.createSanitizedContainer)(e,d).firstChild;if(!t||!a.Dom.isElement(t))throw Error("Invalid HTML: must contain at least one element");return null==(p=u.parentNode)||p.replaceChild(t,u),e.synchronizeValues(),{success:!0,message:`Block ${h} replaced successfully`}}catch(e){throw Error(`Failed to replace block ${h}: ${e.message}`)}}},2020:function(e,t,i){"use strict";var n=i(96675),o=i(3091);t.default={...n,execute:o.execute}},62553:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Find and replace text or HTML patterns throughout the entire document","name",0,"replaceInDocument","parameters",0,[{name:"search",type:"string",description:"Text or pattern to search for",required:!0},{name:"replace",type:"string",description:"Replacement text or HTML",required:!0},{name:"useRegex",type:"boolean",description:"If true, treats search as a regular expression",required:!1,default:!1},{name:"useSelector",type:"string",description:"CSS selector to narrow down the search scope to specific elements",required:!1}],"requiresPermission",0,!0])},56293:function(e,t,i){"use strict";i.d(t,{execute:function(){return s}});var n=i(6689),o=i(49459),r=i(85696);async function s(e,t,i){let s=(0,o.requireString)(t,"search"),a=(0,o.requireString)(t,"replace",{allowEmpty:!0}),{useRegex:l,useSelector:c}=t;(0,n.throwIfAborted)(i);try{let t;e.s.focus(),e.s.save();let o=0;if(c){let d=function(e,t,i,o,s,a){let l=e.editor.querySelectorAll(s);if(0===l.length)return{replacements:0,message:`No elements found matching selector "${s}"`};let c=0;return l.forEach(s=>{(0,n.throwIfAborted)(a);let l=s.innerHTML,d=l;if(o)try{let e=RegExp(t,"g");l=l.replace(e,()=>(c++,i))}catch(e){throw Error(`Invalid regex pattern: ${(null==e?void 0:e.message)||"Unknown error"}`)}else{let e=t.length,o=0;for(;-1!==(o=l.indexOf(t,o));)(0,n.throwIfAborted)(a),l=l.substring(0,o)+i+l.substring(o+e),o+=i.length,c++}l!==d&&(s.innerHTML=l,(0,r.sanitizeElement)(e,s))}),c>0&&(e.synchronizeValues(),e.s.restore()),{replacements:c}}(e,s,a,l,c,i);o=d.replacements,t=d.message}else o=function(e,t,i,o,r,s){let a=0,l=t;if(r)try{let e=RegExp(i,"g");l=l.replace(e,()=>(a++,o))}catch(e){throw Error(`Invalid regex pattern: ${(null==e?void 0:e.message)||"Unknown error"}`)}else{let e=i.length,t=0;for(;-1!==(t=l.indexOf(i,t));)(0,n.throwIfAborted)(s),l=l.substring(0,t)+o+l.substring(t+e),t+=o.length,a++}return a>0&&(e.value=l,e.s.restore(),e.synchronizeValues()),a}(e,e.value,s,a,l,i);return{replacements:o,message:t||(o>0?`Replaced ${o} occurrence(s)`:"No matches found")}}catch(t){throw e.s.restore(),Error(`Failed to replace in document: ${(null==t?void 0:t.message)||"Unknown error"}`)}}},12570:function(e,t,i){"use strict";var n=i(62553),o=i(56293);t.default={...n,execute:o.execute}},70750:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Replace the current selection with new HTML content","name",0,"replaceSelection","parameters",0,[{name:"html",type:"string",description:"HTML content to insert in place of the selection",required:!0},{name:"collapseToEnd",type:"boolean",description:"Move cursor to the end of the inserted content",required:!1,default:!0}],"requiresPermission",0,!0])},36142:function(e,t,i){"use strict";i.d(t,{execute:function(){return r}});var n=i(6689),o=i(49459);async function r(e,t,i){let r=(0,o.requireString)(t,"html"),{collapseToEnd:s}=t;(0,n.throwIfAborted)(i);try{if(e.s.restore(),e.s.insertHTML(r),s){let t=e.s.range;t.collapse(!1),e.s.selectRange(t)}return e.e.fire("change"),{success:!0,message:"Selection replaced successfully"}}catch(e){throw Error(`Failed to replace selection: ${e.message}`)}}},95323:function(e,t,i){"use strict";var n=i(70750),o=i(36142);t.default={...n,execute:o.execute}},90022:function(e,t,i){"use strict";i.r(t),i.d(t,["description",0,"Write (replace) the entire document content with new HTML","name",0,"writeDocument","parameters",0,[{name:"html",type:"string",description:"HTML content to set as the document",required:!0}],"requiresPermission",0,!0])},79766:function(e,t,i){"use strict";i.d(t,{execute:function(){return r}});var n=i(6689),o=i(49459);async function r(e,t,i){let r=(0,o.requireString)(t,"html",{allowEmpty:!0});(0,n.throwIfAborted)(i);try{return e.s.focus(),e.value=r,e.synchronizeValues(),{success:!0,message:`Document content was replaced with provided HTML(${r.length} characters)`}}catch(e){throw Error(`Failed to replace HTML: ${(null==e?void 0:e.message)||"Unknown error"}`)}}},97603:function(e,t,i){"use strict";var n=i(90022),o=i(79766);t.default={...n,execute:o.execute}},80453:function(e,t,i){"use strict";i.d(t,{UIConversationListItem:function(){return c}});var n=i(82749),o=i(31635),r=i(65478),s=i(67510),a=i(62843),l=i(80870);class c extends s.UIElement{className(){return"UIConversationListItem"}render(){return'<div class="jodit-ui-conversation-list__item"></div>'}setActive(e){this.isActive=e,this.updateContent()}updateContent(){let e=this.container;e.innerHTML="",e.setAttribute("data-id",this.conversation.id),this.isActive?e.classList.add("jodit-ui-conversation-list__item_active"):e.classList.remove("jodit-ui-conversation-list__item_active");let t=this.j.c.div("jodit-ui-conversation-list__item-avatar");t.textContent="AI",e.appendChild(t);let i=this.j.c.div("jodit-ui-conversation-list__item-wrapper"),n=this.j.c.div("jodit-ui-conversation-list__item-content"),o=this.j.c.div("jodit-ui-conversation-list__item-title");if(o.textContent=this.conversation.title,this.titleElement=o,n.appendChild(o),this.opts.showTimestamps){let e=this.j.c.div("jodit-ui-conversation-list__item-meta");e.textContent=this.opts.formatTimestamp(this.conversation.updated,this.j.i18n.bind(this.j)),n.appendChild(e)}if(i.appendChild(n),this.conversation.messageCount>0){let e=this.j.c.div("jodit-ui-conversation-list__item-badge");e.textContent=String(this.conversation.messageCount),i.appendChild(e)}e.appendChild(i),this.actionsButton||(this.actionsButton=new a.UIButton(this.j,{icon:{name:"dots"},tooltip:"Actions",name:"conversationActions",size:"tiny"}),this.actionsButton.container.classList.add("jodit-ui-conversation-list__item-actions"),this.actionsButton.onAction(e=>{e.stopPropagation(),this.showActionsMenu(e)})),e.appendChild(this.actionsButton.container)}onClick(){this.isRenaming||this.j.e.fire("selectConversation.ai-assistant-pro",this.conversation.id)}showActionsMenu(e){if(!this.contextMenu||!this.actionsButton)return;let t=this.actionsButton.container.getBoundingClientRect();this.contextMenu.show(t.left,t.bottom,[{title:"Rename",icon:"pencil",exec:()=>{this.startInlineRename()}},{title:"Delete",icon:"bin",exec:()=>{this.onDelete()}}]),e.stopPropagation()}startInlineRename(){if(this.isRenaming||!this.titleElement)return;this.isRenaming=!0;let e=this.titleElement,t=this.conversation.title,i=this.j.c.element("input");i.type="text",i.value=t,i.className="jodit-ui-conversation-list__item-title-input",e.textContent="",e.appendChild(i),i.focus(),i.select();let n=()=>{if(!this.isRenaming)return;let n=i.value.trim();this.isRenaming=!1,n&&n!==t?(e.textContent=n,this.j.e.fire("renameConversation.ai-assistant-pro",this.conversation.id,n)):e.textContent=t};this.j.e.on(i,"blur",n),this.j.e.on(i,"keydown",n=>{"Enter"===n.key&&(n.preventDefault(),i.blur()),"Escape"===n.key&&(this.isRenaming=!1,e.textContent=t)}),this.j.e.on(i,"click",e=>{e.stopPropagation()})}onDelete(){this.j.e.fire("deleteConversation.ai-assistant-pro",this.conversation.id)}destruct(){var e,t;null==(e=this.actionsButton)||e.destruct(),null==(t=this.contextMenu)||t.destruct(),super.destruct()}constructor(e,t,i=!1,o){super(e),(0,n._)(this,"opts",void 0),(0,n._)(this,"conversation",void 0),(0,n._)(this,"isActive",void 0),(0,n._)(this,"actionsButton",void 0),(0,n._)(this,"contextMenu",void 0),(0,n._)(this,"titleElement",void 0),(0,n._)(this,"isRenaming",void 0),this.opts=o,this.actionsButton=null,this.contextMenu=null,this.titleElement=null,this.isRenaming=!1,this.conversation=t,this.isActive=i,this.contextMenu=new l.ContextMenu(this.j),this.updateContent()}}(0,o.__decorate)([(0,r.watch)("container:click")],c.prototype,"onClick",null),(0,o.__decorate)([r.autobind],c.prototype,"showActionsMenu",null),(0,o.__decorate)([r.autobind],c.prototype,"startInlineRename",null),(0,o.__decorate)([r.autobind],c.prototype,"onDelete",null),c=(0,o.__decorate)([r.component],c)},68365:function(e,t,i){"use strict";i.d(t,{UIConversationList:function(){return d}});var n=i(82749),o=i(31635),r=i(31356),s=i(80453),a=i(65478),l=i(80256),c=i(62405);class d extends c.UIGroup{className(){return"UIConversationList"}render(){return`<div class="&__container">
|
|
257
257
|
<div class="&__header"></div>
|
|
@@ -612,8 +612,8 @@ ${r}`.trim();i?await this.__executeQuickCommandSilent(l,r):await this.__executeQ
|
|
|
612
612
|
<div class='&__list &__target-list'></div>
|
|
613
613
|
</div>`}__onSwap(){let e=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=e,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}constructor(e,t,i){var o,r;super(e),(0,n._)(this,"state",void 0),(0,n._)(this,"options",void 0),(0,n._)(this,"__sourceList",void 0),(0,n._)(this,"__targetList",void 0),this.state=t,this.options=i,this.__sourceList=new a.UITranslateList(e,{list:i.sourceList,active:t.sourceLang,onChange:e=>{this.state.sourceLang=e,this.options.onChange({...this.state})}}),null==(o=this.getElm("source-list"))||o.appendChild(this.__sourceList.container),this.__targetList=new a.UITranslateList(e,{list:i.targetList,active:t.targetLang,onChange:e=>{this.state.targetLang=e,this.options.onChange({...this.state})}}),null==(r=this.getElm("target-list"))||r.appendChild(this.__targetList.container)}}(0,o.__decorate)([(0,r.watch)("arrow-swap:click")],l.prototype,"__onSwap",null),l=(0,o.__decorate)([r.component],l)},8256:function(e,t,i){"use strict";var n=i(6441),o=i(22732),r=i(21537);let s=["tune.up","tune.remove","tune.down"],a=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...s];function l(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive(t,i){var n;return(null==i||null==(n=i.target)?void 0:n.tagName.toLowerCase())===e},exec(t,i){if(i){t.selection.save();let n=o.Dom.replace(i,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",n)}return!0}}}function c(e){let t=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled(e,i){var n;return!(null==i||null==(n=i.target)?void 0:n[t])},exec(i,n){let s=null==n?void 0:n[t];return n&&s&&(i.selection.save(),(0,r.call)(e?o.Dom.before:o.Dom.after,s,n),i.selection.restore()),i.e.fire("synchro"),i.e.fire("afterExecTune.tune"),!0}}}n.Config.prototype.tuneBlock={popup:{p:s,table:s,img:s,blockquote:s,div:s,pre:["tune.editPre",...s],h1:a,h2:a,h3:a,h4:a,h5:a,h6:a}},n.Config.prototype.controls.tune={h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),up:c(!0),down:c(!1),editPre:{icon:"pencil",exec(e,t){e.e.fire("editPreInPasteCode",t)}},remove:{icon:"bin",exec(e,t){o.Dom.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}}},13152:function(e,t,i){"use strict";var n=i(82749),o=i(31635);i(8256);var r=i(40104),s=i(65478),a=i(50911),l=i(2692);class c extends a.Plugin{afterInit(e){this.tuner=new r.UITuner(e)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(e){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(e){this.tuner.destruct()}constructor(...e){super(...e),(0,n._)(this,"tuner",void 0)}}(0,n._)(c,"requires",["license"]),(0,o.__decorate)([(0,s.watch)(":outsideClick :keydown")],c.prototype,"hideTuner",null),(0,o.__decorate)([(0,s.watch)("j.ed:selectionchange"),(0,s.debounce)()],c.prototype,"onChangeSelection",null),(0,o.__decorate)([(0,s.watch)(":click")],c.prototype,"onClickInBlock",null),l.JoditPro.plugins.add("tune-block",c)},40104:function(e,t,i){"use strict";i.d(t,{UITuner:function(){return d}});var n=i(82749),o=i(31635),r=i(65478),s=i(22732),a=i(21537),l=i(67510),c=i(21491);class d extends l.UIElement{className(){return"UITuner"}render(){return`<div>
|
|
614
614
|
<div class='&__handle' title='~Click to tune~'/>
|
|
615
|
-
</div>`}show(){let e=this.j.s.current();if(!e)return this.hide();let t=s.Dom.isBlock(e)?e:s.Dom.closest(e,e=>!!(e&&this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()]),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,s.Dom.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){let e=(0,a.css)(this.j.editor,"marginLeft"),t=(0,a.css)(this.j.editor,"paddingLeft"),i=(0,a.css)(this.j.editor,"marginTop"),n=this.currentBlock.offsetWidth-15+e+t,o=this.currentBlock.offsetTop-this.j.editor.scrollTop+i;(0,a.css)(this.container,{transform:`translate3d(${n}px, ${o}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){let e=this.getElm("handle");(0,a.assert)(null!=e,"Handle element does not exist"),this.popup.open(()=>(0,a.position)(e))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}constructor(...e){super(...e),(0,n._)(this,"isShown",!1),(0,n._)(this,"toolbar",(0,c.makeCollection)(this.j,this)),(0,n._)(this,"popup",new l.Popup(this.j,!1)),(0,n._)(this,"currentBlock",void 0)}}(0,o.__decorate)([(0,r.watch)(":hideTuner.tune")],d.prototype,"hide",null),(0,o.__decorate)([(0,r.watch)("j.editor:scroll"),(0,r.throttle)(10)],d.prototype,"onEditorScroll",null),(0,o.__decorate)([(0,r.watch)(":afterExecTune.tune"),(0,r.idle)()],d.prototype,"onAfterExecTune",null),(0,o.__decorate)([(0,r.watch)("container:click container:mousedown")],d.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("handle:click")],d.prototype,"onTargetClick",null),(0,o.__decorate)([(0,r.watch)(":closeTuner.tune")],d.prototype,"closeToolbar",null),d=(0,o.__decorate)([r.component],d)},18549:function(e,t,i){"use strict";i.d(t,{UIFlightPosition:function(){return r}});var n=i(2748);let o=new WeakMap;class r{static install(e,t,i={}){this.remove(e);let{panelHeight:n=250,containerClassName:r,toolbarSelector:s=".jodit-toolbar__box",gap:a=16}=i,l=e.j.c.div("jodit-flight-position");r&&l.classList.add(r),l.style.setProperty("--flight-panel-height",`${n}px`),l.appendChild(e.container),document.body.appendChild(l);let c={toolbarSelector:s,gap:a},d=()=>{this.updatePosition(l,t,c)},u=new ResizeObserver(d);u.observe(t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),o.set(e,{container:l,anchor:t,onScroll:d,resizeObserver:u,options:c}),this.updatePosition(l,t,c)}static updatePosition(e,t,i){let{toolbarSelector:n,gap:o}=i,r=t.getBoundingClientRect(),s=window.innerHeight,a=e.offsetHeight||250;e.style.left=`${r.left}px`,e.style.width=`${r.width}px`;let l=t.querySelector(n),c=l?l.getBoundingClientRect().bottom:r.top,d=r.bottom-c,u=r.bottom<=s;a<=d?u?(e.style.top="auto",e.style.bottom=`${s-r.bottom+o}px`):(e.style.top="auto",e.style.bottom=`${o}px`):(e.style.bottom="auto",e.style.top=`${c}px`)}static remove(e){let t=o.get(e);if(t){if(window.removeEventListener("scroll",t.onScroll),window.removeEventListener("resize",t.onScroll),t.resizeObserver.disconnect(),e.container.parentNode===t.container){var i;null==(i=t.container.parentNode)||i.insertBefore(e.container,t.container)}n.Dom.safeRemove(t.container),o.delete(e)}}static isInstalled(e){return o.has(e)}static setPanelHeight(e,t){let i=o.get(e);i&&i.container.style.setProperty("--flight-panel-height",`${t}px`)}static refresh(e){let t=o.get(e);t&&this.updatePosition(t.container,t.anchor,t.options)}}},54747:function(e,t,i){"use strict";i.d(t,{UIResize:function(){return r}});var n=i(2748),o=i(41180);class r{static remove(e){e.container.classList.remove("jodit-ui-resize"),n.Dom.safeRemove(e.container.querySelector(".jodit-ui-resize__handle"))}static install(e,t,i={}){var n;e.container.classList.add("jodit-ui-resize"),"static"===(0,o.css)(e.container,"position")&&(0,o.css)(e.container,"position","relative");let r=e.j.c.div("jodit-ui-resize__handle");r.classList.add("jodit-ui-resize__handle_type_"+t),i.handleClassName&&r.classList.add(i.handleClassName),e.container.appendChild(r),e.j.e.on(r,"mousedown touchstart",this.onStartResize.bind(this,e,t,null!=(n=i.onResize)?n:()=>void 0))}static onStartResize(e,t,i,n){let o={x:n.clientX,y:n.clientY,w:e.container.offsetWidth,h:e.container.offsetHeight,direction:t},r=e.j.async.throttle(this.onResize.bind(this,e,o,i),e.j.defaultTimeout/10);e.j.lock(),e.j.e.on(e.j.ow,"mousemove touchmove",r).one(e.j.ow,"mouseup touchend",this.onEndResize.bind(this,e,r))}static onResize(e,t,i,n){let r,s=["left","right"].includes(t.direction),a=e.container.parentElement;a&&(r=s?t.w+(n.clientX-t.x)*("right"===t.direction?1:-1):t.h+(n.clientY-t.y)*("top"===t.direction?-1:1),!0!==(null==i?void 0:i({newSize:r}))&&(0,o.css)(e.container,s?"width":"height",r/(s?a.offsetWidth:a.offsetHeight)*100+"%"))}static onEndResize(e,t,i){e.j.e.off(e.j.ow,"mousemove touchmove",t),e.j.unlock()}}},36469:function(e,t,i){"use strict";i.d(t,{UISelectItems:function(){return r}});var n=i(2748),o=i(41180);class r{static remove(e){n.Dom.safeRemove(e.container.querySelector(".jodit-ui-select-items")),e.j.e.off(e.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(e){let t=e.j.c.div("jodit-ui-select-items");e.j.e.on(e.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,e,t))}static onStartSelect(e,t,i){if(i.target!==e.container)return;(0,o.css)(t,{width:0,height:0}),e.container.appendChild(t);let n={x:i.clientX,y:i.clientY,w:e.container.offsetWidth,h:e.container.offsetHeight},r=e.j.async.throttle(this.onSelect.bind(this,e,t,n),e.j.defaultTimeout/10);e.j.lock(),e.j.e.on(e.j.ow,"mousemove touchmove",r).one(e.j.ow,"mouseup touchend",this.onEndSelect.bind(this,e,t,r)),e.onSelectItems({left:n.x,top:n.y,width:0,height:0})}static onSelect(e,t,i,n){let r={left:i.x>n.clientX?n.clientX:i.x,top:i.y>n.clientY?n.clientY:i.y,width:Math.abs(i.x-n.clientX),height:Math.abs(i.y-n.clientY)};(0,o.css)(t,r),e.onSelectItems(r)}static onEndSelect(e,t,i,o){n.Dom.safeRemove(t),e.j.e.off(e.j.ow,"mousemove touchmove",i),e.j.unlock()}}},85013:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{ImageEditor:function(){return eq}});try{if("u">typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode("/*\n * Jodit Image Editor — design system & layout.\n *\n * Everything is scoped under `.jie` so the stylesheet can be injected into any\n * page without leaking. Tokens are CSS custom properties; switching `data-theme`\n * re-themes the whole tree. PostCSS handles nesting + autoprefixing.\n */\n\n.jie {\n /* palette */\n --jie-accent: #5b5fc7;\n --jie-accent-soft: #eceefb;\n --jie-bg: #ffffff;\n --jie-surface: #ffffff;\n --jie-stage: #f3f4f8;\n --jie-border: #e6e8ef;\n --jie-text: #1f2430;\n --jie-text-dim: #8a90a2;\n --jie-danger: #e0533d;\n --jie-shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.06);\n\n /* sizing scale — one system for every control */\n --jie-control-h: 38px; /* shared height: buttons, inputs, selects, color, slider row */\n --jie-control-px: 12px; /* horizontal padding inside controls */\n --jie-icon: 20px; /* inline icon size (rail icons override to 24) */\n --jie-radius: 12px; /* cards / panels */\n --jie-radius-sm: 8px; /* controls */\n --jie-gap: 16px; /* between groups */\n --jie-gap-sm: 8px; /* between controls in a row */\n --jie-font-sm: 13px;\n --jie-font-md: 14px;\n --jie-rail-w: 92px;\n --jie-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\n\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 420px;\n box-sizing: border-box;\n font-family: var(--jie-font);\n color: var(--jie-text);\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius);\n overflow: hidden;\n -webkit-user-select: none;\n user-select: none;\n}\n\n.jie *,.jie *::before,.jie *::after {\n box-sizing: border-box;\n }\n\n.jie[data-theme='dark'] {\n --jie-accent: #8a8df0;\n --jie-accent-soft: #2a2d44;\n --jie-bg: #14161f;\n --jie-surface: #1b1e2a;\n --jie-stage: #0f1118;\n --jie-border: #2a2e3d;\n --jie-text: #e7e9f3;\n --jie-text-dim: #8b91a7;\n --jie-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);\n }\n\n/* ---- top bar ------------------------------------------------------------ */\n.jie-topbar {\n display: flex;\n align-items: center;\n gap: var(--jie-gap);\n padding: 12px 16px;\n border-bottom: 1px solid var(--jie-border);\n background: var(--jie-surface);\n}\n\n.jie-topbar__save {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.jie-topbar__meta {\n display: flex;\n align-items: center;\n gap: 12px;\n margin: 0 auto;\n color: var(--jie-text-dim);\n font-size: 14px;\n}\n\n.jie-zoom {\n display: flex;\n align-items: center;\n gap: 6px;\n font-variant-numeric: tabular-nums;\n}\n\n.jie-topbar__actions {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n/* ---- buttons ------------------------------------------------------------ */\n.jie-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n height: var(--jie-control-h);\n min-width: var(--jie-control-h); /* single-char buttons (B / I) stay square */\n padding: 0 var(--jie-control-px);\n font: inherit;\n font-size: var(--jie-font-md);\n font-weight: 600;\n line-height: 1;\n white-space: nowrap;\n color: var(--jie-text);\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n transition:\n background 0.12s ease,\n color 0.12s ease,\n border-color 0.12s ease;\n}\n.jie-btn:hover:not(:disabled) {\n background: var(--jie-accent-soft);\n }\n.jie-btn:disabled {\n opacity: 0.4;\n cursor: default;\n }\n/* inline icons are smaller than the standalone rail icons */\n.jie-btn .jie-icon {\n width: var(--jie-icon);\n height: var(--jie-icon);\n }\n\n.jie-btn--primary {\n color: #fff;\n background: var(--jie-accent);\n padding-inline: 18px;\n}\n\n.jie-btn--primary:hover:not(:disabled) {\n background: color-mix(in srgb, var(--jie-accent) 88%, #000);\n }\n\n.jie-btn--icon {\n width: var(--jie-control-h);\n padding: 0;\n color: var(--jie-text-dim);\n}\n\n.jie-btn--icon:hover:not(:disabled) {\n color: var(--jie-text);\n }\n\n.jie-btn--active {\n color: var(--jie-accent);\n background: var(--jie-accent-soft);\n}\n\n/* text-style modifiers (the B / I annotation toggles) */\n.jie-btn--bold {\n font-weight: 800;\n}\n.jie-btn--italic {\n font-style: italic;\n font-family: Georgia, 'Times New Roman', serif;\n}\n\n.jie-icon {\n display: inline-flex;\n width: 24px;\n height: 24px;\n}\n\n.jie-icon svg {\n width: 100%;\n height: 100%;\n }\n\n/* ---- body / rail -------------------------------------------------------- */\n.jie-body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n\n.jie-rail {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: var(--jie-rail-w);\n padding: 14px 10px;\n border-right: 1px solid var(--jie-border);\n background: var(--jie-surface);\n overflow-y: auto;\n}\n\n.jie-tab {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n padding: 12px 6px;\n font-size: 12px;\n font-weight: 600;\n color: var(--jie-text-dim);\n background: transparent;\n border: 0;\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n transition:\n background 0.12s ease,\n color 0.12s ease;\n}\n\n.jie-tab:hover {\n background: var(--jie-accent-soft);\n }\n\n.jie-tab[aria-selected='true'] {\n color: var(--jie-accent);\n background: var(--jie-accent-soft);\n }\n\n/* ---- stage / preview ---------------------------------------------------- */\n.jie-stage {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-width: 0;\n background: var(--jie-bg);\n}\n\n.jie-canvas-wrap {\n position: relative;\n flex: 1;\n margin: 16px;\n border-radius: var(--jie-radius);\n background: var(--jie-stage);\n overflow: hidden;\n touch-action: none;\n}\n\n.jie-canvas {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n}\n\n/* ---- transient status (loading / saving / error) ------------------------- */\n\n.jie-spinner {\n display: inline-block;\n flex: 0 0 auto;\n width: var(--jie-icon);\n height: var(--jie-icon);\n border: 2px solid currentColor;\n border-right-color: transparent;\n border-radius: 50%;\n animation: jie-spin 0.8s linear infinite;\n}\n\n@keyframes jie-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n/* Covers the canvas while the image is loading, or shows the load error. */\n.jie-overlay {\n position: absolute;\n inset: 0;\n z-index: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--jie-gap-sm);\n font-size: var(--jie-font-md);\n color: var(--jie-text-dim);\n background: var(--jie-stage);\n}\n.jie-overlay .jie-spinner {\n width: 32px;\n height: 32px;\n border-width: 3px;\n color: var(--jie-accent);\n }\n\n.jie-overlay--error {\n color: var(--jie-danger);\n}\n\n.jie-overlay__detail {\n max-width: 80%;\n font-size: var(--jie-font-sm);\n text-align: center;\n color: var(--jie-text-dim);\n}\n\n/* crop overlay */\n.jie-crop {\n position: absolute;\n border: 1.5px dashed var(--jie-accent);\n box-shadow: 0 0 0 100vmax var(--jie-scrim, rgba(17, 24, 39, 0.45));\n transform-origin: center;\n cursor: move;\n}\n\n/*\n * Rotation knob, centred *above* the frame and connected by a short stem. The\n * preview keeps `VIEWPORT_PADDING` around the image, so the knob has room and is\n * never clipped — even for a full-image crop.\n */\n.jie-crop__rotate {\n position: absolute;\n left: 50%;\n top: -34px;\n width: 18px;\n height: 18px;\n margin-left: -9px;\n background: var(--jie-bg);\n border: 2px solid var(--jie-accent);\n border-radius: 50%;\n box-shadow: 0 1px 3px rgba(20, 24, 40, 0.3);\n cursor: grab;\n touch-action: none;\n\n /* stem runs from the knob's bottom (-16px) toward the frame, stopping ~5px\n short of the edge so it never touches/overlaps the dashed border */\n}\n.jie-crop__rotate::before {\n content: '';\n position: absolute;\n left: 50%;\n top: 18px;\n width: 2px;\n height: 11px;\n margin-left: -1px;\n background: var(--jie-accent);\n }\n.jie-crop__rotate:active {\n cursor: grabbing;\n }\n\n.jie-crop__handle {\n position: absolute;\n width: 14px;\n height: 14px;\n background: var(--jie-bg);\n border: 2px solid var(--jie-accent);\n border-radius: 50%;\n}\n\n.jie-crop__handle[data-h='nw'] {\n top: -7px;\n left: -7px;\n cursor: nwse-resize;\n }\n\n.jie-crop__handle[data-h='ne'] {\n top: -7px;\n right: -7px;\n cursor: nesw-resize;\n }\n\n.jie-crop__handle[data-h='sw'] {\n bottom: -7px;\n left: -7px;\n cursor: nesw-resize;\n }\n\n.jie-crop__handle[data-h='se'] {\n bottom: -7px;\n right: -7px;\n cursor: nwse-resize;\n }\n\n/* ---- bottom panel ------------------------------------------------------- */\n.jie-panel {\n display: flex;\n flex-direction: column;\n gap: 14px;\n align-items: center;\n padding: 14px 16px 20px;\n border-top: 1px solid var(--jie-border);\n background: var(--jie-surface);\n}\n\n/* a row of equal-height controls, centred on a shared baseline */\n.jie-toolrow {\n display: flex;\n flex-wrap: wrap;\n gap: var(--jie-gap-sm);\n align-items: center;\n justify-content: center;\n}\n\n/* a row of labelled (label-above) fields; inputs and buttons share a height,\n so aligning their bottoms keeps everything tidy */\n.jie-fieldrow {\n display: flex;\n flex-wrap: wrap;\n gap: var(--jie-gap);\n align-items: flex-end;\n justify-content: center;\n}\n\n.jie-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: var(--jie-font-sm);\n color: var(--jie-text-dim);\n}\n\n.jie-input,\n.jie-select {\n height: var(--jie-control-h);\n width: 120px;\n padding: 0 var(--jie-control-px);\n font: inherit;\n font-size: var(--jie-font-md);\n color: var(--jie-text);\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n}\n\n:is(.jie-input,.jie-select):focus {\n outline: 2px solid var(--jie-accent-soft);\n border-color: var(--jie-accent);\n }\n\n/* native colour input, normalised to the control height as a rounded swatch */\n/* colour picker: a swatch button that opens a popover of preset swatches */\n.jie-colorpicker {\n position: relative;\n display: inline-flex;\n}\n\n/* the trigger swatch (shows the current colour via inline `background`) */\n.jie-color {\n width: var(--jie-control-h);\n height: var(--jie-control-h);\n padding: 0;\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n box-shadow: inset 0 0 0 2px var(--jie-bg);\n cursor: pointer;\n}\n\n.jie-popover__backdrop {\n position: fixed;\n inset: 0;\n z-index: 50;\n}\n\n.jie-popover {\n position: absolute;\n bottom: calc(100% + 8px);\n left: 50%;\n transform: translateX(-50%);\n z-index: 51;\n padding: 10px;\n background: var(--jie-surface);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius);\n box-shadow: var(--jie-shadow);\n}\n\n.jie-swatches {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n/* 3\xd73 position anchor grid */\n.jie-posgrid {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 2px;\n padding: 3px;\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n}\n\n.jie-posgrid__cell {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n padding: 0;\n color: var(--jie-text-dim);\n background: transparent;\n border: 0;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.jie-posgrid__cell .jie-icon {\n width: 16px;\n height: 16px;\n }\n\n.jie-posgrid__cell:hover {\n background: var(--jie-accent-soft);\n color: var(--jie-text);\n }\n\n.jie-posgrid__cell[aria-pressed='true'] {\n background: var(--jie-accent);\n color: #fff;\n }\n\n/* font selector */\n.jie-fontselect {\n position: relative;\n display: inline-flex;\n}\n\n.jie-fontselect__trigger {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: var(--jie-control-h);\n min-width: 130px;\n padding: 0 10px;\n font: inherit;\n font-size: var(--jie-font-md);\n color: var(--jie-text);\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n}\n\n.jie-fontselect__trigger > span {\n flex: 1;\n text-align: left;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n.jie-fontselect__trigger .jie-icon {\n width: 16px;\n height: 16px;\n color: var(--jie-text-dim);\n flex: none;\n }\n\n.jie-fontlist {\n min-width: 180px;\n max-height: 260px;\n overflow-y: auto;\n padding: 6px;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.jie-fontlist__item {\n padding: 8px 10px;\n font-size: 15px;\n text-align: left;\n color: var(--jie-text);\n background: transparent;\n border: 0;\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n}\n\n.jie-fontlist__item:hover {\n background: var(--jie-accent-soft);\n }\n\n.jie-fontlist__item[aria-pressed='true'] {\n color: var(--jie-accent);\n background: var(--jie-accent-soft);\n }\n\n.jie-swatch {\n width: 28px;\n height: 28px;\n padding: 0;\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n box-shadow: inset 0 0 0 2px var(--jie-surface);\n cursor: pointer;\n transition:\n transform 0.1s ease,\n box-shadow 0.1s ease;\n}\n\n.jie-swatch:hover {\n transform: scale(1.08);\n }\n\n.jie-swatch[aria-pressed='true'] {\n box-shadow:\n inset 0 0 0 2px var(--jie-surface),\n 0 0 0 2px var(--jie-accent);\n }\n\n/* slider — the whole control occupies the shared height and centres its track */\n.jie-slider {\n display: flex;\n align-items: center;\n gap: 10px;\n height: var(--jie-control-h);\n width: clamp(180px, 28vw, 300px);\n}\n\n.jie-slider__label {\n font-size: var(--jie-font-sm);\n color: var(--jie-text-dim);\n white-space: nowrap;\n}\n\n.jie-slider__value {\n min-width: 2.5ch;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-weight: 600;\n}\n\n/*\n * Fully custom range so it looks identical across evergreen browsers (the\n * native `accent-color` only themes the colour, not the track/thumb shapes).\n * The filled portion is driven by `--jie-range-fill` (set per render by the\n * slider component) on WebKit, and by the native `::-moz-range-progress` on\n * Firefox.\n */\n.jie-range {\n --jie-range-fill: 50%;\n appearance: none;\n flex: 1;\n min-width: 0;\n height: 16px; /* hit area */\n background: transparent;\n cursor: pointer;\n}\n.jie-range::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 999px;\n background: linear-gradient(\n to right,\n var(--jie-accent) var(--jie-range-fill),\n var(--jie-border) var(--jie-range-fill)\n );\n }\n.jie-range::-webkit-slider-thumb {\n appearance: none;\n margin-top: -6px; /* centre the 16px thumb on the 4px track */\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: var(--jie-accent);\n border: 2px solid var(--jie-bg);\n box-shadow: 0 1px 3px rgba(20, 24, 40, 0.25);\n }\n.jie-range::-moz-range-track {\n height: 4px;\n border-radius: 999px;\n background: var(--jie-border);\n }\n.jie-range::-moz-range-progress {\n height: 4px;\n border-radius: 999px;\n background: var(--jie-accent);\n }\n.jie-range::-moz-range-thumb {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: var(--jie-accent);\n border: 2px solid var(--jie-bg);\n box-shadow: 0 1px 3px rgba(20, 24, 40, 0.25);\n }\n.jie-range:focus-visible {\n outline: none;\n }\n.jie-range:focus-visible::-webkit-slider-thumb {\n box-shadow: 0 0 0 4px var(--jie-accent-soft);\n }\n.jie-range:focus-visible::-moz-range-thumb {\n box-shadow: 0 0 0 4px var(--jie-accent-soft);\n }\n\n/* filter thumbnails */\n.jie-thumbs {\n display: flex;\n gap: 12px;\n width: 100%;\n padding-bottom: 4px;\n overflow-x: auto;\n justify-content: flex-start;\n}\n\n.jie-thumb {\n display: flex;\n flex-direction: column;\n gap: 6px;\n align-items: center;\n padding: 4px;\n font-size: 12px;\n color: var(--jie-text-dim);\n background: transparent;\n border: 0;\n cursor: pointer;\n}\n\n.jie-thumb canvas,.jie-thumb .jie-thumb__swatch {\n width: 76px;\n height: 56px;\n border-radius: var(--jie-radius-sm);\n border: 2px solid transparent;\n object-fit: cover;\n background: var(--jie-stage);\n }\n\n.jie-thumb[aria-pressed='true'] {\n color: var(--jie-accent);\n }\n\n.jie-thumb[aria-pressed='true'] canvas,.jie-thumb[aria-pressed='true'] .jie-thumb__swatch {\n border-color: var(--jie-accent);\n }\n\n/* ---- responsive / mobile ------------------------------------------------ */\n@media (max-width: 720px) {\n .jie {\n --jie-rail-w: 100%;\n }\n\n .jie-topbar__meta {\n display: none;\n }\n\n .jie-body {\n flex-direction: column-reverse;\n }\n\n .jie-rail {\n flex-direction: row;\n width: 100%;\n border-right: 0;\n border-top: 1px solid var(--jie-border);\n overflow-x: auto;\n }\n\n .jie-tab {\n flex: 0 0 auto;\n min-width: 72px;\n }\n\n .jie-canvas-wrap {\n margin: 10px;\n }\n\n .jie-input {\n width: 100px;\n }\n}\n\n@media (hover: none) {\n .jie-crop__handle {\n width: 22px;\n height: 22px;\n }\n}")),document.head.appendChild(o)}}catch(e){}let r=Object.freeze([{label:"Arial",value:"Arial, Helvetica, sans-serif"},{label:"Helvetica",value:"Helvetica, Arial, sans-serif"},{label:"Verdana",value:"Verdana, Geneva, sans-serif"},{label:"Tahoma",value:"Tahoma, Geneva, sans-serif"},{label:"Trebuchet MS",value:'"Trebuchet MS", Helvetica, sans-serif'},{label:"Times New Roman",value:'"Times New Roman", Times, serif'},{label:"Georgia",value:'Georgia, "Times New Roman", serif'},{label:"Courier New",value:'"Courier New", Courier, monospace'},{label:"Impact",value:"Impact, Haettenschweiler, sans-serif"}]),s=Object.freeze({brightness:0,contrast:0,saturation:0,warmth:0,blur:0}),a=Object.freeze(["#ffffff","#1a1a1a","#9e9689","#4a90e2","#54b98a","#f2c94c","#eb5757","#a29bfe","#8b5cf6","#f178b6","#f2994a","#b8e454","#7ec8f0","#5b6470","#d8d2c8","#eeeeee"]);function l(){return{flip:{horizontal:!1,vertical:!1},rotate:0,angle:0,crop:null,resize:null,finetune:{...s},filter:"original",annotations:[],focus:null}}function c(){return{source:null,status:"idle",busyVisible:!1,error:null,activeTab:"adjust",activeTool:"crop",zoom:1,history:{entries:[l()],index:0},selectedAnnotationId:null,theme:"light",showToolbar:!0,locale:"en",minCropSize:8,minResizeSize:1,palette:[...a],fonts:r.map(e=>({...e})),activePopover:null,viewport:null}}function d(e){let t=e.entries[e.index];if(void 0===t)throw RangeError(`history index ${e.index} is out of bounds`);return t}function u(e,t){let i=e.entries.slice(0,e.index+1);i.push(t);let n=Math.max(0,i.length-100),o=n>0?i.slice(n):i;return{entries:o,index:o.length-1}}function h(e,t){let i=Math.min(Math.max(t,0),e.entries.length-1);return i===e.index?e:{...e,index:i}}function p(e,t){var i,n,o,r,s,a;let c=e;if(void 0!==t.activeTab&&(c=f(c,{activeTab:t.activeTab})),void 0!==t.activeTool&&(c=f(c,{activeTool:t.activeTool})),void 0!==t.zoom&&(c=f(c,{zoom:!Number.isFinite(r=t.zoom)||r<=0?1:Math.min(Math.max(r,.01),64)})),void 0!==t.theme&&(c=f(c,{theme:t.theme})),void 0!==t.showToolbar&&(c=f(c,{showToolbar:t.showToolbar})),void 0!==t.locale&&(c=f(c,{locale:t.locale})),void 0!==t.minCropSize&&(c=f(c,{minCropSize:Math.max(1,t.minCropSize)})),void 0!==t.minResizeSize&&(c=f(c,{minResizeSize:Math.max(1,t.minResizeSize)})),void 0!==t.palette&&(c=f(c,{palette:t.palette})),void 0!==t.fonts&&(c=f(c,{fonts:t.fonts})),void 0!==t.activePopover&&(c=f(c,{activePopover:t.activePopover})),void 0!==t.status&&(c=f(c,{status:t.status}),"exporting"!==t.status&&c.busyVisible&&(c=f(c,{busyVisible:!1}))),void 0!==t.busyVisible&&(c=f(c,{busyVisible:t.busyVisible})),void 0!==t.error&&(c=f(c,{error:t.error})),void 0!==t.source&&(c=f(c,{source:t.source})),void 0!==t.viewport&&(c=f(c,{viewport:t.viewport})),void 0!==t.selectedAnnotationId&&(c=f(c,{selectedAnnotationId:t.selectedAnnotationId})),t.resetHistory&&(c=f(c,{history:{entries:[l()],index:0}})),t.resetDesign&&(c=f(c,{history:u(c.history,l())})),void 0!==t.design){let e,n=(s=d(c.history),a=t.design,{...s,...a,flip:a.flip?{...s.flip,...a.flip}:s.flip,finetune:a.finetune?{...s.finetune,...a.finetune}:s.finetune,rotate:void 0!==a.rotate?(90*Math.round(a.rotate/90)%360+360)%360:s.rotate}),o=!1===t.commit?((e=(i=c.history).entries.slice())[i.index]=n,{entries:e,index:i.index}):u(c.history,n);c=f(c,{history:o})}if(void 0!==t.history){let e=t.history,i="step"in e?(n=c.history,o=e.step,h(n,n.index+o)):h(c.history,e.index);c=f(c,{history:i})}return c}function f(e,t){for(let i of Object.keys(t))if(e[i]!==t[i])return{...e,...t};return e}class m{request(e){this.pending=e,null===this.handle&&(this.handle=this.schedule(()=>this.flush()))}flush(){null!==this.handle&&(this.clear(this.handle),this.handle=null);let e=this.pending;this.pending=null,e&&e()}cancel(){null!==this.handle&&(this.clear(this.handle),this.handle=null),this.pending=null}constructor(e,t){n(this,"pending",null),n(this,"handle",null),this.schedule=e,this.clear=t}}class g{request(e){this.pending=e,this.flush()}flush(){let e=this.pending;this.pending=null,e&&e()}cancel(){this.pending=null}constructor(){n(this,"pending",null)}}class v{getState(){return this.state}update(e){let t=this.reducer(this.state,e);return t!==this.state&&(this.state=t,this.scheduler.request(()=>this.notify())),this.state}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}flush(){this.scheduler.flush()}destroy(){this.scheduler.cancel(),this.listeners.clear()}notify(){if(!this.notifying){this.notifying=!0;try{for(let e of this.listeners)e(this.state)}finally{this.notifying=!1}}}constructor(e={}){var t,i,o;n(this,"state",void 0),n(this,"reducer",void 0),n(this,"scheduler",void 0),n(this,"listeners",new Set),n(this,"notifying",!1),this.state=null!=(t=e.initialState)?t:c(),this.reducer=null!=(i=e.reducer)?i:p,this.scheduler=null!=(o=e.scheduler)?o:new g}}function b(e,t,i){return Math.min(Math.max(e,t),i)}function y(e,t){let i=b(e.width,1,t.width),n=b(e.height,1,t.height);return{x:b(e.x,0,t.width-i),y:b(e.y,0,t.height-n),width:i,height:n}}function w(e){return d(e.history)}function _(e){return"adjust"===e.activeTab&&"crop"===e.activeTool}function k(e){let t=w(e);return _(e)?{...t,crop:null,angle:0}:t}function C(e){return e.history.index>0}function S(e){var t;return(t=e.history).index<t.entries.length-1}function x(e){return e.history.index>0||e.history.entries.length>1}function I(e){if(!e.source)return null;let t=w(e),{width:i,height:n}=e.source;return 90===t.rotate||270===t.rotate?{width:n,height:i}:{width:i,height:n}}function E(e){let t=w(e);return t.resize?t.resize:t.crop?{width:Math.round(t.crop.width),height:Math.round(t.crop.height)}:I(e)}function T(e){return _(e)?I(e):E(e)}function j(e){let t,i,n,o=T(e);if(!o||!e.viewport)return null;let r={width:Math.max(1,e.viewport.width-88),height:Math.max(1,e.viewport.height-88)},s=(t=Math.min(r.width/o.width,r.height/o.height)||0,i=o.width*t,n=o.height*t,{scale:t,width:i,height:n,offsetX:(r.width-i)/2,offsetY:(r.height-n)/2}).scale*e.zoom,a=o.width*s,l=o.height*s;return{scale:s,width:a,height:l,offsetX:(e.viewport.width-a)/2,offsetY:(e.viewport.height-l)/2,content:o}}function D(e){return w(e).angle}function A(e){let t=w(e);if(t.crop)return t.crop;let i=I(e);return i?{x:0,y:0,width:i.width,height:i.height}:null}let L=Object.freeze(Object.defineProperty({__proto__:null,VIEWPORT_PADDING:44,selectCanRedo:S,selectCanUndo:C,selectCropAngle:D,selectDesign:w,selectEffectiveCrop:A,selectIsCropping:_,selectIsDirty:x,selectOrientedSize:I,selectOutputSize:E,selectPreviewContentSize:T,selectPreviewDesign:k,selectViewportFit:j},Symbol.toStringTag,{value:"Module"})),P=Math.PI/180,M={nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]};function R(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function z(e,t,i,n){let o=R(e),r=t*P,s=Math.cos(r),a=Math.sin(r),l=i*e.width/2,c=n*e.height/2;return{x:o.x+l*s-c*a,y:o.y+l*a+c*s}}function B(e,t,i,n){return Math.atan2(n-t,i-e)/P}function N(e,t,i){F(e,"width"),F(t,"height");let n=e*t*4;if(i&&i.length!==n)throw RangeError(`data length ${i.length} does not match ${e}x${t} (${n})`);return{width:e,height:t,data:null!=i?i:new Uint8ClampedArray(n)}}function O(e,t,i){return(i*e.width+t)*4}function F(e,t){if(!Number.isInteger(e)||e<=0)throw RangeError(`${t} must be a positive integer, got ${e}`)}function H(e,t){let i=N(e.width,e.height),{width:n,height:o}=e;for(let r=0;r<o;r++)for(let s=0;s<n;s++)q(e,O(e,"horizontal"===t?n-1-s:s,"vertical"===t?o-1-r:r),i,O(i,s,r));return i}function U(e,t){let i=Math.max(1,Math.round(t.width)),n=Math.max(1,Math.round(t.height));if(i===e.width&&n===e.height)return N(i,n,new Uint8ClampedArray(e.data));let o=e;for(;o.width>=2*i;)o=function(e){let t=Math.ceil(e.width/2),i=N(t,e.height);for(let n=0;n<e.height;n++)for(let o=0;o<t;o++){let t=O(e,2*o,n),r=O(e,Math.min(2*o+1,e.width-1),n),s=O(i,o,n);for(let n=0;n<4;n++)i.data[s+n]=(e.data[t+n]+e.data[r+n])/2}return i}(o);for(;o.height>=2*n;)o=function(e){let t=Math.ceil(e.height/2),i=N(e.width,t);for(let n=0;n<t;n++)for(let t=0;t<e.width;t++){let o=O(e,t,2*n),r=O(e,t,Math.min(2*n+1,e.height-1)),s=O(i,t,n);for(let t=0;t<4;t++)i.data[s+t]=(e.data[o+t]+e.data[r+t])/2}return i}(o);return o.width===i&&o.height===n?N(i,n,new Uint8ClampedArray(o.data)):function(e,t,i){let n=N(t,i),o=e.width/t,r=e.height/i;for(let u=0;u<i;u++){let i=(u+.5)*r-.5,h=Math.floor(i),p=i-h,f=V(h,e.height),m=V(h+1,e.height);for(let i=0;i<t;i++){let t=(i+.5)*o-.5,r=Math.floor(t),h=t-r,g=V(r,e.width),v=V(r+1,e.width),b=O(e,g,f),y=O(e,v,f),w=O(e,g,m),_=O(e,v,m),k=O(n,i,u);for(let t=0;t<4;t++){var s,a,l,c,d;let i=(s=e.data[b+t],a=e.data[y+t],s+(a-s)*h),o=(l=e.data[w+t],c=e.data[_+t],l+(c-l)*h);n.data[k+t]=(d=i)+(o-d)*p}}}return n}(o,i,n)}function q(e,t,i,n){i.data[n]=e.data[t],i.data[n+1]=e.data[t+1],i.data[n+2]=e.data[t+2],i.data[n+3]=e.data[t+3]}function V(e,t){return e<0?0:e>=t?t-1:e}function W(e,t){let i=N(e.width,e.height,new Uint8ClampedArray(e.data));for(let e=0;e<i.data.length;e+=4)i.data[e]=t(i.data[e],0),i.data[e+1]=t(i.data[e+1],1),i.data[e+2]=t(i.data[e+2],2);return i}function $(e,t){if(0===t)return ee(e);let i=t/100*255;return W(e,e=>e+i)}function G(e,t){if(0===t)return ee(e);let i=t/100*255,n=259*(i+255)/(255*(259-i));return W(e,e=>n*(e-128)+128)}function K(e,t){if(0===t)return ee(e);let i=1+t/100,n=N(e.width,e.height,new Uint8ClampedArray(e.data));for(let e=0;e<n.data.length;e+=4){let t=n.data[e],o=n.data[e+1],r=n.data[e+2],s=.299*t+.587*o+.114*r;n.data[e]=s+(t-s)*i,n.data[e+1]=s+(o-s)*i,n.data[e+2]=s+(r-s)*i}return n}function Y(e,t){if(0===t)return ee(e);let i=t/100*40;return W(e,(e,t)=>0===t?e+i:2===t?e-i:e)}function J(e,t,i=20){let n=Math.round(Math.max(0,Math.min(100,t))/100*i);return n<=0?ee(e):Z(Z(e,n,"horizontal"),n,"vertical")}function X(e,t){let i=e;return J(i=Y(i=K(i=G(i=$(i,t.brightness),t.contrast),t.saturation),t.warmth),t.blur)}function Z(e,t,i){let n=N(e.width,e.height),{width:o,height:r,data:s}=e,a="horizontal"===i,l=a?r:o,c=a?o:r,d=2*t+1;for(let e=0;l>e;e++)for(let i=0;i<4;i++){let l=0;for(let n=-t;t>=n;n++)l+=Q(s,o,r,a,e,n,i);for(let u=0;c>u;u++){let c=(a?e*o+u:u*o+e)*4+i;n.data[c]=l/d;let h=Q(s,o,r,a,e,u-t,i);l+=Q(s,o,r,a,e,u+t+1,i)-h}}return n}function Q(e,t,i,n,o,r,s){let a=(n?t:i)-1,l=r<0?0:r>a?a:r;return e[(n?o*t+l:l*t+o)*4+s]}function ee(e){return N(e.width,e.height,new Uint8ClampedArray(e.data))}function et(e,t){let i=N(e.width,e.height,new Uint8ClampedArray(e.data));for(let e=0;e<i.data.length;e+=4){let[n,o,r]=t(i.data[e],i.data[e+1],i.data[e+2]);i.data[e]=n,i.data[e+1]=o,i.data[e+2]=r}return i}Object.freeze(Object.defineProperty({__proto__:null,applyFinetune:X,blur:J,brightness:$,contrast:G,saturation:K,warmth:Y},Symbol.toStringTag,{value:"Module"}));let ei=e=>N(e.width,e.height,new Uint8ClampedArray(e.data)),en=new Map;function eo(e){return en.set(e.id,e),()=>{en.get(e.id)===e&&en.delete(e.id)}}function er(e,t){let i=en.get(t);return i?i.apply(e):ei(e)}function es(e){return new ImageData(e.data,e.width,e.height)}[{id:"original",label:"Original",apply:ei},{id:"invert",label:"Invert",apply:e=>et(e,(e,t,i)=>[255-e,255-t,255-i])},{id:"grayscale",label:"Black & White",apply:e=>et(e,(e,t,i)=>{let n=.299*e+.587*t+.114*i;return[n,n,n]})},{id:"sepia",label:"Sepia",apply:e=>et(e,(e,t,i)=>[.393*e+.769*t+.189*i,.349*e+.686*t+.168*i,.272*e+.534*t+.131*i])},{id:"solarize",label:"Solarize",apply:e=>et(e,(e,t,i)=>[e<128?e:255-e,t<128?t:255-t,i<128?i:255-i])},{id:"clarendon",label:"Clarendon",apply:e=>Y(K(G(e,20),25),-10)},{id:"gingham",label:"Gingham",apply:e=>Y(K(G(e,-10),-15),12)}].forEach(eo);class ea{register(e){let t=this.locales.get(e.id);return this.locales.set(e.id,{...null!=t?t:{},...e.messages}),()=>{t?this.locales.set(e.id,t):this.locales.delete(e.id)}}has(e){return this.locales.has(e)}get(e){return this.locales.get(e)}list(){return[...this.locales.keys()]}translator(e){var t;return function(e={},t={}){return(i,n)=>{var o,r;let s=null!=(o=null!=(r=e[i])?r:t[i])?o:i;return n?s.replace(/\{(\w+)\}/g,(e,t)=>t in n?String(n[t]):e):s}}(null!=(t=this.locales.get(e))?t:{})}constructor(){n(this,"locales",new Map)}}let el=new Set(["value","checked","disabled","selected","innerHTML"]);function ec(e,t={},i=[]){return{kind:"element",tag:e,key:t.key,props:t,children:function(e){let t=Array.isArray(e)?e:[e],i=[];for(let e of t)null!=e&&!1!==e&&!0!==e&&i.push("object"==typeof e?e:{kind:"text",text:String(e)});return i}(i)}}function ed(e){return"element"===e.kind}let eu={};class eh{render(e){if(null===this.prev){let t=this.mount(e);this.host.insert(this.container,t,null)}else if(ep(this.prev,e))this.patch(this.prev,e);else{let t=this.mount(e),i=this.prev.node;this.host.insert(this.container,t,this.host.nextSibling(i)),this.host.remove(this.container,i)}this.prev=e}unmount(){this.prev&&(this.host.remove(this.container,this.prev.node),this.prev=null)}mount(e){if(!ed(e)){let t=this.host.createText(e.text);return e.node=t,t}let t=this.host.createElement(e.tag);for(let i of(e.node=t,this.applyProps(t,eu,e.props),e.children))this.host.insert(t,this.mount(i),null);return t}patch(e,t){let i=e.node;return(t.node=i,ed(t)&&ed(e))?(this.applyProps(i,e.props,t.props),this.patchChildren(i,e.children,t.children)):ed(t)||t.text===e.text||this.host.setText(i,t.text),i}applyProps(e,t,i){var n,o,r,s;for(let a of(this.applyClass(e,t.class,i.class),this.applyStyle(e,null!=(n=t.style)?n:{},null!=(o=i.style)?o:{}),this.applyEvents(e,null!=(r=t.on)?r:{},null!=(s=i.on)?s:{}),Object.keys(i))){if(ef(a))continue;let n=i[a];n!==t[a]&&this.applyAttr(e,a,n)}for(let n of Object.keys(t))ef(n)||n in i||(el.has(n)?this.host.setProperty(e,n,""):this.host.removeAttribute(e,n))}applyAttr(e,t,i){var n;el.has(t)?this.host.setProperty(e,t,i):!1===i||null==i?this.host.removeAttribute(e,t):this.host.setAttribute(e,t,!0===i?"":"string"==typeof i?i:"number"==typeof i||"boolean"==typeof i||"bigint"==typeof i?String(i):null!=(n=JSON.stringify(i))?n:"")}applyClass(e,t,i){t!==i&&(i?this.host.setAttribute(e,"class",i):this.host.removeAttribute(e,"class"))}applyStyle(e,t,i){for(let n of Object.keys(i))i[n]!==t[n]&&this.host.setStyle(e,n,String(i[n]));for(let n of Object.keys(t))n in i||this.host.removeStyle(e,n)}applyEvents(e,t,i){let n=this.events.get(e);for(let o of Object.keys(t))!(o in i)&&(null==n?void 0:n.has(o))&&(this.host.removeEventListener(e,o,n.get(o).wrapper),n.delete(o));for(let t of Object.keys(i)){let o=i[t],r=null==n?void 0:n.get(t);if(r){r.handler=o;continue}n||(n=new Map,this.events.set(e,n));let s={handler:o,wrapper:e=>s.handler(e)};n.set(t,s),this.host.addEventListener(e,t,s.wrapper)}}patchChildren(e,t,i){let n=0,o=t.length-1,r=0,s=i.length-1,a=null;for(;n<=o&&r<=s;){let l=t[n],c=t[o],d=i[r],u=i[s];if(ep(l,d)){this.patch(l,d),n++,r++;continue}if(ep(c,u)){this.patch(c,u),o--,s--;continue}if(ep(l,u)){this.patch(l,u),this.host.insert(e,l.node,this.host.nextSibling(c.node)),n++,s--;continue}if(ep(c,d)){this.patch(c,d),this.host.insert(e,c.node,l.node),o--,r++;continue}null!=a||(a=function(e,t,i){let n=new Map;for(let o=t;o<=i;o++){let t=e[o].key;void 0!==t&&n.set(t,o)}return n}(t,n,o));let h=void 0!==d.key?a.get(d.key):void 0;if(void 0===h)this.host.insert(e,this.mount(d),l.node);else{let i=t[h];this.patch(i,d),i.node=void 0,this.host.insert(e,d.node,l.node)}r++}if(n>o){var l,c;let t=null!=(l=null==(c=i[s+1])?void 0:c.node)?l:null;for(let n=r;s>=n;n++)this.host.insert(e,this.mount(i[n]),t)}else if(r>s)for(let i=n;o>=i;i++){let n=t[i].node;n&&this.host.remove(e,n)}}constructor(e,t){n(this,"events",new WeakMap),n(this,"prev",null),this.host=e,this.container=t}}function ep(e,t){return e.kind===t.kind&&("text"===e.kind||e.tag===t.tag&&e.key===t.key)}function ef(e){return"key"===e||"class"===e||"style"===e||"on"===e}class em{createElement(e){return this.doc.createElement(e)}createText(e){return this.doc.createTextNode(e)}setText(e,t){e.textContent=t}insert(e,t,i){e.insertBefore(t,i)}remove(e,t){t.parentNode===e&&e.removeChild(t)}parent(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i){e.setAttribute(t,i)}removeAttribute(e,t){e.removeAttribute(t)}setProperty(e,t,i){e[t]=i}setStyle(e,t,i){e.style.setProperty(t,i)}removeStyle(e,t){e.style.removeProperty(t)}addEventListener(e,t,i){e.addEventListener(t,i)}removeEventListener(e,t,i){e.removeEventListener(t,i)}constructor(e=document){this.doc=e}}class eg{register(e){var t;return this.tools.set(e.id,e),this.order.set(e.id,null!=(t=e.order)?t:eg.UNORDERED_BASE+this.seq++),()=>{this.tools.get(e.id)===e&&(this.tools.delete(e.id),this.order.delete(e.id))}}get(e){return this.tools.get(e)}has(e){return this.tools.has(e)}list(){return[...this.tools.values()].sort((e,t)=>{var i,n;return(null!=(i=this.order.get(e.id))?i:0)-(null!=(n=this.order.get(t.id))?n:0)})}first(){return this.list()[0]}constructor(){n(this,"tools",new Map),n(this,"seq",0),n(this,"order",new Map)}}function ev(e){return ec("span",{class:"jie-icon",innerHTML:e})}function eb(){return ec("span",{class:"jie-spinner"})}function ey(e){var t,i,n;let o=["jie-btn"];"primary"===e.variant&&o.push("jie-btn--primary"),"icon"===e.variant&&o.push("jie-btn--icon"),e.active&&o.push("jie-btn--active"),e.busy&&o.push("jie-btn--busy"),e.className&&o.push(e.className);let r=[];return e.busy?r.push(eb()):e.icon&&r.push(ev(e.icon)),e.label&&r.push(ec("span",{},e.label)),ec("button",{key:e.key,class:o.join(" "),type:"button",disabled:null!=(t=e.disabled)&&t,title:null!=(i=null!=(n=e.title)?n:e.label)?i:"",on:{click:e.onClick}},r)}function ew(e){var t;let i=e.onStart,n={input:t=>e.onInput(Number(t.target.value))};i&&(n.pointerdown=()=>i());let o=e.max-e.min||1,r=Math.min(100,Math.max(0,(e.value-e.min)/o*100));return ec("div",{class:"jie-slider"},[ec("span",{class:"jie-slider__label"},e.label),ec("input",{class:"jie-range",type:"range",min:String(e.min),max:String(e.max),step:String(null!=(t=e.step)?t:1),value:String(e.value),style:{"--jie-range-fill":`${r}%`},on:n}),ec("span",{class:"jie-slider__value"},String(Math.round(e.value)))])}function e_(e){return ec("label",{class:"jie-field"},[ec("span",{},e.label),ec("span",{style:{display:"flex","align-items":"center",gap:"6px"}},[ec("input",{class:"jie-input",type:"number",value:String(e.value),on:{change:t=>{let i=Number(t.target.value);Number.isFinite(i)&&e.onChange(i)}}}),e.suffix?ec("span",{},e.suffix):null])])}function ek(e,t,i){return ec("div",{class:"jie-toolrow"},e.map(e=>ey({key:e.id,label:e.label,icon:e.icon,active:e.id===t,onClick:()=>i(e.id)})))}n(eg,"UNORDERED_BASE",1e6);let eC=e=>`<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,eS={adjust:eC('<path d="M4 8h2M9 8h11M4 16h11M18 16h2"/><circle cx="7.5" cy="8" r="1.6"/><circle cx="16.5" cy="16" r="1.6"/>'),finetune:eC('<path d="M4 7h12M4 12h16M4 17h8"/><circle cx="18" cy="7" r="1.6"/><circle cx="12" cy="17" r="1.6"/>'),filters:eC('<circle cx="9" cy="9" r="5"/><circle cx="15" cy="9" r="5"/><circle cx="12" cy="15" r="5"/>'),watermark:eC('<rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 15l5-4 4 3 3-2 6 4"/><circle cx="8.5" cy="9.5" r="1.4"/>'),annotate:eC('<path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/>'),resize:eC('<path d="M9 3H5a2 2 0 0 0-2 2v4M21 15v4a2 2 0 0 1-2 2h-4"/><path d="M8 16l8-8M16 8h-4M16 8v4"/>'),crop:eC('<path d="M6 2v14a2 2 0 0 0 2 2h14"/><path d="M2 6h14a2 2 0 0 1 2 2v14"/>'),rotate:eC('<path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/>'),flipX:eC('<path d="M12 3v18"/><path d="M8 7 4 12l4 5Z"/><path d="M16 7l4 5-4 5Z"/>'),flipY:eC('<path d="M3 12h18"/><path d="M7 8 12 4l5 4Z"/><path d="M7 16l5 4 5-4Z"/>'),undo:eC('<path d="M9 7 4 12l5 5"/><path d="M4 12h11a5 5 0 0 1 0 10h-1"/>'),redo:eC('<path d="m15 7 5 5-5 5"/><path d="M20 12H9a5 5 0 0 0 0 10h1"/>'),reset:eC('<path d="M3 12a9 9 0 1 1 2.6 6.3"/><path d="M3 21v-5h5"/>'),trash:eC('<path d="M4 7h16M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13M10 11v6M14 11v6"/>'),plus:eC('<path d="M12 5v14M5 12h14"/>'),minus:eC('<path d="M5 12h14"/>'),zoomIn:eC('<circle cx="10.5" cy="10.5" r="7.5"/><path d="M21 21l-5.2-5.2M10.5 7.5v6M7.5 10.5h6"/>'),zoomOut:eC('<circle cx="10.5" cy="10.5" r="7.5"/><path d="M21 21l-5.2-5.2M7.5 10.5h6"/>'),posTopLeft:eC('<path d="M17 17 7 7M7 13V7h6"/>'),posTop:eC('<path d="M12 19V6M7 11l5-5 5 5"/>'),posTopRight:eC('<path d="M7 17 17 7M11 7h6v6"/>'),posLeft:eC('<path d="M19 12H6M11 7l-5 5 5 5"/>'),posCenter:eC('<circle cx="12" cy="12" r="6.5"/><circle cx="12" cy="12" r="2" fill="currentColor" stroke="none"/>'),posRight:eC('<path d="M5 12h13M13 7l5 5-5 5"/>'),posBottomLeft:eC('<path d="M17 7 7 17M7 11v6h6"/>'),posBottom:eC('<path d="M12 5v13M7 13l5 5 5-5"/>'),posBottomRight:eC('<path d="M7 7l10 10M17 11v6h-6"/>'),font:eC('<path d="M4 20 9.5 6h1L16 20M6 15h8M17 20l3-9h.5l3 9M18 17h4"/>'),focus:eC('<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3.5"/>'),lock:eC('<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>'),unlock:eC('<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V7a4 4 0 0 1 7.5-2"/>'),text:eC('<path d="M5 5h14M12 5v14M9 19h6"/>'),brightness:eC('<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19"/>'),contrast:eC('<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18Z" fill="currentColor" stroke="none"/>'),blur:eC('<path d="M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11Z"/>'),book:eC('<path d="M4 5a2 2 0 0 1 2-2h5v18H6a2 2 0 0 1-2-2Z"/><path d="M20 5a2 2 0 0 0-2-2h-5v18h5a2 2 0 0 0 2-2Z"/>')},ex={id:"adjust",label:"Adjust",icon:eS.adjust,order:0,defaultTool:"crop",renderPanel({state:e,update:t,t:i}){let n=w(e),o=_(e);return ec("div",{class:"jie-toolrow"},[ey({label:i("Crop"),icon:eS.crop,active:o,onClick:()=>t({activeTab:"adjust",activeTool:o?null:"crop"})}),ey({label:i("Rotate"),icon:eS.rotate,onClick:()=>t({design:{rotate:n.rotate+90}})}),ey({label:i("Flip X"),icon:eS.flipX,onClick:()=>t({design:{flip:{horizontal:!n.flip.horizontal}}})}),ey({label:i("Flip Y"),icon:eS.flipY,onClick:()=>t({design:{flip:{vertical:!n.flip.vertical}}})})])}},eI=[{id:"brightness",label:"Brightness",icon:eS.brightness,min:-100,max:100},{id:"contrast",label:"Contrast",icon:eS.contrast,min:-100,max:100},{id:"saturation",label:"Saturation",icon:eS.filters,min:-100,max:100},{id:"blur",label:"Blur",icon:eS.blur,min:0,max:100},{id:"warmth",label:"Warmth",icon:eS.brightness,min:-100,max:100}],eE={id:"finetune",label:"Finetune",icon:eS.finetune,order:1,defaultTool:"brightness",renderPanel({state:e,update:t,t:i}){var n,o;let r=(n=e.activeTool,null!=(o=eI.find(e=>e.id===n))?o:eI[0]),s=w(e).finetune[r.id],a=(e,i)=>{t({design:{finetune:{[r.id]:e}},commit:i})};return ec("div",{class:"jie-panel-stack",style:{display:"contents"}},[ew({label:i(r.label),value:s,min:r.min,max:r.max,onStart:()=>a(s,!0),onInput:e=>a(e,!1)}),ek(eI.map(e=>({id:e.id,label:i(e.label),icon:e.icon})),r.id,e=>t({activeTab:"finetune",activeTool:e}))])}},eT={id:"filters",label:"Filters",icon:eS.filters,order:2,renderPanel({state:e,update:t,t:i}){let n=w(e).filter;return ec("div",{class:"jie-thumbs"},[...en.values()].map(e=>ec("button",{key:e.id,class:"jie-thumb",type:"button","aria-pressed":String(e.id===n),on:{click:()=>t({design:{filter:e.id}})}},[ec("canvas",{class:"jie-thumb__swatch","data-jie-filter-thumb":e.id}),ec("span",{},i(e.label))])))}},ej={id:"focus",label:"Focus",icon:eS.focus,order:3,defaultTool:"radial",renderPanel({state:e,update:t,t:i}){var n;let o=null!=(n=w(e).focus)?n:{shape:"radial",x:.5,y:.5,radius:.28,angle:0,amount:60},r=null!==w(e).focus,s=(e,i)=>t({design:{focus:{...o,...e}},commit:i});return ec("div",{class:"jie-panel-stack",style:{display:"contents"}},[ec("div",{class:"jie-toolrow"},[ew({label:i("Intensity"),value:o.amount,min:0,max:100,onStart:()=>s({amount:o.amount},!0),onInput:e=>s({amount:e},!1)}),ew({label:i("Radius"),value:Math.round(100*o.radius),min:5,max:90,onStart:()=>s({radius:o.radius},!0),onInput:e=>s({radius:e/100},!1)}),r?ey({variant:"icon",icon:eS.trash,title:i("Reset"),onClick:()=>t({design:{focus:null}})}):null]),ek([{id:"radial",label:i("Radial")},{id:"linear",label:i("Linear")}],o.shape,e=>s({shape:e},!0))])}},eD=[{align:"left",valign:"top",icon:eS.posTopLeft},{align:"center",valign:"top",icon:eS.posTop},{align:"right",valign:"top",icon:eS.posTopRight},{align:"left",valign:"middle",icon:eS.posLeft},{align:"center",valign:"middle",icon:eS.posCenter},{align:"right",valign:"middle",icon:eS.posRight},{align:"left",valign:"bottom",icon:eS.posBottomLeft},{align:"center",valign:"bottom",icon:eS.posBottom},{align:"right",valign:"bottom",icon:eS.posBottomRight}],eA=function(e="id"){let t=0;return()=>`${e}-${++t}`}("jie"),eL="text-color",eP="text-font",eM={id:"annotate",label:"Text",icon:eS.text,order:4,defaultTool:"text",renderPanel({state:e,update:t,t:i}){var n,o,s,a,l,c;let d,u,h,p=w(e),f=p.annotations[0];if(!f)return ec("div",{class:"jie-toolrow"},[ey({label:i("Add text"),icon:eS.text,variant:"primary",onClick:()=>{let e=function(e,t={}){return{id:e,type:"text",text:"Text",x:.5,y:.5,fontSize:.06,fontFamily:r[0].value,color:"#eb5757",bold:!1,italic:!1,align:"center",valign:"middle",...t}}(eA());t({design:{annotations:[e]},selectedAnnotationId:e.id})}})]);let m=e=>{var i,n;return t({design:{annotations:(i=p.annotations,n=f.id,i.map(t=>t.id===n?{...t,...e}:t))}})};return ec("div",{class:"jie-toolrow"},[ec("input",{class:"jie-input",type:"text",value:f.text,on:{input:e=>m({text:e.target.value})}}),(d=(n={value:f.fontFamily,fonts:e.fonts,title:i("Font"),open:e.activePopover===eP,onToggle:()=>t({activePopover:e.activePopover===eP?null:eP}),onPick:e=>{m({fontFamily:e}),t({activePopover:null})}}).fonts.find(e=>e.value===n.value),u=[ec("button",{class:"jie-fontselect__trigger",type:"button",title:null!=(o=n.title)?o:"Font","aria-haspopup":"listbox","aria-expanded":String(n.open),on:{click:()=>n.onToggle()}},[ev(eS.font),ec("span",{style:{"font-family":n.value}},null!=(s=null==d?void 0:d.label)?s:"Font"),ev(eS.book)])],n.open&&u.push(ec("div",{class:"jie-popover__backdrop",on:{click:()=>n.onToggle()}}),ec("div",{class:"jie-popover jie-fontlist",role:"listbox"},n.fonts.map(e=>ec("button",{key:e.value,class:"jie-fontlist__item",type:"button","aria-pressed":String(e.value===n.value),style:{"font-family":e.value},on:{click:()=>n.onPick(e.value)}},e.label)))),ec("div",{class:"jie-fontselect"},u)),(h=[ec("button",{class:"jie-color",type:"button",title:null!=(l=(a={value:f.color,palette:e.palette,title:i("Colour"),open:e.activePopover===eL,onToggle:()=>t({activePopover:e.activePopover===eL?null:eL}),onPick:e=>{m({color:e}),t({activePopover:null})}}).title)?l:"Colour",style:{background:a.value},"aria-haspopup":"true","aria-expanded":String(a.open),on:{click:()=>a.onToggle()}})],a.open&&h.push(ec("div",{class:"jie-popover__backdrop",on:{click:()=>a.onToggle()}}),ec("div",{class:"jie-popover jie-swatches",role:"listbox"},a.palette.map(e=>ec("button",{key:e,class:"jie-swatch",type:"button",title:e,style:{background:e},"aria-pressed":String(e.toLowerCase()===a.value.toLowerCase()),on:{click:()=>a.onPick(e)}})))),ec("div",{class:"jie-colorpicker"},h)),ey({label:"B",className:"jie-btn--bold",active:f.bold,onClick:()=>m({bold:!f.bold})}),ey({label:"I",className:"jie-btn--italic",active:f.italic,onClick:()=>m({italic:!f.italic})}),ew({label:i("Size"),value:Math.round(100*f.fontSize),min:1,max:40,onInput:e=>m({fontSize:e/100})}),(c={align:f.align,valign:f.valign,onPick:(e,t)=>m({align:e,valign:t,x:"left"===e?.04:"right"===e?.96:.5,y:"top"===t?.04:"bottom"===t?.96:.5})},ec("div",{class:"jie-posgrid",role:"group"},eD.map(e=>ec("button",{key:`${e.valign}-${e.align}`,class:"jie-posgrid__cell",type:"button","data-pos":`${e.valign}-${e.align}`,"aria-pressed":String(e.align===c.align&&e.valign===c.valign),on:{click:()=>c.onPick(e.align,e.valign)}},[ev(e.icon)])))),ey({variant:"icon",icon:eS.trash,title:i("Delete"),onClick:()=>{var e,i;return t({design:{annotations:(e=p.annotations,i=f.id,e.filter(e=>e.id!==i))},selectedAnnotationId:null})}})])}},eR={id:"resize",label:"Resize",icon:eS.resize,order:5,renderPanel({state:e,update:t,t:i}){let n=E(e);if(!n)return null;let o="unlocked"!==e.activeTool,r=i=>t({design:{resize:function(e,t,i,n=1){let o=e.width/e.height;if(!i){var r,s;return{width:Math.max(n,Math.round(null!=(r=t.width)?r:e.width)),height:Math.max(n,Math.round(null!=(s=t.height)?s:e.height))}}if(void 0!==t.width){let e=Math.max(n,Math.round(t.width));return{width:e,height:Math.max(n,Math.round(e/o))}}if(void 0!==t.height){let e=Math.max(n,Math.round(t.height));return{width:Math.max(n,Math.round(e*o)),height:e}}return{...e}}(n,i,o,e.minResizeSize)}});return ec("div",{class:"jie-fieldrow"},[e_({label:i("Width"),value:n.width,suffix:i("px"),onChange:e=>r({width:e})}),ey({variant:"icon",icon:o?eS.lock:eS.unlock,title:o?i("Aspect ratio locked"):i("Aspect ratio unlocked"),onClick:()=>t({activeTab:"resize",activeTool:o?"unlocked":"locked"})}),e_({label:i("Height"),value:n.height,suffix:i("px"),onChange:e=>r({height:e})}),ey({variant:"icon",icon:eS.reset,title:i("Reset size"),onClick:()=>t({design:{resize:null}})})])}};function ez(e){return parseInt(e+e,16)}function eB(e,t){return parseInt(e.slice(t,t+2),16)}let eN=/image\/(jpe?g|bmp)/i;function eO(e,t){if("u"<typeof document)throw Error("No DOM available: provide a CanvasFactory to the codec");let i=document.createElement("canvas");return i.width=e,i.height=t,{get width(){return i.width},set width(e){i.width=e},get height(){return i.height},set height(e){i.height=e},getContext:e=>i.getContext(e),toBlobAsync:(e,t)=>new Promise((n,o)=>{i.toBlob(e=>e?n(e):o(Error("canvas.toBlob returned null")),e,t)})}}class eF{async decode(e){var t,i,n;let o,r=await this.toBitmap(e),s=(t=r.width,i=r.height,n={maxSize:this.maxSize,maxPixels:this.maxPixels},o=1,n.maxSize&&n.maxSize>0&&(o=Math.min(o,n.maxSize/Math.max(t,i))),n.maxPixels&&n.maxPixels>0&&(o=Math.min(o,Math.sqrt(n.maxPixels/(t*i)))),Math.min(1,o)),a=Math.max(1,Math.round(r.width*s)),l=Math.max(1,Math.round(r.height*s)),c=this.createCanvas(a,l),d=this.context(c);d.imageSmoothingEnabled=!0,d.imageSmoothingQuality="high",d.drawImage(r,0,0,a,l),"close"in r&&"function"==typeof r.close&&r.close();let u=d.getImageData(0,0,a,l);return N(u.width,u.height,u.data)}async encode(e,t={}){let i,{type:n="image/png",quality:o=.92,background:r}=t,s=void 0!==r||eN.test(n)?function(e,[t,i,n]){let o=N(e.width,e.height);for(let r=0;r<e.data.length;r+=4){let s=e.data[r+3]/255,a=1-s;o.data[r]=e.data[r]*s+t*a,o.data[r+1]=e.data[r+1]*s+i*a,o.data[r+2]=e.data[r+2]*s+n*a,o.data[r+3]=255}return o}(e,(i=(null!=r?r:"#ffffff").trim().replace(/^#/,""),/^[0-9a-f]{3}$/i.test(i)?[ez(i[0]),ez(i[1]),ez(i[2])]:/^[0-9a-f]{6}$/i.test(i)?[eB(i,0),eB(i,2),eB(i,4)]:[255,255,255])):e,a=this.createCanvas(s.width,s.height);return this.context(a).putImageData(es(s),0,0),a.toBlobAsync(n,o)}context(e){let t=e.getContext("2d");if(!t)throw Error("Unable to acquire a 2D canvas context");return t}async toBitmap(e){return"function"==typeof createImageBitmap?createImageBitmap(e,{imageOrientation:"from-image"}):new Promise((t,i)=>{let n=URL.createObjectURL(e),o=new Image;o.style.imageOrientation="from-image",o.onload=()=>{URL.revokeObjectURL(n),t(o)},o.onerror=()=>{URL.revokeObjectURL(n),i(Error("Failed to decode image blob"))},o.src=n})}constructor(e=eO,t={}){var i;n(this,"maxPixels",void 0),n(this,"maxSize",void 0),this.createCanvas=e,this.maxPixels=null!=(i=t.maxPixels)?i:0x1000000,this.maxSize=t.maxSize}}class eH{decode(e){return this.codec.decode(e)}render(e,t){let i=function(e,t){let i=e;if(t.flip.horizontal&&(i=H(i,"horizontal")),t.flip.vertical&&(i=H(i,"vertical")),0!==t.rotate&&(i=function(e,t){let i=(Math.round(t/90)%4+4)%4;if(0===i)return N(e.width,e.height,new Uint8ClampedArray(e.data));let{width:n,height:o}=e,r=1===i||3===i,s=N(r?o:n,r?n:o);for(let t=0;t<o;t++)for(let r=0;r<n;r++){let a,l;1===i?(a=o-1-t,l=r):2===i?(a=n-1-r,l=o-1-t):(a=t,l=n-1-r),q(e,O(e,r,t),s,O(s,a,l))}return s}(i,t.rotate)),0!==t.angle){var n;let e=null!=(n=t.crop)?n:{x:0,y:0,width:i.width,height:i.height};i=function(e,t,i){let n=Math.max(1,Math.round(t.width)),o=Math.max(1,Math.round(t.height)),r=N(n,o),s=t.x+t.width/2,a=t.y+t.height/2,l=i*Math.PI/180,c=Math.cos(l),d=Math.sin(l);for(let t=0;t<o;t++){let i=t+.5-o/2;for(let o=0;n>o;o++){let l=o+.5-n/2;!function(e,t,i,n,o){if(t<=-1||i<=-1||t>=e.width||i>=e.height){n.data[o]=0,n.data[o+1]=0,n.data[o+2]=0,n.data[o+3]=0;return}let r=Math.floor(t),s=Math.floor(i),a=t-r,l=i-s,c=V(r,e.width),d=V(r+1,e.width),u=V(s,e.height),h=V(s+1,e.height),p=O(e,c,u),f=O(e,d,u),m=O(e,c,h),g=O(e,d,h);for(let t=0;t<4;t++){var v,b;let i=(v=e.data[p+t],v+(e.data[f+t]-v)*a),r=(b=e.data[m+t],b+(e.data[g+t]-b)*a);n.data[o+t]=i+(r-i)*l}}(e,s+l*c-i*d-.5,a+l*d+i*c-.5,r,O(r,o,t))}}return r}(i,e,t.angle)}else t.crop&&(i=function(e,t){let i,n,o=y({x:i=Math.round(t.x),y:n=Math.round(t.y),width:Math.round(t.x+t.width)-i,height:Math.round(t.y+t.height)-n},e),r=N(o.width,o.height);for(let t=0;t<o.height;t++){let i=O(e,o.x,o.y+t),n=O(r,0,t);r.data.set(e.data.subarray(i,i+4*o.width),n)}return r}(i,t.crop));return t.resize&&(i=U(i,t.resize)),i=er(i=X(i,t.finetune),t.filter),t.focus&&(i=function(e,t){if(t.amount<=0)return N(e.width,e.height,new Uint8ClampedArray(e.data));let i=J(e,t.amount,32),{width:n,height:o}=e,r=N(n,o),s=Math.min(n,o),a=t.x*n,l=t.y*o,c=t.radius*s,d=Math.max(.06*s,.9*c),u=t.angle*Math.PI/180,h=-Math.sin(u),p=Math.cos(u);for(let s=0;s<o;s++)for(let o=0;o<n;o++){let n=o-a,u=s-l,f=function(e,t,i){if(t<=e)return+(i>=t);let n=Math.min(1,Math.max(0,(i-e)/(t-e)));return n*n*(3-2*n)}(c,c+d,"radial"===t.shape?Math.hypot(n,u):Math.abs(n*h+u*p)),m=O(r,o,s);for(let t=0;t<4;t++)r.data[m+t]=e.data[m+t]+(i.data[m+t]-e.data[m+t])*f}return r}(i,t.focus)),i}(e,t);return function(e,t,i){if(0===i.length)return t;let n=e(t.width,t.height).getContext("2d");if(!n)throw Error("Unable to acquire a 2D canvas context");for(let e of(n.putImageData(es(t),0,0),i)){if("text"!==e.type)continue;let i=function(e,t){let i=Math.max(1,Math.round(e.fontSize*t.height)),n=e.bold?"bold":"normal",o=e.italic?"italic":"normal";return{text:e.text,x:Math.round(e.x*t.width),y:Math.round(e.y*t.height),fontPx:i,font:`${o} ${n} ${i}px ${e.fontFamily}`,color:e.color,align:e.align,baseline:e.valign}}(e,t);n.font=i.font,n.fillStyle=i.color,n.textAlign=i.align,n.textBaseline=i.baseline,function(e,t){let i=t.text.split("\n"),n=1.2*t.fontPx,o=(i.length-1)*n,r="middle"===t.baseline?t.y-o/2:"bottom"===t.baseline?t.y-o:t.y;i.forEach((i,o)=>e.fillText(i,t.x,r+o*n))}(n,i)}let o=n.getImageData(0,0,t.width,t.height);return N(o.width,o.height,o.data)}(this.createCanvas,i,t.annotations)}async toBlob(e,t,i){return this.codec.encode(this.render(e,t),i)}constructor(e){n(this,"codec",void 0),n(this,"createCanvas",void 0),this.codec=e.codec,this.createCanvas=e.createCanvas}}function eU(e,t,i){e.update({zoom:t.zoom*i})}class eq{get state(){return this.store.getState()}update(e){return this.store.update(e),this}async save(){return this.handleSave()}async saveAs(){return this.handleSaveAs()}reset(){return this.handleReset(),this}use(e){let t=e.setup(this.api());return"function"==typeof t&&this.disposers.push(t),this}async fromBlob(e){this.store.update({status:"loading",error:null});try{let t=await this.processor.decode(e);if(this.destroyed)return this;this.source=t,this.previewSource=eV(t,this.previewMaxSize),this.thumbSource=eV(t,160),this.thumbVersion++,this.store.update({source:{width:t.width,height:t.height,name:e instanceof File?e.name:null,mimeType:e.type||"image/png"},resetHistory:!0,status:"ready"})}catch(e){this.store.update({status:"error",error:e instanceof Error?e.message:String(e)})}return this}async toBlob(e){if(!this.source)throw Error("No image loaded — call fromBlob() first");let t=w(this.store.getState());this.store.update({status:"exporting"});try{return t.annotations.length>0&&"u">typeof document&&document.fonts&&await document.fonts.ready,await this.processor.toBlob(this.source,t,e)}finally{this.store.update({status:"ready"})}}destroy(){var e,t;if(!this.destroyed){for(let i of(this.destroyed=!0,this.clearBusyTimer(),null==(e=this.dragCleanup)||e.call(this),null==(t=this.resizeObserver)||t.disconnect(),this.disposers.splice(0)))i();this.renderer.unmount(),this.store.destroy()}}api(){return{registerTool:e=>this.registry.register(e),registerFilter:e=>eo(e),registerLocale:e=>this.locales.register(e),getState:()=>this.store.getState(),update:e=>this.store.update(e)}}translator(){return this.locales.translator(this.store.getState().locale)}appContext(){return{update:e=>this.store.update(e),tools:this.registry.list(),t:this.translator(),onSave:()=>void this.handleSave(),onSaveAs:()=>void this.handleSaveAs(),onReset:()=>this.handleReset(),beginCropDrag:(e,t)=>this.beginCropDrag(e,t),beginCropRotate:e=>this.beginCropRotate(e)}}handleReset(){x(this.store.getState())&&this.confirm(this.translator()("Reset all changes? You can still undo afterwards."))&&this.store.update({resetDesign:!0})}render(){if(!this.destroyed){var e,t,i,n;let o,r,s,a,l,c,d,u;this.renderer.render((e=this.store.getState(),t=this.appContext(),ec("div",{class:"jie","data-theme":e.theme},[e.showToolbar?(o=E(e),s=(r=j(e))?Math.round(100*r.scale):Math.round(100*e.zoom),a=t.t,l="loading"===e.status||"exporting"===e.status,c="exporting"===e.status&&e.busyVisible,ec("header",{class:"jie-topbar"},[ec("div",{class:"jie-topbar__save"},[ey({label:a("Save"),variant:"primary",onClick:()=>t.onSave(),disabled:!e.source||l,busy:c}),ey({label:a("Save as"),onClick:()=>t.onSaveAs(),disabled:!e.source||l,busy:c})]),ec("div",{class:"jie-topbar__meta"},[o?ec("span",{},`${o.width} x ${o.height} px`):null,ev(eS.book),ec("div",{class:"jie-zoom"},[ey({variant:"icon",icon:eS.zoomOut,title:a("Zoom out"),onClick:()=>eU(t,e,1/1.2)}),ec("span",{},`${s}%`),ey({variant:"icon",icon:eS.zoomIn,title:a("Zoom in"),onClick:()=>eU(t,e,1.2)})])]),ec("div",{class:"jie-topbar__actions"},[ey({variant:"icon",icon:eS.reset,title:a("Reset"),disabled:!x(e),onClick:()=>t.onReset()}),ey({variant:"icon",icon:eS.undo,title:a("Undo"),disabled:!C(e),onClick:()=>t.update({history:{step:-1}})}),ey({variant:"icon",icon:eS.redo,title:a("Redo"),disabled:!S(e),onClick:()=>t.update({history:{step:1}})})])])):null,ec("div",{class:"jie-body"},[ec("nav",{class:"jie-rail"},t.tools.map(i=>ec("button",{key:i.id,class:"jie-tab",type:"button","aria-selected":String(e.activeTab===i.id),on:{click:()=>{var e;return t.update({activeTab:i.id,activeTool:null!=(e=i.defaultTool)?e:null})}}},[ev(i.icon),ec("span",{},t.t(i.label))]))),(u=null!=(n=null==(d=null!=(i=t.tools.find(t=>t.id===e.activeTab))?i:t.tools[0])?void 0:d.renderPanel({state:e,update:t.update,t:t.t}))?n:null,ec("div",{class:"jie-stage"},[ec("div",{class:"jie-canvas-wrap","data-jie-canvas-wrap":""},[ec("canvas",{class:"jie-canvas","data-jie-canvas":""}),function(e,t){if(!_(e))return null;let i=j(e),n=A(e);if(!i||!n)return null;let o=D(e);return ec("div",{class:"jie-crop",style:{left:`${i.offsetX+n.x*i.scale}px`,top:`${i.offsetY+n.y*i.scale}px`,width:`${n.width*i.scale}px`,height:`${n.height*i.scale}px`,transform:`rotate(${o}deg)`},on:{pointerdown:e=>t.beginCropDrag("move",e)}},[ec("div",{key:"rotate",class:"jie-crop__rotate",title:"Rotate",on:{pointerdown:e=>{e.stopPropagation(),t.beginCropRotate(e)}}}),...["nw","ne","sw","se"].map(e=>ec("div",{key:e,class:"jie-crop__handle","data-h":e,on:{pointerdown:i=>{i.stopPropagation(),t.beginCropDrag(e,i)}}}))])}(e,t),"loading"===e.status?ec("div",{class:"jie-overlay","data-jie-loading":""},[eb()]):"error"===e.status&&e.error?ec("div",{class:"jie-overlay jie-overlay--error","data-jie-error":""},[ec("span",{},t.t("Failed to load the image")),ec("span",{class:"jie-overlay__detail"},e.error)]):null]),u?ec("div",{class:"jie-panel"},[u]):null]))])]))),this.ensureViewportObserver(),this.paint(),this.paintFilterThumbs()}}async handleSave(){var e;if(!this.canExport())return;let t=await this.toBlob();null==(e=this.onSaveCb)||e.call(this,t,this),this.container.dispatchEvent(new CustomEvent("jie:save",{detail:{blob:t},bubbles:!0}))}async handleSaveAs(){var e;if(!this.canExport())return;let t=await this.toBlob();null==(e=this.onSaveAsCb)||e.call(this,t,this),this.container.dispatchEvent(new CustomEvent("jie:saveas",{detail:{blob:t},bubbles:!0}))}canExport(){let{status:e}=this.store.getState();return null!==this.source&&"exporting"!==e&&"loading"!==e}syncBusyTimer(e){"exporting"!==e.status?this.clearBusyTimer():e.busyVisible||null!==this.busyTimer||(this.busyTimer=setTimeout(()=>{this.busyTimer=null,this.destroyed||"exporting"!==this.store.getState().status||this.store.update({busyVisible:!0})},this.spinnerDelay))}clearBusyTimer(){null!==this.busyTimer&&(clearTimeout(this.busyTimer),this.busyTimer=null)}ensureViewportObserver(){var e;let t=this.container.querySelector("[data-jie-canvas-wrap]");if(t&&t!==this.observedWrap){if(null==(e=this.resizeObserver)||e.disconnect(),this.observedWrap=t,"u"<typeof ResizeObserver)return void this.measureViewport(t);this.resizeObserver=new ResizeObserver(()=>this.measureViewport(t)),this.resizeObserver.observe(t),this.measureViewport(t)}}measureViewport(e){let{clientWidth:t,clientHeight:i}=e,n=this.store.getState().viewport;t<=0||i<=0||n&&n.width===t&&n.height===i||this.store.update({viewport:{width:t,height:i}})}paint(){let e=this.store.getState(),t=this.container.querySelector("[data-jie-canvas]");if(!t||!this.previewSource||!e.viewport)return;let i=j(e);if(!i)return;let n=k(e),o=`${this.thumbVersion}:${JSON.stringify(n)}`;o===this.cachedRasterKey&&this.cachedRaster||(this.cachedRaster=this.processor.render(this.previewSource,n),this.cachedRasterKey=o);let r=`${o}@${e.viewport.width}x${e.viewport.height}:${i.scale}:${i.offsetX},${i.offsetY}`;r!==this.lastPaintKey&&(this.lastPaintKey=r,function(e,t,i,n){let o="u">typeof window&&window.devicePixelRatio||1;e.width=Math.max(1,Math.round(i.width*o)),e.height=Math.max(1,Math.round(i.height*o));let r=e.getContext("2d");if(!r)return;r.setTransform(o,0,0,o,0,0),r.clearRect(0,0,i.width,i.height);let s=document.createElement("canvas");s.width=t.width,s.height=t.height;let a=s.getContext("2d");a&&(a.putImageData(es(t),0,0),r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",r.drawImage(s,n.offsetX,n.offsetY,n.width,n.height))}(t,this.cachedRaster,e.viewport,i))}paintFilterThumbs(){let e=this.thumbSource;if(e)for(let t of this.container.querySelectorAll("canvas[data-jie-filter-thumb]")){let i=t.dataset.jieFilterThumb;if(!i)continue;let n=`${this.thumbVersion}:${i}`;if(t.dataset.key===n)continue;let o=er(e,i);t.width=o.width,t.height=o.height;let r=t.getContext("2d");r&&(r.putImageData(es(o),0,0),t.dataset.key=n)}}beginCropDrag(e,t){let i=this.store.getState(),n=j(i),o=A(i),r=I(i);if(!n||!o||!r)return;let s=D(i),a=i.minCropSize,l=t.clientX,c=t.clientY;this.runPointerGesture(t,t=>{let i=(t.clientX-l)/n.scale,d=(t.clientY-c)/n.scale;return{crop:0!==s?function(e,t,i,n,o,r=8){if("move"===i)return{...e,x:e.x+n,y:e.y+o};let[s,a]=M[i],l=z(e,t,s,a),c=z(e,t,-s,-a),d={x:l.x+n,y:l.y+o},u=(d.x+c.x)/2,h=(d.y+c.y)/2,p=t*P,f=Math.cos(p),m=Math.sin(p),g=d.x-c.x,v=d.y-c.y,b=Math.max(r,Math.abs(g*f+v*m)),y=Math.max(r,Math.abs(-(g*m)+v*f));return{x:u-b/2,y:h-y/2,width:b,height:y}}(o,s,e,i,d,a):function(e,t,i,n,o,r=null,s=8){var a;let l,c;if("move"===t)return y({...e,x:e.x+i,y:e.y+n},o);let{x:d,y:u,width:h,height:p}=e;if("nw"===t||"sw"===t){let e=b(d+i,0,d+h-s);h+=d-e,d=e}else h=b(h+i,s,o.width-d);if("nw"===t||"ne"===t){let e=b(u+n,0,u+p-s);p+=u-e,u=e}else p=b(p+n,s,o.height-u);let f={x:d,y:u,width:h,height:p};return null!==r&&r>0&&(l=(a=f).width/r,c="sw"===t||"se"===t?a.y:a.y+a.height-l,f={...a,height:l,y:c}),y(f,o)}(o,e,i,d,r,null,a)}})}beginCropRotate(e){var t;let i=this.store.getState(),n=j(i),o=A(i),r=null!=(t=this.observedWrap)?t:this.container.querySelector("[data-jie-canvas-wrap]");if(!n||!o||!r)return;let s=r.getBoundingClientRect(),a=R(o),l=s.left+n.offsetX+a.x*n.scale,c=s.top+n.offsetY+a.y*n.scale,d=D(i),u=B(l,c,e.clientX,e.clientY);this.runPointerGesture(e,e=>{let t=d+(B(l,c,e.clientX,e.clientY)-u);return 2>Math.abs(t)&&(t=0),{angle:Math.round(10*t)/10}})}runPointerGesture(e,t){e.preventDefault();let i=!1,n=e=>{this.store.update({design:t(e),commit:!i}),i=!0},o=()=>{window.removeEventListener("pointermove",n),window.removeEventListener("pointerup",o),this.dragCleanup=null};window.addEventListener("pointermove",n),window.addEventListener("pointerup",o),this.dragCleanup=o}constructor(e){var t,i,o,r,s,a,l,d;for(let a of(n(this,"store",void 0),n(this,"container",void 0),n(this,"renderer",void 0),n(this,"registry",new eg),n(this,"locales",new ea),n(this,"processor",void 0),n(this,"previewMaxSize",void 0),n(this,"spinnerDelay",void 0),n(this,"busyTimer",null),n(this,"onSaveCb",void 0),n(this,"onSaveAsCb",void 0),n(this,"confirm",void 0),n(this,"source",null),n(this,"previewSource",null),n(this,"thumbSource",null),n(this,"thumbVersion",0),n(this,"cachedRaster",null),n(this,"cachedRasterKey",""),n(this,"lastPaintKey",""),n(this,"disposers",[]),n(this,"resizeObserver",null),n(this,"observedWrap",null),n(this,"dragCleanup",null),n(this,"destroyed",!1),this.container=function(e){if("string"!=typeof e)return e;let t=document.querySelector(e);if(!t)throw Error(`Container not found: ${e}`);return t}(e.container),this.processor=null!=(t=e.processor)?t:function(e=eO,t){return new eH({codec:new eF(e,t),createCanvas:e})}(void 0,{maxPixels:e.maxSourcePixels,maxSize:e.maxSourceSize}),this.previewMaxSize=null!=(i=e.previewMaxSize)?i:1600,this.spinnerDelay=Math.max(0,null!=(o=e.spinnerDelay)?o:250),this.onSaveCb=e.onSave,this.onSaveAsCb=e.onSaveAs,this.confirm=null!=(r=e.confirm)?r:e=>"u"<typeof window||window.confirm(e),null!=(s=e.locales)?s:[]))this.locales.register(a);for(let t of(this.store=new v({scheduler:null!=(a=e.scheduler)?a:function(){if("function"!=typeof requestAnimationFrame)return new m(e=>setTimeout(e,16),e=>clearTimeout(e));let e=e=>{cancelAnimationFrame(e.raf),null!==e.timer&&(clearTimeout(e.timer),e.timer=null)};return new m(t=>{let i={raf:0,timer:null},n=()=>{e(i),t()};return i.raf=requestAnimationFrame(n),i.timer=setTimeout(n,100),i},e)}(),initialState:{...c(),...e.state,...e.locale?{locale:e.locale}:{},...void 0!==e.minCropSize?{minCropSize:Math.max(1,e.minCropSize)}:{},...void 0!==e.minResizeSize?{minResizeSize:Math.max(1,e.minResizeSize)}:{},...e.palette?{palette:e.palette}:{},...e.fonts?{fonts:e.fonts}:{}}}),null!=(l=e.tools)?l:[ex,eE,eT,ej,eM,eR]))this.registry.register(t);for(let t of null!=(d=e.plugins)?d:[])this.use(t);this.renderer=new eh(new em(document),this.container),this.disposers.push(this.store.subscribe(()=>this.render())),this.disposers.push(this.store.subscribe(e=>this.syncBusyTimer(e))),this.render(),e.image&&this.fromBlob(e.image)}}function eV(e,t){let i=Math.max(e.width,e.height);if(t>=i)return e;let n=t/i;return U(e,{width:Math.round(e.width*n),height:Math.round(e.height*n)})}i.d(t,["ICONS",0,eS,"selectors",0,L])},82749:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{_:function(){return n}})},72573:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}i.d(t,{marked:function(){return ew}});var r,s=o(),a={exec:()=>null};function l(e,t=""){let i="string"==typeof e?e:e.source,n={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(d.caret,"$1"),i=i.replace(e,o),n},getRegex:()=>new RegExp(i,t)};return n}var c=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),d={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,p=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=l(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),m=l(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,b=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y=l(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),w="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k=l("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",_).replace("tag",w).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C=l(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex(),S={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",C).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:b,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:k,lheading:f,list:y,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:C,table:a,text:/^[^\n]+/},x=l("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex(),I={...S,lheading:m,table:x,paragraph:l(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",x).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex()},E={...S,html:l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(g).replace("hr",u).replace("heading",` *#{1,6} *[^
|
|
616
|
-
]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T=/^( {2,}|\\)\n(?!\s*$)/,j=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,A=/[^\s\p{P}\p{S}]/u,L=l(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),P=/(?!~)[\p{P}\p{S}]/u,M=l(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",c?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),
|
|
615
|
+
</div>`}show(){let e=this.j.s.current();if(!e)return this.hide();let t=s.Dom.isBlock(e)?e:s.Dom.closest(e,e=>!!(e&&this.j.o.tuneBlock.popup[e.nodeName.toLowerCase()]),this.j.editor);if(!t||t===this.j.editor||!this.j.o.tuneBlock.popup[t.tagName.toLowerCase()])return this.hide();this.currentBlock=t,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,s.Dom.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){let e=(0,a.css)(this.j.editor,"marginLeft"),t=(0,a.css)(this.j.editor,"paddingLeft"),i=(0,a.css)(this.j.editor,"marginTop"),n=this.currentBlock.offsetWidth-15+e+t,o=this.currentBlock.offsetTop-this.j.editor.scrollTop+i;(0,a.css)(this.container,{transform:`translate3d(${n}px, ${o}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(e){e&&(this.currentBlock=e),this.calcPosition(),this.openToolbar()}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){let e=this.getElm("handle");(0,a.assert)(null!=e,"Handle element does not exist"),this.popup.open(()=>(0,a.position)(e))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}constructor(...e){super(...e),(0,n._)(this,"isShown",!1),(0,n._)(this,"toolbar",(0,c.makeCollection)(this.j,this)),(0,n._)(this,"popup",new l.Popup(this.j,!1)),(0,n._)(this,"currentBlock",void 0)}}(0,o.__decorate)([(0,r.watch)(":hideTuner.tune")],d.prototype,"hide",null),(0,o.__decorate)([(0,r.watch)("j.editor:scroll"),(0,r.throttle)(10)],d.prototype,"onEditorScroll",null),(0,o.__decorate)([(0,r.watch)(":afterExecTune.tune"),(0,r.idle)()],d.prototype,"onAfterExecTune",null),(0,o.__decorate)([(0,r.watch)("container:click container:mousedown")],d.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("handle:click")],d.prototype,"onTargetClick",null),(0,o.__decorate)([(0,r.watch)(":closeTuner.tune")],d.prototype,"closeToolbar",null),d=(0,o.__decorate)([r.component],d)},18549:function(e,t,i){"use strict";i.d(t,{UIFlightPosition:function(){return r}});var n=i(2748);let o=new WeakMap;class r{static install(e,t,i={}){this.remove(e);let{panelHeight:n=250,containerClassName:r,toolbarSelector:s=".jodit-toolbar__box",gap:a=16}=i,l=e.j.c.div("jodit-flight-position");r&&l.classList.add(r),l.style.setProperty("--flight-panel-height",`${n}px`),l.appendChild(e.container),document.body.appendChild(l);let c={toolbarSelector:s,gap:a},d=()=>{this.updatePosition(l,t,c)},u=new ResizeObserver(d);u.observe(t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),o.set(e,{container:l,anchor:t,onScroll:d,resizeObserver:u,options:c}),this.updatePosition(l,t,c)}static updatePosition(e,t,i){let{toolbarSelector:n,gap:o}=i,r=t.getBoundingClientRect(),s=window.innerHeight,a=e.offsetHeight||250;e.style.left=`${r.left}px`,e.style.width=`${r.width}px`;let l=t.querySelector(n),c=l?l.getBoundingClientRect().bottom:r.top,d=r.bottom-c,u=r.bottom<=s;a<=d?u?(e.style.top="auto",e.style.bottom=`${s-r.bottom+o}px`):(e.style.top="auto",e.style.bottom=`${o}px`):(e.style.bottom="auto",e.style.top=`${c}px`)}static remove(e){let t=o.get(e);if(t){if(window.removeEventListener("scroll",t.onScroll),window.removeEventListener("resize",t.onScroll),t.resizeObserver.disconnect(),e.container.parentNode===t.container){var i;null==(i=t.container.parentNode)||i.insertBefore(e.container,t.container)}n.Dom.safeRemove(t.container),o.delete(e)}}static isInstalled(e){return o.has(e)}static setPanelHeight(e,t){let i=o.get(e);i&&i.container.style.setProperty("--flight-panel-height",`${t}px`)}static refresh(e){let t=o.get(e);t&&this.updatePosition(t.container,t.anchor,t.options)}}},54747:function(e,t,i){"use strict";i.d(t,{UIResize:function(){return r}});var n=i(2748),o=i(41180);class r{static remove(e){e.container.classList.remove("jodit-ui-resize"),n.Dom.safeRemove(e.container.querySelector(".jodit-ui-resize__handle"))}static install(e,t,i={}){var n;e.container.classList.add("jodit-ui-resize"),"static"===(0,o.css)(e.container,"position")&&(0,o.css)(e.container,"position","relative");let r=e.j.c.div("jodit-ui-resize__handle");r.classList.add("jodit-ui-resize__handle_type_"+t),i.handleClassName&&r.classList.add(i.handleClassName),e.container.appendChild(r),e.j.e.on(r,"mousedown touchstart",this.onStartResize.bind(this,e,t,null!=(n=i.onResize)?n:()=>void 0))}static onStartResize(e,t,i,n){let o={x:n.clientX,y:n.clientY,w:e.container.offsetWidth,h:e.container.offsetHeight,direction:t},r=e.j.async.throttle(this.onResize.bind(this,e,o,i),e.j.defaultTimeout/10);e.j.lock(),e.j.e.on(e.j.ow,"mousemove touchmove",r).one(e.j.ow,"mouseup touchend",this.onEndResize.bind(this,e,r))}static onResize(e,t,i,n){let r,s=["left","right"].includes(t.direction),a=e.container.parentElement;a&&(r=s?t.w+(n.clientX-t.x)*("right"===t.direction?1:-1):t.h+(n.clientY-t.y)*("top"===t.direction?-1:1),!0!==(null==i?void 0:i({newSize:r}))&&(0,o.css)(e.container,s?"width":"height",r/(s?a.offsetWidth:a.offsetHeight)*100+"%"))}static onEndResize(e,t,i){e.j.e.off(e.j.ow,"mousemove touchmove",t),e.j.unlock()}}},36469:function(e,t,i){"use strict";i.d(t,{UISelectItems:function(){return r}});var n=i(2748),o=i(41180);class r{static remove(e){n.Dom.safeRemove(e.container.querySelector(".jodit-ui-select-items")),e.j.e.off(e.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(e){let t=e.j.c.div("jodit-ui-select-items");e.j.e.on(e.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,e,t))}static onStartSelect(e,t,i){if(i.target!==e.container)return;(0,o.css)(t,{width:0,height:0}),e.container.appendChild(t);let n={x:i.clientX,y:i.clientY,w:e.container.offsetWidth,h:e.container.offsetHeight},r=e.j.async.throttle(this.onSelect.bind(this,e,t,n),e.j.defaultTimeout/10);e.j.lock(),e.j.e.on(e.j.ow,"mousemove touchmove",r).one(e.j.ow,"mouseup touchend",this.onEndSelect.bind(this,e,t,r)),e.onSelectItems({left:n.x,top:n.y,width:0,height:0})}static onSelect(e,t,i,n){let r={left:i.x>n.clientX?n.clientX:i.x,top:i.y>n.clientY?n.clientY:i.y,width:Math.abs(i.x-n.clientX),height:Math.abs(i.y-n.clientY)};(0,o.css)(t,r),e.onSelectItems(r)}static onEndSelect(e,t,i,o){n.Dom.safeRemove(t),e.j.e.off(e.j.ow,"mousemove touchmove",i),e.j.unlock()}}},85013:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{ImageEditor:function(){return eq}});try{if("u">typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode("/*\n * Jodit Image Editor — design system & layout.\n *\n * Everything is scoped under `.jie` so the stylesheet can be injected into any\n * page without leaking. Tokens are CSS custom properties; switching `data-theme`\n * re-themes the whole tree. PostCSS handles nesting + autoprefixing.\n */\n\n.jie {\n /* palette */\n --jie-accent: #5b5fc7;\n --jie-accent-soft: #eceefb;\n --jie-bg: #ffffff;\n --jie-surface: #ffffff;\n --jie-stage: #f3f4f8;\n --jie-border: #e6e8ef;\n --jie-text: #1f2430;\n --jie-text-dim: #8a90a2;\n --jie-danger: #e0533d;\n --jie-shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px rgba(20, 24, 40, 0.06);\n\n /* sizing scale — one system for every control */\n --jie-control-h: 38px; /* shared height: buttons, inputs, selects, color, slider row */\n --jie-control-px: 12px; /* horizontal padding inside controls */\n --jie-icon: 20px; /* inline icon size (rail icons override to 24) */\n --jie-radius: 12px; /* cards / panels */\n --jie-radius-sm: 8px; /* controls */\n --jie-gap: 16px; /* between groups */\n --jie-gap-sm: 8px; /* between controls in a row */\n --jie-font-sm: 13px;\n --jie-font-md: 14px;\n --jie-rail-w: 92px;\n --jie-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\n\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 420px;\n box-sizing: border-box;\n font-family: var(--jie-font);\n color: var(--jie-text);\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius);\n overflow: hidden;\n -webkit-user-select: none;\n user-select: none;\n}\n\n.jie *,.jie *::before,.jie *::after {\n box-sizing: border-box;\n }\n\n.jie[data-theme='dark'] {\n --jie-accent: #8a8df0;\n --jie-accent-soft: #2a2d44;\n --jie-bg: #14161f;\n --jie-surface: #1b1e2a;\n --jie-stage: #0f1118;\n --jie-border: #2a2e3d;\n --jie-text: #e7e9f3;\n --jie-text-dim: #8b91a7;\n --jie-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);\n }\n\n/* ---- top bar ------------------------------------------------------------ */\n.jie-topbar {\n display: flex;\n align-items: center;\n gap: var(--jie-gap);\n padding: 12px 16px;\n border-bottom: 1px solid var(--jie-border);\n background: var(--jie-surface);\n}\n\n.jie-topbar__save {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.jie-topbar__meta {\n display: flex;\n align-items: center;\n gap: 12px;\n margin: 0 auto;\n color: var(--jie-text-dim);\n font-size: 14px;\n}\n\n.jie-zoom {\n display: flex;\n align-items: center;\n gap: 6px;\n font-variant-numeric: tabular-nums;\n}\n\n.jie-topbar__actions {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n/* ---- buttons ------------------------------------------------------------ */\n.jie-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n height: var(--jie-control-h);\n min-width: var(--jie-control-h); /* single-char buttons (B / I) stay square */\n padding: 0 var(--jie-control-px);\n font: inherit;\n font-size: var(--jie-font-md);\n font-weight: 600;\n line-height: 1;\n white-space: nowrap;\n color: var(--jie-text);\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n transition:\n background 0.12s ease,\n color 0.12s ease,\n border-color 0.12s ease;\n}\n.jie-btn:hover:not(:disabled) {\n background: var(--jie-accent-soft);\n }\n.jie-btn:disabled {\n opacity: 0.4;\n cursor: default;\n }\n/* inline icons are smaller than the standalone rail icons */\n.jie-btn .jie-icon {\n width: var(--jie-icon);\n height: var(--jie-icon);\n }\n\n.jie-btn--primary {\n color: #fff;\n background: var(--jie-accent);\n padding-inline: 18px;\n}\n\n.jie-btn--primary:hover:not(:disabled) {\n background: color-mix(in srgb, var(--jie-accent) 88%, #000);\n }\n\n.jie-btn--icon {\n width: var(--jie-control-h);\n padding: 0;\n color: var(--jie-text-dim);\n}\n\n.jie-btn--icon:hover:not(:disabled) {\n color: var(--jie-text);\n }\n\n.jie-btn--active {\n color: var(--jie-accent);\n background: var(--jie-accent-soft);\n}\n\n/* text-style modifiers (the B / I annotation toggles) */\n.jie-btn--bold {\n font-weight: 800;\n}\n.jie-btn--italic {\n font-style: italic;\n font-family: Georgia, 'Times New Roman', serif;\n}\n\n.jie-icon {\n display: inline-flex;\n width: 24px;\n height: 24px;\n}\n\n.jie-icon svg {\n width: 100%;\n height: 100%;\n }\n\n/* ---- body / rail -------------------------------------------------------- */\n.jie-body {\n display: flex;\n flex: 1;\n min-height: 0;\n}\n\n.jie-rail {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: var(--jie-rail-w);\n padding: 14px 10px;\n border-right: 1px solid var(--jie-border);\n background: var(--jie-surface);\n overflow-y: auto;\n}\n\n.jie-tab {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n padding: 12px 6px;\n font-size: 12px;\n font-weight: 600;\n color: var(--jie-text-dim);\n background: transparent;\n border: 0;\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n transition:\n background 0.12s ease,\n color 0.12s ease;\n}\n\n.jie-tab:hover {\n background: var(--jie-accent-soft);\n }\n\n.jie-tab[aria-selected='true'] {\n color: var(--jie-accent);\n background: var(--jie-accent-soft);\n }\n\n/* ---- stage / preview ---------------------------------------------------- */\n.jie-stage {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-width: 0;\n background: var(--jie-bg);\n}\n\n.jie-canvas-wrap {\n position: relative;\n flex: 1;\n margin: 16px;\n border-radius: var(--jie-radius);\n background: var(--jie-stage);\n overflow: hidden;\n touch-action: none;\n}\n\n.jie-canvas {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n display: block;\n}\n\n/* ---- transient status (loading / saving / error) ------------------------- */\n\n.jie-spinner {\n display: inline-block;\n flex: 0 0 auto;\n width: var(--jie-icon);\n height: var(--jie-icon);\n border: 2px solid currentColor;\n border-right-color: transparent;\n border-radius: 50%;\n animation: jie-spin 0.8s linear infinite;\n}\n\n@keyframes jie-spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n/* Covers the canvas while the image is loading, or shows the load error. */\n.jie-overlay {\n position: absolute;\n inset: 0;\n z-index: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--jie-gap-sm);\n font-size: var(--jie-font-md);\n color: var(--jie-text-dim);\n background: var(--jie-stage);\n}\n.jie-overlay .jie-spinner {\n width: 32px;\n height: 32px;\n border-width: 3px;\n color: var(--jie-accent);\n }\n\n.jie-overlay--error {\n color: var(--jie-danger);\n}\n\n.jie-overlay__detail {\n max-width: 80%;\n font-size: var(--jie-font-sm);\n text-align: center;\n color: var(--jie-text-dim);\n}\n\n/* crop overlay */\n.jie-crop {\n position: absolute;\n border: 1.5px dashed var(--jie-accent);\n box-shadow: 0 0 0 100vmax var(--jie-scrim, rgba(17, 24, 39, 0.45));\n transform-origin: center;\n cursor: move;\n}\n\n/*\n * Rotation knob, centred *above* the frame and connected by a short stem. The\n * preview keeps `VIEWPORT_PADDING` around the image, so the knob has room and is\n * never clipped — even for a full-image crop.\n */\n.jie-crop__rotate {\n position: absolute;\n left: 50%;\n top: -34px;\n width: 18px;\n height: 18px;\n margin-left: -9px;\n background: var(--jie-bg);\n border: 2px solid var(--jie-accent);\n border-radius: 50%;\n box-shadow: 0 1px 3px rgba(20, 24, 40, 0.3);\n cursor: grab;\n touch-action: none;\n\n /* stem runs from the knob's bottom (-16px) toward the frame, stopping ~5px\n short of the edge so it never touches/overlaps the dashed border */\n}\n.jie-crop__rotate::before {\n content: '';\n position: absolute;\n left: 50%;\n top: 18px;\n width: 2px;\n height: 11px;\n margin-left: -1px;\n background: var(--jie-accent);\n }\n.jie-crop__rotate:active {\n cursor: grabbing;\n }\n\n.jie-crop__handle {\n position: absolute;\n width: 14px;\n height: 14px;\n background: var(--jie-bg);\n border: 2px solid var(--jie-accent);\n border-radius: 50%;\n}\n\n.jie-crop__handle[data-h='nw'] {\n top: -7px;\n left: -7px;\n cursor: nwse-resize;\n }\n\n.jie-crop__handle[data-h='ne'] {\n top: -7px;\n right: -7px;\n cursor: nesw-resize;\n }\n\n.jie-crop__handle[data-h='sw'] {\n bottom: -7px;\n left: -7px;\n cursor: nesw-resize;\n }\n\n.jie-crop__handle[data-h='se'] {\n bottom: -7px;\n right: -7px;\n cursor: nwse-resize;\n }\n\n/* ---- bottom panel ------------------------------------------------------- */\n.jie-panel {\n display: flex;\n flex-direction: column;\n gap: 14px;\n align-items: center;\n padding: 14px 16px 20px;\n border-top: 1px solid var(--jie-border);\n background: var(--jie-surface);\n}\n\n/* a row of equal-height controls, centred on a shared baseline */\n.jie-toolrow {\n display: flex;\n flex-wrap: wrap;\n gap: var(--jie-gap-sm);\n align-items: center;\n justify-content: center;\n}\n\n/* a row of labelled (label-above) fields; inputs and buttons share a height,\n so aligning their bottoms keeps everything tidy */\n.jie-fieldrow {\n display: flex;\n flex-wrap: wrap;\n gap: var(--jie-gap);\n align-items: flex-end;\n justify-content: center;\n}\n\n.jie-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n font-size: var(--jie-font-sm);\n color: var(--jie-text-dim);\n}\n\n.jie-input,\n.jie-select {\n height: var(--jie-control-h);\n width: 120px;\n padding: 0 var(--jie-control-px);\n font: inherit;\n font-size: var(--jie-font-md);\n color: var(--jie-text);\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n}\n\n:is(.jie-input,.jie-select):focus {\n outline: 2px solid var(--jie-accent-soft);\n border-color: var(--jie-accent);\n }\n\n/* native colour input, normalised to the control height as a rounded swatch */\n/* colour picker: a swatch button that opens a popover of preset swatches */\n.jie-colorpicker {\n position: relative;\n display: inline-flex;\n}\n\n/* the trigger swatch (shows the current colour via inline `background`) */\n.jie-color {\n width: var(--jie-control-h);\n height: var(--jie-control-h);\n padding: 0;\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n box-shadow: inset 0 0 0 2px var(--jie-bg);\n cursor: pointer;\n}\n\n.jie-popover__backdrop {\n position: fixed;\n inset: 0;\n z-index: 50;\n}\n\n.jie-popover {\n position: absolute;\n bottom: calc(100% + 8px);\n left: 50%;\n transform: translateX(-50%);\n z-index: 51;\n padding: 10px;\n background: var(--jie-surface);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius);\n box-shadow: var(--jie-shadow);\n}\n\n.jie-swatches {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: 8px;\n}\n\n/* 3\xd73 position anchor grid */\n.jie-posgrid {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 2px;\n padding: 3px;\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n}\n\n.jie-posgrid__cell {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 22px;\n height: 22px;\n padding: 0;\n color: var(--jie-text-dim);\n background: transparent;\n border: 0;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.jie-posgrid__cell .jie-icon {\n width: 16px;\n height: 16px;\n }\n\n.jie-posgrid__cell:hover {\n background: var(--jie-accent-soft);\n color: var(--jie-text);\n }\n\n.jie-posgrid__cell[aria-pressed='true'] {\n background: var(--jie-accent);\n color: #fff;\n }\n\n/* font selector */\n.jie-fontselect {\n position: relative;\n display: inline-flex;\n}\n\n.jie-fontselect__trigger {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: var(--jie-control-h);\n min-width: 130px;\n padding: 0 10px;\n font: inherit;\n font-size: var(--jie-font-md);\n color: var(--jie-text);\n background: var(--jie-bg);\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n}\n\n.jie-fontselect__trigger > span {\n flex: 1;\n text-align: left;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n.jie-fontselect__trigger .jie-icon {\n width: 16px;\n height: 16px;\n color: var(--jie-text-dim);\n flex: none;\n }\n\n.jie-fontlist {\n min-width: 180px;\n max-height: 260px;\n overflow-y: auto;\n padding: 6px;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.jie-fontlist__item {\n padding: 8px 10px;\n font-size: 15px;\n text-align: left;\n color: var(--jie-text);\n background: transparent;\n border: 0;\n border-radius: var(--jie-radius-sm);\n cursor: pointer;\n}\n\n.jie-fontlist__item:hover {\n background: var(--jie-accent-soft);\n }\n\n.jie-fontlist__item[aria-pressed='true'] {\n color: var(--jie-accent);\n background: var(--jie-accent-soft);\n }\n\n.jie-swatch {\n width: 28px;\n height: 28px;\n padding: 0;\n border: 1px solid var(--jie-border);\n border-radius: var(--jie-radius-sm);\n box-shadow: inset 0 0 0 2px var(--jie-surface);\n cursor: pointer;\n transition:\n transform 0.1s ease,\n box-shadow 0.1s ease;\n}\n\n.jie-swatch:hover {\n transform: scale(1.08);\n }\n\n.jie-swatch[aria-pressed='true'] {\n box-shadow:\n inset 0 0 0 2px var(--jie-surface),\n 0 0 0 2px var(--jie-accent);\n }\n\n/* slider — the whole control occupies the shared height and centres its track */\n.jie-slider {\n display: flex;\n align-items: center;\n gap: 10px;\n height: var(--jie-control-h);\n width: clamp(180px, 28vw, 300px);\n}\n\n.jie-slider__label {\n font-size: var(--jie-font-sm);\n color: var(--jie-text-dim);\n white-space: nowrap;\n}\n\n.jie-slider__value {\n min-width: 2.5ch;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-weight: 600;\n}\n\n/*\n * Fully custom range so it looks identical across evergreen browsers (the\n * native `accent-color` only themes the colour, not the track/thumb shapes).\n * The filled portion is driven by `--jie-range-fill` (set per render by the\n * slider component) on WebKit, and by the native `::-moz-range-progress` on\n * Firefox.\n */\n.jie-range {\n --jie-range-fill: 50%;\n appearance: none;\n flex: 1;\n min-width: 0;\n height: 16px; /* hit area */\n background: transparent;\n cursor: pointer;\n}\n.jie-range::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 999px;\n background: linear-gradient(\n to right,\n var(--jie-accent) var(--jie-range-fill),\n var(--jie-border) var(--jie-range-fill)\n );\n }\n.jie-range::-webkit-slider-thumb {\n appearance: none;\n margin-top: -6px; /* centre the 16px thumb on the 4px track */\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: var(--jie-accent);\n border: 2px solid var(--jie-bg);\n box-shadow: 0 1px 3px rgba(20, 24, 40, 0.25);\n }\n.jie-range::-moz-range-track {\n height: 4px;\n border-radius: 999px;\n background: var(--jie-border);\n }\n.jie-range::-moz-range-progress {\n height: 4px;\n border-radius: 999px;\n background: var(--jie-accent);\n }\n.jie-range::-moz-range-thumb {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: var(--jie-accent);\n border: 2px solid var(--jie-bg);\n box-shadow: 0 1px 3px rgba(20, 24, 40, 0.25);\n }\n.jie-range:focus-visible {\n outline: none;\n }\n.jie-range:focus-visible::-webkit-slider-thumb {\n box-shadow: 0 0 0 4px var(--jie-accent-soft);\n }\n.jie-range:focus-visible::-moz-range-thumb {\n box-shadow: 0 0 0 4px var(--jie-accent-soft);\n }\n\n/* filter thumbnails */\n.jie-thumbs {\n display: flex;\n gap: 12px;\n width: 100%;\n padding-bottom: 4px;\n overflow-x: auto;\n justify-content: flex-start;\n}\n\n.jie-thumb {\n display: flex;\n flex-direction: column;\n gap: 6px;\n align-items: center;\n padding: 4px;\n font-size: 12px;\n color: var(--jie-text-dim);\n background: transparent;\n border: 0;\n cursor: pointer;\n}\n\n.jie-thumb canvas,.jie-thumb .jie-thumb__swatch {\n width: 76px;\n height: 56px;\n border-radius: var(--jie-radius-sm);\n border: 2px solid transparent;\n object-fit: cover;\n background: var(--jie-stage);\n }\n\n.jie-thumb[aria-pressed='true'] {\n color: var(--jie-accent);\n }\n\n.jie-thumb[aria-pressed='true'] canvas,.jie-thumb[aria-pressed='true'] .jie-thumb__swatch {\n border-color: var(--jie-accent);\n }\n\n/* ---- responsive / mobile ------------------------------------------------ */\n@media (max-width: 720px) {\n .jie {\n --jie-rail-w: 100%;\n }\n\n .jie-topbar__meta {\n display: none;\n }\n\n .jie-body {\n flex-direction: column-reverse;\n }\n\n .jie-rail {\n flex-direction: row;\n width: 100%;\n border-right: 0;\n border-top: 1px solid var(--jie-border);\n overflow-x: auto;\n }\n\n .jie-tab {\n flex: 0 0 auto;\n min-width: 72px;\n }\n\n .jie-canvas-wrap {\n margin: 10px;\n }\n\n .jie-input {\n width: 100px;\n }\n}\n\n@media (hover: none) {\n .jie-crop__handle {\n width: 22px;\n height: 22px;\n }\n}")),document.head.appendChild(o)}}catch(e){}let r=Object.freeze([{label:"Arial",value:"Arial, Helvetica, sans-serif"},{label:"Helvetica",value:"Helvetica, Arial, sans-serif"},{label:"Verdana",value:"Verdana, Geneva, sans-serif"},{label:"Tahoma",value:"Tahoma, Geneva, sans-serif"},{label:"Trebuchet MS",value:'"Trebuchet MS", Helvetica, sans-serif'},{label:"Times New Roman",value:'"Times New Roman", Times, serif'},{label:"Georgia",value:'Georgia, "Times New Roman", serif'},{label:"Courier New",value:'"Courier New", Courier, monospace'},{label:"Impact",value:"Impact, Haettenschweiler, sans-serif"}]),s=Object.freeze({brightness:0,contrast:0,saturation:0,warmth:0,blur:0}),a=Object.freeze(["#ffffff","#1a1a1a","#9e9689","#4a90e2","#54b98a","#f2c94c","#eb5757","#a29bfe","#8b5cf6","#f178b6","#f2994a","#b8e454","#7ec8f0","#5b6470","#d8d2c8","#eeeeee"]);function l(){return{flip:{horizontal:!1,vertical:!1},rotate:0,angle:0,crop:null,resize:null,finetune:{...s},filter:"original",annotations:[],focus:null}}function c(){return{source:null,status:"idle",busyVisible:!1,error:null,activeTab:"adjust",activeTool:"crop",zoom:1,history:{entries:[l()],index:0},selectedAnnotationId:null,theme:"light",showToolbar:!0,locale:"en",minCropSize:8,minResizeSize:1,palette:[...a],fonts:r.map(e=>({...e})),activePopover:null,viewport:null}}function d(e){let t=e.entries[e.index];if(void 0===t)throw RangeError(`history index ${e.index} is out of bounds`);return t}function u(e,t){let i=e.entries.slice(0,e.index+1);i.push(t);let n=Math.max(0,i.length-100),o=n>0?i.slice(n):i;return{entries:o,index:o.length-1}}function h(e,t){let i=Math.min(Math.max(t,0),e.entries.length-1);return i===e.index?e:{...e,index:i}}function p(e,t){var i,n,o,r,s,a;let c=e;if(void 0!==t.activeTab&&(c=f(c,{activeTab:t.activeTab})),void 0!==t.activeTool&&(c=f(c,{activeTool:t.activeTool})),void 0!==t.zoom&&(c=f(c,{zoom:!Number.isFinite(r=t.zoom)||r<=0?1:Math.min(Math.max(r,.01),64)})),void 0!==t.theme&&(c=f(c,{theme:t.theme})),void 0!==t.showToolbar&&(c=f(c,{showToolbar:t.showToolbar})),void 0!==t.locale&&(c=f(c,{locale:t.locale})),void 0!==t.minCropSize&&(c=f(c,{minCropSize:Math.max(1,t.minCropSize)})),void 0!==t.minResizeSize&&(c=f(c,{minResizeSize:Math.max(1,t.minResizeSize)})),void 0!==t.palette&&(c=f(c,{palette:t.palette})),void 0!==t.fonts&&(c=f(c,{fonts:t.fonts})),void 0!==t.activePopover&&(c=f(c,{activePopover:t.activePopover})),void 0!==t.status&&(c=f(c,{status:t.status}),"exporting"!==t.status&&c.busyVisible&&(c=f(c,{busyVisible:!1}))),void 0!==t.busyVisible&&(c=f(c,{busyVisible:t.busyVisible})),void 0!==t.error&&(c=f(c,{error:t.error})),void 0!==t.source&&(c=f(c,{source:t.source})),void 0!==t.viewport&&(c=f(c,{viewport:t.viewport})),void 0!==t.selectedAnnotationId&&(c=f(c,{selectedAnnotationId:t.selectedAnnotationId})),t.resetHistory&&(c=f(c,{history:{entries:[l()],index:0}})),t.resetDesign&&(c=f(c,{history:u(c.history,l())})),void 0!==t.design){let e,n=(s=d(c.history),a=t.design,{...s,...a,flip:a.flip?{...s.flip,...a.flip}:s.flip,finetune:a.finetune?{...s.finetune,...a.finetune}:s.finetune,rotate:void 0!==a.rotate?(90*Math.round(a.rotate/90)%360+360)%360:s.rotate}),o=!1===t.commit?((e=(i=c.history).entries.slice())[i.index]=n,{entries:e,index:i.index}):u(c.history,n);c=f(c,{history:o})}if(void 0!==t.history){let e=t.history,i="step"in e?(n=c.history,o=e.step,h(n,n.index+o)):h(c.history,e.index);c=f(c,{history:i})}return c}function f(e,t){for(let i of Object.keys(t))if(e[i]!==t[i])return{...e,...t};return e}class m{request(e){this.pending=e,null===this.handle&&(this.handle=this.schedule(()=>this.flush()))}flush(){null!==this.handle&&(this.clear(this.handle),this.handle=null);let e=this.pending;this.pending=null,e&&e()}cancel(){null!==this.handle&&(this.clear(this.handle),this.handle=null),this.pending=null}constructor(e,t){n(this,"pending",null),n(this,"handle",null),this.schedule=e,this.clear=t}}class g{request(e){this.pending=e,this.flush()}flush(){let e=this.pending;this.pending=null,e&&e()}cancel(){this.pending=null}constructor(){n(this,"pending",null)}}class v{getState(){return this.state}update(e){let t=this.reducer(this.state,e);return t!==this.state&&(this.state=t,this.scheduler.request(()=>this.notify())),this.state}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}flush(){this.scheduler.flush()}destroy(){this.scheduler.cancel(),this.listeners.clear()}notify(){if(!this.notifying){this.notifying=!0;try{for(let e of this.listeners)e(this.state)}finally{this.notifying=!1}}}constructor(e={}){var t,i,o;n(this,"state",void 0),n(this,"reducer",void 0),n(this,"scheduler",void 0),n(this,"listeners",new Set),n(this,"notifying",!1),this.state=null!=(t=e.initialState)?t:c(),this.reducer=null!=(i=e.reducer)?i:p,this.scheduler=null!=(o=e.scheduler)?o:new g}}function b(e,t,i){return Math.min(Math.max(e,t),i)}function y(e,t){let i=b(e.width,1,t.width),n=b(e.height,1,t.height);return{x:b(e.x,0,t.width-i),y:b(e.y,0,t.height-n),width:i,height:n}}function w(e){return d(e.history)}function _(e){return"adjust"===e.activeTab&&"crop"===e.activeTool}function k(e){let t=w(e);return _(e)?{...t,crop:null,angle:0}:t}function C(e){return e.history.index>0}function S(e){var t;return(t=e.history).index<t.entries.length-1}function x(e){return e.history.index>0||e.history.entries.length>1}function I(e){if(!e.source)return null;let t=w(e),{width:i,height:n}=e.source;return 90===t.rotate||270===t.rotate?{width:n,height:i}:{width:i,height:n}}function E(e){let t=w(e);return t.resize?t.resize:t.crop?{width:Math.round(t.crop.width),height:Math.round(t.crop.height)}:I(e)}function T(e){return _(e)?I(e):E(e)}function j(e){let t,i,n,o=T(e);if(!o||!e.viewport)return null;let r={width:Math.max(1,e.viewport.width-88),height:Math.max(1,e.viewport.height-88)},s=(t=Math.min(r.width/o.width,r.height/o.height)||0,i=o.width*t,n=o.height*t,{scale:t,width:i,height:n,offsetX:(r.width-i)/2,offsetY:(r.height-n)/2}).scale*e.zoom,a=o.width*s,l=o.height*s;return{scale:s,width:a,height:l,offsetX:(e.viewport.width-a)/2,offsetY:(e.viewport.height-l)/2,content:o}}function D(e){return w(e).angle}function A(e){let t=w(e);if(t.crop)return t.crop;let i=I(e);return i?{x:0,y:0,width:i.width,height:i.height}:null}let L=Object.freeze(Object.defineProperty({__proto__:null,VIEWPORT_PADDING:44,selectCanRedo:S,selectCanUndo:C,selectCropAngle:D,selectDesign:w,selectEffectiveCrop:A,selectIsCropping:_,selectIsDirty:x,selectOrientedSize:I,selectOutputSize:E,selectPreviewContentSize:T,selectPreviewDesign:k,selectViewportFit:j},Symbol.toStringTag,{value:"Module"})),P=Math.PI/180,M={nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]};function z(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function R(e,t,i,n){let o=z(e),r=t*P,s=Math.cos(r),a=Math.sin(r),l=i*e.width/2,c=n*e.height/2;return{x:o.x+l*s-c*a,y:o.y+l*a+c*s}}function B(e,t,i,n){return Math.atan2(n-t,i-e)/P}function N(e,t,i){F(e,"width"),F(t,"height");let n=e*t*4;if(i&&i.length!==n)throw RangeError(`data length ${i.length} does not match ${e}x${t} (${n})`);return{width:e,height:t,data:null!=i?i:new Uint8ClampedArray(n)}}function O(e,t,i){return(i*e.width+t)*4}function F(e,t){if(!Number.isInteger(e)||e<=0)throw RangeError(`${t} must be a positive integer, got ${e}`)}function H(e,t){let i=N(e.width,e.height),{width:n,height:o}=e;for(let r=0;r<o;r++)for(let s=0;s<n;s++)q(e,O(e,"horizontal"===t?n-1-s:s,"vertical"===t?o-1-r:r),i,O(i,s,r));return i}function U(e,t){let i=Math.max(1,Math.round(t.width)),n=Math.max(1,Math.round(t.height));if(i===e.width&&n===e.height)return N(i,n,new Uint8ClampedArray(e.data));let o=e;for(;o.width>=2*i;)o=function(e){let t=Math.ceil(e.width/2),i=N(t,e.height);for(let n=0;n<e.height;n++)for(let o=0;o<t;o++){let t=O(e,2*o,n),r=O(e,Math.min(2*o+1,e.width-1),n),s=O(i,o,n);for(let n=0;n<4;n++)i.data[s+n]=(e.data[t+n]+e.data[r+n])/2}return i}(o);for(;o.height>=2*n;)o=function(e){let t=Math.ceil(e.height/2),i=N(e.width,t);for(let n=0;n<t;n++)for(let t=0;t<e.width;t++){let o=O(e,t,2*n),r=O(e,t,Math.min(2*n+1,e.height-1)),s=O(i,t,n);for(let t=0;t<4;t++)i.data[s+t]=(e.data[o+t]+e.data[r+t])/2}return i}(o);return o.width===i&&o.height===n?N(i,n,new Uint8ClampedArray(o.data)):function(e,t,i){let n=N(t,i),o=e.width/t,r=e.height/i;for(let u=0;u<i;u++){let i=(u+.5)*r-.5,h=Math.floor(i),p=i-h,f=V(h,e.height),m=V(h+1,e.height);for(let i=0;i<t;i++){let t=(i+.5)*o-.5,r=Math.floor(t),h=t-r,g=V(r,e.width),v=V(r+1,e.width),b=O(e,g,f),y=O(e,v,f),w=O(e,g,m),_=O(e,v,m),k=O(n,i,u);for(let t=0;t<4;t++){var s,a,l,c,d;let i=(s=e.data[b+t],a=e.data[y+t],s+(a-s)*h),o=(l=e.data[w+t],c=e.data[_+t],l+(c-l)*h);n.data[k+t]=(d=i)+(o-d)*p}}}return n}(o,i,n)}function q(e,t,i,n){i.data[n]=e.data[t],i.data[n+1]=e.data[t+1],i.data[n+2]=e.data[t+2],i.data[n+3]=e.data[t+3]}function V(e,t){return e<0?0:e>=t?t-1:e}function W(e,t){let i=N(e.width,e.height,new Uint8ClampedArray(e.data));for(let e=0;e<i.data.length;e+=4)i.data[e]=t(i.data[e],0),i.data[e+1]=t(i.data[e+1],1),i.data[e+2]=t(i.data[e+2],2);return i}function $(e,t){if(0===t)return ee(e);let i=t/100*255;return W(e,e=>e+i)}function G(e,t){if(0===t)return ee(e);let i=t/100*255,n=259*(i+255)/(255*(259-i));return W(e,e=>n*(e-128)+128)}function K(e,t){if(0===t)return ee(e);let i=1+t/100,n=N(e.width,e.height,new Uint8ClampedArray(e.data));for(let e=0;e<n.data.length;e+=4){let t=n.data[e],o=n.data[e+1],r=n.data[e+2],s=.299*t+.587*o+.114*r;n.data[e]=s+(t-s)*i,n.data[e+1]=s+(o-s)*i,n.data[e+2]=s+(r-s)*i}return n}function Y(e,t){if(0===t)return ee(e);let i=t/100*40;return W(e,(e,t)=>0===t?e+i:2===t?e-i:e)}function J(e,t,i=20){let n=Math.round(Math.max(0,Math.min(100,t))/100*i);return n<=0?ee(e):Z(Z(e,n,"horizontal"),n,"vertical")}function X(e,t){let i=e;return J(i=Y(i=K(i=G(i=$(i,t.brightness),t.contrast),t.saturation),t.warmth),t.blur)}function Z(e,t,i){let n=N(e.width,e.height),{width:o,height:r,data:s}=e,a="horizontal"===i,l=a?r:o,c=a?o:r,d=2*t+1;for(let e=0;l>e;e++)for(let i=0;i<4;i++){let l=0;for(let n=-t;t>=n;n++)l+=Q(s,o,r,a,e,n,i);for(let u=0;c>u;u++){let c=(a?e*o+u:u*o+e)*4+i;n.data[c]=l/d;let h=Q(s,o,r,a,e,u-t,i);l+=Q(s,o,r,a,e,u+t+1,i)-h}}return n}function Q(e,t,i,n,o,r,s){let a=(n?t:i)-1,l=r<0?0:r>a?a:r;return e[(n?o*t+l:l*t+o)*4+s]}function ee(e){return N(e.width,e.height,new Uint8ClampedArray(e.data))}function et(e,t){let i=N(e.width,e.height,new Uint8ClampedArray(e.data));for(let e=0;e<i.data.length;e+=4){let[n,o,r]=t(i.data[e],i.data[e+1],i.data[e+2]);i.data[e]=n,i.data[e+1]=o,i.data[e+2]=r}return i}Object.freeze(Object.defineProperty({__proto__:null,applyFinetune:X,blur:J,brightness:$,contrast:G,saturation:K,warmth:Y},Symbol.toStringTag,{value:"Module"}));let ei=e=>N(e.width,e.height,new Uint8ClampedArray(e.data)),en=new Map;function eo(e){return en.set(e.id,e),()=>{en.get(e.id)===e&&en.delete(e.id)}}function er(e,t){let i=en.get(t);return i?i.apply(e):ei(e)}function es(e){return new ImageData(e.data,e.width,e.height)}[{id:"original",label:"Original",apply:ei},{id:"invert",label:"Invert",apply:e=>et(e,(e,t,i)=>[255-e,255-t,255-i])},{id:"grayscale",label:"Black & White",apply:e=>et(e,(e,t,i)=>{let n=.299*e+.587*t+.114*i;return[n,n,n]})},{id:"sepia",label:"Sepia",apply:e=>et(e,(e,t,i)=>[.393*e+.769*t+.189*i,.349*e+.686*t+.168*i,.272*e+.534*t+.131*i])},{id:"solarize",label:"Solarize",apply:e=>et(e,(e,t,i)=>[e<128?e:255-e,t<128?t:255-t,i<128?i:255-i])},{id:"clarendon",label:"Clarendon",apply:e=>Y(K(G(e,20),25),-10)},{id:"gingham",label:"Gingham",apply:e=>Y(K(G(e,-10),-15),12)}].forEach(eo);class ea{register(e){let t=this.locales.get(e.id);return this.locales.set(e.id,{...null!=t?t:{},...e.messages}),()=>{t?this.locales.set(e.id,t):this.locales.delete(e.id)}}has(e){return this.locales.has(e)}get(e){return this.locales.get(e)}list(){return[...this.locales.keys()]}translator(e){var t;return function(e={},t={}){return(i,n)=>{var o,r;let s=null!=(o=null!=(r=e[i])?r:t[i])?o:i;return n?s.replace(/\{(\w+)\}/g,(e,t)=>t in n?String(n[t]):e):s}}(null!=(t=this.locales.get(e))?t:{})}constructor(){n(this,"locales",new Map)}}let el=new Set(["value","checked","disabled","selected","innerHTML"]);function ec(e,t={},i=[]){return{kind:"element",tag:e,key:t.key,props:t,children:function(e){let t=Array.isArray(e)?e:[e],i=[];for(let e of t)null!=e&&!1!==e&&!0!==e&&i.push("object"==typeof e?e:{kind:"text",text:String(e)});return i}(i)}}function ed(e){return"element"===e.kind}let eu={};class eh{render(e){if(null===this.prev){let t=this.mount(e);this.host.insert(this.container,t,null)}else if(ep(this.prev,e))this.patch(this.prev,e);else{let t=this.mount(e),i=this.prev.node;this.host.insert(this.container,t,this.host.nextSibling(i)),this.host.remove(this.container,i)}this.prev=e}unmount(){this.prev&&(this.host.remove(this.container,this.prev.node),this.prev=null)}mount(e){if(!ed(e)){let t=this.host.createText(e.text);return e.node=t,t}let t=this.host.createElement(e.tag);for(let i of(e.node=t,this.applyProps(t,eu,e.props),e.children))this.host.insert(t,this.mount(i),null);return t}patch(e,t){let i=e.node;return(t.node=i,ed(t)&&ed(e))?(this.applyProps(i,e.props,t.props),this.patchChildren(i,e.children,t.children)):ed(t)||t.text===e.text||this.host.setText(i,t.text),i}applyProps(e,t,i){var n,o,r,s;for(let a of(this.applyClass(e,t.class,i.class),this.applyStyle(e,null!=(n=t.style)?n:{},null!=(o=i.style)?o:{}),this.applyEvents(e,null!=(r=t.on)?r:{},null!=(s=i.on)?s:{}),Object.keys(i))){if(ef(a))continue;let n=i[a];n!==t[a]&&this.applyAttr(e,a,n)}for(let n of Object.keys(t))ef(n)||n in i||(el.has(n)?this.host.setProperty(e,n,""):this.host.removeAttribute(e,n))}applyAttr(e,t,i){var n;el.has(t)?this.host.setProperty(e,t,i):!1===i||null==i?this.host.removeAttribute(e,t):this.host.setAttribute(e,t,!0===i?"":"string"==typeof i?i:"number"==typeof i||"boolean"==typeof i||"bigint"==typeof i?String(i):null!=(n=JSON.stringify(i))?n:"")}applyClass(e,t,i){t!==i&&(i?this.host.setAttribute(e,"class",i):this.host.removeAttribute(e,"class"))}applyStyle(e,t,i){for(let n of Object.keys(i))i[n]!==t[n]&&this.host.setStyle(e,n,String(i[n]));for(let n of Object.keys(t))n in i||this.host.removeStyle(e,n)}applyEvents(e,t,i){let n=this.events.get(e);for(let o of Object.keys(t))!(o in i)&&(null==n?void 0:n.has(o))&&(this.host.removeEventListener(e,o,n.get(o).wrapper),n.delete(o));for(let t of Object.keys(i)){let o=i[t],r=null==n?void 0:n.get(t);if(r){r.handler=o;continue}n||(n=new Map,this.events.set(e,n));let s={handler:o,wrapper:e=>s.handler(e)};n.set(t,s),this.host.addEventListener(e,t,s.wrapper)}}patchChildren(e,t,i){let n=0,o=t.length-1,r=0,s=i.length-1,a=null;for(;n<=o&&r<=s;){let l=t[n],c=t[o],d=i[r],u=i[s];if(ep(l,d)){this.patch(l,d),n++,r++;continue}if(ep(c,u)){this.patch(c,u),o--,s--;continue}if(ep(l,u)){this.patch(l,u),this.host.insert(e,l.node,this.host.nextSibling(c.node)),n++,s--;continue}if(ep(c,d)){this.patch(c,d),this.host.insert(e,c.node,l.node),o--,r++;continue}null!=a||(a=function(e,t,i){let n=new Map;for(let o=t;o<=i;o++){let t=e[o].key;void 0!==t&&n.set(t,o)}return n}(t,n,o));let h=void 0!==d.key?a.get(d.key):void 0;if(void 0===h)this.host.insert(e,this.mount(d),l.node);else{let i=t[h];this.patch(i,d),i.node=void 0,this.host.insert(e,d.node,l.node)}r++}if(n>o){var l,c;let t=null!=(l=null==(c=i[s+1])?void 0:c.node)?l:null;for(let n=r;s>=n;n++)this.host.insert(e,this.mount(i[n]),t)}else if(r>s)for(let i=n;o>=i;i++){let n=t[i].node;n&&this.host.remove(e,n)}}constructor(e,t){n(this,"events",new WeakMap),n(this,"prev",null),this.host=e,this.container=t}}function ep(e,t){return e.kind===t.kind&&("text"===e.kind||e.tag===t.tag&&e.key===t.key)}function ef(e){return"key"===e||"class"===e||"style"===e||"on"===e}class em{createElement(e){return this.doc.createElement(e)}createText(e){return this.doc.createTextNode(e)}setText(e,t){e.textContent=t}insert(e,t,i){e.insertBefore(t,i)}remove(e,t){t.parentNode===e&&e.removeChild(t)}parent(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i){e.setAttribute(t,i)}removeAttribute(e,t){e.removeAttribute(t)}setProperty(e,t,i){e[t]=i}setStyle(e,t,i){e.style.setProperty(t,i)}removeStyle(e,t){e.style.removeProperty(t)}addEventListener(e,t,i){e.addEventListener(t,i)}removeEventListener(e,t,i){e.removeEventListener(t,i)}constructor(e=document){this.doc=e}}class eg{register(e){var t;return this.tools.set(e.id,e),this.order.set(e.id,null!=(t=e.order)?t:eg.UNORDERED_BASE+this.seq++),()=>{this.tools.get(e.id)===e&&(this.tools.delete(e.id),this.order.delete(e.id))}}get(e){return this.tools.get(e)}has(e){return this.tools.has(e)}list(){return[...this.tools.values()].sort((e,t)=>{var i,n;return(null!=(i=this.order.get(e.id))?i:0)-(null!=(n=this.order.get(t.id))?n:0)})}first(){return this.list()[0]}constructor(){n(this,"tools",new Map),n(this,"seq",0),n(this,"order",new Map)}}function ev(e){return ec("span",{class:"jie-icon",innerHTML:e})}function eb(){return ec("span",{class:"jie-spinner"})}function ey(e){var t,i,n;let o=["jie-btn"];"primary"===e.variant&&o.push("jie-btn--primary"),"icon"===e.variant&&o.push("jie-btn--icon"),e.active&&o.push("jie-btn--active"),e.busy&&o.push("jie-btn--busy"),e.className&&o.push(e.className);let r=[];return e.busy?r.push(eb()):e.icon&&r.push(ev(e.icon)),e.label&&r.push(ec("span",{},e.label)),ec("button",{key:e.key,class:o.join(" "),type:"button",disabled:null!=(t=e.disabled)&&t,title:null!=(i=null!=(n=e.title)?n:e.label)?i:"",on:{click:e.onClick}},r)}function ew(e){var t;let i=e.onStart,n={input:t=>e.onInput(Number(t.target.value))};i&&(n.pointerdown=()=>i());let o=e.max-e.min||1,r=Math.min(100,Math.max(0,(e.value-e.min)/o*100));return ec("div",{class:"jie-slider"},[ec("span",{class:"jie-slider__label"},e.label),ec("input",{class:"jie-range",type:"range",min:String(e.min),max:String(e.max),step:String(null!=(t=e.step)?t:1),value:String(e.value),style:{"--jie-range-fill":`${r}%`},on:n}),ec("span",{class:"jie-slider__value"},String(Math.round(e.value)))])}function e_(e){return ec("label",{class:"jie-field"},[ec("span",{},e.label),ec("span",{style:{display:"flex","align-items":"center",gap:"6px"}},[ec("input",{class:"jie-input",type:"number",value:String(e.value),on:{change:t=>{let i=Number(t.target.value);Number.isFinite(i)&&e.onChange(i)}}}),e.suffix?ec("span",{},e.suffix):null])])}function ek(e,t,i){return ec("div",{class:"jie-toolrow"},e.map(e=>ey({key:e.id,label:e.label,icon:e.icon,active:e.id===t,onClick:()=>i(e.id)})))}n(eg,"UNORDERED_BASE",1e6);let eC=e=>`<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,eS={adjust:eC('<path d="M4 8h2M9 8h11M4 16h11M18 16h2"/><circle cx="7.5" cy="8" r="1.6"/><circle cx="16.5" cy="16" r="1.6"/>'),finetune:eC('<path d="M4 7h12M4 12h16M4 17h8"/><circle cx="18" cy="7" r="1.6"/><circle cx="12" cy="17" r="1.6"/>'),filters:eC('<circle cx="9" cy="9" r="5"/><circle cx="15" cy="9" r="5"/><circle cx="12" cy="15" r="5"/>'),watermark:eC('<rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 15l5-4 4 3 3-2 6 4"/><circle cx="8.5" cy="9.5" r="1.4"/>'),annotate:eC('<path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/>'),resize:eC('<path d="M9 3H5a2 2 0 0 0-2 2v4M21 15v4a2 2 0 0 1-2 2h-4"/><path d="M8 16l8-8M16 8h-4M16 8v4"/>'),crop:eC('<path d="M6 2v14a2 2 0 0 0 2 2h14"/><path d="M2 6h14a2 2 0 0 1 2 2v14"/>'),rotate:eC('<path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/>'),flipX:eC('<path d="M12 3v18"/><path d="M8 7 4 12l4 5Z"/><path d="M16 7l4 5-4 5Z"/>'),flipY:eC('<path d="M3 12h18"/><path d="M7 8 12 4l5 4Z"/><path d="M7 16l5 4 5-4Z"/>'),undo:eC('<path d="M9 7 4 12l5 5"/><path d="M4 12h11a5 5 0 0 1 0 10h-1"/>'),redo:eC('<path d="m15 7 5 5-5 5"/><path d="M20 12H9a5 5 0 0 0 0 10h1"/>'),reset:eC('<path d="M3 12a9 9 0 1 1 2.6 6.3"/><path d="M3 21v-5h5"/>'),trash:eC('<path d="M4 7h16M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13M10 11v6M14 11v6"/>'),plus:eC('<path d="M12 5v14M5 12h14"/>'),minus:eC('<path d="M5 12h14"/>'),zoomIn:eC('<circle cx="10.5" cy="10.5" r="7.5"/><path d="M21 21l-5.2-5.2M10.5 7.5v6M7.5 10.5h6"/>'),zoomOut:eC('<circle cx="10.5" cy="10.5" r="7.5"/><path d="M21 21l-5.2-5.2M7.5 10.5h6"/>'),posTopLeft:eC('<path d="M17 17 7 7M7 13V7h6"/>'),posTop:eC('<path d="M12 19V6M7 11l5-5 5 5"/>'),posTopRight:eC('<path d="M7 17 17 7M11 7h6v6"/>'),posLeft:eC('<path d="M19 12H6M11 7l-5 5 5 5"/>'),posCenter:eC('<circle cx="12" cy="12" r="6.5"/><circle cx="12" cy="12" r="2" fill="currentColor" stroke="none"/>'),posRight:eC('<path d="M5 12h13M13 7l5 5-5 5"/>'),posBottomLeft:eC('<path d="M17 7 7 17M7 11v6h6"/>'),posBottom:eC('<path d="M12 5v13M7 13l5 5 5-5"/>'),posBottomRight:eC('<path d="M7 7l10 10M17 11v6h-6"/>'),font:eC('<path d="M4 20 9.5 6h1L16 20M6 15h8M17 20l3-9h.5l3 9M18 17h4"/>'),focus:eC('<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3.5"/>'),lock:eC('<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>'),unlock:eC('<rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V7a4 4 0 0 1 7.5-2"/>'),text:eC('<path d="M5 5h14M12 5v14M9 19h6"/>'),brightness:eC('<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19"/>'),contrast:eC('<circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 0 0 18Z" fill="currentColor" stroke="none"/>'),blur:eC('<path d="M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11Z"/>'),book:eC('<path d="M4 5a2 2 0 0 1 2-2h5v18H6a2 2 0 0 1-2-2Z"/><path d="M20 5a2 2 0 0 0-2-2h-5v18h5a2 2 0 0 0 2-2Z"/>')},ex={id:"adjust",label:"Adjust",icon:eS.adjust,order:0,defaultTool:"crop",renderPanel({state:e,update:t,t:i}){let n=w(e),o=_(e);return ec("div",{class:"jie-toolrow"},[ey({label:i("Crop"),icon:eS.crop,active:o,onClick:()=>t({activeTab:"adjust",activeTool:o?null:"crop"})}),ey({label:i("Rotate"),icon:eS.rotate,onClick:()=>t({design:{rotate:n.rotate+90}})}),ey({label:i("Flip X"),icon:eS.flipX,onClick:()=>t({design:{flip:{horizontal:!n.flip.horizontal}}})}),ey({label:i("Flip Y"),icon:eS.flipY,onClick:()=>t({design:{flip:{vertical:!n.flip.vertical}}})})])}},eI=[{id:"brightness",label:"Brightness",icon:eS.brightness,min:-100,max:100},{id:"contrast",label:"Contrast",icon:eS.contrast,min:-100,max:100},{id:"saturation",label:"Saturation",icon:eS.filters,min:-100,max:100},{id:"blur",label:"Blur",icon:eS.blur,min:0,max:100},{id:"warmth",label:"Warmth",icon:eS.brightness,min:-100,max:100}],eE={id:"finetune",label:"Finetune",icon:eS.finetune,order:1,defaultTool:"brightness",renderPanel({state:e,update:t,t:i}){var n,o;let r=(n=e.activeTool,null!=(o=eI.find(e=>e.id===n))?o:eI[0]),s=w(e).finetune[r.id],a=(e,i)=>{t({design:{finetune:{[r.id]:e}},commit:i})};return ec("div",{class:"jie-panel-stack",style:{display:"contents"}},[ew({label:i(r.label),value:s,min:r.min,max:r.max,onStart:()=>a(s,!0),onInput:e=>a(e,!1)}),ek(eI.map(e=>({id:e.id,label:i(e.label),icon:e.icon})),r.id,e=>t({activeTab:"finetune",activeTool:e}))])}},eT={id:"filters",label:"Filters",icon:eS.filters,order:2,renderPanel({state:e,update:t,t:i}){let n=w(e).filter;return ec("div",{class:"jie-thumbs"},[...en.values()].map(e=>ec("button",{key:e.id,class:"jie-thumb",type:"button","aria-pressed":String(e.id===n),on:{click:()=>t({design:{filter:e.id}})}},[ec("canvas",{class:"jie-thumb__swatch","data-jie-filter-thumb":e.id}),ec("span",{},i(e.label))])))}},ej={id:"focus",label:"Focus",icon:eS.focus,order:3,defaultTool:"radial",renderPanel({state:e,update:t,t:i}){var n;let o=null!=(n=w(e).focus)?n:{shape:"radial",x:.5,y:.5,radius:.28,angle:0,amount:60},r=null!==w(e).focus,s=(e,i)=>t({design:{focus:{...o,...e}},commit:i});return ec("div",{class:"jie-panel-stack",style:{display:"contents"}},[ec("div",{class:"jie-toolrow"},[ew({label:i("Intensity"),value:o.amount,min:0,max:100,onStart:()=>s({amount:o.amount},!0),onInput:e=>s({amount:e},!1)}),ew({label:i("Radius"),value:Math.round(100*o.radius),min:5,max:90,onStart:()=>s({radius:o.radius},!0),onInput:e=>s({radius:e/100},!1)}),r?ey({variant:"icon",icon:eS.trash,title:i("Reset"),onClick:()=>t({design:{focus:null}})}):null]),ek([{id:"radial",label:i("Radial")},{id:"linear",label:i("Linear")}],o.shape,e=>s({shape:e},!0))])}},eD=[{align:"left",valign:"top",icon:eS.posTopLeft},{align:"center",valign:"top",icon:eS.posTop},{align:"right",valign:"top",icon:eS.posTopRight},{align:"left",valign:"middle",icon:eS.posLeft},{align:"center",valign:"middle",icon:eS.posCenter},{align:"right",valign:"middle",icon:eS.posRight},{align:"left",valign:"bottom",icon:eS.posBottomLeft},{align:"center",valign:"bottom",icon:eS.posBottom},{align:"right",valign:"bottom",icon:eS.posBottomRight}],eA=function(e="id"){let t=0;return()=>`${e}-${++t}`}("jie"),eL="text-color",eP="text-font",eM={id:"annotate",label:"Text",icon:eS.text,order:4,defaultTool:"text",renderPanel({state:e,update:t,t:i}){var n,o,s,a,l,c;let d,u,h,p=w(e),f=p.annotations[0];if(!f)return ec("div",{class:"jie-toolrow"},[ey({label:i("Add text"),icon:eS.text,variant:"primary",onClick:()=>{let e=function(e,t={}){return{id:e,type:"text",text:"Text",x:.5,y:.5,fontSize:.06,fontFamily:r[0].value,color:"#eb5757",bold:!1,italic:!1,align:"center",valign:"middle",...t}}(eA());t({design:{annotations:[e]},selectedAnnotationId:e.id})}})]);let m=e=>{var i,n;return t({design:{annotations:(i=p.annotations,n=f.id,i.map(t=>t.id===n?{...t,...e}:t))}})};return ec("div",{class:"jie-toolrow"},[ec("input",{class:"jie-input",type:"text",value:f.text,on:{input:e=>m({text:e.target.value})}}),(d=(n={value:f.fontFamily,fonts:e.fonts,title:i("Font"),open:e.activePopover===eP,onToggle:()=>t({activePopover:e.activePopover===eP?null:eP}),onPick:e=>{m({fontFamily:e}),t({activePopover:null})}}).fonts.find(e=>e.value===n.value),u=[ec("button",{class:"jie-fontselect__trigger",type:"button",title:null!=(o=n.title)?o:"Font","aria-haspopup":"listbox","aria-expanded":String(n.open),on:{click:()=>n.onToggle()}},[ev(eS.font),ec("span",{style:{"font-family":n.value}},null!=(s=null==d?void 0:d.label)?s:"Font"),ev(eS.book)])],n.open&&u.push(ec("div",{class:"jie-popover__backdrop",on:{click:()=>n.onToggle()}}),ec("div",{class:"jie-popover jie-fontlist",role:"listbox"},n.fonts.map(e=>ec("button",{key:e.value,class:"jie-fontlist__item",type:"button","aria-pressed":String(e.value===n.value),style:{"font-family":e.value},on:{click:()=>n.onPick(e.value)}},e.label)))),ec("div",{class:"jie-fontselect"},u)),(h=[ec("button",{class:"jie-color",type:"button",title:null!=(l=(a={value:f.color,palette:e.palette,title:i("Colour"),open:e.activePopover===eL,onToggle:()=>t({activePopover:e.activePopover===eL?null:eL}),onPick:e=>{m({color:e}),t({activePopover:null})}}).title)?l:"Colour",style:{background:a.value},"aria-haspopup":"true","aria-expanded":String(a.open),on:{click:()=>a.onToggle()}})],a.open&&h.push(ec("div",{class:"jie-popover__backdrop",on:{click:()=>a.onToggle()}}),ec("div",{class:"jie-popover jie-swatches",role:"listbox"},a.palette.map(e=>ec("button",{key:e,class:"jie-swatch",type:"button",title:e,style:{background:e},"aria-pressed":String(e.toLowerCase()===a.value.toLowerCase()),on:{click:()=>a.onPick(e)}})))),ec("div",{class:"jie-colorpicker"},h)),ey({label:"B",className:"jie-btn--bold",active:f.bold,onClick:()=>m({bold:!f.bold})}),ey({label:"I",className:"jie-btn--italic",active:f.italic,onClick:()=>m({italic:!f.italic})}),ew({label:i("Size"),value:Math.round(100*f.fontSize),min:1,max:40,onInput:e=>m({fontSize:e/100})}),(c={align:f.align,valign:f.valign,onPick:(e,t)=>m({align:e,valign:t,x:"left"===e?.04:"right"===e?.96:.5,y:"top"===t?.04:"bottom"===t?.96:.5})},ec("div",{class:"jie-posgrid",role:"group"},eD.map(e=>ec("button",{key:`${e.valign}-${e.align}`,class:"jie-posgrid__cell",type:"button","data-pos":`${e.valign}-${e.align}`,"aria-pressed":String(e.align===c.align&&e.valign===c.valign),on:{click:()=>c.onPick(e.align,e.valign)}},[ev(e.icon)])))),ey({variant:"icon",icon:eS.trash,title:i("Delete"),onClick:()=>{var e,i;return t({design:{annotations:(e=p.annotations,i=f.id,e.filter(e=>e.id!==i))},selectedAnnotationId:null})}})])}},ez={id:"resize",label:"Resize",icon:eS.resize,order:5,renderPanel({state:e,update:t,t:i}){let n=E(e);if(!n)return null;let o="unlocked"!==e.activeTool,r=i=>t({design:{resize:function(e,t,i,n=1){let o=e.width/e.height;if(!i){var r,s;return{width:Math.max(n,Math.round(null!=(r=t.width)?r:e.width)),height:Math.max(n,Math.round(null!=(s=t.height)?s:e.height))}}if(void 0!==t.width){let e=Math.max(n,Math.round(t.width));return{width:e,height:Math.max(n,Math.round(e/o))}}if(void 0!==t.height){let e=Math.max(n,Math.round(t.height));return{width:Math.max(n,Math.round(e*o)),height:e}}return{...e}}(n,i,o,e.minResizeSize)}});return ec("div",{class:"jie-fieldrow"},[e_({label:i("Width"),value:n.width,suffix:i("px"),onChange:e=>r({width:e})}),ey({variant:"icon",icon:o?eS.lock:eS.unlock,title:o?i("Aspect ratio locked"):i("Aspect ratio unlocked"),onClick:()=>t({activeTab:"resize",activeTool:o?"unlocked":"locked"})}),e_({label:i("Height"),value:n.height,suffix:i("px"),onChange:e=>r({height:e})}),ey({variant:"icon",icon:eS.reset,title:i("Reset size"),onClick:()=>t({design:{resize:null}})})])}};function eR(e){return parseInt(e+e,16)}function eB(e,t){return parseInt(e.slice(t,t+2),16)}let eN=/image\/(jpe?g|bmp)/i;function eO(e,t){if("u"<typeof document)throw Error("No DOM available: provide a CanvasFactory to the codec");let i=document.createElement("canvas");return i.width=e,i.height=t,{get width(){return i.width},set width(e){i.width=e},get height(){return i.height},set height(e){i.height=e},getContext:e=>i.getContext(e),toBlobAsync:(e,t)=>new Promise((n,o)=>{i.toBlob(e=>e?n(e):o(Error("canvas.toBlob returned null")),e,t)})}}class eF{async decode(e){var t,i,n;let o,r=await this.toBitmap(e),s=(t=r.width,i=r.height,n={maxSize:this.maxSize,maxPixels:this.maxPixels},o=1,n.maxSize&&n.maxSize>0&&(o=Math.min(o,n.maxSize/Math.max(t,i))),n.maxPixels&&n.maxPixels>0&&(o=Math.min(o,Math.sqrt(n.maxPixels/(t*i)))),Math.min(1,o)),a=Math.max(1,Math.round(r.width*s)),l=Math.max(1,Math.round(r.height*s)),c=this.createCanvas(a,l),d=this.context(c);d.imageSmoothingEnabled=!0,d.imageSmoothingQuality="high",d.drawImage(r,0,0,a,l),"close"in r&&"function"==typeof r.close&&r.close();let u=d.getImageData(0,0,a,l);return N(u.width,u.height,u.data)}async encode(e,t={}){let i,{type:n="image/png",quality:o=.92,background:r}=t,s=void 0!==r||eN.test(n)?function(e,[t,i,n]){let o=N(e.width,e.height);for(let r=0;r<e.data.length;r+=4){let s=e.data[r+3]/255,a=1-s;o.data[r]=e.data[r]*s+t*a,o.data[r+1]=e.data[r+1]*s+i*a,o.data[r+2]=e.data[r+2]*s+n*a,o.data[r+3]=255}return o}(e,(i=(null!=r?r:"#ffffff").trim().replace(/^#/,""),/^[0-9a-f]{3}$/i.test(i)?[eR(i[0]),eR(i[1]),eR(i[2])]:/^[0-9a-f]{6}$/i.test(i)?[eB(i,0),eB(i,2),eB(i,4)]:[255,255,255])):e,a=this.createCanvas(s.width,s.height);return this.context(a).putImageData(es(s),0,0),a.toBlobAsync(n,o)}context(e){let t=e.getContext("2d");if(!t)throw Error("Unable to acquire a 2D canvas context");return t}async toBitmap(e){return"function"==typeof createImageBitmap?createImageBitmap(e,{imageOrientation:"from-image"}):new Promise((t,i)=>{let n=URL.createObjectURL(e),o=new Image;o.style.imageOrientation="from-image",o.onload=()=>{URL.revokeObjectURL(n),t(o)},o.onerror=()=>{URL.revokeObjectURL(n),i(Error("Failed to decode image blob"))},o.src=n})}constructor(e=eO,t={}){var i;n(this,"maxPixels",void 0),n(this,"maxSize",void 0),this.createCanvas=e,this.maxPixels=null!=(i=t.maxPixels)?i:0x1000000,this.maxSize=t.maxSize}}class eH{decode(e){return this.codec.decode(e)}render(e,t){let i=function(e,t){let i=e;if(t.flip.horizontal&&(i=H(i,"horizontal")),t.flip.vertical&&(i=H(i,"vertical")),0!==t.rotate&&(i=function(e,t){let i=(Math.round(t/90)%4+4)%4;if(0===i)return N(e.width,e.height,new Uint8ClampedArray(e.data));let{width:n,height:o}=e,r=1===i||3===i,s=N(r?o:n,r?n:o);for(let t=0;t<o;t++)for(let r=0;r<n;r++){let a,l;1===i?(a=o-1-t,l=r):2===i?(a=n-1-r,l=o-1-t):(a=t,l=n-1-r),q(e,O(e,r,t),s,O(s,a,l))}return s}(i,t.rotate)),0!==t.angle){var n;let e=null!=(n=t.crop)?n:{x:0,y:0,width:i.width,height:i.height};i=function(e,t,i){let n=Math.max(1,Math.round(t.width)),o=Math.max(1,Math.round(t.height)),r=N(n,o),s=t.x+t.width/2,a=t.y+t.height/2,l=i*Math.PI/180,c=Math.cos(l),d=Math.sin(l);for(let t=0;t<o;t++){let i=t+.5-o/2;for(let o=0;n>o;o++){let l=o+.5-n/2;!function(e,t,i,n,o){if(t<=-1||i<=-1||t>=e.width||i>=e.height){n.data[o]=0,n.data[o+1]=0,n.data[o+2]=0,n.data[o+3]=0;return}let r=Math.floor(t),s=Math.floor(i),a=t-r,l=i-s,c=V(r,e.width),d=V(r+1,e.width),u=V(s,e.height),h=V(s+1,e.height),p=O(e,c,u),f=O(e,d,u),m=O(e,c,h),g=O(e,d,h);for(let t=0;t<4;t++){var v,b;let i=(v=e.data[p+t],v+(e.data[f+t]-v)*a),r=(b=e.data[m+t],b+(e.data[g+t]-b)*a);n.data[o+t]=i+(r-i)*l}}(e,s+l*c-i*d-.5,a+l*d+i*c-.5,r,O(r,o,t))}}return r}(i,e,t.angle)}else t.crop&&(i=function(e,t){let i,n,o=y({x:i=Math.round(t.x),y:n=Math.round(t.y),width:Math.round(t.x+t.width)-i,height:Math.round(t.y+t.height)-n},e),r=N(o.width,o.height);for(let t=0;t<o.height;t++){let i=O(e,o.x,o.y+t),n=O(r,0,t);r.data.set(e.data.subarray(i,i+4*o.width),n)}return r}(i,t.crop));return t.resize&&(i=U(i,t.resize)),i=er(i=X(i,t.finetune),t.filter),t.focus&&(i=function(e,t){if(t.amount<=0)return N(e.width,e.height,new Uint8ClampedArray(e.data));let i=J(e,t.amount,32),{width:n,height:o}=e,r=N(n,o),s=Math.min(n,o),a=t.x*n,l=t.y*o,c=t.radius*s,d=Math.max(.06*s,.9*c),u=t.angle*Math.PI/180,h=-Math.sin(u),p=Math.cos(u);for(let s=0;s<o;s++)for(let o=0;o<n;o++){let n=o-a,u=s-l,f=function(e,t,i){if(t<=e)return+(i>=t);let n=Math.min(1,Math.max(0,(i-e)/(t-e)));return n*n*(3-2*n)}(c,c+d,"radial"===t.shape?Math.hypot(n,u):Math.abs(n*h+u*p)),m=O(r,o,s);for(let t=0;t<4;t++)r.data[m+t]=e.data[m+t]+(i.data[m+t]-e.data[m+t])*f}return r}(i,t.focus)),i}(e,t);return function(e,t,i){if(0===i.length)return t;let n=e(t.width,t.height).getContext("2d");if(!n)throw Error("Unable to acquire a 2D canvas context");for(let e of(n.putImageData(es(t),0,0),i)){if("text"!==e.type)continue;let i=function(e,t){let i=Math.max(1,Math.round(e.fontSize*t.height)),n=e.bold?"bold":"normal",o=e.italic?"italic":"normal";return{text:e.text,x:Math.round(e.x*t.width),y:Math.round(e.y*t.height),fontPx:i,font:`${o} ${n} ${i}px ${e.fontFamily}`,color:e.color,align:e.align,baseline:e.valign}}(e,t);n.font=i.font,n.fillStyle=i.color,n.textAlign=i.align,n.textBaseline=i.baseline,function(e,t){let i=t.text.split("\n"),n=1.2*t.fontPx,o=(i.length-1)*n,r="middle"===t.baseline?t.y-o/2:"bottom"===t.baseline?t.y-o:t.y;i.forEach((i,o)=>e.fillText(i,t.x,r+o*n))}(n,i)}let o=n.getImageData(0,0,t.width,t.height);return N(o.width,o.height,o.data)}(this.createCanvas,i,t.annotations)}async toBlob(e,t,i){return this.codec.encode(this.render(e,t),i)}constructor(e){n(this,"codec",void 0),n(this,"createCanvas",void 0),this.codec=e.codec,this.createCanvas=e.createCanvas}}function eU(e,t,i){e.update({zoom:t.zoom*i})}class eq{get state(){return this.store.getState()}update(e){return this.store.update(e),this}async save(){return this.handleSave()}async saveAs(){return this.handleSaveAs()}reset(){return this.handleReset(),this}use(e){let t=e.setup(this.api());return"function"==typeof t&&this.disposers.push(t),this}async fromBlob(e){this.store.update({status:"loading",error:null});try{let t=await this.processor.decode(e);if(this.destroyed)return this;this.source=t,this.previewSource=eV(t,this.previewMaxSize),this.thumbSource=eV(t,160),this.thumbVersion++,this.store.update({source:{width:t.width,height:t.height,name:e instanceof File?e.name:null,mimeType:e.type||"image/png"},resetHistory:!0,status:"ready"})}catch(e){this.store.update({status:"error",error:e instanceof Error?e.message:String(e)})}return this}async toBlob(e){if(!this.source)throw Error("No image loaded — call fromBlob() first");let t=w(this.store.getState());this.store.update({status:"exporting"});try{return t.annotations.length>0&&"u">typeof document&&document.fonts&&await document.fonts.ready,await this.processor.toBlob(this.source,t,e)}finally{this.store.update({status:"ready"})}}destroy(){var e,t;if(!this.destroyed){for(let i of(this.destroyed=!0,this.clearBusyTimer(),null==(e=this.dragCleanup)||e.call(this),null==(t=this.resizeObserver)||t.disconnect(),this.disposers.splice(0)))i();this.renderer.unmount(),this.store.destroy()}}api(){return{registerTool:e=>this.registry.register(e),registerFilter:e=>eo(e),registerLocale:e=>this.locales.register(e),getState:()=>this.store.getState(),update:e=>this.store.update(e)}}translator(){return this.locales.translator(this.store.getState().locale)}appContext(){return{update:e=>this.store.update(e),tools:this.registry.list(),t:this.translator(),onSave:()=>void this.handleSave(),onSaveAs:()=>void this.handleSaveAs(),onReset:()=>this.handleReset(),beginCropDrag:(e,t)=>this.beginCropDrag(e,t),beginCropRotate:e=>this.beginCropRotate(e)}}handleReset(){x(this.store.getState())&&this.confirm(this.translator()("Reset all changes? You can still undo afterwards."))&&this.store.update({resetDesign:!0})}render(){if(!this.destroyed){var e,t,i,n;let o,r,s,a,l,c,d,u;this.renderer.render((e=this.store.getState(),t=this.appContext(),ec("div",{class:"jie","data-theme":e.theme},[e.showToolbar?(o=E(e),s=(r=j(e))?Math.round(100*r.scale):Math.round(100*e.zoom),a=t.t,l="loading"===e.status||"exporting"===e.status,c="exporting"===e.status&&e.busyVisible,ec("header",{class:"jie-topbar"},[ec("div",{class:"jie-topbar__save"},[ey({label:a("Save"),variant:"primary",onClick:()=>t.onSave(),disabled:!e.source||l,busy:c}),ey({label:a("Save as"),onClick:()=>t.onSaveAs(),disabled:!e.source||l,busy:c})]),ec("div",{class:"jie-topbar__meta"},[o?ec("span",{},`${o.width} x ${o.height} px`):null,ev(eS.book),ec("div",{class:"jie-zoom"},[ey({variant:"icon",icon:eS.zoomOut,title:a("Zoom out"),onClick:()=>eU(t,e,1/1.2)}),ec("span",{},`${s}%`),ey({variant:"icon",icon:eS.zoomIn,title:a("Zoom in"),onClick:()=>eU(t,e,1.2)})])]),ec("div",{class:"jie-topbar__actions"},[ey({variant:"icon",icon:eS.reset,title:a("Reset"),disabled:!x(e),onClick:()=>t.onReset()}),ey({variant:"icon",icon:eS.undo,title:a("Undo"),disabled:!C(e),onClick:()=>t.update({history:{step:-1}})}),ey({variant:"icon",icon:eS.redo,title:a("Redo"),disabled:!S(e),onClick:()=>t.update({history:{step:1}})})])])):null,ec("div",{class:"jie-body"},[ec("nav",{class:"jie-rail"},t.tools.map(i=>ec("button",{key:i.id,class:"jie-tab",type:"button","aria-selected":String(e.activeTab===i.id),on:{click:()=>{var e;return t.update({activeTab:i.id,activeTool:null!=(e=i.defaultTool)?e:null})}}},[ev(i.icon),ec("span",{},t.t(i.label))]))),(u=null!=(n=null==(d=null!=(i=t.tools.find(t=>t.id===e.activeTab))?i:t.tools[0])?void 0:d.renderPanel({state:e,update:t.update,t:t.t}))?n:null,ec("div",{class:"jie-stage"},[ec("div",{class:"jie-canvas-wrap","data-jie-canvas-wrap":""},[ec("canvas",{class:"jie-canvas","data-jie-canvas":""}),function(e,t){if(!_(e))return null;let i=j(e),n=A(e);if(!i||!n)return null;let o=D(e);return ec("div",{class:"jie-crop",style:{left:`${i.offsetX+n.x*i.scale}px`,top:`${i.offsetY+n.y*i.scale}px`,width:`${n.width*i.scale}px`,height:`${n.height*i.scale}px`,transform:`rotate(${o}deg)`},on:{pointerdown:e=>t.beginCropDrag("move",e)}},[ec("div",{key:"rotate",class:"jie-crop__rotate",title:"Rotate",on:{pointerdown:e=>{e.stopPropagation(),t.beginCropRotate(e)}}}),...["nw","ne","sw","se"].map(e=>ec("div",{key:e,class:"jie-crop__handle","data-h":e,on:{pointerdown:i=>{i.stopPropagation(),t.beginCropDrag(e,i)}}}))])}(e,t),"loading"===e.status?ec("div",{class:"jie-overlay","data-jie-loading":""},[eb()]):"error"===e.status&&e.error?ec("div",{class:"jie-overlay jie-overlay--error","data-jie-error":""},[ec("span",{},t.t("Failed to load the image")),ec("span",{class:"jie-overlay__detail"},e.error)]):null]),u?ec("div",{class:"jie-panel"},[u]):null]))])]))),this.ensureViewportObserver(),this.paint(),this.paintFilterThumbs()}}async handleSave(){var e;if(!this.canExport())return;let t=await this.toBlob();null==(e=this.onSaveCb)||e.call(this,t,this),this.container.dispatchEvent(new CustomEvent("jie:save",{detail:{blob:t},bubbles:!0}))}async handleSaveAs(){var e;if(!this.canExport())return;let t=await this.toBlob();null==(e=this.onSaveAsCb)||e.call(this,t,this),this.container.dispatchEvent(new CustomEvent("jie:saveas",{detail:{blob:t},bubbles:!0}))}canExport(){let{status:e}=this.store.getState();return null!==this.source&&"exporting"!==e&&"loading"!==e}syncBusyTimer(e){"exporting"!==e.status?this.clearBusyTimer():e.busyVisible||null!==this.busyTimer||(this.busyTimer=setTimeout(()=>{this.busyTimer=null,this.destroyed||"exporting"!==this.store.getState().status||this.store.update({busyVisible:!0})},this.spinnerDelay))}clearBusyTimer(){null!==this.busyTimer&&(clearTimeout(this.busyTimer),this.busyTimer=null)}ensureViewportObserver(){var e;let t=this.container.querySelector("[data-jie-canvas-wrap]");if(t&&t!==this.observedWrap){if(null==(e=this.resizeObserver)||e.disconnect(),this.observedWrap=t,"u"<typeof ResizeObserver)return void this.measureViewport(t);this.resizeObserver=new ResizeObserver(()=>this.measureViewport(t)),this.resizeObserver.observe(t),this.measureViewport(t)}}measureViewport(e){let{clientWidth:t,clientHeight:i}=e,n=this.store.getState().viewport;t<=0||i<=0||n&&n.width===t&&n.height===i||this.store.update({viewport:{width:t,height:i}})}paint(){let e=this.store.getState(),t=this.container.querySelector("[data-jie-canvas]");if(!t||!this.previewSource||!e.viewport)return;let i=j(e);if(!i)return;let n=k(e),o=`${this.thumbVersion}:${JSON.stringify(n)}`;o===this.cachedRasterKey&&this.cachedRaster||(this.cachedRaster=this.processor.render(this.previewSource,n),this.cachedRasterKey=o);let r=`${o}@${e.viewport.width}x${e.viewport.height}:${i.scale}:${i.offsetX},${i.offsetY}`;r!==this.lastPaintKey&&(this.lastPaintKey=r,function(e,t,i,n){let o="u">typeof window&&window.devicePixelRatio||1;e.width=Math.max(1,Math.round(i.width*o)),e.height=Math.max(1,Math.round(i.height*o));let r=e.getContext("2d");if(!r)return;r.setTransform(o,0,0,o,0,0),r.clearRect(0,0,i.width,i.height);let s=document.createElement("canvas");s.width=t.width,s.height=t.height;let a=s.getContext("2d");a&&(a.putImageData(es(t),0,0),r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",r.drawImage(s,n.offsetX,n.offsetY,n.width,n.height))}(t,this.cachedRaster,e.viewport,i))}paintFilterThumbs(){let e=this.thumbSource;if(e)for(let t of this.container.querySelectorAll("canvas[data-jie-filter-thumb]")){let i=t.dataset.jieFilterThumb;if(!i)continue;let n=`${this.thumbVersion}:${i}`;if(t.dataset.key===n)continue;let o=er(e,i);t.width=o.width,t.height=o.height;let r=t.getContext("2d");r&&(r.putImageData(es(o),0,0),t.dataset.key=n)}}beginCropDrag(e,t){let i=this.store.getState(),n=j(i),o=A(i),r=I(i);if(!n||!o||!r)return;let s=D(i),a=i.minCropSize,l=t.clientX,c=t.clientY;this.runPointerGesture(t,t=>{let i=(t.clientX-l)/n.scale,d=(t.clientY-c)/n.scale;return{crop:0!==s?function(e,t,i,n,o,r=8){if("move"===i)return{...e,x:e.x+n,y:e.y+o};let[s,a]=M[i],l=R(e,t,s,a),c=R(e,t,-s,-a),d={x:l.x+n,y:l.y+o},u=(d.x+c.x)/2,h=(d.y+c.y)/2,p=t*P,f=Math.cos(p),m=Math.sin(p),g=d.x-c.x,v=d.y-c.y,b=Math.max(r,Math.abs(g*f+v*m)),y=Math.max(r,Math.abs(-(g*m)+v*f));return{x:u-b/2,y:h-y/2,width:b,height:y}}(o,s,e,i,d,a):function(e,t,i,n,o,r=null,s=8){var a;let l,c;if("move"===t)return y({...e,x:e.x+i,y:e.y+n},o);let{x:d,y:u,width:h,height:p}=e;if("nw"===t||"sw"===t){let e=b(d+i,0,d+h-s);h+=d-e,d=e}else h=b(h+i,s,o.width-d);if("nw"===t||"ne"===t){let e=b(u+n,0,u+p-s);p+=u-e,u=e}else p=b(p+n,s,o.height-u);let f={x:d,y:u,width:h,height:p};return null!==r&&r>0&&(l=(a=f).width/r,c="sw"===t||"se"===t?a.y:a.y+a.height-l,f={...a,height:l,y:c}),y(f,o)}(o,e,i,d,r,null,a)}})}beginCropRotate(e){var t;let i=this.store.getState(),n=j(i),o=A(i),r=null!=(t=this.observedWrap)?t:this.container.querySelector("[data-jie-canvas-wrap]");if(!n||!o||!r)return;let s=r.getBoundingClientRect(),a=z(o),l=s.left+n.offsetX+a.x*n.scale,c=s.top+n.offsetY+a.y*n.scale,d=D(i),u=B(l,c,e.clientX,e.clientY);this.runPointerGesture(e,e=>{let t=d+(B(l,c,e.clientX,e.clientY)-u);return 2>Math.abs(t)&&(t=0),{angle:Math.round(10*t)/10}})}runPointerGesture(e,t){e.preventDefault();let i=!1,n=e=>{this.store.update({design:t(e),commit:!i}),i=!0},o=()=>{window.removeEventListener("pointermove",n),window.removeEventListener("pointerup",o),this.dragCleanup=null};window.addEventListener("pointermove",n),window.addEventListener("pointerup",o),this.dragCleanup=o}constructor(e){var t,i,o,r,s,a,l,d;for(let a of(n(this,"store",void 0),n(this,"container",void 0),n(this,"renderer",void 0),n(this,"registry",new eg),n(this,"locales",new ea),n(this,"processor",void 0),n(this,"previewMaxSize",void 0),n(this,"spinnerDelay",void 0),n(this,"busyTimer",null),n(this,"onSaveCb",void 0),n(this,"onSaveAsCb",void 0),n(this,"confirm",void 0),n(this,"source",null),n(this,"previewSource",null),n(this,"thumbSource",null),n(this,"thumbVersion",0),n(this,"cachedRaster",null),n(this,"cachedRasterKey",""),n(this,"lastPaintKey",""),n(this,"disposers",[]),n(this,"resizeObserver",null),n(this,"observedWrap",null),n(this,"dragCleanup",null),n(this,"destroyed",!1),this.container=function(e){if("string"!=typeof e)return e;let t=document.querySelector(e);if(!t)throw Error(`Container not found: ${e}`);return t}(e.container),this.processor=null!=(t=e.processor)?t:function(e=eO,t){return new eH({codec:new eF(e,t),createCanvas:e})}(void 0,{maxPixels:e.maxSourcePixels,maxSize:e.maxSourceSize}),this.previewMaxSize=null!=(i=e.previewMaxSize)?i:1600,this.spinnerDelay=Math.max(0,null!=(o=e.spinnerDelay)?o:250),this.onSaveCb=e.onSave,this.onSaveAsCb=e.onSaveAs,this.confirm=null!=(r=e.confirm)?r:e=>"u"<typeof window||window.confirm(e),null!=(s=e.locales)?s:[]))this.locales.register(a);for(let t of(this.store=new v({scheduler:null!=(a=e.scheduler)?a:function(){if("function"!=typeof requestAnimationFrame)return new m(e=>setTimeout(e,16),e=>clearTimeout(e));let e=e=>{cancelAnimationFrame(e.raf),null!==e.timer&&(clearTimeout(e.timer),e.timer=null)};return new m(t=>{let i={raf:0,timer:null},n=()=>{e(i),t()};return i.raf=requestAnimationFrame(n),i.timer=setTimeout(n,100),i},e)}(),initialState:{...c(),...e.state,...e.locale?{locale:e.locale}:{},...void 0!==e.minCropSize?{minCropSize:Math.max(1,e.minCropSize)}:{},...void 0!==e.minResizeSize?{minResizeSize:Math.max(1,e.minResizeSize)}:{},...e.palette?{palette:e.palette}:{},...e.fonts?{fonts:e.fonts}:{}}}),null!=(l=e.tools)?l:[ex,eE,eT,ej,eM,ez]))this.registry.register(t);for(let t of null!=(d=e.plugins)?d:[])this.use(t);this.renderer=new eh(new em(document),this.container),this.disposers.push(this.store.subscribe(()=>this.render())),this.disposers.push(this.store.subscribe(e=>this.syncBusyTimer(e))),this.render(),e.image&&this.fromBlob(e.image)}}function eV(e,t){let i=Math.max(e.width,e.height);if(t>=i)return e;let n=t/i;return U(e,{width:Math.round(e.width*n),height:Math.round(e.height*n)})}i.d(t,["ICONS",0,eS,"selectors",0,L])},82749:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,{_:function(){return n}})},72573:function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}i.d(t,{marked:function(){return ew}});var r,s=o(),a={exec:()=>null};function l(e,t=""){let i="string"==typeof e?e:e.source,n={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(d.caret,"$1"),i=i.replace(e,o),n},getRegex:()=>new RegExp(i,t)};return n}var c=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),d={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,p=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=l(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),m=l(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,b=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y=l(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),w="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k=l("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",_).replace("tag",w).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C=l(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex(),S={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",C).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:b,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:k,lheading:f,list:y,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:C,table:a,text:/^[^\n]+/},x=l("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex(),I={...S,lheading:m,table:x,paragraph:l(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",x).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",w).getRegex()},E={...S,html:l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(g).replace("hr",u).replace("heading",` *#{1,6} *[^
|
|
616
|
+
]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T=/^( {2,}|\\)\n(?!\s*$)/,j=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,A=/[^\s\p{P}\p{S}]/u,L=l(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),P=/(?!~)[\p{P}\p{S}]/u,M=l(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",c?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),z=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,R=l(z,"u").replace(/punct/g,j).getRegex(),B=l(z,"u").replace(/punct/g,P).getRegex(),N="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",O=l(N,"gu").replace(/notPunctSpace/g,A).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),F=l(N,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,P).getRegex(),H=l("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,A).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),U=l(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,j).getRegex(),q=l("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,A).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),V=l(/\\(punct)/,"gu").replace(/punct/g,j).getRegex(),W=l(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),$=l(_).replace("(?:--\x3e|$)","--\x3e").getRegex(),G=l("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",$).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Y=l(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J=l(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",v).getRegex(),X=l(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),Z=l("reflink|nolink(?!\\()","g").replace("reflink",J).replace("nolink",X).getRegex(),Q=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ee={_backpedal:a,anyPunctuation:V,autolink:W,blockSkip:M,br:T,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:a,delLDelim:a,delRDelim:a,emStrongLDelim:R,emStrongRDelimAst:O,emStrongRDelimUnd:H,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Y,nolink:X,punctuation:L,reflink:J,reflinkSearch:Z,tag:G,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:a},et={...ee,link:l(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},ei={...ee,emStrongRDelimAst:F,emStrongLDelim:B,delLDelim:U,delRDelim:q,url:l(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Q).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:l(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Q).getRegex()},en={...ei,br:l(T).replace("{2,}","*").getRegex(),text:l(ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},eo={normal:S,gfm:I,pedantic:E},er={normal:ee,gfm:ei,breaks:en,pedantic:et},es={"&":"&","<":"<",">":">",'"':""","'":"'"},ea=e=>es[e];function el(e,t){if(t){if(d.escapeTest.test(e))return e.replace(d.escapeReplace,ea)}else if(d.escapeTestNoEncode.test(e))return e.replace(d.escapeReplaceNoEncode,ea);return e}function ec(e){try{e=encodeURI(e).replace(d.percentDecode,"%")}catch(e){return null}return e}function ed(e,t){var i;let n=e.replace(d.findPipe,(e,t,i)=>{let n=!1,o=t;for(;--o>=0&&"\\"===i[o];)n=!n;return n?"|":" |"}).split(d.splitPipe),o=0;if(n[0].trim()||n.shift(),!(n.length>0)||(null==(i=n.at(-1))?void 0:i.trim())||n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(d.slashPipe,"|");return n}function eu(e,t,i){let n=e.length;if(0===n)return"";let o=0;for(;o<n;){let r=e.charAt(n-o-1);if(r!==t||i)if(r!==t&&i)o++;else break;else o++}return e.slice(0,n-o)}function eh(e,t,i,n,o){let r=t.href,s=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:i,href:r,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}var ep=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eu(e,`
|
|
617
617
|
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],i=function(e,t,i){let n=e.match(i.other.indentCodeCompensation);if(null===n)return t;let o=n[1];return t.split(`
|
|
618
618
|
`).map(e=>{let t=e.match(i.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=o.length?e.slice(o.length):e}).join(`
|
|
619
619
|
`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eu(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eu(t[0],`
|