jodit-pro 4.12.27 → 4.12.32
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.css +1 -1
- package/es2015/jodit.fat.min.js +13 -11
- package/es2015/jodit.js +231 -74
- package/es2015/jodit.min.js +8 -8
- 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 +62 -0
- package/es2015/plugins/autocomplete/autocomplete.js +29 -2
- package/es2015/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- 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/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 +23 -2
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +28 -1
- package/es2015/plugins/paste-code/paste-code.js +489 -64
- package/es2015/plugins/paste-code/paste-code.min.css +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +4 -2
- 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 +9 -1
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +13 -11
- package/es2018/jodit.min.js +8 -8
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- 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/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 +2 -2
- package/es2018/plugins/paste-code/paste-code.min.css +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +4 -2
- 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 +2 -2
- 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.css +1 -1
- package/es2021/jodit.fat.min.js +14 -12
- package/es2021/jodit.js +231 -74
- package/es2021/jodit.min.js +9 -9
- 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 +62 -0
- package/es2021/plugins/autocomplete/autocomplete.js +29 -2
- package/es2021/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- 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/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 +23 -2
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +28 -1
- package/es2021/plugins/paste-code/paste-code.js +488 -64
- package/es2021/plugins/paste-code/paste-code.min.css +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +4 -2
- 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 +9 -1
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- 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.css +1 -1
- package/es2021.en/jodit.fat.min.js +28 -26
- package/es2021.en/jodit.js +231 -74
- package/es2021.en/jodit.min.js +9 -9
- 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 +62 -0
- package/es2021.en/plugins/autocomplete/autocomplete.js +29 -2
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
- 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/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 +23 -2
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +28 -1
- package/es2021.en/plugins/paste-code/paste-code.js +488 -64
- package/es2021.en/plugins/paste-code/paste-code.min.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +4 -2
- 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 +9 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- 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.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +333 -74
- 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 +62 -0
- package/es5/plugins/autocomplete/autocomplete.js +29 -2
- package/es5/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- 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/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 +23 -2
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +28 -1
- package/es5/plugins/paste-code/paste-code.js +586 -66
- package/es5/plugins/paste-code/paste-code.min.css +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- 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 +9 -1
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- 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/esm/config.d.ts +6 -1
- package/esm/plugins/all.d.ts +1 -1
- package/esm/plugins/all.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.d.ts +2 -26
- package/esm/plugins/autocomplete/autocomplete.impl.d.ts +31 -0
- package/esm/plugins/autocomplete/autocomplete.impl.js +1 -0
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/index.d.ts +1 -1
- package/esm/plugins/index.js +1 -1
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/config.d.ts +6 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/paste-code/helpers.d.ts +25 -0
- package/esm/plugins/paste-code/helpers.js +1 -0
- package/esm/plugins/paste-code/paste-code.d.ts +9 -0
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-code/ui/code-tuner/code-tuner.d.ts +87 -0
- package/esm/plugins/paste-code/ui/code-tuner/code-tuner.js +3 -0
- package/esm/plugins/paste-code/ui/code-tuner/drag.svg.js +1 -0
- package/esm/plugins/todo-list/todo-list.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +6 -1
- package/types/plugins/autocomplete/autocomplete.d.ts +2 -26
- package/types/plugins/autocomplete/autocomplete.impl.d.ts +31 -0
- package/types/plugins/index.d.ts +1 -1
- package/types/plugins/paste-code/config.d.ts +6 -1
- package/types/plugins/paste-code/helpers.d.ts +25 -0
- package/types/plugins/paste-code/paste-code.d.ts +9 -0
- package/types/plugins/paste-code/ui/code-tuner/code-tuner.d.ts +87 -0
package/es2015/jodit.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.12.
|
|
4
|
+
* Version: v4.12.32
|
|
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(){"use strict";var e,t,i,n,o={6441:function(e,t,i){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.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.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){i.d(t,{Async:function(){return p}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),f=i(93661);class p{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,d.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,u.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,u=[],d=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&d(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.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,f.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){var n,o;let r=globalThis.scheduler.postTask(e,(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),o=o={signal:i.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n));return r.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),r}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,f.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){i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){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){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){i.d(t,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(e,t,i){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){i.r(t),i.d(t,{ACCURACY:function(){return U},APP_VERSION:function(){return n},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return V},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return ei},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return J},IS_INLINE:function(){return k},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return P},KEY_DELETE:function(){return F},KEY_DOWN:function(){return N},KEY_ENTER:function(){return L},KEY_ESC:function(){return x},KEY_F3:function(){return H},KEY_LEFT:function(){return R},KEY_META:function(){return j},KEY_RIGHT:function(){return M},KEY_SPACE:function(){return B},KEY_TAB:function(){return A},KEY_UP:function(){return O},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return p},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return Y},PASSIVE_EVENTS:function(){return eb},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return b},SPACE_REG_EXP_END:function(){return w},SPACE_REG_EXP_START:function(){return y},TEMP_ATTR:function(){return ep},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return X},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return _},globalWindow:function(){return S},lang:function(){return em}});let n="4.12.27",o="es2015",r=!0,s=!1,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/pro/",d=()=>l=!0,h={},f="\uFEFF",p="\xa0",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,S="u">typeof window?window:void 0,_="u">typeof document?document:void 0,C=/^(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,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...I,"br","hr"]),D=new Set(I),j="Meta",P="Backspace",A="Tab",L="Enter",x="Escape",z="Alt",R="ArrowLeft",O="ArrowUp",M="ArrowRight",N="ArrowDown",B="Space",F="Delete",H="F3",q=5,U=10,V=[j,P,F,O,N,M,R,L,x,H,A],W="br",Y="p",K=1,$=2,G=3,J="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=J?"text":"text/plain",Z=J?"html":"text/html",Q=J?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",en="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==S&&/Mac|iPod|iPhone|iPad/.test(S.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=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:eu,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=_.currentScript;if(e)return ec(e.src);let t=_.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(S.location.href)})(),eh=eu,ef=ed,ep="data-jodit-temp",em={},eg="clipboard",ev="source-consumer",eb=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(e,t,i){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=>n.appendChild((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"});this.doc.body.appendChild(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){i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){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){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;if(l&&c.has(this.constructor))return null==(t=c.get(this.constructor))?void 0:t.cloneNode(!0);let i=a.apply(this,e);return l&&o.Dom.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){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){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){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){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){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){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 u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return f.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),f=i(37133)},31589:function(e,t,i){i.d(t,{nonenumerable:function(){return n}});let n=(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){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){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){i.d(t,{watch:function(){return d}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let f=null==(h=null==t?void 0:t.immediately)||h,p=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[d](e,...i)};f||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;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,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,c);let f=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,c),c(l,i,h))},get(){return f&&f.get?f.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return b}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(49055),h=i(38837),f=i(29960),p=i(41180),m=i(86583),g=i(89890),v=i(37790);class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o=e;i.s.save();let r=!1;do r=!1,(n=o.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(r=!0,o=n);while(r);return b.__wrapElements(t,i,e,o)}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=e,r=e;i.s.save();let s=!1;do s=!1,(n=o.previousSibling)&&!b.isBlock(n)&&(s=!0,o=n);while(s);do s=!1,(n=r.nextSibling)&&!b.isBlock(n)&&(s=!0,r=n);while(s);return b.__wrapElements(t,i,o,r)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(b.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);b.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;)n=n.parentNode;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&&b.isElement(e)&&b.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 b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return b.each(e,e=>b.isEmptyTextNode(e))}static isContentEditable(e,t){return b.isNode(e)&&!b.closest(e,e=>b.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,d.trim)(e.nodeValue).length;return b.isText(e)?o(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!o(e)||b.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 b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,n.LIST_TAGS)}static isLeaf(e){return b.isTag(e,"li")}static isImage(e){return b.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&b.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!!b.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!b.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 b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,p.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&b.isHTMLElement(e)&&b.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){let i=null==e?void 0:e.firstChild;if(!i)return null;do{if(t(i))return i;let n=i.firstChild;if(n||(n=i.nextSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.nextSibling)&&i.parentNode!==e);n=null==i?void 0:i.nextSibling}i=n}while(i);return null}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let n=i.lastChild;if(n||(n=i.previousSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);n=null==i?void 0:i.previousSibling}i=n}while(i);return null}static prev(e,t,i,n=!0){return b.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return b.find(e,t,i,!0,n)}static prevWithClass(e,t){return b.prev(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return b.next(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}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.unshift(t),t=i?t.nextSibling:t.previousSibling;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=b.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=>!b.isEmptyTextNode(e)){let n=b.sibling(e,t);for(;n&&!i(n);)n=b.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>{var t;return!b.isEmptyTextNode(e)&&!!(!b.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?b.prev:b.next,e,e=>!!(e&&(!(b.isText(e)||b.isComment(e))||(0,d.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 b.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){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&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)||(b.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}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=>b.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=b.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&b.isTag(e.startContainer,n.INSEPARABLE_TAGS)?b.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>b.isText(e)&&!e.nodeValue&&b.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(n);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||n===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,f.attr)(e,n.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.toArray)(e.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){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){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.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!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(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}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.idleId=0,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){i.d(t,{EventEmitter:function(){return u}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{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]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__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,u,h,f;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,f=i):(c=e,u=t,h=i,f=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.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,u,h,f)}),this;let p=c,m=this.__getStore(p),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(p)&&(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(u,(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==f?void 0:f.top),d(p)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==f?void 0:f.capture)&&i}:null!=(o=null==f?void 0:f.capture)&&o;v.options=t,p.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(p,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 u=n,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let f=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},p=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&p(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&&(f(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(f),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{p(e,t)}):p(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),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,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(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,...u),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);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 d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){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){i.d(t,{eventEmitter:function(){return n}});let n=new(i(98220)).EventEmitter},3827:function(e,t,i){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){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),u=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(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)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];u(["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])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s},defaultNameSpace:function(){return r}});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}}},580:function(e,t,i){i.d(t,{eventEmitter:function(){return C},extendLang:function(){return y},getContainer:function(){return S},getPopupViewRoot:function(){return _},instances:function(){return f},modules:function(){return b},pluginSystem:function(){return v},uniqueUid:function(){return g}});var n=i(19306),o=i(70799),r=i(39955),s=i(12475),a=i(41180),l=i(80568),c=i(41876),u=i(57012),d=i(82758),h=i(22732);let f={},p=1,m=new Set;function g(){function e(){return Math.round(p+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new c.PluginSystem({getContainer:S}),b={},y=e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},w=new WeakMap;function S(e,t,i="div",a=!1){let c=(0,o.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",u=w.get(e)||{},d=c+i,f=(0,r.isViewObject)(e)?e:e.j,p=null;if(!u[d]){let t=f.c;if(p=_(f.o,f.container,e.od.body),a&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;p=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(c)}-container jodit-box`});o.classList.add(`jodit_theme_${f.o.theme||"default"}`),p.appendChild(o),u[d]=o,e.hookStatus("beforeDestruct",()=>{f.events.off(o),h.Dom.safeRemove(o),delete u[d],Object.keys(u).length&&w.delete(e)}),w.set(e,u),f.events.fire("getContainer",o)}return u[d].classList.remove("jodit_theme_default","jodit_theme_dark"),u[d].classList.add(`jodit_theme_${f.o.theme||"default"}`),u[d]}function _(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?r:i}let C=u.eventEmitter},29999:function(e,t,i){i.d(t,{asArray:function(){return o}});var n=i(68345);let o=e=>(0,n.isArray)(e)?e:[e]},76855:function(e,t,i){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){i.d(t,{splitArray:function(){return n}});function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){i.d(t,{toArray:function(){return r}});var n=i(70722),o=i(58844);let r=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){i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){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){i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e=!0;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){i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.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 S.isSet},isString:function(){return _.isString},isStringArray:function(){return _.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return T.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),f=i(19306),p=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),w=i(14773),S=i(42320),_=i(70799),C=i(26049),k=i(37508),E=i(39955),I=i(86068),T=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return n}});function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return n}});function n(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return n}});function n(e){return"boolean"==typeof e}},59292:function(e,t,i){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){i.d(t,{isFunction:function(){return n}});function n(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return n}});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/)}},58487:function(e,t,i){i.d(t,{isHTML:function(){return o}});var n=i(70799);let o=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){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){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){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){i.d(t,{isLicense:function(){return o}});var n=i(70799);let o=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){i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return n}});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)))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return n}});function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){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){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){i.d(t,{isPromise:function(){return n}});function n(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){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){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){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){i.d(t,{isValidName:function(){return n}});function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){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){i.d(t,{isVoid:function(){return n}});function n(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return n}});function n(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,{colorToHex:function(){return n}});let n=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}},58149:function(e,t,i){i.d(t,{colorToHex:function(){return n.colorToHex}});var n=i(35278)},32574:function(e,t,i){i.d(t,{applyStyles:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(76078);function a(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 l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=n.globalDocument.createElement("iframe");t.style.display="none",n.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close(),o.Dom.each(l.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test(e.getAttribute("style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,s.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return a}});var n=i(82758),o=i(2748),r=i(4510),s=i(49055);function a(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(e.getAttribute("style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}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){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){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){i.d(t,{nl2br:function(){return n}});function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,i){i.d(t,{safeHTML:function(){return r},sanitizeHTMLElement:function(){return l}});var n=i(2748),o=i(43555);function r(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let r=null!=(i=t.removeEventAttributes)?i:t.removeOnError,s=e=>{if(n.Dom.isElement(e)&&(r&&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)e.removeAttribute(i)}(e),l(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===e.getAttribute("target"))){let t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};s(e),n.Dom.each(e,s)}let s=["src","data","action","formaction","poster","background","xlink:href"],a=new Set(["iframe","frame","object","embed"]);function l(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),r=!0);let c=e.getAttribute("href");if(t&&c&&0===c.trim().indexOf("javascript")&&((0,o.attr)(e,"href",location.protocol+"//"+c),r=!0),t){e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),r=!0);let t=e.nodeName.toLowerCase();for(let i of s){let n=e.getAttribute(i);n&&function(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)&&a.has(t)}(n,t)&&((0,o.attr)(e,i,null),r=!0)}}return r}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null,d=!1){let h=i.createElement("div");return(0,o.isString)(t)?h.innerHTML=t:h.appendChild(t),(0,s.$$)("*",h).forEach(t=>{let o=t.parentNode;if(!o)return;if(u&&n.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,u,d)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,l))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,a))return;let r=t.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.insertBefore(i.createTextNode(d?"%%%jodit-single-br%%%":" "),r)}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),o=i(70799),r=i(49055),s=i(43555);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},21537:function(e,t,i){i.r(t),i.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},assert:function(){return d.assert},attr:function(){return d.attr},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return d.css},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.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},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.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 d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return n.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(76855),o=i(91898),r=i(27613),s=i(58149),a=i(75275),l=i(71521),c=i(56175),u=i(59007),d=i(43555)},71521:function(e,t,i){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 u.normalizeUrl}});var n=i(21224),o=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),u=i(37406)},21224:function(e,t,i){i.d(t,{normalizeColor:function(){return r}});var n=i(35278),o=i(49055);let r=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){i.d(t,{NUMBER_FIELDS_REG:function(){return a},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}},49033:function(e,t,i){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){i.d(t,{normalizeLicense:function(){return n}});let n=(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){i.d(t,{normalizePath:function(){return o}});var n=i(49055);let o=(...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){i.d(t,{normalizeRelativePath:function(){return n}});let n=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){i.d(t,{normalizeSize:function(){return n}});let n=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},37406:function(e,t,i){i.d(t,{normalizeUrl:function(){return n}});let n=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(e,t,i){i.d(t,{getContentWidth:function(){return n}});let n=(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){i.d(t,{getFixedPositionOffset:function(){return n}});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}}},16442:function(e,t,i){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){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){i.d(t,{innerWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},21496:function(e,t,i){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){i.d(t,{offset:function(){return n}});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},u=i.defaultView||i.parentWindow,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=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+d-f,a=r.left+h-p;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},5700:function(e,t,i){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){i.d(t,{camelCase:function(){return n}});let n=e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())},67477:function(e,t,i){i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(82758);function o(e,t,i=0,r=1){let s=0,a=0,l=-1,c=0,u=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){i.d(t,{i18n:function(){return c},sprintf:function(){return l}});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),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,s.defaultLanguage)(null==i?void 0:i.language,h),p=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[f]?u=n.lang[f]:c||(u=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[f]){let e=p(m[f]);if(e)return e}return p(u)||(!c&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):c?"{"+e+"}":(n.IS_PROD,d(e)))}},59007:function(e,t,i){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){i.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return n}});let n=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(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(e,t,i){i.d(t,{stringify:function(){return n}});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)}},49055:function(e,t,i){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){i.d(t,{ucfirst:function(){return n}});function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,i){i.d(t,{alignElement:function(){return a},clearAlign:function(){return s},hAlignElement:function(){return r}});var n=i(22732),o=i(41180);function r(e,t){t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((0,o.css)(e,"float").toString().toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}function s(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function a(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t))switch(s(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}},63799:function(e,t,i){i.d(t,{alreadyLoadedList:function(){return r},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?a(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?l(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var n=i(70799),o=i(66292);let r=new Map,s=e=>(t,i)=>{if(r.has(i))return r.get(i);let n=e(t,i);return r.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,o.completeUrl)(t)});e.e.one(r,"error",n).one(r,"load",i),e.od.body.appendChild(r)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",e.isInDestruct||e.e.on(r,"load",()=>i(r)).on(r,"error",n),r.href=(0,o.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))},38837:function(e,t,i){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){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)}}});var n=i(23282),o=i(72430),r=i(70799),s=i(12475),a=i(41180)},97639:function(e,t,i){i.d(t,{browser:function(){return n}});let n=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){i.d(t,{buildQuery:function(){return o}});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("&")}},66292:function(e,t,i){i.d(t,{completeUrl:function(){return o}});var n=i(82758);let o=e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},68934:function(e,t,i){i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,c.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{if(d(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,c=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(d(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,c+1);return}if(0!==c&&(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(37790);let u=["__proto__","constructor","prototype"];function d(e){return -1!==u.indexOf(e)}function h(e){return(0,c.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){i.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var n=i(82758),o=i(26049),r=i(82501);let s=(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){i.d(t,{clearCenterAlign:function(){return c},css:function(){return l}});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 u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),f=e.style[t],p="";return void 0!==f&&""!==f?p=f:h&&!c&&(p=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,r.normalizeCssValue)(t,p)}let c=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){i.d(t,{ctrlKey:function(){return n}});let n=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){i.d(t,{dataBind:function(){return r}});var n=i(39955);let o=new WeakMap,r=(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){i.d(t,{defaultLanguage:function(){return r}});var n=i(82758),o=i(70799);let r=(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){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){i.d(t,{abort:function(){return n}});function n(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,i){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){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){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){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){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){i.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var n=i(23282);let o=new Map,r=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]:""}},94643:function(e,t,i){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){i.d(t,{humanSizeToBytes:function(){return n}});let n=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){i.d(t,{$$:function(){return I.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return D.LimitedStack},OptionsError:function(){return g.OptionsError},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},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return j.call},callPromise:function(){return j.callPromise},callThis:function(){return j.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return I.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return p.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 j.getDataTransfer},getPropertyDescriptor:function(){return j.getPropertyDescriptor},getXPathByElement:function(){return I.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return E.inView},isAtom:function(){return v.isAtom},keepNames:function(){return y.keepNames},keys:function(){return j.keys},loadImage:function(){return j.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return j.markOwner},memorizeExec:function(){return j.memorizeExec},options:function(){return g.options},parseQuery:function(){return _.parseQuery},previewBox:function(){return C.previewBox},refs:function(){return I.refs},reset:function(){return k.reset},resolveElement:function(){return I.resolveElement},scrollIntoViewIfNeeded:function(){return E.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),u=i(68934),d=i(55877),h=i(41180),f=i(15456),p=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),w=i(38420),S=i(95942),_=i(82501),C=i(11628),k=i(58844),E=i(26395),I=i(76078),T=i(3703),D=i(50535),j=i(37790)},95942:function(e,t,i){i.d(t,{cns:function(){return n},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))}},82501:function(e,t,i){i.d(t,{parseQuery:function(){return n}});let n=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){i.d(t,{previewBox:function(){return l}});var n=i(2748),o=i(70799),r=i(29960),s=i(41180),a=i(76078);function l(e,t,i="px",c=null){let u=[],d=function(e,t){let i=[];try{(0,a.$$)("img",e.editor).forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),o.src];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=o.src,o.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;o.src=null!=(e=s[2])?e:"",(0,r.attr)(o,{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 l=e.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,s.css)(l,{position:"relative",padding:16});let d=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}),l.appendChild(t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),l=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),t.style.height=`${o.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),s=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",s)};u.push(s),e.e.on("beforeDestruct",s)}}else(0,s.css)(l,{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].nodeName,i.attributes[t].nodeValue);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{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return h(l,d),e.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},58844:function(e,t,i){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){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<=(n=(o=o.parentNode).getBoundingClientRect()).bottom)||r+s<=n.top)return!1;return r<=(i.documentElement&&i.documentElement.clientHeight||0)}function r(e,t,i){n.Dom.isHTMLElement(e)&&!o(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),o(e,t,i)||e.scrollIntoView())}},76078:function(e,t,i){i.d(t,{$$:function(){return d},cssPath:function(){return p},getXPathByElement:function(){return h},refs:function(){return f},resolveElement:function(){return m}});var n=i(82758),o=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let u=1;function d(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)+ ++u;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)+"]":"")},f=e=>("container"in e&&(e=e.container),d("[ref],[data-ref]",e).reduce((e,t)=>{let i=(0,l.attr)(t,"-ref");return i&&(0,s.isString)(i)&&(e[(0,a.camelCase)(i)]=t,e[i]=t),e},{})),p=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(" > ")};function m(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}},3703:function(e,t,i){i.d(t,{set:function(){return a}});var n=i(68345),o=i(29807),r=i(72430),s=i(70799);function a(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let a=e.split("."),l=i,c=a[0];for(let e=0;e<a.length-1;e+=1)c=a[e],(0,n.isArray)(l[c])||(0,r.isPlainObject)(l[c])||(l[c]=(0,o.isNumeric)(a[e+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=t)}},50535:function(e,t,i){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){i.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getDataTransfer:function(){return p},getPropertyDescriptor:function(){return m},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return c},memorizeExec:function(){return f}});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 u(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(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()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},f=(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)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function m(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}},31359:function(e,t,i){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){i.d(t,{loadExtras:function(){return d},loadStyle:function(){return c}});var n=i(82758),o=i(12475),r=i(63799),s=i(89672);function a(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}let l=new Set;function c(e,t){var i;return(i=function*(){let i=u(e,t,!1);if(!l.has(i))return l.add(i),(0,r.appendStyleAsync)(e,i)},function(){var e=this,t=arguments;return new Promise(function(n,o){var r=i.apply(e,t);function s(e){a(r,n,o,s,l,"next",e)}function l(e){a(r,n,o,s,l,"throw",e)}s(void 0)})})()}function u(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||u(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){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){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){i.d(t,{Plugin:function(){return n.Plugin}});var n=i(20356);i(41876)},41876:function(e,t,i){i.d(t,{PluginSystem:function(){return f}});var n=i(82758),o=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),u=i(14041),d=i(48591),h=i(89672);class f{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},f=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([n,o])=>{if(i.has(n)||f.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=>f.has(e)))return void m.add(n)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){f.set(n,null),m.delete(n);return}(0,c.init)(e,n,o,a,f,m,this.opts.getContainer),p[n]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let i=p[t];(0,a.isDestructable)(i)&&i.destruct(e),delete p[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){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){i.d(t,{Ajax:function(){return f}});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);function u(e){var t,i;function n(t,i){try{var r=e[t](i),s=r.value,a=s instanceof h;Promise.resolve(a?s.v:s).then(function(i){if(a){var l="return"===t?"return":"next";if(!s.k||i.done)return n(l,i);i=e[l](i).value}o(r.done?"return":"normal",i)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,o){return new Promise(function(r,s){var a={key:e,arg:o,resolve:r,reject:s,next:null};i?i=i.next=a:(t=i=a,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function h(e,t){this.v=e,this.k=t}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};class f{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((n,o)=>{var r;return(r=function*(){var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,n(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,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)?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:f}=i;e.open(f,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,s.isFunction)(p)&&(p=yield p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)},function(){var e=this,t=arguments;return new Promise(function(i,n){var o=r.apply(e,t);function s(e){d(o,i,n,s,a,"next",e)}function a(e){d(o,i,n,s,a,"throw",e)}s(void 0)})}).call(this)})}stream(){var e;return(e=function*(){var e,t;this.__activated=!0;let{xhr:i,o:n}=this,o=this.prepareRequest(),r=0,l="",c=[],u=null,d=!1,f=null,p=()=>{if(u){let e=u;u=null,e()}},m=e=>{var t;let n=i.responseText;l+=n.substring(r),r=n.length;let o=l.split("\n\n");for(let i of(l=e?"":null!=(t=o.pop())?t:"",o)){let e=i.trim();if(!e)continue;let t=[];for(let i of e.split("\n"))i.startsWith("data: ")?t.push(i.slice(6)):i.startsWith("data:")&&t.push(i.slice(5));t.length&&c.push(t.join("\n"))}p()};i.onprogress=()=>m(!1),i.onload=()=>{m(!0),d=!0,this.__isFulfilled=!0,p()},i.onerror=()=>{f=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,p()},i.onabort=()=>{f=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,p()},i.withCredentials=null!=(e=n.withCredentials)&&e;let{url:g,data:v,method:b}=o;i.open(b,g,!0),n.contentType&&i.setRequestHeader&&i.setRequestHeader("Content-type",n.contentType);let{headers:y}=n;(0,s.isFunction)(y)&&(y=yield new h(y.call(this),0)),y&&i.setRequestHeader&&Object.keys(y).forEach(e=>{i.setRequestHeader(e,y[e])}),i.send(v?this.__buildParams(v):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(d)break;else yield(t=new Promise(e=>{u=e}),new h(t,0))}finally{this.__isFulfilled||this.abort()}if(f)throw f},function(){return new u(e.apply(this,arguments))}).call(this)}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);e=e.substring(0,i)+"?"+(0,s.buildQuery)(function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},n,t))}else e+="?"+(0,s.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return f.log.splice(100),f.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}}f.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],f.prototype,"destruct",null)},57459:function(e,t,i){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){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){function n(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,i=arguments;return new Promise(function(o,r){var s=e.apply(t,i);function a(e){n(s,o,r,a,l,"next",e)}function l(e){n(s,o,r,a,l,"throw",e)}a(void 0)})}}i.d(t,{Response:function(){return r}});class r{get url(){return this.request.url}json(){return o(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return o(function*(){return this.body}).call(this)}constructor(e,t,i,n){this.request=e,this.status=t,this.statusText=i,this.body=n}}},45124:function(e,t,i){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=s(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=s(t)}}}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){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?r.appendChild(t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},43463:function(e,t,i){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){i.d(t,{CHANGE:function(){return r.CHANGE},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return n.Selection},UNWRAP:function(){return r.UNWRAP},WRAP:function(){return r.WRAP}});var n=i(79348),o=i(25639),r=i(77361)},79348:function(e,t,i){i.d(t,{Selection:function(){return f}});var n=i(82758),o=i(65478),r=i(2748),s=i(21537),a=i(27613),l=i(38837),c=i(43463),u=i(25639),d=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 f{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,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!r.Dom.isOrContains(this.area,t.startContainer))}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)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).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){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let n=this.doc.caretPositionFromPoint(e,t);if(n)return i.setStart(n.offsetNode,n.offset)}if(this.doc.caretRangeFromPoint){let n=this.doc.caretRangeFromPoint(e,t);(0,l.assert)(n,"Incorrect caretRangeFromPoint behaviour"),i.setStart(n.startContainer,n.startOffset)}})(),i.collapse(!0),this.selectRange(i),!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.apply(null,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),o.style.lineHeight="0",o.style.display="none",r.Dom.markTemporary(o),(0,s.attr)(o,"data-"+n.MARKER_CLASS,e?"start":"end"),o.appendChild(this.j.createInside.text(n.INVISIBLE_SPACE)),i&&r.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){let e=!1,t=e=>`span[data-${n.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),o=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),o)e.setStartAfter(i),r.Dom.safeRemove(i),e.setEndBefore(o),r.Dom.safeRemove(o);else{let t=i.previousSibling;r.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),r.Dom.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,l.assert)(t,"Range is null");let i=t.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();r.Dom.safeInsertNode(i,n),t.setStartBefore(n);let o=[n];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();r.Dom.safeInsertNode(e,i),t.setEndAfter(i),o.push(i)}return this.selectRange(t),o}restoreFakes(e){var t,i,n,o;let s=e.filter(e=>e.isConnected);if(!s.length)return;let[a,l]=s,c=this.createRange();c.setStartAfter(a),l&&c.setEndBefore(l),this.selectRange(c),(null==(t=a.parentNode)?void 0:t.firstChild)!==(null==(i=a.parentNode)?void 0:i.lastChild)&&r.Dom.safeRemove(a),(null==(n=null==l?void 0:l.parentNode)?void 0:n.firstChild)!==(null==(o=null==l?void 0:l.parentNode)?void 0:o.lastChild)&&r.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],n=t.rangeCount,o=[];for(let e=0;n>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),n=this.marker(!1,o[e]);i[e]={startId:t.id,endId:n.id,collapsed:!1,startMarker:t.outerHTML,endMarker:n.outerHTML}}if(!e){t.removeAllRanges();for(let e=n-1;e>=0;--e){let n=this.doc.getElementById(i[e].startId);if(n){if(i[e].collapsed)o[e].setStartAfter(n),o[e].collapse(!0);else if(o[e].setStartBefore(n),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return i}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.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let n=(0,d.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);let n=r.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!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),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):this.area.appendChild(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 this.area.appendChild(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();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?i.appendChild(e):i.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,n.appendChild(i.firstChild);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)&&n.setAttribute("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)&&(n.style.width="",n.style.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){var t;let i=this.sel;if(!i||!i.rangeCount)return;let o=i.getRangeAt(0),l=o.commonAncestorContainer;r.Dom.isHTMLElement(l)||(l=l.parentElement);let c=[],u=o.startOffset,d=l.childNodes.length,h=o.startContainer===this.area?l.childNodes[u<d?u:d-1]:o.startContainer,f=o.endContainer===this.area?l.childNodes[o.endOffset-1]:o.endContainer;r.Dom.isText(h)&&h===o.startContainer&&o.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),r.Dom.isText(f)&&f===o.endContainer&&0===o.endOffset&&f.previousSibling&&(f=f.previousSibling);let p=e=>{!e||e===l||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||c.push(e)};p(h),h!==f&&r.Dom.isOrContains(l,h,!0)&&r.Dom.find(h,e=>(p(e),e===f||e&&e.contains&&e.contains(f)),l,!0,!1);let m=t=>{if(r.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(m);if(r.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(n.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===c.length&&(r.Dom.isEmptyTextNode(h)&&c.push(h),h.firstChild&&c.push(h.firstChild)),c.forEach(m)}cursorInTheEdge(e,t,i=null){var n;let o=!e,a=null==(n=this.sel)?void 0:n.getRangeAt(0);if(null!=i||(i=this.current(!1)),!a||!i||!r.Dom.isOrContains(t,i,!0))return null;let l=e?a.startContainer:a.endContainer,c=e?a.startOffset:a.endOffset,u=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(l)){if((0,d.cursorInTheEdgeOfString)(l,c,e,o))return!1}else{let e=(0,s.toArray)(l.childNodes);if(o){if(e.slice(c).some(u))return!1}else if(e.slice(0,c).some(u))return!1}let h=i;for(;h&&h!==t;){let t=r.Dom.sibling(h,e);if(!t){h=h.parentNode;continue}if((h=t)&&u(h))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.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))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:(a.appendChild(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){let i=this.sel;return t&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),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?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",n.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),yield t,r.Dom.unwrap(t);return}for(let e of((0,s.$$)("*[style*=font-size]",this.area).forEach(e=>{(0,s.attr)(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,s.$$)("*[data-font-size]",this.area).forEach(e=>{let t=(0,s.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,s.attr)(e,"data-font-size",null))}),(0,s.$$)('font[size="7"]',this.area))){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)}}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 u.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())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"),u=this.j.createInside.fake(),d=u.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,d),r.Dom.before(c,u),s?(i.setEndBefore(c),o.setEndBefore(c)):(i.setEndAfter(c),o.setEndAfter(c))}else i.setEnd(o.startContainer,o.startOffset);let h=i.extractContents(),f=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,l.assert)(e.parentNode,"Splitting fails");try{if(f(h),f(e),e.parentNode.insertBefore(h,e),!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 p=e=>{var t,i,n;(null==(t=null==e?void 0:e.parentNode)?void 0:t.firstChild)===(null==(i=null==e?void 0:e.parentNode)?void 0:i.lastChild)&&(null==(n=null==e?void 0:e.parentNode)||n.appendChild(c.cloneNode()))};p(u),p(d)}finally{r.Dom.safeRemove(u),r.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;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(this.selectRange(t),r.Dom.safeRemove(n,o),this.isCollapsed())throw(0,s.error)("Selection is collapsed");return this}constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([o.autobind],f.prototype,"createRange",null),h([o.autobind],f.prototype,"focus",null),h([o.autobind],f.prototype,"setCursorAfter",null),h([o.autobind],f.prototype,"setCursorBefore",null),h([o.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,i){i.d(t,{extractSelectedPart:function(){return a}});var n=i(2748),o=i(78116),r=i(49055),s=i(37790);function a(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),l(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),l(e,n,!1)}function l(e,t,i){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||n.Dom.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?n.Dom.before:n.Dom.after,e,o)}},49996:function(e,t,i){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){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){i.d(t,{getSuitParent:function(){return function e(t,i,s){let{parentNode:a}=i;return a===s||!n.Dom.isHTMLElement(a)||n.Dom.next(i,o.isNormalNode,a)||n.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(a)?e(t,a,s):(0,r.isSuitElement)(t,a,!1)&&(!n.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!n.Dom.isBlock(a)?e(t,a,s):null}}});var n=i(2748),o=i(29136),r=i(97380)},22030:function(e,t,i){i.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});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 u(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)(u(e,{color:"red"}),"Style test"),(0,a.assert)(!u(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!u(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,i){i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},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 u.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return d.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 u=i(44253),d=i(75882),h=i(19263);i(6980)},64291:function(e,t,i){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){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){i.d(t,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var n=i(21496),o=i(43555),r=i(38837),s=i(22030);function a(e,t){return!((e.attributes.length||(0,n.size)(t))&&(0,n.size)(t))||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>"class"===i||"className"===i?e.classList.contains(t[i]):"style"===i?(0,s.hasSameStyle)(e,t[i]):(0,o.attr)(e,i)===t[i]))}function l(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value)}},97380:function(e,t,i){i.d(t,{isSameStyleChild:function(){return l},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:u,options:d}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,c);return!!(h&&!(u&&i)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!i&&u&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}function l(e,t){var i,n;let{element:s,options:a}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,c=!!((null==(i=a.attributes)?void 0:i.style)&&(0,o.hasSameStyleKeys)(t,null==(n=a.attributes)?void 0:n.style));return l&&c}},20199:function(e,t,i){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(n!==a.UNWRAP){let r=(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=u(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return c(a.REPLACE,r,e),a.REPLACE}}let d=u(a.UNWRAP,o,t,i,e);return c(a.UNWRAP,d,e),a.UNWRAP}function u(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),n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside))}},82515:function(e,t,i){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,u=l.nextElementSibling,d=n.Dom.isTag(c,e.element)?c:null;return null!=d||(d=n.Dom.isTag(u,e.element)?u:null),n.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,r.toggleAttributes)(e,d,i,s.INITIAL),n.Dom.before(l,d)),c===d?n.Dom.append(d,l):n.Dom.prepend(d,l),n.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(n.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),n.Dom.safeRemove(d.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,d,e),d}},44253:function(e,t,i){i.d(t,{toggleAttributes:function(){return m}});var n=i(82758),o=i(2748),r=i(580),s=i(27613),a=i(3760),l=i(21496),c=i(12475),u=i(43555),d=i(41180),h=i(86583),f=i(77361);let p="toggleAttributes";function m(e,t,i,v,b=!1){if(!b&&e.isApplied(t,p))return v;b||e.setApplied(t,p);let{attributes:y}=e.options;return y&&(0,l.size)(y)>0&&Object.keys(y).forEach(p=>{var m,w,S;let _=y[p];switch(p){case"style":m=v,(0,u.assert)((0,s.isPlainObject)(_)&&(0,l.size)(_),"Style must be an object"),Object.keys(_).forEach(s=>{let l=t.style.getPropertyValue((0,c.kebabCase)(s)),u=_[s];if(""!==l||null!=u){let c,p,v,y;if(c=function(e){var t;if(void 0!==(0,h.dataBind)(e,"shadowRoot"))return(0,h.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),o=n.globalDocument.createElement("iframe");(0,d.css)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);let s=null==(t=o.contentWindow)?void 0:t.document,a=s?s.body:e.od.body;return(0,h.dataBind)(e,"shadowRoot",a),a}(i),(p=i.create.element("div")).style.color=(0,d.css)(i.editor,"color"),(v=i.create.element(t.tagName.toLowerCase())).style.cssText=t.style.cssText,p.appendChild(v),c.appendChild(p),y=(0,d.css)(v,s),o.Dom.safeRemove(p),y===(0,a.normalizeCssValue)(s,u)){if(!l)return;b||(0,d.css)(t,s,null),m=g(e,t,m=f.UNSET);return}m=f.CHANGE,b||((0,d.css)(t,s,u),m=g(e,t,m))}}),v=m;break;case"className":case"class":let C;w=v,(0,u.assert)((0,s.isString)(_),"Class name must be a string"),C=i.e.fire.bind(i.e,`${f._PREFIX}AfterToggleAttribute`),t.classList.contains(_.toString())?(w=f.UNSET,b||(t.classList.remove(_),0===t.classList.length&&((0,u.attr)(t,"class",null),C(w,t,"class",null)))):(w=f.CHANGE,b||(t.classList.add(_),C(w,t,"class",_))),v=w;break;default:let k;S=v,(0,u.assert)((0,s.isString)(_)||(0,s.isNumber)(_)||(0,s.isBoolean)(_)||null==_,"Attribute value must be a string or number or boolean or null"),k=i.e.fire.bind(i.e,`${f._PREFIX}AfterToggleAttribute`),(0,u.attr)(t,p)===_?(b||(0,u.attr)(t,p,null),S=f.UNSET,b||k(S,t,p,_)):(S=f.CHANGE,b||((0,u.attr)(t,p,_),k(S,t,p,_))),v=S}}),v}function g(e,t,i){return(0,u.attr)(t,"style")||((0,u.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=f.UNWRAP)),i}},75882:function(e,t,i){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=[],u=null==(i=e.options.attributes)?void 0:i.style;if(t.firstChild){let i=n.Dom.eachGen(t),d=i.next();for(;!d.done;){let t=d.value;(0,s.isSuitElement)(e,t,!0)&&(!u||(0,r.hasSameStyleKeys)(t,u))?(void 0===a&&(a=!0),l.push(t)):u&&(0,s.isSameStyleChild)(e,t)?(void 0===a&&(a=!1),c.push(()=>{(0,o.css)(t,Object.keys(u).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||l.push(t)})):n.Dom.isEmptyTextNode(t)||void 0!==a||(a=!1),d=i.next()}}return c.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},6980:function(e,t,i){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"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let d=u.extractContents(),h=s.element(e.element);return h.appendChild(d),n.Dom.safeInsertNode(u,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&h.appendChild(s.element("br")),h}},19263:function(e,t,i){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,u,d;let h=(l=e,u=t,d=i,l.elementIsBlock?n.Dom.up(u,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,c),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,o.attr)(u,"size",null),u));if(e.elementIsList)return(0,s.wrapList)(e,h,i);let f=n.Dom.replace(h,e.element,i.createInside,!0);return e.elementIsBlock&&((0,r.css)(f,"fontSize",null),(0,r.css)(f,"fontWeight",null),(0,o.attr)(f,"style")||(0,o.attr)(f,"style",null)),f}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(e,t,i){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=e.s.wrapInTagGen(l),u=c.next();if(u.done)return;let d={collapsed:s.isCollapsed(),mode:o.INITIAL,element:u.value,next:r.states.START,jodit:e,style:t};for(;u&&!u.done;){let e=new n.FiniteStateMachine(r.states.START,r.transactions);for(d.element=u.value;e.getState()!==r.states.END;)d=e.dispatch("exec",d);u=c.next()}s.restoreFakes(l)}},25639:function(e,t,i){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.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,i){i.d(t,{CHANGE:function(){return r},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return o},WRAP:function(){return n},_PREFIX:function(){return c}});let n="wrap",o="unwrap",r="change",s="unset",a="initial",l="replace",c="commitStyle"},55307:function(e,t,i){i.d(t,{states:function(){return u},transactions:function(){return d}});var n=i(82758),o=i(2748),r=i(38837),s=i(63687),a=i(77361);function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}let u={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"},d={[u.START]:{exec(e){let{element:t,jodit:i,style:n,mode:r,collapsed:d}=e;if((0,s.isInsideInvisibleElement)(t,i.editor)||!d&&o.Dom.isEmptyContent(t))return c(l({},e),{next:u.END});let h=(0,s.getSuitParent)(n,t,i.editor)||(0,s.getSuitChild)(n,t);if(h)return c(l({},e),{next:u.ELEMENT,element:h});let f=(0,s.suitableClosest)(n,t,i.editor);return n.elementIsList&&o.Dom.isList(f)?c(l({},e),{next:u.LIST}):f?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:r!==a.UNWRAP?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==a.INITIAL&&r!==a.UNWRAP&&r!==a.REPLACE)return c(l({},e),{next:u.END});let s=o.Dom.closest(t,"li",i.editor);return s&&o.Dom.closest(t,n.LIST_TAGS,i.editor)?c(l({},e),{element:s,next:u.TOGGLE_LIST}):c(l({},e),{next:u.END})}},[u.TOGGLE_LIST]:{exec(e){return c(l({},e),{mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:u.END})}},[u.EXTRACT]:{exec(e){var t;let{element:i,jodit:n,style:a}=e,d=(0,s.suitableClosest)(a,i,n.editor);return((0,r.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(d))?c(l({},e),{next:u.WRAP}):(a.elementIsBlock||(0,s.extractSelectedPart)(d,i,n),c(l({},e),{element:d,next:u.ELEMENT}))}},[u.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,s.unwrapChildren)(i,t)?c(l({},e),{mode:a.UNWRAP,next:u.END}):c(l({},e),{next:u.WRAP})}},[u.WRAP]:{exec(e){let{element:t,jodit:i,style:n}=e,o=(0,s.wrap)(n,t,i);return c(l({},e),{next:n.elementIsList?u.END:u.CHANGE,mode:a.WRAP,element:o})}},[u.ELEMENT]:{exec(e){let{style:t,element:i,jodit:n}=e;return(0,s.toggleAttributes)(t,i,n,a.INITIAL,!0)!==a.INITIAL?c(l({},e),{next:u.CHANGE}):o.Dom.isTag(i,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{next:u.END})}},[u.CHANGE]:{exec(e){let{style:t,element:i,jodit:n,mode:r}=e,d=(0,s.toggleAttributes)(t,i,n,e.mode);return r!==a.WRAP&&d===a.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{mode:d,next:u.END})}},[u.UNWRAP]:{exec(e){return e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?c(l({},e),{next:u.REPLACE_DEFAULT}):(o.Dom.unwrap(e.element),c(l({},e),{mode:a.UNWRAP,next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),c(l({},e),{mode:a.REPLACE,next:u.END})}},[u.END]:{exec(e){return e}}}},97333:function(e,t,i){i.d(t,{AsyncStorage:function(){return u}});var n=i(87058),o=i(2621),r=i(65638),s=i(21162),a=i(6700);function l(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function c(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var r=e.apply(t,i);function s(e){l(r,n,o,s,a,"next",e)}function a(e){l(r,n,o,s,a,"throw",e)}s(void 0)})}}class u{set(e,t){return c(function*(){let i=yield this.provider;return yield i.set((0,n.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return c(function*(){let t=yield this.provider;return yield t.delete((0,n.camelCase)(this.prefix+e)),this}).call(this)}get(e){return c(function*(){return(yield this.provider).get((0,n.camelCase)(this.prefix+e))}).call(this)}exists(e){return c(function*(){return(yield this.provider).exists((0,n.camelCase)(this.prefix+e))}).call(this)}clear(){return c(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return c(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider(a.StorageKey+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),i||(i=new s.MemoryStorageProvider),new u(Promise.resolve(i),t)}constructor(e,t){this.provider=e,this.prefix=a.StorageKey,t&&(this.prefix+=t)}}},2621:function(e,t,i){i.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return l}});var n=i(82758);function o(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function r(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var s=e.apply(t,i);function a(e){o(s,n,r,a,l,"next",e)}function l(e){o(s,n,r,a,l,"throw",e)}a(void 0)})}}class s{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}performTransaction(e,t){return r(function*(){try{let i=(yield 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)}}).call(this)}set(e,t){return r(function*(){try{yield this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){n.IS_PROD}return this}).call(this)}delete(e){return r(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return r(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return r(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return r(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return r(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return r(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function c(){return r(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return a=!1,!1}})()}},65638:function(e,t,i){i.d(t,{LocalStorageProvider:function(){return o},canUsePersistentStorage:function(){return n}});let n=(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};class o{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{this.storage.removeItem(this.rootKey)}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}}},21162:function(e,t,i){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){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 a.StorageKey},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){i.d(t,{Storage:function(){return a},StorageKey:function(){return s}});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){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(function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({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){i.d(t,{Elms:function(){return o}});var n=i(4510);class o{getElm(e){return this.container.querySelector(`.${this.getFullElName(e)}`)}getElms(e){return(0,n.toArray)(this.container.querySelectorAll(`.${this.getFullElName(e)}`))}}},34176:function(e,t,i){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){i.d(t,{Button:function(){return v},UIButton:function(){return g},UIButtonState:function(){return m}});var n=i(78213),o=i(33433),r=i(87325),s=i(37133),a=i(2748),l=i(23282),c=i(70799),u=i(38837),d=i(29960),h=i(48538),f=i(12153),p=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,u.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,u.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,d.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,d.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,d.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,d.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,d.attr)(this.container,"data-ref",this.state.name),(0,d.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,d.attr)(this.container,"title",e),(0,d.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,d.attr)(this.container,"aria-label",t),(0,d.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,d.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=f.Icon.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(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 t.appendChild(i),t.appendChild(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}p([o.cache],g.prototype,"text",null),p([o.cache],g.prototype,"icon",null),p([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),p([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),p([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),p([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),p([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),p([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),p([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),p([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),p([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),p([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),p([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),p([o.cacheHTML],g.prototype,"createContainer",null),p([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=p([r.component],g)},71916:function(e,t,i){i.d(t,{UIButtonGroup:function(){return a}});var n=i(87325),o=i(38837),r=i(10830),s=i(62405);let a=class e extends s.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(){"use strict";var e,t,i,n,o={6441:function(e,t,i){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.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.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){i.d(t,{Async:function(){return p}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),f=i(93661);class p{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,d.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,u.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,u=[],d=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&d(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.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,f.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){var n,o;let r=globalThis.scheduler.postTask(e,(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},t),o=o={signal:i.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n));return r.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),r}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,f.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){i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){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){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){i.d(t,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(e,t,i){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){i.r(t),i.d(t,{ACCURACY:function(){return U},APP_VERSION:function(){return n},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return V},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return ei},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return J},IS_INLINE:function(){return k},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return P},KEY_DELETE:function(){return F},KEY_DOWN:function(){return N},KEY_ENTER:function(){return L},KEY_ESC:function(){return x},KEY_F3:function(){return H},KEY_LEFT:function(){return R},KEY_META:function(){return j},KEY_RIGHT:function(){return M},KEY_SPACE:function(){return B},KEY_TAB:function(){return A},KEY_UP:function(){return O},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return p},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return Y},PASSIVE_EVENTS:function(){return eb},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return b},SPACE_REG_EXP_END:function(){return w},SPACE_REG_EXP_START:function(){return y},TEMP_ATTR:function(){return ep},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return X},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return _},globalWindow:function(){return S},lang:function(){return em}});let n="4.12.32",o="es2015",r=!0,s=!1,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/pro/",d=()=>l=!0,h={},f="\uFEFF",p="\xa0",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,S="u">typeof window?window:void 0,_="u">typeof document?document:void 0,C=/^(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,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...I,"br","hr"]),D=new Set(I),j="Meta",P="Backspace",A="Tab",L="Enter",x="Escape",z="Alt",R="ArrowLeft",O="ArrowUp",M="ArrowRight",N="ArrowDown",B="Space",F="Delete",H="F3",q=5,U=10,V=[j,P,F,O,N,M,R,L,x,H,A],W="br",Y="p",K=1,$=2,G=3,J="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=J?"text":"text/plain",Z=J?"html":"text/html",Q=J?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,ei="insert_as_html",en="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==S&&/Mac|iPod|iPhone|iPad/.test(S.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=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:eu,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=_.currentScript;if(e)return ec(e.src);let t=_.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(S.location.href)})(),eh=eu,ef=ed,ep="data-jodit-temp",em={},eg="clipboard",ev="source-consumer",eb=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(e,t,i){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=>n.appendChild((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"});this.doc.body.appendChild(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){i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){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){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;if(l&&c.has(this.constructor))return null==(t=c.get(this.constructor))?void 0:t.cloneNode(!0);let i=a.apply(this,e);return l&&o.Dom.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){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){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){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){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){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){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 u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return f.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),f=i(37133)},31589:function(e,t,i){i.d(t,{nonenumerable:function(){return n}});let n=(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){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){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){i.d(t,{watch:function(){return d}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let f=null==(h=null==t?void 0:t.immediately)||h,p=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[d](e,...i)};f||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=p;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,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,c);let f=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,c),c(l,i,h))},get(){return f&&f.get?f.get.call(t):h}})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return b}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(49055),h=i(38837),f=i(29960),p=i(41180),m=i(86583),g=i(89890),v=i(37790);class b{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o=e;i.s.save();let r=!1;do r=!1,(n=o.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(r=!0,o=n);while(r);return b.__wrapElements(t,i,e,o)}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=e,r=e;i.s.save();let s=!1;do s=!1,(n=o.previousSibling)&&!b.isBlock(n)&&(s=!0,o=n);while(s);do s=!1,(n=r.nextSibling)&&!b.isBlock(n)&&(s=!0,r=n);while(s);return b.__wrapElements(t,i,o,r)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(b.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);b.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;)n=n.parentNode;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&&b.isElement(e)&&b.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 b.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return b.each(e,e=>b.isEmptyTextNode(e))}static isContentEditable(e,t){return b.isNode(e)&&!b.closest(e,e=>b.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,d.trim)(e.nodeValue).length;return b.isText(e)?o(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!o(e)||b.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 b.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return b.isTag(e,n.LIST_TAGS)}static isLeaf(e){return b.isTag(e,"li")}static isImage(e){return b.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&b.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!!b.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!b.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 b.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,p.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&b.isHTMLElement(e)&&b.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){let i=null==e?void 0:e.firstChild;if(!i)return null;do{if(t(i))return i;let n=i.firstChild;if(n||(n=i.nextSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.nextSibling)&&i.parentNode!==e);n=null==i?void 0:i.nextSibling}i=n}while(i);return null}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let n=i.lastChild;if(n||(n=i.previousSibling),!n&&i.parentNode!==e){do i=i.parentNode;while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);n=null==i?void 0:i.previousSibling}i=n}while(i);return null}static prev(e,t,i,n=!0){return b.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return b.find(e,t,i,!0,n)}static prevWithClass(e,t){return b.prev(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}static nextWithClass(e,t){return b.next(e,e=>b.isElement(e)&&e.classList.contains(t),e.parentNode)}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.unshift(t),t=i?t.nextSibling:t.previousSibling;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=b.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=>!b.isEmptyTextNode(e)){let n=b.sibling(e,t);for(;n&&!i(n);)n=b.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return b.findSibling(e,t,e=>{var t;return!b.isEmptyTextNode(e)&&!!(!b.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?b.prev:b.next,e,e=>!!(e&&(!(b.isText(e)||b.isComment(e))||(0,d.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 b.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){let i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){let{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){let{parentNode:i}=e;i&&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)||(b.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}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=>b.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=b.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&b.isTag(e.startContainer,n.INSEPARABLE_TAGS)?b.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>b.isText(e)&&!e.nodeValue&&b.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(t instanceof Set)return t.has(i)||t.has(n);if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");return i===t||n===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!b.isElement(e)&&(b.isMarker(e)||"true"===(0,f.attr)(e,n.TEMP_ATTR))}static isMarker(e){return b.isNode(e)&&b.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.toArray)(e.querySelectorAll(`[${n.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){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){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.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!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(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}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.idleId=0,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){i.d(t,{EventEmitter:function(){return u}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{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]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__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,u,h,f;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,f=i):(c=e,u=t,h=i,f=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.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,u,h,f)}),this;let p=c,m=this.__getStore(p),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(p)&&(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(u,(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==f?void 0:f.top),d(p)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==f?void 0:f.capture)&&i}:null!=(o=null==f?void 0:f.capture)&&o;v.options=t,p.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(p,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 u=n,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let f=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},p=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&p(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&&(f(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(f),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{p(e,t)}):p(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),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,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(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,...u),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);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 d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){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){i.d(t,{eventEmitter:function(){return n}});let n=new(i(98220)).EventEmitter},3827:function(e,t,i){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){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),u=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(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)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];u(["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])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s},defaultNameSpace:function(){return r}});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}}},580:function(e,t,i){i.d(t,{eventEmitter:function(){return C},extendLang:function(){return y},getContainer:function(){return S},getPopupViewRoot:function(){return _},instances:function(){return f},modules:function(){return b},pluginSystem:function(){return v},uniqueUid:function(){return g}});var n=i(19306),o=i(70799),r=i(39955),s=i(12475),a=i(41180),l=i(80568),c=i(41876),u=i(57012),d=i(82758),h=i(22732);let f={},p=1,m=new Set;function g(){function e(){return Math.round(p+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new c.PluginSystem({getContainer:S}),b={},y=e=>{Object.keys(e).forEach(t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]})},w=new WeakMap;function S(e,t,i="div",a=!1){let c=(0,o.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",u=w.get(e)||{},d=c+i,f=(0,r.isViewObject)(e)?e:e.j,p=null;if(!u[d]){let t=f.c;if(p=_(f.o,f.container,e.od.body),a&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;p=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(c)}-container jodit-box`});o.classList.add(`jodit_theme_${f.o.theme||"default"}`),p.appendChild(o),u[d]=o,e.hookStatus("beforeDestruct",()=>{f.events.off(o),h.Dom.safeRemove(o),delete u[d],Object.keys(u).length&&w.delete(e)}),w.set(e,u),f.events.fire("getContainer",o)}return u[d].classList.remove("jodit_theme_default","jodit_theme_dark"),u[d].classList.add(`jodit_theme_${f.o.theme||"default"}`),u[d]}function _(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?r:i}let C=u.eventEmitter},29999:function(e,t,i){i.d(t,{asArray:function(){return o}});var n=i(68345);let o=e=>(0,n.isArray)(e)?e:[e]},76855:function(e,t,i){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){i.d(t,{splitArray:function(){return n}});function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){i.d(t,{toArray:function(){return r}});var n=i(70722),o=i(58844);let r=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){i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){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){i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e=!0;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){i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.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 S.isSet},isString:function(){return _.isString},isStringArray:function(){return _.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return T.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),f=i(19306),p=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),w=i(14773),S=i(42320),_=i(70799),C=i(26049),k=i(37508),E=i(39955),I=i(86068),T=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return n}});function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return n}});function n(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return n}});function n(e){return"boolean"==typeof e}},59292:function(e,t,i){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){i.d(t,{isFunction:function(){return n}});function n(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return n}});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/)}},58487:function(e,t,i){i.d(t,{isHTML:function(){return o}});var n=i(70799);let o=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){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){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){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){i.d(t,{isLicense:function(){return o}});var n=i(70799);let o=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){i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return n}});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)))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return n}});function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){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){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){i.d(t,{isPromise:function(){return n}});function n(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){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){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){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){i.d(t,{isValidName:function(){return n}});function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){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){i.d(t,{isVoid:function(){return n}});function n(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return n}});function n(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,{colorToHex:function(){return n}});let n=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}},58149:function(e,t,i){i.d(t,{colorToHex:function(){return n.colorToHex}});var n=i(35278)},32574:function(e,t,i){i.d(t,{applyStyles:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(76078);function a(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 l(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);let t=n.globalDocument.createElement("iframe");t.style.display="none",n.globalDocument.body.appendChild(t);let i="";try{let l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close(),o.Dom.each(l.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test(e.getAttribute("style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<l.styleSheets.length;e+=1){let t=l.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)""!==t[e].selectorText&&(0,s.$$)(t[e].selectorText,l.body).forEach(i=>{i.style.cssText=a(t[e].style.cssText+";"+i.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}o.Dom.each(l.body,e=>{if(o.Dom.isElement(e)){let t=e.getAttribute("style");t&&(e.style.cssText=a(t)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}}),i=l.firstChild?(0,r.trim)(l.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(t)}return i&&(e=i),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return a}});var n=i(82758),o=i(2748),r=i(4510),s=i(49055);function a(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(e.getAttribute("style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}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){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){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){i.d(t,{nl2br:function(){return n}});function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,i){i.d(t,{safeHTML:function(){return r},sanitizeHTMLElement:function(){return l}});var n=i(2748),o=i(43555);function r(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let r=null!=(i=t.removeEventAttributes)?i:t.removeOnError,s=e=>{if(n.Dom.isElement(e)&&(r&&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)e.removeAttribute(i)}(e),l(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===e.getAttribute("target"))){let t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};s(e),n.Dom.each(e,s)}let s=["src","data","action","formaction","poster","background","xlink:href"],a=new Set(["iframe","frame","object","embed"]);function l(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),r=!0);let c=e.getAttribute("href");if(t&&c&&0===c.trim().indexOf("javascript")&&((0,o.attr)(e,"href",location.protocol+"//"+c),r=!0),t){e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),r=!0);let t=e.nodeName.toLowerCase();for(let i of s){let n=e.getAttribute(i);n&&function(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)&&a.has(t)}(n,t)&&((0,o.attr)(e,i,null),r=!0)}}return r}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null,d=!1){let h=i.createElement("div");return(0,o.isString)(t)?h.innerHTML=t:h.appendChild(t),(0,s.$$)("*",h).forEach(t=>{let o=t.parentNode;if(!o)return;if(u&&n.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,u,d)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,l))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,a))return;let r=t.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.insertBefore(i.createTextNode(d?"%%%jodit-single-br%%%":" "),r)}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),o=i(70799),r=i(49055),s=i(43555);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},21537:function(e,t,i){i.r(t),i.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},UNSAFE_PROTO_KEYS:function(){return d.UNSAFE_PROTO_KEYS},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},assert:function(){return d.assert},attr:function(){return d.attr},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return d.css},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.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 d.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.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 d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return n.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var n=i(76855),o=i(91898),r=i(27613),s=i(58149),a=i(75275),l=i(71521),c=i(56175),u=i(59007),d=i(43555)},71521:function(e,t,i){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 u.normalizeUrl}});var n=i(21224),o=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),u=i(37406)},21224:function(e,t,i){i.d(t,{normalizeColor:function(){return r}});var n=i(35278),o=i(49055);let r=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){i.d(t,{NUMBER_FIELDS_REG:function(){return a},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}},49033:function(e,t,i){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){i.d(t,{normalizeLicense:function(){return n}});let n=(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){i.d(t,{normalizePath:function(){return o}});var n=i(49055);let o=(...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){i.d(t,{normalizeRelativePath:function(){return n}});let n=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){i.d(t,{normalizeSize:function(){return n}});let n=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},37406:function(e,t,i){i.d(t,{normalizeUrl:function(){return n}});let n=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(e,t,i){i.d(t,{getContentWidth:function(){return n}});let n=(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){i.d(t,{getFixedPositionOffset:function(){return n}});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}}},16442:function(e,t,i){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){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){i.d(t,{innerWidth:function(){return n}});let n=(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},21496:function(e,t,i){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){i.d(t,{offset:function(){return n}});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},u=i.defaultView||i.parentWindow,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=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+d-f,a=r.left+h-p;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},5700:function(e,t,i){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){i.d(t,{camelCase:function(){return n}});let n=e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())},67477:function(e,t,i){i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(82758);function o(e,t,i=0,r=1){let s=0,a=0,l=-1,c=0,u=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){i.d(t,{i18n:function(){return c},sprintf:function(){return l}});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),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,s.defaultLanguage)(null==i?void 0:i.language,h),p=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[f]?u=n.lang[f]:c||(u=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[f]){let e=p(m[f]);if(e)return e}return p(u)||(!c&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):c?"{"+e+"}":(n.IS_PROD,d(e)))}},59007:function(e,t,i){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){i.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return n}});let n=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(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(e,t,i){i.d(t,{stringify:function(){return n}});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)}},49055:function(e,t,i){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){i.d(t,{ucfirst:function(){return n}});function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,i){i.d(t,{alignElement:function(){return a},clearAlign:function(){return s},hAlignElement:function(){return r}});var n=i(22732),o=i(41180);function r(e,t){t&&"normal"!==t?"center"!==t?((0,o.css)(e,"float",t),(0,o.clearCenterAlign)(e)):(0,o.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,o.css)(e,"float")&&-1!==["right","left"].indexOf((0,o.css)(e,"float").toString().toLowerCase())&&(0,o.css)(e,"float",""),(0,o.clearCenterAlign)(e))}function s(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function a(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t))switch(s(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}},63799:function(e,t,i){i.d(t,{alreadyLoadedList:function(){return r},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?a(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?l(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var n=i(70799),o=i(66292);let r=new Map,s=e=>(t,i)=>{if(r.has(i))return r.get(i);let n=e(t,i);return r.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,o.completeUrl)(t)});e.e.one(r,"error",n).one(r,"load",i),e.od.body.appendChild(r)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",e.isInDestruct||e.e.on(r,"load",()=>i(r)).on(r,"error",n),r.href=(0,o.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))},38837:function(e,t,i){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){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)}}});var n=i(23282),o=i(72430),r=i(70799),s=i(12475),a=i(41180)},97639:function(e,t,i){i.d(t,{browser:function(){return n}});let n=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){i.d(t,{buildQuery:function(){return o}});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("&")}},66292:function(e,t,i){i.d(t,{completeUrl:function(){return o}});var n=i(82758);let o=e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},68934:function(e,t,i){i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return d},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,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.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,u+1);return}if(0!==u&&(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),u=i(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){i.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var n=i(82758),o=i(26049),r=i(82501);let s=(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){i.d(t,{clearCenterAlign:function(){return c},css:function(){return l}});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 u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),f=e.style[t],p="";return void 0!==f&&""!==f?p=f:h&&!c&&(p=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,r.normalizeCssValue)(t,p)}let c=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){i.d(t,{ctrlKey:function(){return n}});let n=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){i.d(t,{dataBind:function(){return r}});var n=i(39955);let o=new WeakMap,r=(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){i.d(t,{defaultLanguage:function(){return r}});var n=i(82758),o=i(70799);let r=(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){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){i.d(t,{abort:function(){return n}});function n(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,i){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){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){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){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){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){i.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var n=i(23282);let o=new Map,r=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]:""}},94643:function(e,t,i){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){i.d(t,{humanSizeToBytes:function(){return n}});let n=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){i.d(t,{$$:function(){return T.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return S.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},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return P.call},callPromise:function(){return P.callPromise},callThis:function(){return P.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return _.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return T.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return p.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 P.getDataTransfer},getPropertyDescriptor:function(){return P.getPropertyDescriptor},getXPathByElement:function(){return T.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return S.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return P.keys},loadImage:function(){return P.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return _.markDeprecated},markOwner:function(){return P.markOwner},memorizeExec:function(){return P.memorizeExec},options:function(){return g.options},parseQuery:function(){return C.parseQuery},previewBox:function(){return k.previewBox},refs:function(){return T.refs},reset:function(){return E.reset},resolveElement:function(){return T.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return D.set}});var n=i(25726),o=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),u=i(68934),d=i(55877),h=i(41180),f=i(15456),p=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),w=i(38420),S=i(69175),_=i(95942),C=i(82501),k=i(11628),E=i(58844),I=i(26395),T=i(76078),D=i(3703),j=i(50535),P=i(37790)},69175:function(e,t,i){i.d(t,{UNSAFE_PROTO_KEYS:function(){return n},isUnsafeProtoKey:function(){return o}});let n=["__proto__","constructor","prototype"];function o(e){return -1!==n.indexOf(e)}},95942:function(e,t,i){i.d(t,{cns:function(){return n},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))}},82501:function(e,t,i){i.d(t,{parseQuery:function(){return n}});let n=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){i.d(t,{previewBox:function(){return l}});var n=i(2748),o=i(70799),r=i(29960),s=i(41180),a=i(76078);function l(e,t,i="px",c=null){let u=[],d=function(e,t){let i=[];try{(0,a.$$)("img",e.editor).forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),o.src];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=o.src,o.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;o.src=null!=(e=s[2])?e:"",(0,r.attr)(o,{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 l=e.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,s.css)(l,{position:"relative",padding:16});let d=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}),l.appendChild(t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),l=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),t.style.height=`${o.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),s=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",s)};u.push(s),e.e.on("beforeDestruct",s)}}else(0,s.css)(l,{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].nodeName,i.attributes[t].nodeValue);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{t.appendChild(e)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return h(l,d),e.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(e=>e())}]}finally{d.forEach(e=>e())}}},58844:function(e,t,i){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){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<=(n=(o=o.parentNode).getBoundingClientRect()).bottom)||r+s<=n.top)return!1;return r<=(i.documentElement&&i.documentElement.clientHeight||0)}function r(e,t,i){n.Dom.isHTMLElement(e)&&!o(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),o(e,t,i)||e.scrollIntoView())}},76078:function(e,t,i){i.d(t,{$$:function(){return d},cssPath:function(){return p},getXPathByElement:function(){return h},refs:function(){return f},resolveElement:function(){return m}});var n=i(82758),o=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let u=1;function d(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)+ ++u;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)+"]":"")},f=e=>("container"in e&&(e=e.container),d("[ref],[data-ref]",e).reduce((e,t)=>{let i=(0,l.attr)(t,"-ref");return i&&(0,s.isString)(i)&&(e[(0,a.camelCase)(i)]=t,e[i]=t),e},{})),p=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(" > ")};function m(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}},3703:function(e,t,i){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,u=l[0];for(let e=0;e<l.length-1;e+=1)u=l[e],(0,n.isArray)(c[u])||(0,r.isPlainObject)(c[u])||(c[u]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[u];c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){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){i.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getDataTransfer:function(){return p},getPropertyDescriptor:function(){return m},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return c},memorizeExec:function(){return f}});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 u(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(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()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},f=(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)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function m(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e);return i}},31359:function(e,t,i){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){i.d(t,{loadExtras:function(){return d},loadStyle:function(){return c}});var n=i(82758),o=i(12475),r=i(63799),s=i(89672);function a(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}let l=new Set;function c(e,t){var i;return(i=function*(){let i=u(e,t,!1);if(!l.has(i))return l.add(i),(0,r.appendStyleAsync)(e,i)},function(){var e=this,t=arguments;return new Promise(function(n,o){var r=i.apply(e,t);function s(e){a(r,n,o,s,l,"next",e)}function l(e){a(r,n,o,s,l,"throw",e)}s(void 0)})})()}function u(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||u(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){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){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){i.d(t,{Plugin:function(){return n.Plugin}});var n=i(20356);i(41876)},41876:function(e,t,i){i.d(t,{PluginSystem:function(){return f}});var n=i(82758),o=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),u=i(14041),d=i(48591),h=i(89672);class f{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},f=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([n,o])=>{if(i.has(n)||f.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=>f.has(e)))return void m.add(n)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){f.set(n,null),m.delete(n);return}(0,c.init)(e,n,o,a,f,m,this.opts.getContainer),p[n]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let i=p[t];(0,a.isDestructable)(i)&&i.destruct(e),delete p[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){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){i.d(t,{Ajax:function(){return f}});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);function u(e){var t,i;function n(t,i){try{var r=e[t](i),s=r.value,a=s instanceof h;Promise.resolve(a?s.v:s).then(function(i){if(a){var l="return"===t?"return":"next";if(!s.k||i.done)return n(l,i);i=e[l](i).value}o(r.done?"return":"normal",i)},function(e){n("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,o){return new Promise(function(r,s){var a={key:e,arg:o,resolve:r,reject:s,next:null};i?i=i.next=a:(t=i=a,n(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function h(e,t){this.v=e,this.k=t}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};class f{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((n,o)=>{var r;return(r=function*(){var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,n(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,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)?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:f}=i;e.open(f,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,s.isFunction)(p)&&(p=yield p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)},function(){var e=this,t=arguments;return new Promise(function(i,n){var o=r.apply(e,t);function s(e){d(o,i,n,s,a,"next",e)}function a(e){d(o,i,n,s,a,"throw",e)}s(void 0)})}).call(this)})}stream(){var e;return(e=function*(){var e,t;this.__activated=!0;let{xhr:i,o:n}=this,o=this.prepareRequest(),r=0,l="",c=[],u=null,d=!1,f=null,p=()=>{if(u){let e=u;u=null,e()}},m=e=>{var t;let n=i.responseText;l+=n.substring(r),r=n.length;let o=l.split("\n\n");for(let i of(l=e?"":null!=(t=o.pop())?t:"",o)){let e=i.trim();if(!e)continue;let t=[];for(let i of e.split("\n"))i.startsWith("data: ")?t.push(i.slice(6)):i.startsWith("data:")&&t.push(i.slice(5));t.length&&c.push(t.join("\n"))}p()};i.onprogress=()=>m(!1),i.onload=()=>{m(!0),d=!0,this.__isFulfilled=!0,p()},i.onerror=()=>{f=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,p()},i.onabort=()=>{f=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,p()},i.withCredentials=null!=(e=n.withCredentials)&&e;let{url:g,data:v,method:b}=o;i.open(b,g,!0),n.contentType&&i.setRequestHeader&&i.setRequestHeader("Content-type",n.contentType);let{headers:y}=n;(0,s.isFunction)(y)&&(y=yield new h(y.call(this),0)),y&&i.setRequestHeader&&Object.keys(y).forEach(e=>{i.setRequestHeader(e,y[e])}),i.send(v?this.__buildParams(v):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(d)break;else yield(t=new Promise(e=>{u=e}),new h(t,0))}finally{this.__isFulfilled||this.abort()}if(f)throw f},function(){return new u(e.apply(this,arguments))}).call(this)}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);e=e.substring(0,i)+"?"+(0,s.buildQuery)(function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},n,t))}else e+="?"+(0,s.buildQuery)(this.o.data)}let n={url:e,method:i,data:t};return f.log.splice(100),f.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}}f.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],f.prototype,"destruct",null)},57459:function(e,t,i){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){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){function n(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,i=arguments;return new Promise(function(o,r){var s=e.apply(t,i);function a(e){n(s,o,r,a,l,"next",e)}function l(e){n(s,o,r,a,l,"throw",e)}a(void 0)})}}i.d(t,{Response:function(){return r}});class r{get url(){return this.request.url}json(){return o(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return o(function*(){return this.body}).call(this)}constructor(e,t,i,n){this.request=e,this.status=t,this.statusText=i,this.body=n}}},45124:function(e,t,i){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=s(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=s(t)}}}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){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?r.appendChild(t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,i),s=o.Dom.sibling(t,!i)}},43463:function(e,t,i){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){i.d(t,{CHANGE:function(){return r.CHANGE},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return n.Selection},UNWRAP:function(){return r.UNWRAP},WRAP:function(){return r.WRAP}});var n=i(79348),o=i(25639),r=i(77361)},79348:function(e,t,i){i.d(t,{Selection:function(){return f}});var n=i(82758),o=i(65478),r=i(2748),s=i(21537),a=i(27613),l=i(38837),c=i(43463),u=i(25639),d=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 f{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,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!r.Dom.isOrContains(this.area,t.startContainer))}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)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).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){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let n=this.doc.caretPositionFromPoint(e,t);if(n)return i.setStart(n.offsetNode,n.offset)}if(this.doc.caretRangeFromPoint){let n=this.doc.caretRangeFromPoint(e,t);(0,l.assert)(n,"Incorrect caretRangeFromPoint behaviour"),i.setStart(n.startContainer,n.startOffset)}})(),i.collapse(!0),this.selectRange(i),!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.apply(null,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),o.style.lineHeight="0",o.style.display="none",r.Dom.markTemporary(o),(0,s.attr)(o,"data-"+n.MARKER_CLASS,e?"start":"end"),o.appendChild(this.j.createInside.text(n.INVISIBLE_SPACE)),i&&r.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){let e=!1,t=e=>`span[data-${n.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),o=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),o)e.setStartAfter(i),r.Dom.safeRemove(i),e.setEndBefore(o),r.Dom.safeRemove(o);else{let t=i.previousSibling;r.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),r.Dom.safeRemove(i),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,l.assert)(t,"Range is null");let i=t.cloneRange();i.collapse(!0);let n=this.j.createInside.fake();r.Dom.safeInsertNode(i,n),t.setStartBefore(n);let o=[n];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();r.Dom.safeInsertNode(e,i),t.setEndAfter(i),o.push(i)}return this.selectRange(t),o}restoreFakes(e){var t,i,n,o;let s=e.filter(e=>e.isConnected);if(!s.length)return;let[a,l]=s,c=this.createRange();c.setStartAfter(a),l&&c.setEndBefore(l),this.selectRange(c),(null==(t=a.parentNode)?void 0:t.firstChild)!==(null==(i=a.parentNode)?void 0:i.lastChild)&&r.Dom.safeRemove(a),(null==(n=null==l?void 0:l.parentNode)?void 0:n.firstChild)!==(null==(o=null==l?void 0:l.parentNode)?void 0:o.lastChild)&&r.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],n=t.rangeCount,o=[];for(let e=0;n>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),n=this.marker(!1,o[e]);i[e]={startId:t.id,endId:n.id,collapsed:!1,startMarker:t.outerHTML,endMarker:n.outerHTML}}if(!e){t.removeAllRanges();for(let e=n-1;e>=0;--e){let n=this.doc.getElementById(i[e].startId);if(n){if(i[e].collapsed)o[e].setStartAfter(n),o[e].collapse(!0);else if(o[e].setStartBefore(n),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return i}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.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let n=(0,d.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);let n=r.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!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),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:i}=e;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):this.area.appendChild(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 this.area.appendChild(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();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?i.appendChild(e):i.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,n.appendChild(i.firstChild);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)&&n.setAttribute("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)&&(n.style.width="",n.style.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){var t;let i=this.sel;if(!i||!i.rangeCount)return;let o=i.getRangeAt(0),l=o.commonAncestorContainer;r.Dom.isHTMLElement(l)||(l=l.parentElement);let c=[],u=o.startOffset,d=l.childNodes.length,h=o.startContainer===this.area?l.childNodes[u<d?u:d-1]:o.startContainer,f=o.endContainer===this.area?l.childNodes[o.endOffset-1]:o.endContainer;r.Dom.isText(h)&&h===o.startContainer&&o.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),r.Dom.isText(f)&&f===o.endContainer&&0===o.endOffset&&f.previousSibling&&(f=f.previousSibling);let p=e=>{!e||e===l||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||c.push(e)};p(h),h!==f&&r.Dom.isOrContains(l,h,!0)&&r.Dom.find(h,e=>(p(e),e===f||e&&e.contains&&e.contains(f)),l,!0,!1);let m=t=>{if(r.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(m);if(r.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(n.INVISIBLE_SPACE);t.appendChild(e),t=e}e(t)}};0===c.length&&(r.Dom.isEmptyTextNode(h)&&c.push(h),h.firstChild&&c.push(h.firstChild)),c.forEach(m)}cursorInTheEdge(e,t,i=null){var n;let o=!e,a=null==(n=this.sel)?void 0:n.getRangeAt(0);if(null!=i||(i=this.current(!1)),!a||!i||!r.Dom.isOrContains(t,i,!0))return null;let l=e?a.startContainer:a.endContainer,c=e?a.startOffset:a.endOffset,u=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(l)){if((0,d.cursorInTheEdgeOfString)(l,c,e,o))return!1}else{let e=(0,s.toArray)(l.childNodes);if(o){if(e.slice(c).some(u))return!1}else if(e.slice(0,c).some(u))return!1}let h=i;for(;h&&h!==t;){let t=r.Dom.sibling(h,e);if(!t){h=h.parentNode;continue}if((h=t)&&u(h))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.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))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:(a.appendChild(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){let i=this.sel;return t&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),i&&(i.removeAllRanges(),i.addRange(e)),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?"selectNodeContents":"selectNode"](e),this.selectRange(i)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(t),i.innerHTML}return""}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",n.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),yield t,r.Dom.unwrap(t);return}for(let e of((0,s.$$)("*[style*=font-size]",this.area).forEach(e=>{(0,s.attr)(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,s.$$)("*[data-font-size]",this.area).forEach(e=>{let t=(0,s.attr)(e,"data-font-size");t&&(e.style.fontSize=t,(0,s.attr)(e,"data-font-size",null))}),(0,s.$$)('font[size="7"]',this.area))){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)}}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 u.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())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"),u=this.j.createInside.fake(),d=u.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,d),r.Dom.before(c,u),s?(i.setEndBefore(c),o.setEndBefore(c)):(i.setEndAfter(c),o.setEndAfter(c))}else i.setEnd(o.startContainer,o.startOffset);let h=i.extractContents(),f=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,l.assert)(e.parentNode,"Splitting fails");try{if(f(h),f(e),e.parentNode.insertBefore(h,e),!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 p=e=>{var t,i,n;(null==(t=null==e?void 0:e.parentNode)?void 0:t.firstChild)===(null==(i=null==e?void 0:e.parentNode)?void 0:i.lastChild)&&(null==(n=null==e?void 0:e.parentNode)||n.appendChild(c.cloneNode()))};p(u),p(d)}finally{r.Dom.safeRemove(u),r.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;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(this.selectRange(t),r.Dom.safeRemove(n,o),this.isCollapsed())throw(0,s.error)("Selection is collapsed");return this}constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([o.autobind],f.prototype,"createRange",null),h([o.autobind],f.prototype,"focus",null),h([o.autobind],f.prototype,"setCursorAfter",null),h([o.autobind],f.prototype,"setCursorBefore",null),h([o.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,i){i.d(t,{extractSelectedPart:function(){return a}});var n=i(2748),o=i(78116),r=i(49055),s=i(37790);function a(e,t,i){let n=i.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),l(e,n,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),l(e,n,!1)}function l(e,t,i){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||n.Dom.unwrap(o.firstChild),e.parentNode&&(0,s.call)(i?n.Dom.before:n.Dom.after,e,o)}},49996:function(e,t,i){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){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){i.d(t,{getSuitParent:function(){return function e(t,i,s){let{parentNode:a}=i;return a===s||!n.Dom.isHTMLElement(a)||n.Dom.next(i,o.isNormalNode,a)||n.Dom.prev(i,o.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(a)?e(t,a,s):(0,r.isSuitElement)(t,a,!1)&&(!n.Dom.isBlock(a)||t.elementIsBlock)?a:t.isElementCommit&&!n.Dom.isBlock(a)?e(t,a,s):null}}});var n=i(2748),o=i(29136),r=i(97380)},22030:function(e,t,i){i.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});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 u(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)(u(e,{color:"red"}),"Style test"),(0,a.assert)(!u(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!u(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,i){i.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},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 u.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return d.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 u=i(44253),d=i(75882),h=i(19263);i(6980)},64291:function(e,t,i){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){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){i.d(t,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var n=i(21496),o=i(43555),r=i(38837),s=i(22030);function a(e,t){return!((e.attributes.length||(0,n.size)(t))&&(0,n.size)(t))||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(i=>"class"===i||"className"===i?e.classList.contains(t[i]):"style"===i?(0,s.hasSameStyle)(e,t[i]):(0,o.attr)(e,i)===t[i]))}function l(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value)}},97380:function(e,t,i){i.d(t,{isSameStyleChild:function(){return l},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:u,options:d}=e;if(n.Dom.isList(t)&&e.elementIsList)return!0;let h=n.Dom.isTag(t,c);return!!(h&&!(u&&i)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!i&&u&&n.Dom.isInlineBlock(t)}function a(e,t,i){return n.Dom.closest(t,t=>s(e,t,!0,!1),i)}function l(e,t){var i,n;let{element:s,options:a}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,c=!!((null==(i=a.attributes)?void 0:i.style)&&(0,o.hasSameStyleKeys)(t,null==(n=a.attributes)?void 0:n.style));return l&&c}},20199:function(e,t,i){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(n!==a.UNWRAP){let r=(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(n===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let n=u(a.REPLACE,o,t,i,e),r=(0,l.wrapList)(e,n,i);return c(a.REPLACE,r,e),a.REPLACE}}let d=u(a.UNWRAP,o,t,i,e);return c(a.UNWRAP,d,e),a.UNWRAP}function u(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),n.Dom.replace(i,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside))}},82515:function(e,t,i){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,u=l.nextElementSibling,d=n.Dom.isTag(c,e.element)?c:null;return null!=d||(d=n.Dom.isTag(u,e.element)?u:null),n.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,r.toggleAttributes)(e,d,i,s.INITIAL),n.Dom.before(l,d)),c===d?n.Dom.append(d,l):n.Dom.prepend(d,l),n.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(n.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),n.Dom.safeRemove(d.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,d,e),d}},44253:function(e,t,i){i.d(t,{toggleAttributes:function(){return m}});var n=i(82758),o=i(2748),r=i(580),s=i(27613),a=i(3760),l=i(21496),c=i(12475),u=i(43555),d=i(41180),h=i(86583),f=i(77361);let p="toggleAttributes";function m(e,t,i,v,b=!1){if(!b&&e.isApplied(t,p))return v;b||e.setApplied(t,p);let{attributes:y}=e.options;return y&&(0,l.size)(y)>0&&Object.keys(y).forEach(p=>{var m,w,S;let _=y[p];switch(p){case"style":m=v,(0,u.assert)((0,s.isPlainObject)(_)&&(0,l.size)(_),"Style must be an object"),Object.keys(_).forEach(s=>{let l=t.style.getPropertyValue((0,c.kebabCase)(s)),u=_[s];if(""!==l||null!=u){let c,p,v,y;if(c=function(e){var t;if(void 0!==(0,h.dataBind)(e,"shadowRoot"))return(0,h.dataBind)(e,"shadowRoot");let i=(0,r.getContainer)(e),o=n.globalDocument.createElement("iframe");(0,d.css)(o,{width:0,height:0,position:"absolute",border:0}),o.src="about:blank",i.appendChild(o);let s=null==(t=o.contentWindow)?void 0:t.document,a=s?s.body:e.od.body;return(0,h.dataBind)(e,"shadowRoot",a),a}(i),(p=i.create.element("div")).style.color=(0,d.css)(i.editor,"color"),(v=i.create.element(t.tagName.toLowerCase())).style.cssText=t.style.cssText,p.appendChild(v),c.appendChild(p),y=(0,d.css)(v,s),o.Dom.safeRemove(p),y===(0,a.normalizeCssValue)(s,u)){if(!l)return;b||(0,d.css)(t,s,null),m=g(e,t,m=f.UNSET);return}m=f.CHANGE,b||((0,d.css)(t,s,u),m=g(e,t,m))}}),v=m;break;case"className":case"class":let C;w=v,(0,u.assert)((0,s.isString)(_),"Class name must be a string"),C=i.e.fire.bind(i.e,`${f._PREFIX}AfterToggleAttribute`),t.classList.contains(_.toString())?(w=f.UNSET,b||(t.classList.remove(_),0===t.classList.length&&((0,u.attr)(t,"class",null),C(w,t,"class",null)))):(w=f.CHANGE,b||(t.classList.add(_),C(w,t,"class",_))),v=w;break;default:let k;S=v,(0,u.assert)((0,s.isString)(_)||(0,s.isNumber)(_)||(0,s.isBoolean)(_)||null==_,"Attribute value must be a string or number or boolean or null"),k=i.e.fire.bind(i.e,`${f._PREFIX}AfterToggleAttribute`),(0,u.attr)(t,p)===_?(b||(0,u.attr)(t,p,null),S=f.UNSET,b||k(S,t,p,_)):(S=f.CHANGE,b||((0,u.attr)(t,p,_),k(S,t,p,_))),v=S}}),v}function g(e,t,i){return(0,u.attr)(t,"style")||((0,u.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),i=f.UNWRAP)),i}},75882:function(e,t,i){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=[],u=null==(i=e.options.attributes)?void 0:i.style;if(t.firstChild){let i=n.Dom.eachGen(t),d=i.next();for(;!d.done;){let t=d.value;(0,s.isSuitElement)(e,t,!0)&&(!u||(0,r.hasSameStyleKeys)(t,u))?(void 0===a&&(a=!0),l.push(t)):u&&(0,s.isSameStyleChild)(e,t)?(void 0===a&&(a=!1),c.push(()=>{(0,o.css)(t,Object.keys(u).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||l.push(t)})):n.Dom.isEmptyTextNode(t)||void 0!==a||(a=!1),d=i.next()}}return c.forEach(e=>e()),l.forEach(n.Dom.unwrap),!!a}},6980:function(e,t,i){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"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let d=u.extractContents(),h=s.element(e.element);return h.appendChild(d),n.Dom.safeInsertNode(u,h),e.elementIsBlock&&n.Dom.isEmpty(h)&&!n.Dom.isTag(h.firstElementChild,"br")&&h.appendChild(s.element("br")),h}},19263:function(e,t,i){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,u,d;let h=(l=e,u=t,d=i,l.elementIsBlock?n.Dom.up(u,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,c),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,o.attr)(u,"size",null),u));if(e.elementIsList)return(0,s.wrapList)(e,h,i);let f=n.Dom.replace(h,e.element,i.createInside,!0);return e.elementIsBlock&&((0,r.css)(f,"fontSize",null),(0,r.css)(f,"fontWeight",null),(0,o.attr)(f,"style")||(0,o.attr)(f,"style",null)),f}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(e,t,i){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=e.s.wrapInTagGen(l),u=c.next();if(u.done)return;let d={collapsed:s.isCollapsed(),mode:o.INITIAL,element:u.value,next:r.states.START,jodit:e,style:t};for(;u&&!u.done;){let e=new n.FiniteStateMachine(r.states.START,r.transactions);for(d.element=u.value;e.getState()!==r.states.END;)d=e.dispatch("exec",d);u=c.next()}s.restoreFakes(l)}},25639:function(e,t,i){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.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,i){i.d(t,{CHANGE:function(){return r},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return o},WRAP:function(){return n},_PREFIX:function(){return c}});let n="wrap",o="unwrap",r="change",s="unset",a="initial",l="replace",c="commitStyle"},55307:function(e,t,i){i.d(t,{states:function(){return u},transactions:function(){return d}});var n=i(82758),o=i(2748),r=i(38837),s=i(63687),a=i(77361);function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}let u={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"},d={[u.START]:{exec(e){let{element:t,jodit:i,style:n,mode:r,collapsed:d}=e;if((0,s.isInsideInvisibleElement)(t,i.editor)||!d&&o.Dom.isEmptyContent(t))return c(l({},e),{next:u.END});let h=(0,s.getSuitParent)(n,t,i.editor)||(0,s.getSuitChild)(n,t);if(h)return c(l({},e),{next:u.ELEMENT,element:h});let f=(0,s.suitableClosest)(n,t,i.editor);return n.elementIsList&&o.Dom.isList(f)?c(l({},e),{next:u.LIST}):f?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:r!==a.UNWRAP?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:i,mode:r}=e;if(r!==a.INITIAL&&r!==a.UNWRAP&&r!==a.REPLACE)return c(l({},e),{next:u.END});let s=o.Dom.closest(t,"li",i.editor);return s&&o.Dom.closest(t,n.LIST_TAGS,i.editor)?c(l({},e),{element:s,next:u.TOGGLE_LIST}):c(l({},e),{next:u.END})}},[u.TOGGLE_LIST]:{exec(e){return c(l({},e),{mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:u.END})}},[u.EXTRACT]:{exec(e){var t;let{element:i,jodit:n,style:a}=e,d=(0,s.suitableClosest)(a,i,n.editor);return((0,r.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(d))?c(l({},e),{next:u.WRAP}):(a.elementIsBlock||(0,s.extractSelectedPart)(d,i,n),c(l({},e),{element:d,next:u.ELEMENT}))}},[u.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:i}=e;return(0,s.unwrapChildren)(i,t)?c(l({},e),{mode:a.UNWRAP,next:u.END}):c(l({},e),{next:u.WRAP})}},[u.WRAP]:{exec(e){let{element:t,jodit:i,style:n}=e,o=(0,s.wrap)(n,t,i);return c(l({},e),{next:n.elementIsList?u.END:u.CHANGE,mode:a.WRAP,element:o})}},[u.ELEMENT]:{exec(e){let{style:t,element:i,jodit:n}=e;return(0,s.toggleAttributes)(t,i,n,a.INITIAL,!0)!==a.INITIAL?c(l({},e),{next:u.CHANGE}):o.Dom.isTag(i,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{next:u.END})}},[u.CHANGE]:{exec(e){let{style:t,element:i,jodit:n,mode:r}=e,d=(0,s.toggleAttributes)(t,i,n,e.mode);return r!==a.WRAP&&d===a.UNSET&&!i.attributes.length&&o.Dom.isTag(i,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{mode:d,next:u.END})}},[u.UNWRAP]:{exec(e){return e.element.attributes.length&&o.Dom.isTag(e.element,e.style.element)?c(l({},e),{next:u.REPLACE_DEFAULT}):(o.Dom.unwrap(e.element),c(l({},e),{mode:a.UNWRAP,next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),c(l({},e),{mode:a.REPLACE,next:u.END})}},[u.END]:{exec(e){return e}}}},97333:function(e,t,i){i.d(t,{AsyncStorage:function(){return u}});var n=i(87058),o=i(2621),r=i(65638),s=i(21162),a=i(6700);function l(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function c(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var r=e.apply(t,i);function s(e){l(r,n,o,s,a,"next",e)}function a(e){l(r,n,o,s,a,"throw",e)}s(void 0)})}}class u{set(e,t){return c(function*(){let i=yield this.provider;return yield i.set((0,n.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return c(function*(){let t=yield this.provider;return yield t.delete((0,n.camelCase)(this.prefix+e)),this}).call(this)}get(e){return c(function*(){return(yield this.provider).get((0,n.camelCase)(this.prefix+e))}).call(this)}exists(e){return c(function*(){return(yield this.provider).exists((0,n.camelCase)(this.prefix+e))}).call(this)}clear(){return c(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return c(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t){let i;return"localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider(a.StorageKey+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),i||(i=new s.MemoryStorageProvider),new u(Promise.resolve(i),t)}constructor(e,t){this.provider=e,this.prefix=a.StorageKey,t&&(this.prefix+=t)}}},2621:function(e,t,i){i.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return l}});var n=i(82758);function o(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function r(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var s=e.apply(t,i);function a(e){o(s,n,r,a,l,"next",e)}function l(e){o(s,n,r,a,l,"throw",e)}a(void 0)})}}class s{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}performTransaction(e,t){return r(function*(){try{let i=(yield 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)}}).call(this)}set(e,t){return r(function*(){try{yield this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){n.IS_PROD}return this}).call(this)}delete(e){return r(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return r(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return r(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return r(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return r(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return r(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,i)=>[e,t[i]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function c(){return r(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(i=>{t.onerror=()=>{i(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),i(!0)}})}catch(e){return a=!1,!1}})()}},65638:function(e,t,i){i.d(t,{LocalStorageProvider:function(){return o},canUsePersistentStorage:function(){return n}});let n=(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};class o{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{this.storage.removeItem(this.rootKey)}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}}},21162:function(e,t,i){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){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 a.StorageKey},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){i.d(t,{Storage:function(){return a},StorageKey:function(){return s}});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){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(function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({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){i.d(t,{Elms:function(){return o}});var n=i(4510);class o{getElm(e){return this.container.querySelector(`.${this.getFullElName(e)}`)}getElms(e){return(0,n.toArray)(this.container.querySelectorAll(`.${this.getFullElName(e)}`))}}},34176:function(e,t,i){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){i.d(t,{Button:function(){return v},UIButton:function(){return g},UIButtonState:function(){return m}});var n=i(78213),o=i(33433),r=i(87325),s=i(37133),a=i(2748),l=i(23282),c=i(70799),u=i(38837),d=i(29960),h=i(48538),f=i(12153),p=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,u.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,u.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,d.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,d.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,d.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,d.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,d.attr)(this.container,"data-ref",this.state.name),(0,d.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,d.attr)(this.container,"title",e),(0,d.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,d.attr)(this.container,"aria-label",t),(0,d.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,d.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=f.Icon.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(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 t.appendChild(i),t.appendChild(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}p([o.cache],g.prototype,"text",null),p([o.cache],g.prototype,"icon",null),p([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),p([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),p([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),p([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),p([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),p([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),p([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),p([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),p([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),p([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),p([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),p([o.cacheHTML],g.prototype,"createContainer",null),p([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=p([r.component],g)},71916:function(e,t,i){i.d(t,{UIButtonGroup:function(){return a}});var n=i(87325),o=i(38837),r=i(10830),s=i(62405);let a=class e extends s.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,o.assert)(null!=t,"Options does not exist"),t.appendChild(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 r.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)}};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}([n.component],a)},62843:function(e,t,i){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){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),u=i(43555),d=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 f=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],m=n=class e extends d.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(e){(0,a.getContainer)(this.j,n).appendChild(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,f,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,f,this.__hide).off(p,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,u.attr)(e.target,"aria-label");if(!t||(0,u.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,u.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,u.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),this.getElm("content").innerHTML="",(0,u.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){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),u=i(34176),d=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 e.appendChild(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)=>d.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);const 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)(u.Mods,c.Elms)],h)},19070:function(e,t,i){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){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){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){i.d(t,{UITextArea:function(){return d}});var n,o,r,s=i(65478),a=i(87325),l=i(80256);function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}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};let d=r=class e extends l.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;this.nativeInput.style.resize=t?"auto":"none",this.nativeInput.rows=null!=e?e:5}constructor(e,t){super(e,t),this.state=c({},r.defaultState),Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};d.defaultState=(n=c({},l.UIInput.defaultState),o=o={size:5,resizable:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n),u([(0,s.watch)(["state.size","state.resizable"])],d.prototype,"onChangeStateSize",null),d=r=u([a.component],d)},17328:function(e,t,i){i.d(t,{UICheckbox:function(){return u}});var n,o=i(65478),r=i(2748),s=i(80256);function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}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 u=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,l(a({},t),{type:"checkbox"})),this.state=a({},n.defaultState),Object.assign(this.state,t)}};u.defaultState=l(a({},s.UIInput.defaultState),{checked:!1,switch:!1}),c([(0,o.watch)("state.checked"),(0,o.hook)("ready")],u.prototype,"onChangeChecked",null),c([(0,o.watch)("nativeInput:change")],u.prototype,"onChangeNativeCheckBox",null),c([(0,o.watch)("state.switch"),(0,o.hook)("ready")],u.prototype,"onChangeSwitch",null),u=n=c([o.component],u)},4242:function(e,t,i){i.d(t,{UIFileInput:function(){return a}});var n=i(87325),o=i(10830),r=i(80256);function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}let a=class e extends r.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new o.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),t.appendChild(i),t}createNativeInput(e){return this.j.create.fromHTML(`<input
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
loading="lazy"
|
|
47
47
|
/>
|
|
48
48
|
${r||s||a?c:""}
|
|
49
|
-
</a>`},ajax:(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},l.Config.prototype.defaultAjaxOptions),o=o={url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData(e){return e},process(e){return e}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},l.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent:(e,t)=>{let i=new a.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec:e=>{e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:e=>{e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec:e=>{e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:e=>{let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec:e=>{e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec:e=>{e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec:e=>{e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:(e,t)=>{let i=t.container.querySelector(".jodit-input");if(i)return i;let n=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return n.value=e.state.filterWord,e.e.on(n,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",n.value)},e.defaultTimeout)),n}},sort:{isInput:!0,getContent:e=>{let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},11787:function(e,t,i){i.d(t,{DEFAULT_SOURCE_NAME:function(){return m},default:function(){return v}});var n=i(82758),o=i(45219),r=i(23282),s=i(70091),a=i(68934),l=i(89890),c=i(3703),u=i(54079),d=i(159);function h(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function f(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var r=e.apply(t,i);function s(e){h(r,n,o,s,a,"next",e)}function a(e){h(r,n,o,s,a,"throw",e)}s(void 0)})}}var p=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="default",g=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class v{get o(){return this.options}get(e){let t=this.__ajaxInstances;if(t.has(e)){let i=t.get(e);null==i||i.abort(),t.delete(e)}let i=(0,a.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,a.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let n=new u.Ajax(i);t.set(e,n);let o=n.send();return o.finally(()=>{n.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),o.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}permissions(e,t){return f(function*(){return this.o.permissions&&(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url)?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw(0,l.abort)();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){let i=t.call(self,e);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}).call(this)}canI(e){let t="allow"+e;if(!n.IS_PROD&&!g.has(t))throw(0,l.error)("Wrong action "+e);let i=this.o.permissionsPresets[t];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,i,n){let o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=i,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),n(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,i={}){return this.__items(e,t,i,e=>this.__generateItemsList(e.data.sources,i))}itemsEx(e,t,i={}){return this.__items(e,t,i,e=>({items:this.__generateItemsList(e.data.sources,i),loadedTotal:e.data.sources.reduce((e,t)=>e+t.files.length,0)}))}__generateItemsList(e,t={}){let i=[],n=e=>{var i;return!(null==(i=t.filterWord)?void 0:i.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach(e=>{if(e.files&&e.files.length){let{sort:o}=this.o;(0,r.isFunction)(o)&&t.sortBy&&e.files.sort((e,i)=>o(e,i,t.sortBy)),e.files.forEach(o=>{var r,s;n(o)&&("folder"===o.type||!t.onlyImages||void 0===o.isImage||o.isImage)&&i.push(d.FileBrowserItem.create((r=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),s=s={sourceName:e.name,source:e},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(s)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(s,e))}),r)))})}}),i}tree(e,t){return f(function*(){return(e=(0,s.normalizeRelativePath)(e),this.o.folder)?(yield this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}).call(this)}getPathByUrl(e){return(0,c.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw(0,l.error)(this.getMessage(e))})}createFolder(e,t,i){let{create:n}=this.o;if(!n)throw(0,l.error)("Set Create api options");return n.data.source=i,n.data.path=t,n.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}move(e,t,i,n){let o=n?"fileMove":"folderMove",r=this.options[o];if(!r)throw(0,l.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(o).then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}__remove(e,t,i,n){let o=this.o[e];if(!o)throw(0,l.error)(`Set "${e}" api options`);return o.data.path=t,o.data.name=i,o.data.source=n,this.get(e).then(e=>(o.process&&(e=o.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,i){return this.__remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.__remove("folderRemove",e,t,i)}__rename(e,t,i,n,o){let r=this.o[e];if(!r)throw(0,l.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=n,r.data.source=o,this.get(e).then(e=>(r.process&&(e=r.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,i,n){return this.__rename("folderRename",e,t,i,n)}fileRename(e,t,i,n){return this.__rename("fileRename",e,t,i,n)}__changeImage(e,t,i,n,o,r){this.o[e]||(this.o[e]={data:{}});let s=this.o[e];return void 0===s.data&&(s.data={action:e}),s.data.newname=o||n,r&&(s.data.box=r),s.data.path=t,s.data.name=n,s.data.source=i,this.get(e).then(e=>e.data.newPath||!0)}crop(e,t,i,n,o){return this.__changeImage("crop",e,t,i,n,o)}resize(e,t,i,n,o){return this.__changeImage("resize",e,t,i,n,o)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}}p([o.autobind],v.prototype,"onProgress",null),p([o.autobind],v.prototype,"permissions",null),p([o.autobind],v.prototype,"canI",null),p([o.autobind],v.prototype,"items",null),p([o.autobind],v.prototype,"itemsEx",null),p([o.autobind],v.prototype,"tree",null),p([o.autobind],v.prototype,"getPathByUrl",null),p([o.autobind],v.prototype,"createFolder",null),p([o.autobind],v.prototype,"move",null),p([o.autobind],v.prototype,"fileRemove",null),p([o.autobind],v.prototype,"folderRemove",null),p([o.autobind],v.prototype,"folderRename",null),p([o.autobind],v.prototype,"fileRename",null),p([o.autobind],v.prototype,"crop",null),p([o.autobind],v.prototype,"resize",null),p([o.autobind],v.prototype,"getMessage",null),p([o.autobind],v.prototype,"isSuccess",null),p([o.autobind],v.prototype,"destruct",null)},63399:function(e,t,i){i.d(t,{makeContextMenu:function(){return s},makeDataProvider:function(){return r}});var n=i(80870),o=i(11787);function r(e,t){return new o.default(e,t)}function s(e){return new n.ContextMenu(e)}},44450:function(e,t,i){i.d(t,{deleteFile:function(){return n}});function n(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then(i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}},30465:function(e,t,i){i.d(t,{loadItems:function(){return n}});function n(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(t=>{t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(()=>e.files.setMod("loading",!1))}},20201:function(e,t,i){i.d(t,{loadTree:function(){return s}});var n=i(22732),o=i(30465);function r(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function s(e){var t;return(t=function*(){e.tree.setMod("active",!0),n.Dom.detach(e.tree.container);let t=(0,o.loadItems)(e);return e.o.showFoldersPanel?(e.tree.setMod("loading",!0),Promise.all([e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(t=>{e.state.sources=t}).catch(e.status).finally(()=>e.tree.setMod("loading",!1)),t])):(e.tree.setMod("active",!1),t)},function(){var e=this,i=arguments;return new Promise(function(n,o){var s=t.apply(e,i);function a(e){r(s,n,o,a,l,"next",e)}function l(e){r(s,n,o,a,l,"throw",e)}a(void 0)})})()}},75330:function(e,t,i){i.d(t,{FileBrowser:function(){return _}});var n=i(91907),o=i(82758),r=i(65478),s=i(37133),a=i(3827),l=i(21537),c=i(12081),u=i(70231),d=i(84075),h=i(6441);i(61251);var f=i(30465),p=i(20201),m=i(73948),g=i(33281),v=i(94538),b=i(11787),y=i(63399),w=i(8172),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};let _=class e extends d.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,y.makeDataProvider)(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){let t=[],i=[];this.state.activeElements.forEach(e=>{let n=e.fileURL;n&&(t.push(n),i.push(e.isImage||!1))}),this.close(),(0,l.isFunction)(e)&&e({baseurl:"",files:t,isImages:i}),this.close()}return!1}}get _dialog(){var e;let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(e=this.o.headerButtons)?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return c.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){!e||(0,l.isAbortError)(e)||((0,l.isString)(e)||(e=e.message),(0,l.isString)(e)&&(0,l.trim)(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise((t,i)=>{var n;if(!this.o.items||!this.o.items.url)throw(0,l.error)("Need set options.filebrowser.ajax.url");let r=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",()=>{let t=new Date().getTime();t-r<o.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(e)(),r=t}).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));let s=this.c.div();null==(n=this.toolbar)||n.appendTo(s),this.__updateToolbarButtons(),this._dialog.open(this.browser,s),this.e.fire("sort.filebrowser",this.state.sortBy),(0,p.loadTree)(this).then(t,i).finally(()=>{var e;this.isInDestruct||null==(e=this===null||void 0===this?void 0:this.e)||e.fire("fileBrowserReady.filebrowser")})}).catch(e=>{if(!(0,l.isAbortError)(e)&&!o.IS_PROD)throw e})}__getButtons(){var e;return(null!=(e=this.o.buttons)?e:[]).filter(e=>{if(!(0,l.isString)(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(e){var t;let i=this,n=null==(t=null==e?void 0:e.options)?void 0:t.uploader,o=(0,l.ConfigProto)(n||{},h.Config.defaultOptions.uploader),r=()=>(0,f.loadItems)(this);i.uploader=i.getInstance("Uploader",o),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,r,i.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),i.e.on("bindUploader.filebrowser",e=>{i.uploader.bind(e,r,i.errorHandler)})}destruct(){var e;!this.isInDestruct&&(null==(e=(0,r.cached)(this,"_dialog"))||e.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var e;let t=this.__getButtons();!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,null==(e=this.toolbar)||e.build(t))}constructor(e){super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new w.FileBrowserTree(this),this.files=new w.FileBrowserFiles(this),this.state=(0,a.observable)({currentPath:"",currentSource:b.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{(0,l.isAbortError)(e)||(e instanceof Error?this.status(this.i18n(e.message)):this.status(this.dataProvider.getMessage(e)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(e),this.options=(0,l.ConfigProto)(e||{},h.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),g.selfListeners.call(this),m.nativeListeners.call(this),v.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=(0,l.ConfigProto)(this.options[e],this.o.ajax))});const{storeView:t,storeSortBy:i,storeLastOpenedFolder:o}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=t&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const s=i&&this.storage.get("sortBy");if(s){const e=s.split("-");this.state.sortBy=["changed","name","size"].includes(e[0])?s:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(o){const e=this.storage.get("currentPath"),t=this.storage.get("currentSource");this.state.currentPath=null!=e?e:"",this.state.currentSource=null!=t?t:""}this.initUploader(this),this.setStatus(n.STATUSES.ready)}};S([r.cache],_.prototype,"dataProvider",null),S([r.cache],_.prototype,"_dialog",null),S([r.cache],_.prototype,"storage",null),S([r.autobind],_.prototype,"status",null),S([r.autobind],_.prototype,"open",null),S([(0,s.watch)("dataProvider:changePermissions")],_.prototype,"__updateToolbarButtons",null),_=S([(0,r.derive)(u.Dlgs)],_)},78513:function(e,t,i){i.d(t,{FileBrowser:function(){return n.FileBrowser}});var n=i(75330)},73948:function(e,t,i){i.d(t,{nativeListeners:function(){return c}});var n=i(29960),o=i(15456),r=i(41457),s=i(32118),a=i(21735),l=i(20201);function c(){let e=!1,t=(0,s.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",t=>{let n=(0,a.getItem)(t.target,i.container);n&&i.o.moveFolder&&(e=n)}).on(i.tree.container,"drop",t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let o=(0,n.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item"))||e.classList.contains(this.files.getFullElName("item"))&&(o+=(0,n.attr)(e,"-name"),!i.o.moveFile))return!1;let r=(0,a.getItem)(t.target,i.container);r&&(i.dataProvider.move(o,(0,n.attr)(r,"-path")||"",(0,n.attr)(r,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then(()=>(0,l.loadTree)(this)).catch(i.status),e=!1)}}).on(i.files.container,"contextmenu",(0,r.default)(i)).on(i.files.container,"click",e=>{(0,o.ctrlKey)(e)||(this.state.activeElements=[])}).on(i.files.container,"click",e=>{let n=(0,a.getItem)(e.target,i.container);if(!n)return;let r=(0,a.elementToItem)(n,t);if(r)return(0,o.ctrlKey)(e)?i.state.activeElements=[...i.state.activeElements,r]:i.state.activeElements=[r],e.stopPropagation(),!1}).on(i.files.container,"dragstart",t=>{if(i.o.moveFile){let n=(0,a.getItem)(t.target,i.container);n&&(e=n)}}).on(i.container,"drop",e=>e.preventDefault())}},33281:function(e,t,i){i.d(t,{selfListeners:function(){return u}});var n=i(21537),o=i(27613),r=i(11787),s=i(44450),a=i(30465),l=i(20201),c=i(50050);function u(){let e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",t=>{t!==e.view&&(e.view=t)}).on("sort.filebrowser",t=>{t!==e.sortBy&&(e.sortBy=t,(0,a.loadItems)(i))}).on("filter.filebrowser",t=>{t!==e.filterWord&&(e.filterWord=t,(0,a.loadItems)(i))}).on("openFolder.filebrowser",e=>{let t;t=".."===e.name?e.path.split("/").filter(e=>e.length).slice(0,-1).join("/"):(0,n.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?r.DEFAULT_SOURCE_NAME:e.source}).on("removeFolder.filebrowser",e=>{i.confirm("Are you sure?","Delete",n=>{n&&t.folderRemove(e.path,e.name,e.source).then(e=>(i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",e=>{i.prompt("Enter new name","Rename",n=>{if(!(0,o.isValidName)(n))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,n,e.source).then(e=>(i.state.activeElements=[],i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",e.name)}).on("addFolder.filebrowser",e=>{i.prompt("Enter Directory name","Create directory",n=>{t.createFolder(n,e.path,e.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",e=>{if(e){let e=[];i.state.activeElements.forEach(t=>{e.push((0,s.deleteFile)(i,t.file||t.name||"",t.sourceName))}),i.state.activeElements=[],Promise.all(e).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[e]=this.state.activeElements;c.openImageEditor.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",(e,n,r)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",s=>{if(!(0,o.isValidName)(s))return i.status(i.i18n("Enter new name")),!1;t.fileRename(n,e,s,r).then(e=>{i.state.activeElements=[],i.status(e,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",e)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},94538:function(e,t,i){i.d(t,{stateListeners:function(){return l}});var n=i(22732),o=i(71521),r=i(10830),s=i(32118),a=i(20201);function l(){let e=(0,s.elementsMap)(this),{state:t,files:i,create:l,options:c}=this,u=t=>{let i=t.uniqueHashKey;if(e[i])return e[i].elm;let n=l.fromHTML(c.getThumbTemplate.call(this,t,t.source,t.sourceName.toString()));return n.dataset.key=i,e[i]={item:t,elm:n},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,a.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{let{elm:n}=e[t.uniqueHashKey];n&&n.classList.remove(i.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),t.activeElements.forEach(t=>{let{elm:n}=e[t.uniqueHashKey];n&&n.classList.add(i.getFullElName("item","active",!0))})}).on("change.view",()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)}).on("change.elements",this.async.debounce(()=>{n.Dom.detach(i.container),t.elements.length?t.elements.forEach(e=>{this.files.container.appendChild(u(e))}):i.container.appendChild(l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{n.Dom.detach(this.tree.container),t.sources.forEach(e=>{let t=e.name;if(t&&"default"!==t&&this.tree.container.appendChild(l.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach(i=>{let n=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,o.normalizePath)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},l.span(this.tree.getFullElName("item-title"),i)),s=n=>r=>{this.e.fire(`${n}.filebrowser`,{name:i,path:(0,o.normalizePath)(e.path+"/"),source:t}),r.stopPropagation(),r.preventDefault()};if(this.e.on(n,"click",s("openFolder")),this.tree.container.appendChild(n),".."!==i&&"."!==i){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let e=(0,r.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(s("renameFolder")),n.appendChild(e.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let e=(0,r.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(s("removeFolder")),n.appendChild(e.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let i=(0,r.Button)(this,"plus","Add folder","secondary");i.onAction(()=>{this.e.fire("addFolder",{path:(0,o.normalizePath)(e.path+"/"),source:t})}),this.tree.append(i)}})},this.defaultTimeout))}},97379:function(e,t,i){i.d(t,{FileBrowserFiles:function(){return o}});var n=i(67510);class o extends n.UIGroup{className(){return"FileBrowserFiles"}}},8172:function(e,t,i){i.d(t,{FileBrowserFiles:function(){return n.FileBrowserFiles},FileBrowserTree:function(){return o.FileBrowserTree}});var n=i(97379),o=i(8193)},8193:function(e,t,i){i.d(t,{FileBrowserTree:function(){return o}});var n=i(67510);class o extends n.UIGroup{className(){return"FileBrowserTree"}}},92643:function(e,t,i){i.d(t,{Command:function(){return n}});class n{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(e,t,i,n){this.oldValue=e,this.newValue=t,this.history=i,this.tick=n}}},78818:function(e,t,i){i.d(t,{History:function(){return c}});var n=i(80480),o=i(81577),r=i(6441),s=i(92643),a=i(52604),l=i(57034);r.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends n.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(e=!1){let t=this.snapshot.make();if(!a.Snapshot.equal(t,this.startValue)){let i=new s.Command(this.startValue,t,this,this.updateTick);if(e){let e=this.__stack.current();e&&this.updateTick===e.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=t,this.fireChangeStack()}}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null==(e=this.j.events)||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(e,t=new l.Stack(e.o.history.maxHistoryLength),i=new a.Snapshot(e)){super(e),this.updateTick=0,this.__stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(e=>e+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!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)()],c.prototype,"onChange",null)},52604:function(e,t,i){i.d(t,{Snapshot:function(){return s}});var n=i(91907),o=i(82758),r=i(2748);class s extends n.ViewComponent{className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;let t=e.parentNode.childNodes,i=0,n=null;for(let o=0;o<t.length;o+=1){if(!n||this.isIgnoredNode(t[o])||r.Dom.isText(n)&&r.Dom.isText(t[o])||(i+=1),t[o]===e)return i;n=t[o]}return 0}static strokeOffset(e,t){for(;r.Dom.isText(e);)e=e.previousSibling,r.Dom.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}calcHierarchyLadder(e){let t=[];if(!e||!e.parentNode||!r.Dom.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!s.isIgnoredNode(e)&&t.push(s.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t=this.j.editor,i;for(i=0;t&&i<e.length;i+=1)t=t.childNodes[e[i]];return t}get isBlocked(){return this.__isBlocked}__block(e){this.__isBlocked=e}transaction(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!o.IS_PROD)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);let t=this.j.s.sel;if(t&&t.rangeCount){let i=t.getRangeAt(0),n=this.calcHierarchyLadder(i.startContainer),o=this.calcHierarchyLadder(i.endContainer),r=s.strokeOffset(i.startContainer,i.startOffset),a=s.strokeOffset(i.endContainer,i.endOffset);n.length||i.startContainer===this.j.editor||(r=0),o.length||i.endContainer===this.j.editor||(a=0),e.range={startContainer:n,startOffset:r,endContainer:o,endOffset:a}}return e}restore(e){this.transaction(()=>{let t=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){let{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){try{if(e.range){let t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),o.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(e){return r.Dom.isText(e)&&!e.nodeValue||r.Dom.isTemporary(e)}__getCleanedEditorValue(e){let t=e.cloneNode(!0);return r.Dom.temporaryList(t).forEach(r.Dom.unwrap),t.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},57034:function(e,t,i){i.d(t,{Stack:function(){return n}});class n{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}}},62489:function(e,t,i){var n=i(12153),o=i(6441),r=i(49922),s=i(72144);o.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},n.Icon.set("crop",r.default).set("resize",s.default)},49922:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> '},72144:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> '},50050:function(e,t,i){i.d(t,{ImageEditor:function(){return w},openImageEditor:function(){return S}});var n,o=i(91907),r=i(65478),s=i(22732),a=i(4510),l=i(49055),c=i(29960),u=i(41180),d=i(76078),h=i(37790),f=i(62843),p=i(6441);i(62489);var m=i(22461),g=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 v="jodit-image-editor",b="resize",y="crop",w=n=class e extends o.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(e,t){return this.j.async.promise(i=>{let n=new Date().getTime();this.image=this.j.c.element("img"),(0,d.$$)("img,.jodit-icon_loader",this.resize_box).forEach(s.Dom.safeRemove),(0,d.$$)("img,.jodit-icon_loader",this.crop_box).forEach(s.Dom.safeRemove),(0,u.css)(this.cropHandler,"background","transparent"),this.onSave=t,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+n:e+="?_tst="+n,this.image.setAttribute("src",e),this._dialog.open();let{widthInput:o,heightInput:r}=(0,d.refs)(this.editor),a=()=>{this.isDestructed||(this.image.removeEventListener("load",a),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,o.value=this.naturalWidth.toString(),r.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),s.Dom.safeRemove.apply(null,(0,d.$$)(".jodit-icon_loader",this.editor)),this.activeTab===y&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",a),this.image.complete&&a()})}onTitleModeClick(e){let t=e.target,i=null==t?void 0:t.parentElement;if(!i)return;(0,d.$$)(`.${v}__slider,.${v}__area`,this.editor).forEach(e=>e.classList.remove(`${v}_active`)),i.classList.add(`${v}_active`),this.activeTab=(0,c.attr)(i,"-area")||b;let n=this.editor.querySelector(`.${v}__area.${v}__area_`+this.activeTab);n&&n.classList.add(`${v}_active`),this.activeTab===y&&this.showCrop()}onChangeSizeInput(e){let t,i=e.target,{widthInput:n,heightInput:o}=(0,d.refs)(this.editor),r="widthInput"===(0,c.attr)(i,"data-ref"),s=parseInt(i.value,10),a=r?this.o.min_width:this.o.min_height,l=r?this.o.min_height:this.o.min_width;s>a&&((0,u.css)(this.image,r?"width":"height",s),this.resizeUseRatio&&(t=r?Math.round(s/this.ratio):Math.round(s*this.ratio))>l&&((0,u.css)(this.image,r?"height":"width",t),r?o.value=t.toString():n.value=t.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){this.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),this.clicked=!0,this.start_x=e.clientX,this.start_y=e.clientY,this.activeTab===y?(this.top_x=(0,u.css)(this.cropHandler,"left"),this.top_y=(0,u.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){if(!this.clicked)return;let{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);this.diff_x=e.clientX-this.start_x,this.diff_y=e.clientY-this.start_y,this.activeTab===b&&this.resizeUseRatio||this.activeTab===y&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===b?(this.new_w>this.o.resizeMinWidth&&((0,u.css)(this.image,"width",this.new_w+"px"),t.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,u.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,u.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,u.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,u.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),s.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,`.${v}`).off(`.${v}`),super.destruct())}constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=b,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let e=this.crop_box.parentNode,t=.8*e.offsetWidth,i=.8*e.offsetHeight,n=t,o=i,{naturalWidth:r,naturalHeight:s}=this;t>r&&i>s?(n=r,o=s):this.ratio>t/i?(n=t,o=t/r*s):(n=i/s*r,o=i),(0,u.css)(this.crop_box,{width:n,height:o})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=n.calcValueByPercent(e,this.o.cropDefaultWidth);let t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=n.calcValueByPercent(t,this.o.cropDefaultHeight),(0,u.css)(this.cropHandler,{backgroundImage:"url("+(0,c.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,u.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,u.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let e=this,{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],`mousedown.${v}`,this.onResizeHandleMouseDown).on(this.j.ow,`resize.${v}`,()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on((0,a.toArray)(this.editor.querySelectorAll(`.${v}__slider-title`)),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:n,keepAspectRatioCrop:o}=(0,d.refs)(this.editor);n&&n.addEventListener("change",()=>{this.resizeUseRatio=n.checked}),o&&o.addEventListener("change",()=>{this.cropUseRatio=o.checked}),e.j.e.on(e.resizeHandler,"updatesize",()=>{(0,u.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()}).on(e.cropHandler,"updatesize",()=>{if(!e.cropImage)return;let t=(0,u.css)(e.cropHandler,"left"),i=(0,u.css)(e.cropHandler,"top"),n=e.cropHandler.offsetWidth,o=e.cropHandler.offsetHeight;t<0&&(t=0),i<0&&(i=0),t+n>e.cropImage.offsetWidth&&(n=e.cropImage.offsetWidth-t,e.cropUseRatio&&(o=n/e.ratio)),i+o>e.cropImage.offsetHeight&&(o=e.cropImage.offsetHeight-i,e.cropUseRatio&&(n=o*e.ratio)),(0,u.css)(e.cropHandler,{width:n,height:o,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}),Object.values(e.buttons).forEach(n=>{n.onAction(()=>{let o={action:e.activeTab,box:e.activeTab===b?e.resizeBox:e.cropBox};switch(n){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",t=>{if(!(0,l.trim)(t))return e.j.alert("The name should not be empty"),!1;e.onSave(t,o,e.hide,t=>{e.j.alert(t.message)})});break;case e.buttons.save:e.onSave(void 0,o,e.hide,t=>{e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===b?((0,u.css)(e.image,{width:null,height:null}),t.value=e.naturalWidth.toString(),i.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:p.Config.defaultOptions.imageeditor;const t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,f.Button)(this.j,"update","Reset"),save:(0,f.Button)(this.j,"save","Save"),saveas:(0,f.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=t.resize?b:y,this.editor=(0,m.form)(this.j,this.options);const{resizeBox:i,cropBox:o}=(0,d.refs)(this.editor);this.resize_box=i,this.crop_box=o,this.sizes=this.editor.querySelector(`.${v}__area.${v}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${v}__resizer`),this.cropHandler=this.editor.querySelector(`.${v}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function S(e,t,i,n,o,r){return this.getInstance("ImageEditor",this.o).open(e,(e,s,a,l)=>(0,h.call)("resize"===s.action?this.dataProvider.resize:this.dataProvider.crop,i,n,t,e,s.box).then(e=>{e&&(a(),o&&o("string"==typeof e?e:void 0))}).catch(e=>{l(e),r&&r(e)}))}w.calcValueByPercent=(e,t)=>{let i,n=t.toString(),o=parseFloat(e.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(n))?parseInt(n,10):(i=/^([-+]?[0-9.]+)%$/.exec(n))?Math.round(o*(parseFloat(i[1])/100)):o||0},g([r.autobind],w.prototype,"hide",null),g([r.autobind],w.prototype,"open",null),g([r.autobind],w.prototype,"onTitleModeClick",null),g([(0,r.debounce)(),r.autobind],w.prototype,"onChangeSizeInput",null),g([r.autobind],w.prototype,"onResizeHandleMouseDown",null),g([r.autobind],w.prototype,"onGlobalMouseUp",null),g([(0,r.throttle)(10)],w.prototype,"onGlobalMouseMove",null),w=n=g([r.component],w)},22461:function(e,t,i){i.d(t,{form:function(){return a}});var n=i(67510);let o="jodit-image-editor",r=n.Icon.get.bind(n.Icon),s=(e,t="jodti-image-editor_active")=>e?t:"",a=(e,t)=>{let i=e.i18n.bind(e),n=(e,t,n=!0)=>`<div class="jodit-form__group">
|
|
49
|
+
</a>`},ajax:(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},l.Config.prototype.defaultAjaxOptions),o=o={url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData(e){return e},process(e){return e}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},l.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:e=>!e.dataProvider.canI("FileUpload"),getContent:(e,t)=>{let i=new a.UIFileInput(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:e=>!e.state.activeElements.length||!e.dataProvider.canI("FileRemove"),exec:e=>{e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:e=>{e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:e=>!e.state.activeElements.length,exec:e=>{e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:e=>{let t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec:e=>{e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:e=>"tiles"===e.state.view,exec:e=>{e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:e=>"list"===e.state.view,exec:e=>{e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:(e,t)=>{let i=t.container.querySelector(".jodit-input");if(i)return i;let n=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return n.value=e.state.filterWord,e.e.on(n,"keydown mousedown",e.async.debounce(()=>{e.e.fire("filter.filebrowser",n.value)},e.defaultTimeout)),n}},sort:{isInput:!0,getContent:e=>{let t=e.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${e.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${e.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${e.i18n("Sort by name")} (⬆)</option><option value="name-desc">${e.i18n("Sort by name")} (⬇)</option><option value="size-asc">${e.i18n("Sort by size")} (⬆)</option><option value="size-desc">${e.i18n("Sort by size")} (⬇)</option></select>`);return t.value=e.state.sortBy,e.e.on("sort.filebrowser",e=>{t.value!==e&&(t.value=e)}).on(t,"change",()=>{e.e.fire("sort.filebrowser",t.value)}),t}}}},11787:function(e,t,i){i.d(t,{DEFAULT_SOURCE_NAME:function(){return m},default:function(){return v}});var n=i(82758),o=i(45219),r=i(23282),s=i(70091),a=i(68934),l=i(89890),c=i(3703),u=i(54079),d=i(159);function h(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function f(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var r=e.apply(t,i);function s(e){h(r,n,o,s,a,"next",e)}function a(e){h(r,n,o,s,a,"throw",e)}s(void 0)})}}var p=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="default",g=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class v{get o(){return this.options}get(e){let t=this.__ajaxInstances;if(t.has(e)){let i=t.get(e);null==i||i.abort(),t.delete(e)}let i=(0,a.ConfigProto)(void 0!==this.options[e]?this.options[e]:{},(0,a.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let n=new u.Ajax(i);t.set(e,n);let o=n.send();return o.finally(()=>{n.destruct(),t.delete(e),this.progressHandler(100)}).catch(()=>null),o.then(e=>e.json()).then(e=>{if(e&&!this.isSuccess(e))throw Error(this.getMessage(e));return e})}onProgress(e){this.progressHandler=e}permissions(e,t){return f(function*(){return this.o.permissions&&(this.o.permissions.data.path=e,this.o.permissions.data.source=t,this.o.permissions.url)?this.get("permissions").then(e=>{if(this.parent.isInDestruct)throw(0,l.abort)();let t=this.o.permissions.process;if(t||(t=this.o.ajax.process),t){let i=t.call(self,e);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}).call(this)}canI(e){let t="allow"+e;if(!n.IS_PROD&&!g.has(t))throw(0,l.error)("Wrong action "+e);let i=this.o.permissionsPresets[t];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}__items(e,t,i,n){let o=this.options;return o.items?(o.items.data.path=e,o.items.data.source=t,o.items.data.mods=i,this.get("items").then(e=>{let t=this.o.items.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),n(e)})):Promise.reject(Error("Set Items api options"))}items(e,t,i={}){return this.__items(e,t,i,e=>this.__generateItemsList(e.data.sources,i))}itemsEx(e,t,i={}){return this.__items(e,t,i,e=>({items:this.__generateItemsList(e.data.sources,i),loadedTotal:e.data.sources.reduce((e,t)=>e+t.files.length,0)}))}__generateItemsList(e,t={}){let i=[],n=e=>{var i;return!(null==(i=t.filterWord)?void 0:i.length)||void 0===this.o.filter||this.o.filter(e,t.filterWord)};return e.forEach(e=>{if(e.files&&e.files.length){let{sort:o}=this.o;(0,r.isFunction)(o)&&t.sortBy&&e.files.sort((e,i)=>o(e,i,t.sortBy)),e.files.forEach(o=>{var r,s;n(o)&&("folder"===o.type||!t.onlyImages||void 0===o.isImage||o.isImage)&&i.push(d.FileBrowserItem.create((r=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),s=s={sourceName:e.name,source:e},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(s)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(s,e))}),r)))})}}),i}tree(e,t){return f(function*(){return(e=(0,s.normalizeRelativePath)(e),this.o.folder)?(yield this.permissions(e,t),this.o.folder.data.path=e,this.o.folder.data.source=t,this.get("folder").then(e=>{let t=this.o.folder.process;return t||(t=this.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})):Promise.reject(Error("Set Folder Api options"))}).call(this)}getPathByUrl(e){return(0,c.set)("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(e=>{if(this.isSuccess(e))return e.data;throw(0,l.error)(this.getMessage(e))})}createFolder(e,t,i){let{create:n}=this.o;if(!n)throw(0,l.error)("Set Create api options");return n.data.source=i,n.data.path=t,n.data.name=e,this.get("create").then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}move(e,t,i,n){let o=n?"fileMove":"folderMove",r=this.options[o];if(!r)throw(0,l.error)("Set Move api options");return r.data.from=e,r.data.path=t,r.data.source=i,this.get(o).then(e=>{if(this.isSuccess(e))return!0;throw(0,l.error)(this.getMessage(e))})}__remove(e,t,i,n){let o=this.o[e];if(!o)throw(0,l.error)(`Set "${e}" api options`);return o.data.path=t,o.data.name=i,o.data.source=n,this.get(e).then(e=>(o.process&&(e=o.process.call(this,e)),this.getMessage(e)))}fileRemove(e,t,i){return this.__remove("fileRemove",e,t,i)}folderRemove(e,t,i){return this.__remove("folderRemove",e,t,i)}__rename(e,t,i,n,o){let r=this.o[e];if(!r)throw(0,l.error)(`Set "${e}" api options`);return r.data.path=t,r.data.name=i,r.data.newname=n,r.data.source=o,this.get(e).then(e=>(r.process&&(e=r.process.call(self,e)),this.getMessage(e)))}folderRename(e,t,i,n){return this.__rename("folderRename",e,t,i,n)}fileRename(e,t,i,n){return this.__rename("fileRename",e,t,i,n)}__changeImage(e,t,i,n,o,r){this.o[e]||(this.o[e]={data:{}});let s=this.o[e];return void 0===s.data&&(s.data={action:e}),s.data.newname=o||n,r&&(s.data.box=r),s.data.path=t,s.data.name=n,s.data.source=i,this.get(e).then(e=>e.data.newPath||!0)}crop(e,t,i,n,o){return this.__changeImage("crop",e,t,i,n,o)}resize(e,t,i,n,o){return this.__changeImage("resize",e,t,i,n,o)}getMessage(e){return this.options.getMessage(e)}isSuccess(e){return this.options.isSuccess(e)}destruct(){this.__ajaxInstances.forEach(e=>e.destruct()),this.__ajaxInstances.clear()}constructor(e,t){this.parent=e,this.options=t,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=e=>{}}}p([o.autobind],v.prototype,"onProgress",null),p([o.autobind],v.prototype,"permissions",null),p([o.autobind],v.prototype,"canI",null),p([o.autobind],v.prototype,"items",null),p([o.autobind],v.prototype,"itemsEx",null),p([o.autobind],v.prototype,"tree",null),p([o.autobind],v.prototype,"getPathByUrl",null),p([o.autobind],v.prototype,"createFolder",null),p([o.autobind],v.prototype,"move",null),p([o.autobind],v.prototype,"fileRemove",null),p([o.autobind],v.prototype,"folderRemove",null),p([o.autobind],v.prototype,"folderRename",null),p([o.autobind],v.prototype,"fileRename",null),p([o.autobind],v.prototype,"crop",null),p([o.autobind],v.prototype,"resize",null),p([o.autobind],v.prototype,"getMessage",null),p([o.autobind],v.prototype,"isSuccess",null),p([o.autobind],v.prototype,"destruct",null)},63399:function(e,t,i){i.d(t,{makeContextMenu:function(){return s},makeDataProvider:function(){return r}});var n=i(80870),o=i(11787);function r(e,t){return new o.default(e,t)}function s(e){return new n.ContextMenu(e)}},44450:function(e,t,i){i.d(t,{deleteFile:function(){return n}});function n(e,t,i){return e.dataProvider.fileRemove(e.state.currentPath,t,i).then(i=>{e.status(i||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}},30465:function(e,t,i){i.d(t,{loadItems:function(){return n}});function n(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(t=>{t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(()=>e.files.setMod("loading",!1))}},20201:function(e,t,i){i.d(t,{loadTree:function(){return s}});var n=i(22732),o=i(30465);function r(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function s(e){var t;return(t=function*(){e.tree.setMod("active",!0),n.Dom.detach(e.tree.container);let t=(0,o.loadItems)(e);return e.o.showFoldersPanel?(e.tree.setMod("loading",!0),Promise.all([e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(t=>{e.state.sources=t}).catch(e.status).finally(()=>e.tree.setMod("loading",!1)),t])):(e.tree.setMod("active",!1),t)},function(){var e=this,i=arguments;return new Promise(function(n,o){var s=t.apply(e,i);function a(e){r(s,n,o,a,l,"next",e)}function l(e){r(s,n,o,a,l,"throw",e)}a(void 0)})})()}},75330:function(e,t,i){i.d(t,{FileBrowser:function(){return _}});var n=i(91907),o=i(82758),r=i(65478),s=i(37133),a=i(3827),l=i(21537),c=i(12081),u=i(70231),d=i(84075),h=i(6441);i(61251);var f=i(30465),p=i(20201),m=i(73948),g=i(33281),v=i(94538),b=i(11787),y=i(63399),w=i(8172),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};let _=class e extends d.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,y.makeDataProvider)(this,this.options)}onSelect(e){return()=>{if(this.state.activeElements.length){let t=[],i=[];this.state.activeElements.forEach(e=>{let n=e.fileURL;n&&(t.push(n),i.push(e.isImage||!1))}),this.close(),(0,l.isFunction)(e)&&e({baseurl:"",files:t,isImages:i}),this.close()}return!1}}get _dialog(){var e;let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(e=this.o.headerButtons)?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return c.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(e,t){!e||(0,l.isAbortError)(e)||((0,l.isString)(e)||(e=e.message),(0,l.isString)(e)&&(0,l.trim)(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}open(e=this.o.defaultCallback,t=!1){return this.state.onlyImages=t,this.async.promise((t,i)=>{var n;if(!this.o.items||!this.o.items.url)throw(0,l.error)("Need set options.filebrowser.ajax.url");let r=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(e)).on(this.files.container,"touchstart",()=>{let t=new Date().getTime();t-r<o.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(e)(),r=t}).off("select.filebrowser").on("select.filebrowser",this.onSelect(e));let s=this.c.div();null==(n=this.toolbar)||n.appendTo(s),this.__updateToolbarButtons(),this._dialog.open(this.browser,s),this.e.fire("sort.filebrowser",this.state.sortBy),(0,p.loadTree)(this).then(t,i).finally(()=>{var e;this.isInDestruct||null==(e=this===null||void 0===this?void 0:this.e)||e.fire("fileBrowserReady.filebrowser")})}).catch(e=>{if(!(0,l.isAbortError)(e)&&!o.IS_PROD)throw e})}__getButtons(){var e;return(null!=(e=this.o.buttons)?e:[]).filter(e=>{if(!(0,l.isString)(e))return!0;switch(e){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(e){var t;let i=this,n=null==(t=null==e?void 0:e.options)?void 0:t.uploader,o=(0,l.ConfigProto)(n||{},h.Config.defaultOptions.uploader),r=()=>(0,f.loadItems)(this);i.uploader=i.getInstance("Uploader",o),i.uploader.setPath(i.state.currentPath).setSource(i.state.currentSource).bind(i.browser,r,i.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),i.e.on("bindUploader.filebrowser",e=>{i.uploader.bind(e,r,i.errorHandler)})}destruct(){var e;!this.isInDestruct&&(null==(e=(0,r.cached)(this,"_dialog"))||e.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var e;let t=this.__getButtons();!function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,null==(e=this.toolbar)||e.build(t))}constructor(e){super(e),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new w.FileBrowserTree(this),this.files=new w.FileBrowserFiles(this),this.state=(0,a.observable)({currentPath:"",currentSource:b.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=e=>{(0,l.isAbortError)(e)||(e instanceof Error?this.status(this.i18n(e.message)):this.status(this.dataProvider.getMessage(e)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(e),this.options=(0,l.ConfigProto)(e||{},h.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),g.selfListeners.call(this),m.nativeListeners.call(this),v.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=(0,l.ConfigProto)(this.options[e],this.o.ajax))});const{storeView:t,storeSortBy:i,storeLastOpenedFolder:o}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=t&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const s=i&&this.storage.get("sortBy");if(s){const e=s.split("-");this.state.sortBy=["changed","name","size"].includes(e[0])?s:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(o){const e=this.storage.get("currentPath"),t=this.storage.get("currentSource");this.state.currentPath=null!=e?e:"",this.state.currentSource=null!=t?t:""}this.initUploader(this),this.setStatus(n.STATUSES.ready)}};S([r.cache],_.prototype,"dataProvider",null),S([r.cache],_.prototype,"_dialog",null),S([r.cache],_.prototype,"storage",null),S([r.autobind],_.prototype,"status",null),S([r.autobind],_.prototype,"open",null),S([(0,s.watch)("dataProvider:changePermissions")],_.prototype,"__updateToolbarButtons",null),_=S([(0,r.derive)(u.Dlgs)],_)},78513:function(e,t,i){i.d(t,{FileBrowser:function(){return n.FileBrowser}});var n=i(75330)},73948:function(e,t,i){i.d(t,{nativeListeners:function(){return c}});var n=i(29960),o=i(15456),r=i(41457),s=i(32118),a=i(21735),l=i(20201);function c(){let e=!1,t=(0,s.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",t=>{let n=(0,a.getItem)(t.target,i.container);n&&i.o.moveFolder&&(e=n)}).on(i.tree.container,"drop",t=>{if((i.o.moveFile||i.o.moveFolder)&&e){let o=(0,n.attr)(e,"-path")||"";if(!i.o.moveFolder&&e.classList.contains(this.tree.getFullElName("item"))||e.classList.contains(this.files.getFullElName("item"))&&(o+=(0,n.attr)(e,"-name"),!i.o.moveFile))return!1;let r=(0,a.getItem)(t.target,i.container);r&&(i.dataProvider.move(o,(0,n.attr)(r,"-path")||"",(0,n.attr)(r,"-source")||"",e.classList.contains(this.files.getFullElName("item"))).then(()=>(0,l.loadTree)(this)).catch(i.status),e=!1)}}).on(i.files.container,"contextmenu",(0,r.default)(i)).on(i.files.container,"click",e=>{(0,o.ctrlKey)(e)||(this.state.activeElements=[])}).on(i.files.container,"click",e=>{let n=(0,a.getItem)(e.target,i.container);if(!n)return;let r=(0,a.elementToItem)(n,t);if(r)return(0,o.ctrlKey)(e)?i.state.activeElements=[...i.state.activeElements,r]:i.state.activeElements=[r],e.stopPropagation(),!1}).on(i.files.container,"dragstart",t=>{if(i.o.moveFile){let n=(0,a.getItem)(t.target,i.container);n&&(e=n)}}).on(i.container,"drop",e=>e.preventDefault())}},33281:function(e,t,i){i.d(t,{selfListeners:function(){return u}});var n=i(21537),o=i(27613),r=i(11787),s=i(44450),a=i(30465),l=i(20201),c=i(50050);function u(){let e=this.state,t=this.dataProvider,i=this;i.e.on("view.filebrowser",t=>{t!==e.view&&(e.view=t)}).on("sort.filebrowser",t=>{t!==e.sortBy&&(e.sortBy=t,(0,a.loadItems)(i))}).on("filter.filebrowser",t=>{t!==e.filterWord&&(e.filterWord=t,(0,a.loadItems)(i))}).on("openFolder.filebrowser",e=>{let t;t=".."===e.name?e.path.split("/").filter(e=>e.length).slice(0,-1).join("/"):(0,n.normalizePath)(e.path,e.name),i.state.currentPath=t,i.state.currentSource="."===e.name?r.DEFAULT_SOURCE_NAME:e.source}).on("removeFolder.filebrowser",e=>{i.confirm("Are you sure?","Delete",n=>{n&&t.folderRemove(e.path,e.name,e.source).then(e=>(i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",e=>{i.prompt("Enter new name","Rename",n=>{if(!(0,o.isValidName)(n))return i.status(i.i18n("Enter new name")),!1;t.folderRename(e.path,e.name,n,e.source).then(e=>(i.state.activeElements=[],i.status(e,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",e.name)}).on("addFolder.filebrowser",e=>{i.prompt("Enter Directory name","Create directory",n=>{t.createFolder(n,e.path,e.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",e=>{if(e){let e=[];i.state.activeElements.forEach(t=>{e.push((0,s.deleteFile)(i,t.file||t.name||"",t.sourceName))}),i.state.activeElements=[],Promise.all(e).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[e]=this.state.activeElements;c.openImageEditor.call(i,e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",(e,n,r)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",s=>{if(!(0,o.isValidName)(s))return i.status(i.i18n("Enter new name")),!1;t.fileRename(n,e,s,r).then(e=>{i.state.activeElements=[],i.status(e,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",e)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},94538:function(e,t,i){i.d(t,{stateListeners:function(){return l}});var n=i(22732),o=i(71521),r=i(10830),s=i(32118),a=i(20201);function l(){let e=(0,s.elementsMap)(this),{state:t,files:i,create:l,options:c}=this,u=t=>{let i=t.uniqueHashKey;if(e[i])return e[i].elm;let n=l.fromHTML(c.getThumbTemplate.call(this,t,t.source,t.sourceName.toString()));return n.dataset.key=i,e[i]={item:t,elm:n},e[i].elm};t.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,a.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{t.activeElements.forEach(t=>{let{elm:n}=e[t.uniqueHashKey];n&&n.classList.remove(i.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),t.activeElements.forEach(t=>{let{elm:n}=e[t.uniqueHashKey];n&&n.classList.add(i.getFullElName("item","active",!0))})}).on("change.view",()=>{i.setMod("view",t.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",t.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",t.sortBy)}).on("change.elements",this.async.debounce(()=>{n.Dom.detach(i.container),t.elements.length?t.elements.forEach(e=>{this.files.container.appendChild(u(e))}):i.container.appendChild(l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{n.Dom.detach(this.tree.container),t.sources.forEach(e=>{let t=e.name;if(t&&"default"!==t&&this.tree.container.appendChild(l.div(this.tree.getFullElName("source-title"),t)),e.folders.forEach(i=>{let n=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,o.normalizePath)(e.path,i+"/"),"data-name":i,"data-source":t,"data-source-path":e.path},l.span(this.tree.getFullElName("item-title"),i)),s=n=>r=>{this.e.fire(`${n}.filebrowser`,{name:i,path:(0,o.normalizePath)(e.path+"/"),source:t}),r.stopPropagation(),r.preventDefault()};if(this.e.on(n,"click",s("openFolder")),this.tree.container.appendChild(n),".."!==i&&"."!==i){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let e=(0,r.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});e.onAction(s("renameFolder")),n.appendChild(e.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let e=(0,r.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});e.onAction(s("removeFolder")),n.appendChild(e.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let i=(0,r.Button)(this,"plus","Add folder","secondary");i.onAction(()=>{this.e.fire("addFolder",{path:(0,o.normalizePath)(e.path+"/"),source:t})}),this.tree.append(i)}})},this.defaultTimeout))}},97379:function(e,t,i){i.d(t,{FileBrowserFiles:function(){return o}});var n=i(67510);class o extends n.UIGroup{className(){return"FileBrowserFiles"}}},8172:function(e,t,i){i.d(t,{FileBrowserFiles:function(){return n.FileBrowserFiles},FileBrowserTree:function(){return o.FileBrowserTree}});var n=i(97379),o=i(8193)},8193:function(e,t,i){i.d(t,{FileBrowserTree:function(){return o}});var n=i(67510);class o extends n.UIGroup{className(){return"FileBrowserTree"}}},92643:function(e,t,i){i.d(t,{Command:function(){return n}});class n{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(e,t,i,n){this.oldValue=e,this.newValue=t,this.history=i,this.tick=n}}},78818:function(e,t,i){i.d(t,{History:function(){return c}});var n=i(80480),o=i(81577),r=i(6441),s=i(92643),a=i(52604),l=i(57034);r.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends n.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(e){this.__startValue=e}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(e=!1){let t=this.snapshot.make();if(!a.Snapshot.equal(t,this.startValue)){let i=new s.Command(this.startValue,t,this,this.updateTick);if(e){let e=this.__stack.current();e&&this.updateTick===e.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=t,this.fireChangeStack()}}fireChangeStack(){var e;this.j&&!this.j.isInDestruct&&(null==(e=this.j.events)||e.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(e,t=new l.Stack(e.o.history.maxHistoryLength),i=new a.Snapshot(e)){super(e),this.updateTick=0,this.__stack=t,this.snapshot=i,e.o.history.enable&&e.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),e.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(e=>e+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!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)()],c.prototype,"onChange",null)},52604:function(e,t,i){i.d(t,{Snapshot:function(){return s}});var n=i(91907),o=i(82758),r=i(2748);class s extends n.ViewComponent{className(){return"Snapshot"}static equal(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}static countNodesBeforeInParent(e){if(!e.parentNode)return 0;let t=e.parentNode.childNodes,i=0,n=null;for(let o=0;o<t.length;o+=1){if(!n||this.isIgnoredNode(t[o])||r.Dom.isText(n)&&r.Dom.isText(t[o])||(i+=1),t[o]===e)return i;n=t[o]}return 0}static strokeOffset(e,t){for(;r.Dom.isText(e);)e=e.previousSibling,r.Dom.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}calcHierarchyLadder(e){let t=[];if(!e||!e.parentNode||!r.Dom.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!s.isIgnoredNode(e)&&t.push(s.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()}getElementByLadder(e){let t=this.j.editor,i;for(i=0;t&&i<e.length;i+=1)t=t.childNodes[e[i]];return t}get isBlocked(){return this.__isBlocked}__block(e){this.__isBlocked=e}transaction(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!o.IS_PROD)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);let t=this.j.s.sel;if(t&&t.rangeCount){let i=t.getRangeAt(0),n=this.calcHierarchyLadder(i.startContainer),o=this.calcHierarchyLadder(i.endContainer),r=s.strokeOffset(i.startContainer,i.startOffset),a=s.strokeOffset(i.endContainer,i.endOffset);n.length||i.startContainer===this.j.editor||(r=0),o.length||i.endContainer===this.j.editor||(a=0),e.range={startContainer:n,startOffset:r,endContainer:o,endOffset:a}}return e}restore(e){this.transaction(()=>{let t=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==e.html&&(this.j.value=e.html),this.restoreOnlySelection(e),this.restoreScrollState(t)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(e){let{j:t}=this,{ow:i}=t;i.scrollTo(i.scrollX,e[0]),t.editor.scrollTop=e[1]}restoreOnlySelection(e){try{if(e.range){let t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),o.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(e){return r.Dom.isText(e)&&!e.nodeValue||r.Dom.isTemporary(e)}__getCleanedEditorValue(e){let t=e.cloneNode(!0);return r.Dom.temporaryList(t).forEach(r.Dom.unwrap),t.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},57034:function(e,t,i){i.d(t,{Stack:function(){return n}});class n{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(e){this.commands[this.stackPosition]=e}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(e){this.size=e,this.commands=[],this.stackPosition=-1}}},62489:function(e,t,i){var n=i(12153),o=i(6441),r=i(49922),s=i(72144);o.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},n.Icon.set("crop",r.default).set("resize",s.default)},49922:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> '},72144:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> '},50050:function(e,t,i){i.d(t,{ImageEditor:function(){return w},openImageEditor:function(){return S}});var n,o=i(91907),r=i(65478),s=i(22732),a=i(4510),l=i(49055),c=i(29960),u=i(41180),d=i(76078),h=i(37790),f=i(62843),p=i(6441);i(62489);var m=i(22461),g=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 v="jodit-image-editor",b="resize",y="crop",w=n=class e extends o.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(e,t){return this.j.async.promise(i=>{let n=new Date().getTime();this.image=this.j.c.element("img"),(0,d.$$)("img,.jodit-icon_loader",this.resize_box).forEach(s.Dom.safeRemove),(0,d.$$)("img,.jodit-icon_loader",this.crop_box).forEach(s.Dom.safeRemove),(0,u.css)(this.cropHandler,"background","transparent"),this.onSave=t,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+n:e+="?_tst="+n,this.image.setAttribute("src",e),this._dialog.open();let{widthInput:o,heightInput:r}=(0,d.refs)(this.editor),a=()=>{this.isDestructed||(this.image.removeEventListener("load",a),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,o.value=this.naturalWidth.toString(),r.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),s.Dom.safeRemove.apply(null,(0,d.$$)(".jodit-icon_loader",this.editor)),this.activeTab===y&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",a),this.image.complete&&a()})}onTitleModeClick(e){let t=e.target,i=null==t?void 0:t.parentElement;if(!i)return;(0,d.$$)(`.${v}__slider,.${v}__area`,this.editor).forEach(e=>e.classList.remove(`${v}_active`)),i.classList.add(`${v}_active`),this.activeTab=(0,c.attr)(i,"-area")||b;let n=this.editor.querySelector(`.${v}__area.${v}__area_`+this.activeTab);n&&n.classList.add(`${v}_active`),this.activeTab===y&&this.showCrop()}onChangeSizeInput(e){let t,i=e.target,{widthInput:n,heightInput:o}=(0,d.refs)(this.editor),r="widthInput"===(0,c.attr)(i,"data-ref"),s=parseInt(i.value,10),a=r?this.o.min_width:this.o.min_height,l=r?this.o.min_height:this.o.min_width;s>a&&((0,u.css)(this.image,r?"width":"height",s),this.resizeUseRatio&&(t=r?Math.round(s/this.ratio):Math.round(s*this.ratio))>l&&((0,u.css)(this.image,r?"height":"width",t),r?o.value=t.toString():n.value=t.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(e){this.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),this.clicked=!0,this.start_x=e.clientX,this.start_y=e.clientY,this.activeTab===y?(this.top_x=(0,u.css)(this.cropHandler,"left"),this.top_y=(0,u.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(e){if(!this.clicked)return;let{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);this.diff_x=e.clientX-this.start_x,this.diff_y=e.clientY-this.start_y,this.activeTab===b&&this.resizeUseRatio||this.activeTab===y&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===b?(this.new_w>this.o.resizeMinWidth&&((0,u.css)(this.image,"width",this.new_w+"px"),t.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,u.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,u.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,u.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,u.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),s.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,`.${v}`).off(`.${v}`),super.destruct())}constructor(e){super(e),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=b,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let e=this.crop_box.parentNode,t=.8*e.offsetWidth,i=.8*e.offsetHeight,n=t,o=i,{naturalWidth:r,naturalHeight:s}=this;t>r&&i>s?(n=r,o=s):this.ratio>t/i?(n=t,o=t/r*s):(n=i/s*r,o=i),(0,u.css)(this.crop_box,{width:n,height:o})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let e=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=n.calcValueByPercent(e,this.o.cropDefaultWidth);let t=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=n.calcValueByPercent(t,this.o.cropDefaultHeight),(0,u.css)(this.cropHandler,{backgroundImage:"url("+(0,c.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:e/2-this.new_w/2,top:t/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let e=this.cropImage.offsetWidth/this.naturalWidth,t=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,u.css)(this.cropHandler,"left")/e,this.cropBox.y=(0,u.css)(this.cropHandler,"top")/t,this.cropBox.w=this.cropHandler.offsetWidth/e,this.cropBox.h=this.cropHandler.offsetHeight/t,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let e=this,{widthInput:t,heightInput:i}=(0,d.refs)(this.editor);e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],`mousedown.${v}`,this.onResizeHandleMouseDown).on(this.j.ow,`resize.${v}`,()=>{this.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),this.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on((0,a.toArray)(this.editor.querySelectorAll(`.${v}__slider-title`)),"click",this.onTitleModeClick).on([t,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:n,keepAspectRatioCrop:o}=(0,d.refs)(this.editor);n&&n.addEventListener("change",()=>{this.resizeUseRatio=n.checked}),o&&o.addEventListener("change",()=>{this.cropUseRatio=o.checked}),e.j.e.on(e.resizeHandler,"updatesize",()=>{(0,u.css)(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),this.updateResizeBox()}).on(e.cropHandler,"updatesize",()=>{if(!e.cropImage)return;let t=(0,u.css)(e.cropHandler,"left"),i=(0,u.css)(e.cropHandler,"top"),n=e.cropHandler.offsetWidth,o=e.cropHandler.offsetHeight;t<0&&(t=0),i<0&&(i=0),t+n>e.cropImage.offsetWidth&&(n=e.cropImage.offsetWidth-t,e.cropUseRatio&&(o=n/e.ratio)),i+o>e.cropImage.offsetHeight&&(o=e.cropImage.offsetHeight-i,e.cropUseRatio&&(n=o*e.ratio)),(0,u.css)(e.cropHandler,{width:n,height:o,left:t,top:i,backgroundPosition:-t-1+"px "+(-i-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}),Object.values(e.buttons).forEach(n=>{n.onAction(()=>{let o={action:e.activeTab,box:e.activeTab===b?e.resizeBox:e.cropBox};switch(n){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",t=>{if(!(0,l.trim)(t))return e.j.alert("The name should not be empty"),!1;e.j.e.fire("afterImageEditorSave",o,t),e.onSave(t,o,e.hide,t=>{e.j.alert(t.message)})});break;case e.buttons.save:e.j.e.fire("afterImageEditorSave",o),e.onSave(void 0,o,e.hide,t=>{e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===b?((0,u.css)(e.image,{width:null,height:null}),t.value=e.naturalWidth.toString(),i.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},this.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:p.Config.defaultOptions.imageeditor;const t=this.options;this.resizeUseRatio=t.resizeUseRatio,this.cropUseRatio=t.cropUseRatio,this.buttons={reset:(0,f.Button)(this.j,"update","Reset"),save:(0,f.Button)(this.j,"save","Save"),saveas:(0,f.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=t.resize?b:y,this.editor=(0,m.form)(this.j,this.options);const{resizeBox:i,cropBox:o}=(0,d.refs)(this.editor);this.resize_box=i,this.crop_box=o,this.sizes=this.editor.querySelector(`.${v}__area.${v}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${v}__resizer`),this.cropHandler=this.editor.querySelector(`.${v}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function S(e,t,i,n,o,r){return this.getInstance("ImageEditor",this.o).open(e,(e,s,a,l)=>(0,h.call)("resize"===s.action?this.dataProvider.resize:this.dataProvider.crop,i,n,t,e,s.box).then(e=>{e&&(a(),o&&o("string"==typeof e?e:void 0))}).catch(e=>{l(e),r&&r(e)}))}w.calcValueByPercent=(e,t)=>{let i,n=t.toString(),o=parseFloat(e.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(n))?parseInt(n,10):(i=/^([-+]?[0-9.]+)%$/.exec(n))?Math.round(o*(parseFloat(i[1])/100)):o||0},g([r.autobind],w.prototype,"hide",null),g([r.autobind],w.prototype,"open",null),g([r.autobind],w.prototype,"onTitleModeClick",null),g([(0,r.debounce)(),r.autobind],w.prototype,"onChangeSizeInput",null),g([r.autobind],w.prototype,"onResizeHandleMouseDown",null),g([r.autobind],w.prototype,"onGlobalMouseUp",null),g([(0,r.throttle)(10)],w.prototype,"onGlobalMouseMove",null),w=n=g([r.component],w)},22461:function(e,t,i){i.d(t,{form:function(){return a}});var n=i(67510);let o="jodit-image-editor",r=n.Icon.get.bind(n.Icon),s=(e,t="jodti-image-editor_active")=>e?t:"",a=(e,t)=>{let i=e.i18n.bind(e),n=(e,t,n=!0)=>`<div class="jodit-form__group">
|
|
50
50
|
<label class="jodit-switcher-wrapper">
|
|
51
51
|
<span class='jodit-switcher'>
|
|
52
52
|
<input ${s(n,"checked")} data-ref="${t}" type="checkbox"/>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</div>`:""}
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
|
-
</form>`)}},41409:function(e,t,i){i.r(t),i.d(t,{Ajax:function(){return f.Ajax},Alert:function(){return s.Alert},Async:function(){return l.Async},AsyncStorage:function(){return j.AsyncStorage},Button:function(){return p.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return n.Component},Confirm:function(){return s.Confirm},ContextMenu:function(){return r.ContextMenu},Create:function(){return c.Create},Dialog:function(){return s.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return d.EventEmitter},EventHandlersStore:function(){return d.EventHandlersStore},Eventify:function(){return d.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return o},History:function(){return v.History},Icon:function(){return p.Icon},ImageEditor:function(){return y.ImageEditor},IndexedDBProvider:function(){return j.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return j.LocalStorageProvider},MemoryStorageProvider:function(){return j.MemoryStorageProvider},Plugin:function(){return h.Plugin},PluginSystem:function(){return T.PluginSystem},Popup:function(){return p.Popup},ProgressBar:function(){return p.ProgressBar},Prompt:function(){return s.Prompt},Response:function(){return f.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return b.Snapshot},StatusBar:function(){return S.StatusBar},Storage:function(){return j.Storage},StorageKey:function(){return j.StorageKey},Table:function(){return _.Table},ToolbarButton:function(){return C.ToolbarButton},ToolbarCollection:function(){return k.ToolbarCollection},ToolbarContent:function(){return C.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return C.ToolbarSelect},UIBlock:function(){return p.UIBlock},UIButton:function(){return p.UIButton},UIButtonGroup:function(){return p.UIButtonGroup},UIButtonState:function(){return p.UIButtonState},UICheckbox:function(){return p.UICheckbox},UIElement:function(){return p.UIElement},UIFileInput:function(){return p.UIFileInput},UIForm:function(){return p.UIForm},UIGroup:function(){return p.UIGroup},UIInput:function(){return p.UIInput},UIList:function(){return p.UIList},UIMessages:function(){return w.UIMessages},UISelect:function(){return p.UISelect},UISeparator:function(){return p.UISeparator},UISpacer:function(){return p.UISpacer},UITextArea:function(){return p.UITextArea},UITooltip:function(){return p.UITooltip},Uploader:function(){return I.Uploader},View:function(){return m.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return j.canUseIndexedDB},canUsePersistentStorage:function(){return j.canUsePersistentStorage},clearUseIndexedDBCache:function(){return j.clearUseIndexedDBCache},defaultNameSpace:function(){return d.defaultNameSpace},observable:function(){return d.observable}});var n=i(91907),o=i(21537),r=i(80870),s=i(638),a=i(78513),l=i(8884),c=i(12060),u=i(22732),d=i(3827),h=i(50911),f=i(41601),p=i(67510),m=i(35608),g=i(84075),v=i(78818),b=i(52604),y=i(50050),w=i(1808),S=i(23512),_=i(76014),C=i(36646),k=i(11676),E=i(37426),I=i(57380),T=i(41876),D=i(59242),j=i(12081)},68389:function(e,t,i){i.d(t,{UIMessage:function(){return r}});var n=i(87325),o=i(67510);let r=class e extends o.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}};r=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],r)},1808:function(e,t,i){i.d(t,{UIMessages:function(){return a}});var n=i(87325),o=i(41180),r=i(62405),s=i(68389);let a=class e extends r.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let n=e+":"+t;if(this.__messages.has(n))return void this.async.updateTimeout(n,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);this.__box.appendChild(this.container);let o=new s.UIMessage(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(n);let r=this.__getRemoveCallback(o,n);this.j.e.on(o.container,"pointerdown",r),this.async.setTimeout(r,{label:n,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=n=>{n&&n.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,o.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),this.__box=t,this.options=i,this.__messages=new Set}};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}([n.component],a)},23512:function(e,t,i){i.d(t,{StatusBar:function(){return l}});var n=i(91907),o=i(65478),r=i(2748),s=i(14316),a=i(34176);let l=class e extends n.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!=(t=null==(e=this.container)?void 0:e.offsetHeight)?t:0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){var i;let n=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&n.classList.add(this.getFullElName("item-right")),n.appendChild(e),null==(i=this.container)||i.appendChild(n),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),r.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),t.appendChild(this.container),this.hide()}};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}([o.component,(0,o.derive)(a.Mods,s.Elms)],l)},76014:function(e,t,i){i.d(t,{Table:function(){return u}});var n=i(91907),o=i(82758),r=i(65478),s=i(22732),a=i(580),l=i(21537);let c=new WeakMap;class u extends n.ViewComponent{className(){return"Table"}__recalculateStyles(){let e=(0,a.getContainer)(this.j,u,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,l.cssPath)(e);i&&t.push(i)}),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=s.Dom.closest(e,"table",this.j.editor);if(t){let i=u.__selectedByTable.get(t)||new Set;i.add(e),u.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=s.Dom.closest(e,"table",this.j.editor);if(t){let i=u.__selectedByTable.get(t);i&&(i.delete(e),i.size||u.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,l.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=u.__selectedByTable.get(e);return t?(0,l.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return u.__getRowsCount(e)}static __getColumnsCount(e){return u.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return u.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],n=(0,l.toArray)(e.rows),o=(e,n)=>{void 0===i[n]&&(i[n]=[]);let o=e.colSpan,r=e.rowSpan,s,a,l=0;for(;i[n][l];)l+=1;for(a=0;r>a;a+=1)for(s=0;s<o;s+=1){if(void 0===i[n+a]&&(i[n+a]=[]),t&&!1===t(e,n+a,l+s,o,r))return!1;i[n+a][l+s]=e}};for(let e=0;e<n.length;e+=1){let t=(0,l.toArray)(n[e].cells);for(let n=0;n<t.length;n+=1)if(!1===o(t[n],e))return i}return i}formalMatrix(e,t){return u.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let n=0,o=0,r=1,s=1;return u.__formalMatrix(e,(e,a,l,c,u)=>{if(t===e)return n=a,o=l,r=c||1,s=u||1,i&&(o+=(c||1)-1,n+=(u||1)-1),!1}),[n,o,r,s]}formalCoordinate(e,t,i=!1){return u.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,n){var o;let r;if(t)r=t.cloneNode(!0),(0,l.$$)("td,th",t).forEach(e=>{let t=(0,l.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,l.attr)(e,"rowspan",i>1?i:null)}}),(0,l.$$)("td,th",r).forEach(e=>{e.innerHTML=""});else{let t=u.__getColumnsCount(e);r=n.element("tr");for(let e=0;e<t;e+=1)r.appendChild(n.element("td"))}i&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(r,t.nextSibling):!i&&t?t.parentNode&&t.parentNode.insertBefore(r,t):((null==(o=e.getElementsByTagName("tbody"))?void 0:o[0])||e).appendChild(r)}appendRow(e,t,i){return u.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,n=u.__formalMatrix(e),o=e.rows[t];n[t].forEach((r,a)=>{if(i=!1,t-1>=0&&n[t-1][a]===r)i=!0;else if(n[t+1]&&n[t+1][a]===r){if(r.parentNode===o&&r.parentNode.nextSibling){i=!0;let o=a+1;for(;n[t+1][o]===r;)o+=1;let l=s.Dom.next(r.parentNode,e=>s.Dom.isTag(e,"tr"),e);if(l){let e=null;for(let i=o;i<n[t+1].length;i+=1){let o=n[t+1][i];if(o&&o.parentNode===l){e=o;break}}e?l.insertBefore(r,e):l.appendChild(r)}}}else s.Dom.safeRemove(r);if(i&&(r.parentNode===o||r!==n[t][a-1])){let e=r.rowSpan;(0,l.attr)(r,"rowspan",e-1>1?e-1:null)}}),s.Dom.safeRemove(o)}removeRow(e,t){return u.__removeRow(e,t)}appendColumn(e,t,i=!0){let n=u.__formalMatrix(e);if(!i&&s.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let[,o]=u.__formalCoordinate(e,t,i),r=i?o+1:o;for(let e=0;e<n.length;){let t=n[e];if(t[o]!==t[r]||o===r){let e=this.j.createInside.element("td");i?s.Dom.after(t[o],e):s.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,n=u.__formalMatrix(e);n.forEach((e,o)=>{let r=e[t];if(i=!1,t-1>=0&&n[o][t-1]===r||t+1<e.length&&n[o][t+1]===r?i=!0:s.Dom.safeRemove(r),i&&(o-1<0||r!==n[o-1][t])){let e=r.colSpan;(0,l.attr)(r,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return u.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,n,o,r=[[1/0,1/0],[0,0]],s=u.__formalMatrix(e);for(i=0;i<s.length;i+=1)for(n=0;s[i]&&n<s[i].length;n+=1)t.includes(s[i][n])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(n,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(n,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,n=r[0][1];n<=r[1][1];n+=1){for(;s[i]&&s[i][n-o]&&s[i][n]===s[i][n-o];)r[0][1]=Math.min(n-o,r[0][1]),r[1][1]=Math.max(n-o,r[1][1]),o+=1;for(o=1;s[i]&&s[i][n+o]&&s[i][n]===s[i][n+o];)r[0][1]=Math.min(n+o,r[0][1]),r[1][1]=Math.max(n+o,r[1][1]),o+=1;for(o=1;s[i-o]&&s[i][n]===s[i-o][n];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;s[i+o]&&s[i][n]===s[i+o][n];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return u.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=u.__formalMatrix(e);u.__removeExtraColspans(i,t),u.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,l.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,l.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,l.attr)(i[e][t],"class")&&(0,l.attr)(i[e][t],"class",null));u.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let n=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}n=Math.min(n,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&u.__mark(e[o][i],"colspan",e[o][i].colSpan-n+1,t)}}static __removeExtraRowspans(e,t){let i=0,n=0;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(n=0;n<e[i].length;n+=1)if(void 0!==e[i][n]){if(e[i][n].rowSpan<2){r=!0;break}o=Math.min(o,e[i][n].rowSpan)}if(!r)for(n=0;n<e[i].length;n+=1)void 0!==e[i][n]&&u.__mark(e[i][n],"rowspan",e[i][n].rowSpan-o+1,t)}}normalizeTable(e){return u.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],n=u.__getSelectedBound(e,u.__getSelectedCellsByTable(e)),r=0,a=null,c=0,h=0,f=0,p=new Set,m=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(u.__formalMatrix(e,(e,o,s,g,v)=>{o>=n[0][0]&&o<=n[1][0]&&s>=n[0][1]&&s<=n[1][1]&&(p.has(e)||(p.add(e),o===n[0][0]&&e.style.width&&(r+=e.offsetWidth),""!==(0,l.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),g>1&&(h+=g-1),v>1&&(f+=v-1),a?(u.__mark(e,"remove",1,m),d(t).removeSelection(e)):(a=e,c=s)))}),h=n[1][1]-n[0][1]+1,f=n[1][0]-n[0][0]+1,a&&(h>1&&u.__mark(a,"colspan",h,m),f>1&&u.__mark(a,"rowspan",f,m),r&&(u.__mark(a,"width",(r/e.offsetWidth*100).toFixed(o.ACCURACY)+"%",m),c&&u.__setColumnWidthByDelta(e,c,0,!0,m)),a.innerHTML=i.join("<br/>"),d(t).addSelection(a),p.delete(a),u.__unmark(m),u.__normalizeTable(e),(0,l.toArray)(e.rows).forEach(e=>{e.cells.length||s.Dom.safeRemove(e)})))}mergeSelected(e){return u.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,n,o,r,a,l=[];u.__getSelectedCellsByTable(e).forEach(c=>{(n=t.createInside.element("td")).appendChild(t.createInside.element("br")),o=t.createInside.element("tr"),i=u.__formalCoordinate(e,c),c.rowSpan<2?(u.__formalMatrix(e,(e,t,n)=>{i[0]===t&&i[1]!==n&&e!==c&&u.__mark(e,"rowspan",e.rowSpan+1,l)}),s.Dom.after(s.Dom.closest(c,"tr",e),o),o.appendChild(n)):(u.__mark(c,"rowspan",c.rowSpan-1,l),u.__formalMatrix(e,(t,n,o)=>{n>i[0]&&n<i[0]+c.rowSpan&&i[1]>o&&t.parentNode.rowIndex===n&&(a=t),i[0]<n&&t===c&&(r=e.rows[n])}),a?s.Dom.after(a,n):r.insertBefore(n,r.firstChild)),c.colSpan>1&&u.__mark(n,"colspan",c.colSpan,l),u.__unmark(l),d(t).removeSelection(c)}),this.__normalizeTable(e)}splitHorizontal(e){return u.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,n,r,a=[];u.__getSelectedCellsByTable(e).forEach(l=>{i=u.__formalCoordinate(e,l),l.colSpan<2?u.__formalMatrix(e,(e,t,n)=>{i[1]===n&&i[0]!==t&&e!==l&&u.__mark(e,"colspan",e.colSpan+1,a)}):u.__mark(l,"colspan",l.colSpan-1,a),(n=t.createInside.element("td")).appendChild(t.createInside.element("br")),l.rowSpan>1&&u.__mark(n,"rowspan",l.rowSpan,a);let c=l.offsetWidth;s.Dom.after(l,n),r=c/e.offsetWidth/2,u.__mark(l,"width",(100*r).toFixed(o.ACCURACY)+"%",a),u.__mark(n,"width",(100*r).toFixed(o.ACCURACY)+"%",a),u.__unmark(a),d(t).removeSelection(l)}),u.__normalizeTable(e)}splitVertical(e){return u.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,n,r){let s=u.__formalMatrix(e),a=0;for(let n=0;n<s.length;n+=1){let l=s[n][t];if(l.colSpan>1&&s.length>1)continue;let c=(l.offsetWidth+i)/e.offsetWidth*100;u.__mark(l,"width",c.toFixed(o.ACCURACY)+"%",r),a=n;break}for(let e=a+1;e<s.length;e+=1){let i=s[e][t];u.__mark(i,"width",null,r)}n||u.__unmark(r)}setColumnWidthByDelta(e,t,i,n,o){return u.__setColumnWidthByDelta(e,t,i,n,o)}static __mark(e,t,i,n){var o;n.push(e);let r=null!=(o=c.get(e))?o:{};r[t]=void 0===i?1:i,c.set(e,r)}static __unmark(e){e.forEach(e=>{let t=c.get(e);t&&(Object.keys(t).forEach(i=>{let n=t[i];switch(i){case"remove":s.Dom.safeRemove(e);break;case"rowspan":(0,l.attr)(e,"rowspan",(0,l.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,l.attr)(e,"colspan",(0,l.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),(0,l.attr)(e,"style")||(0,l.attr)(e,"style",null)):e.style.width=n.toString()}delete t[i]}),c.delete(e))})}constructor(){super(...arguments),this.selected=new Set}}u.__selectedByTable=new WeakMap,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,r.debounce)()],u.prototype,"__recalculateStyles",null);let d=e=>e.getInstance("Table",e.o)},78644:function(e,t,i){i.d(t,{ToolbarButton:function(){return T}});var n=i(78213),o=i(45219),r=i(33433),s=i(87325),a=i(37133),l=i(2748),c=i(68345),u=i(23282),d=i(19306),h=i(72430),f=i(70799),p=i(56175),m=i(87058),g=i(38837),v=i(29960),b=i(37790),y=i(62843),w=i(72157),S=i(12153),_=i(56917),C=i(21491);function k(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function E(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}var I=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 T=class e extends y.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,v.attr)(this.trigger,"aria-label",e)}}get toolbar(){let e=(0,s.getComponentClass)("ToolbarCollection");return this.closest(e)}update(){var e,t;let{control:i,state:n}=this,o=this.toolbar;if(!o)return;let r=null==(e=i.value)?void 0:e.call(i,o.jodit,this);void 0!==r&&(n.value=r),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null==(t=i.update)||t.call(i,o.jodit,this)}__calculateActivatedStatus(e){var t,i;return(!(0,d.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(i=(t=this.control).isActive)&&!!i.call(t,this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,i;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(i=(t=this.control).isDisabled)?void 0:i.call(t,this.j,this)))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,u.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${S.Icon.get("chevron")}</span>`);return i.appendChild(n),t}focus(){var e;null==(e=this.container.querySelector("button"))||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):l.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",e),(0,v.attr)(this.button,"disabled",e),(0,v.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=(0,u.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=!!(e.list||e.popup&&e.exec)}__initIconFromControl(){var e;let{control:t,state:i}=this,{textIcons:n}=this.j.o;if(!0===n||(0,u.isFunction)(n)&&n(t.name)||t.template){i.icon=(0,y.UIButtonState)().icon,i.text=t.text||t.name;return}if(!(0,f.isString)(t.icon)&&null!=t.icon){i.icon={name:t.icon.name||t.name,iconURL:t.icon.iconURL||"",fill:t.icon.fill||"",scale:t.icon.scale};return}if(t.iconURL)i.icon.iconURL=t.iconURL;else{let n=t.icon||t.name;i.icon.name=S.Icon.exists(n)||(null==(e=this.j.o.extraIcons)?void 0:e[n])?n:""}t.iconURL||i.icon.name||(i.text=t.text||t.name)}onTriggerClick(e){var t,i,n;if(this.openedPopup)return void this.__closePopup();let{control:o}=this;if((0,v.attr)(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},o.list)return this.__openControlList(o);if((0,u.isFunction)(o.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,m.camelCase)(`before-${o.name}-open-popup`),this.target,o,e)){let r=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,s=o.popup(this.j,r,this.__closePopup,this);s?e.setContent((0,f.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,p.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,m.camelCase)(`after-${o.name}-open-popup`),e.container)}}__openControlList(e){var t;let i=null!=(t=this.jodit.options.controls)?t:{},n=e=>(0,w.findControlType)(e,i),o=e.list,r=this.openPopup(),s=(0,C.makeCollection)(this.j);r.parentElement=this,s.parentElement=r,s.mode="vertical";let a=(t,i)=>{let o;if((0,f.isString)(i)&&n(i))return k({name:i.toString()},n(i));if((0,f.isString)(t)&&n(t))return k({name:t.toString()},n(t),"object"==typeof i?i:{});o=t,(0,h.isPlainObject)(o)&&"title"in o&&"value"in o&&(i=t.value,t=t.title);let{childTemplate:r}=e,s={name:t.toString(),template:r&&((e,t,i)=>r(e,t,i,this)),exec:e.childExec?(t,i,n)=>{var o;return null==(o=e.childExec)?void 0:o.call(e,t,i,E(k({},n),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,f.isString)(i)&&(s.text=i),s};s.build((0,c.isArray)(o)?o.map(a):(0,b.keys)(o,!1).map(e=>a(e,o[e])),this.target),r.setContent(s).open(()=>(0,p.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&l.Dom.isNode(e.target)&&(l.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new _.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&(0,v.attr)(this.trigger,"aria-expanded",!1))}onClick(e){var t,i,n,o,r,s,a;let{control:l}=this;if((0,u.isFunction)(l.exec)){let c=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null==(r=null==(o=this.j)?void 0:o.e)||r.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(a=null==(s=this.j)?void 0:s.e)||a.fire("closeAllPopups afterExec")),!1!==u)return}return l.list?this.__openControlList(l):(0,u.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,b.call)((0,d.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state=E(k({},(0,y.UIButtonState)()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),this.openedPopup=null;const o=this.getElm("button");(0,g.assert)(o,"Element button should exists"),this.button=o,Object.defineProperty(o,"component",{value:this,configurable:!0});const r=this.getElm("trigger");(0,g.assert)(r,"Element trigger should exists"),this.trigger=r,r.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(n.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}};I([r.cacheHTML],T.prototype,"createContainer",null),I([(0,a.watch)("state.hasTrigger",{immediately:!1})],T.prototype,"onChangeHasTrigger",null),I([(0,a.watch)("trigger:click")],T.prototype,"onTriggerClick",null),I([o.autobind],T.prototype,"onOutsideClick",null),I([o.autobind],T.prototype,"__closePopup",null),T=I([s.component],T)},80319:function(e,t,i){i.d(t,{ToolbarContent:function(){return a}});var n=i(65478),o=i(22732),r=i(21537),s=i(62843);let a=class e extends s.UIButton{className(){return"ToolbarContent"}update(){var e,t,i;let{control:n}=this,s=n.getContent(this.j,this);((0,r.isString)(s)||s.parentNode!==this.container)&&(o.Dom.detach(this.container),this.container.appendChild((0,r.isString)(s)?this.j.create.fromHTML(s):s)),this.state.disabled=!!(null==(e=n.isDisabled)?void 0:e.call(n,this.j,this)),this.state.activated=!!(null==(t=n.isActive)?void 0:t.call(n,this.j,this)),null==(i=n.update)||i.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(e=>(0,r.attr)(e,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),(0,r.attr)(this.container,"role","content")}};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}([n.component],a)},36646:function(e,t,i){i.d(t,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return o.ToolbarContent},ToolbarSelect:function(){return r.ToolbarSelect}});var n=i(78644),o=i(80319),r=i(83111)},83111:function(e,t,i){i.d(t,{ToolbarSelect:function(){return a}});var n=i(65478),o=i(72430),r=i(70799),s=i(78644);let a=class e extends s.ToolbarButton{className(){return"ToolbarSelect"}update(){var e,t,i;super.update(),this.state.icon.name="";let{list:n,data:s}=this.control;if(n){let a=this.state.value||(s&&(0,r.isString)(s.currentValue)?s.currentValue:void 0);a||(a=Object.keys(n)[0]);let l=((0,o.isPlainObject)(n)&&n[a.toString()]||a).toString();this.state.text=null!=(i=null==(t=(e=this.control).textTemplate)?void 0:t.call(e,this.jodit,l))?i:l}}};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}([n.component],a)},11676:function(e,t,i){i.d(t,{ToolbarCollection:function(){return h}});var n=i(65478),o=i(45219),r=i(87325),s=i(97357),a=i(37133),l=i(82760),c=i(24536),u=i(21491),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 h=class e extends c.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,u.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,u.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,l.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};d([(0,a.watch)(":afterInit"),o.autobind],h.prototype,"__immediateUpdate",null),d([(0,n.debounce)(e=>e.j.defaultTimeout,!0)],h.prototype,"update",null),d([(0,s.hook)("ready")],h.prototype,"__initEvents",null),h=d([r.component],h)},37426:function(e,t,i){i.d(t,{ToolbarEditorCollection:function(){return l}});var n=i(82758),o=i(65478),r=i(22732),s=i(21537),a=i(11676);let l=class e extends a.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?n.MODE_WYSIWYG:e.control.mode;return i!==n.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(e.control.tags){let i=e.control.tags;if(t=n,r.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=n,r.Dom.up(t,e=>{if(e&&!r.Dom.isText(e)&&!r.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});r.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,n=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,s.isFunction)(r)?r(this.j,(0,s.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,s.css)(t,o).toString())&&(i+=1),n+=1}),n===i},this.prependInvisibleInput(this.container)}};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}([o.component],l)},21491:function(e,t,i){i.d(t,{makeButton:function(){return a},makeCollection:function(){return s},makeSelect:function(){return l}});var n=i(87325),o=i(23282),r=i(19306);function s(e,t){let i=(0,n.getComponentClass)("ToolbarCollection"),o=(0,n.getComponentClass)("ToolbarEditorCollection"),s=(0,r.isJoditObject)(e)?new o(e):new i(e);return e.o.textIcons&&s.container.classList.add("jodit_text_icons"),t&&(s.parentElement=t),e.o.toolbarButtonSize&&(s.buttonSize=e.o.toolbarButtonSize),s}function a(e,t,i=null){if((0,o.isFunction)(t.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(e,t,i);let r=new((0,n.getComponentClass)("ToolbarButton"))(e,t,i);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function l(e,t,i=null){return new((0,n.getComponentClass)("ToolbarSelect"))(e,t,i)}},80536:function(e,t,i){var n=i(68345),o=i(19306),r=i(6441);r.Config.prototype.enableDragAndDropFileToEditor=!0,r.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName(e){return`files[${e}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(e){return e},isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,n.isArray)(e.data.messages)?e.data.messages.join(" "):""},processFileName(e,t,i){return[e,t,i]},process(e){return e.data},error(e){this.j.message.error(e.message,4e3)},getDisplayName(e,t){return e+t},defaultHandlerSuccess(e){let t=this.j||this;(0,o.isJoditObject)(t)&&e.files&&e.files.length&&e.files.forEach((i,n)=>{let[o,r]=e.isImages&&e.isImages[n]?["img","src"]:["a","href"],s=t.createInside.element(o);s.setAttribute(r,e.baseurl+i),"a"===o&&(s.textContent=t.o.uploader.getDisplayName.call(this,e.baseurl,i)),"img"===o?t.s.insertImage(s,null,t.o.imageDefaultWidth):t.s.insertNode(s)})},defaultHandlerError(e){this.j.message.error(e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(e,t,i){i.d(t,{buildData:function(){return o}});var n=i(21537);function o(e,t){if((0,n.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,n.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},74569:function(e,t,i){i.d(t,{dataURItoBlob:function(){return n}});function n(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return new Blob([n.buffer],{type:i})}},94122:function(e,t,i){i.d(t,{ajaxInstances:function(){return o.ajaxInstances},hasFiles:function(){return s},hasItems:function(){return a},processOldBrowserDrag:function(){return n.processOldBrowserDrag},send:function(){return o.send},sendFiles:function(){return r.sendFiles}}),i(83987);var n=i(50373),o=i(71686),r=i(80020);function s(e){return!!(e&&e.files&&e.files.length>0)}function a(e){return!!(e&&e.items&&e.items.length>0)}},50373:function(e,t,i){i.d(t,{processOldBrowserDrag:function(){return c}});var n=i(82758),o=i(22732),r=i(580),s=i(21537),a=i(74569),l=i(80020);function c(e,t,i,c,u){if(t&&(!t.types.length||t.types[0]!==n.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,r.getContainer)(e.j,e.constructor).appendChild(t);let n=(0,s.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,s.attr)(r,"src")||"";n&&(0,s.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,c).finally(u)}},e.j.defaultTimeout)}}},80020:function(e,t,i){i.d(t,{sendFiles:function(){return r}});var n=i(21537),o=i(71686);function r(e,t,i,r,s){if(!t)return Promise.reject((0,n.error)("Need files"));let{o:a}=e,l=(0,n.toArray)(t);if(!l.length)return Promise.reject((0,n.error)("Need files"));let c=[];if(a.insertImageAsBase64URI&&function(e,t,i,o,r,s){let a,l;for(l=0;l<e.length;l+=1)if((a=e[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),u=c[1]?c[1].toLowerCase():"";if(!t.includes(u))continue;let d=new FileReader;i.push(o.j.async.promise((e,t)=>{d.onerror=t,d.onloadend=()=>{let t={baseurl:"",files:[d.result],isImages:[!0]};((0,n.isFunction)(r)?r:s).call(o,t),e(t)},d.readAsDataURL(a)})),e[l]=null}}(l,a.imagesExtensions,c,e,i,a.defaultHandlerSuccess),(l=l.filter(e=>e)).length){let t,u=new FormData;u.append(a.pathVariableName,e.path),u.append("source",e.source);for(let i=0;i<l.length;i+=1)if(t=l[i]){let n=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",s=l[i].name||Math.random().toString().replace(".","");if(!n&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+r)}let[c,d,h]=a.processFileName.call(e,a.filesVariableName(i),l[i],s);u.append(c,d,h)}s&&s(u),a.data&&(0,n.isPlainObject)(a.data)&&Object.keys(a.data).forEach(e=>{u.append(e,a.data[e])}),a.prepareData.call(e,u),c.push((0,o.send)(e,u).then(t=>(a.isSuccess.call(e,t)?((0,n.isFunction)(i)?i:a.defaultHandlerSuccess).call(e,a.process.call(e,t)):((0,n.isFunction)(r)?r:a.defaultHandlerError).call(e,(0,n.error)(a.getMessage.call(e,t))),t)).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},71686:function(e,t,i){i.d(t,{ajaxInstances:function(){return s},send:function(){return a}});var n=i(21537),o=i(41601),r=i(83987);let s=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr:()=>{let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,n.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=s.get(e);return a||(a=new Set,s.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==a||a.delete(r)})};return((0,n.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,n.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}},57380:function(e,t,i){i.d(t,{Uploader:function(){return l}});var n=i(91907),o=i(82758),r=i(21537),s=i(6441),a=i(94122);i(80536);class l extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let n=()=>{e.classList.remove("jodit_drag_hover")},r=this,s=e=>{let s,l,c,u=e.clipboardData,d=e=>{l&&(e.append("extension",c),e.append("mimetype",l.type))};if(!o.IS_IE&&(0,a.hasFiles)(u))return(0,a.sendFiles)(r,u.files,t,i).finally(n),!1;if(o.IS_IE&&!o.IS_ES_NEXT)return(0,a.processOldBrowserDrag)(r,u,t,i,n);if((0,a.hasItems)(u)){let{items:o}=u;for(s=0;s<o.length;s+=1)if("file"===o[s].kind&&"image/png"===o[s].type){if(l=o[s].getAsFile()){let e=l.type.match(/\/([a-z0-9]+)/i);c=e[1]?e[1].toLowerCase():"",(0,a.sendFiles)(r,[l],t,i,d).finally(n)}e.preventDefault();break}}};r.j&&r.j.editor!==e?r.j.e.on(e,"paste",s):r.j.e.on("beforePaste",s),this.attachEvents(e,t,i,n)}attachEvents(e,t,i,n){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,a.hasFiles)(t.dataTransfer)||(0,a.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,a.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,a.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,a.sendFiles)(o,r.dataTransfer.files,t,i).finally(n))});let r=e.querySelector("input[type=file]");r&&o.j.e.on(r,"change",()=>{(0,a.sendFiles)(o,r.files,t,i).then(()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")}).finally(n)})}uploadRemoteImage(e,t,i){let n=this,{o}=n,s=(0,r.isFunction)(i)?i:o.defaultHandlerError;(0,a.send)(n,{action:"fileUploadRemote",url:e}).then(e=>{o.isSuccess.call(n,e)?((0,r.isFunction)(t)?t:o.defaultHandlerSuccess).call(n,o.process.call(n,e)):s.call(n,(0,r.error)(o.getMessage.call(n,e)))}).catch(e=>s.call(n,e))}upload(e){return this.async.promise((t,i)=>{(0,a.sendFiles)(this,e,t,i)})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let e=a.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,r.ConfigProto)(t||{},(0,r.ConfigProto)(s.Config.defaultOptions.uploader,(0,r.isJoditObject)(e)?e.o.uploader:{}))}}},22859:function(e,t,i){i.d(t,{ColorPickerWidget:function(){return a}});var n=i(22732),o=i(21537),r=i(67510),s=i(37068);r.Icon.set("palette",s.default);let a=(e,t,i)=>{let s="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(s),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),u=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${s}__group ${s}__group-${i}">`),t.push(u(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${s}__color-item ${a===e?s+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${s}__groups">${u(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${s}__extra"></div>`));let{extra:d}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(d.appendChild(e.c.fromHTML(`<div class="${s}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!n.Dom.isTag(i,"input"))return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||n.Dom.isTag(r,"svg")||n.Dom.isTag(r,"path"))&&r.parentNode&&(r=n.Dom.closest(r.parentNode,"span",e.editor)),!n.Dom.isTag(r,"span")||!r.classList.contains(s+"__color-item"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,d,t,a),l}},37068:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> '},34793:function(e,t,i){i.d(t,{FileSelectorWidget:function(){return a}});var n=i(2748),o=i(21537),r=i(67510),s=i(38927);let a=(e,t,i,a,c=!0)=>{let u,d=[],h=e.o.uploader;if(t.upload&&(h.url||h.insertImageAsBase64URI||h.customUploadFunction)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(c?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let n=(0,o.isFunction)(t.upload)?t.upload:h.defaultHandlerSuccess;(0,o.isFunction)(n)&&n.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content:()=>{a&&a(),t.filebrowser&&e.filebrowser.open(t.filebrowser,c)}}),t.url){let s=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[s])]);u=null,i&&!n.Dom.isText(i)&&!n.Dom.isComment(i)&&(n.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(u="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"input[name=url]",(0,o.attr)(u,"src")),l(a.container,"input[name=text]",(0,o.attr)(u,"alt")),s.state.text="Update"),i&&n.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,o.attr)(i,"href")),l(a.container,"input[name=text]",(0,o.attr)(i,"title")),s.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:a.container})}return(0,s.TabsWidget)(e,d)};function l(e,t,i){let n=e.querySelector(t);return n?(i&&(n.value=i),n.value):""}},92762:function(e,t,i){i.d(t,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return o.FileSelectorWidget},TabsWidget:function(){return r.TabsWidget}});var n=i(22859),o=i(34793),r=i(38927)},38927:function(e,t,i){i.d(t,{TabsWidget:function(){return l}});var n=i(91907),o=i(2748),r=i(23282),s=i(29960),a=i(67510);let l=(e,t,i)=>{let l=e.c.div("jodit-tabs"),c=e.c.div("jodit-tabs__wrapper"),u=e.c.div("jodit-tabs__buttons");(0,s.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let d={},h=[],f="";l.appendChild(u),l.appendChild(c);let p=e=>{d[e]&&(h.forEach(e=>{e.state.activated=!1}),Object.values(d).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:l,name:m,content:g})=>{let v=e.c.div("jodit-tab");(0,s.attr)(v,{role:"tabpanel"});let b=(0,a.Button)(e,l||m,m);b.state.role="tab",e.e.on(b.container,"pointerdown",e=>e.preventDefault()),f||(f=m),u.appendChild(b.container),h.push(b),b.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(g)?v.classList.add("jodit-tab_empty"):v.appendChild(n.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(v),b.onAction(()=>(p(m),(0,r.isFunction)(g)&&!o.Dom.isElement(g)&&g.call(e),i&&(i.activeTab=m),!1)),d[m]={button:b,tab:v}}),Object.values(d).forEach(({button:e})=>{e.container.style.width=(100/t.length).toFixed(10)+"%"}),p(i&&i.activeTab&&d[i.activeTab]?i.activeTab:f),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get(){return e},set(t){e=t,p(t)}})}return l}},73391:function(e,t,i){var n=i(82758),o=i(580),r=i(21537),s=i(12153),a=i(6441),l=i(49399);a.Config.prototype.controls.about={exec:e=>{let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
|
|
108
|
+
</form>`)}},41409:function(e,t,i){i.r(t),i.d(t,{Ajax:function(){return f.Ajax},Alert:function(){return s.Alert},Async:function(){return l.Async},AsyncStorage:function(){return j.AsyncStorage},Button:function(){return p.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return n.Component},Confirm:function(){return s.Confirm},ContextMenu:function(){return r.ContextMenu},Create:function(){return c.Create},Dialog:function(){return s.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return d.EventEmitter},EventHandlersStore:function(){return d.EventHandlersStore},Eventify:function(){return d.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return o},History:function(){return v.History},Icon:function(){return p.Icon},ImageEditor:function(){return y.ImageEditor},IndexedDBProvider:function(){return j.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return j.LocalStorageProvider},MemoryStorageProvider:function(){return j.MemoryStorageProvider},Plugin:function(){return h.Plugin},PluginSystem:function(){return T.PluginSystem},Popup:function(){return p.Popup},ProgressBar:function(){return p.ProgressBar},Prompt:function(){return s.Prompt},Response:function(){return f.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return b.Snapshot},StatusBar:function(){return S.StatusBar},Storage:function(){return j.Storage},StorageKey:function(){return j.StorageKey},Table:function(){return _.Table},ToolbarButton:function(){return C.ToolbarButton},ToolbarCollection:function(){return k.ToolbarCollection},ToolbarContent:function(){return C.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return C.ToolbarSelect},UIBlock:function(){return p.UIBlock},UIButton:function(){return p.UIButton},UIButtonGroup:function(){return p.UIButtonGroup},UIButtonState:function(){return p.UIButtonState},UICheckbox:function(){return p.UICheckbox},UIElement:function(){return p.UIElement},UIFileInput:function(){return p.UIFileInput},UIForm:function(){return p.UIForm},UIGroup:function(){return p.UIGroup},UIInput:function(){return p.UIInput},UIList:function(){return p.UIList},UIMessages:function(){return w.UIMessages},UISelect:function(){return p.UISelect},UISeparator:function(){return p.UISeparator},UISpacer:function(){return p.UISpacer},UITextArea:function(){return p.UITextArea},UITooltip:function(){return p.UITooltip},Uploader:function(){return I.Uploader},View:function(){return m.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return j.canUseIndexedDB},canUsePersistentStorage:function(){return j.canUsePersistentStorage},clearUseIndexedDBCache:function(){return j.clearUseIndexedDBCache},defaultNameSpace:function(){return d.defaultNameSpace},observable:function(){return d.observable}});var n=i(91907),o=i(21537),r=i(80870),s=i(638),a=i(78513),l=i(8884),c=i(12060),u=i(22732),d=i(3827),h=i(50911),f=i(41601),p=i(67510),m=i(35608),g=i(84075),v=i(78818),b=i(52604),y=i(50050),w=i(1808),S=i(23512),_=i(76014),C=i(36646),k=i(11676),E=i(37426),I=i(57380),T=i(41876),D=i(59242),j=i(12081)},68389:function(e,t,i){i.d(t,{UIMessage:function(){return r}});var n=i(87325),o=i(67510);let r=class e extends o.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}};r=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],r)},1808:function(e,t,i){i.d(t,{UIMessages:function(){return a}});var n=i(87325),o=i(41180),r=i(62405),s=i(68389);let a=class e extends r.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let n=e+":"+t;if(this.__messages.has(n))return void this.async.updateTimeout(n,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);this.__box.appendChild(this.container);let o=new s.UIMessage(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(n);let r=this.__getRemoveCallback(o,n);this.j.e.on(o.container,"pointerdown",r),this.async.setTimeout(r,{label:n,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=n=>{n&&n.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,o.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),this.__box=t,this.options=i,this.__messages=new Set}};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}([n.component],a)},23512:function(e,t,i){i.d(t,{StatusBar:function(){return l}});var n=i(91907),o=i(65478),r=i(2748),s=i(14316),a=i(34176);let l=class e extends n.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!=(t=null==(e=this.container)?void 0:e.offsetHeight)?t:0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){var i;let n=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&n.classList.add(this.getFullElName("item-right")),n.appendChild(e),null==(i=this.container)||i.appendChild(n),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),r.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),t.appendChild(this.container),this.hide()}};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}([o.component,(0,o.derive)(a.Mods,s.Elms)],l)},76014:function(e,t,i){i.d(t,{Table:function(){return u}});var n=i(91907),o=i(82758),r=i(65478),s=i(22732),a=i(580),l=i(21537);let c=new WeakMap;class u extends n.ViewComponent{className(){return"Table"}__recalculateStyles(){let e=(0,a.getContainer)(this.j,u,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,l.cssPath)(e);i&&t.push(i)}),e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=s.Dom.closest(e,"table",this.j.editor);if(t){let i=u.__selectedByTable.get(t)||new Set;i.add(e),u.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=s.Dom.closest(e,"table",this.j.editor);if(t){let i=u.__selectedByTable.get(t);i&&(i.delete(e),i.size||u.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,l.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=u.__selectedByTable.get(e);return t?(0,l.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return u.__getRowsCount(e)}static __getColumnsCount(e){return u.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return u.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],n=(0,l.toArray)(e.rows),o=(e,n)=>{void 0===i[n]&&(i[n]=[]);let o=e.colSpan,r=e.rowSpan,s,a,l=0;for(;i[n][l];)l+=1;for(a=0;r>a;a+=1)for(s=0;s<o;s+=1){if(void 0===i[n+a]&&(i[n+a]=[]),t&&!1===t(e,n+a,l+s,o,r))return!1;i[n+a][l+s]=e}};for(let e=0;e<n.length;e+=1){let t=(0,l.toArray)(n[e].cells);for(let n=0;n<t.length;n+=1)if(!1===o(t[n],e))return i}return i}formalMatrix(e,t){return u.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let n=0,o=0,r=1,s=1;return u.__formalMatrix(e,(e,a,l,c,u)=>{if(t===e)return n=a,o=l,r=c||1,s=u||1,i&&(o+=(c||1)-1,n+=(u||1)-1),!1}),[n,o,r,s]}formalCoordinate(e,t,i=!1){return u.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,n){var o;let r;if(t)r=t.cloneNode(!0),(0,l.$$)("td,th",t).forEach(e=>{let t=(0,l.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,l.attr)(e,"rowspan",i>1?i:null)}}),(0,l.$$)("td,th",r).forEach(e=>{e.innerHTML=""});else{let t=u.__getColumnsCount(e);r=n.element("tr");for(let e=0;e<t;e+=1)r.appendChild(n.element("td"))}i&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(r,t.nextSibling):!i&&t?t.parentNode&&t.parentNode.insertBefore(r,t):((null==(o=e.getElementsByTagName("tbody"))?void 0:o[0])||e).appendChild(r)}appendRow(e,t,i){return u.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,n=u.__formalMatrix(e),o=e.rows[t];n[t].forEach((r,a)=>{if(i=!1,t-1>=0&&n[t-1][a]===r)i=!0;else if(n[t+1]&&n[t+1][a]===r){if(r.parentNode===o&&r.parentNode.nextSibling){i=!0;let o=a+1;for(;n[t+1][o]===r;)o+=1;let l=s.Dom.next(r.parentNode,e=>s.Dom.isTag(e,"tr"),e);if(l){let e=null;for(let i=o;i<n[t+1].length;i+=1){let o=n[t+1][i];if(o&&o.parentNode===l){e=o;break}}e?l.insertBefore(r,e):l.appendChild(r)}}}else s.Dom.safeRemove(r);if(i&&(r.parentNode===o||r!==n[t][a-1])){let e=r.rowSpan;(0,l.attr)(r,"rowspan",e-1>1?e-1:null)}}),s.Dom.safeRemove(o)}removeRow(e,t){return u.__removeRow(e,t)}appendColumn(e,t,i=!0){let n=u.__formalMatrix(e);if(!i&&s.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let[,o]=u.__formalCoordinate(e,t,i),r=i?o+1:o;for(let e=0;e<n.length;){let t=n[e];if(t[o]!==t[r]||o===r){let e=this.j.createInside.element("td");i?s.Dom.after(t[o],e):s.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,n=u.__formalMatrix(e);n.forEach((e,o)=>{let r=e[t];if(i=!1,t-1>=0&&n[o][t-1]===r||t+1<e.length&&n[o][t+1]===r?i=!0:s.Dom.safeRemove(r),i&&(o-1<0||r!==n[o-1][t])){let e=r.colSpan;(0,l.attr)(r,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return u.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,n,o,r=[[1/0,1/0],[0,0]],s=u.__formalMatrix(e);for(i=0;i<s.length;i+=1)for(n=0;s[i]&&n<s[i].length;n+=1)t.includes(s[i][n])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(n,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(n,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,n=r[0][1];n<=r[1][1];n+=1){for(;s[i]&&s[i][n-o]&&s[i][n]===s[i][n-o];)r[0][1]=Math.min(n-o,r[0][1]),r[1][1]=Math.max(n-o,r[1][1]),o+=1;for(o=1;s[i]&&s[i][n+o]&&s[i][n]===s[i][n+o];)r[0][1]=Math.min(n+o,r[0][1]),r[1][1]=Math.max(n+o,r[1][1]),o+=1;for(o=1;s[i-o]&&s[i][n]===s[i-o][n];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;s[i+o]&&s[i][n]===s[i+o][n];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return u.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=u.__formalMatrix(e);u.__removeExtraColspans(i,t),u.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,l.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,l.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,l.attr)(i[e][t],"class")&&(0,l.attr)(i[e][t],"class",null));u.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let n=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}n=Math.min(n,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&u.__mark(e[o][i],"colspan",e[o][i].colSpan-n+1,t)}}static __removeExtraRowspans(e,t){let i=0,n=0;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(n=0;n<e[i].length;n+=1)if(void 0!==e[i][n]){if(e[i][n].rowSpan<2){r=!0;break}o=Math.min(o,e[i][n].rowSpan)}if(!r)for(n=0;n<e[i].length;n+=1)void 0!==e[i][n]&&u.__mark(e[i][n],"rowspan",e[i][n].rowSpan-o+1,t)}}normalizeTable(e){return u.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],n=u.__getSelectedBound(e,u.__getSelectedCellsByTable(e)),r=0,a=null,c=0,h=0,f=0,p=new Set,m=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(u.__formalMatrix(e,(e,o,s,g,v)=>{o>=n[0][0]&&o<=n[1][0]&&s>=n[0][1]&&s<=n[1][1]&&(p.has(e)||(p.add(e),o===n[0][0]&&e.style.width&&(r+=e.offsetWidth),""!==(0,l.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),g>1&&(h+=g-1),v>1&&(f+=v-1),a?(u.__mark(e,"remove",1,m),d(t).removeSelection(e)):(a=e,c=s)))}),h=n[1][1]-n[0][1]+1,f=n[1][0]-n[0][0]+1,a&&(h>1&&u.__mark(a,"colspan",h,m),f>1&&u.__mark(a,"rowspan",f,m),r&&(u.__mark(a,"width",(r/e.offsetWidth*100).toFixed(o.ACCURACY)+"%",m),c&&u.__setColumnWidthByDelta(e,c,0,!0,m)),a.innerHTML=i.join("<br/>"),d(t).addSelection(a),p.delete(a),u.__unmark(m),u.__normalizeTable(e),(0,l.toArray)(e.rows).forEach(e=>{e.cells.length||s.Dom.safeRemove(e)})))}mergeSelected(e){return u.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,n,o,r,a,l=[];u.__getSelectedCellsByTable(e).forEach(c=>{(n=t.createInside.element("td")).appendChild(t.createInside.element("br")),o=t.createInside.element("tr"),i=u.__formalCoordinate(e,c),c.rowSpan<2?(u.__formalMatrix(e,(e,t,n)=>{i[0]===t&&i[1]!==n&&e!==c&&u.__mark(e,"rowspan",e.rowSpan+1,l)}),s.Dom.after(s.Dom.closest(c,"tr",e),o),o.appendChild(n)):(u.__mark(c,"rowspan",c.rowSpan-1,l),u.__formalMatrix(e,(t,n,o)=>{n>i[0]&&n<i[0]+c.rowSpan&&i[1]>o&&t.parentNode.rowIndex===n&&(a=t),i[0]<n&&t===c&&(r=e.rows[n])}),a?s.Dom.after(a,n):r.insertBefore(n,r.firstChild)),c.colSpan>1&&u.__mark(n,"colspan",c.colSpan,l),u.__unmark(l),d(t).removeSelection(c)}),this.__normalizeTable(e)}splitHorizontal(e){return u.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,n,r,a=[];u.__getSelectedCellsByTable(e).forEach(l=>{i=u.__formalCoordinate(e,l),l.colSpan<2?u.__formalMatrix(e,(e,t,n)=>{i[1]===n&&i[0]!==t&&e!==l&&u.__mark(e,"colspan",e.colSpan+1,a)}):u.__mark(l,"colspan",l.colSpan-1,a),(n=t.createInside.element("td")).appendChild(t.createInside.element("br")),l.rowSpan>1&&u.__mark(n,"rowspan",l.rowSpan,a);let c=l.offsetWidth;s.Dom.after(l,n),r=c/e.offsetWidth/2,u.__mark(l,"width",(100*r).toFixed(o.ACCURACY)+"%",a),u.__mark(n,"width",(100*r).toFixed(o.ACCURACY)+"%",a),u.__unmark(a),d(t).removeSelection(l)}),u.__normalizeTable(e)}splitVertical(e){return u.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,n,r){let s=u.__formalMatrix(e),a=0;for(let n=0;n<s.length;n+=1){let l=s[n][t];if(l.colSpan>1&&s.length>1)continue;let c=(l.offsetWidth+i)/e.offsetWidth*100;u.__mark(l,"width",c.toFixed(o.ACCURACY)+"%",r),a=n;break}for(let e=a+1;e<s.length;e+=1){let i=s[e][t];u.__mark(i,"width",null,r)}n||u.__unmark(r)}setColumnWidthByDelta(e,t,i,n,o){return u.__setColumnWidthByDelta(e,t,i,n,o)}static __mark(e,t,i,n){var o;n.push(e);let r=null!=(o=c.get(e))?o:{};r[t]=void 0===i?1:i,c.set(e,r)}static __unmark(e){e.forEach(e=>{let t=c.get(e);t&&(Object.keys(t).forEach(i=>{let n=t[i];switch(i){case"remove":s.Dom.safeRemove(e);break;case"rowspan":(0,l.attr)(e,"rowspan",(0,l.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,l.attr)(e,"colspan",(0,l.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),(0,l.attr)(e,"style")||(0,l.attr)(e,"style",null)):e.style.width=n.toString()}delete t[i]}),c.delete(e))})}constructor(){super(...arguments),this.selected=new Set}}u.__selectedByTable=new WeakMap,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,r.debounce)()],u.prototype,"__recalculateStyles",null);let d=e=>e.getInstance("Table",e.o)},78644:function(e,t,i){i.d(t,{ToolbarButton:function(){return T}});var n=i(78213),o=i(45219),r=i(33433),s=i(87325),a=i(37133),l=i(2748),c=i(68345),u=i(23282),d=i(19306),h=i(72430),f=i(70799),p=i(56175),m=i(87058),g=i(38837),v=i(29960),b=i(37790),y=i(62843),w=i(72157),S=i(12153),_=i(56917),C=i(21491);function k(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function E(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}var I=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 T=class e extends y.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,v.attr)(this.trigger,"aria-label",e)}}get toolbar(){let e=(0,s.getComponentClass)("ToolbarCollection");return this.closest(e)}update(){var e,t;let{control:i,state:n}=this,o=this.toolbar;if(!o)return;let r=null==(e=i.value)?void 0:e.call(i,o.jodit,this);void 0!==r&&(n.value=r),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null==(t=i.update)||t.call(i,o.jodit,this)}__calculateActivatedStatus(e){var t,i;return(!(0,d.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(i=(t=this.control).isActive)&&!!i.call(t,this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,i;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(i=(t=this.control).isDisabled)?void 0:i.call(t,this.j,this)))||!!(e&&e.shouldBeDisabled(this))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,u.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this}),t.appendChild(i);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${S.Icon.get("chevron")}</span>`);return i.appendChild(n),t}focus(){var e;null==(e=this.container.querySelector("button"))||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):l.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",e),(0,v.attr)(this.button,"disabled",e),(0,v.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=(0,u.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=!!(e.list||e.popup&&e.exec)}__initIconFromControl(){var e;let{control:t,state:i}=this,{textIcons:n}=this.j.o;if(!0===n||(0,u.isFunction)(n)&&n(t.name)||t.template){i.icon=(0,y.UIButtonState)().icon,i.text=t.text||t.name;return}if(!(0,f.isString)(t.icon)&&null!=t.icon){i.icon={name:t.icon.name||t.name,iconURL:t.icon.iconURL||"",fill:t.icon.fill||"",scale:t.icon.scale};return}if(t.iconURL)i.icon.iconURL=t.iconURL;else{let n=t.icon||t.name;i.icon.name=S.Icon.exists(n)||(null==(e=this.j.o.extraIcons)?void 0:e[n])?n:""}t.iconURL||i.icon.name||(i.text=t.text||t.name)}onTriggerClick(e){var t,i,n;if(this.openedPopup)return void this.__closePopup();let{control:o}=this;if((0,v.attr)(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},o.list)return this.__openControlList(o);if((0,u.isFunction)(o.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,m.camelCase)(`before-${o.name}-open-popup`),this.target,o,e)){let r=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,s=o.popup(this.j,r,this.__closePopup,this);s?e.setContent((0,f.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,p.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,m.camelCase)(`after-${o.name}-open-popup`),e.container)}}__openControlList(e){var t;let i=null!=(t=this.jodit.options.controls)?t:{},n=e=>(0,w.findControlType)(e,i),o=e.list,r=this.openPopup(),s=(0,C.makeCollection)(this.j);r.parentElement=this,s.parentElement=r,s.mode="vertical";let a=(t,i)=>{let o;if((0,f.isString)(i)&&n(i))return k({name:i.toString()},n(i));if((0,f.isString)(t)&&n(t))return k({name:t.toString()},n(t),"object"==typeof i?i:{});o=t,(0,h.isPlainObject)(o)&&"title"in o&&"value"in o&&(i=t.value,t=t.title);let{childTemplate:r}=e,s={name:t.toString(),template:r&&((e,t,i)=>r(e,t,i,this)),exec:e.childExec?(t,i,n)=>{var o;return null==(o=e.childExec)?void 0:o.call(e,t,i,E(k({},n),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,f.isString)(i)&&(s.text=i),s};s.build((0,c.isArray)(o)?o.map(a):(0,b.keys)(o,!1).map(e=>a(e,o[e])),this.target),r.setContent(s).open(()=>(0,p.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&l.Dom.isNode(e.target)&&(l.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new _.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&(0,v.attr)(this.trigger,"aria-expanded",!1))}onClick(e){var t,i,n,o,r,s,a;let{control:l}=this;if((0,u.isFunction)(l.exec)){let c=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null==(r=null==(o=this.j)?void 0:o.e)||r.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(a=null==(s=this.j)?void 0:s.e)||a.fire("closeAllPopups afterExec")),!1!==u)return}return l.list?this.__openControlList(l):(0,u.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,b.call)((0,d.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state=E(k({},(0,y.UIButtonState)()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),this.openedPopup=null;const o=this.getElm("button");(0,g.assert)(o,"Element button should exists"),this.button=o,Object.defineProperty(o,"component",{value:this,configurable:!0});const r=this.getElm("trigger");(0,g.assert)(r,"Element trigger should exists"),this.trigger=r,r.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(n.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}};I([r.cacheHTML],T.prototype,"createContainer",null),I([(0,a.watch)("state.hasTrigger",{immediately:!1})],T.prototype,"onChangeHasTrigger",null),I([(0,a.watch)("trigger:click")],T.prototype,"onTriggerClick",null),I([o.autobind],T.prototype,"onOutsideClick",null),I([o.autobind],T.prototype,"__closePopup",null),T=I([s.component],T)},80319:function(e,t,i){i.d(t,{ToolbarContent:function(){return a}});var n=i(65478),o=i(22732),r=i(21537),s=i(62843);let a=class e extends s.UIButton{className(){return"ToolbarContent"}update(){var e,t,i;let{control:n}=this,s=n.getContent(this.j,this);((0,r.isString)(s)||s.parentNode!==this.container)&&(o.Dom.detach(this.container),this.container.appendChild((0,r.isString)(s)?this.j.create.fromHTML(s):s)),this.state.disabled=!!(null==(e=n.isDisabled)?void 0:e.call(n,this.j,this)),this.state.activated=!!(null==(t=n.isActive)?void 0:t.call(n,this.j,this)),null==(i=n.update)||i.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(e=>(0,r.attr)(e,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`),(0,r.attr)(this.container,"role","content")}};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}([n.component],a)},36646:function(e,t,i){i.d(t,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return o.ToolbarContent},ToolbarSelect:function(){return r.ToolbarSelect}});var n=i(78644),o=i(80319),r=i(83111)},83111:function(e,t,i){i.d(t,{ToolbarSelect:function(){return a}});var n=i(65478),o=i(72430),r=i(70799),s=i(78644);let a=class e extends s.ToolbarButton{className(){return"ToolbarSelect"}update(){var e,t,i;super.update(),this.state.icon.name="";let{list:n,data:s}=this.control;if(n){let a=this.state.value||(s&&(0,r.isString)(s.currentValue)?s.currentValue:void 0);a||(a=Object.keys(n)[0]);let l=((0,o.isPlainObject)(n)&&n[a.toString()]||a).toString();this.state.text=null!=(i=null==(t=(e=this.control).textTemplate)?void 0:t.call(e,this.jodit,l))?i:l}}};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}([n.component],a)},11676:function(e,t,i){i.d(t,{ToolbarCollection:function(){return h}});var n=i(65478),o=i(45219),r=i(87325),s=i(97357),a=i(37133),l=i(82760),c=i(24536),u=i(21491),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 h=class e extends c.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,u.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,u.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,l.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};d([(0,a.watch)(":afterInit"),o.autobind],h.prototype,"__immediateUpdate",null),d([(0,n.debounce)(e=>e.j.defaultTimeout,!0)],h.prototype,"update",null),d([(0,s.hook)("ready")],h.prototype,"__initEvents",null),h=d([r.component],h)},37426:function(e,t,i){i.d(t,{ToolbarEditorCollection:function(){return l}});var n=i(82758),o=i(65478),r=i(22732),s=i(21537),a=i(11676);let l=class e extends a.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?n.MODE_WYSIWYG:e.control.mode;return i!==n.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(e.control.tags){let i=e.control.tags;if(t=n,r.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=n,r.Dom.up(t,e=>{if(e&&!r.Dom.isText(e)&&!r.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});r.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,n=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,s.isFunction)(r)?r(this.j,(0,s.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,s.css)(t,o).toString())&&(i+=1),n+=1}),n===i},this.prependInvisibleInput(this.container)}};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}([o.component],l)},21491:function(e,t,i){i.d(t,{makeButton:function(){return a},makeCollection:function(){return s},makeSelect:function(){return l}});var n=i(87325),o=i(23282),r=i(19306);function s(e,t){let i=(0,n.getComponentClass)("ToolbarCollection"),o=(0,n.getComponentClass)("ToolbarEditorCollection"),s=(0,r.isJoditObject)(e)?new o(e):new i(e);return e.o.textIcons&&s.container.classList.add("jodit_text_icons"),t&&(s.parentElement=t),e.o.toolbarButtonSize&&(s.buttonSize=e.o.toolbarButtonSize),s}function a(e,t,i=null){if((0,o.isFunction)(t.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(e,t,i);let r=new((0,n.getComponentClass)("ToolbarButton"))(e,t,i);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function l(e,t,i=null){return new((0,n.getComponentClass)("ToolbarSelect"))(e,t,i)}},80536:function(e,t,i){var n=i(68345),o=i(19306),r=i(6441);r.Config.prototype.enableDragAndDropFileToEditor=!0,r.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName(e){return`files[${e}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(e){return e},isSuccess(e){return e.success},getMessage(e){return void 0!==e.data.messages&&(0,n.isArray)(e.data.messages)?e.data.messages.join(" "):""},processFileName(e,t,i){return[e,t,i]},process(e){return e.data},error(e){this.j.message.error(e.message,4e3)},getDisplayName(e,t){return e+t},defaultHandlerSuccess(e){let t=this.j||this;(0,o.isJoditObject)(t)&&e.files&&e.files.length&&e.files.forEach((i,n)=>{let[o,r]=e.isImages&&e.isImages[n]?["img","src"]:["a","href"],s=t.createInside.element(o);s.setAttribute(r,e.baseurl+i),"a"===o&&(s.textContent=t.o.uploader.getDisplayName.call(this,e.baseurl,i)),"img"===o?t.s.insertImage(s,null,t.o.imageDefaultWidth):t.s.insertNode(s)})},defaultHandlerError(e){this.j.message.error(e.message)},contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(e,t,i){i.d(t,{buildData:function(){return o}});var n=i(21537);function o(e,t){if((0,n.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,n.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},74569:function(e,t,i){i.d(t,{dataURItoBlob:function(){return n}});function n(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(new ArrayBuffer(t.length));for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return new Blob([n.buffer],{type:i})}},94122:function(e,t,i){i.d(t,{ajaxInstances:function(){return o.ajaxInstances},hasFiles:function(){return s},hasItems:function(){return a},processOldBrowserDrag:function(){return n.processOldBrowserDrag},send:function(){return o.send},sendFiles:function(){return r.sendFiles}}),i(83987);var n=i(50373),o=i(71686),r=i(80020);function s(e){return!!(e&&e.files&&e.files.length>0)}function a(e){return!!(e&&e.items&&e.items.length>0)}},50373:function(e,t,i){i.d(t,{processOldBrowserDrag:function(){return c}});var n=i(82758),o=i(22732),r=i(580),s=i(21537),a=i(74569),l=i(80020);function c(e,t,i,c,u){if(t&&(!t.types.length||t.types[0]!==n.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,r.getContainer)(e.j,e.constructor).appendChild(t);let n=(0,s.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,s.attr)(r,"src")||"";n&&(0,s.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,c).finally(u)}},e.j.defaultTimeout)}}},80020:function(e,t,i){i.d(t,{sendFiles:function(){return r}});var n=i(21537),o=i(71686);function r(e,t,i,r,s){if(!t)return Promise.reject((0,n.error)("Need files"));let{o:a}=e,l=(0,n.toArray)(t);if(!l.length)return Promise.reject((0,n.error)("Need files"));if((0,n.isFunction)(a.beforeUpload)&&!1===a.beforeUpload.call(e,l)){let t=(0,n.error)("Upload canceled");return(r||a.defaultHandlerError).call(e,t),Promise.reject(t)}let c=[];if(a.insertImageAsBase64URI&&function(e,t,i,o,r,s){let a,l;for(l=0;l<e.length;l+=1)if((a=e[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),u=c[1]?c[1].toLowerCase():"";if(!t.includes(u))continue;let d=new FileReader;i.push(o.j.async.promise((e,t)=>{d.onerror=t,d.onloadend=()=>{let t={baseurl:"",files:[d.result],isImages:[!0]};((0,n.isFunction)(r)?r:s).call(o,t),e(t)},d.readAsDataURL(a)})),e[l]=null}}(l,a.imagesExtensions,c,e,i,a.defaultHandlerSuccess),(l=l.filter(e=>e)).length){let t,u=new FormData;u.append(a.pathVariableName,e.path),u.append("source",e.source);for(let i=0;i<l.length;i+=1)if(t=l[i]){let n=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",s=l[i].name||Math.random().toString().replace(".","");if(!n&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+r)}let[c,d,h]=a.processFileName.call(e,a.filesVariableName(i),l[i],s);u.append(c,d,h)}s&&s(u),a.data&&(0,n.isPlainObject)(a.data)&&Object.keys(a.data).forEach(e=>{u.append(e,a.data[e])}),a.prepareData.call(e,u),c.push((0,o.send)(e,u).then(t=>(a.isSuccess.call(e,t)?((0,n.isFunction)(i)?i:a.defaultHandlerSuccess).call(e,a.process.call(e,t)):((0,n.isFunction)(r)?r:a.defaultHandlerError).call(e,(0,n.error)(a.getMessage.call(e,t))),t)).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},71686:function(e,t,i){i.d(t,{ajaxInstances:function(){return s},send:function(){return a}});var n=i(21537),o=i(41601),r=i(83987);let s=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr:()=>{let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,n.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=s.get(e);return a||(a=new Set,s.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==a||a.delete(r)})};return((0,n.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,n.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}},57380:function(e,t,i){i.d(t,{Uploader:function(){return l}});var n=i(91907),o=i(82758),r=i(21537),s=i(6441),a=i(94122);i(80536);class l extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let n=()=>{e.classList.remove("jodit_drag_hover")},r=this,s=e=>{let s,l,c,u=e.clipboardData,d=e=>{l&&(e.append("extension",c),e.append("mimetype",l.type))};if(!o.IS_IE&&(0,a.hasFiles)(u))return(0,a.sendFiles)(r,u.files,t,i).finally(n),!1;if(o.IS_IE&&!o.IS_ES_NEXT)return(0,a.processOldBrowserDrag)(r,u,t,i,n);if((0,a.hasItems)(u)){let{items:o}=u;for(s=0;s<o.length;s+=1)if("file"===o[s].kind&&"image/png"===o[s].type){if(l=o[s].getAsFile()){let e=l.type.match(/\/([a-z0-9]+)/i);c=e[1]?e[1].toLowerCase():"",(0,a.sendFiles)(r,[l],t,i,d).finally(n)}e.preventDefault();break}}};r.j&&r.j.editor!==e?r.j.e.on(e,"paste",s):r.j.e.on("beforePaste",s),this.attachEvents(e,t,i,n)}attachEvents(e,t,i,n){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,a.hasFiles)(t.dataTransfer)||(0,a.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,a.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,a.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,a.sendFiles)(o,r.dataTransfer.files,t,i).finally(n))});let r=e.querySelector("input[type=file]");r&&o.j.e.on(r,"change",()=>{(0,a.sendFiles)(o,r.files,t,i).then(()=>{r.value="",/safari/i.test(navigator.userAgent)||(r.type="",r.type="file")}).finally(n)})}uploadRemoteImage(e,t,i){let n=this,{o}=n,s=(0,r.isFunction)(i)?i:o.defaultHandlerError;(0,a.send)(n,{action:"fileUploadRemote",url:e}).then(e=>{o.isSuccess.call(n,e)?((0,r.isFunction)(t)?t:o.defaultHandlerSuccess).call(n,o.process.call(n,e)):s.call(n,(0,r.error)(o.getMessage.call(n,e)))}).catch(e=>s.call(n,e))}upload(e){return this.async.promise((t,i)=>{(0,a.sendFiles)(this,e,t,i)})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let e=a.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,r.ConfigProto)(t||{},(0,r.ConfigProto)(s.Config.defaultOptions.uploader,(0,r.isJoditObject)(e)?e.o.uploader:{}))}}},22859:function(e,t,i){i.d(t,{ColorPickerWidget:function(){return a}});var n=i(22732),o=i(21537),r=i(67510),s=i(37068);r.Icon.set("palette",s.default);let a=(e,t,i)=>{let s="jodit-color-picker",a=(0,o.normalizeColor)(i),l=e.c.div(s),c=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:r.Icon.get("palette"),u=e=>{let t=[];return(0,o.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${s}__group ${s}__group-${i}">`),t.push(u(e[i])),t.push("</div>")}):(0,o.isArray)(e)&&e.forEach(e=>{t.push(`<span class='${s}__color-item ${a===e?s+"__color-item_active_true":""}' title="${e}" style="background-color:${e}" data-color="${e}"></span>`)}),t.join("")};l.appendChild(e.c.fromHTML(`<div class="${s}__groups">${u(e.o.colors)}</div>`)),l.appendChild(e.c.fromHTML(`<div data-ref="extra" class="${s}__extra"></div>`));let{extra:d}=(0,o.refs)(l);return e.o.showBrowserColorPicker&&(0,o.hasBrowserColorPicker)()&&(d.appendChild(e.c.fromHTML(`<div class="${s}__native">${c}<input type="color" value="#ffffff"/></div>`)),e.e.on(l,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!n.Dom.isTag(i,"input"))return;let r=i.value||"";(0,o.isFunction)(t)&&t(r),e.preventDefault()})),e.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let r=i.target;if((!r||!r.tagName||n.Dom.isTag(r,"svg")||n.Dom.isTag(r,"path"))&&r.parentNode&&(r=n.Dom.closest(r.parentNode,"span",e.editor)),!n.Dom.isTag(r,"span")||!r.classList.contains(s+"__color-item"))return;let a=(0,o.attr)(r,"-color")||"";t&&(0,o.isFunction)(t)&&t(a)}),e.e.fire("afterGenerateColorPicker",l,d,t,a),l}},37068:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> '},34793:function(e,t,i){i.d(t,{FileSelectorWidget:function(){return a}});var n=i(2748),o=i(21537),r=i(67510),s=i(38927);let a=(e,t,i,a,c=!0)=>{let u,d=[],h=e.o.uploader;if(t.upload&&(h.url||h.insertImageAsBase64URI||h.customUploadFunction)){let i=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(c?"Drop image":"Drop file")}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);e.uploader.bind(i,i=>{let n=(0,o.isFunction)(t.upload)?t.upload:h.defaultHandlerSuccess;(0,o.isFunction)(n)&&n.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),d.push({icon:"upload",name:"Upload",content:i})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&d.push({icon:"folder",name:"Browse",content:()=>{a&&a(),t.filebrowser&&e.filebrowser.open(t.filebrowser,c)}}),t.url){let s=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[s])]);u=null,i&&!n.Dom.isText(i)&&!n.Dom.isComment(i)&&(n.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(u="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"input[name=url]",(0,o.attr)(u,"src")),l(a.container,"input[name=text]",(0,o.attr)(u,"alt")),s.state.text="Update"),i&&n.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,o.attr)(i,"href")),l(a.container,"input[name=text]",(0,o.attr)(i,"title")),s.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),d.push({icon:"link",name:"URL",content:a.container})}return(0,s.TabsWidget)(e,d)};function l(e,t,i){let n=e.querySelector(t);return n?(i&&(n.value=i),n.value):""}},92762:function(e,t,i){i.d(t,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return o.FileSelectorWidget},TabsWidget:function(){return r.TabsWidget}});var n=i(22859),o=i(34793),r=i(38927)},38927:function(e,t,i){i.d(t,{TabsWidget:function(){return l}});var n=i(91907),o=i(2748),r=i(23282),s=i(29960),a=i(67510);let l=(e,t,i)=>{let l=e.c.div("jodit-tabs"),c=e.c.div("jodit-tabs__wrapper"),u=e.c.div("jodit-tabs__buttons");(0,s.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let d={},h=[],f="";l.appendChild(u),l.appendChild(c);let p=e=>{d[e]&&(h.forEach(e=>{e.state.activated=!1}),Object.values(d).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),d[e].button.state.activated=!0,d[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:l,name:m,content:g})=>{let v=e.c.div("jodit-tab");(0,s.attr)(v,{role:"tabpanel"});let b=(0,a.Button)(e,l||m,m);b.state.role="tab",e.e.on(b.container,"pointerdown",e=>e.preventDefault()),f||(f=m),u.appendChild(b.container),h.push(b),b.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(g)?v.classList.add("jodit-tab_empty"):v.appendChild(n.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(v),b.onAction(()=>(p(m),(0,r.isFunction)(g)&&!o.Dom.isElement(g)&&g.call(e),i&&(i.activeTab=m),!1)),d[m]={button:b,tab:v}}),Object.values(d).forEach(({button:e})=>{e.container.style.width=(100/t.length).toFixed(10)+"%"}),p(i&&i.activeTab&&d[i.activeTab]?i.activeTab:f),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get(){return e},set(t){e=t,p(t)}})}return l}},73391:function(e,t,i){var n=i(82758),o=i(580),r=i(21537),s=i(12153),a=i(6441),l=i(49399);a.Config.prototype.controls.about={exec:e=>{let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
|
|
109
109
|
<div>${i("Jodit Editor")} v.${e.getVersion()}</div>
|
|
110
110
|
<div>${i("License: %s",!(0,r.isLicense)(e.o.license)?e.o.license||"MIT":(0,r.normalizeLicense)(e.o.license))}</div>
|
|
111
111
|
<div>
|
|
@@ -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,this.__results.appendChild(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));const 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")});const 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),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(o.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,o.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),c([(0,o.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),c([(0,o.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=c([n.component],u)},25187:function(e,t,i){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){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),u=i(14630);class d 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,d=i.createInside.text(n.INVISIBLE_SPACE);try{if(o.Dom.safeInsertNode(a,d),!o.Dom.isOrContains(i.editor,d))return;if(i.e.fire("backSpaceBeforeCases",e,d)||((0,l.moveNodeInsideStart)(i,d,e),u.cases.some(o=>{if((0,s.isFunction)(o)&&o(i,d,e,t))return n.IS_PROD,!0})))return!1}catch(e){throw n.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,d),this.safeRemoveEmptyNode(d)}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)}}d.requires=["hotkeys"],r.pluginSystem.add("backspace",d)},62845:function(e,t,i){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,u,d,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),u=o.Dom.isTag(l,n.LIST_TAGS),d=(e,t)=>t?e.firstElementChild:e.lastElementChild,(u?(c=e.createInside.element(e.o.enterBlock),o.Dom.before(l,c),a(e,d(l,i),c,i)):!!c&&!!r&&!u&&a(e,l,d(c,!i),i))||a(e,s,function(e,t){if(!o.Dom.isTag(e,"table"))return e;let i=e.querySelectorAll("td,th");return 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){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,u=s.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,d,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,u,t),(0,o.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){i.d(t,{checkNotCollapsed:function(){return n}});function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}},73792:function(e,t,i){i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var c,u,d,h;let f,p=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)&&(f=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 u=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(""),u}(g,s,p,m),!g.nodeValue.length&&o.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=n.INVISIBLE_SPACE)),(null==(u=g.nodeValue)?void 0:u.length)||(v=g),!(0,r.isVoid)(f)&&f!==n.INVISIBLE_SPACE){d=g,h=f,(0,r.call)(s?o.Dom.after:o.Dom.before,d,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),v=null),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){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){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){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 u=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))||(!u||o.Dom.isText(u)||o.Dom.isTag(u,n.INSEPARABLE_TAGS)?a(t):l(u,!i),s)}},56825:function(e,t,i){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){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){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){i.d(t,{cases:function(){return h}});var n=i(62845),o=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),u=i(90240),d=i(68034);let h=[c.checkRemoveUnbreakableElement,s.checkRemoveContentNotEditable,r.checkRemoveChar,u.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,o.checkJoinTwoLists,n.checkJoinNeighbors,d.checkUnwrapFirstListItem]},32496:function(e,t,i){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){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){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),u=i(89758),d=i(98527),h=i(51855);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},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",u.default).set("superscript",d.default).set("underline",h.default)},73674:function(e,t,i){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){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){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){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){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){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){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){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 u 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",u),a.Icon.set("class-span",c.default)},31151:function(e,t){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){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),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 d 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}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})}}u([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],d.prototype,"onChangeCleanHTML",null),u([(0,n.hook)("ready")],d.prototype,"startWalker",null),u([(0,n.watch)(":beforeCommand")],d.prototype,"beforeCommand",null),u([(0,n.watch)(":beforeSetNativeEditorValue")],d.prototype,"onBeforeSetNativeEditorValue",null),u([(0,n.watch)(":safeHTML")],d.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",d)},46776:function(e,t,i){var n=i(12153),o=i(6441),r=i(44330);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,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){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){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){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)},84272:function(e,t,i){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){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(),u=s.fake(),d=s.fake();l.collapse(!0),c.collapse(!1),n.Dom.safeInsertNode(l,u),n.Dom.safeInsertNode(c,d),a.setStartBefore(u),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];n.Dom.between(u,d,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 f=(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),f(n,t),!0}};f(u,!0)&&f(d,!1),a.setStartAfter(u),a.setEndBefore(d),t.selectRange(a),n.Dom.safeRemove(u),n.Dom.safeRemove(d)}},82558:function(e,t,i){i.d(t,{allowAttributes:function(){return o}});var n=i(2748);function o(e,t,i,o){let r=o&&n.Dom.isElement(t)&&o[t.nodeName];if(o&&n.Dom.isElement(t)&&!0!==r){if(!r)return i;let e=t.attributes;if(e&&e.length){let n=[];for(let t=0;t<e.length;t+=1){let i=r[e[t].name];i&&(!0===i||i===e[t].value)||n.push(e[t].name)}n.length&&(i=!0),n.forEach(e=>{t.removeAttribute(e)})}}return i}},1962:function(e,t,i){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){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 t.appendChild(i),!0}return i}},45235:function(e,t,i){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 u.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var n=i(82558),o=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),u=i(85978),d=i(384),h=i(15583),f=i(28800)},53392:function(e,t,i){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.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){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.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},80973:function(e,t,i){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?(t=o,!0):i}},95614:function(e,t,i){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){i.d(t,{sandboxIframesInContent:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){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){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){i.d(t,{tryRemoveNode:function(){return s}});var n=i(82758),o=i(2748),r=i(49055);function s(e,t,i,s,a,l){return!function(e,t,i,s,a){if(!o.Dom.isText(t)&&(s&&!s[t.nodeName]||!s&&a&&a[t.nodeName]))return!0;if(!e.o.cleanHTML.removeEmptyElements)return!1;let l=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==l||!o.Dom.isOrContains(t,l))}(e,t,l,s,a)?i:(o.Dom.safeRemove(t),!0)}},39516:function(e,t,i){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 u of r)if(!(c&&c.has(u))&&(l=(0,o[u])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){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){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){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){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){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){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){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){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){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=[],u=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"]))&&(u=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=>{u?u.style.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=>{u?u.style.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,u)},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":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){var n=i(2748),o=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let u="copy-format",d=["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(u))e.buffer.delete(u),e.e.off(e.editor,"mouseup."+u);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),d.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&d.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."+u,()=>{e.buffer.delete(u);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."+u)}),e.buffer.set(u,!0)}i.update()}},isActive:e=>e.buffer.exists(u),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){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,t){t.default={"copy-format":"نسخ التنسيق"}},72392:function(e,t){t.default={"copy-format":"Kop\xedrovat form\xe1t"}},74551:function(e,t){t.default={"copy-format":"Format kopierenт"}},2536:function(e,t){t.default={"copy-format":"Copiar formato"}},52285:function(e,t){t.default={"copy-format":"کپی کردن قالب"}},12117:function(e,t){t.default={"copy-format":"Kopioi muotoilu"}},35140:function(e,t){t.default={"copy-format":"Format de copie"}},28435:function(e,t){t.default={"copy-format":"העתק עיצוב"}},98019:function(e,t){t.default={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},96457:function(e,t){t.default={"copy-format":"salin format"}},23914:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n.default},cs_cz:function(){return o.default},de:function(){return r.default},es:function(){return s.default},fa:function(){return a.default},fi:function(){return l.default},fr:function(){return c.default},he:function(){return u.default},hu:function(){return d.default},id:function(){return h.default},it:function(){return f.default},ja:function(){return p.default},ko:function(){return m.default},mn:function(){return g.default},nl:function(){return v.default},pl:function(){return b.default},pt_br:function(){return y.default},ru:function(){return w.default},tr:function(){return S.default},zh_cn:function(){return _.default},zh_tw:function(){return C.default}});var n=i(63819),o=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),u=i(28435),d=i(98019),h=i(96457),f=i(33561),p=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),w=i(60629),S=i(68278),_=i(1172),C=i(4164)},33561:function(e,t){t.default={"copy-format":"Copia il formato"}},96545:function(e,t){t.default={"copy-format":"copyformat"}},52230:function(e,t){t.default={"copy-format":"복사 형식"}},33307:function(e,t){t.default={"copy-format":"Формат хуулах"}},71042:function(e,t){t.default={"copy-format":"opmaak kopi\xebren"}},32172:function(e,t){t.default={"copy-format":"format kopii"}},39179:function(e,t){t.default={"copy-format":"Copiar formato"}},60629:function(e,t){t.default={"copy-format":"Копировать формат"}},68278:function(e,t){t.default={"copy-format":"Kopyalama Bi\xe7imi"}},1172:function(e,t){t.default={"copy-format":"复制格式"}},4164:function(e,t){t.default={"copy-format":"複製格式"}},66707:function(e,t,i){var n=i(22732),o=i(580),r=i(21537),s=i(49055),a=i(50911);class l 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||"")&&!e.editor.querySelector("img,table,jodit,iframe,hr")&&(!t||!n.Dom.closest(t,"table",e.editor))){e.editor.innerHTML="";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))}}}l.requires=["backspace"],o.pluginSystem.add("deleteCommand",l)},44586:function(e,t,i){i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){var n,o,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);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};(n=o||(o={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class d 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}),(0,a.getContainer)(this.j,d).appendChild(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}}u([r.autobind],d.prototype,"onStartDragElement",null),u([r.autobind],d.prototype,"onDragStart",null),u([(0,r.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([r.autobind],d.prototype,"onDragEnd",null),u([r.autobind],d.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",d)},19271:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),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 d 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=i.querySelector("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}}}u([o.autobind],d.prototype,"onDragStart",null),u([(0,o.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([o.autobind],d.prototype,"onDragEnd",null),u([o.autobind],d.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",d)},46124:function(e,t,i){i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(94870)},94870:function(e,t,i){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){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){i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(78720)},9045:function(e,t,i){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){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){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class u 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")],u.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",u)},41872:function(e,t,i){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){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){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){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){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 u.splitFragment},wrapText:function(){return d.wrapText}});var n=i(41872),o=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),u=i(54600),d=i(5287)},44245:function(e,t,i){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),u=l.element("br");return a||c.appendChild(u),s&&s.cssText&&(0,o.attr)(c,"style",s.cssText),n.Dom.after(e,c),n.Dom.before(a?c:u,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){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){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,u=t.s.createRange();u.setStartAfter(i),u.setEndAfter(s);let d=u.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);d.querySelector("li")&&(l?h.appendChild(d):n.Dom.after(h,d))}},54600:function(e,t,i){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),u=i.tagName.toLowerCase()===l||c,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!u&&(d||h)){d?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&n.Dom.prepend(i,e);return}let f=s.splitSelection(i,e);(0,o.scrollIntoViewIfNeeded)(f,t.editor,t.ed)}},5287:function(e,t,i){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");o.appendChild(i),n.Dom.before(i,e)}return o}},11317:function(e,t,i){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){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){var n,o,r=i(22732),s=i(49055),a=i(41180),l=i(12153),c=i(6441),u=i(4104),d=i(83709);c.Config.prototype.defaultFontSizePoints="px",l.Icon.set("font",u.default).set("fontsize",d.default),c.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 n=e.s.current();if(!n)return;let o=r.Dom.closest(n,r.Dom.isElement,e.editor);if(!o)return;let s=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,a.css)(o,s);if("font-size"===s){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()))}},c.Config.prototype.controls.font=(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},c.Config.prototype.controls.fontsize),o=o={command:"fontname",textTemplate:(e,t)=>{let[i]=t.split(",");return(0,s.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,",")},tooltip:"Font family"},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n)},23399:function(e,t,i){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){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){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){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){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){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){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){var n=i(580),o=i(19306),r=i(41180);i(99823);let s=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,a=!1,l=()=>{let{container:o,events:s}=e;s&&(t?(a||(i=(0,r.css)(o,"height",!0),n=(0,r.css)(o,"width",!0),a=!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):a&&((0,r.css)(o,{height:i||"auto",width:n||"auto"}),a=!1))},c=i=>{var n;let{container:a,events:c}=e;if(a){if(void 0===i&&(i=!a.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,a.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,o.isJoditObject)(e)&&(null==(n=e.toolbarContainer)||n.appendChild(e.toolbar.container)),(0,r.css)(e.toolbar.container,"width","auto")),i?s.add(a):s.delete(a),e.o.globalFullSize&&(1===s.size&&i||0===s.size&&!i)){let e=a.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}c.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{t&&c(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},6950:function(e,t){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){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){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){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){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){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){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){var n=i(82758),o=i(580),r=i(21537);i(50963),o.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,r.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,r.attr)(t,"rel","stylesheet"),(0,r.attr)(t,"href",e),n.head&&n.head.appendChild(t)}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&n.head.appendChild(e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,r.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,r.attr)(i,"sandbox",t.iframeSandbox),e.workplace.appendChild(i),e.iframe=i;let o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,r.callPromise)(o,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,s=()=>{(0,r.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,r.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),s(),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",s),"auto"===t.height){i.documentElement&&(i.documentElement.style.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,r.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){i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911);function l(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}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 u="__jodit_imageprocessor_binded",d=u+"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(d);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(d)}}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(d);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}afterChange(e){var t;return(t=function*(){let{jodit:e}=this;e.editor&&(0,s.$$)("img",e.editor).forEach(t=>{(0,s.dataBind)(t,u)||((0,s.dataBind)(t,u,!0),t.complete||e.e.on(t,"load",function i(){var n;e.isInDestruct||null==(n=e.e)||n.fire("resize"),e.e.off(t,"load",i)}),t.src&&/^data:/.test(t.src)&&function(e,t){if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let i=t.src,n=function(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([n],{type:i})}(i);t.src=URL.createObjectURL(n),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(d)||{};r[t.src]=i,e.buffer.set(d,r)}(e,t),e.e.on(t,"mousedown touchstart",()=>{e.s.select(t)}))})},function(){var e=this,i=arguments;return new Promise(function(n,o){var r=t.apply(e,i);function s(e){l(r,n,o,s,a,"next",e)}function a(e){l(r,n,o,s,a,"throw",e)}s(void 0)})}).call(this)}}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){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){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),u=i(53636),d=i(10263),h=i(94575),f=i(34755);function p(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}var m=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 g extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,d.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,f.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()})}onStateValuesImageSrcChange(){var e;return(e=function*(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{yield 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()}},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=e.apply(t,i);function s(e){p(r,n,o,s,a,"next",e)}function a(e){p(r,n,o,s,a,"throw",e)}s(void 0)})}).call(this)}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(){const{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"}}}m([n.cache],g.prototype,"form",null),m([n.cache],g.prototype,"dialog",null),m([n.cache],g.prototype,"__buttons",null),m([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",g)},51642:function(e,t,i){i.d(t,{readAlign:function(){return o}});var n=i(41180);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},94575:function(e,t,i){i.d(t,{readValuesFromImage:function(){return c}});var n=i(29960),o=i(51642),r=i(75595),s=i(47749),a=i(32566);function l(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function c(e,t){var i;return(i=function*(){let{sourceImage:i,values:l}=t;return(0,o.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,n.attr)(i,"id")||"",l.imageTitle=(0,n.attr)(i,"title")||"",l.imageAlt=(0,n.attr)(i,"alt")||"",l.style=(0,n.attr)(i,"style")||"",l.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,s.readMargins)(i,l,t),(0,r.readLink)(t,e,l),l.imageSrc=(0,n.attr)(i,"src")||"",(0,a.readSizes)(i,l,t)},function(){var e=this,t=arguments;return new Promise(function(n,o){var r=i.apply(e,t);function s(e){l(r,n,o,s,a,"next",e)}function a(e){l(r,n,o,s,a,"throw",e)}s(void 0)})})()}},75595:function(e,t,i){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){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){i.d(t,{readSizes:function(){return l}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);function a(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function l(e,t,i){var l;return(l=function*(){try{yield 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:u}=t,d=parseFloat(c.toString());if(!(0,n.isNumeric)(c)||!(0,n.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(u.toString())*i.ratio)},function(){var e=this,t=arguments;return new Promise(function(i,n){var o=l.apply(e,t);function r(e){a(o,i,n,r,s,"next",e)}function s(e){a(o,i,n,r,s,"throw",e)}r(void 0)})})()}},59436:function(e,t,i){i.d(t,{UIImagePropertiesForm:function(){return h}});var n=i(65478),o=i(87325),r=i(21537),s=i(62405),a=i(12153),l=i(92762),c=i(35105),u=i(29827),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 h=class e extends s.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,this.__results.appendChild(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));const 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")});const 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),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(o.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,o.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),c([(0,o.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),c([(0,o.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=c([n.component],u)},25187:function(e,t,i){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){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),u=i(14630);class d 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,d=i.createInside.text(n.INVISIBLE_SPACE);try{if(o.Dom.safeInsertNode(a,d),!o.Dom.isOrContains(i.editor,d))return;if(i.e.fire("backSpaceBeforeCases",e,d))return!1;(0,l.moveNodeInsideStart)(i,d,e);let r=i.o.delete.disableCases;if(u.casesMap.some(([o,a])=>{if(!(r&&r.has(o))&&(0,s.isFunction)(a)&&a(i,d,e,t))return n.IS_PROD,!0}))return!1}catch(e){throw n.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,d),this.safeRemoveEmptyNode(d)}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)}}d.requires=["hotkeys"],r.pluginSystem.add("backspace",d)},62845:function(e,t,i){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,u,d,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),u=o.Dom.isTag(l,n.LIST_TAGS),d=(e,t)=>t?e.firstElementChild:e.lastElementChild,(u?(c=e.createInside.element(e.o.enterBlock),o.Dom.before(l,c),a(e,d(l,i),c,i)):!!c&&!!r&&!u&&a(e,l,d(c,!i),i))||a(e,s,function(e,t){if(!o.Dom.isTag(e,"table"))return e;let i=e.querySelectorAll("td,th");return 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){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,u=s.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,d,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,u,t),(0,o.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){i.d(t,{checkNotCollapsed:function(){return n}});function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}},73792:function(e,t,i){i.d(t,{checkRemoveChar:function(){return function e(t,i,s,l){var c,u,d,h;let f,p=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)&&(f=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 u=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(""),u}(g,s,p,m),!g.nodeValue.length&&o.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=n.INVISIBLE_SPACE)),(null==(u=g.nodeValue)?void 0:u.length)||(v=g),!(0,r.isVoid)(f)&&f!==n.INVISIBLE_SPACE){d=g,h=f,(0,r.call)(s?o.Dom.after:o.Dom.before,d,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),v=null),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){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){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){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 u=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))||(!u||o.Dom.isText(u)||o.Dom.isTag(u,n.INSEPARABLE_TAGS)?a(t):l(u,!i),s)}},56825:function(e,t,i){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){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){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){i.d(t,{casesMap:function(){return h}});var n=i(62845),o=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),u=i(90240),d=i(68034);let h=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",o.checkJoinTwoLists],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",d.checkUnwrapFirstListItem]];h.map(([,e])=>e)},32496:function(e,t,i){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){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){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),u=i(89758),d=i(98527),h=i(51855);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},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",u.default).set("superscript",d.default).set("underline",h.default)},73674:function(e,t,i){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){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){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){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){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){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){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){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 u 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",u),a.Icon.set("class-span",c.default)},31151:function(e,t){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){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),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 d 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})}}u([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],d.prototype,"onChangeCleanHTML",null),u([(0,n.hook)("ready")],d.prototype,"startWalker",null),u([(0,n.watch)(":beforeCommand")],d.prototype,"beforeCommand",null),u([(0,n.watch)(":beforeSetNativeEditorValue")],d.prototype,"onBeforeSetNativeEditorValue",null),u([(0,n.watch)(":afterGetValueFromEditor")],d.prototype,"onAfterGetValueFromEditor",null),u([(0,n.watch)(":safeHTML")],d.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",d)},46776:function(e,t,i){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){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){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){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)},84272:function(e,t,i){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){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(),u=s.fake(),d=s.fake();l.collapse(!0),c.collapse(!1),n.Dom.safeInsertNode(l,u),n.Dom.safeInsertNode(c,d),a.setStartBefore(u),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];n.Dom.between(u,d,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 f=(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),f(n,t),!0}};f(u,!0)&&f(d,!1),a.setStartAfter(u),a.setEndBefore(d),t.selectRange(a),n.Dom.safeRemove(u),n.Dom.safeRemove(d)}},82558:function(e,t,i){i.d(t,{allowAttributes:function(){return o}});var n=i(2748);function o(e,t,i,o){let r=o&&n.Dom.isElement(t)&&o[t.nodeName];if(o&&n.Dom.isElement(t)&&!0!==r){if(!r)return i;let e=t.attributes;if(e&&e.length){let n=[];for(let t=0;t<e.length;t+=1){let i=r[e[t].name];i&&(!0===i||i===e[t].value)||n.push(e[t].name)}n.length&&(i=!0),n.forEach(e=>{t.removeAttribute(e)})}}return i}},1962:function(e,t,i){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){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 t.appendChild(i),!0}return i}},45235:function(e,t,i){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 u.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var n=i(82558),o=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),u=i(85978),d=i(384),h=i(15583),f=i(28800)},53392:function(e,t,i){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.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){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.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},80973:function(e,t,i){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?(t=o,!0):i}},95614:function(e,t,i){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){i.d(t,{sandboxIframesInContent:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){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){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){i.d(t,{tryRemoveNode:function(){return s}});var n=i(82758),o=i(2748),r=i(49055);function s(e,t,i,s,a,l){return!function(e,t,i,s,a){if(!o.Dom.isText(t)&&(s&&!s[t.nodeName]||!s&&a&&a[t.nodeName]))return!0;if(!e.o.cleanHTML.removeEmptyElements)return!1;let l=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==l||!o.Dom.isOrContains(t,l))}(e,t,l,s,a)?i:(o.Dom.safeRemove(t),!0)}},39516:function(e,t,i){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 u of r)if(!(c&&c.has(u))&&(l=(0,o[u])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){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){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){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){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){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){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){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){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){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=[],u=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"]))&&(u=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=>{u?u.style.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=>{u?u.style.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,u)},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":t.style.color=s;break;case"background":t.style.backgroundColor=s}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){var n=i(2748),o=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let u="copy-format",d=["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(u))e.buffer.delete(u),e.e.off(e.editor,"mouseup."+u);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),d.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&d.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."+u,()=>{e.buffer.delete(u);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."+u)}),e.buffer.set(u,!0)}i.update()}},isActive:e=>e.buffer.exists(u),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){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,t){t.default={"copy-format":"نسخ التنسيق"}},72392:function(e,t){t.default={"copy-format":"Kop\xedrovat form\xe1t"}},74551:function(e,t){t.default={"copy-format":"Format kopierenт"}},2536:function(e,t){t.default={"copy-format":"Copiar formato"}},52285:function(e,t){t.default={"copy-format":"کپی کردن قالب"}},12117:function(e,t){t.default={"copy-format":"Kopioi muotoilu"}},35140:function(e,t){t.default={"copy-format":"Format de copie"}},28435:function(e,t){t.default={"copy-format":"העתק עיצוב"}},98019:function(e,t){t.default={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},96457:function(e,t){t.default={"copy-format":"salin format"}},23914:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n.default},cs_cz:function(){return o.default},de:function(){return r.default},es:function(){return s.default},fa:function(){return a.default},fi:function(){return l.default},fr:function(){return c.default},he:function(){return u.default},hu:function(){return d.default},id:function(){return h.default},it:function(){return f.default},ja:function(){return p.default},ko:function(){return m.default},mn:function(){return g.default},nl:function(){return v.default},pl:function(){return b.default},pt_br:function(){return y.default},ru:function(){return w.default},tr:function(){return S.default},zh_cn:function(){return _.default},zh_tw:function(){return C.default}});var n=i(63819),o=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),u=i(28435),d=i(98019),h=i(96457),f=i(33561),p=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),w=i(60629),S=i(68278),_=i(1172),C=i(4164)},33561:function(e,t){t.default={"copy-format":"Copia il formato"}},96545:function(e,t){t.default={"copy-format":"copyformat"}},52230:function(e,t){t.default={"copy-format":"복사 형식"}},33307:function(e,t){t.default={"copy-format":"Формат хуулах"}},71042:function(e,t){t.default={"copy-format":"opmaak kopi\xebren"}},32172:function(e,t){t.default={"copy-format":"format kopii"}},39179:function(e,t){t.default={"copy-format":"Copiar formato"}},60629:function(e,t){t.default={"copy-format":"Копировать формат"}},68278:function(e,t){t.default={"copy-format":"Kopyalama Bi\xe7imi"}},1172:function(e,t){t.default={"copy-format":"复制格式"}},4164:function(e,t){t.default={"copy-format":"複製格式"}},66707:function(e,t,i){var n=i(22732),o=i(580),r=i(21537),s=i(49055),a=i(50911);class l 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||"")&&!e.editor.querySelector("img,table,jodit,iframe,hr")&&(!t||!n.Dom.closest(t,"table",e.editor))){e.editor.innerHTML="";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))}}}l.requires=["backspace"],o.pluginSystem.add("deleteCommand",l)},44586:function(e,t,i){i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){var n,o,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);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};(n=o||(o={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class d 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}),(0,a.getContainer)(this.j,d).appendChild(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}}u([r.autobind],d.prototype,"onStartDragElement",null),u([r.autobind],d.prototype,"onDragStart",null),u([(0,r.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([r.autobind],d.prototype,"onDragEnd",null),u([r.autobind],d.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",d)},19271:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),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 d 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=i.querySelector("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}}}u([o.autobind],d.prototype,"onDragStart",null),u([(0,o.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([o.autobind],d.prototype,"onDragEnd",null),u([o.autobind],d.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",d)},46124:function(e,t,i){i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(94870)},94870:function(e,t,i){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){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){i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(78720)},9045:function(e,t,i){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){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){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class u 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")],u.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",u)},41872:function(e,t,i){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){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){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){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){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 u.splitFragment},wrapText:function(){return d.wrapText}});var n=i(41872),o=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),u=i(54600),d=i(5287)},44245:function(e,t,i){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),u=l.element("br");return a||c.appendChild(u),s&&s.cssText&&(0,o.attr)(c,"style",s.cssText),n.Dom.after(e,c),n.Dom.before(a?c:u,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){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){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,u=t.s.createRange();u.setStartAfter(i),u.setEndAfter(s);let d=u.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);d.querySelector("li")&&(l?h.appendChild(d):n.Dom.after(h,d))}},54600:function(e,t,i){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),u=i.tagName.toLowerCase()===l||c,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!u&&(d||h)){d?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&n.Dom.prepend(i,e);return}let f=s.splitSelection(i,e);(0,o.scrollIntoViewIfNeeded)(f,t.editor,t.ed)}},5287:function(e,t,i){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");o.appendChild(i),n.Dom.before(i,e)}return o}},11317:function(e,t,i){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){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){var n,o,r=i(22732),s=i(49055),a=i(41180),l=i(12153),c=i(6441),u=i(4104),d=i(83709);c.Config.prototype.defaultFontSizePoints="px",l.Icon.set("font",u.default).set("fontsize",d.default),c.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 n=e.s.current();if(!n)return;let o=r.Dom.closest(n,r.Dom.isElement,e.editor);if(!o)return;let s=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,a.css)(o,s);if("font-size"===s){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()))}},c.Config.prototype.controls.font=(n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},c.Config.prototype.controls.fontsize),o=o={command:"fontname",textTemplate:(e,t)=>{let[i]=t.split(",");return(0,s.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=r.Dom.closest(t,r.Dom.isElement,e.editor);if(!i)return;let n=(0,a.css)(i,"font-family").toString();return n===(0,a.css)(e.editor,"font-family").toString()?"":n},tooltip:"Font family"},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n)},23399:function(e,t,i){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){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){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){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){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){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){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){var n=i(580),o=i(19306),r=i(41180);i(99823);let s=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,a=!1,l=()=>{let{container:o,events:s}=e;s&&(t?(a||(i=(0,r.css)(o,"height",!0),n=(0,r.css)(o,"width",!0),a=!0),(0,r.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):a&&((0,r.css)(o,{height:i||"auto",width:n||"auto"}),a=!1))},c=i=>{var n;let{container:a,events:c}=e;if(a){if(void 0===i&&(i=!a.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,a.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,o.isJoditObject)(e)&&(null==(n=e.toolbarContainer)||n.appendChild(e.toolbar.container)),(0,r.css)(e.toolbar.container,"width","auto")),i?s.add(a):s.delete(a),e.o.globalFullSize&&(1===s.size&&i||0===s.size&&!i)){let e=a.parentNode;for(;e&&e.nodeType!==Node.DOCUMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)e.classList.toggle("jodit_fullsize-box_true",i),e=e.parentNode;l()}c.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",l),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{t&&c(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",l)})})},6950:function(e,t){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){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){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){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){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){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){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){var n=i(82758),o=i(580),r=i(21537);i(50963),o.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,r.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,r.attr)(t,"rel","stylesheet"),(0,r.attr)(t,"href",e),n.head&&n.head.appendChild(t)}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&n.head.appendChild(e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,r.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,r.attr)(i,"sandbox",t.iframeSandbox),e.workplace.appendChild(i),e.iframe=i;let o=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,r.callPromise)(o,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let o=t.editHTMLDocumentMode,s=()=>{(0,r.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,r.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),s(),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",s),"auto"===t.height){i.documentElement&&(i.documentElement.style.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,r.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){i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911);function l(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}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 u="__jodit_imageprocessor_binded",d=u+"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(d);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(d)}}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(d);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}afterChange(e){var t;return(t=function*(){let{jodit:e}=this;e.editor&&(0,s.$$)("img",e.editor).forEach(t=>{(0,s.dataBind)(t,u)||((0,s.dataBind)(t,u,!0),t.complete||e.e.on(t,"load",function i(){var n;e.isInDestruct||null==(n=e.e)||n.fire("resize"),e.e.off(t,"load",i)}),t.src&&/^data:/.test(t.src)&&function(e,t){if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let i=t.src,n=function(e){let t=atob(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),o=new Uint8Array(n);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([n],{type:i})}(i);t.src=URL.createObjectURL(n),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(d)||{};r[t.src]=i,e.buffer.set(d,r)}(e,t),e.e.on(t,"mousedown touchstart",()=>{e.s.select(t)}))})},function(){var e=this,i=arguments;return new Promise(function(n,o){var r=t.apply(e,i);function s(e){l(r,n,o,s,a,"next",e)}function a(e){l(r,n,o,s,a,"throw",e)}s(void 0)})}).call(this)}}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){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){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),u=i(53636),d=i(10263),h=i(94575),f=i(34755);function p(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}var m=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 g extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,d.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,f.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()})}onStateValuesImageSrcChange(){var e;return(e=function*(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{yield 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()}},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=e.apply(t,i);function s(e){p(r,n,o,s,a,"next",e)}function a(e){p(r,n,o,s,a,"throw",e)}s(void 0)})}).call(this)}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(){const{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"}}}m([n.cache],g.prototype,"form",null),m([n.cache],g.prototype,"dialog",null),m([n.cache],g.prototype,"__buttons",null),m([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",g)},51642:function(e,t,i){i.d(t,{readAlign:function(){return o}});var n=i(41180);function o(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}},94575:function(e,t,i){i.d(t,{readValuesFromImage:function(){return c}});var n=i(29960),o=i(51642),r=i(75595),s=i(47749),a=i(32566);function l(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function c(e,t){var i;return(i=function*(){let{sourceImage:i,values:l}=t;return(0,o.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,n.attr)(i,"id")||"",l.imageTitle=(0,n.attr)(i,"title")||"",l.imageAlt=(0,n.attr)(i,"alt")||"",l.style=(0,n.attr)(i,"style")||"",l.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,s.readMargins)(i,l,t),(0,r.readLink)(t,e,l),l.imageSrc=(0,n.attr)(i,"src")||"",(0,a.readSizes)(i,l,t)},function(){var e=this,t=arguments;return new Promise(function(n,o){var r=i.apply(e,t);function s(e){l(r,n,o,s,a,"next",e)}function a(e){l(r,n,o,s,a,"throw",e)}s(void 0)})})()}},75595:function(e,t,i){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){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){i.d(t,{readSizes:function(){return l}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);function a(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function l(e,t,i){var l;return(l=function*(){try{yield 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:u}=t,d=parseFloat(c.toString());if(!(0,n.isNumeric)(c)||!(0,n.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(u.toString())*i.ratio)},function(){var e=this,t=arguments;return new Promise(function(i,n){var o=l.apply(e,t);function r(e){a(o,i,n,r,s,"next",e)}function s(e){a(o,i,n,r,s,"throw",e)}r(void 0)})})()}},59436:function(e,t,i){i.d(t,{UIImagePropertiesForm:function(){return h}});var n=i(65478),o=i(87325),r=i(21537),s=i(62405),a=i(12153),l=i(92762),c=i(35105),u=i(29827),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 h=class e extends s.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=u.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,d.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,d.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,d.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,d.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")],f.prototype,"onStateAlignChange",null),h([(0,r.watch)("align:change")],f.prototype,"onChangeAlign",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),h([(0,r.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),h([(0,r.watch)("id:change")],f.prototype,"onChangeId",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),h([(0,r.watch)("style:change")],f.prototype,"onChangeStyle",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),h([(0,r.watch)("classes:change")],f.prototype,"onChangClasses",null),h([(0,r.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),h([(0,o.hook)("ready"),(0,r.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),h([(0,o.hook)("ready"),(0,r.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),h([(0,r.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),h([(0,o.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=h([n.component],f)},53636:function(e,t,i){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("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){i.d(t,{openImagePopup:function(){return l}});var n=i(68345),o=i(5700),r=i(56917),s=i(34793);function a(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function l(e,t,i,l){let c=new r.Popup(t),u=()=>{c.close(),c.destruct()};c.setContent((0,s.FileSelectorWidget)(e,{upload:e=>{e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),u()},filebrowser:e=>{var t;return(t=function*(){e&&(0,n.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],u())},function(){var e=this,i=arguments;return new Promise(function(n,o){var r=t.apply(e,i);function s(e){a(r,n,o,s,l,"next",e)}function l(e){a(r,n,o,s,l,"throw",e)}s(void 0)})})()}},i.image,u)).open(()=>(0,o.position)(l))}},14415:function(e,t,i){i.d(t,{normalSizeFromString:function(){return r},normalSizeToString:function(){return s}});var n=i(84767),o=i(49055);let r=e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,s=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){i.d(t,{applyValuesToImage:function(){return l}});var n=i(2748),o=i(43555),r=i(29615),s=i(14721),a=i(87602);function l(e,t,i){let{style:l,imageSrc:c,borderRadius:u,imageTitle:d,imageAlt:h,imageLink:f,imageWidth:p,imageHeight:m,marginTop:g,marginRight:v,marginBottom:b,marginLeft:y,imageLinkOpenInNewTab:w,align:S,classes:_,id:C}=t.values,k=e.o;(k.image.editStyle&&(0,o.attr)(i,"style",l||null),c)?((0,o.attr)(i,"src",c),i.style.borderRadius=u?u+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",h||null),(0,r.applyLink)(e,i,f,w),(0,a.applySize)(i,p,m,t.sizeIsLocked),e.o.image.editMargins&&(0,s.applyMargin)(e,g,v,b,y,i,t.marginIsLocked),k.image.editClass&&(0,o.attr)(i,"class",_||null),k.image.editId&&(0,o.attr)(i,"id",C||null),k.image.editAlign&&(0,o.hAlignElement)(i,S)):n.Dom.safeRemove(i)}},29615:function(e,t,i){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&&s.parentNode.replaceChild(t,s)}},14721:function(e,t,i){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],u=(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)u("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{u(e[i],t)})}}},87602:function(e,t,i){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){var n=i(22732),o=i(580),r=i(21537),s=i(29960),a=i(12153),l=i(6441),c=i(92762),u=i(25179);function d(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}a.Icon.set("image",u.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:(t,n)=>{var r;return(r=function*(){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||(yield e.s.insertImage(r,null,e.o.imageDefaultWidth)),i()},function(){var e=this,t=arguments;return new Promise(function(i,n){var o=r.apply(e,t);function s(e){d(o,i,n,s,a,"next",e)}function a(e){d(o,i,n,s,a,"throw",e)}s(void 0)})})()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",function(e){e.registerButton({name:"image",group:"media"})})},25179:function(e,t){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){var n=i(22732),o=i(12153),r=i(6441),s=i(78614),a=i(86835),l=i(302);o.Icon.set("indent",s.default).set("outdent",a.default),r.Config.prototype.controls.indent={tooltip:"Increase Indent"},r.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 o=n.Dom.closest(i,n.Dom.isBlock,e.editor);if(o){let t=(0,l.getKey)(e.o.direction,o);return!o.style[t]||0>=parseInt(o.style[t],10)}return!0},tooltip:"Decrease Indent"},r.Config.prototype.indentMargin=10},302:function(e,t,i){i.d(t,{getKey:function(){return o}});var n=i(2748);let o=(e,t)=>`${n.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`},78614:function(e,t){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){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){var n=i(82758),o=i(22732),r=i(580),s=i(43555);i(54389);var a=i(302);let l=(e,t,i,n)=>{if(!t||e.has(t))return;let o=(0,a.getKey)(i.o.direction,t);e.add(t);let r=t.style[o]?parseInt(t.style[o],10):0;r+=i.o.indentMargin*("outdent"===n?-1:1),t.style[o]=r>0?r+"px":"",(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,c=r.toLowerCase()===n.BR,u=e.s.current();return c&&e.s.isCollapsed()&&u?l(i,o.Dom.wrapNextInline(u,a,e),e,t):(e.s.eachSelection(n=>{e.s.save();let u=!!n&&o.Dom.up(n,o.Dom.isBlock,e.editor);if(!u&&n&&(u=(0,s.call)(c?o.Dom.wrapNextInline:o.Dom.wrapInline,n,c?a:r.toLowerCase(),e)),!u)return e.s.restore(),!1;l(i,u,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){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){var n=i(27613),o=i(12153),r=i(6441),s=i(61122),a=i(62e3),l=i(66789),c=i(20882),u=i(14306),d=i(24231),h=i(75393),f=i(14862),p=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",d.default).set("addrow",h.default).set("merge",f.default).set("th",g.default).set("splitg",p.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:u.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){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){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){t.default=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},i(20882).align]},20882:function(e,t,i){i.d(t,{align:function(){return a}});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]},14306:function(e,t){t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},24231:function(e,t){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){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){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){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){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){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){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){var n=i(65478),o=i(22732),r=i(580),s=i(21537),a=i(50911),l=i(67510),c=i(61259),u=i(21491);i(24526);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 h extends a.Plugin{get popup(){return new c.Popup(this.jodit,!1)}get toolbar(){return(0,u.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"],d([n.cache],h.prototype,"popup",null),d([n.cache],h.prototype,"toolbar",null),d([n.autobind],h.prototype,"onClick",null),d([(0,n.wait)(e=>!e.j.isLocked)],h.prototype,"showPopup",null),d([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],h.prototype,"hidePopup",null),d([(0,n.watch)(":outsideClick")],h.prototype,"onOutsideClick",null),d([n.autobind],h.prototype,"__onDocumentMouseDown",null),d([n.autobind],h.prototype,"__onCloseAllPopups",null),d([n.autobind],h.prototype,"onSelectionStart",null),d([n.autobind],h.prototype,"onSelectionEnd",null),d([(0,n.debounce)(e=>e.defaultTimeout)],h.prototype,"onSelectionChange",null),d([n.autobind],h.prototype,"showInlineToolbar",null),r.pluginSystem.add("inlinePopup",h)},76295:function(e,t,i){var n=i(2748),o=i(580),r=i(21537),s=i(25726),a=i(41180),l=i(12153),c=i(6441),u=i(5567);l.Icon.set("justify",u.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:u}=i;u&&u.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,u.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){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){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){var n=i(6441);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1},91071:function(e,t,i){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){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,t,i){i.r(t),t.default={"Line height":"ارتفاع الخط"}},76725:function(e,t,i){i.r(t),t.default={"Line height":"V\xfdška č\xe1ry"}},71724:function(e,t,i){i.r(t),t.default={"Line height":"Zeilenh\xf6he"}},46295:function(e,t,i){i.r(t),t.default={"Line height":"Altura de la l\xednea"}},70190:function(e,t,i){i.r(t),t.default={"Line height":"ارتفاع خط"}},67206:function(e,t,i){i.r(t),t.default={"Line height":"Rivin korkeus"}},85723:function(e,t,i){i.r(t),t.default={"Line height":"Hauteur de ligne"}},61072:function(e,t,i){i.r(t),t.default={"Line height":"גובה שורה"}},30592:function(e,t,i){i.r(t),t.default={"Line height":"Vonal magass\xe1ga"}},89194:function(e,t,i){i.r(t),t.default={"Line height":"Tinggi baris"}},28143:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},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 S},ua:function(){return _},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(80084),o=i(76725),r=i(71724),s=i(46295),a=i(70190),l=i(67206),c=i(85723),u=i(61072),d=i(30592),h=i(89194),f=i(51834),p=i(5082),m=i(80105),g=i(26556),v=i(98689),b=i(42727),y=i(43646),w=i(53822),S=i(41817),_=i(69625),C=i(28973),k=i(19033)},51834:function(e,t,i){i.r(t),t.default={"Line height":"Altezza linea"}},5082:function(e,t,i){i.r(t),t.default={"Line height":"ラインの高さ"}},80105:function(e,t,i){i.r(t),t.default={"Line height":"선 높이"}},26556:function(e,t,i){i.r(t),t.default={"Line height":"Зураасны өндөр"}},98689:function(e,t,i){i.r(t),t.default={"Line height":"Lijnhoogte"}},42727:function(e,t,i){i.r(t),t.default={"Line height":"Wysokość linii"}},43646:function(e,t,i){i.r(t),t.default={"Line height":"Altura da linha"}},53822:function(e,t,i){i.r(t),t.default={"Line height":"Высота линии"}},41817:function(e,t,i){i.r(t),t.default={"Line height":"\xc7izgi y\xfcksekliği"}},69625:function(e,t,i){i.r(t),t.default={"Line height":"Висота лінії"}},28973:function(e,t,i){i.r(t),t.default={"Line height":"线高"}},19033:function(e,t,i){i.r(t),t.default={"Line height":"行高"}},61019:function(e,t,i){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 u=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),u(e),o.Dom.safeRemove(e)}else r.eachSelection(u)}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){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){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,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!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){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){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){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,{jodit:n}=this,r=n.i18n.bind(n),{openInNewTabCheckbox:a,openInNewTabCheckboxDefaultChecked:l,noFollowCheckbox:c,formTemplate:u,formClassName:d,modeClassName:h}=n.o.link,f=u(n),p=(0,s.isString)(f)?n.c.fromHTML(f,{target_checkbox_box:a,nofollow_checkbox_box:c}):f,m=o.Dom.isElement(p)?p:p.container,g=(0,s.refs)(m),{insert:v,unlink:b,content_input_box:y}=g,{target_checkbox:w,nofollow_checkbox:S,url_input:_}=g,C=o.Dom.isImage(e),{content_input:k}=g,{className_input:E}=g,{className_select:I}=g;k||(k=n.c.element("input",{type:"hidden",ref:"content_input"})),d&&m.classList.add(d),C&&o.Dom.hide(y);let T=()=>i?i.innerText:(0,s.stripTags)(n.s.range.cloneContents(),n.ed);i=!!(e&&o.Dom.closest(e,"a",n.editor))&&o.Dom.closest(e,"a",n.editor),!C&&e&&(k.value=T()),i?(_.value=(0,s.attr)(i,"href")||"",h&&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)}})}}}(h,E,i,I),a&&w&&(w.checked="_blank"===(0,s.attr)(i,"target")),c&&S&&(S.checked=((0,s.attr)(i,"rel")||"").split(/\s+/).includes("nofollow")),v.textContent=r("Update")):(o.Dom.hide(b),a&&w&&(w.checked=l)),n.editor.normalize();let D=n.history.snapshot.make();b&&n.e.on(b,"click",e=>{n.s.restore(),n.history.snapshot.restore(D),i&&o.Dom.unwrap(i),n.synchronizeValues(),t(),e.preventDefault()});let j=()=>{let e;if(!_.value.trim().length)return _.focus(),_.classList.add("jodit_error"),!1;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(D);let r=T()!==k.value.trim(),l=n.createInside;if(i&&o.Dom.isOrContains(n.editor,i))e=[i];else{if(n.s.isCollapsed()){let t=l.element("a");n.s.insertNode(t,!1,!1),e=[t]}else{let t=n.s.current();e=o.Dom.isTag(t,"img")?[o.Dom.wrap(t,"a",l)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{var t;let i;if((0,s.attr)(e,"href",_.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)})}}}}(h,E,I,e),C||(t=k,i=e.textContent,t.value.trim().length?r&&(i=t.value):i=_.value,i!==e.textContent&&(e.textContent=i)),a&&w&&(0,s.attr)(e,"target",w.checked?"_blank":null),c&&S){let t=((0,s.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");S.checked&&!i?t.push("nofollow"):!S.checked&&i&&t.splice(t.indexOf("nofollow"),1),(0,s.attr)(e,"rel",t.length?t.join(" "):null)}n.e.fire("applyLink",n,e,p)}),n.synchronizeValues(),t(),!1};return o.Dom.isElement(p)?n.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),j(),!1)):p.onSubmit(j),p}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){i.d(t,{formTemplate:function(){return r}});var n=i(62843),o=i(2525);let r=e=>{let{openInNewTabCheckbox:t,noFollowCheckbox:i,modeClassName:r,selectSizeClassName:s,selectMultipleClassName:a,selectOptionsClassName:l}=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})]),new o.UIBlock(e,[new o.UIInput(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new o.UIBlock(e,["input"===r?new o.UIInput(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new o.UISelect(e,{name:"className",ref:"className_select",label:"Class name",size:s,multiple:a,options:l}):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){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){var n=i(82758),o=i(580),r=i(43555);i(757),o.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=e.options;s&&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,r.$$)(o.join(","),e.editor).forEach(n=>{if(!(0,r.dataBind)(n,t)){(0,r.dataBind)(n,t,!0);var o=n;if(o.parentNode&&(0,r.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{let n=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});(0,r.attr)(n,"style",(0,r.attr)(o,"style")),n.style.display="inline-block"===o.style.display?"inline-block":"block",n.style.width=o.offsetWidth+"px",n.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(n,o),n.appendChild(o),o=n}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(o)})}})},e.defaultTimeout))})},37585:function(e,t,i){var n=i(82758),o=i(21537),r=i(6441),s=i(11676),a=i(21491);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.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"],r.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"],r.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],r.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:(e,t,i,n)=>{let r=n.control.data;return void 0===r&&(r={toolbar:(0,a.makeCollection)(e),rebuild:()=>{var t,i;if(n){let a=e.e.fire("getDiffButtons.mobile",n.closest(s.ToolbarCollection));if(a&&r){r.toolbar.build((0,o.splitArray)(a));let n=(null==(i=null==(t=e.toolbar)?void 0:t.firstButton)?void 0:i.container.offsetWidth)||36;r.toolbar.container.style.width=(n+4)*3+"px"}}}},n.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},32309:function(e,t,i){var n=i(580),o=i(21537),r=i(43649);i(37585),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?(0,o.splitArray)(e.o.buttonsMD):r>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);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){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){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){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){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){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){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:u}=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)},u):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){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(),this.container.appendChild(this.listBox),this.container.appendChild(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&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),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&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}r.pluginSystem.add("pasteStorage",c)},84380:function(e,t,i){var n=i(82758),o=i(6441),r=i(117);function s(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}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 a="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",exec(e,t,i){var o;return(o=function*(e,t,{control:i}){var o;if(i.name===a)return void e.execCommand("showPasteStorage");e.s.focus();let s="",l=!0;if(navigator.clipboard){try{let e=yield 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=yield t.getType(i);s=yield new Response(r).text()}l=!1}catch(e){n.IS_PROD}if(l)try{s=yield navigator.clipboard.readText(),l=!1}catch(e){n.IS_PROD}}l&&(l=0===(s=e.buffer.get(n.CLIPBOARD_ID)||"").length);let c=e.value;l?(e.ed.execCommand("paste"),(l=c===e.value)||e.e.fire("afterPaste")):s.length?((0,r.pasteInsertHtml)(null,e,s),e.e.fire("afterPaste")):l&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},function(){var e=this,t=arguments;return new Promise(function(i,n){var r=o.apply(e,t);function a(e){s(r,i,n,a,l,"next",e)}function l(e){s(r,i,n,a,l,"throw",e)}a(void 0)})}).apply(this,arguments)},list:{[a]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}}},117:function(e,t,i){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){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),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 d 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}}u([o.autobind],d.prototype,"onPaste",null),u([o.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),s.pluginSystem.add("paste",d)},61926:function(e,t,i){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){i.d(t,{isEditorEmpty:function(){return d}});var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(78116),l=i(29960),c=i(41180),u=i(20356);function d(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 u.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&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.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);e.workplace.appendChild(this.placeholderElm);let{firstChild:u}=e.editor;if(r.Dom.isElement(u)&&!(0,a.isMarker)(u)){let n=e.ew.getComputedStyle(u);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.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();d(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){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=u.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,d.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,d.normalSizeFromString)(t.value),this.state.values.marginBottom=(0,d.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,d.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")],f.prototype,"onStateAlignChange",null),h([(0,r.watch)("align:change")],f.prototype,"onChangeAlign",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),h([(0,r.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),h([(0,r.watch)("id:change")],f.prototype,"onChangeId",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),h([(0,r.watch)("style:change")],f.prototype,"onChangeStyle",null),h([(0,o.hook)("ready"),(0,r.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),h([(0,r.watch)("classes:change")],f.prototype,"onChangClasses",null),h([(0,r.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),h([(0,o.hook)("ready"),(0,r.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),h([(0,o.hook)("ready"),(0,r.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),h([(0,r.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),h([(0,o.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=h([n.component],f)},53636:function(e,t,i){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("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){i.d(t,{openImagePopup:function(){return l}});var n=i(68345),o=i(5700),r=i(56917),s=i(34793);function a(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function l(e,t,i,l){let c=new r.Popup(t),u=()=>{c.close(),c.destruct()};c.setContent((0,s.FileSelectorWidget)(e,{upload:e=>{e.files&&e.files.length&&(i.values.imageSrc=e.baseurl+e.files[0]),u()},filebrowser:e=>{var t;return(t=function*(){e&&(0,n.isArray)(e.files)&&e.files.length&&(i.values.imageSrc=e.files[0],u())},function(){var e=this,i=arguments;return new Promise(function(n,o){var r=t.apply(e,i);function s(e){a(r,n,o,s,l,"next",e)}function l(e){a(r,n,o,s,l,"throw",e)}s(void 0)})})()}},i.image,u)).open(()=>(0,o.position)(l))}},14415:function(e,t,i){i.d(t,{normalSizeFromString:function(){return r},normalSizeToString:function(){return s}});var n=i(84767),o=i(49055);let r=e=>/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e,s=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){i.d(t,{applyValuesToImage:function(){return l}});var n=i(2748),o=i(43555),r=i(29615),s=i(14721),a=i(87602);function l(e,t,i){let{style:l,imageSrc:c,borderRadius:u,imageTitle:d,imageAlt:h,imageLink:f,imageWidth:p,imageHeight:m,marginTop:g,marginRight:v,marginBottom:b,marginLeft:y,imageLinkOpenInNewTab:w,align:S,classes:_,id:C}=t.values,k=e.o;(k.image.editStyle&&(0,o.attr)(i,"style",l||null),c)?((0,o.attr)(i,"src",c),i.style.borderRadius=u?u+"px":"",(0,o.attr)(i,"title",d||null),(0,o.attr)(i,"alt",h||null),(0,r.applyLink)(e,i,f,w),(0,a.applySize)(i,p,m,t.sizeIsLocked),e.o.image.editMargins&&(0,s.applyMargin)(e,g,v,b,y,i,t.marginIsLocked),k.image.editClass&&(0,o.attr)(i,"class",_||null),k.image.editId&&(0,o.attr)(i,"id",C||null),k.image.editAlign&&(0,o.hAlignElement)(i,S)):n.Dom.safeRemove(i)}},29615:function(e,t,i){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&&s.parentNode.replaceChild(t,s)}},14721:function(e,t,i){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],u=(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)u("margin",t);else{let e=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((t,i)=>{u(e[i],t)})}}},87602:function(e,t,i){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){var n=i(22732),o=i(580),r=i(21537),s=i(29960),a=i(12153),l=i(6441),c=i(92762),u=i(25179);function d(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}a.Icon.set("image",u.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:(t,n)=>{var r;return(r=function*(){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||(yield e.s.insertImage(r,null,e.o.imageDefaultWidth)),i()},function(){var e=this,t=arguments;return new Promise(function(i,n){var o=r.apply(e,t);function s(e){d(o,i,n,s,a,"next",e)}function a(e){d(o,i,n,s,a,"throw",e)}s(void 0)})})()}},o,i)},tags:["img"],tooltip:"Insert Image"},o.pluginSystem.add("image",function(e){e.registerButton({name:"image",group:"media"})})},25179:function(e,t){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){var n=i(22732),o=i(12153),r=i(6441),s=i(78614),a=i(86835),l=i(302);o.Icon.set("indent",s.default).set("outdent",a.default),r.Config.prototype.controls.indent={tooltip:"Increase Indent"},r.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 o=n.Dom.closest(i,n.Dom.isBlock,e.editor);if(o){let t=(0,l.getKey)(e.o.direction,o);return!o.style[t]||0>=parseInt(o.style[t],10)}return!0},tooltip:"Decrease Indent"},r.Config.prototype.indentMargin=10},302:function(e,t,i){i.d(t,{getKey:function(){return o}});var n=i(2748);let o=(e,t)=>`${n.Dom.isCell(t)?"padding":"margin"}${"rtl"===e?"Right":"Left"}`},78614:function(e,t){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){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){var n=i(82758),o=i(22732),r=i(580),s=i(43555);i(54389);var a=i(302);let l=(e,t,i,n)=>{if(!t||e.has(t))return;let o=(0,a.getKey)(i.o.direction,t);e.add(t);let r=t.style[o]?parseInt(t.style[o],10):0;r+=i.o.indentMargin*("outdent"===n?-1:1),t.style[o]=r>0?r+"px":"",(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,c=r.toLowerCase()===n.BR,u=e.s.current();return c&&e.s.isCollapsed()&&u?l(i,o.Dom.wrapNextInline(u,a,e),e,t):(e.s.eachSelection(n=>{e.s.save();let u=!!n&&o.Dom.up(n,o.Dom.isBlock,e.editor);if(!u&&n&&(u=(0,s.call)(c?o.Dom.wrapNextInline:o.Dom.wrapInline,n,c?a:r.toLowerCase(),e)),!u)return e.s.restore(),!1;l(i,u,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){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){var n=i(27613),o=i(12153),r=i(6441),s=i(61122),a=i(62e3),l=i(66789),c=i(20882),u=i(14306),d=i(24231),h=i(75393),f=i(14862),p=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",d.default).set("addrow",h.default).set("merge",f.default).set("th",g.default).set("splitg",p.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:u.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){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){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){t.default=[{name:"bin",tooltip:"Delete",exec:(e,t)=>{t&&e.s.removeNode(t)}},i(20882).align]},20882:function(e,t,i){i.d(t,{align:function(){return a}});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]},14306:function(e,t){t.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},24231:function(e,t){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){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){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){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){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){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){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){var n=i(65478),o=i(22732),r=i(580),s=i(21537),a=i(50911),l=i(67510),c=i(61259),u=i(21491);i(24526);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 h extends a.Plugin{get popup(){return new c.Popup(this.jodit,!1)}get toolbar(){return(0,u.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"],d([n.cache],h.prototype,"popup",null),d([n.cache],h.prototype,"toolbar",null),d([n.autobind],h.prototype,"onClick",null),d([(0,n.wait)(e=>!e.j.isLocked)],h.prototype,"showPopup",null),d([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],h.prototype,"hidePopup",null),d([(0,n.watch)(":outsideClick")],h.prototype,"onOutsideClick",null),d([n.autobind],h.prototype,"__onDocumentMouseDown",null),d([n.autobind],h.prototype,"__onCloseAllPopups",null),d([n.autobind],h.prototype,"onSelectionStart",null),d([n.autobind],h.prototype,"onSelectionEnd",null),d([(0,n.debounce)(e=>e.defaultTimeout)],h.prototype,"onSelectionChange",null),d([n.autobind],h.prototype,"showInlineToolbar",null),r.pluginSystem.add("inlinePopup",h)},76295:function(e,t,i){var n=i(2748),o=i(580),r=i(21537),s=i(25726),a=i(41180),l=i(12153),c=i(6441),u=i(5567);l.Icon.set("justify",u.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:u}=i;u&&u.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,u.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){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){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){var n=i(6441);n.Config.prototype.limitWords=!1,n.Config.prototype.limitChars=!1,n.Config.prototype.limitHTML=!1},91071:function(e,t,i){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){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,t,i){i.r(t),t.default={"Line height":"ارتفاع الخط"}},76725:function(e,t,i){i.r(t),t.default={"Line height":"V\xfdška č\xe1ry"}},71724:function(e,t,i){i.r(t),t.default={"Line height":"Zeilenh\xf6he"}},46295:function(e,t,i){i.r(t),t.default={"Line height":"Altura de la l\xednea"}},70190:function(e,t,i){i.r(t),t.default={"Line height":"ارتفاع خط"}},67206:function(e,t,i){i.r(t),t.default={"Line height":"Rivin korkeus"}},85723:function(e,t,i){i.r(t),t.default={"Line height":"Hauteur de ligne"}},61072:function(e,t,i){i.r(t),t.default={"Line height":"גובה שורה"}},30592:function(e,t,i){i.r(t),t.default={"Line height":"Vonal magass\xe1ga"}},89194:function(e,t,i){i.r(t),t.default={"Line height":"Tinggi baris"}},28143:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},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 S},ua:function(){return _},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(80084),o=i(76725),r=i(71724),s=i(46295),a=i(70190),l=i(67206),c=i(85723),u=i(61072),d=i(30592),h=i(89194),f=i(51834),p=i(5082),m=i(80105),g=i(26556),v=i(98689),b=i(42727),y=i(43646),w=i(53822),S=i(41817),_=i(69625),C=i(28973),k=i(19033)},51834:function(e,t,i){i.r(t),t.default={"Line height":"Altezza linea"}},5082:function(e,t,i){i.r(t),t.default={"Line height":"ラインの高さ"}},80105:function(e,t,i){i.r(t),t.default={"Line height":"선 높이"}},26556:function(e,t,i){i.r(t),t.default={"Line height":"Зураасны өндөр"}},98689:function(e,t,i){i.r(t),t.default={"Line height":"Lijnhoogte"}},42727:function(e,t,i){i.r(t),t.default={"Line height":"Wysokość linii"}},43646:function(e,t,i){i.r(t),t.default={"Line height":"Altura da linha"}},53822:function(e,t,i){i.r(t),t.default={"Line height":"Высота линии"}},41817:function(e,t,i){i.r(t),t.default={"Line height":"\xc7izgi y\xfcksekliği"}},69625:function(e,t,i){i.r(t),t.default={"Line height":"Висота лінії"}},28973:function(e,t,i){i.r(t),t.default={"Line height":"线高"}},19033:function(e,t,i){i.r(t),t.default={"Line height":"行高"}},61019:function(e,t,i){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 u=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),u(e),o.Dom.safeRemove(e)}else r.eachSelection(u)}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){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){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,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){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){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){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,{jodit:n}=this,r=n.i18n.bind(n),{openInNewTabCheckbox:a,openInNewTabCheckboxDefaultChecked:l,noFollowCheckbox:c,formTemplate:u,formClassName:d,modeClassName:h}=n.o.link,f=u(n),p=(0,s.isString)(f)?n.c.fromHTML(f,{target_checkbox_box:a,nofollow_checkbox_box:c}):f,m=o.Dom.isElement(p)?p:p.container,g=(0,s.refs)(m),{insert:v,unlink:b,content_input_box:y}=g,{target_checkbox:w,nofollow_checkbox:S,url_input:_}=g,C=o.Dom.isImage(e),{content_input:k}=g,{className_input:E}=g,{className_select:I}=g,{aria_label_input:T}=g;k||(k=n.c.element("input",{type:"hidden",ref:"content_input"})),d&&m.classList.add(d),C&&o.Dom.hide(y);let D=()=>i?i.innerText:(0,s.stripTags)(n.s.range.cloneContents(),n.ed);i=!!(e&&o.Dom.closest(e,"a",n.editor))&&o.Dom.closest(e,"a",n.editor),!C&&e&&(k.value=D()),T&&(T.value=i&&(0,s.attr)(i,"aria-label")||""),i?(_.value=(0,s.attr)(i,"href")||"",h&&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)}})}}}(h,E,i,I),a&&w&&(w.checked="_blank"===(0,s.attr)(i,"target")),c&&S&&(S.checked=((0,s.attr)(i,"rel")||"").split(/\s+/).includes("nofollow")),v.textContent=r("Update")):(o.Dom.hide(b),a&&w&&(w.checked=l)),n.editor.normalize();let j=n.history.snapshot.make();b&&n.e.on(b,"click",e=>{n.s.restore(),n.history.snapshot.restore(j),i&&o.Dom.unwrap(i),n.synchronizeValues(),t(),e.preventDefault()});let P=()=>{let e;if(!_.value.trim().length)return _.focus(),_.classList.add("jodit_error"),!1;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(j);let r=D()!==k.value.trim(),l=n.createInside;if(i&&o.Dom.isOrContains(n.editor,i))e=[i];else{if(n.s.isCollapsed()){let t=l.element("a");n.s.insertNode(t,!1,!1),e=[t]}else{let t=n.s.current();e=o.Dom.isTag(t,"img")?[o.Dom.wrap(t,"a",l)]:n.s.wrapInTag("a")}e.forEach(e=>n.s.select(e))}return e.forEach(e=>{var t;let i;if((0,s.attr)(e,"href",_.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)})}}}}(h,E,I,e),C||(t=k,i=e.textContent,t.value.trim().length?r&&(i=t.value):i=_.value,i!==e.textContent&&(e.textContent=i)),a&&w&&(0,s.attr)(e,"target",w.checked?"_blank":null),c&&S){let t=((0,s.attr)(e,"rel")||"").split(/\s+/).filter(Boolean),i=t.includes("nofollow");S.checked&&!i?t.push("nofollow"):!S.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)}n.e.fire("applyLink",n,e,p)}),n.synchronizeValues(),t(),!1};return o.Dom.isElement(p)?n.e.on(p,"submit",e=>(e.preventDefault(),e.stopImmediatePropagation(),P(),!1)):p.onSubmit(P),p}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){i.d(t,{formTemplate:function(){return r}});var n=i(62843),o=i(2525);let r=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){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){var n=i(82758),o=i(580),r=i(43555);i(757),o.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:o,mediaInFakeBlock:s}=e.options;s&&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,r.$$)(o.join(","),e.editor).forEach(n=>{if(!(0,r.dataBind)(n,t)){(0,r.dataBind)(n,t,!0);var o=n;if(o.parentNode&&(0,r.attr)(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{let n=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${t}`]:1});(0,r.attr)(n,"style",(0,r.attr)(o,"style")),n.style.display="inline-block"===o.style.display?"inline-block":"block",n.style.width=o.offsetWidth+"px",n.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(n,o),n.appendChild(o),o=n}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",()=>{e.s.setCursorAfter(o)})}})},e.defaultTimeout))})},37585:function(e,t,i){var n=i(82758),o=i(21537),r=i(6441),s=i(11676),a=i(21491);r.Config.prototype.mobileTapTimeout=300,r.Config.prototype.toolbarAdaptive=!0,r.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"],r.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"],r.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],r.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:(e,t,i,n)=>{let r=n.control.data;return void 0===r&&(r={toolbar:(0,a.makeCollection)(e),rebuild:()=>{var t,i;if(n){let a=e.e.fire("getDiffButtons.mobile",n.closest(s.ToolbarCollection));if(a&&r){r.toolbar.build((0,o.splitArray)(a));let n=(null==(i=null==(t=e.toolbar)?void 0:t.firstButton)?void 0:i.container.offsetWidth)||36;r.toolbar.container.style.width=(n+4)*3+"px"}}}},n.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},32309:function(e,t,i){var n=i(580),o=i(21537),r=i(43649);i(37585),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?(0,o.splitArray)(e.o.buttonsMD):r>=e.o.sizeSM?(0,o.splitArray)(e.o.buttonsSM):(0,o.splitArray)(e.o.buttonsXS);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){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){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){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){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){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){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:u}=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)},u):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){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(),this.container.appendChild(this.listBox),this.container.appendChild(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&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),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&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}r.pluginSystem.add("pasteStorage",c)},84380:function(e,t,i){var n=i(82758),o=i(6441),r=i(117);function s(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}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 a="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",exec(e,t,i){var o;return(o=function*(e,t,{control:i}){var o;if(i.name===a)return void e.execCommand("showPasteStorage");e.s.focus();let s="",l=!0;if(navigator.clipboard){try{let e=yield 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=yield t.getType(i);s=yield new Response(r).text()}l=!1}catch(e){n.IS_PROD}if(l)try{s=yield navigator.clipboard.readText(),l=!1}catch(e){n.IS_PROD}}l&&(l=0===(s=e.buffer.get(n.CLIPBOARD_ID)||"").length);let c=e.value;l?(e.ed.execCommand("paste"),(l=c===e.value)||e.e.fire("afterPaste")):s.length?((0,r.pasteInsertHtml)(null,e,s),e.e.fire("afterPaste")):l&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},function(){var e=this,t=arguments;return new Promise(function(i,n){var r=o.apply(e,t);function a(e){s(r,i,n,a,l,"next",e)}function l(e){s(r,i,n,a,l,"throw",e)}a(void 0)})}).apply(this,arguments)},list:{[a]:"Paste Storage"},isChildDisabled(e){return 2>e.e.fire("pasteStorageList")}}},117:function(e,t,i){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){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),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 d 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}}u([o.autobind],d.prototype,"onPaste",null),u([o.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),s.pluginSystem.add("paste",d)},61926:function(e,t,i){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){i.d(t,{isEditorEmpty:function(){return d}});var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(78116),l=i(29960),c=i(41180),u=i(20356);function d(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 u.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&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.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);e.workplace.appendChild(this.placeholderElm);let{firstChild:u}=e.editor;if(r.Dom.isElement(u)&&!(0,a.isMarker)(u)){let n=e.ew.getComputedStyle(u);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(n.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=n.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.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();d(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){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||(this.j.workplace.appendChild(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){var t;super(e),t=this,this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:i,replace:o,cancel:r,next:a,prev:c,replaceBtn:u,current:d,count:h}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=o,this.closeButton=r,this.replaceButton=u,this.currentBox=d,this.countBox=h,e.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).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",()=>(e.e.fire(this,"pressReplaceButton"),!1)).on(a,"pointerdown",()=>(e.e.fire("searchNext"),!1)).on(c,"pointerdown",()=>(e.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(()=>{let i=this.j.async.debounce(i=>{var o;return(o=function*(){i.key===n.KEY_ENTER?(yield e.e.fire("searchNext"))&&t.close():e.e.fire(t,"needUpdateCounters")},function(){var e=this,t=arguments;return new Promise(function(i,n){var r=o.apply(e,t);function s(e){l(r,i,n,s,a,"next",e)}function a(e){l(r,i,n,s,a,"throw",e)}s(void 0)})})()},this.j.defaultTimeout);return e=>{e.key===n.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),i(e)}})())}};c([(0,o.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([o.autobind],u.prototype,"open",null),c([o.autobind],u.prototype,"close",null),c([(0,o.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([o.component],u)},55311:function(e,t,i){i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){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 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};let d="table_processor_observer",h="onMoveTableSelectCell";class f 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){if(this.j.o.readonly||(this.unselectCells(),e===this.j.editor))return;let t=r.Dom.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:h,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}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(d))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(d),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>'),a.appendChild(o),this.j.async.setTimeout(()=>{var e;null==(e=o.parentNode)||e.removeChild(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 u=this.__tableModule.getSelectedBound(e,[l,this.__selectedCell]),d=this.__tableModule.formalMatrix(e),f=null==(n=d[u[1][0]])?void 0:n[u[1][1]],p=null==(o=d[u[0][0]])?void 0:o[u[0][1]];p&&f&&(this.j.e.fire("showPopup",e,()=>{let e=(0,a.position)(p,this.j),t=(0,a.position)(f,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),e.appendChild(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}}f.requires=["select"],u([o.autobind],f.prototype,"onStartSelection",null),u([(0,o.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),u([(0,o.watch)(":change")],f.prototype,"onChange",null),u([o.autobind],f.prototype,"__onRemoveSelection",null),u([o.autobind],f.prototype,"__onStopSelection",null),u([o.autobind],f.prototype,"onExecCommand",null),u([o.autobind],f.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",f)},67215:function(e,t,i){i(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,i){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 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 d 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 n=i.startContainer,o=n.parentNode;if(!r.Dom.isTag(o,"li")||!(o.querySelector("ul")||o.querySelector("ol")))return;let s=this.j.ed.createRange();s.selectNodeContents(n);let a=s.getBoundingClientRect();e.clientX>a.right&&t.setCursorAfter(n)}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"]}}u([o.autobind],d.prototype,"onStartSelection",null),u([(0,o.watch)("ow:click")],d.prototype,"onOutsideClick",null),u([(0,o.watch)([":beforeCommandCut"])],d.prototype,"beforeCommandCut",null),u([(0,o.watch)([":beforeCommandSelectall"])],d.prototype,"beforeCommandSelectAll",null),u([(0,o.watch)([":click"])],d.prototype,"onClickRightOfNestedListItem",null),u([(0,o.watch)([":click"])],d.prototype,"onClickKeepPendingFormat",null),u([(0,o.watch)([":click"])],d.prototype,"onTripleClickNormalizeSelection",null),u([(0,o.watch)([":copy",":cut"])],d.prototype,"onCopyNormalizeSelectionBound",null),s.pluginSystem.add("select",d)},80792:function(e,t,i){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){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,t;return((null==(e=this.j.toolbarContainer)?void 0:e.offsetHeight)||0)+((null==(t=this.j.statusbar)?void 0:t.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){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.4.2/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){i.d(t,{AceEditor:function(){return s}});var n=i(82758),o=i(21537),r=i(23370);class s extends r.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");this.container.appendChild(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.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 o=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",o).on("afterResize afterSetMode",o),o(),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,o.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,o.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){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}),this.container.appendChild(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(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0)}}},52968:function(e,t,i){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){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){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){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),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 d 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(){if(this.j.getRealMode()===n.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.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 t=this.j.e.fire("beautifyHTML",e);(0,a.isString)(t)&&(e=t)}if(i=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){let t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),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"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{e.workplace.appendChild(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}}}u([(0,o.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([o.autobind],d.prototype,"fromWYSIWYG",null),u([o.autobind],d.prototype,"toWYSIWYG",null),u([o.autobind],d.prototype,"getNormalPosition",null),u([(0,o.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,o.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,o.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([o.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,o.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([o.autobind],d.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",d)},35599:function(e,t){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){var n=i(87612),o=i(70799),r=i(29960),s=i(86583),a=i(12153),l=i(6441),c=i(26532),u=i(93602),d=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",d.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:d,continuous:h,interimResults:f,sound:p}=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 u.RecognizeManager(e.async,t)).lang=(0,o.isString)(d)?d:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=f,m.sound=p,(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}}},85567:function(e,t,i){i.d(t,{PII:function(){return n},WARN:function(){return o}});let n=440,o=940},26532:function(e,t,i){i.d(t,{SpeechRecognition:function(){return o}});var n=i(82758);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0},54076:function(e,t,i){i.d(t,{execSpellCommand:function(){return n}});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)}},93602:function(e,t,i){i.d(t,{RecognizeManager:function(){return l}});var n=i(65478),o=i(72757),r=i(37643),s=i(85567),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 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),l._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,l._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(s.PII),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(s.WARN),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(s.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,l._instances.add(this)}}l._instances=new Set,a([n.autobind],l.prototype,"_onResults",null),a([n.autobind],l.prototype,"_onProgress",null),a([n.autobind],l.prototype,"_onError",null)},37643:function(e,t,i){i.d(t,{closeSound:function(){return a},sound:function(){return s}});var n=i(82758),o=i(85567);let r=new WeakMap;function s(e,{sec:t=.1,frequency:i=o.PII,gain:a=.1,type:l="sine"}={}){let c=function(e){if(!n.globalWindow)return null;let t=r.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let o=new i;return r.set(e,o),o}(e);if(!c)return;let u=c.createGain(),d=c.createOscillator();d.type=l,d.frequency.value=i,u.gain.value=a,d.connect(u),u.connect(c.destination),d.start(),d.stop(c.currentTime+t)}function a(e){let t=r.get(e);t&&(r.delete(e),"closed"!==t.state&&t.close())}},71705:function(e,t,i){i.r(t),t.default={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e,t,i){i.r(t),t.default={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,t,i){i.r(t),t.default={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e,t,i){i.r(t),t.default={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e,t,i){i.r(t),t.default={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e,t,i){i.r(t),t.default={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(e,t,i){i.r(t),t.default={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(e,t,i){i.r(t),t.default={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e,t,i){i.r(t),t.default={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,t,i){i.r(t),t.default={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},ko:function(){return m},mn:function(){return g},nl:function(){return v},no:function(){return b},pl:function(){return y},pt_br:function(){return w},ru:function(){return S},tr:function(){return _},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(71705),o=i(89930),r=i(34945),s=i(63134),a=i(66835),l=i(1115),c=i(59302),u=i(94141),d=i(24877),h=i(80651),f=i(62395),p=i(16407),m=i(37272),g=i(22113),v=i(22432),b=i(17081),y=i(30798),w=i(8661),S=i(19147),_=i(93620),C=i(40372),k=i(69874),E=i(88774)},62395:function(e,t,i){i.r(t),t.default={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e,t,i){i.r(t),t.default={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e,t,i){i.r(t),t.default={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e,t,i){i.r(t),t.default={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e,t,i){i.r(t),t.default={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e,t,i){i.r(t),t.default={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e,t,i){i.r(t),t.default={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e,t,i){i.r(t),t.default={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(e,t,i){i.r(t),t.default={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},93620:function(e,t,i){i.r(t),t.default={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(e,t,i){i.r(t),t.default={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e,t,i){i.r(t),t.default={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e,t,i){i.r(t),t.default={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,i){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),u=i(90492),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 h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(u),(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")),this.j.workplace.appendChild(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={}}}d([(0,n.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),d([(0,n.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259:function(e,t){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){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,t,i){i.r(t),t.default={Spellcheck:"التدقيق الإملائي"}},24351:function(e,t,i){i.r(t),t.default={Spellcheck:"Kontrola pravopisu"}},32806:function(e,t,i){i.r(t),t.default={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(e,t,i){i.r(t),t.default={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(e,t,i){i.r(t),t.default={Spellcheck:"غلطیابی املایی"}},42820:function(e,t,i){i.r(t),t.default={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e,t,i){i.r(t),t.default={Spellcheck:"V\xe9rification Orthographique"}},98370:function(e,t,i){i.r(t),t.default={Spellcheck:"בדיקת איות"}},44850:function(e,t,i){i.r(t),t.default={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(e,t,i){i.r(t),t.default={Spellcheck:"Spellchecking"}},26529:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},ko:function(){return m},mn:function(){return g},nl:function(){return v},no:function(){return b},pl:function(){return y},pt_br:function(){return w},ru:function(){return S},tr:function(){return _},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(28906),o=i(24351),r=i(32806),s=i(77725),a=i(26428),l=i(42820),c=i(60373),u=i(98370),d=i(44850),h=i(3636),f=i(73220),p=i(55776),m=i(13995),g=i(6402),v=i(1879),b=i(1322),y=i(53361),w=i(70824),S=i(65140),_=i(42247),C=i(68891),k=i(63195),E=i(42107)},73220:function(e,t,i){i.r(t),t.default={Spellcheck:"Controllo ortografico"}},55776:function(e,t,i){i.r(t),t.default={Spellcheck:"スペルチェック"}},13995:function(e,t,i){i.r(t),t.default={Spellcheck:"맞춤법 검사"}},6402:function(e,t,i){i.r(t),t.default={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e,t,i){i.r(t),t.default={Spellcheck:"Spellingcontrole"}},1322:function(e,t,i){i.r(t),t.default={Spellcheck:"Stavekontroll"}},53361:function(e,t,i){i.r(t),t.default={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e,t,i){i.r(t),t.default={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(e,t,i){i.r(t),t.default={Spellcheck:"Проверка орфографии"}},42247:function(e,t,i){i.r(t),t.default={Spellcheck:"Yazım denetimi"}},68891:function(e,t,i){i.r(t),t.default={Spellcheck:"Перевірка орфографії"}},63195:function(e,t,i){i.r(t),t.default={Spellcheck:"拼写检查"}},42107:function(e,t,i){i.r(t),t.default={Spellcheck:"拼字檢查"}},43809:function(e,t,i){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){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){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){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){var n=i(6441);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,i){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 u 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"),this.j.container.insertBefore(this.__dummyBox,e)},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)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,i){var n=i(12153),o=i(6441),r=i(5119);o.Config.prototype.usePopupForSpecialCharacters=!1,o.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","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],n.Icon.set("symbols",r.default),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let n=e.e.fire("generateSpecialCharactersTable.symbols");if(n){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(n),e.e.on(n,"close_dialog",i),t}e.alert(n,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.querySelector("a");t&&t.focus()}}}},20741:function(e,t,i){i.r(t),t.default={symbols:"رمز"}},3958:function(e,t,i){i.r(t),t.default={symbols:"symbol"}},53437:function(e,t,i){i.r(t),t.default={symbols:"Symbol"}},56882:function(e,t,i){i.r(t),t.default={symbols:"S\xedmbolo"}},75703:function(e,t,i){i.r(t),t.default={symbols:"سمبل"}},49759:function(e,t,i){i.r(t),t.default={symbols:"Symbolit"}},44730:function(e,t,i){i.r(t),t.default={symbols:"caract\xe8re"}},70945:function(e,t,i){i.r(t),t.default={symbols:"תו מיוחד"}},49841:function(e,t,i){i.r(t),t.default={symbols:"Szimb\xf3lum"}},33295:function(e,t,i){i.r(t),t.default={symbols:"simbol"}},32824:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},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 S},ua:function(){return _},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(20741),o=i(3958),r=i(53437),s=i(56882),a=i(75703),l=i(49759),c=i(44730),u=i(70945),d=i(49841),h=i(33295),f=i(47615),p=i(83059),m=i(22396),g=i(58285),v=i(51804),b=i(53650),y=i(41369),w=i(57855),S=i(44328),_=i(91080),C=i(89702),k=i(66434)},47615:function(e,t,i){i.r(t),t.default={symbols:"Simbolo"}},83059:function(e,t,i){i.r(t),t.default={symbols:"symbol"}},22396:function(e,t,i){i.r(t),t.default={symbols:"기호"}},58285:function(e,t,i){i.r(t),t.default={symbols:"тэмдэгт"}},51804:function(e,t,i){i.r(t),t.default={symbols:"symbool"}},53650:function(e,t,i){i.r(t),t.default={symbols:"symbol"}},41369:function(e,t,i){i.r(t),t.default={symbols:"S\xedmbolo"}},57855:function(e,t,i){i.r(t),t.default={symbols:"символ"}},44328:function(e,t,i){i.r(t),t.default={symbols:"Sembol"}},91080:function(e,t,i){i.r(t),t.default={symbols:"символ"}},89702:function(e,t,i){i.r(t),t.default={symbols:"符号"}},66434:function(e,t,i){i.r(t),t.default={symbols:"符號"}},59495:function(e,t,i){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||(this.j.workplace.appendChild(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){var t;super(e),t=this,this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:i,replace:o,cancel:r,next:a,prev:c,replaceBtn:u,current:d,count:h}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=o,this.closeButton=r,this.replaceButton=u,this.currentBox=d,this.countBox=h,e.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).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",()=>(e.e.fire(this,"pressReplaceButton"),!1)).on(a,"pointerdown",()=>(e.e.fire("searchNext"),!1)).on(c,"pointerdown",()=>(e.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(()=>{let i=this.j.async.debounce(i=>{var o;return(o=function*(){i.key===n.KEY_ENTER?(yield e.e.fire("searchNext"))&&t.close():e.e.fire(t,"needUpdateCounters")},function(){var e=this,t=arguments;return new Promise(function(i,n){var r=o.apply(e,t);function s(e){l(r,i,n,s,a,"next",e)}function a(e){l(r,i,n,s,a,"throw",e)}s(void 0)})})()},this.j.defaultTimeout);return e=>{e.key===n.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),i(e)}})())}};c([(0,o.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([o.autobind],u.prototype,"open",null),c([o.autobind],u.prototype,"close",null),c([(0,o.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([o.component],u)},55311:function(e,t,i){i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){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 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};let d="table_processor_observer",h="onMoveTableSelectCell";class f 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||e.appendChild(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||e.appendChild(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(d))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(d),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>'),a.appendChild(o),this.j.async.setTimeout(()=>{var e;null==(e=o.parentNode)||e.removeChild(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 u=this.__tableModule.getSelectedBound(e,[l,this.__selectedCell]),d=this.__tableModule.formalMatrix(e),f=null==(n=d[u[1][0]])?void 0:n[u[1][1]],p=null==(o=d[u[0][0]])?void 0:o[u[0][1]];p&&f&&(this.j.e.fire("showPopup",e,()=>{let e=(0,a.position)(p,this.j),t=(0,a.position)(f,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),e.appendChild(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}}f.requires=["select"],u([o.autobind],f.prototype,"onStartSelection",null),u([(0,o.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),u([(0,o.watch)(":change")],f.prototype,"onChange",null),u([o.autobind],f.prototype,"__onRemoveSelection",null),u([o.autobind],f.prototype,"__onStopSelection",null),u([o.autobind],f.prototype,"onExecCommand",null),u([o.autobind],f.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",f)},67215:function(e,t,i){i(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,i){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 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 d 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 n=i.startContainer,o=n.parentNode;if(!r.Dom.isTag(o,"li")||!(o.querySelector("ul")||o.querySelector("ol")))return;let s=this.j.ed.createRange();s.selectNodeContents(n);let a=s.getBoundingClientRect();e.clientX>a.right&&t.setCursorAfter(n)}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"]}}u([o.autobind],d.prototype,"onStartSelection",null),u([(0,o.watch)("ow:click")],d.prototype,"onOutsideClick",null),u([(0,o.watch)([":beforeCommandCut"])],d.prototype,"beforeCommandCut",null),u([(0,o.watch)([":beforeCommandSelectall"])],d.prototype,"beforeCommandSelectAll",null),u([(0,o.watch)([":click"])],d.prototype,"onClickRightOfNestedListItem",null),u([(0,o.watch)([":click"])],d.prototype,"onClickKeepPendingFormat",null),u([(0,o.watch)([":click"])],d.prototype,"onTripleClickNormalizeSelection",null),u([(0,o.watch)([":copy",":cut"])],d.prototype,"onCopyNormalizeSelectionBound",null),s.pluginSystem.add("select",d)},80792:function(e,t,i){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){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,t;return((null==(e=this.j.toolbarContainer)?void 0:e.offsetHeight)||0)+((null==(t=this.j.statusbar)?void 0:t.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){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){i.d(t,{AceEditor:function(){return s}});var n=i(82758),o=i(21537),r=i(23370);class s extends r.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");this.container.appendChild(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.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 o=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",o).on("afterResize afterSetMode",o),o(),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,o.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,o.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){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}),this.container.appendChild(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(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0)}}},52968:function(e,t,i){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){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){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){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),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 d 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(){if(this.j.getRealMode()===n.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let e=this.getMirrorValue(),t=0,i=0;try{if(e=e.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 t=this.j.e.fire("beautifyHTML",e);(0,a.isString)(t)&&(e=t)}if(i=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){let t=e.indexOf(this.tempMarkerEnd);-1!==t&&(i=t)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,i),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"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{e.workplace.appendChild(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}}}u([(0,o.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([o.autobind],d.prototype,"fromWYSIWYG",null),u([o.autobind],d.prototype,"toWYSIWYG",null),u([o.autobind],d.prototype,"getNormalPosition",null),u([(0,o.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,o.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,o.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([o.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,o.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([o.autobind],d.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",d)},35599:function(e,t){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){var n=i(87612),o=i(70799),r=i(29960),s=i(86583),a=i(12153),l=i(6441),c=i(26532),u=i(93602),d=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",d.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:d,continuous:h,interimResults:f,sound:p}=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 u.RecognizeManager(e.async,t)).lang=(0,o.isString)(d)?d:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=f,m.sound=p,(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}}},85567:function(e,t,i){i.d(t,{PII:function(){return n},WARN:function(){return o}});let n=440,o=940},26532:function(e,t,i){i.d(t,{SpeechRecognition:function(){return o}});var n=i(82758);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0},54076:function(e,t,i){i.d(t,{execSpellCommand:function(){return n}});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)}},93602:function(e,t,i){i.d(t,{RecognizeManager:function(){return l}});var n=i(65478),o=i(72757),r=i(37643),s=i(85567),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 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),l._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,l._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(s.PII),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(s.WARN),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(s.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,l._instances.add(this)}}l._instances=new Set,a([n.autobind],l.prototype,"_onResults",null),a([n.autobind],l.prototype,"_onProgress",null),a([n.autobind],l.prototype,"_onError",null)},37643:function(e,t,i){i.d(t,{closeSound:function(){return a},sound:function(){return s}});var n=i(82758),o=i(85567);let r=new WeakMap;function s(e,{sec:t=.1,frequency:i=o.PII,gain:a=.1,type:l="sine"}={}){let c=function(e){if(!n.globalWindow)return null;let t=r.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let o=new i;return r.set(e,o),o}(e);if(!c)return;let u=c.createGain(),d=c.createOscillator();d.type=l,d.frequency.value=i,u.gain.value=a,d.connect(u),u.connect(c.destination),d.start(),d.stop(c.currentTime+t)}function a(e){let t=r.get(e);t&&(r.delete(e),"closed"!==t.state&&t.close())}},71705:function(e,t,i){i.r(t),t.default={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e,t,i){i.r(t),t.default={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,t,i){i.r(t),t.default={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e,t,i){i.r(t),t.default={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e,t,i){i.r(t),t.default={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e,t,i){i.r(t),t.default={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(e,t,i){i.r(t),t.default={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(e,t,i){i.r(t),t.default={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e,t,i){i.r(t),t.default={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,t,i){i.r(t),t.default={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},ko:function(){return m},mn:function(){return g},nl:function(){return v},no:function(){return b},pl:function(){return y},pt_br:function(){return w},ru:function(){return S},tr:function(){return _},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(71705),o=i(89930),r=i(34945),s=i(63134),a=i(66835),l=i(1115),c=i(59302),u=i(94141),d=i(24877),h=i(80651),f=i(62395),p=i(16407),m=i(37272),g=i(22113),v=i(22432),b=i(17081),y=i(30798),w=i(8661),S=i(19147),_=i(93620),C=i(40372),k=i(69874),E=i(88774)},62395:function(e,t,i){i.r(t),t.default={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e,t,i){i.r(t),t.default={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e,t,i){i.r(t),t.default={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e,t,i){i.r(t),t.default={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e,t,i){i.r(t),t.default={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e,t,i){i.r(t),t.default={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e,t,i){i.r(t),t.default={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e,t,i){i.r(t),t.default={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(e,t,i){i.r(t),t.default={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},93620:function(e,t,i){i.r(t),t.default={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(e,t,i){i.r(t),t.default={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e,t,i){i.r(t),t.default={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e,t,i){i.r(t),t.default={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,i){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),u=i(90492),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 h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(u),(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")),this.j.workplace.appendChild(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={}}}d([(0,n.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),d([(0,n.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259:function(e,t){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){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,t,i){i.r(t),t.default={Spellcheck:"التدقيق الإملائي"}},24351:function(e,t,i){i.r(t),t.default={Spellcheck:"Kontrola pravopisu"}},32806:function(e,t,i){i.r(t),t.default={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(e,t,i){i.r(t),t.default={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(e,t,i){i.r(t),t.default={Spellcheck:"غلطیابی املایی"}},42820:function(e,t,i){i.r(t),t.default={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e,t,i){i.r(t),t.default={Spellcheck:"V\xe9rification Orthographique"}},98370:function(e,t,i){i.r(t),t.default={Spellcheck:"בדיקת איות"}},44850:function(e,t,i){i.r(t),t.default={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(e,t,i){i.r(t),t.default={Spellcheck:"Spellchecking"}},26529:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},ko:function(){return m},mn:function(){return g},nl:function(){return v},no:function(){return b},pl:function(){return y},pt_br:function(){return w},ru:function(){return S},tr:function(){return _},ua:function(){return C},zh_cn:function(){return k},zh_tw:function(){return E}});var n=i(28906),o=i(24351),r=i(32806),s=i(77725),a=i(26428),l=i(42820),c=i(60373),u=i(98370),d=i(44850),h=i(3636),f=i(73220),p=i(55776),m=i(13995),g=i(6402),v=i(1879),b=i(1322),y=i(53361),w=i(70824),S=i(65140),_=i(42247),C=i(68891),k=i(63195),E=i(42107)},73220:function(e,t,i){i.r(t),t.default={Spellcheck:"Controllo ortografico"}},55776:function(e,t,i){i.r(t),t.default={Spellcheck:"スペルチェック"}},13995:function(e,t,i){i.r(t),t.default={Spellcheck:"맞춤법 검사"}},6402:function(e,t,i){i.r(t),t.default={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e,t,i){i.r(t),t.default={Spellcheck:"Spellingcontrole"}},1322:function(e,t,i){i.r(t),t.default={Spellcheck:"Stavekontroll"}},53361:function(e,t,i){i.r(t),t.default={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e,t,i){i.r(t),t.default={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(e,t,i){i.r(t),t.default={Spellcheck:"Проверка орфографии"}},42247:function(e,t,i){i.r(t),t.default={Spellcheck:"Yazım denetimi"}},68891:function(e,t,i){i.r(t),t.default={Spellcheck:"Перевірка орфографії"}},63195:function(e,t,i){i.r(t),t.default={Spellcheck:"拼写检查"}},42107:function(e,t,i){i.r(t),t.default={Spellcheck:"拼字檢查"}},43809:function(e,t,i){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){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){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){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){var n=i(6441);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,i){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 u 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"),this.j.container.insertBefore(this.__dummyBox,e)},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)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,i){var n=i(12153),o=i(6441),r=i(5119);o.Config.prototype.usePopupForSpecialCharacters=!1,o.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","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],n.Icon.set("symbols",r.default),o.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,i)=>{let n=e.e.fire("generateSpecialCharactersTable.symbols");if(n){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),t.appendChild(n),e.e.on(n,"close_dialog",i),t}e.alert(n,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.querySelector("a");t&&t.focus()}}}},20741:function(e,t,i){i.r(t),t.default={symbols:"رمز"}},3958:function(e,t,i){i.r(t),t.default={symbols:"symbol"}},53437:function(e,t,i){i.r(t),t.default={symbols:"Symbol"}},56882:function(e,t,i){i.r(t),t.default={symbols:"S\xedmbolo"}},75703:function(e,t,i){i.r(t),t.default={symbols:"سمبل"}},49759:function(e,t,i){i.r(t),t.default={symbols:"Symbolit"}},44730:function(e,t,i){i.r(t),t.default={symbols:"caract\xe8re"}},70945:function(e,t,i){i.r(t),t.default={symbols:"תו מיוחד"}},49841:function(e,t,i){i.r(t),t.default={symbols:"Szimb\xf3lum"}},33295:function(e,t,i){i.r(t),t.default={symbols:"simbol"}},32824:function(e,t,i){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 u},hu:function(){return d},id:function(){return h},it:function(){return f},ja:function(){return p},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 S},ua:function(){return _},zh_cn:function(){return C},zh_tw:function(){return k}});var n=i(20741),o=i(3958),r=i(53437),s=i(56882),a=i(75703),l=i(49759),c=i(44730),u=i(70945),d=i(49841),h=i(33295),f=i(47615),p=i(83059),m=i(22396),g=i(58285),v=i(51804),b=i(53650),y=i(41369),w=i(57855),S=i(44328),_=i(91080),C=i(89702),k=i(66434)},47615:function(e,t,i){i.r(t),t.default={symbols:"Simbolo"}},83059:function(e,t,i){i.r(t),t.default={symbols:"symbol"}},22396:function(e,t,i){i.r(t),t.default={symbols:"기호"}},58285:function(e,t,i){i.r(t),t.default={symbols:"тэмдэгт"}},51804:function(e,t,i){i.r(t),t.default={symbols:"symbool"}},53650:function(e,t,i){i.r(t),t.default={symbols:"symbol"}},41369:function(e,t,i){i.r(t),t.default={symbols:"S\xedmbolo"}},57855:function(e,t,i){i.r(t),t.default={symbols:"символ"}},44328:function(e,t,i){i.r(t),t.default={symbols:"Sembol"}},91080:function(e,t,i){i.r(t),t.default={symbols:"символ"}},89702:function(e,t,i){i.r(t),t.default={symbols:"符号"}},66434:function(e,t,i){i.r(t),t.default={symbols:"符號"}},59495:function(e,t,i){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,4 +251,4 @@
|
|
|
251
251
|
data-index-j="${n}"
|
|
252
252
|
role="option"
|
|
253
253
|
tabindex="-1"
|
|
254
|
-
>${e.o.specialCharacters[t]}</a>`);a.push(r),o.appendChild(r),i.appendChild(o)}r.appendChild(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){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){i.d(t,{onTabInsideLi:function(){return n.onTabInsideLi}});var n=i(26658)},26658:function(e,t,i){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,u]=(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,u=!!(i=n.Dom.closest(c,"li",e.editor))&&(!!t||!!n.Dom.isLeaf(i.previousElementSibling))&&(!t||!!n.Dom.closest(i,"li",e.editor))&&i;if(!u||!(r=n.Dom.closest(c,"li",e.editor))||r!==u&&!u.contains(r))return!1;let d=n.Dom.closest(u,["ol","ul"],e.editor);if(!d||t&&!n.Dom.closest(d,"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,d,u):(s=u.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,(l=n.Dom.isTag(a,d.tagName)?a:e.createInside.element(d.tagName,Array.from(d.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}))).appendChild(u),a!==l&&s.appendChild(l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(u),e.s.selectRange(t),n.Dom.safeRemove(c),n.Dom.safeRemove(u)}}},66288:function(e,t,i){i(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,i){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){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),u=o.Dom.closest(r,"table",e.editor),d=null,h=i===n.KEY_LEFT||t.shiftKey,f=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,u);switch(i){case n.KEY_TAB:case n.KEY_LEFT:(d=f())||(c.appendRow(u,!!h&&u.querySelector("tr"),!h),d=f());break;case n.KEY_UP:case n.KEY_DOWN:{let e=c.formalMatrix(u),[t,o]=c.formalCoordinate(u,r);i===n.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][o]):void 0!==e[t+1]&&(d=e[t+1][o])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)i===n.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,i===n.KEY_RIGHT||i===n.KEY_DOWN);else{let t=e.createInside.element("br");d.appendChild(t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,i){var n=i(22732),o=i(21537),r=i(43555),s=i(12153),a=i(6441),l=i(6091);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},s.Icon.set("table",l.default),a.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,s)=>{e.editor.normalize();let a=e.history.snapshot.make(),l=s.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,d=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(l.data){let e=l.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>'),h=d.querySelectorAll("span")[0],f=d.querySelectorAll("span")[1],p=d.querySelector(".jodit-form__container"),m=d.querySelector(".jodit-form__options"),g=[],v=c*u;for(let t=0;t<v;t+=1)g[t]||g.push(e.c.element("span",{dataIndex:t}));if(e.e.on(p,"mousemove",(e,t)=>{let i=e.target;if(!n.Dom.isTag(i,"span"))return;let o=void 0===t||isNaN(t)?parseInt((0,r.attr)(i,"-index")||"0",10):t||0,s=Math.ceil((o+1)/u),a=o%u+1;for(let e=0;e<g.length;e+=1)a>=e%u+1&&s>=Math.ceil((e+1)/u)?g[e].className="jodit_hovered":g[e].className="";f.textContent=a.toString(),h.textContent=s.toString()}).on(p,"touchstart mousedown",t=>{let s=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!n.Dom.isTag(s,"span"))return;let l=parseInt((0,r.attr)(s,"-index")||"0",10),c=Math.ceil((l+1)/u),d=l%u+1,h=e.createInside,f=h.element("tbody"),p=h.element("table");p.appendChild(f);let g=null,v,b;for(let e=1;c>=e;e+=1){v=h.element("tr");for(let e=1;e<=d;e+=1)b=h.element("td"),g||(g=b),(0,o.css)(b,"width",(100/d).toFixed(4)+"%"),b.appendChild(h.element("br")),v.appendChild(h.text("\n")),v.appendChild(h.text(" ")),v.appendChild(b);f.appendChild(h.text("\n")),f.appendChild(v)}(0,o.$$)("input[type=checkbox]:checked",m).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(a);let y=n.Dom.furthest(e.s.current(),n.Dom.isBlock,e.editor);if(y&&n.Dom.isEmpty(y))n.Dom.replace(y,p,void 0,!1,!0);else if(y){let t=h.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 o=e.s.splitSelection(y,t);o?n.Dom.after(o,p):n.Dom.after(y,p)}else n.Dom.after(y,t),n.Dom.after(t,p)}else e.s.insertNode(p,!1);g&&(e.s.setCursorIn(g),(0,o.scrollIntoViewIfNeeded)(g,e.editor,e.ed)),i()}),s&&s.parentElement){for(let t=0;t<c;t+=1){let i=e.c.div();for(let e=0;e<u;e+=1)i.appendChild(g[t*u+e]);p.appendChild(i)}g[0]&&(g[0].className="hovered")}return d},tooltip:"Insert table"}},43003:function(e,t,i){var n=i(580);i(40329),n.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){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){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=[],u=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;u((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=>{u(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){var n=i(580);i(14984),n.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){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){i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){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")?i.appendChild(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;n.appendChild(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){i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),u=i(80870),d=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 u.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,d.makeButton)(this.j,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({name:"selectall"},this.j.o.controls.selectall)),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},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&&this.container.insertBefore(n,this.container.firstChild))},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){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){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){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){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){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){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){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){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){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){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){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){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){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){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 u.default},chevron:function(){return d.default},dots:function(){return h.default},eye:function(){return f.default},file:function(){return p.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 S.default},resize_handler:function(){return _.default},right:function(){return C.default},save:function(){return k.default},settings:function(){return E.default},unlock:function(){return I.default},update:function(){return T.default},upload:function(){return D.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),u=i(7903),d=i(58032),h=i(52507),f=i(43478),p=i(60097),m=i(49155),g=i(17176),v=i(57882),b=i(58908),y=i(24829),w=i(4038),S=i(45575),_=i(84858),C=i(445),k=i(36886),E=i(10766),I=i(33651),T=i(20362),D=i(12202),j=i(80152)},17176:function(e,t){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){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){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){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){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){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){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){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){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){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){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){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){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){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> '},31356:function(e,t,i){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 u=[],d=[],h=[],f=[];return t.forEach((e,t)=>{let i=n(e),l=s.get(i);l?!o(l,e)||r&&a.get(i)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):f.push(l):u.push(e)}),e.forEach(e=>{let t=n(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:f}}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){i.d(t,{JoditPro:function(){return l}});var n=i(77688),o=i(82758),r=i(63799),s=i(41180),a=i(86019);class l extends a.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(o.IS_PROD&&!o.IS_TEST&&this.o.loadExternalConfig)return(0,r.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(0,n._)(function*(){if((yield 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>');o.IS_TEST||o.IS_PROD,(0,s.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}}).call(this).catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+o.APP_VERSION}}},44864:function(e,t,i){i.r(t),i.d(t,{autocomplete:function(){return g}});var n=i(77688),o=i(82749),r=i(56075),s=i(31635);i(53586);var a=i(83725),l=i(64199),c=i(82758),u=i(65478),d=i(2748),h=i(21537),f=i(50911),p=i(56917),m=i(2692);class g extends f.Plugin{get list(){let e=new a.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new p.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let i=t.value;(0,h.isFunction)(t.insertValueRenderer)&&(i=t.insertValueRenderer(t)),d.Dom.isNode(i)||(i=e.createInside.fromHTML(i)),(0,l.replaceTextLeftOfCursorAfterSpace)(e.s.range,i),this.j.s.setCursorAfter(i),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===c.KEY_DOWN||e===c.KEY_UP||e===c.KEY_ENTER||e===c.KEY_TAB}onKeyDown(e){return(0,n._)(function*(){var t,i;if(e.key===c.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:n}=this.j;if(g.isControlKey(e.key)||!n.isInsideArea||!n.isCollapsed)return;let o=(null==(t=this.j.s.sel)?void 0:t.rangeCount)?null==(i=this.j.s.sel)?void 0:i.getRangeAt(0):null,r=o&&(0,l.getTextLeftOfCursor)(o).split(" ").pop();if(r&&(0,h.trim)(r).length){let e=yield this.onAutoComplete(r);if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}).call(this)}onKeyControlDown(e){if(this.popup.isOpened&&g.isControlKey(e.key)){switch(e.key){case c.KEY_DOWN:this.list.selectNext();break;case c.KEY_UP:this.list.selectPrevious();break;case c.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}onAutoComplete(e){return(0,n._)(function*(){let t=[];return yield Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(i=>(0,n._)(function*(){t.push(...yield this.resolveFeed(e,i))}).call(this))),t}).call(this)}resolveFeed(e,t,i){return(0,n._)(function*(){let n;if((0,h.isPromise)(t)&&(t=yield t),(0,h.isFunction)(t))n=yield t(e);else if((0,h.isArray)(t)){let i=t,{isMatchedQuery:o}=this.j.o.autocomplete;n=i.filter(t=>(0,h.isString)(t)?o(e,t):o(e,t.value)).map(e=>(0,h.isString)(e)?{title:e,value:e}:e)}else n=yield this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(n&&(0,h.isArray)(n)){let{itemRenderer:e,insertValueRenderer:t,maxItems:o}=this.j.o.autocomplete;return(n=n.map(n=>{var o,s;return(0,r._)({itemRenderer:null!=(o=null==i?void 0:i.itemRenderer)?o:e,insertValueRenderer:null!=(s=null==i?void 0:i.insertValueRenderer)?s:t},n)})).slice(0,o)}return[]}).call(this)}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),i={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,h.position)(e.iframe,e);i.top+=t.top,i.left+=t.left}return i})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,o._)(this,"hasStyle",!m.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(g,"requires",["enter","license"]),(0,s.__decorate)([u.cache],g.prototype,"list",null),(0,s.__decorate)([u.cache],g.prototype,"popup",null),(0,s.__decorate)([u.autobind],g.prototype,"registerAutocompleteSource",null),(0,s.__decorate)([u.autobind],g.prototype,"unregisterAutocompleteSource",null),(0,s.__decorate)([(0,u.debounce)()],g.prototype,"onKeyDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onKeyControlDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onEnter",null),(0,s.__decorate)([u.autobind],g.prototype,"onAutoComplete",null),(0,s.__decorate)([u.autobind],g.prototype,"resolveFeed",null),m.JoditPro.plugins.add("autocomplete",g)},53586:function(e,t,i){i(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>{var t;return null!=(t=e.title)?t:e.value},insertValueRenderer:e=>e.value+" "}},64199:function(e,t,i){i.d(t,{getTextLeftOfCursor:function(){return o},replaceTextLeftOfCursorAfterSpace:function(){return r}});var n=i(2748);function o(e){var t,i,o,r;let{startContainer:s,startOffset:a}=e;if(n.Dom.isText(s))return null!=(t=null==(i=s.nodeValue)?void 0:i.substr(0,a))?t:"";let l=s.childNodes[a];if(!l)return"";if(n.Dom.isText(l))return null!=(o=l.nodeValue)?o:"";let c=n.Dom.findNotEmptyNeighbor(l,!0,s);return n.Dom.isText(c)&&null!=(r=l.nodeValue)?r:""}function r(e,t){var i,o,r;let{startContainer:s,startOffset:a}=e;if(!n.Dom.isText(s)&&(s=s.childNodes[a-1],n.Dom.isText(s)&&(a=null!=(i=null==(o=s.nodeValue)?void 0:o.length)?i:0)),n.Dom.isText(s)){let i=null!=(r=s.nodeValue)?r:"",n=i.substring(0,a),o=i.substring(a),l=n.split(" ");l[l.length-1]="";let c=l.join(" ");s.nodeValue=c+o,e.setStart(s,c.length),e.insertNode(t);return}}},83725:function(e,t,i){i.d(t,{Autocomplete:function(){return c}});var n=i(82749),o=i(31635),r=i(31356),s=i(35934),a=i(65478),l=i(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){var t;let i=null==(t=this.elements[this.currentSelection])?void 0:t.item.value,n=e=>e.value,o=r.ListReconciler.reconcile(this.__previousList,e,{getId:n}),a=new Set;o.toRemove.forEach(e=>{let t=n(e);if(a.has(t))return;a.add(t);let i=this.itemsMap.get(t);i&&(-1!==this.elements.indexOf(i)&&(this.remove(i),i.destruct()),this.itemsMap.delete(e.value))}),o.toCreate.forEach(t=>{let i=n(t);if(a.has(i))return;a.add(i);let o=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>n(e)===t),this.select()});this.itemsMap.set(i,o);let r=e.indexOf(t);this.append(o,r)}),o.toUpdate.forEach(({newItem:e,index:t})=>{let i=n(e);if(a.has(i))return;a.add(i);let o=this.itemsMap.get(i);o&&(o.item=e,this.elements.indexOf(o)!==t&&t<this.elements.length&&(this.remove(o),this.append(o,t)))});let l=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>n(e)===i)),l===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,n._)(this,"elements",[]),(0,n._)(this,"currentSelection",-1),(0,n._)(this,"displayMode","list"),(0,n._)(this,"__previousList",[]),(0,n._)(this,"itemsMap",new Map)}}(0,o.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,o.__decorate)([a.component],c)},35934:function(e,t,i){i.d(t,{AutocompleteItem:function(){return l}});var n=i(82749),o=i(31635),r=i(65478),s=i(27613),a=i(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,i){super(e),(0,n._)(this,"item",void 0),(0,n._)(this,"onClick",void 0),(0,n._)(this,"value",void 0),(0,n._)(this,"shortcutElm",void 0),this.item=t,this.onClick=i,this.value="",this.shortcutElm=null;const{container:o}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){const e=t.itemRenderer(t);(0,s.isString)(e)?o.innerHTML=e:o.appendChild(e)}else{var r;o.innerText=null!=(r=t.title)?r:t.value}}}(0,o.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,o.__decorate)([r.component],l)},12373:function(e,t,i){i(25187),i(58858),i(21246),i(44864),i(3115)},38882:function(e,t,i){i.d(t,{isAllowedSubdomain:function(){return o},validateLicense:function(){return function e(t,i){var n;let r;if(n=t=String(t).toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(n)||o(i))return!0;let s=(r=i.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]"));if(RegExp(`^${a.join("-")}$`,"i").test(t))return!0;let l=i.split(".");return l.shift(),l.length>1&&e(t,l.join("."))}}});let n=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function o(e){return n.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,i){i.d(t,{license:function(){return d}});var n=i(77688),o=i(38882),r=i(82758),s=i(2748),a=i(87612),l=i(70799),c=i(20356),u=i(2692);class d extends c.Plugin{static make(e){return new d(e)}afterInit(e){this.j.e.on("checkReserve",e=>(0,n._)(function*(){let t=this.j.o.license;if((0,o.isAllowedSubdomain)(e))return"normal";if(!t||!(0,l.isString)(t))return"";let i=(0,o.validateLicense)(t,e);return i||r.IS_TEST||(i=yield this.validateLicenseRemote(t,e)),i?"normal":""}).call(this))}beforeDestruct(e){}validateLicenseRemote(e,t){return(0,n._)(function*(){let i="validateJoditLicenseRemote",n=this.j.storage.get(i);if(n&&(0,o.validateLicense)(n,t))return!0;let r=document.createElement("script");return r.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,this.j.async.promise(e=>{let n=!1,l=t=>{n||(n=!0,s.Dom.safeRemove(r),e(t))};window.onJoditResolveKeyCode=e=>{if((0,a.isBoolean)(e))return l(e);(0,o.validateLicense)(e,t)?(this.j.storage.set(i,e),l(!0)):l(!1)},r.onerror=()=>l(!0),document.body.appendChild(r),this.j.async.setTimeout(()=>l(!0),5e3)})}).call(this)}}u.JoditPro.plugins.add("license",d)},20823:function(e,t,i){i.d(t,{cleanStyles:function(){return o}});let n={"text-justify":["inter-ideograph"]};function o(e){return e.isElement&&e.attributes.style&&Object.keys(n).forEach(t=>{let i=n[t];if(e.style.has(t)){var o;i.includes(null==(o=e.style.get(t))?void 0:o.toString())&&e.style.set(t,null)}}),e}},47064:function(e,t,i){i.d(t,{clearAttributes:function(){return o}});let n=["cellspacing","cellpadding","border","v:shapes","o:spid"];function o(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),n))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,i){i.d(t,{clearClassName:function(){return o}});var n=i(49055);let o=e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,n.trim)(e.attributes.class)||(e.attributes.class=null)),e)},53585:function(e,t,i){i.d(t,{convertStyleUnitToPixels:function(){return o}});var n=i(43712);let o=(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:i}=e;return i.forEach(e=>{let t=i.get(e);t&&i.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,n.convertUnitToPx)(e)+"px"))}),e}},80591:function(e,t,i){i.d(t,{convertToList:function(){return l}});var n=i(82758),o=i(10058),r=i(97420),s=i(31269),a=i(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let h=c(e),f=/[\da-np-zA-NP-Z].?/.test(h)?"ol":"ul",p=function(e,t){for(let t in o.listStyleMap)if(RegExp(t).test(e))return o.listStyleMap[t];return"ol"===t?"decimal":"disc"}(h,f);e.attributes[o.TYPE_KEY]=f,e.attributes[o.STYLE_KEY]=p,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:m}=e;if(!(0,r.isList)(m)||!(0,r.isSameType)(e,m)){var t,i,n,l,u,d;let s,c=(t=e,i=f,n=h,l=p,(s=t.wrap(i)).attributes.start=(0,a.calcStartBySymbol)(n),s.attributes[o.LEVEL_KEY]=t.attributes[o.LEVEL_KEY],s.attributes[o.STYLE_KEY]=t.attributes[o.STYLE_KEY],s.attributes[o.STYLE_VALID_KEY]=t.attributes[o.STYLE_KEY],s.style.set(o.STYLE_CSS_KEY,l),(0,r.isList)(s)&&(null==(u=s.parent)?void 0:u.name)!=="li"&&("disc"===s.style.get(o.STYLE_CSS_KEY)||"decimal"===s.style.get(o.STYLE_CSS_KEY))&&s.style.set(o.STYLE_CSS_KEY,null),s);if((0,r.isList)(m)){c.remove(),null==(d=m.lastElement)||d.append(c)}}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/ /g,"").replace((0,n.SPACE_REG_EXP)(),"")},64693:function(e,t,i){i.d(t,{cases:function(){return g}});var n=i(20823),o=i(47064),r=i(41157),s=i(53585),a=i(80591),l=i(98940),c=i(72621),u=i(1580),d=i(18616),h=i(84021),f=i(69994),p=i(76059),m=i(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,p.replaceOldTags,o.clearAttributes,a.convertToList,d.processLinks,f.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,n.cleanStyles]},98940:function(e,t,i){i.d(t,{markPageBreakElements:function(){return n}});let n=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)},72621:function(e,t,i){i.d(t,{normalizeImageProps:function(){return n}});let n=e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)},1580:function(e,t,i){i.d(t,{processImage:function(){return o}});var n=i(21537);let o=(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let i=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,n.toArray)(i.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){var i,o;let n=null==(i=t.shapes)?void 0:i[e.attributes["v:shapes"]];if(n){let i=null!=(o=t.imageMap)?o:{};t.imageMap||(t.imageMap=i,r(t.rtf,"i","\\shppict",t.imageMap),r(t.rtf,"s","\\shp{",t.imageMap));let s=i[n.substring(7)];if(s){let t=[],i=s.hex.match(/[0-9a-f]{2}/gi);if(i){for(let e=0;e<i.length;e++){let n=parseInt(i[e],16);t.push(String.fromCharCode(n))}e.attributes.src="data:"+s.type+";base64,"+btoa(t.join(""))}}}}return e};function r(e,t,i,n){for(let o of e.split(i)){let e=o.split("shplid");if(1<e.length){let i,o=e[1],r="";for(let e=0;e<o.length&&!/[{ \r\n\\]/.test(o[e]);e++)r+=o[e];let s=o.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))i=l[1].split(" ");else{if((i=l[0].split(" "))&&i.length<2)continue;i.shift()}n[t+r]={hex:i.join(""),type:a}}}}},18616:function(e,t,i){i.d(t,{processLinks:function(){return n}});let n=(e,t)=>{var i;let n=null!=(i=t.links)?i:{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(n[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&n[e.attributes.name]){let t=n[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=n,e}},84021:function(e,t,i){i.d(t,{removeExtraTags:function(){return o}});let n=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function o(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||n.has(e.name)?(e.remove(),null):e}},69994:function(e,t,i){i.d(t,{removeInsideComment:function(){return r}});var n=i(99658);let o=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,n.html)(e))&&(o++,e.remove()),e.isComment&&o>0&&(0,n.html)(e).includes("[endif]")&&(o=o>0?o-1:0,e.remove()),o&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,i){i.d(t,{replaceOldTags:function(){return o}});let n={i:"em",b:"strong"};function o(e){let{name:t}=e;return t in n&&(e.name=n[t]),e}},21357:function(e,t,i){i.d(t,{removeWidthFromTableCell:function(){return n}});let n=e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)},13085:function(e,t,i){i(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,i){i.d(t,{LEVEL_KEY:function(){return n},STYLE_CSS_KEY:function(){return a},STYLE_KEY:function(){return r},STYLE_VALID_KEY:function(){return s},TYPE_KEY:function(){return o},listStyleMap:function(){return l}});let n="jd-list-level",o="jd-list-type",r="jd-list-style-type",s="data-list-style-type",a="list-style-type",l={"\xb7":"disc",o:"circle","\xa7":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(e,t,i){i.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var n=i(99658),o=i(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,n.html)(e).includes("supportLists")).length}function l(e,t){let i=e.attributes[o.TYPE_KEY],n=e.attributes[o.STYLE_KEY];return t.name===i&&t.attributes[o.STYLE_KEY]===n&&e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]}},42968:function(e,t,i){i.d(t,{JElement:function(){return u}});var n=i(82749),o=i(99658),r=i(40273),s=i(82758),a=i(2748),l=i(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){var t;(0,l.assert)(null!=this.parent,"You can't wrap the root element");let i=u.make(document.createElement(e),this.parent),n=null!=(t=this.parent.children.indexOf(this))?t:-1;return -1===n?this.parent.append(i):this.parent.children[n]=i,i.append(this),i}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let i=t-1;i>=0;i-=1)if(e[i].isElement)return e[i]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){var e,t,i;return null!=(e=null!=(t=this.sibling(!1))?t:null==(i=this.parent)?void 0:i.previous)?e:null}get next(){var e,t,i;return null!=(e=null!=(t=this.sibling(!0))?t:null==(i=this.parent)?void 0:i.next)?e:null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);return -1!==i&&t[i+(e?1:-1)]?t[i+(e?1:-1)]:null}forEach(e,t=!1){for(let i of[...this.children])if(!1===e(i)||t&&!1===i.forEach(e,!0))return!1}find(e,t=!0){let i=[];return this.forEach(t=>{e(t)&&i.push(t)},t),i}map(e){return this.children.map(e)}remove(){var e,t;let i=null==(e=this.parent)?void 0:e.children.indexOf(this);return null!=i&&-1!==i&&(null==(t=this.parent)||t.children.splice(i,1)),this}textBetween(e,t){let i=!1,n=[];return this.forEach(r=>{if(!i&&e(r)&&(i=!0),i&&r.isText&&n.push((0,o.html)(r)),i&&t(r))return!1},!0),n.join("")}constructor(e,t){(0,n._)(this,"parent",void 0),(0,n._)(this,"name",void 0),(0,n._)(this,"type",void 0),(0,n._)(this,"attributes",void 0),(0,n._)(this,"style",void 0),(0,n._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let i=0,n=e.attributes;i<n.length;i+=1)t[n[i].name]=n[i].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,i){i.d(t,{JElement:function(){return o.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return n.isLeaf},isList:function(){return n.isList},isPseudoLeaf:function(){return n.isPseudoLeaf},isSameType:function(){return n.isSameType}});var n=i(18594),o=i(42968),r=i(99658)},99658:function(e,t,i){i.d(t,{html:function(){return s},innerHTML:function(){return l}});var n=i(82758),o=i(87612),r=i(49055);function s(e,t=()=>!0,i=!0,o){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:i}=e.attributes;return e.isComment?`<!--${i}-->`:i}case e.isElement:{let{attributes:n}=e,r=l(e,t,i,o);if(!e.attributes["jd-safe"]&&i&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(n).map(e=>"style"===e||null==n[e]||/^jd-/.test(e)?"":`${e}="${c(n[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,o)));if(d&&s.push(`style="${d}"`),i&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!n.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){var i;let n=null==(i=a.cache.get(t))?void 0:i.get(e);if((0,o.isBoolean)(n))return n}let n=t.some(t=>new RegExp(t).test(e)),r=a.cache.get(t)||new Map;return r.set(e,n),a.cache.set(t,r),n}function l(e,t=()=>!0,i=!0,n){let o=e.map(e=>s(e,t,i,n)).join("");return"p"===e.name&&0===(0,r.trim)(o).length&&(o=" "),o}function c(e){return e.toString().replace(/"/g,""")}a.cache=new WeakMap},40273:function(e,t,i){i.d(t,{Style:function(){return u}});var n=i(82749),o=i(31635),r=i(45219),s=i(70799),a=i(12475),l=i(49055),c=i(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){var t;return null!=(t=this._data[e])?t:null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),i=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let n=t.indexOf(e),o=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<n||i(o[s])===i(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,n._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},i=[];for(let n=e.length-1;n>=0;n-=1){let o=e[n][0];t[o]||(t[o]=!0,i.unshift(e[n]))}return i})((null!=e?e:"").replace(/"/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,i])=>(t&&i&&(e[t]=i),e),{})}(0,o.__decorate)([r.autobind],u.prototype,"forEach",null),(0,o.__decorate)([r.autobind],u.prototype,"clear",null),(0,o.__decorate)([r.autobind],u.prototype,"set",null),(0,o.__decorate)([r.autobind],u.prototype,"get",null),(0,o.__decorate)([r.autobind],u.prototype,"has",null),(0,o.__decorate)([r.autobind],u.prototype,"add",null),(0,o.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,i){i.d(t,{applyStylesPro:function(){return l}});var n=i(19606),o=i(2748),r=i(29960),s=i(76078),a=i(97420);function l(e,t,i,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{var d,h;let o=null!=(d=u.contentDocument)?d:null==(h=u.contentWindow)?void 0:h.document;if(!o)return t;o.open(),o.write(t),o.close();let l="jd-style";for(let e=0;e<o.styleSheets.length;e+=1)try{let t=o.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,o.body).forEach(i=>{(0,r.attr)(i,l)||((0,r.attr)(i,l,(0,r.attr)(i,"style")||""),(0,r.attr)(i,"style","")),(0,r.attr)(i,"style",`${(0,r.attr)(i,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,o.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,n.transformWordToHtml)(e,a.JElement.make(o.body),i,c)}finally{o.Dom.safeRemove(u)}}},31269:function(e,t,i){i.d(t,{calcListLevels:function(){return s}});var n=i(43712),o=i(10058),r=i(97420);function s(e){if(void 0!==e.attributes[o.LEVEL_KEY])return;let t=[(0,n.realPixelIndent)(e)],i=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[o.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,n.realPixelIndent)(s);e&&(t.push(e),i.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),i.forEach((e,t)=>{e.attributes[o.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,n.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,i){let n;function o(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;n||(Object.assign((n=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(n),setTimeout(()=>{null==n||n.remove(),n=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),n.style.width=e;let i=n.clientWidth;return t?-i:i}function s(e){let{style:t}=e,i=t.keys.filter(e=>/margin/.test(e)),n=Math.max(i.indexOf("margin-left"),i.indexOf("margin")),s=n>0?i[n]:"margin-left";return r("margin"===s?o(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}i.d(t,{calcMarginParts:function(){return o},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,i){i.d(t,{applyStylesPro:function(){return n.applyStylesPro}});var n=i(51586);i(31269),i(19606)},19606:function(e,t,i){i.d(t,{transformWordToHtml:function(){return s}});var n=i(49055),o=i(64693),r=i(97420);function s(e,t,i,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of o.cases)if(null==(t=e(t,a)))break;null==t||t.forEach(e)}}),i&&t.forEach(e=>{e.style.clear()},!0),(0,n.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,i){i.r(t),i.d(t,{PasteFromWordPro:function(){return u}});var n=i(82749);i(13085);var o=i(30717),r=i(82758),s=i(70799),a=i(117),l=i(31571),c=i(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,i,n){if(this.j.o.pasteFromWord.enable&&(i===r.INSERT_AS_HTML||i===r.INSERT_AS_TEXT)){if(t=(0,o.applyStylesPro)(this.j,t,i===r.INSERT_AS_TEXT,n.rtf),this.j.o.beautifyHTML){var l;let e=null==(l=this.j.events)?void 0:l.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,i,n)}}(0,n._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},77688:function(e,t,i){function n(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,i=arguments;return new Promise(function(o,r){var s=e.apply(t,i);function a(e){n(s,o,r,a,l,"next",e)}function l(e){n(s,o,r,a,l,"throw",e)}a(void 0)})}}i.d(t,{_:function(){return o}})},82749:function(e,t,i){i.d(t,{_:function(){return n}});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}},56075:function(e,t,i){i.d(t,{_:function(){return o}});var n=i(82749);function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},o=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),o.forEach(function(t){(0,n._)(e,t,i[t])})}return e}},31635:function(e,t,i){function n(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}i.d(t,{__decorate:function(){return n}}),"function"==typeof SuppressedError&&SuppressedError}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e].call(i.exports,i,i.exports,s),i.exports}s.m=o,e=[],s.O=function(t,i,n,o){if(i){o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[i,n,o];return}for(var a=1/0,r=0;r<e.length;r++){for(var i=e[r][0],n=e[r][1],o=e[r][2],l=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(s.O).every(function(e){return s.O[e](i[c])})?i.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(r--,1);var u=n();void 0!==u&&(t=u)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t={521:0},s.O.j=function(e){return 0===t[e]},i=function(e,i){var n,o,r=i[0],a=i[1],l=i[2],c=0;if(r.some(function(e){return 0!==t[e]})){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var u=l(s)}for(e&&e(i);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(u)},(n=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var a={};s.r(a),s.d(a,{Jodit:function(){return c.JoditPro}}),s(12373);var l=s(31356),c=s(2692);return c.JoditPro.plugins.add("poweredByJodit",function(){}),c.JoditPro.modules.ListReconciler=l.ListReconciler,a=s.O(a)}()});
|
|
254
|
+
>${e.o.specialCharacters[t]}</a>`);a.push(r),o.appendChild(r),i.appendChild(o)}r.appendChild(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){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){i.d(t,{onTabInsideLi:function(){return n.onTabInsideLi}});var n=i(26658)},26658:function(e,t,i){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,u]=(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,u=!!(i=n.Dom.closest(c,"li",e.editor))&&(!!t||!!n.Dom.isLeaf(i.previousElementSibling))&&(!t||!!n.Dom.closest(i,"li",e.editor))&&i;if(!u||!(r=n.Dom.closest(c,"li",e.editor))||r!==u&&!u.contains(r))return!1;let d=n.Dom.closest(u,["ol","ul"],e.editor);if(!d||t&&!n.Dom.closest(d,"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,d,u):(s=u.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,(l=n.Dom.isTag(a,d.tagName)?a:e.createInside.element(d.tagName,Array.from(d.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}))).appendChild(u),a!==l&&s.appendChild(l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(u),e.s.selectRange(t),n.Dom.safeRemove(c),n.Dom.safeRemove(u)}}},66288:function(e,t,i){i(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,i){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){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),u=o.Dom.closest(r,"table",e.editor),d=null,h=i===n.KEY_LEFT||t.shiftKey,f=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,u);switch(i){case n.KEY_TAB:case n.KEY_LEFT:(d=f())||(c.appendRow(u,!!h&&u.querySelector("tr"),!h),d=f());break;case n.KEY_UP:case n.KEY_DOWN:{let e=c.formalMatrix(u),[t,o]=c.formalCoordinate(u,r);i===n.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][o]):void 0!==e[t+1]&&(d=e[t+1][o])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)i===n.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,i===n.KEY_RIGHT||i===n.KEY_DOWN);else{let t=e.createInside.element("br");d.appendChild(t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,i){var n=i(22732),o=i(21537),r=i(43555),s=i(12153),a=i(6441),l=i(6091);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},s.Icon.set("table",l.default),a.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,s)=>{e.editor.normalize();let a=e.history.snapshot.make(),l=s.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,d=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(l.data){let e=l.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>'),h=d.querySelectorAll("span")[0],f=d.querySelectorAll("span")[1],p=d.querySelector(".jodit-form__container"),m=d.querySelector(".jodit-form__options"),g=[],v=c*u;for(let t=0;t<v;t+=1)g[t]||g.push(e.c.element("span",{dataIndex:t}));if(e.e.on(p,"mousemove",(e,t)=>{let i=e.target;if(!n.Dom.isTag(i,"span"))return;let o=void 0===t||isNaN(t)?parseInt((0,r.attr)(i,"-index")||"0",10):t||0,s=Math.ceil((o+1)/u),a=o%u+1;for(let e=0;e<g.length;e+=1)a>=e%u+1&&s>=Math.ceil((e+1)/u)?g[e].className="jodit_hovered":g[e].className="";f.textContent=a.toString(),h.textContent=s.toString()}).on(p,"touchstart mousedown",t=>{let s=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),!n.Dom.isTag(s,"span"))return;let l=parseInt((0,r.attr)(s,"-index")||"0",10),c=Math.ceil((l+1)/u),d=l%u+1,h=e.createInside,f=h.element("tbody"),p=h.element("table");p.appendChild(f);let g=null,v,b;for(let e=1;c>=e;e+=1){v=h.element("tr");for(let e=1;e<=d;e+=1)b=h.element("td"),g||(g=b),(0,o.css)(b,"width",(100/d).toFixed(4)+"%"),b.appendChild(h.element("br")),v.appendChild(h.text("\n")),v.appendChild(h.text(" ")),v.appendChild(b);f.appendChild(h.text("\n")),f.appendChild(v)}(0,o.$$)("input[type=checkbox]:checked",m).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(a);let y=n.Dom.furthest(e.s.current(),n.Dom.isBlock,e.editor);if(y&&n.Dom.isEmpty(y))n.Dom.replace(y,p,void 0,!1,!0);else if(y){let t=h.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 o=e.s.splitSelection(y,t);o?n.Dom.after(o,p):n.Dom.after(y,p)}else n.Dom.after(y,t),n.Dom.after(t,p)}else e.s.insertNode(p,!1);g&&(e.s.setCursorIn(g),(0,o.scrollIntoViewIfNeeded)(g,e.editor,e.ed)),i()}),s&&s.parentElement){for(let t=0;t<c;t+=1){let i=e.c.div();for(let e=0;e<u;e+=1)i.appendChild(g[t*u+e]);p.appendChild(i)}g[0]&&(g[0].className="hovered")}return d},tooltip:"Insert table"}},43003:function(e,t,i){var n=i(580);i(40329),n.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){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){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=[],u=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;u((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=>{u(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){var n=i(580);i(14984),n.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){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){i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){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")?i.appendChild(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;n.appendChild(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){i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),u=i(80870),d=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 u.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,d.makeButton)(this.j,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n;n=i[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({name:"selectall"},this.j.o.controls.selectall)),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},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&&this.container.insertBefore(n,this.container.firstChild))},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){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){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){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){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){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){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){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){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){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){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){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){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){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){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 u.default},chevron:function(){return d.default},dots:function(){return h.default},eye:function(){return f.default},file:function(){return p.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 S.default},resize_handler:function(){return _.default},right:function(){return C.default},save:function(){return k.default},settings:function(){return E.default},unlock:function(){return I.default},update:function(){return T.default},upload:function(){return D.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),u=i(7903),d=i(58032),h=i(52507),f=i(43478),p=i(60097),m=i(49155),g=i(17176),v=i(57882),b=i(58908),y=i(24829),w=i(4038),S=i(45575),_=i(84858),C=i(445),k=i(36886),E=i(10766),I=i(33651),T=i(20362),D=i(12202),j=i(80152)},17176:function(e,t){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){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){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){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){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){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){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){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){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){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){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){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){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){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> '},31356:function(e,t,i){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 u=[],d=[],h=[],f=[];return t.forEach((e,t)=>{let i=n(e),l=s.get(i);l?!o(l,e)||r&&a.get(i)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):f.push(l):u.push(e)}),e.forEach(e=>{let t=n(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:f}}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){i.d(t,{JoditPro:function(){return l}});var n=i(77688),o=i(82758),r=i(63799),s=i(41180),a=i(86019);class l extends a.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(o.IS_PROD&&!o.IS_TEST&&this.o.loadExternalConfig)return(0,r.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(0,n._)(function*(){if((yield 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>');o.IS_TEST||o.IS_PROD,(0,s.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}}).call(this).catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+o.APP_VERSION}}},49934:function(e,t,i){i.d(t,{autocomplete:function(){return g}});var n=i(77688),o=i(82749),r=i(56075),s=i(31635);i(53586);var a=i(83725),l=i(64199),c=i(82758),u=i(65478),d=i(2748),h=i(21537),f=i(50911),p=i(56917),m=i(2692);class g extends f.Plugin{get list(){let e=new a.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new p.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let i=t.value;(0,h.isFunction)(t.insertValueRenderer)&&(i=t.insertValueRenderer(t)),d.Dom.isNode(i)||(i=e.createInside.fromHTML(i)),(0,l.replaceTextLeftOfCursorAfterSpace)(e.s.range,i),this.j.s.setCursorAfter(i),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===c.KEY_DOWN||e===c.KEY_UP||e===c.KEY_ENTER||e===c.KEY_TAB}onKeyDown(e){return(0,n._)(function*(){var t,i;if(e.key===c.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:n}=this.j;if(g.isControlKey(e.key)||!n.isInsideArea||!n.isCollapsed)return;let o=(null==(t=this.j.s.sel)?void 0:t.rangeCount)?null==(i=this.j.s.sel)?void 0:i.getRangeAt(0):null,r=o&&(0,l.getTextLeftOfCursor)(o).split(" ").pop();if(r&&(0,h.trim)(r).length){let e=yield this.onAutoComplete(r);if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}).call(this)}onKeyControlDown(e){if(this.popup.isOpened&&g.isControlKey(e.key)){switch(e.key){case c.KEY_DOWN:this.list.selectNext();break;case c.KEY_UP:this.list.selectPrevious();break;case c.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}onAutoComplete(e){return(0,n._)(function*(){let t=[];return yield Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(i=>(0,n._)(function*(){t.push(...yield this.resolveFeed(e,i))}).call(this))),t}).call(this)}resolveFeed(e,t,i){return(0,n._)(function*(){let n;if((0,h.isPromise)(t)&&(t=yield t),(0,h.isFunction)(t))n=yield t(e);else if((0,h.isArray)(t)){let i=t,{isMatchedQuery:o}=this.j.o.autocomplete;n=i.filter(t=>(0,h.isString)(t)?o(e,t):o(e,t.value)).map(e=>(0,h.isString)(e)?{title:e,value:e}:e)}else n=yield this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(n&&(0,h.isArray)(n)){let{itemRenderer:e,insertValueRenderer:t,maxItems:o}=this.j.o.autocomplete;return(n=n.map(n=>{var o,s;return(0,r._)({itemRenderer:null!=(o=null==i?void 0:i.itemRenderer)?o:e,insertValueRenderer:null!=(s=null==i?void 0:i.insertValueRenderer)?s:t},n)})).slice(0,o)}return[]}).call(this)}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),i={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,h.position)(e.iframe,e);i.top+=t.top,i.left+=t.left}return i})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,o._)(this,"hasStyle",!m.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(g,"requires",["enter","license"]),(0,s.__decorate)([u.cache],g.prototype,"list",null),(0,s.__decorate)([u.cache],g.prototype,"popup",null),(0,s.__decorate)([u.autobind],g.prototype,"registerAutocompleteSource",null),(0,s.__decorate)([u.autobind],g.prototype,"unregisterAutocompleteSource",null),(0,s.__decorate)([(0,u.debounce)()],g.prototype,"onKeyDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onKeyControlDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onEnter",null),(0,s.__decorate)([u.autobind],g.prototype,"onAutoComplete",null),(0,s.__decorate)([u.autobind],g.prototype,"resolveFeed",null),m.JoditPro.plugins.add("autocomplete",g)},53586:function(e,t,i){i(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>{var t;return null!=(t=e.title)?t:e.value},insertValueRenderer:e=>e.value+" "}},64199:function(e,t,i){i.d(t,{getTextLeftOfCursor:function(){return o},replaceTextLeftOfCursorAfterSpace:function(){return r}});var n=i(2748);function o(e){var t,i,o,r;let{startContainer:s,startOffset:a}=e;if(n.Dom.isText(s))return null!=(t=null==(i=s.nodeValue)?void 0:i.substr(0,a))?t:"";let l=s.childNodes[a];if(!l)return"";if(n.Dom.isText(l))return null!=(o=l.nodeValue)?o:"";let c=n.Dom.findNotEmptyNeighbor(l,!0,s);return n.Dom.isText(c)&&null!=(r=l.nodeValue)?r:""}function r(e,t){var i,o,r;let{startContainer:s,startOffset:a}=e;if(!n.Dom.isText(s)&&(s=s.childNodes[a-1],n.Dom.isText(s)&&(a=null!=(i=null==(o=s.nodeValue)?void 0:o.length)?i:0)),n.Dom.isText(s)){let i=null!=(r=s.nodeValue)?r:"",n=i.substring(0,a),o=i.substring(a),l=n.split(" ");l[l.length-1]="";let c=l.join(" ");s.nodeValue=c+o,e.setStart(s,c.length),e.insertNode(t);return}}},83725:function(e,t,i){i.d(t,{Autocomplete:function(){return c}});var n=i(82749),o=i(31635),r=i(31356),s=i(35934),a=i(65478),l=i(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){var t;let i=null==(t=this.elements[this.currentSelection])?void 0:t.item.value,n=e=>e.value,o=r.ListReconciler.reconcile(this.__previousList,e,{getId:n}),a=new Set;o.toRemove.forEach(e=>{let t=n(e);if(a.has(t))return;a.add(t);let i=this.itemsMap.get(t);i&&(-1!==this.elements.indexOf(i)&&(this.remove(i),i.destruct()),this.itemsMap.delete(e.value))}),o.toCreate.forEach(t=>{let i=n(t);if(a.has(i))return;a.add(i);let o=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>n(e)===t),this.select()});this.itemsMap.set(i,o);let r=e.indexOf(t);this.append(o,r)}),o.toUpdate.forEach(({newItem:e,index:t})=>{let i=n(e);if(a.has(i))return;a.add(i);let o=this.itemsMap.get(i);o&&(o.item=e,this.elements.indexOf(o)!==t&&t<this.elements.length&&(this.remove(o),this.append(o,t)))});let l=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>n(e)===i)),l===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,n._)(this,"elements",[]),(0,n._)(this,"currentSelection",-1),(0,n._)(this,"displayMode","list"),(0,n._)(this,"__previousList",[]),(0,n._)(this,"itemsMap",new Map)}}(0,o.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,o.__decorate)([a.component],c)},35934:function(e,t,i){i.d(t,{AutocompleteItem:function(){return l}});var n=i(82749),o=i(31635),r=i(65478),s=i(27613),a=i(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,i){super(e),(0,n._)(this,"item",void 0),(0,n._)(this,"onClick",void 0),(0,n._)(this,"value",void 0),(0,n._)(this,"shortcutElm",void 0),this.item=t,this.onClick=i,this.value="",this.shortcutElm=null;const{container:o}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){const e=t.itemRenderer(t);(0,s.isString)(e)?o.innerHTML=e:o.appendChild(e)}else{var r;o.innerText=null!=(r=t.title)?r:t.value}}}(0,o.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,o.__decorate)([r.component],l)},12373:function(e,t,i){i(25187),i(58858),i(21246),i(49934),i(3115)},38882:function(e,t,i){i.d(t,{isAllowedSubdomain:function(){return o},validateLicense:function(){return function e(t,i){var n;let r;if(n=t=String(t).toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(n)||o(i))return!0;let s=(r=i.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]"));if(RegExp(`^${a.join("-")}$`,"i").test(t))return!0;let l=i.split(".");return l.shift(),l.length>1&&e(t,l.join("."))}}});let n=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function o(e){return n.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,i){i.d(t,{license:function(){return d}});var n=i(77688),o=i(38882),r=i(82758),s=i(2748),a=i(87612),l=i(70799),c=i(20356),u=i(2692);class d extends c.Plugin{static make(e){return new d(e)}afterInit(e){this.j.e.on("checkReserve",e=>(0,n._)(function*(){let t=this.j.o.license;if((0,o.isAllowedSubdomain)(e))return"normal";if(!t||!(0,l.isString)(t))return"";let i=(0,o.validateLicense)(t,e);return i||r.IS_TEST||(i=yield this.validateLicenseRemote(t,e)),i?"normal":""}).call(this))}beforeDestruct(e){}validateLicenseRemote(e,t){return(0,n._)(function*(){let i="validateJoditLicenseRemote",n=this.j.storage.get(i);if(n&&(0,o.validateLicense)(n,t))return!0;let r=document.createElement("script");return r.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,this.j.async.promise(e=>{let n=!1,l=t=>{n||(n=!0,s.Dom.safeRemove(r),e(t))};window.onJoditResolveKeyCode=e=>{if((0,a.isBoolean)(e))return l(e);(0,o.validateLicense)(e,t)?(this.j.storage.set(i,e),l(!0)):l(!1)},r.onerror=()=>l(!0),document.body.appendChild(r),this.j.async.setTimeout(()=>l(!0),5e3)})}).call(this)}}u.JoditPro.plugins.add("license",d)},20823:function(e,t,i){i.d(t,{cleanStyles:function(){return o}});let n={"text-justify":["inter-ideograph"]};function o(e){return e.isElement&&e.attributes.style&&Object.keys(n).forEach(t=>{let i=n[t];if(e.style.has(t)){var o;i.includes(null==(o=e.style.get(t))?void 0:o.toString())&&e.style.set(t,null)}}),e}},47064:function(e,t,i){i.d(t,{clearAttributes:function(){return o}});let n=["cellspacing","cellpadding","border","v:shapes","o:spid"];function o(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),n))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,i){i.d(t,{clearClassName:function(){return o}});var n=i(49055);let o=e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,n.trim)(e.attributes.class)||(e.attributes.class=null)),e)},53585:function(e,t,i){i.d(t,{convertStyleUnitToPixels:function(){return o}});var n=i(43712);let o=(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:i}=e;return i.forEach(e=>{let t=i.get(e);t&&i.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,n.convertUnitToPx)(e)+"px"))}),e}},80591:function(e,t,i){i.d(t,{convertToList:function(){return l}});var n=i(82758),o=i(10058),r=i(97420),s=i(31269),a=i(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let h=c(e),f=/[\da-np-zA-NP-Z].?/.test(h)?"ol":"ul",p=function(e,t){for(let t in o.listStyleMap)if(RegExp(t).test(e))return o.listStyleMap[t];return"ol"===t?"decimal":"disc"}(h,f);e.attributes[o.TYPE_KEY]=f,e.attributes[o.STYLE_KEY]=p,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:m}=e;if(!(0,r.isList)(m)||!(0,r.isSameType)(e,m)){var t,i,n,l,u,d;let s,c=(t=e,i=f,n=h,l=p,(s=t.wrap(i)).attributes.start=(0,a.calcStartBySymbol)(n),s.attributes[o.LEVEL_KEY]=t.attributes[o.LEVEL_KEY],s.attributes[o.STYLE_KEY]=t.attributes[o.STYLE_KEY],s.attributes[o.STYLE_VALID_KEY]=t.attributes[o.STYLE_KEY],s.style.set(o.STYLE_CSS_KEY,l),(0,r.isList)(s)&&(null==(u=s.parent)?void 0:u.name)!=="li"&&("disc"===s.style.get(o.STYLE_CSS_KEY)||"decimal"===s.style.get(o.STYLE_CSS_KEY))&&s.style.set(o.STYLE_CSS_KEY,null),s);if((0,r.isList)(m)){c.remove(),null==(d=m.lastElement)||d.append(c)}}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/ /g,"").replace((0,n.SPACE_REG_EXP)(),"")},64693:function(e,t,i){i.d(t,{cases:function(){return g}});var n=i(20823),o=i(47064),r=i(41157),s=i(53585),a=i(80591),l=i(98940),c=i(72621),u=i(1580),d=i(18616),h=i(84021),f=i(69994),p=i(76059),m=i(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,p.replaceOldTags,o.clearAttributes,a.convertToList,d.processLinks,f.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,n.cleanStyles]},98940:function(e,t,i){i.d(t,{markPageBreakElements:function(){return n}});let n=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)},72621:function(e,t,i){i.d(t,{normalizeImageProps:function(){return n}});let n=e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)},1580:function(e,t,i){i.d(t,{processImage:function(){return o}});var n=i(21537);let o=(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let i=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,n.toArray)(i.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){var i,o;let n=null==(i=t.shapes)?void 0:i[e.attributes["v:shapes"]];if(n){let i=null!=(o=t.imageMap)?o:{};t.imageMap||(t.imageMap=i,r(t.rtf,"i","\\shppict",t.imageMap),r(t.rtf,"s","\\shp{",t.imageMap));let s=i[n.substring(7)];if(s){let t=[],i=s.hex.match(/[0-9a-f]{2}/gi);if(i){for(let e=0;e<i.length;e++){let n=parseInt(i[e],16);t.push(String.fromCharCode(n))}e.attributes.src="data:"+s.type+";base64,"+btoa(t.join(""))}}}}return e};function r(e,t,i,n){for(let o of e.split(i)){let e=o.split("shplid");if(1<e.length){let i,o=e[1],r="";for(let e=0;e<o.length&&!/[{ \r\n\\]/.test(o[e]);e++)r+=o[e];let s=o.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))i=l[1].split(" ");else{if((i=l[0].split(" "))&&i.length<2)continue;i.shift()}n[t+r]={hex:i.join(""),type:a}}}}},18616:function(e,t,i){i.d(t,{processLinks:function(){return n}});let n=(e,t)=>{var i;let n=null!=(i=t.links)?i:{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(n[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&n[e.attributes.name]){let t=n[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=n,e}},84021:function(e,t,i){i.d(t,{removeExtraTags:function(){return o}});let n=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function o(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||n.has(e.name)?(e.remove(),null):e}},69994:function(e,t,i){i.d(t,{removeInsideComment:function(){return r}});var n=i(99658);let o=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,n.html)(e))&&(o++,e.remove()),e.isComment&&o>0&&(0,n.html)(e).includes("[endif]")&&(o=o>0?o-1:0,e.remove()),o&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,i){i.d(t,{replaceOldTags:function(){return o}});let n={i:"em",b:"strong"};function o(e){let{name:t}=e;return t in n&&(e.name=n[t]),e}},21357:function(e,t,i){i.d(t,{removeWidthFromTableCell:function(){return n}});let n=e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)},13085:function(e,t,i){i(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,i){i.d(t,{LEVEL_KEY:function(){return n},STYLE_CSS_KEY:function(){return a},STYLE_KEY:function(){return r},STYLE_VALID_KEY:function(){return s},TYPE_KEY:function(){return o},listStyleMap:function(){return l}});let n="jd-list-level",o="jd-list-type",r="jd-list-style-type",s="data-list-style-type",a="list-style-type",l={"\xb7":"disc",o:"circle","\xa7":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(e,t,i){i.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var n=i(99658),o=i(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,n.html)(e).includes("supportLists")).length}function l(e,t){let i=e.attributes[o.TYPE_KEY],n=e.attributes[o.STYLE_KEY];return t.name===i&&t.attributes[o.STYLE_KEY]===n&&e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]}},42968:function(e,t,i){i.d(t,{JElement:function(){return u}});var n=i(82749),o=i(99658),r=i(40273),s=i(82758),a=i(2748),l=i(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){var t;(0,l.assert)(null!=this.parent,"You can't wrap the root element");let i=u.make(document.createElement(e),this.parent),n=null!=(t=this.parent.children.indexOf(this))?t:-1;return -1===n?this.parent.append(i):this.parent.children[n]=i,i.append(this),i}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let i=t-1;i>=0;i-=1)if(e[i].isElement)return e[i]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){var e,t,i;return null!=(e=null!=(t=this.sibling(!1))?t:null==(i=this.parent)?void 0:i.previous)?e:null}get next(){var e,t,i;return null!=(e=null!=(t=this.sibling(!0))?t:null==(i=this.parent)?void 0:i.next)?e:null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);return -1!==i&&t[i+(e?1:-1)]?t[i+(e?1:-1)]:null}forEach(e,t=!1){for(let i of[...this.children])if(!1===e(i)||t&&!1===i.forEach(e,!0))return!1}find(e,t=!0){let i=[];return this.forEach(t=>{e(t)&&i.push(t)},t),i}map(e){return this.children.map(e)}remove(){var e,t;let i=null==(e=this.parent)?void 0:e.children.indexOf(this);return null!=i&&-1!==i&&(null==(t=this.parent)||t.children.splice(i,1)),this}textBetween(e,t){let i=!1,n=[];return this.forEach(r=>{if(!i&&e(r)&&(i=!0),i&&r.isText&&n.push((0,o.html)(r)),i&&t(r))return!1},!0),n.join("")}constructor(e,t){(0,n._)(this,"parent",void 0),(0,n._)(this,"name",void 0),(0,n._)(this,"type",void 0),(0,n._)(this,"attributes",void 0),(0,n._)(this,"style",void 0),(0,n._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let i=0,n=e.attributes;i<n.length;i+=1)t[n[i].name]=n[i].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,i){i.d(t,{JElement:function(){return o.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return n.isLeaf},isList:function(){return n.isList},isPseudoLeaf:function(){return n.isPseudoLeaf},isSameType:function(){return n.isSameType}});var n=i(18594),o=i(42968),r=i(99658)},99658:function(e,t,i){i.d(t,{html:function(){return s},innerHTML:function(){return l}});var n=i(82758),o=i(87612),r=i(49055);function s(e,t=()=>!0,i=!0,o){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:i}=e.attributes;return e.isComment?`<!--${i}-->`:i}case e.isElement:{let{attributes:n}=e,r=l(e,t,i,o);if(!e.attributes["jd-safe"]&&i&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(n).map(e=>"style"===e||null==n[e]||/^jd-/.test(e)?"":`${e}="${c(n[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,o)));if(d&&s.push(`style="${d}"`),i&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!n.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){var i;let n=null==(i=a.cache.get(t))?void 0:i.get(e);if((0,o.isBoolean)(n))return n}let n=t.some(t=>new RegExp(t).test(e)),r=a.cache.get(t)||new Map;return r.set(e,n),a.cache.set(t,r),n}function l(e,t=()=>!0,i=!0,n){let o=e.map(e=>s(e,t,i,n)).join("");return"p"===e.name&&0===(0,r.trim)(o).length&&(o=" "),o}function c(e){return e.toString().replace(/"/g,""")}a.cache=new WeakMap},40273:function(e,t,i){i.d(t,{Style:function(){return u}});var n=i(82749),o=i(31635),r=i(45219),s=i(70799),a=i(12475),l=i(49055),c=i(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){var t;return null!=(t=this._data[e])?t:null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),i=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let n=t.indexOf(e),o=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<n||i(o[s])===i(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,n._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},i=[];for(let n=e.length-1;n>=0;n-=1){let o=e[n][0];t[o]||(t[o]=!0,i.unshift(e[n]))}return i})((null!=e?e:"").replace(/"/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,i])=>(t&&i&&(e[t]=i),e),{})}(0,o.__decorate)([r.autobind],u.prototype,"forEach",null),(0,o.__decorate)([r.autobind],u.prototype,"clear",null),(0,o.__decorate)([r.autobind],u.prototype,"set",null),(0,o.__decorate)([r.autobind],u.prototype,"get",null),(0,o.__decorate)([r.autobind],u.prototype,"has",null),(0,o.__decorate)([r.autobind],u.prototype,"add",null),(0,o.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,i){i.d(t,{applyStylesPro:function(){return l}});var n=i(19606),o=i(2748),r=i(29960),s=i(76078),a=i(97420);function l(e,t,i,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{var d,h;let o=null!=(d=u.contentDocument)?d:null==(h=u.contentWindow)?void 0:h.document;if(!o)return t;o.open(),o.write(t),o.close();let l="jd-style";for(let e=0;e<o.styleSheets.length;e+=1)try{let t=o.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,o.body).forEach(i=>{(0,r.attr)(i,l)||((0,r.attr)(i,l,(0,r.attr)(i,"style")||""),(0,r.attr)(i,"style","")),(0,r.attr)(i,"style",`${(0,r.attr)(i,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,o.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,n.transformWordToHtml)(e,a.JElement.make(o.body),i,c)}finally{o.Dom.safeRemove(u)}}},31269:function(e,t,i){i.d(t,{calcListLevels:function(){return s}});var n=i(43712),o=i(10058),r=i(97420);function s(e){if(void 0!==e.attributes[o.LEVEL_KEY])return;let t=[(0,n.realPixelIndent)(e)],i=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[o.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,n.realPixelIndent)(s);e&&(t.push(e),i.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),i.forEach((e,t)=>{e.attributes[o.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,n.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,i){let n;function o(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;n||(Object.assign((n=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(n),setTimeout(()=>{null==n||n.remove(),n=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),n.style.width=e;let i=n.clientWidth;return t?-i:i}function s(e){let{style:t}=e,i=t.keys.filter(e=>/margin/.test(e)),n=Math.max(i.indexOf("margin-left"),i.indexOf("margin")),s=n>0?i[n]:"margin-left";return r("margin"===s?o(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}i.d(t,{calcMarginParts:function(){return o},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,i){i.d(t,{applyStylesPro:function(){return n.applyStylesPro}});var n=i(51586);i(31269),i(19606)},19606:function(e,t,i){i.d(t,{transformWordToHtml:function(){return s}});var n=i(49055),o=i(64693),r=i(97420);function s(e,t,i,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of o.cases)if(null==(t=e(t,a)))break;null==t||t.forEach(e)}}),i&&t.forEach(e=>{e.style.clear()},!0),(0,n.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,i){i.r(t),i.d(t,{PasteFromWordPro:function(){return u}});var n=i(82749);i(13085);var o=i(30717),r=i(82758),s=i(70799),a=i(117),l=i(31571),c=i(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,i,n){if(this.j.o.pasteFromWord.enable&&(i===r.INSERT_AS_HTML||i===r.INSERT_AS_TEXT)){if(t=(0,o.applyStylesPro)(this.j,t,i===r.INSERT_AS_TEXT,n.rtf),this.j.o.beautifyHTML){var l;let e=null==(l=this.j.events)?void 0:l.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,i,n)}}(0,n._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},77688:function(e,t,i){function n(e,t,i,n,o,r,s){try{var a=e[r](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,i=arguments;return new Promise(function(o,r){var s=e.apply(t,i);function a(e){n(s,o,r,a,l,"next",e)}function l(e){n(s,o,r,a,l,"throw",e)}a(void 0)})}}i.d(t,{_:function(){return o}})},82749:function(e,t,i){i.d(t,{_:function(){return n}});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}},56075:function(e,t,i){i.d(t,{_:function(){return o}});var n=i(82749);function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},o=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),o.forEach(function(t){(0,n._)(e,t,i[t])})}return e}},31635:function(e,t,i){function n(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}i.d(t,{__decorate:function(){return n}}),"function"==typeof SuppressedError&&SuppressedError}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e].call(i.exports,i,i.exports,s),i.exports}s.m=o,e=[],s.O=function(t,i,n,o){if(i){o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[i,n,o];return}for(var a=1/0,r=0;r<e.length;r++){for(var i=e[r][0],n=e[r][1],o=e[r][2],l=!0,c=0;c<i.length;c++)(!1&o||a>=o)&&Object.keys(s.O).every(function(e){return s.O[e](i[c])})?i.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(r--,1);var u=n();void 0!==u&&(t=u)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t={521:0},s.O.j=function(e){return 0===t[e]},i=function(e,i){var n,o,r=i[0],a=i[1],l=i[2],c=0;if(r.some(function(e){return 0!==t[e]})){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)var u=l(s)}for(e&&e(i);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(u)},(n=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var a={};s.r(a),s.d(a,{Jodit:function(){return c.JoditPro}}),s(12373);var l=s(31356),c=s(2692);return c.JoditPro.plugins.add("poweredByJodit",function(){}),c.JoditPro.modules.ListReconciler=l.ListReconciler,a=s.O(a)}()});
|