jodit-pro 4.12.21 → 4.12.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +32 -2
- package/es2015/jodit.min.js +3 -3
- 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.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +32 -2
- package/es2021/jodit.min.js +3 -3
- 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.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +32 -2
- package/es2021.en/jodit.min.js +3 -3
- 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.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +35 -2
- 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.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/package.json +1 -1
package/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.22
|
|
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,r={6441:function(e,t,i){i.d(t,{Config:function(){return o}});var n=i(82758);let r={};class o{static get defaultOptions(){return o.__defaultOptions||(o.__defaultOptions=new o),o.__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,r)}}r=o.prototype,o.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return p}});var n=i(82758),r=i(91898),o=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 o=(0,r.setTimeout)(e,t,...i),s=n.label||o;return this.timers.set(s,o),this.__callbacks.set(s,e),o}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,r.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,r.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=(...o)=>{a=!1,t?(!n&&i&&d(...o),(0,r.clearTimeout)(n),n=this.setTimeout(()=>d(...o),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...o)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,o.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,r=!0;return(...o)=>{if(i=o,n){r=!0;return}r=!0,t&&(r=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&r&&e(...i)})}}throttle(e,t,i=!1){let n=null,r,o,a;return(...i)=>{(r=!0,a=i,t)?n||(o=()=>{r?(e(...a),r=!1,n=this.setTimeout(o,(0,s.isFunction)(t)?t():t),this.timers.set(o,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,r;let o=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),r=r={signal:i.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n));return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((n,r)=>{let o=this.setTimeout(()=>{try{n(e())}catch(e){r(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(o),this.__controllers.delete(i),r((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,r.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,r;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!=(r=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?r: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),r=i(78213),o=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===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.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),r=null==n?void 0:n[e];r&&r.length&&r.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=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,o.uniqueUid)()}}l.STATUSES=r.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return n.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return o.ViewComponent}});var n=i(4012),r=i(78213),o=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 r}});var n=i(4012);class r 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.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 r},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 er},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return eo},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 o},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 K},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return $},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.21",r="es2015",o=!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",$=1,K=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",er="insert_as_text",eo="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),r=i(2748),o=i(21537),s=i(38837);class a{get doc(){return(0,o.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,o.isPlainObject)(t)?(0,o.attr)(n,t):i=t),i&&(0,o.asArray)(i).forEach(e=>n.appendChild((0,o.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(r.Dom.safeRemove(n),t){let e=(0,o.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&r.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,o.isFunction)(i)?i(e):(0,o.isPlainObject)(i)&&(0,o.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 r}});var n=i(23282);function r(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 r=i.value;return{configurable:!0,get(){let e=r.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),r=i(2748),o=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,o.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,o.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&&r.Dom.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,o.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),r=i(80568);let o=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,r.getClassName)(e.prototype);if(o.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return o.set(i,t),t}function a(e){return o.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),r=i(27613),o=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,r.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,o.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,r.isFunction)(e)?e(n):e,c=(0,r.isNumber)(a)||(0,r.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 r}});var n=i(23282);function r(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let r=e[t],o=Object.getOwnPropertyNames(r.prototype);for(let e=0;e<o.length;e++){let t=o[e],s=Object.getOwnPropertyDescriptor(r.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 o}});var n=i(23282),r=i(89890);function o(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,r.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),r=i(23282),o=i(89890);function s(){return(e,t)=>{if(!(0,r.isFunction)(e[t]))throw(0,o.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 r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return o.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return o.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),r=i(33433),o=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 o}});var n=i(78213),r=i(39955);function o(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,r.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,o=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:o},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var n=i(78213),r=i(23282),o=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,r.isFunction)(s))throw(0,o.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,r=t[i],o=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(o),e(t)?r.apply(t,s):o=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var n=i(78213),r=i(73026),o=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,o.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,r]=e.split(":"),o=p;i.length&&(o=t.get(i)),(0,s.isFunction)(o)&&(o=o(t)),n.events.on(o||t,r,c),o||n.events.on(r,c),t.hookStatus("beforeDestruct",()=>{n.events.off(o||t,r,c).off(r,c)});return}let o=e.split("."),[l]=o,d=o.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,r.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,r.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),r=i(4510),o=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,r=e;i.s.save();let o=!1;do o=!1,(n=r.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(o=!0,r=n);while(o);return b.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let r=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(r,i);let o=i;for(;o&&(o=i.nextSibling,r.appendChild(i),i!==n&&o);)i=o;return t.s.restore(),r}static wrapInline(e,t,i){let n,r=e,o=e;i.s.save();let s=!1;do s=!1,(n=r.previousSibling)&&!b.isBlock(n)&&(s=!0,r=n);while(s);do s=!1,(n=o.nextSibling)&&!b.isBlock(n)&&(s=!0,o=n);while(s);return b.__wrapElements(t,i,r,o)}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,o=!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,!o)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&b.isElement(e)&&b.isElement(s)&&(0,r.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 r=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return b.isText(e)?r(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!r(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){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&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!!(i&&e instanceof i.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,r=!0){let o=this.nextGen(e,i,n,r),s=o.next();for(;!s.done;){if(t(s.value))return s.value;s=o.next()}return null}static*nextGen(e,t,i=!0,n=!0){let r=[],o=e;do{let t=i?o.nextSibling:o.previousSibling;for(;t;)r.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,r,i,n),o=o.parentNode}while(o&&o!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),r=n.next();for(;!r.done;){if(!1===t(r.value))return!1;r=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 r=t.pop();if(n){let e=i?r.lastChild:r.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==r&&(yield r)}}static findWithCurrent(e,t,i,n="nextSibling",r="firstChild"){let o=e;do{if(t(o))return o||null;if(r&&o&&o[r]){let e=b.findWithCurrent(o[r],t,o,n,r);if(e)return e}for(;o&&!o[n]&&o!==i;)o=o.parentNode;o&&o[n]&&o!==i&&(o=o[n])}while(o&&o!==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 r=e;if(!r)return null;do{if(t(r))return r;if(r===i||!r.parentNode)break;r=r.parentNode}while(r&&r!==i);return r===i&&n&&t(r)?r:null}static closest(e,t,i){let n,r=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,o.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(r));n=t=>!!(t&&e.has(r(t.nodeName)))}else n=e=>!!(e&&r(t)===r(e.nodeName));return b.up(e,n,i)}static furthest(e,t,i){let n=null,r=null==e?void 0:e.parentElement;for(;r&&r!==i;)t(r)&&(n=r),r=null==r?void 0:r.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,o.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,o=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,r.toArray)(e.childNodes).filter(e=>!!o(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,r.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 r.LazyWalker}});var n=i(2748),r=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var n=i(45219),r=i(2748),o=i(72757);class s extends o.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=r.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>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),r=i(46559),o=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,r.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,r){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=r),!((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,o.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,r;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let o={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,o,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!=(r=null==f?void 0:f.capture)&&r;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 r,o,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(r=this,o=e,s=t,l=i):(r=e,o=t,s=i,l=n);let c=(...e)=>(this.off(r,o,c),s(...e));return this.on(r,o,c,l),this}off(e,t,i){let n,r,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,r=e,l=t):(n=e,r=t,l=i),(0,o.isArray)(n))return n.forEach(e=>{this.off(e,r,l)}),this;let u=n,h=this.__getStore(u);if(!((0,a.isString)(r)||(0,a.isStringArray)(r))||0===r.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(r,(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 r=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=r.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&r.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,r,o=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(o)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(o);return!(0,a.isString)(s)&&d(o)?this.__triggerNativeEvent(o,t):this.__eachEvent(s,(e,t)=>{if(d(o))this.__triggerNativeEvent(o,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),r=t.syntheticCallback.call(o,e,...u),this.currents.pop(),void 0!==r&&(n=r),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(o)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[o,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 r.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return o.observable}});var n=i(98220),r=i(72757),o=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var n=i(68345),r=i(59292),o=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,r)=>((0,n.isArray)(t)?t.map(e=>c(e,r)):(i[t]||(i[t]=[]),i[t].push(r)),e),u=(r,...o)=>{if((0,n.isArray)(r))return void r.map(e=>u(e,...o));try{!t[r]&&i[r]&&(t[r]=!0,i[r].forEach(t=>t.call(e,...o)))}finally{t[r]=!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,r.isFastEqual)(n[a],t)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,o.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let r=[];u(["change",...l.reduce((e,t)=>(r.push(t),e.push(`change.${r.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,o.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 o}});var n=i(4510),r=i(38837);let o="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.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!==o):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let r=this.__store.get(t);r||(r={},this.__store.set(t,r)),void 0===r[e]&&(r[e]=[]),n?r[e].unshift(i):r[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),r=i(70799),o=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,r.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",u=w.get(e)||{},d=c+i,f=(0,o.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 r="style"===i?e.ed.head:e.ed.body;p=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:r}let r=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(c)}-container jodit-box`});r.classList.add(`jodit_theme_${f.o.theme||"default"}`),p.appendChild(r),u[d]=r,e.hookStatus("beforeDestruct",()=>{f.events.off(r),h.Dom.safeRemove(r),delete u[d],Object.keys(u).length&&w.delete(e)}),w.set(e,u),f.events.fire("getContainer",r)}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,r,o;return null!=(o=null!=(r=null!=(n=e.popupRoot)?n:e.shadowRoot)?r:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?o:i}let C=u.eventEmitter},29999:function(e,t,i){i.d(t,{asArray:function(){return r}});var n=i(68345);let r=e=>(0,n.isArray)(e)?e:[e]},76855:function(e,t,i){i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return r.splitArray},toArray:function(){return o.toArray}});var n=i(29999),r=i(46559),o=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 o}});var n=i(70722),r=i(58844);let o=function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,r.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 o},setTimeout:function(){return r}});var n=i(82758);function r(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function o(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return r}});var n=i(82758);function r(){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 r.isAbortError},isArray:function(){return o.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),r=i(12045),o=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 r},isFastEqual:function(){return o}});var n=i(67462);function r(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function o(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(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,i){i.d(t,{isHTML:function(){return r}});var n=i(70799);let r=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),r=i(23282),o=i(86068);function s(e){return!(0,o.isVoid)(e)&&(0,r.isFunction)(e.init)}function a(e){return!(0,o.isVoid)(e)&&(0,r.isFunction)(e.destruct)}function l(e){return!(0,o.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return o}});var n=i(29807),r=i(70799);function o(e){return(0,r.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 r}});var n=i(23282);function r(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 r}});var n=i(70799);let r=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 r}});var n=i(2748);function r(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 r}});var n=i(70799);function r(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 r}});var n=i(52742);function r(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 r}});var n=i(23282);function r(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 r},isStringArray:function(){return o}});var n=i(68345);function r(e){return"string"==typeof e}function o(e){return(0,n.isArray)(e)&&r(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return r}});var n=i(82758);function r(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 r}});var n=i(23282);function r(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),r=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return t[1]+"#"+r}},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),r=i(2748),o=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();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}r.Dom.each(l.body,e=>{if(r.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,o.trim)(l.body.innerHTML):""}}catch(e){}finally{r.Dom.safeRemove(t)}return i&&(e=i),(0,o.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),r=i(2748),o=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&&r.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":r.Dom.unwrap(e);break;default:(0,o.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)}}),r.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 r}});var n=i(82758);function r(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 r.cleanFromWord},htmlspecialchars:function(){return o.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),r=i(53212),o=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 o},sanitizeHTMLElement:function(){return a}});var n=i(2748),r=i(43555);function o(e,t){var i;(n.Dom.isElement(e)||n.Dom.isFragment(e))&&((null!=(i=t.removeEventAttributes)?i:t.removeOnError)?(s(e),(0,r.$$)("*",e).forEach(e=>s(e))):t.removeOnError&&(a(e,t),(0,r.$$)("[onerror]",e).forEach(e=>a(e,t))),t.safeJavaScriptLink&&(a(e,t),(0,r.$$)('a[href^="javascript"]',e).forEach(e=>a(e,t))),t.safeLinksTarget&&(0,r.$$)('a[target="_blank"]',e).forEach(e=>{let t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,r.attr)(e,"rel",t.join(" "))}))}function s(e){if(!n.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let n of i)e.removeAttribute(n),t=!0;return t}function a(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let o=!1;i&&e.hasAttribute("onerror")&&((0,r.attr)(e,"onerror",null),o=!0);let s=e.getAttribute("href");return t&&s&&0===s.trim().indexOf("javascript")&&((0,r.attr)(e,"href",location.protocol+"//"+s),o=!0),o}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null){let d=i.createElement("div");return(0,r.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,s.$$)("*",d).forEach(t=>{let r=t.parentNode;if(!r)return;if(u&&n.Dom.isTag(t,u)){let r=t.nodeName.toLowerCase(),o=n.Dom.isTag(t,c)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${e(t.innerHTML,i,u)}%%%/jodit-${r}%%%`;n.Dom.before(t,i.createTextNode(o)),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 o=t.nextSibling;!(n.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&r.insertBefore(i.createTextNode(" "),o)}),(0,o.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),r=i(70799),o=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 r.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 o.hasBrowserColorPicker},hasContainer:function(){return o.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 o.isAbortError},isArray:function(){return o.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return o.isBoolean},isDestructable:function(){return o.isDestructable},isEqual:function(){return o.isEqual},isFastEqual:function(){return o.isFastEqual},isFunction:function(){return o.isFunction},isHTML:function(){return o.isHTML},isHtmlFromWord:function(){return o.isHtmlFromWord},isInitable:function(){return o.isInitable},isInt:function(){return o.isInt},isJoditObject:function(){return o.isJoditObject},isLicense:function(){return o.isLicense},isMarker:function(){return o.isMarker},isNativeFunction:function(){return o.isNativeFunction},isNumber:function(){return o.isNumber},isNumeric:function(){return o.isNumeric},isPlainObject:function(){return o.isPlainObject},isPromise:function(){return o.isPromise},isSet:function(){return o.isSet},isString:function(){return o.isString},isStringArray:function(){return o.isStringArray},isURL:function(){return o.isURL},isValidName:function(){return o.isValidName},isViewObject:function(){return o.isViewObject},isVoid:function(){return o.isVoid},isWindow:function(){return o.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 r.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),r=i(91898),o=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 r.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return o.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),r=i(3760),o=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 o}});var n=i(35278),r=i(49055);let o=e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,r.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),r=i(86068),o=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,r.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,o.colorToHex)(t.toString())||t}},49033:function(e,t,i){i.d(t,{normalizeKeyAliases:function(){return o}});var n=i(82758),r=i(49055);function o(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,r.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 r}});var n=i(49055);let r=(...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,r=e.parentElement;for(;n&&r;){if(""!==(i=n.getComputedStyle(r)).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=r.getBoundingClientRect();return{x:e.left,y:e.top}}r=r.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=r.Dom.isHTMLElement(t),s=i&&(0,o.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),r=i(2748),o=i(43555)},56175:function(e,t,i){i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return o.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),r=i(35224),o=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 r}});var n=i(27613);function r(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,r=!1)=>{let o,s,a;try{o=e.getBoundingClientRect()}catch(e){o={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(!r&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=n(m,t,t.od,!0);s=o.top+e,a=o.left+i}else s=o.top+d-f,a=o.left+h-p;return{top:Math.round(s),left:Math.round(a),width:o.width,height:o.height}}},5700:function(e,t,i){i.d(t,{position:function(){return function e(t,i,r=!1){var o,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!r){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!=(o=t.offsetWidth)?o: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 r}});var n=i(82758);function r(e,t,i=0,o=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>=o&&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),r=i(70799),o=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),r=e,o=0;for(;n&&void 0!==t[o];)r=r.replace(n[0],t[o].toString()),o+=1,n=i.exec(e);return r};function c(e,t,i){if(!(0,r.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,r.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,r.isString)(t[i]))return d(t[i]);let n=(0,o.ucfirst)(e);if((0,r.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,r.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 r.fuzzySearchIndex},i18n:function(){return o.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return o.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),r=i(67477),o=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 r},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(),r=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),r=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(r.get(t))return"[refObject]";r.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,i){i.d(t,{trim:function(){return r},trimChars:function(){return o},trimInv:function(){return s}});var n=i(82758);function r(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function o(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 o}});var n=i(22732),r=i(41180);function o(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function 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 o},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,r=0){return(0,n.isString)(i[r])?a(t,i[r]).then(()=>e(t,i,r+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,r=0){return(0,n.isString)(i[r])?l(t,i[r]).then(()=>e(t,i,r+1)):Promise.resolve()}}});var n=i(70799),r=i(66292);let o=new Map,s=e=>(t,i)=>{if(o.has(i))return o.get(i);let n=e(t,i);return o.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let o=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(t)});e.e.one(o,"error",n).one(o,"load",i),e.od.body.appendChild(o)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let o=e.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",e.isInDestruct||e.e.on(o,"load",()=>i(o)).on(o,"error",n),o.href=(0,r.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(o):e.od.body.appendChild(o)}))},38837:function(e,t,i){i.d(t,{assert:function(){return r}});class n extends Error{constructor(e){super(e),this.name="AssertionError"}}function r(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,o.isString)(i))return Object.keys(i).forEach(n=>{let o=i[n];(0,r.isPlainObject)(o)&&"style"===n?(0,a.css)(t,o):("className"===n&&(n="class"),e(t,n,o))}),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),r=i(72430),o=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 r}});var n=i(72430);let r=(e,t)=>{let i=[],o=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)?r(l,a):o(a)+"="+o(l))}return i.join("&")}},66292:function(e,t,i){i.d(t,{completeUrl:function(){return r}});var n=i(82758);let r=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,r.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return u},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{let o=i[n],s=t[n];(0,r.isPlainObject)(o)&&(0,r.isPlainObject)(s)&&!(0,l.isAtom)(o)?e(s,o):t[n]=o})}},ConfigProto:function(){return function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let u=a.Config.defaultOptions;if((0,o.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 d={};return Object.keys(t).forEach(o=>{let s=t[o],a=i?i[o]:null;if((0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,l.isAtom)(s)){d[o]=e(s,a,c+1);return}if(0!==c&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){d[o]=[...s,...a.slice(s.length)];return}d[o]=s}),Object.setPrototypeOf(d,i),d}}});var n=i(68345),r=i(72430),o=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(37790);function u(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),r=i(26049),o=i(82501);let s=(e,{width:t=400,height:i=345}={})=>{if(!(0,r.isURL)(e))return e;let s=n.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;s.href=e,t||(t=400),i||(i=345);let l=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(e)?e.replace(a,'<iframe width="'+t+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let n=s.search?(0,o.parseQuery)(s.search):{v:s.pathname.substring(1)};return/^embed\/.*/.test(n.v)&&(n.v=n.v.substring(6)),n.v?'<iframe width="'+t+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+n.v+'" 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),r=i(72430),o=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,r.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,o.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,o.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,r.isPlainObject)(t)){let i=Object.keys(t);for(let r=0;r<i.length;r+=1)n(e,(0,s.camelCase)(i[r]),t[i[r]])}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)),o.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,o.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 o}});var n=i(39955);let r=new WeakMap,o=(e,t,i)=>{let o=r.get(e);if(!o){o={},r.set(e,o);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{r.delete(e)})}return void 0===i?o[t]:(o[t]=i,i)}},96325:function(e,t,i){i.d(t,{defaultLanguage:function(){return o}});var n=i(82758),r=i(70799);let o=(e,t="en")=>"auto"!==e&&(0,r.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 o},error:function(){return r},options:function(){return s}});var n=i(32880);function r(e){return TypeError(e)}function o(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 r.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return n.abort}});var n=i(93661),r=i(86397),o=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 r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(82760),r=i(32880)},97735:function(e,t,i){i.d(t,{fastClone:function(){return s},isAtom:function(){return r},markAsAtomic:function(){return o}});var n=i(67462);function r(e){return e&&e.isAtom}function o(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 o},keepNames:function(){return r}});var n=i(23282);let r=new Map,o=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(r.has(i))return r.get(i);if(i.name)return i.name;let o=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(o);return s?s[1]:""}},94643:function(e,t,i){i.d(t,{get:function(){return o}});var n=i(70799),r=i(86068);function o(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),o=t;try{for(let e of i){if((0,r.isVoid)(o[e]))return null;o=o[e]}}catch(e){return null}return(0,r.isVoid)(o)?null:o}},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 r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return o.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 r.loadNext},loadNextStyle:function(){return r.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),r=i(63799),o=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 r}});let n=console;function r(e,t=[""],i=null){return(...r)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...r))}},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),r=i(70799),o=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(r=>{let s=[(0,o.attr)(r,"width"),(0,o.attr)(r,"height"),r.src];(0,o.attr)(r,{width:r.offsetWidth+t,height:r.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=r.src,r.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;r.src=null!=(e=s[2])?e:"",(0,o.attr)(r,{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,r=i.document.body,o=new ResizeObserver(e.async.debounce(()=>{o.unobserve(r),t.style.height=`${r.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||o.observe(r)})},100)),s=()=>{n=!0,o.unobserve(r),o.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,r.isString)(i)?e.c.div():i;(0,r.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,o.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),r=i(23282),o=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,o.get)(e,i.contentWindow),a=(0,o.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,r.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 r},scrollIntoViewIfNeeded:function(){return o}});var n=i(2748);function r(e,t,i){let n=e.getBoundingClientRect(),r=e,o=n.top,s=n.height;for(;r&&r!==t&&r.parentNode;)if(!(o<=(n=(r=r.parentNode).getBoundingClientRect()).bottom)||o+s<=n.top)return!1;return o<=(i.documentElement&&i.documentElement.clientHeight||0)}function o(e,t,i){n.Dom.isHTMLElement(e)&&!r(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),r(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),r=i(2748),o=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,r=n||"_selector_id_"+String(Math.random()).slice(2)+ ++u;e=e.replace(/:scope/g,"#"+r),n||t.setAttribute("id",r),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,o.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(!r.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||!r.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),r=i(29807),o=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,o.isPlainObject)(l[c])||(l[c]=(0,r.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),r=i(86068),o=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,o.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 r=new Image,o=()=>{t.e.off(r),null==n||n()},s=()=>{t.e.off(r),i(r)};t.e.one(r,"load",s).one(r,"error",o).one(r,"abort",o),r.src=e,r.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 o;let a=`button${i.command}`,l=null!=(o=i.args&&i.args[0])?o:(0,s.dataBind)(e,a);if((0,r.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),r=i(60132),o=i(14041);function s(e,t,i,s,a,l,c){if((0,r.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,o.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),r=i(12475),o=i(63799),s=i(89672);function a(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}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,o.appendStyleAsync)(e,i)},function(){var e=this,t=arguments;return new Promise(function(n,r){var o=i.apply(e,t);function s(e){a(o,n,r,s,l,"next",e)}function l(e){a(o,n,r,s,l,"throw",e)}s(void 0)})})()}function u(e,t,i){t=(0,r.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function d(e,t,i,r){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,o.appendScriptAsync)(t,i).then(r).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},48591:function(e,t,i){i.d(t,{makeInstance:function(){return o}});var n=i(82758),r=i(23282);function o(e,t){try{try{return(0,r.isFunction)(t)?new t(e):t}catch(i){if((0,r.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 r}});var n=i(12475);function r(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),r=i(57012),o=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),r.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:r}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,o.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(r).forEach(([n,r])=>{if(i.has(n)||f.has(n))return;let o=null==r?void 0:r.requires;if(o&&(0,s.isArray)(o)&&o.length){if(o.some(e=>i.has(e)))return;if(!o.every(e=>f.has(e)))return void m.add(n)}t=!0;let a=(0,d.makeInstance)(e,r);if(!a){f.set(n,null),m.delete(n);return}(0,c.init)(e,n,r,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(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.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),r=i(65478),o=i(19306),s=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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,o.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,o.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([r.autobind],a.prototype,"__afterPluginSystemInit",null),s([r.autobind],a.prototype,"__afterInit",null),s([r.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){i.d(t,{Ajax:function(){return f}});var n=i(8884),r=i(82758),o=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 o=e[t](i),s=o.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}r(o.done?"return":"normal",i)},function(e){n("throw",e)})}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,r){return new Promise(function(o,s){var a={key:e,arg:r,resolve:o,reject:s,next:null};i?i=i.next=a:(t=i=a,n(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}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 r.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,r)=>{var o;return(o=function*(){var o;let l=()=>{this.__isFulfilled=!0,r(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,r(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,r(a.connection(e.statusText))))},e.withCredentials=null!=(o=t.withCredentials)&&o;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 r=o.apply(e,t);function s(e){d(r,i,n,s,a,"next",e)}function a(e){d(r,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,r=this.prepareRequest(),o=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(o),o=n.length;let r=l.split("\n\n");for(let i of(l=e?"":null!=(t=r.pop())?t:"",r)){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}=r;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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([o.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 r.Response}});var n=i(54079),r=i(98582)},98582:function(e,t,i){function n(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise(function(r,o){var s=e.apply(t,i);function a(e){n(s,r,o,a,l,"next",e)}function l(e){n(s,r,o,a,l,"throw",e)}a(void 0)})}}i.d(t,{Response:function(){return o}});class o{get url(){return this.request.url}json(){return r(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return r(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 o.moveNodeInsideStart}});var n=i(82758),r=i(2748),o=i(26716);function s(e,t,i,r){var o;let s=(null==(o=e.nodeValue)?void 0:o.length)?e.nodeValue:"";if(r&&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,o,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!r.Dom.isText(e)){if(!i&&r.Dom.isText(e.previousSibling))e=e.previousSibling;else if(o){let t=s(e);for(;t;){if(t&&r.Dom.isText(t)){e=t;break}t=s(t)}}}if(e&&!n&&!r.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!r.Dom.isText(t));t===i&&t&&r.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(43463)},26716:function(e,t,i){i.d(t,{moveNodeInsideStart:function(){return o}});var n=i(82758),r=i(2748);function o(e,t,i){let o=r.Dom.findSibling(t,i),s=r.Dom.findSibling(t,!i);for(;r.Dom.isElement(o)&&!r.Dom.isTag(o,n.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(o,e.editor)&&(!s||!r.Dom.closest(t,r.Dom.isElement,e.editor));)i||!o.firstChild?o.appendChild(t):r.Dom.before(o.firstChild,t),o=r.Dom.sibling(t,i),s=r.Dom.sibling(t,!i)}},43463:function(e,t,i){i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return r}});var n=i(2748);function r(e,t,i){let r=e;for(;r&&r!==i&&!(n.Dom.findSibling(r,t)||n.Dom.isBlock(r.parentElement));)(r=r.parentElement)&&r!==i&&(t?n.Dom.before(r,e):n.Dom.after(r,e))}},59242:function(e,t,i){i.d(t,{CHANGE:function(){return o.CHANGE},CommitStyle:function(){return r.CommitStyle},REPLACE:function(){return o.REPLACE},Selection:function(){return n.Selection},UNWRAP:function(){return o.UNWRAP},WRAP:function(){return o.WRAP}});var n=i(79348),r=i(25639),o=i(77361)},79348:function(e,t,i){i.d(t,{Selection:function(){return f}});var n=i(82758),r=i(65478),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class f{get j(){return this.jodit}errorNode(e){if(!o.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||!o.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(!o.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");o.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(){o.Dom.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let r=this.j.createInside.span();return r.id=n.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",o.Dom.markTemporary(r),(0,s.attr)(r,"data-"+n.MARKER_CLASS,e?"start":"end"),r.appendChild(this.j.createInside.text(n.INVISIBLE_SPACE)),i&&o.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(r),r}restore(){let e=!1,t=e=>`span[data-${n.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),r=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),r)e.setStartAfter(i),o.Dom.safeRemove(i),e.setEndBefore(r),o.Dom.safeRemove(r);else{let t=i.previousSibling;o.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),o.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();o.Dom.safeInsertNode(i,n),t.setStartBefore(n);let r=[n];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();o.Dom.safeInsertNode(e,i),t.setEndAfter(i),r.push(i)}return this.selectRange(t),r}restoreFakes(e){var t,i,n,r;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)&&o.Dom.safeRemove(a),(null==(n=null==l?void 0:l.parentNode)?void 0:n.firstChild)!==(null==(r=null==l?void 0:l.parentNode)?void 0:r.lastChild)&&o.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],n=t.rangeCount,r=[];for(let e=0;n>e;e+=1)if(r[e]=t.getRangeAt(e),r[e].collapsed){let t=this.marker(!0,r[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,r[e]),n=this.marker(!1,r[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)r[e].setStartAfter(n),r[e].collapse(!0);else if(r[e].setStartBefore(n),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&r[e].setEndAfter(t)}try{t.addRange(r[e].cloneRange())}catch(e){}}}}return i}focus(e={preventScroll:!0}){var t,i;if(!this.isFocused()){let n=(0,s.getScrollParent)(this.j.container),r=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),r&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,r);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!o.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),r=i.startContainer,s=!1;if(o.Dom.isTag(r,"br")&&t.isCollapsed)return r;if(!o.Dom.isText(r)){let n=(0,d.findCorrectCurrentNode)(r,i,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);r=n.node,s=n.rightMode}return r&&o.Dom.isOrContains(this.area,r)?r:null}insertNode(e,t=!0,i=!0){this.errorNode(e);let n=o.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let r=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),r&&r.rangeCount){let t=r.getRangeAt(0),{firstChild:i}=e;o.Dom.isOrContains(this.area,t.commonAncestorContainer)?o.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&&o.Dom.isEmptyTextNode(t)&&o.Dom.safeRemove(t)})}else this.area.appendChild(e);let i=e=>{if(o.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(o.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",o.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()),o.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 r=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(n.style.width="",n.style.height=""),n.removeEventListener("load",r)};this.j.e.on(n,"load",r),n.complete&&r(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){var t;let i=this.sel;if(!i||!i.rangeCount)return;let r=i.getRangeAt(0),l=r.commonAncestorContainer;o.Dom.isHTMLElement(l)||(l=l.parentElement);let c=[],u=r.startOffset,d=l.childNodes.length,h=r.startContainer===this.area?l.childNodes[u<d?u:d-1]:r.startContainer,f=r.endContainer===this.area?l.childNodes[r.endOffset-1]:r.endContainer;o.Dom.isText(h)&&h===r.startContainer&&r.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),o.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let p=e=>{!e||e===l||o.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||c.push(e)};p(h),h!==f&&o.Dom.isOrContains(l,h,!0)&&o.Dom.find(h,e=>(p(e),e===f||e&&e.contains&&e.contains(f)),l,!0,!1);let m=t=>{if(o.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(m);if(o.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&&(o.Dom.isEmptyTextNode(h)&&c.push(h),h.firstChild&&c.push(h.firstChild)),c.forEach(m)}cursorInTheEdge(e,t,i=null){var n;let r=!e,a=null==(n=this.sel)?void 0:n.getRangeAt(0);if(null!=i||(i=this.current(!1)),!a||!i||!o.Dom.isOrContains(t,i,!0))return null;let l=e?a.startContainer:a.endContainer,c=e?a.startOffset:a.endOffset,u=e=>!!(e&&!o.Dom.isTag(e,"br")&&!o.Dom.isEmptyTextNode(e)&&!o.Dom.isTemporary(e)&&!(o.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(o.Dom.isText(l)){if((0,d.cursorInTheEdgeOfString)(l,c,e,r))return!1}else{let e=(0,s.toArray)(l.childNodes);if(r){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=o.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),!o.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 r=this.createRange(),a=null;return o.Dom.isText(e)?t?r.setStart(e,0):r.setEnd(e,null!=(n=null==(i=e.nodeValue)?void 0:i.length)?n:0):(a=this.j.createInside.fake(),t?r.setStartBefore(e):r.setEndAfter(e),r.collapse(t),o.Dom.safeInsertNode(r,a),r.selectNode(a)),r.collapse(t),this.selectRange(r),a}setCursorIn(e,t=!1){if(this.errorNode(e),!o.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(),r=e,a=e;do{if(o.Dom.isText(r)||o.Dom.isTag(r,n.INSEPARABLE_TAGS))break;a=r,r=t?r.firstChild:r.lastChild}while(r);if(!r){let e=this.j.createInside.text(n.INVISIBLE_SPACE);o.Dom.isTag(a,n.INSEPARABLE_TAGS)?r=a:(a.appendChild(e),a=e)}let l=r||a;return o.Dom.isTag(l,n.INSEPARABLE_TAGS)?t||o.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),!o.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,o.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)){o.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&o.Dom.before(e,t),i&&(0,a.isMarker)(i)&&o.Dom.after(e,i),yield e,o.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(o.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(o.Dom.unwrap(i),o.Dom.isEmpty(e)&&o.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(),r=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?o.Dom.before(t,c):o.Dom.safeInsertNode(r,c);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(o.Dom.isTag(i,"br")||o.Dom.isEmptyTextNode(i)))o.Dom.safeRemove(i);else break;i=e}};e(c,e=>e.nextSibling),e(c,e=>e.previousSibling),o.Dom.after(c,d),o.Dom.before(c,u),s?(i.setEndBefore(c),r.setEndBefore(c)):(i.setEndAfter(c),r.setEndAfter(c))}else i.setEnd(r.startContainer,r.startOffset);let h=i.extractContents(),f=e=>o.Dom.each(e,e=>o.Dom.isEmptyTextNode(e)&&o.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{o.Dom.safeRemove(u),o.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!o.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),o.Dom.safeInsertNode(n,i),(0,c.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),r=i(!1);t.setStartAfter(n),t.setEndBefore(r);let a=o.Dom.findSibling(n,!1),l=o.Dom.findSibling(r,!0);if(a!==l){let e=o.Dom.isElement(a)&&o.Dom.isOrContains(a,r),i=!e&&o.Dom.isElement(l)&&o.Dom.isOrContains(l,n);if(e||i){let i=e?a:l,s=i;for(;o.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?o.Dom.isOrContains(i,r):o.Dom.isOrContains(i,n))&&(s=i);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(this.selectRange(t),o.Dom.safeRemove(n,r),this.isCollapsed())throw(0,s.error)("Selection is collapsed");return this}constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([r.autobind],f.prototype,"createRange",null),h([r.autobind],f.prototype,"focus",null),h([r.autobind],f.prototype,"setCursorAfter",null),h([r.autobind],f.prototype,"setCursorBefore",null),h([r.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,i){i.d(t,{extractSelectedPart:function(){return a}});var n=i(2748),r=i(78116),o=i(49055),s=i(37790);function a(e,t,i){let n=i.s.createRange(),o=(0,r.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(o),l(e,n,!0);let s=(0,r.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),l(e,n,!1)}function l(e,t,i){let r=t.extractContents();r.textContent&&(0,o.trim)(r.textContent).length||!r.firstChild||n.Dom.unwrap(r.firstChild),e.parentNode&&(0,s.call)(i?n.Dom.before:n.Dom.after,e,r)}},49996:function(e,t,i){i.d(t,{FiniteStateMachine:function(){return s}});var n=i(82758),r=i(70799),o=i(38837);class s{setState(e){(0,o.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,o.assert)(e&&e!==t,"Action should return new value"),(0,o.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,o.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),r=i(29136),o=i(97380);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,r.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,r.isNormalNode,t)&&(0,o.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,r.isNormalNode,a)||n.Dom.prev(i,r.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(a)?e(t,a,s):(0,o.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),r=i(29136),o=i(97380)},22030:function(e,t,i){i.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});var n=i(82758),r=i(2748),o=i(86068),s=i(3760),a=i(38837),l=i(41180);function c(e,t){return!!(!r.Dom.isTag(e,"font")&&r.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,o.isVoid)(n)&&""!==n&&!(0,o.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!!(!r.Dom.isTag(e,"font")&&r.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 r.FiniteStateMachine},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return o.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),r=i(49996),o=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 r}});var n=i(2748);function r(e,t){return!!n.Dom.closest(e,["style","script"],t)}},29136:function(e,t,i){i.d(t,{isNormalNode:function(){return o}});var n=i(2748),r=i(78116);function o(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,r.isMarker)(e))}},94466:function(e,t,i){i.d(t,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var n=i(21496),r=i(43555),o=i(38837),s=i(22030);function a(e,t){return!((e.attributes.length||(0,n.size)(t))&&(0,n.size)(t))||((0,o.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,r.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),r=i(22030),o=i(29136);function s(e,t,i,a=!0){var l;if(!t||!(0,o.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,r.hasSameStyle)(t,d.attributes.style):(0,r.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,o.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,c=!!((null==(i=a.attributes)?void 0:i.style)&&(0,r.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),r=i(38837),o=i(32526),s=i(44253),a=i(77361),l=i(82515);function c(e,t,i,n){if(!t)return n;let r=t.parentElement;if(!r)return n;let o=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,r);if(void 0!==o)return o;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(n!==a.UNWRAP){let o=(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(n===a.REPLACE||o||r.tagName.toLowerCase()!==e.element){let n=u(a.REPLACE,r,t,i,e),o=(0,l.wrapList)(e,n,i);return c(a.REPLACE,o,e),a.REPLACE}}let d=u(a.UNWRAP,r,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,r.assert)(n.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,o.extractSelectedPart)(t,i,s),(0,r.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),r=i(94466),o=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,r.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,o.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,r.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),r=i(2748),o=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,o.getContainer)(e),r=n.globalDocument.createElement("iframe");(0,d.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",i.appendChild(r);let s=null==(t=r.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),r.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&&(r.Dom.unwrap(t),i=f.UNWRAP)),i}},75882:function(e,t,i){i.d(t,{unwrapChildren:function(){return a}});var n=i(2748),r=i(43555),o=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,o.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,r.css)(t,Object.keys(u).reduce((e,t)=>(e[t]=null,e),{})),(0,r.attr)(t,"style")||(0,r.attr)(t,"style",null),(0,r.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 o}});var n=i(2748),r=i(78116);function o(e,t,i){let o=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,r.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!==o?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 a}});var n=i(22732),r=i(29960),o=i(82515),s=i(6980);function a(e,t,i){var a,c,u;let d=(a=e,c=t,u=i,a.elementIsBlock?n.Dom.up(c,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,l),u.editor)||(0,s.wrapUnwrappedText)(a,c,u):((0,r.attr)(c,"size",null),c));return e.elementIsList?(0,o.wrapList)(e,d,i):n.Dom.replace(d,e.element,i.createInside,!0)}let l=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),r=i(77361),o=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:r.INITIAL,element:u.value,next:o.states.START,jodit:e,style:t};for(;u&&!u.done;){let e=new n.FiniteStateMachine(o.states.START,o.transactions);for(d.element=u.value;e.getState()!==o.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),r=i(87058),o=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,r.camelCase)(o._PREFIX+"_"+i),t[i])}),(0,s.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(o._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 o},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return r},WRAP:function(){return n},_PREFIX:function(){return c}});let n="wrap",r="unwrap",o="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),r=i(2748),o=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:o,collapsed:d}=e;if((0,s.isInsideInvisibleElement)(t,i.editor)||!d&&r.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&&r.Dom.isList(f)?c(l({},e),{next:u.LIST}):f?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:o!==a.UNWRAP?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:i,mode:o}=e;if(o!==a.INITIAL&&o!==a.UNWRAP&&o!==a.REPLACE)return c(l({},e),{next:u.END});let s=r.Dom.closest(t,"li",i.editor);return s&&r.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,o.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&r.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,r=(0,s.wrap)(n,t,i);return c(l({},e),{next:n.elementIsList?u.END:u.CHANGE,mode:a.WRAP,element:r})}},[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}):r.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:o}=e,d=(0,s.toggleAttributes)(t,i,n,e.mode);return o!==a.WRAP&&d===a.UNSET&&!i.attributes.length&&r.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&&r.Dom.isTag(e.element,e.style.element)?c(l({},e),{next:u.REPLACE_DEFAULT}):(r.Dom.unwrap(e.element),c(l({},e),{mode:a.UNWRAP,next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return r.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),r=i(2621),o=i(65638),s=i(21162),a=i(6700);function l(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function c(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var o=e.apply(t,i);function s(e){l(o,n,r,s,a,"next",e)}function a(e){l(o,n,r,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,o.canUsePersistentStorage)(e)&&(i=new o.LocalStorageProvider(a.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,r.canUseIndexedDB)().then(e=>e?new r.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 r(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function o(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var s=e.apply(t,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)})}}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 o(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 o(function*(){try{yield this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){n.IS_PROD}return this}).call(this)}delete(e){return o(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return o(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return o(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return o(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return o(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return o(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 o(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 o(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 o(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 r},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 r="1"===n.getItem(i);return n.removeItem(i),t.set(e,r),r}catch(e){}return t.set(e,!1),!1};class r{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 r.IndexedDBProvider},LocalStorageProvider:function(){return o.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return o.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var n=i(97333),r=i(2621),o=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),r=i(65638),o=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,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,r.canUsePersistentStorage)("localStorage")&&(i=new r.LocalStorageProvider(s+(t||""))),i||(i=new o.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),r=i(27613),o=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,o.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,r){return e=l(e,this),t=l(t,this),n=l(n,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,r)}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,r.isString)(e)&&!(0,r.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,i){i.d(t,{Elms:function(){return r}});var n=i(4510);class r{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 r}});var n=i(86068);class r{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let r=this.mods[e];if(r===t)return this;let o=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=r&&s.remove(`${o}${r.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${o}${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),r=i(33433),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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,o.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 r=new g(e);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(r.state.icon.name=t,r.state.name=t,n&&(r.state.variant=n),i&&(r.state.text=i)):r.setState(t),r}p([r.cache],g.prototype,"text",null),p([r.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([r.cacheHTML],g.prototype,"createContainer",null),p([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=p([o.component],g)},71916:function(e,t,i){i.d(t,{UIButtonGroup:function(){return a}});var n=i(87325),r=i(38837),o=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,r={6441:function(e,t,i){i.d(t,{Config:function(){return o}});var n=i(82758);let r={};class o{static get defaultOptions(){return o.__defaultOptions||(o.__defaultOptions=new o),o.__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,r)}}r=o.prototype,o.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return p}});var n=i(82758),r=i(91898),o=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 o=(0,r.setTimeout)(e,t,...i),s=n.label||o;return this.timers.set(s,o),this.__callbacks.set(s,e),o}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,r.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,r.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=(...o)=>{a=!1,t?(!n&&i&&d(...o),(0,r.clearTimeout)(n),n=this.setTimeout(()=>d(...o),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...o)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,o.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,r=!0;return(...o)=>{if(i=o,n){r=!0;return}r=!0,t&&(r=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&r&&e(...i)})}}throttle(e,t,i=!1){let n=null,r,o,a;return(...i)=>{(r=!0,a=i,t)?n||(o=()=>{r?(e(...a),r=!1,n=this.setTimeout(o,(0,s.isFunction)(t)?t():t),this.timers.set(o,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,r;let o=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),r=r={signal:i.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n));return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((n,r)=>{let o=this.setTimeout(()=>{try{n(e())}catch(e){r(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(o),this.__controllers.delete(i),r((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,r.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,r;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!=(r=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?r: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),r=i(78213),o=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===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.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),r=null==n?void 0:n[e];r&&r.length&&r.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=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,o.uniqueUid)()}}l.STATUSES=r.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return n.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return o.ViewComponent}});var n=i(4012),r=i(78213),o=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 r}});var n=i(4012);class r 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.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 r},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 er},INSERT_CLEAR_HTML:function(){return en},INSERT_ONLY_TEXT:function(){return eo},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 o},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 K},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return $},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.22",r="es2015",o=!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",$=1,K=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",er="insert_as_text",eo="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),r=i(2748),o=i(21537),s=i(38837);class a{get doc(){return(0,o.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,o.isPlainObject)(t)?(0,o.attr)(n,t):i=t),i&&(0,o.asArray)(i).forEach(e=>n.appendChild((0,o.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(r.Dom.safeRemove(n),t){let e=(0,o.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&r.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,o.isFunction)(i)?i(e):(0,o.isPlainObject)(i)&&(0,o.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 r}});var n=i(23282);function r(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 r=i.value;return{configurable:!0,get(){let e=r.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),r=i(2748),o=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,o.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,o.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&&r.Dom.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,o.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),r=i(80568);let o=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,r.getClassName)(e.prototype);if(o.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return o.set(i,t),t}function a(e){return o.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),r=i(27613),o=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,r.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,o.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,r.isFunction)(e)?e(n):e,c=(0,r.isNumber)(a)||(0,r.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 r}});var n=i(23282);function r(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let r=e[t],o=Object.getOwnPropertyNames(r.prototype);for(let e=0;e<o.length;e++){let t=o[e],s=Object.getOwnPropertyDescriptor(r.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 o}});var n=i(23282),r=i(89890);function o(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,r.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),r=i(23282),o=i(89890);function s(){return(e,t)=>{if(!(0,r.isFunction)(e[t]))throw(0,o.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 r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return o.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return o.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),r=i(33433),o=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 o}});var n=i(78213),r=i(39955);function o(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,r.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,o=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:o},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var n=i(78213),r=i(23282),o=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,r.isFunction)(s))throw(0,o.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,r=t[i],o=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(o),e(t)?r.apply(t,s):o=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var n=i(78213),r=i(73026),o=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,o.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,r]=e.split(":"),o=p;i.length&&(o=t.get(i)),(0,s.isFunction)(o)&&(o=o(t)),n.events.on(o||t,r,c),o||n.events.on(r,c),t.hookStatus("beforeDestruct",()=>{n.events.off(o||t,r,c).off(r,c)});return}let o=e.split("."),[l]=o,d=o.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,r.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,r.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),r=i(4510),o=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,r=e;i.s.save();let o=!1;do o=!1,(n=r.nextSibling)&&!b.isBlock(n)&&!b.isTag(n,"br")&&(o=!0,r=n);while(o);return b.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let r=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(r,i);let o=i;for(;o&&(o=i.nextSibling,r.appendChild(i),i!==n&&o);)i=o;return t.s.restore(),r}static wrapInline(e,t,i){let n,r=e,o=e;i.s.save();let s=!1;do s=!1,(n=r.previousSibling)&&!b.isBlock(n)&&(s=!0,r=n);while(s);do s=!1,(n=o.nextSibling)&&!b.isBlock(n)&&(s=!0,o=n);while(s);return b.__wrapElements(t,i,r,o)}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,o=!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,!o)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&b.isElement(e)&&b.isElement(s)&&(0,r.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 r=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return b.isText(e)?r(e):!(b.isElement(e)&&i(e))&&b.each(e,e=>{if(b.isText(e)&&!r(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){var t;return!!b.isNode(e)&&!!((null==(t=e.ownerDocument)?void 0:t.defaultView)&&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!!(i&&e instanceof i.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,r=!0){let o=this.nextGen(e,i,n,r),s=o.next();for(;!s.done;){if(t(s.value))return s.value;s=o.next()}return null}static*nextGen(e,t,i=!0,n=!0){let r=[],o=e;do{let t=i?o.nextSibling:o.previousSibling;for(;t;)r.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,r,i,n),o=o.parentNode}while(o&&o!==t);return null}static each(e,t,i=!0){let n=this.eachGen(e,i),r=n.next();for(;!r.done;){if(!1===t(r.value))return!1;r=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 r=t.pop();if(n){let e=i?r.lastChild:r.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==r&&(yield r)}}static findWithCurrent(e,t,i,n="nextSibling",r="firstChild"){let o=e;do{if(t(o))return o||null;if(r&&o&&o[r]){let e=b.findWithCurrent(o[r],t,o,n,r);if(e)return e}for(;o&&!o[n]&&o!==i;)o=o.parentNode;o&&o[n]&&o!==i&&(o=o[n])}while(o&&o!==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 r=e;if(!r)return null;do{if(t(r))return r;if(r===i||!r.parentNode)break;r=r.parentNode}while(r&&r!==i);return r===i&&n&&t(r)?r:null}static closest(e,t,i){let n,r=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,o.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(r));n=t=>!!(t&&e.has(r(t.nodeName)))}else n=e=>!!(e&&r(t)===r(e.nodeName));return b.up(e,n,i)}static furthest(e,t,i){let n=null,r=null==e?void 0:e.parentElement;for(;r&&r!==i;)t(r)&&(n=r),r=null==r?void 0:r.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,o.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,o=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,r.toArray)(e.childNodes).filter(e=>!!o(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,r.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 r.LazyWalker}});var n=i(2748),r=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var n=i(45219),r=i(2748),o=i(72757);class s extends o.Eventify{setWork(e){return this.isWorked&&this.break(),this.workNodes=r.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>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),r=i(46559),o=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,r.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,r){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=r),!((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,o.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,r;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let o={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,o,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!=(r=null==f?void 0:f.capture)&&r;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 r,o,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(r=this,o=e,s=t,l=i):(r=e,o=t,s=i,l=n);let c=(...e)=>(this.off(r,o,c),s(...e));return this.on(r,o,c,l),this}off(e,t,i){let n,r,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,r=e,l=t):(n=e,r=t,l=i),(0,o.isArray)(n))return n.forEach(e=>{this.off(e,r,l)}),this;let u=n,h=this.__getStore(u);if(!((0,a.isString)(r)||(0,a.isStringArray)(r))||0===r.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(r,(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 r=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=r.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&r.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,r,o=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(o)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(o);return!(0,a.isString)(s)&&d(o)?this.__triggerNativeEvent(o,t):this.__eachEvent(s,(e,t)=>{if(d(o))this.__triggerNativeEvent(o,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),r=t.syntheticCallback.call(o,e,...u),this.currents.pop(),void 0!==r&&(n=r),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(o)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[o,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 r.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return o.observable}});var n=i(98220),r=i(72757),o=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var n=i(68345),r=i(59292),o=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,r)=>((0,n.isArray)(t)?t.map(e=>c(e,r)):(i[t]||(i[t]=[]),i[t].push(r)),e),u=(r,...o)=>{if((0,n.isArray)(r))return void r.map(e=>u(e,...o));try{!t[r]&&i[r]&&(t[r]=!0,i[r].forEach(t=>t.call(e,...o)))}finally{t[r]=!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,r.isFastEqual)(n[a],t)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,o.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let r=[];u(["change",...l.reduce((e,t)=>(r.push(t),e.push(`change.${r.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,o.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 o}});var n=i(4510),r=i(38837);let o="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,r.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!==o):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let r=this.__store.get(t);r||(r={},this.__store.set(t,r)),void 0===r[e]&&(r[e]=[]),n?r[e].unshift(i):r[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),r=i(70799),o=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,r.isString)(t)?t:t?(0,l.getClassName)(t.prototype):"jodit-utils",u=w.get(e)||{},d=c+i,f=(0,o.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 r="style"===i?e.ed.head:e.ed.body;p=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:r}let r=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(c)}-container jodit-box`});r.classList.add(`jodit_theme_${f.o.theme||"default"}`),p.appendChild(r),u[d]=r,e.hookStatus("beforeDestruct",()=>{f.events.off(r),h.Dom.safeRemove(r),delete u[d],Object.keys(u).length&&w.delete(e)}),w.set(e,u),f.events.fire("getContainer",r)}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,r,o;return null!=(o=null!=(r=null!=(n=e.popupRoot)?n:e.shadowRoot)?r:h.Dom.closest(t,e=>h.Dom.isHTMLElement(e)&&(h.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,a.css)(e,"position"))),i))?o:i}let C=u.eventEmitter},29999:function(e,t,i){i.d(t,{asArray:function(){return r}});var n=i(68345);let r=e=>(0,n.isArray)(e)?e:[e]},76855:function(e,t,i){i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return r.splitArray},toArray:function(){return o.toArray}});var n=i(29999),r=i(46559),o=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 o}});var n=i(70722),r=i(58844);let o=function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,r.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 o},setTimeout:function(){return r}});var n=i(82758);function r(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function o(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return r}});var n=i(82758);function r(){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 r.isAbortError},isArray:function(){return o.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),r=i(12045),o=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 r},isFastEqual:function(){return o}});var n=i(67462);function r(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function o(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(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,i){i.d(t,{isHTML:function(){return r}});var n=i(70799);let r=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),r=i(23282),o=i(86068);function s(e){return!(0,o.isVoid)(e)&&(0,r.isFunction)(e.init)}function a(e){return!(0,o.isVoid)(e)&&(0,r.isFunction)(e.destruct)}function l(e){return!(0,o.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return o}});var n=i(29807),r=i(70799);function o(e){return(0,r.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 r}});var n=i(23282);function r(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 r}});var n=i(70799);let r=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 r}});var n=i(2748);function r(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 r}});var n=i(70799);function r(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 r}});var n=i(52742);function r(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 r}});var n=i(23282);function r(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 r},isStringArray:function(){return o}});var n=i(68345);function r(e){return"string"==typeof e}function o(e){return(0,n.isArray)(e)&&r(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return r}});var n=i(82758);function r(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 r}});var n=i(23282);function r(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),r=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return t[1]+"#"+r}},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),r=i(2748),o=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();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}r.Dom.each(l.body,e=>{if(r.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,o.trim)(l.body.innerHTML):""}}catch(e){}finally{r.Dom.safeRemove(t)}return i&&(e=i),(0,o.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),r=i(2748),o=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&&r.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":r.Dom.unwrap(e);break;default:(0,o.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)}}),r.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 r}});var n=i(82758);function r(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 r.cleanFromWord},htmlspecialchars:function(){return o.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),r=i(53212),o=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 o},sanitizeHTMLElement:function(){return a}});var n=i(2748),r=i(43555);function o(e,t){var i;(n.Dom.isElement(e)||n.Dom.isFragment(e))&&((null!=(i=t.removeEventAttributes)?i:t.removeOnError)?(s(e),(0,r.$$)("*",e).forEach(e=>s(e))):t.removeOnError&&(a(e,t),(0,r.$$)("[onerror]",e).forEach(e=>a(e,t))),t.safeJavaScriptLink&&(a(e,t),(0,r.$$)('a[href^="javascript"]',e).forEach(e=>a(e,t))),t.safeLinksTarget&&(0,r.$$)('a[target="_blank"]',e).forEach(e=>{let t=(e.getAttribute("rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,r.attr)(e,"rel",t.join(" "))}))}function s(e){if(!n.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let n of i)e.removeAttribute(n),t=!0;return t}function a(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let o=!1;i&&e.hasAttribute("onerror")&&((0,r.attr)(e,"onerror",null),o=!0);let s=e.getAttribute("href");return t&&s&&0===s.trim().indexOf("javascript")&&((0,r.attr)(e,"href",location.protocol+"//"+s),o=!0),o}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null){let d=i.createElement("div");return(0,r.isString)(t)?d.innerHTML=t:d.appendChild(t),(0,s.$$)("*",d).forEach(t=>{let r=t.parentNode;if(!r)return;if(u&&n.Dom.isTag(t,u)){let r=t.nodeName.toLowerCase(),o=n.Dom.isTag(t,c)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${e(t.innerHTML,i,u)}%%%/jodit-${r}%%%`;n.Dom.before(t,i.createTextNode(o)),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 o=t.nextSibling;!(n.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&r.insertBefore(i.createTextNode(" "),o)}),(0,o.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),r=i(70799),o=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 r.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 o.hasBrowserColorPicker},hasContainer:function(){return o.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 o.isAbortError},isArray:function(){return o.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return o.isBoolean},isDestructable:function(){return o.isDestructable},isEqual:function(){return o.isEqual},isFastEqual:function(){return o.isFastEqual},isFunction:function(){return o.isFunction},isHTML:function(){return o.isHTML},isHtmlFromWord:function(){return o.isHtmlFromWord},isInitable:function(){return o.isInitable},isInt:function(){return o.isInt},isJoditObject:function(){return o.isJoditObject},isLicense:function(){return o.isLicense},isMarker:function(){return o.isMarker},isNativeFunction:function(){return o.isNativeFunction},isNumber:function(){return o.isNumber},isNumeric:function(){return o.isNumeric},isPlainObject:function(){return o.isPlainObject},isPromise:function(){return o.isPromise},isSet:function(){return o.isSet},isString:function(){return o.isString},isStringArray:function(){return o.isStringArray},isURL:function(){return o.isURL},isValidName:function(){return o.isValidName},isViewObject:function(){return o.isViewObject},isVoid:function(){return o.isVoid},isWindow:function(){return o.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 r.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),r=i(91898),o=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 r.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return o.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),r=i(3760),o=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 o}});var n=i(35278),r=i(49055);let o=e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,r.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),r=i(86068),o=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,r.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,o.colorToHex)(t.toString())||t}},49033:function(e,t,i){i.d(t,{normalizeKeyAliases:function(){return o}});var n=i(82758),r=i(49055);function o(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,r.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 r}});var n=i(49055);let r=(...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,r=e.parentElement;for(;n&&r;){if(""!==(i=n.getComputedStyle(r)).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=r.getBoundingClientRect();return{x:e.left,y:e.top}}r=r.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=r.Dom.isHTMLElement(t),s=i&&(0,o.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),r=i(2748),o=i(43555)},56175:function(e,t,i){i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return o.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),r=i(35224),o=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 r}});var n=i(27613);function r(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,r=!1)=>{let o,s,a;try{o=e.getBoundingClientRect()}catch(e){o={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(!r&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=n(m,t,t.od,!0);s=o.top+e,a=o.left+i}else s=o.top+d-f,a=o.left+h-p;return{top:Math.round(s),left:Math.round(a),width:o.width,height:o.height}}},5700:function(e,t,i){i.d(t,{position:function(){return function e(t,i,r=!1){var o,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!r){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!=(o=t.offsetWidth)?o: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 r}});var n=i(82758);function r(e,t,i=0,o=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>=o&&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),r=i(70799),o=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),r=e,o=0;for(;n&&void 0!==t[o];)r=r.replace(n[0],t[o].toString()),o+=1,n=i.exec(e);return r};function c(e,t,i){if(!(0,r.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,r.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,r.isString)(t[i]))return d(t[i]);let n=(0,o.ucfirst)(e);if((0,r.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,r.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 r.fuzzySearchIndex},i18n:function(){return o.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return o.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),r=i(67477),o=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 r},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(),r=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),r=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(r.get(t))return"[refObject]";r.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,i){i.d(t,{trim:function(){return r},trimChars:function(){return o},trimInv:function(){return s}});var n=i(82758);function r(e){return e.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function o(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 o}});var n=i(22732),r=i(41180);function o(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function 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 o},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function e(t,i,r=0){return(0,n.isString)(i[r])?a(t,i[r]).then(()=>e(t,i,r+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,r=0){return(0,n.isString)(i[r])?l(t,i[r]).then(()=>e(t,i,r+1)):Promise.resolve()}}});var n=i(70799),r=i(66292);let o=new Map,s=e=>(t,i)=>{if(o.has(i))return o.get(i);let n=e(t,i);return o.set(i,n),n},a=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let o=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(t)});e.e.one(o,"error",n).one(o,"load",i),e.od.body.appendChild(o)})),l=s((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let o=e.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",e.isInDestruct||e.e.on(o,"load",()=>i(o)).on(o,"error",n),o.href=(0,r.completeUrl)(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(o):e.od.body.appendChild(o)}))},38837:function(e,t,i){i.d(t,{assert:function(){return r}});class n extends Error{constructor(e){super(e),this.name="AssertionError"}}function r(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,o.isString)(i))return Object.keys(i).forEach(n=>{let o=i[n];(0,r.isPlainObject)(o)&&"style"===n?(0,a.css)(t,o):("className"===n&&(n="class"),e(t,n,o))}),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),r=i(72430),o=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 r}});var n=i(72430);let r=(e,t)=>{let i=[],o=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)?r(l,a):o(a)+"="+o(l))}return i.join("&")}},66292:function(e,t,i){i.d(t,{completeUrl:function(){return r}});var n=i(82758);let r=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,r.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return u},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{let o=i[n],s=t[n];(0,r.isPlainObject)(o)&&(0,r.isPlainObject)(s)&&!(0,l.isAtom)(o)?e(s,o):t[n]=o})}},ConfigProto:function(){return function e(t,i,c=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let u=a.Config.defaultOptions;if((0,o.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 d={};return Object.keys(t).forEach(o=>{let s=t[o],a=i?i[o]:null;if((0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,l.isAtom)(s)){d[o]=e(s,a,c+1);return}if(0!==c&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){d[o]=[...s,...a.slice(s.length)];return}d[o]=s}),Object.setPrototypeOf(d,i),d}}});var n=i(68345),r=i(72430),o=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(37790);function u(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),r=i(26049),o=i(82501);let s=(e,{width:t=400,height:i=345}={})=>{if(!(0,r.isURL)(e))return e;let s=n.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;s.href=e,t||(t=400),i||(i=345);let l=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(e)?e.replace(a,'<iframe width="'+t+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let n=s.search?(0,o.parseQuery)(s.search):{v:s.pathname.substring(1)};return/^embed\/.*/.test(n.v)&&(n.v=n.v.substring(6)),n.v?'<iframe width="'+t+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+n.v+'" 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),r=i(72430),o=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,r.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,o.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,o.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,r.isPlainObject)(t)){let i=Object.keys(t);for(let r=0;r<i.length;r+=1)n(e,(0,s.camelCase)(i[r]),t[i[r]])}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)),o.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,o.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 o}});var n=i(39955);let r=new WeakMap,o=(e,t,i)=>{let o=r.get(e);if(!o){o={},r.set(e,o);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{r.delete(e)})}return void 0===i?o[t]:(o[t]=i,i)}},96325:function(e,t,i){i.d(t,{defaultLanguage:function(){return o}});var n=i(82758),r=i(70799);let o=(e,t="en")=>"auto"!==e&&(0,r.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 o},error:function(){return r},options:function(){return s}});var n=i(32880);function r(e){return TypeError(e)}function o(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 r.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return n.abort}});var n=i(93661),r=i(86397),o=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 r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(82760),r=i(32880)},97735:function(e,t,i){i.d(t,{fastClone:function(){return s},isAtom:function(){return r},markAsAtomic:function(){return o}});var n=i(67462);function r(e){return e&&e.isAtom}function o(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 o},keepNames:function(){return r}});var n=i(23282);let r=new Map,o=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(r.has(i))return r.get(i);if(i.name)return i.name;let o=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(o);return s?s[1]:""}},94643:function(e,t,i){i.d(t,{get:function(){return o}});var n=i(70799),r=i(86068);function o(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),o=t;try{for(let e of i){if((0,r.isVoid)(o[e]))return null;o=o[e]}}catch(e){return null}return(0,r.isVoid)(o)?null:o}},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 r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return o.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 r.loadNext},loadNextStyle:function(){return r.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),r=i(63799),o=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 r}});let n=console;function r(e,t=[""],i=null){return(...r)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...r))}},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),r=i(70799),o=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(r=>{let s=[(0,o.attr)(r,"width"),(0,o.attr)(r,"height"),r.src];(0,o.attr)(r,{width:r.offsetWidth+t,height:r.offsetHeight+t});let a=e.createInside.a();e.ed.body.appendChild(a),a.href=r.src,r.src=a.href,n.Dom.safeRemove(a),i.push(()=>{var e;r.src=null!=(e=s[2])?e:"",(0,o.attr)(r,{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,r=i.document.body,o=new ResizeObserver(e.async.debounce(()=>{o.unobserve(r),t.style.height=`${r.offsetHeight+20}px`,e.async.requestAnimationFrame(()=>{n||o.observe(r)})},100)),s=()=>{n=!0,o.unobserve(r),o.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,r.isString)(i)?e.c.div():i;(0,r.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,o.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),r=i(23282),o=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,o.get)(e,i.contentWindow),a=(0,o.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,r.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 r},scrollIntoViewIfNeeded:function(){return o}});var n=i(2748);function r(e,t,i){let n=e.getBoundingClientRect(),r=e,o=n.top,s=n.height;for(;r&&r!==t&&r.parentNode;)if(!(o<=(n=(r=r.parentNode).getBoundingClientRect()).bottom)||o+s<=n.top)return!1;return o<=(i.documentElement&&i.documentElement.clientHeight||0)}function o(e,t,i){n.Dom.isHTMLElement(e)&&!r(e,t,i)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),r(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),r=i(2748),o=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,r=n||"_selector_id_"+String(Math.random()).slice(2)+ ++u;e=e.replace(/:scope/g,"#"+r),n||t.setAttribute("id",r),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,o.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(!r.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||!r.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),r=i(29807),o=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,o.isPlainObject)(l[c])||(l[c]=(0,r.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),r=i(86068),o=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,o.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 r=new Image,o=()=>{t.e.off(r),null==n||n()},s=()=>{t.e.off(r),i(r)};t.e.one(r,"load",s).one(r,"error",o).one(r,"abort",o),r.src=e,r.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 o;let a=`button${i.command}`,l=null!=(o=i.args&&i.args[0])?o:(0,s.dataBind)(e,a);if((0,r.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),r=i(60132),o=i(14041);function s(e,t,i,s,a,l,c){if((0,r.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,o.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),r=i(12475),o=i(63799),s=i(89672);function a(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}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,o.appendStyleAsync)(e,i)},function(){var e=this,t=arguments;return new Promise(function(n,r){var o=i.apply(e,t);function s(e){a(o,n,r,s,l,"next",e)}function l(e){a(o,n,r,s,l,"throw",e)}s(void 0)})})()}function u(e,t,i){t=(0,r.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function d(e,t,i,r){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,o.appendScriptAsync)(t,i).then(r).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},48591:function(e,t,i){i.d(t,{makeInstance:function(){return o}});var n=i(82758),r=i(23282);function o(e,t){try{try{return(0,r.isFunction)(t)?new t(e):t}catch(i){if((0,r.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 r}});var n=i(12475);function r(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),r=i(57012),o=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),r.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:r}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,o.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(r).forEach(([n,r])=>{if(i.has(n)||f.has(n))return;let o=null==r?void 0:r.requires;if(o&&(0,s.isArray)(o)&&o.length){if(o.some(e=>i.has(e)))return;if(!o.every(e=>f.has(e)))return void m.add(n)}t=!0;let a=(0,d.makeInstance)(e,r);if(!a){f.set(n,null),m.delete(n);return}(0,c.init)(e,n,r,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(),r.eventEmitter.off(`plugin:${e}:ready`,i)};r.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),r=i(65478),o=i(19306),s=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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,o.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,o.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([r.autobind],a.prototype,"__afterPluginSystemInit",null),s([r.autobind],a.prototype,"__afterInit",null),s([r.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){i.d(t,{Ajax:function(){return f}});var n=i(8884),r=i(82758),o=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 o=e[t](i),s=o.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}r(o.done?"return":"normal",i)},function(e){n("throw",e)})}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,r){return new Promise(function(o,s){var a={key:e,arg:r,resolve:o,reject:s,next:null};i?i=i.next=a:(t=i=a,n(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}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 r.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,r)=>{var o;return(o=function*(){var o;let l=()=>{this.__isFulfilled=!0,r(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,r(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,r(a.connection(e.statusText))))},e.withCredentials=null!=(o=t.withCredentials)&&o;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 r=o.apply(e,t);function s(e){d(r,i,n,s,a,"next",e)}function a(e){d(r,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,r=this.prepareRequest(),o=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(o),o=n.length;let r=l.split("\n\n");for(let i of(l=e?"":null!=(t=r.pop())?t:"",r)){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}=r;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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([o.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 r.Response}});var n=i(54079),r=i(98582)},98582:function(e,t,i){function n(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise(function(r,o){var s=e.apply(t,i);function a(e){n(s,r,o,a,l,"next",e)}function l(e){n(s,r,o,a,l,"throw",e)}a(void 0)})}}i.d(t,{Response:function(){return o}});class o{get url(){return this.request.url}json(){return r(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return r(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 o.moveNodeInsideStart}});var n=i(82758),r=i(2748),o=i(26716);function s(e,t,i,r){var o;let s=(null==(o=e.nodeValue)?void 0:o.length)?e.nodeValue:"";if(r&&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,o,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],i=!0),e&&n&&!r.Dom.isText(e)){if(!i&&r.Dom.isText(e.previousSibling))e=e.previousSibling;else if(o){let t=s(e);for(;t;){if(t&&r.Dom.isText(t)){e=t;break}t=s(t)}}}if(e&&!n&&!r.Dom.isText(e)){let t=e,i=e;do t=t.firstChild,i=i.lastChild;while(t&&i&&!r.Dom.isText(t));t===i&&t&&r.Dom.isText(t)&&(e=t)}return{node:e,rightMode:i}}i(43463)},26716:function(e,t,i){i.d(t,{moveNodeInsideStart:function(){return o}});var n=i(82758),r=i(2748);function o(e,t,i){let o=r.Dom.findSibling(t,i),s=r.Dom.findSibling(t,!i);for(;r.Dom.isElement(o)&&!r.Dom.isTag(o,n.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(o,e.editor)&&(!s||!r.Dom.closest(t,r.Dom.isElement,e.editor));)i||!o.firstChild?o.appendChild(t):r.Dom.before(o.firstChild,t),o=r.Dom.sibling(t,i),s=r.Dom.sibling(t,!i)}},43463:function(e,t,i){i.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return r}});var n=i(2748);function r(e,t,i){let r=e;for(;r&&r!==i&&!(n.Dom.findSibling(r,t)||n.Dom.isBlock(r.parentElement));)(r=r.parentElement)&&r!==i&&(t?n.Dom.before(r,e):n.Dom.after(r,e))}},59242:function(e,t,i){i.d(t,{CHANGE:function(){return o.CHANGE},CommitStyle:function(){return r.CommitStyle},REPLACE:function(){return o.REPLACE},Selection:function(){return n.Selection},UNWRAP:function(){return o.UNWRAP},WRAP:function(){return o.WRAP}});var n=i(79348),r=i(25639),o=i(77361)},79348:function(e,t,i){i.d(t,{Selection:function(){return f}});var n=i(82758),r=i(65478),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class f{get j(){return this.jodit}errorNode(e){if(!o.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||!o.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(!o.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");o.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(){o.Dom.safeRemove.apply(null,this.markers)}marker(e=!1,t){let i=null;t&&(i=t.cloneRange()).collapse(e);let r=this.j.createInside.span();return r.id=n.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",o.Dom.markTemporary(r),(0,s.attr)(r,"data-"+n.MARKER_CLASS,e?"start":"end"),r.appendChild(this.j.createInside.text(n.INVISIBLE_SPACE)),i&&o.Dom.isOrContains(this.area,e?i.startContainer:i.endContainer)&&i.insertNode(r),r}restore(){let e=!1,t=e=>`span[data-${n.MARKER_CLASS}=${e?"start":"end"}]`,i=this.area.querySelector(t(!0)),r=this.area.querySelector(t(!1));if(i){if(e=this.createRange(),r)e.setStartAfter(i),o.Dom.safeRemove(i),e.setEndBefore(r),o.Dom.safeRemove(r);else{let t=i.previousSibling;o.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(i),o.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();o.Dom.safeInsertNode(i,n),t.setStartBefore(n);let r=[n];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let i=this.j.createInside.fake();o.Dom.safeInsertNode(e,i),t.setEndAfter(i),r.push(i)}return this.selectRange(t),r}restoreFakes(e){var t,i,n,r;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)&&o.Dom.safeRemove(a),(null==(n=null==l?void 0:l.parentNode)?void 0:n.firstChild)!==(null==(r=null==l?void 0:l.parentNode)?void 0:r.lastChild)&&o.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let i=[],n=t.rangeCount,r=[];for(let e=0;n>e;e+=1)if(r[e]=t.getRangeAt(e),r[e].collapsed){let t=this.marker(!0,r[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,r[e]),n=this.marker(!1,r[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)r[e].setStartAfter(n),r[e].collapse(!0);else if(r[e].setStartBefore(n),i[e].endId){let t=this.doc.getElementById(i[e].endId);t&&r[e].setEndAfter(t)}try{t.addRange(r[e].cloneRange())}catch(e){}}}}return i}focus(e={preventScroll:!0}){var t,i;if(!this.isFocused()){let n=(0,s.getScrollParent)(this.j.container),r=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),r&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,r);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!o.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),r=i.startContainer,s=!1;if(o.Dom.isTag(r,"br")&&t.isCollapsed)return r;if(!o.Dom.isText(r)){let n=(0,d.findCorrectCurrentNode)(r,i,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);r=n.node,s=n.rightMode}return r&&o.Dom.isOrContains(this.area,r)?r:null}insertNode(e,t=!0,i=!0){this.errorNode(e);let n=o.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let r=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),r&&r.rangeCount){let t=r.getRangeAt(0),{firstChild:i}=e;o.Dom.isOrContains(this.area,t.commonAncestorContainer)?o.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&&o.Dom.isEmptyTextNode(t)&&o.Dom.safeRemove(t)})}else this.area.appendChild(e);let i=e=>{if(o.Dom.isBlock(e)){let t=e.lastChild;if(t)return i(t)}this.setCursorAfter(e)};t&&(o.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",o.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()),o.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 r=()=>{(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(n.style.width="",n.style.height=""),n.removeEventListener("load",r)};this.j.e.on(n,"load",r),n.complete&&r(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}eachSelection(e){var t;let i=this.sel;if(!i||!i.rangeCount)return;let r=i.getRangeAt(0),l=r.commonAncestorContainer;o.Dom.isHTMLElement(l)||(l=l.parentElement);let c=[],u=r.startOffset,d=l.childNodes.length,h=r.startContainer===this.area?l.childNodes[u<d?u:d-1]:r.startContainer,f=r.endContainer===this.area?l.childNodes[r.endOffset-1]:r.endContainer;o.Dom.isText(h)&&h===r.startContainer&&r.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),o.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let p=e=>{!e||e===l||o.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||c.push(e)};p(h),h!==f&&o.Dom.isOrContains(l,h,!0)&&o.Dom.find(h,e=>(p(e),e===f||e&&e.contains&&e.contains(f)),l,!0,!1);let m=t=>{if(o.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(m);if(o.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&&(o.Dom.isEmptyTextNode(h)&&c.push(h),h.firstChild&&c.push(h.firstChild)),c.forEach(m)}cursorInTheEdge(e,t,i=null){var n;let r=!e,a=null==(n=this.sel)?void 0:n.getRangeAt(0);if(null!=i||(i=this.current(!1)),!a||!i||!o.Dom.isOrContains(t,i,!0))return null;let l=e?a.startContainer:a.endContainer,c=e?a.startOffset:a.endOffset,u=e=>!!(e&&!o.Dom.isTag(e,"br")&&!o.Dom.isEmptyTextNode(e)&&!o.Dom.isTemporary(e)&&!(o.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(o.Dom.isText(l)){if((0,d.cursorInTheEdgeOfString)(l,c,e,r))return!1}else{let e=(0,s.toArray)(l.childNodes);if(r){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=o.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),!o.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 r=this.createRange(),a=null;return o.Dom.isText(e)?t?r.setStart(e,0):r.setEnd(e,null!=(n=null==(i=e.nodeValue)?void 0:i.length)?n:0):(a=this.j.createInside.fake(),t?r.setStartBefore(e):r.setEndAfter(e),r.collapse(t),o.Dom.safeInsertNode(r,a),r.selectNode(a)),r.collapse(t),this.selectRange(r),a}setCursorIn(e,t=!1){if(this.errorNode(e),!o.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(),r=e,a=e;do{if(o.Dom.isText(r)||o.Dom.isTag(r,n.INSEPARABLE_TAGS))break;a=r,r=t?r.firstChild:r.lastChild}while(r);if(!r){let e=this.j.createInside.text(n.INVISIBLE_SPACE);o.Dom.isTag(a,n.INSEPARABLE_TAGS)?r=a:(a.appendChild(e),a=e)}let l=r||a;return o.Dom.isTag(l,n.INSEPARABLE_TAGS)?t||o.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),!o.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,o.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)){o.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&o.Dom.before(e,t),i&&(0,a.isMarker)(i)&&o.Dom.after(e,i),yield e,o.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(o.Dom.replace(i,e,this.j.createInside))}finally{let e=i.parentNode;e&&(o.Dom.unwrap(i),o.Dom.isEmpty(e)&&o.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(),r=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?o.Dom.before(t,c):o.Dom.safeInsertNode(r,c);let e=(e,t)=>{let i=t(e);for(;i;){let e=t(i);if(i&&(o.Dom.isTag(i,"br")||o.Dom.isEmptyTextNode(i)))o.Dom.safeRemove(i);else break;i=e}};e(c,e=>e.nextSibling),e(c,e=>e.previousSibling),o.Dom.after(c,d),o.Dom.before(c,u),s?(i.setEndBefore(c),r.setEndBefore(c)):(i.setEndAfter(c),r.setEndAfter(c))}else i.setEnd(r.startContainer,r.startOffset);let h=i.extractContents(),f=e=>o.Dom.each(e,e=>o.Dom.isEmptyTextNode(e)&&o.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{o.Dom.safeRemove(u),o.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!o.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),o.Dom.safeInsertNode(n,i),(0,c.moveTheNodeAlongTheEdgeOutward)(i,t,this.j.editor),i},n=i(!0),r=i(!1);t.setStartAfter(n),t.setEndBefore(r);let a=o.Dom.findSibling(n,!1),l=o.Dom.findSibling(r,!0);if(a!==l){let e=o.Dom.isElement(a)&&o.Dom.isOrContains(a,r),i=!e&&o.Dom.isElement(l)&&o.Dom.isOrContains(l,n);if(e||i){let i=e?a:l,s=i;for(;o.Dom.isElement(i);)(i=e?i.firstElementChild:i.lastElementChild)&&(e?o.Dom.isOrContains(i,r):o.Dom.isOrContains(i,n))&&(s=i);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(this.selectRange(t),o.Dom.safeRemove(n,r),this.isCollapsed())throw(0,s.error)("Selection is collapsed");return this}constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([r.autobind],f.prototype,"createRange",null),h([r.autobind],f.prototype,"focus",null),h([r.autobind],f.prototype,"setCursorAfter",null),h([r.autobind],f.prototype,"setCursorBefore",null),h([r.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,i){i.d(t,{extractSelectedPart:function(){return a}});var n=i(2748),r=i(78116),o=i(49055),s=i(37790);function a(e,t,i){let n=i.s.createRange(),o=(0,r.isMarker)(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(o),l(e,n,!0);let s=(0,r.isMarker)(t.nextSibling)?t.nextSibling:t;n.setStartAfter(s),n.setEndAfter(e),l(e,n,!1)}function l(e,t,i){let r=t.extractContents();r.textContent&&(0,o.trim)(r.textContent).length||!r.firstChild||n.Dom.unwrap(r.firstChild),e.parentNode&&(0,s.call)(i?n.Dom.before:n.Dom.after,e,r)}},49996:function(e,t,i){i.d(t,{FiniteStateMachine:function(){return s}});var n=i(82758),r=i(70799),o=i(38837);class s{setState(e){(0,o.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,o.assert)(e&&e!==t,"Action should return new value"),(0,o.assert)((0,r.isString)(e.next),"Value should contain the next state"),(0,o.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),r=i(29136),o=i(97380);function s(e,t){let{firstChild:i}=t;for(;i&&!(0,r.isNormalNode)(i);)if(!(i=i.nextSibling))return null;return i&&!n.Dom.next(i,r.isNormalNode,t)&&(0,o.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,r.isNormalNode,a)||n.Dom.prev(i,r.isNormalNode,a)?null:t.isElementCommit&&t.elementIsBlock&&!n.Dom.isBlock(a)?e(t,a,s):(0,o.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),r=i(29136),o=i(97380)},22030:function(e,t,i){i.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});var n=i(82758),r=i(2748),o=i(86068),s=i(3760),a=i(38837),l=i(41180);function c(e,t){return!!(!r.Dom.isTag(e,"font")&&r.Dom.isHTMLElement(e)&&Object.keys(t).every(i=>{let n=(0,l.css)(e,i,!0);return""===n&&(""===t[i]||null==t[i])||!(0,o.isVoid)(n)&&""!==n&&!(0,o.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!!(!r.Dom.isTag(e,"font")&&r.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 r.FiniteStateMachine},extractSelectedPart:function(){return n.extractSelectedPart},getSuitChild:function(){return o.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),r=i(49996),o=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 r}});var n=i(2748);function r(e,t){return!!n.Dom.closest(e,["style","script"],t)}},29136:function(e,t,i){i.d(t,{isNormalNode:function(){return o}});var n=i(2748),r=i(78116);function o(e){return!!(e&&!n.Dom.isEmptyTextNode(e)&&!n.Dom.isTemporary(e)&&!(0,r.isMarker)(e))}},94466:function(e,t,i){i.d(t,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var n=i(21496),r=i(43555),o=i(38837),s=i(22030);function a(e,t){return!((e.attributes.length||(0,n.size)(t))&&(0,n.size)(t))||((0,o.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,r.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),r=i(22030),o=i(29136);function s(e,t,i,a=!0){var l;if(!t||!(0,o.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,r.hasSameStyle)(t,d.attributes.style):(0,r.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,o.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,c=!!((null==(i=a.attributes)?void 0:i.style)&&(0,r.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),r=i(38837),o=i(32526),s=i(44253),a=i(77361),l=i(82515);function c(e,t,i,n){if(!t)return n;let r=t.parentElement;if(!r)return n;let o=i.e.fire(`${a._PREFIX}BeforeToggleList`,n,e,r);if(void 0!==o)return o;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(n!==a.UNWRAP){let o=(0,s.toggleAttributes)(e,t.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(n===a.REPLACE||o||r.tagName.toLowerCase()!==e.element){let n=u(a.REPLACE,r,t,i,e),o=(0,l.wrapList)(e,n,i);return c(a.REPLACE,o,e),a.REPLACE}}let d=u(a.UNWRAP,r,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,r.assert)(n.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,o.extractSelectedPart)(t,i,s),(0,r.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),r=i(94466),o=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,r.isSameAttributes)(d,e.options.attributes)||(d=i.createInside.element(e.element),(0,o.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,r.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),r=i(2748),o=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,o.getContainer)(e),r=n.globalDocument.createElement("iframe");(0,d.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",i.appendChild(r);let s=null==(t=r.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),r.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&&(r.Dom.unwrap(t),i=f.UNWRAP)),i}},75882:function(e,t,i){i.d(t,{unwrapChildren:function(){return a}});var n=i(2748),r=i(43555),o=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,o.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,r.css)(t,Object.keys(u).reduce((e,t)=>(e[t]=null,e),{})),(0,r.attr)(t,"style")||(0,r.attr)(t,"style",null),(0,r.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 o}});var n=i(2748),r=i(78116);function o(e,t,i){let o=i.editor,s=i.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,r.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!==o?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 a}});var n=i(22732),r=i(29960),o=i(82515),s=i(6980);function a(e,t,i){var a,c,u;let d=(a=e,c=t,u=i,a.elementIsBlock?n.Dom.up(c,e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,l),u.editor)||(0,s.wrapUnwrappedText)(a,c,u):((0,r.attr)(c,"size",null),c));return e.elementIsList?(0,o.wrapList)(e,d,i):n.Dom.replace(d,e.element,i.createInside,!0)}let l=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),r=i(77361),o=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:r.INITIAL,element:u.value,next:o.states.START,jodit:e,style:t};for(;u&&!u.done;){let e=new n.FiniteStateMachine(o.states.START,o.transactions);for(d.element=u.value;e.getState()!==o.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),r=i(87058),o=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,r.camelCase)(o._PREFIX+"_"+i),t[i])}),(0,s.ApplyStyle)(e,this)}finally{i.forEach(i=>{e.e.off((0,r.camelCase)(o._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 o},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return r},WRAP:function(){return n},_PREFIX:function(){return c}});let n="wrap",r="unwrap",o="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),r=i(2748),o=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:o,collapsed:d}=e;if((0,s.isInsideInvisibleElement)(t,i.editor)||!d&&r.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&&r.Dom.isList(f)?c(l({},e),{next:u.LIST}):f?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:o!==a.UNWRAP?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:i,mode:o}=e;if(o!==a.INITIAL&&o!==a.UNWRAP&&o!==a.REPLACE)return c(l({},e),{next:u.END});let s=r.Dom.closest(t,"li",i.editor);return s&&r.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,o.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&r.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,r=(0,s.wrap)(n,t,i);return c(l({},e),{next:n.elementIsList?u.END:u.CHANGE,mode:a.WRAP,element:r})}},[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}):r.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:o}=e,d=(0,s.toggleAttributes)(t,i,n,e.mode);return o!==a.WRAP&&d===a.UNSET&&!i.attributes.length&&r.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&&r.Dom.isTag(e.element,e.style.element)?c(l({},e),{next:u.REPLACE_DEFAULT}):(r.Dom.unwrap(e.element),c(l({},e),{mode:a.UNWRAP,next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return r.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),r=i(2621),o=i(65638),s=i(21162),a=i(6700);function l(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function c(e){return function(){var t=this,i=arguments;return new Promise(function(n,r){var o=e.apply(t,i);function s(e){l(o,n,r,s,a,"next",e)}function a(e){l(o,n,r,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,o.canUsePersistentStorage)(e)&&(i=new o.LocalStorageProvider(a.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,r.canUseIndexedDB)().then(e=>e?new r.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 r(e,t,i,n,r,o,s){try{var a=e[o](s),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(n,r)}function o(e){return function(){var t=this,i=arguments;return new Promise(function(n,o){var s=e.apply(t,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)})}}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 o(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 o(function*(){try{yield this.performTransaction("readwrite",i=>i.put(t,e))}catch(e){n.IS_PROD}return this}).call(this)}delete(e){return o(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return o(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return o(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return o(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return o(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return o(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 o(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 o(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 o(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 r},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 r="1"===n.getItem(i);return n.removeItem(i),t.set(e,r),r}catch(e){}return t.set(e,!1),!1};class r{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 r.IndexedDBProvider},LocalStorageProvider:function(){return o.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return o.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var n=i(97333),r=i(2621),o=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),r=i(65638),o=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,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,r.canUsePersistentStorage)("localStorage")&&(i=new r.LocalStorageProvider(s+(t||""))),i||(i=new o.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),r=i(27613),o=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,o.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,r){return e=l(e,this),t=l(t,this),n=l(n,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,i,n,r)}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,r.isString)(e)&&!(0,r.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,i){i.d(t,{Elms:function(){return r}});var n=i(4510);class r{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 r}});var n=i(86068);class r{afterSetMod(e,t){}setMod(e,t,i){e=e.toLowerCase();let r=this.mods[e];if(r===t)return this;let o=`${this.componentName}_${e}_`,s=(i||this.container).classList;return null!=r&&s.remove(`${o}${r.toString().toLowerCase()}`),(0,n.isVoid)(t)||""===t||s.add(`${o}${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),r=i(33433),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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,o.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 r=new g(e);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(r.state.icon.name=t,r.state.name=t,n&&(r.state.variant=n),i&&(r.state.text=i)):r.setState(t),r}p([r.cache],g.prototype,"text",null),p([r.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([r.cacheHTML],g.prototype,"createContainer",null),p([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=p([o.component],g)},71916:function(e,t,i){i.d(t,{UIButtonGroup:function(){return a}});var n=i(87325),r=i(38837),o=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,r.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 o.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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 r.UIButtonGroup},UIButtonState:function(){return n.UIButtonState},UITooltip:function(){return o.UITooltip}});var n=i(10830),r=i(71916),o=i(57340)},57340:function(e,t,i){i.d(t,{UITooltip:function(){return m}});var n,r=i(91907),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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 r=(0,c.position)(this.container),o=this.j.ow.innerHeight;if(r.top+r.height>o){let e=(0,c.position)(this.__currentTarget);this.setMod("above",!0),(0,u.css)(this.container,{top:e.top-r.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(r.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}};h([o.autobind],m.prototype,"__onMouseLeave",null),h([o.autobind],m.prototype,"__onMouseEnter",null),h([o.autobind],m.prototype,"__hide",null),h([o.autobind],m.prototype,"__hideDelay",null),m=n=h([o.component],m)},48538:function(e,t,i){i.d(t,{UIElement:function(){return h}});var n,r=i(91907),o=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 r.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=>r.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&&r.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(0,o.derive)(u.Mods,c.Elms)],h)},19070:function(e,t,i){i.d(t,{UIBlock:function(){return s}});var n=i(87325),r=i(43555),o=i(62405);let s=class e extends o.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,r.attr)(this.container,"data-ref",i.ref),(0,r.attr)(this.container,"ref",i.ref)}};s=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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),r=i(87325),o=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,o.attr)(e,"dir",this.j.o.direction||"auto"),(0,o.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([r.component],c)},2525:function(e,t,i){i.d(t,{UIBlock:function(){return n.UIBlock},UICheckbox:function(){return o.UICheckbox},UIFileInput:function(){return o.UIFileInput},UIForm:function(){return r.UIForm},UIInput:function(){return o.UIInput},UISelect:function(){return o.UISelect},UITextArea:function(){return o.UITextArea}});var n=i(19070),r=i(86327),o=i(8959)},85120:function(e,t,i){i.d(t,{UITextArea:function(){return d}});var n,r,o,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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};let d=o=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({},o.defaultState),Object.assign(this.state,t),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};d.defaultState=(n=c({},l.UIInput.defaultState),r=r={size:5,resizable:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),u([(0,s.watch)(["state.size","state.resizable"])],d.prototype,"onChangeStateSize",null),d=o=u([a.component],d)},17328:function(e,t,i){i.d(t,{UICheckbox:function(){return u}});var n,r=i(65478),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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"))),o.Dom.after(this.nativeInput,e)):o.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,r.watch)("state.checked"),(0,r.hook)("ready")],u.prototype,"onChangeChecked",null),c([(0,r.watch)("nativeInput:change")],u.prototype,"onChangeNativeCheckBox",null),c([(0,r.watch)("state.switch"),(0,r.hook)("ready")],u.prototype,"onChangeSwitch",null),u=n=c([r.component],u)},4242:function(e,t,i){i.d(t,{UIFileInput:function(){return a}});var n=i(87325),r=i(10830),o=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 o.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new r.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(i),t}createNativeInput(e){return this.j.create.fromHTML(`<input
|
|
@@ -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(),o.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:r,cancel:o,next:a,prev:c,replaceBtn:u,current:d,count:h}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=r,this.closeButton=o,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",this.j.async.debounce(i=>{var r;return(r=function*(){i.key===n.KEY_ENTER?(i.preventDefault(),i.stopImmediatePropagation(),(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 o=r.apply(e,t);function s(e){l(o,i,n,s,a,"next",e)}function a(e){l(o,i,n,s,a,"throw",e)}s(void 0)})})()},this.j.defaultTimeout))}};c([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([r.autobind],u.prototype,"open",null),c([r.autobind],u.prototype,"close",null),c([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([r.component],u)},55311:function(e,t,i){i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){var n=i(82758),r=i(65478),o=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(76014);i(55311);var u=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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=o.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;let n;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(d))return;let r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=o.Dom.closest(r,["td","th"],e);if(!s||!this.__selectedCell)return;s!==this.__selectedCell&&this.j.lock(d),this.unselectCells();let a=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),l=this.__tableModule.formalMatrix(e);for(let e=a[0][0];e<=a[1][0];e+=1)for(let t=a[0][1];t<=a[1][1];t+=1)this.__tableModule.addSelection(l[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(i=this.j.s.sel)||i.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),n=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),s.appendChild(n),this.j.async.setTimeout(()=>{var e;null==(e=n.parentNode)||e.removeChild(n)},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;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=o.Dom.closest(r,["td","th"],e);if(!s)return;let l=o.Dom.closest(s,"table",e);if(l&&l!==e)return;let c=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),u=this.__tableModule.formalMatrix(e),d=null==(i=u[c[1][0]])?void 0:i[c[1][1]],f=null==(n=u[c[0][0]])?void 0:n[c[0][1]];f&&d&&(this.j.e.fire("showPopup",e,()=>{let e=(0,a.position)(f,this.j),t=(0,a.position)(d,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=>{o.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=o.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=>o.Dom.detach(e));break;case"bin":o.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[,r]=this.__tableModule.formalCoordinate(n,t);e.has(r)||(i.push(r),e.add(r))}),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([r.autobind],f.prototype,"onStartSelection",null),u([(0,r.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),u([(0,r.watch)(":change")],f.prototype,"onChange",null),u([r.autobind],f.prototype,"__onRemoveSelection",null),u([r.autobind],f.prototype,"__onStopSelection",null),u([r.autobind],f.prototype,"onExecCommand",null),u([r.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(65478),r=i(2748),o=i(580),s=i(87058),a=i(50911),l=i(67510);i(67215);var c=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class u extends a.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,s.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)||l.UIElement.closestElement(t,l.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}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"]}}c([n.autobind],u.prototype,"onStartSelection",null),c([(0,n.watch)("ow:click")],u.prototype,"onOutsideClick",null),c([(0,n.watch)([":beforeCommandCut"])],u.prototype,"beforeCommandCut",null),c([(0,n.watch)([":beforeCommandSelectall"])],u.prototype,"beforeCommandSelectAll",null),c([(0,n.watch)([":click"])],u.prototype,"onTripleClickNormalizeSelection",null),c([(0,n.watch)([":copy",":cut"])],u.prototype,"onCopyNormalizeSelectionBound",null),o.pluginSystem.add("select",u)},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),r=i(580),o=i(84767),s=i(41180),a=i(20356);i(80792);var l=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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,o.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,o.isNumber)(t)&&t>e&&(e=t),(0,o.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,o.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,o.isNumber)(t)&&t>e&&(e=t),(0,o.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,o.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,o.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,o.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:r}=this.j.container;(e!==n||t!==r)&&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),r.pluginSystem.add("size",c)},36204:function(e,t,i){var n=i(82758),r=i(12153),o=i(6441),s=i(35599);o.Config.prototype.beautifyHTML=!n.IS_IE,o.Config.prototype.sourceEditor="ace",o.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},o.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],o.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"],r.Icon.set("source",s.default),o.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),r=i(21537),o=i(23370);class s extends o.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 r=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===n.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}}},7483:function(e,t,i){i.d(t,{TextAreaEditor:function(){return a}});var n=i(2748),r=i(29960),o=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,o.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,r.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,r.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 r.TextAreaEditor}});var n=i(60031),r=i(7483)},70022:function(e,t,i){i.d(t,{createSourceEditor:function(){return o}});var n=i(21537),r=i(52968);function o(e,t,i,o,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new r.AceEditor(t,i,o,s);break}default:a=new r.TextAreaEditor(t,i,o,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),r=i(65478),o=i(2748),s=i(580),a=i(21537),l=i(50911);i(36204);var c=i(70022),u=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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;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),r=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,r)+this.clnInv(i.outerHTML)+e.slice(r))}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),o.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,r.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([r.autobind],d.prototype,"fromWYSIWYG",null),u([r.autobind],d.prototype,"toWYSIWYG",null),u([r.autobind],d.prototype,"getNormalPosition",null),u([(0,r.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,r.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,r.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([r.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,r.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([r.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),r=i(70799),o=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,r.isString)(d)?d:null!=(l=(0,o.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 r=(0,s.dataBind)(e,"speech"),o=null!=(n=null==r?void 0:r[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${o?"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 r}});let n=440,r=940},26532:function(e,t,i){i.d(t,{SpeechRecognition:function(){return r}});var n=i(82758);let r=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),r=i(72757),o=i(37643),s=i(85567),a=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class l extends r.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,o.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,o.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),r=i(85567);let o=new WeakMap;function s(e,{sec:t=.1,frequency:i=r.PII,gain:a=.1,type:l="sine"}={}){let c=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!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=o.get(e);t&&(o.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 r},de:function(){return o},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),r=i(89930),o=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),r=i(2748),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,o.extendLang)(u),(0,s.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let r=e.i18n(n);r!==n&&r.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){r.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(()=>{r.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),r.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,o=i.current();if(i.isCollapsed()&&r.Dom.isText(o)&&r.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,n.setStartAfter(o),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),r=i(6441),o=i(10937);r.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",o.default),r.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:o.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 r},de:function(){return o},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),r=i(24351),o=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),r=i(580),o=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,o.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(a)}}!function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],l.prototype,"toggleSpellcheck",null),r.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),r=i(2748),o=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(){r.Dom.safeRemove(this.charCounter),r.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)}}o.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),r=i(65478),o=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),r=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===r)return;let o=e.toolbarContainer;o&&(r?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",r)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){o.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([(0,r.throttle)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,i){var n=i(12153),r=i(6441),o=i(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],n.Icon.set("symbols",o.default),r.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 r},de:function(){return o},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),r=i(3958),o=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),r=i(2748),o=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(),o.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:r,cancel:o,next:a,prev:c,replaceBtn:u,current:d,count:h}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=r,this.closeButton=o,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",this.j.async.debounce(i=>{var r;return(r=function*(){i.key===n.KEY_ENTER?(i.preventDefault(),i.stopImmediatePropagation(),(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 o=r.apply(e,t);function s(e){l(o,i,n,s,a,"next",e)}function a(e){l(o,i,n,s,a,"throw",e)}s(void 0)})})()},this.j.defaultTimeout))}};c([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([r.autobind],u.prototype,"open",null),c([r.autobind],u.prototype,"close",null),c([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([r.component],u)},55311:function(e,t,i){i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){var n=i(82758),r=i(65478),o=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(76014);i(55311);var u=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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=o.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;let n;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(d))return;let r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=o.Dom.closest(r,["td","th"],e);if(!s||!this.__selectedCell)return;s!==this.__selectedCell&&this.j.lock(d),this.unselectCells();let a=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),l=this.__tableModule.formalMatrix(e);for(let e=a[0][0];e<=a[1][0];e+=1)for(let t=a[0][1];t<=a[1][1];t+=1)this.__tableModule.addSelection(l[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(i=this.j.s.sel)||i.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),n=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),s.appendChild(n),this.j.async.setTimeout(()=>{var e;null==(e=n.parentNode)||e.removeChild(n)},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;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(!r)return;let s=o.Dom.closest(r,["td","th"],e);if(!s)return;let l=o.Dom.closest(s,"table",e);if(l&&l!==e)return;let c=this.__tableModule.getSelectedBound(e,[s,this.__selectedCell]),u=this.__tableModule.formalMatrix(e),d=null==(i=u[c[1][0]])?void 0:i[c[1][1]],f=null==(n=u[c[0][0]])?void 0:n[c[0][1]];f&&d&&(this.j.e.fire("showPopup",e,()=>{let e=(0,a.position)(f,this.j),t=(0,a.position)(d,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=>{o.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=o.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=>o.Dom.detach(e));break;case"bin":o.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[,r]=this.__tableModule.formalCoordinate(n,t);e.has(r)||(i.push(r),e.add(r))}),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([r.autobind],f.prototype,"onStartSelection",null),u([(0,r.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),u([(0,r.watch)(":change")],f.prototype,"onChange",null),u([r.autobind],f.prototype,"__onRemoveSelection",null),u([r.autobind],f.prototype,"__onStopSelection",null),u([r.autobind],f.prototype,"onExecCommand",null),u([r.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(65478),r=i(2748),o=i(580),s=i(87058),a=i(50911),l=i(67510);i(67215);var c=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class u extends a.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,s.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)||l.UIElement.closestElement(t,l.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)}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"]}}c([n.autobind],u.prototype,"onStartSelection",null),c([(0,n.watch)("ow:click")],u.prototype,"onOutsideClick",null),c([(0,n.watch)([":beforeCommandCut"])],u.prototype,"beforeCommandCut",null),c([(0,n.watch)([":beforeCommandSelectall"])],u.prototype,"beforeCommandSelectAll",null),c([(0,n.watch)([":click"])],u.prototype,"onClickRightOfNestedListItem",null),c([(0,n.watch)([":click"])],u.prototype,"onTripleClickNormalizeSelection",null),c([(0,n.watch)([":copy",":cut"])],u.prototype,"onCopyNormalizeSelectionBound",null),o.pluginSystem.add("select",u)},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),r=i(580),o=i(84767),s=i(41180),a=i(20356);i(80792);var l=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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,o.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,o.isNumber)(t)&&t>e&&(e=t),(0,o.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,o.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,o.isNumber)(t)&&t>e&&(e=t),(0,o.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,o.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,o.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,o.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:r}=this.j.container;(e!==n||t!==r)&&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),r.pluginSystem.add("size",c)},36204:function(e,t,i){var n=i(82758),r=i(12153),o=i(6441),s=i(35599);o.Config.prototype.beautifyHTML=!n.IS_IE,o.Config.prototype.sourceEditor="ace",o.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},o.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],o.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"],r.Icon.set("source",s.default),o.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),r=i(21537),o=i(23370);class s extends o.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 r=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===n.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},i=()=>{e.isInDestruct||e.getRealMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(this.fromWYSIWYG(),t())};e.e.on("afterSetMode",i),i(),this.aceExists()||(0,r.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,r.isString)(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)}}}},7483:function(e,t,i){i.d(t,{TextAreaEditor:function(){return a}});var n=i(2748),r=i(29960),o=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,o.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,r.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,r.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 r.TextAreaEditor}});var n=i(60031),r=i(7483)},70022:function(e,t,i){i.d(t,{createSourceEditor:function(){return o}});var n=i(21537),r=i(52968);function o(e,t,i,o,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new r.AceEditor(t,i,o,s);break}default:a=new r.TextAreaEditor(t,i,o,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),r=i(65478),o=i(2748),s=i(580),a=i(21537),l=i(50911);i(36204);var c=i(70022),u=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>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;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),r=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,r)+this.clnInv(i.outerHTML)+e.slice(r))}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),o.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,r.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([r.autobind],d.prototype,"fromWYSIWYG",null),u([r.autobind],d.prototype,"toWYSIWYG",null),u([r.autobind],d.prototype,"getNormalPosition",null),u([(0,r.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,r.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,r.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([r.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,r.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([r.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),r=i(70799),o=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,r.isString)(d)?d:null!=(l=(0,o.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 r=(0,s.dataBind)(e,"speech"),o=null!=(n=null==r?void 0:r[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${o?"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 r}});let n=440,r=940},26532:function(e,t,i){i.d(t,{SpeechRecognition:function(){return r}});var n=i(82758);let r=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),r=i(72757),o=i(37643),s=i(85567),a=function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class l extends r.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,o.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,o.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),r=i(85567);let o=new WeakMap;function s(e,{sec:t=.1,frequency:i=r.PII,gain:a=.1,type:l="sine"}={}){let c=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!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=o.get(e);t&&(o.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 r},de:function(){return o},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),r=i(89930),o=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),r=i(2748),o=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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,o.extendLang)(u),(0,s.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let r=e.i18n(n);r!==n&&r.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){r.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(()=>{r.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),r.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,o=i.current();if(i.isCollapsed()&&r.Dom.isText(o)&&r.Dom.isOrContains(t.editor,o)&&o.nodeValue){let r=o.nodeValue;o.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+e,n.setStartAfter(o),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),r=i(6441),o=i(10937);r.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",o.default),r.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:o.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 r},de:function(){return o},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),r=i(24351),o=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),r=i(580),o=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,o.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(a)}}!function(e,t,i,n){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],l.prototype,"toggleSpellcheck",null),r.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),r=i(2748),o=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(){r.Dom.safeRemove(this.charCounter),r.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)}}o.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),r=i(65478),o=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),r=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===r)return;let o=e.toolbarContainer;o&&(r?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",r)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){o.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 r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([(0,r.throttle)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,i){var n=i(12153),r=i(6441),o=i(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],n.Icon.set("symbols",o.default),r.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 r},de:function(){return o},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),r=i(3958),o=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),r=i(2748),o=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>
|