jodit-pro 4.9.12 → 4.9.16
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/CHANGELOG.md +56 -1
- package/config.js +1 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +24 -24
- package/es2015/jodit.js +2 -2
- package/es2015/jodit.min.js +2 -2
- 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 +79 -0
- package/es2015/plugins/style/style.js +398 -0
- package/es2015/plugins/style/style.min.css +1 -0
- package/es2015/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +11 -11
- package/es2018/jodit.min.js +2 -2
- 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.css +1 -0
- package/es2018/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es2021/jodit.fat.min.js +12 -12
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.js +2 -2
- 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 +79 -0
- package/es2021/plugins/style/style.js +398 -0
- package/es2021/plugins/style/style.min.css +1 -0
- package/es2021/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es2021.en/jodit.fat.min.js +10 -10
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.js +2 -2
- 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 +79 -0
- package/es2021.en/plugins/style/style.js +398 -0
- package/es2021.en/plugins/style/style.min.css +1 -0
- package/es2021.en/plugins/style/style.min.js +8 -0
- 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.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2 -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 +79 -0
- package/es5/plugins/style/style.js +527 -0
- package/es5/plugins/style/style.min.css +1 -0
- package/es5/plugins/style/style.min.js +8 -0
- 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/esm/config.d.ts +6 -0
- package/esm/plugins/all.js +1 -1
- package/esm/plugins/style/config.d.ts +13 -0
- package/esm/plugins/style/config.js +1 -0
- package/esm/plugins/style/helpers/apply-style.d.ts +8 -0
- package/esm/plugins/style/helpers/apply-style.js +1 -0
- package/esm/plugins/style/helpers/classify-definitions.d.ts +7 -0
- package/esm/plugins/style/helpers/classify-definitions.js +1 -0
- package/esm/plugins/style/helpers/detect-active-style.d.ts +8 -0
- package/esm/plugins/style/helpers/detect-active-style.js +1 -0
- package/esm/plugins/style/icon.svg.js +1 -0
- package/esm/plugins/style/interface.d.ts +15 -0
- package/esm/plugins/style/interface.js +0 -0
- package/esm/plugins/style/style.d.ts +18 -0
- package/esm/plugins/style/style.js +1 -0
- package/esm/plugins/style/ui/style-popup.d.ts +8 -0
- package/esm/plugins/style/ui/style-popup.js +1 -0
- package/examples/assets/app.js +2 -1
- package/examples/style-plugin.html +508 -0
- package/package.json +1 -1
- package/types/config.d.ts +6 -0
- package/types/plugins/style/config.d.ts +13 -0
- package/types/plugins/style/helpers/apply-style.d.ts +8 -0
- package/types/plugins/style/helpers/classify-definitions.d.ts +7 -0
- package/types/plugins/style/helpers/detect-active-style.d.ts +8 -0
- package/types/plugins/style/interface.d.ts +15 -0
- package/types/plugins/style/style.d.ts +18 -0
- package/types/plugins/style/ui/style-popup.d.ts +8 -0
package/es2021/jodit.fat.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.9.
|
|
4
|
+
* Version: v4.9.16
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
/>`)}constructor(t,i){super(t,{type:"file",...i}),this.state={...s.UIInput.defaultState,type:"file",onlyImages:!0}}};a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],a)},4278:function(t,i,n){"use strict";n.d(i,{UIBrowserPanel:function(){return m}});var o=n(82749),r=n(31635),s=n(65478),a=n(21537),l=n(67510),c=n(8358),u=n(60062),d=n(70950),h=n(59198),p=n(17234),f=n(43778);class m extends l.UIGroup{className(){return"UIBrowserPanel"}get countInRow(){if("list"===this.state.view||!this.items.elements.length)return 1;let{container:t}=this.items.elements[0],i=(0,a.css)(t,"marginLeft");return Math.floor(this.items.container.offsetWidth/(t.offsetWidth+((0,a.isNumber)(i)?i:0)))}get countInColumn(){if(!this.items.elements.length)return 1;let{container:t}=this.items.elements[0],i=(0,a.css)(t,"marginTop");return Math.floor(this.items.container.offsetHeight/(t.offsetHeight+((0,a.isNumber)(i)?i:0)))}render(){return`<div>
|
|
19
19
|
<div class='&__content'></div>
|
|
20
20
|
<div class='&__footer'></div>
|
|
21
|
-
</div>`}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements)}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach(t=>{t.setMod("active",!!this.stateManager.isActive(t.item))}),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach(t=>{t.setMod("favorite",!!this.stateManager.isFavorite(t.item))})}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){let t=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;t&&((0,a.scrollIntoViewIfNeeded)(t,this.items.container,this.j.od),t.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(t,i){this.stateManager.addActive(t,i)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(t){this.stateManager.toggleFavorite(t)}onFolderClick(t){this.stateManager.state.currentSource=t.sourceName,this.stateManager.state.currentPath=t.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"sources",void 0),(0,o._)(this,"sidebar",void 0),(0,o._)(this,"preview",void 0),(0,o._)(this,"statusbar",void 0),(0,o._)(this,"items",void 0),(0,o._)(this,"settings",void 0),this.stateManager=i,this.syncMod=!0,this.sources=new h.UIBrowserSources(this.j),this.sidebar=new d.UISidebar(this.jodit,[this.sources],this.stateManager.state),this.preview=new c.UIPreview(this.jodit,this.stateManager.state),this.statusbar=new p.UIBrowserStatusBar(this.j),this.items=new f.UIVirtualScroll(this.j,this.stateManager),this.settings=new u.UIBrowserSettings(this.jodit,this.stateManager.state),this.state=i.state,this.append(this.sidebar,"content"),this.append(this.items,"content"),this.append(this.settings,"content"),this.append(this.preview,"content"),this.append(this.statusbar,"footer"),this.onChangeElements(),this.onChangeSources(),this.onChangeView(),this.onChangeTileSize(),this.onChangeShowFavorites(),this.onChangeActiveElements(),this.onChangeFavorites(),this.onChangeShowSideBar(),this.onChangeShowSettings(),this.onChangeShowPreview(),this.onChangeTheme()}}(0,r.__decorate)([(0,s.watch)("state.theme")],m.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,s.watch)("state.elements")],m.prototype,"onChangeElements",null),(0,r.__decorate)([(0,s.watch)("state.activeElements")],m.prototype,"onChangeActiveElements",null),(0,r.__decorate)([(0,s.watch)(["state.favorites","state.elements"])],m.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,s.watch)("state.sources")],m.prototype,"onChangeSources",null),(0,r.__decorate)([(0,s.watch)("state.lastSelectedIndex")],m.prototype,"onChangeLastSelectedIndex",null),(0,r.__decorate)([(0,s.watch)("state.info")],m.prototype,"onChangeInfo",null),(0,r.__decorate)([(0,s.watch)(["state.currentPath","state.currentSource"])],m.prototype,"onChangePathOrSource",null),(0,r.__decorate)([(0,s.watch)("state.showSettings")],m.prototype,"onChangeShowSettings",null),(0,r.__decorate)([(0,s.watch)("state.showPreview")],m.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,s.watch)("state.showSideBar")],m.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,s.watch)("state.view")],m.prototype,"onChangeView",null),(0,r.__decorate)([(0,s.watch)("state.tileSize")],m.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,s.watch)("state.showFavorites")],m.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,s.watch)(":dblclickItem.filebrowser")],m.prototype,"onItemDblClick",null),(0,r.__decorate)([(0,s.watch)(":clickItem.filebrowser")],m.prototype,"onItemClick",null),(0,r.__decorate)([(0,s.watch)(":togglePreview.filebrowser")],m.prototype,"onTogglePreview",null),(0,r.__decorate)([(0,s.watch)(":toggleFavoriteItem")],m.prototype,"onToggleFavoriteItem",null),(0,r.__decorate)([(0,s.watch)(":openFolder")],m.prototype,"onFolderClick",null),m=(0,r.__decorate)([s.component],m)},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},4604:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(6342);r.Config.prototype.addNewLine=!0,r.Config.prototype.addNewLineOnDBLClick=!0,r.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],r.Config.prototype.addNewLineDeltaShow=20,o.Icon.set("enter",s.default)},4774:function(t,i,n){"use strict";n.d(i,{UIMap:function(){return o.UIMap},UIMapsControlsForm:function(){return r.UIMapsControlsForm},UIMapsPropsForm:function(){return s.UIMapsPropsForm}}),n(90835);var o=n(4169),r=n(8073),s=n(83039);n(11093)},4795:function(t,i){"use strict";i.default={"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"}},4941:function(t,i,n){"use strict";n.d(i,{Emoji:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(21537),c=n(67510);class u extends c.UIElement{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,this.data?.categories??[]))}createContainer(t){let i=this.j.c.div("jodit-emoji");this.input=new c.UIInput(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));let n=this.j.c.div(this.getFullElName("navigate"));return a.Dom.append(n,[this.categories,this.input.container]),a.Dom.append(i,[n,this.list]),i}setActiveCategory(t,i=!1){let n=this.getElms("category"),o=n[this.activeIndex];n[t]||(t=n.length-1);let r=n[t],s=this.getFullElName("category","active",!0);o&&o.classList.remove(s),r&&r.classList.add(s),i&&this.getElms("category-title")[t].scrollIntoView(),this.activeIndex=t}generateCategoriesList(t){return t.map((i,n)=>this.j.c.div(this.getFullElName("category"),{"data-index":n,title:i,style:{width:100/t.length+"%"}}))}generateEmojiList(t,i){let n="";return t.reduce((t,o,r)=>{let s=-1===(o=u.normalizeEmoji(o)).category?"Recently":i[o.category];if(s!==n){n=s;let i=this.cache[n]??this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let a=this.cache[o.emoji+o.category]??this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=a,t.push(a),t},[])}static isShortCat(t){return t&&(0,l.isString)(t.e)}static normalizeEmoji(t){return u.isShortCat(t)?{emoji:t.e,description:t.d,category:t.c,aliases:t.a,tags:t.t}:t}onInsertCode(t){this.jodit.e.fire(this,"insert",t);let i=this.map[t];if(i){let n=[...this.recent],o=n.findIndex(i=>i.emoji===t);-1!==o&&n.splice(o,1),n.unshift({...i,category:-1}),this.recent=n}}onScrollList(){let t=this.list.scrollTop,i=this.getElms("category-title"),n=0;i.forEach((i,o)=>{t>i.offsetTop-this.list.offsetTop-20&&(n=o)}),this.setActiveCategory(n)}onClickCategory(t){this.clearFilter();let i=t.target;i.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt((0,l.attr)(i,"-index")||"0",10)||0,!0)}onClickItem(t){let i=t.target;if(i.classList.contains(this.getFullElName("emoji"))){let t=(0,l.attr)(i,"-value")||"";t&&this.onInsertCode(t)}t.preventDefault()}onInputFilter(){let t=this.input.value.toLowerCase();if(!t.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{let n=u.normalizeEmoji(i);return n.description?.toLowerCase().includes(t)||n.tags?.join(" ").toLowerCase().includes(t)||n.aliases?.join(" ").toLowerCase().includes(t)}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}constructor(t){super(t),(0,o._)(this,"data",null),(0,o._)(this,"recent",[]),(0,o._)(this,"map",{}),(0,o._)(this,"activeIndex",0),(0,o._)(this,"cache",{}),this.setMod("loading",!0),(async()=>{this.data=await t.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(t=>{let i=u.normalizeEmoji(t);this.map[i.emoji]=i}),this.setItems(this.defaultList),a.Dom.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)})()}}(0,r.__decorate)([s.persistent],u.prototype,"recent",void 0),(0,r.__decorate)([(0,s.throttle)()],u.prototype,"onScrollList",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickCategory",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickItem",null),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"onInputFilter",null),(0,r.__decorate)([(0,s.hook)("ready")],u.prototype,"onReady",null),u=(0,r.__decorate)([s.component],u)},5082:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ラインの高さ"}},5119:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},5287:function(t,i,n){"use strict";n.d(i,{wrapText:function(){return r}});var o=n(2748);function r(t,i){let n=t;o.Dom.up(n,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(n=t)},i.editor);let r=o.Dom.wrapInline(n,i.o.enter,i);if(o.Dom.isEmpty(r)){let n=i.createInside.element("br");r.appendChild(n),o.Dom.before(n,t)}return r}},5422:function(t,i,n){"use strict";n.d(i,{FileBrowserPro:function(){return E}});var o=n(82749),r=n(31635);n(34042);var s=n(8087),a=n(77841),l=n(17578),c=n(97770),u=n(42663),d=n(55535),h=n(18250),p=n(69277),f=n(4278),m=n(95002),g=n(6441),b=n(82758),v=n(65478),y=n(21537),w=n(70231),_=n(41409),C=n(638),k=n(63399),S=n(50050),x=n(2692),I=n(21246);class E extends C.Dialog{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,i=!(t instanceof Error)){(0,y.isAbortError)(t)||(b.IS_PROD||(0,y.isString)(t),this.message.message((0,y.isString)(t)?t:t.message,i?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new m.UIProgress(this,this.stateManager.state)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,i){return this.state.onlyImages=!!i,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,y.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){let{currentPath:t,currentSource:i}=this.state;this.uploader.setPath(t),this.uploader.setSource(i)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=i=>{this.close(),t(i)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){let{activeElement:i}=this.od;if(!this.state.activeElements.length||!i||!_.Dom.isOrContains(this.panel.items.container,i))return;let n=this.state.elements;switch(t.key){case b.KEY_ENTER:return this.onChooseItems();case b.KEY_DELETE:return this.onFileRemove();case b.KEY_RIGHT:case b.KEY_LEFT:case b.KEY_DOWN:case b.KEY_UP:{let i,o=t.key===b.KEY_RIGHT||t.key===b.KEY_DOWN,r=this.state.lastSelectedIndex;if([b.KEY_RIGHT,b.KEY_LEFT].includes(t.key))i=o?n[r+1]?r+1:0:n[r-1]?r-1:n.length-1;else{let{countInRow:t}=this.panel;i=Math.round(((r+1)/t+(o?1:-1))*t-1)}return n[i]&&this.stateManager.addActive(n[i],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();let i=[];return t.forEach(t=>{i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),t.name??"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))}),this.state.activeElements.forEach(t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)}),this.state.activeElements=[],Promise.allSettled(i).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(t,i){return this.dataProvider.fileRemove(this.state.currentPath,t,i).then(i=>{this.status(i||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}__folderRemove(t,i,n){return this.dataProvider.folderRemove(t,i,n).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',i),!0),this.state.currentPath===t&&(this.state.currentPath=(0,a.parentPath)(t),this.state.currentSource=n)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){let[t]=this.state.activeElements;S.openImageEditor.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",i=>{if(!(0,y.isValidName)(i)||i===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,a.parentPath)(t.path),t.name,i,t.sourceName).then(n=>{this.state.activeElements=[],this.status(n,!0),this.state.currentPath=(0,a.parentPath)(t.path)+"/"+i,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",i=>{i&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])}).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",i=>{let n=t.path||"/";this.dataProvider.createFolder(i,t.path||"/",t.sourceName).then(()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===n?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=n),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(t){let i=t.file||t.name||"";1===this.state.activeElements.length&&i&&this.prompt("Enter new name","Rename",t=>{if(!(0,y.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,i,t,this.state.currentSource).then(t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),i).bindDestruct(this)}onChooseItems(){let t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type){this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){p.UILightBox.open(this,t,this.state.elements)}initUploader(){let t=this,i=(0,y.ConfigProto)(t.o.uploader||{},g.Config.defaultOptions.uploader),n=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",i),t.uploader.bind(t.panel.container,n,t.status),t.e.on("bindUploader.filebrowser",i=>{t.uploader.bind(i,n,t.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,y.ConfigProto)(this.options[t],this.o.ajax))})}constructor(t){super((0,y.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:t?.toolbarButtons||g.Config.defaultOptions.filebrowser.buttons,buttons:x.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,k.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,_.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new d.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),I.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),x.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([v.autobind],E.prototype,"status",null),(0,r.__decorate)([v.cache],E.prototype,"progressbar",null),(0,r.__decorate)([(0,v.watch)(":resize",{context:window})],E.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,v.watch)(["state.currentPath","state.currentSource"])],E.prototype,"onChangePath",null),(0,r.__decorate)([(0,v.watch)("state.theme")],E.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,v.watch)(":toggleSettings.filebrowser")],E.prototype,"onToggleSettings",null),(0,r.__decorate)([v.autobind],E.prototype,"onKeyPress",null),(0,r.__decorate)([v.autobind],E.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,v.watch)(":fileRemove.filebrowser")],E.prototype,"onFileRemove",null),(0,r.__decorate)([(0,v.watch)(":edit.filebrowser")],E.prototype,"onFileEdit",null),(0,r.__decorate)([(0,v.watch)(":folderRename.filebrowser")],E.prototype,"onFolderRename",null),(0,r.__decorate)([(0,v.watch)(":folderRemove.filebrowser")],E.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,v.watch)(":folderCreate.filebrowser")],E.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,v.watch)(":fileRename.filebrowser")],E.prototype,"onFileRename",null),(0,r.__decorate)([(0,v.watch)(":select.filebrowser")],E.prototype,"onChooseItems",null),(0,r.__decorate)([(0,v.watch)(":openLightBox.filebrowser")],E.prototype,"onOpenLightBox",null),E=(0,r.__decorate)([v.component,(0,v.derive)(w.Dlgs)],E),Object.defineProperty(x.JoditPro.modules,"FileBrowserPro",{value:E,writable:!1,enumerable:!0,configurable:!0})},5567:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},5618:function(t,i,n){"use strict";var o=n(93809),r=n(28157);i.default={...o,execute:r.execute}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,u+=o}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},5827:function(t,i,n){"use strict";var o=n(2748),r=n(12153),s=n(6441),a=n(27190),l=n(42345),c=n(10411);s.Config.prototype.link={formTemplate:c.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},r.Icon.set("link",a.default).set("unlink",l.default),s.Config.prototype.controls.unlink={exec(t,i){let n=o.Dom.closest(i,"a",t.editor);n&&o.Dom.unwrap(n),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive(t){let i=t.s.current();return!!(i&&o.Dom.closest(i,"a",t.editor))},popup:(t,i,n)=>t.e.fire("generateLinkForm.link",i,n),tags:["a"],tooltip:"Insert link"}},6091:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},6183:function(t,i,n){"use strict";n.d(i,{UIBackupList:function(){return d}});var o=n(82749),r=n(31635),s=n(38512),a=n(82758),l=n(65478),c=n(21537),u=n(67510);class d extends u.UIGroup{className(){return"UIBackupList"}createContainer(t){let i=super.createContainer(t);return(0,c.attr)(i,"tabIndex","-1"),i}build(t){this.clear(),t.forEach((t,i)=>{let n=new s.UIBackupItem(this.jodit,t);this.append(n),this.j.e.on(n.container,"focus",()=>this.onSelect(i)).on(n.container,"click",()=>this.onSelect(i)).on(n.container,"dblclick",()=>this.onChoose(i))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,i,n){this.elements[i]?.setMod("active",!1),this.elements[n]?.setMod("active",!0),this.elements[n]?.focus(),this.j.e.fire(this,"select",this.elements[n].data)}onSelect(t){this.currentSelection=t}onChoose(t){this.j.e.fire(this,"choose",this.elements[t??this.currentSelection].data)}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}constructor(t){super(t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),t.e.on(this.container,"keydown",t=>{switch(t.key){case a.KEY_ENTER:t.preventDefault(),t.stopPropagation(),this.onChoose(this.currentSelection);break;case a.KEY_DOWN:this.selectNext();break;case a.KEY_UP:this.selectPrevious()}})}}(0,r.__decorate)([(0,l.watch)("currentSelection")],d.prototype,"onChangeCurrentSelection",null),(0,r.__decorate)([l.autobind],d.prototype,"onSelect",null),(0,r.__decorate)([l.autobind],d.prototype,"onChoose",null),d=(0,r.__decorate)([l.component],d)},6342:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> '},6402:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Дүрмийн алдаа шалгах"}},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__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=o.globalDocument,this.ownerWindow=o.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=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.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:[]},`
|
|
22
|
-
`,{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=s.prototype,s.prototype.controls={}},6602:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},6687:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(20356),a=n(12153),l=n(6441),c=n(66863),u=n(64489);a.Icon.set("redo",c.default).set("undo",u.default),l.Config.prototype.controls.redo={mode:o.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:o.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:"Undo"};class d extends s.Plugin{beforeDestruct(){}afterInit(t){let i=i=>(t.history[i](),!1);t.registerCommand("redo",{exec:i,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:i,hotkeys:["ctrl+z","cmd+z"]})}constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}}r.pluginSystem.add("redoUndo",d)},6689:function(t,i,n){"use strict";n.d(i,{throwIfAborted:function(){return r}});var o=n(93661);function r(t){if(t.aborted)throw(0,o.abort)()}},6700:function(t,i,n){"use strict";n.d(i,{Storage:function(){return l},StorageKey:function(){return a}});var o=n(87058),r=n(65638),s=n(21162);let a="Jodit_";class l{set(t,i){return this.provider.set((0,o.camelCase)(this.prefix+t),i),this}delete(t){return this.provider.delete((0,o.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,o.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,o.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(n=new r.LocalStorageProvider(a+(i||""),t)):!0===t&&(0,r.canUsePersistentStorage)("localStorage")&&(n=new r.LocalStorageProvider(a+(i||""))),n||(n=new s.MemoryStorageProvider),new l(n,i)}constructor(t,i){this.provider=t,this.prefix=a,i&&(this.prefix+=i)}}},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},6980:function(t,i,n){"use strict";n.d(i,{wrapUnwrappedText:function(){return s}});var o=n(2748),r=n(78116);function s(t,i,n){let s=n.editor,a=n.createInside,l=(t,i="previousSibling")=>{let a=t,l=t;for(;l&&!(0,r.isMarker)(l)&&!o.Dom.isTag(l,n.o.enter)&&(a=l,l=l[i]?l[i]:l.parentNode&&!o.Dom.isBlock(l.parentNode)&&l.parentNode!==s?l.parentNode:null,!o.Dom.isBlock(l)););return a},c=l(i),u=l(i,"nextSibling"),d=n.s.createRange();d.setStartBefore(c),d.setEndAfter(u);let h=d.extractContents(),p=a.element(t.element);return p.appendChild(h),o.Dom.safeInsertNode(d,p),t.elementIsBlock&&o.Dom.isEmpty(p)&&!o.Dom.isTag(p.firstElementChild,"br")&&p.appendChild(a.element("br")),p}},7085:function(t){t.exports={"Show Blocks":"تظهر كتل"}},7307:function(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},7309:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(20356);n(99649);class l extends a.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 t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let i;i=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",i.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout)}}s.pluginSystem.add("stat",l)},7483:function(t,i,n){"use strict";n.d(i,{TextAreaEditor:function(){return a}});var o=n(2748),r=n(41180),s=n(23370);class a extends s.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,r.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",i=>{t.e.fire(i.type,i)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let i=this.getValue();if(this.getSelectionStart()>=0){let n=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(i.substring(0,n)+t+i.substring(o,i.length))}else this.setValue(i+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,i=t){this.instance.setSelectionRange(t,i)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",i=>{if((i.ctrlKey||i.metaKey)&&"z"===i.key)return i.shiftKey?t.redo():t.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)}}},7886:function(t,i,n){"use strict";n.r(i),i.default={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"}},7903:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new a.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},8172:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return r.FileBrowserTree}});var o=n(97379),r=n(8193)},8193:function(t,i,n){"use strict";n.d(i,{FileBrowserTree:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserTree"}}},8256:function(t,i,n){"use strict";var o=n(6441),r=n(22732),s=n(21537);let a=["tune.up","tune.remove","tune.down"],l=["tune.h1","tune.h2","tune.h3",`
|
|
21
|
+
</div>`}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements)}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach(t=>{t.setMod("active",!!this.stateManager.isActive(t.item))}),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach(t=>{t.setMod("favorite",!!this.stateManager.isFavorite(t.item))})}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){let t=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;t&&((0,a.scrollIntoViewIfNeeded)(t,this.items.container,this.j.od),t.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(t,i){this.stateManager.addActive(t,i)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(t){this.stateManager.toggleFavorite(t)}onFolderClick(t){this.stateManager.state.currentSource=t.sourceName,this.stateManager.state.currentPath=t.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"sources",void 0),(0,o._)(this,"sidebar",void 0),(0,o._)(this,"preview",void 0),(0,o._)(this,"statusbar",void 0),(0,o._)(this,"items",void 0),(0,o._)(this,"settings",void 0),this.stateManager=i,this.syncMod=!0,this.sources=new h.UIBrowserSources(this.j),this.sidebar=new d.UISidebar(this.jodit,[this.sources],this.stateManager.state),this.preview=new c.UIPreview(this.jodit,this.stateManager.state),this.statusbar=new p.UIBrowserStatusBar(this.j),this.items=new f.UIVirtualScroll(this.j,this.stateManager),this.settings=new u.UIBrowserSettings(this.jodit,this.stateManager.state),this.state=i.state,this.append(this.sidebar,"content"),this.append(this.items,"content"),this.append(this.settings,"content"),this.append(this.preview,"content"),this.append(this.statusbar,"footer"),this.onChangeElements(),this.onChangeSources(),this.onChangeView(),this.onChangeTileSize(),this.onChangeShowFavorites(),this.onChangeActiveElements(),this.onChangeFavorites(),this.onChangeShowSideBar(),this.onChangeShowSettings(),this.onChangeShowPreview(),this.onChangeTheme()}}(0,r.__decorate)([(0,s.watch)("state.theme")],m.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,s.watch)("state.elements")],m.prototype,"onChangeElements",null),(0,r.__decorate)([(0,s.watch)("state.activeElements")],m.prototype,"onChangeActiveElements",null),(0,r.__decorate)([(0,s.watch)(["state.favorites","state.elements"])],m.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,s.watch)("state.sources")],m.prototype,"onChangeSources",null),(0,r.__decorate)([(0,s.watch)("state.lastSelectedIndex")],m.prototype,"onChangeLastSelectedIndex",null),(0,r.__decorate)([(0,s.watch)("state.info")],m.prototype,"onChangeInfo",null),(0,r.__decorate)([(0,s.watch)(["state.currentPath","state.currentSource"])],m.prototype,"onChangePathOrSource",null),(0,r.__decorate)([(0,s.watch)("state.showSettings")],m.prototype,"onChangeShowSettings",null),(0,r.__decorate)([(0,s.watch)("state.showPreview")],m.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,s.watch)("state.showSideBar")],m.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,s.watch)("state.view")],m.prototype,"onChangeView",null),(0,r.__decorate)([(0,s.watch)("state.tileSize")],m.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,s.watch)("state.showFavorites")],m.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,s.watch)(":dblclickItem.filebrowser")],m.prototype,"onItemDblClick",null),(0,r.__decorate)([(0,s.watch)(":clickItem.filebrowser")],m.prototype,"onItemClick",null),(0,r.__decorate)([(0,s.watch)(":togglePreview.filebrowser")],m.prototype,"onTogglePreview",null),(0,r.__decorate)([(0,s.watch)(":toggleFavoriteItem")],m.prototype,"onToggleFavoriteItem",null),(0,r.__decorate)([(0,s.watch)(":openFolder")],m.prototype,"onFolderClick",null),m=(0,r.__decorate)([s.component],m)},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},4604:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(6342);r.Config.prototype.addNewLine=!0,r.Config.prototype.addNewLineOnDBLClick=!0,r.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],r.Config.prototype.addNewLineDeltaShow=20,o.Icon.set("enter",s.default)},4774:function(t,i,n){"use strict";n.d(i,{UIMap:function(){return o.UIMap},UIMapsControlsForm:function(){return r.UIMapsControlsForm},UIMapsPropsForm:function(){return s.UIMapsPropsForm}}),n(90835);var o=n(4169),r=n(8073),s=n(83039);n(11093)},4795:function(t,i){"use strict";i.default={"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"}},4941:function(t,i,n){"use strict";n.d(i,{Emoji:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(21537),c=n(67510);class u extends c.UIElement{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,this.data?.categories??[]))}createContainer(t){let i=this.j.c.div("jodit-emoji");this.input=new c.UIInput(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));let n=this.j.c.div(this.getFullElName("navigate"));return a.Dom.append(n,[this.categories,this.input.container]),a.Dom.append(i,[n,this.list]),i}setActiveCategory(t,i=!1){let n=this.getElms("category"),o=n[this.activeIndex];n[t]||(t=n.length-1);let r=n[t],s=this.getFullElName("category","active",!0);o&&o.classList.remove(s),r&&r.classList.add(s),i&&this.getElms("category-title")[t].scrollIntoView(),this.activeIndex=t}generateCategoriesList(t){return t.map((i,n)=>this.j.c.div(this.getFullElName("category"),{"data-index":n,title:i,style:{width:100/t.length+"%"}}))}generateEmojiList(t,i){let n="";return t.reduce((t,o,r)=>{let s=-1===(o=u.normalizeEmoji(o)).category?"Recently":i[o.category];if(s!==n){n=s;let i=this.cache[n]??this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let a=this.cache[o.emoji+o.category]??this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=a,t.push(a),t},[])}static isShortCat(t){return t&&(0,l.isString)(t.e)}static normalizeEmoji(t){return u.isShortCat(t)?{emoji:t.e,description:t.d,category:t.c,aliases:t.a,tags:t.t}:t}onInsertCode(t){this.jodit.e.fire(this,"insert",t);let i=this.map[t];if(i){let n=[...this.recent],o=n.findIndex(i=>i.emoji===t);-1!==o&&n.splice(o,1),n.unshift({...i,category:-1}),this.recent=n}}onScrollList(){let t=this.list.scrollTop,i=this.getElms("category-title"),n=0;i.forEach((i,o)=>{t>i.offsetTop-this.list.offsetTop-20&&(n=o)}),this.setActiveCategory(n)}onClickCategory(t){this.clearFilter();let i=t.target;i.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt((0,l.attr)(i,"-index")||"0",10)||0,!0)}onClickItem(t){let i=t.target;if(i.classList.contains(this.getFullElName("emoji"))){let t=(0,l.attr)(i,"-value")||"";t&&this.onInsertCode(t)}t.preventDefault()}onInputFilter(){let t=this.input.value.toLowerCase();if(!t.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{let n=u.normalizeEmoji(i);return n.description?.toLowerCase().includes(t)||n.tags?.join(" ").toLowerCase().includes(t)||n.aliases?.join(" ").toLowerCase().includes(t)}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}constructor(t){super(t),(0,o._)(this,"data",null),(0,o._)(this,"recent",[]),(0,o._)(this,"map",{}),(0,o._)(this,"activeIndex",0),(0,o._)(this,"cache",{}),this.setMod("loading",!0),(async()=>{this.data=await t.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(t=>{let i=u.normalizeEmoji(t);this.map[i.emoji]=i}),this.setItems(this.defaultList),a.Dom.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)})()}}(0,r.__decorate)([s.persistent],u.prototype,"recent",void 0),(0,r.__decorate)([(0,s.throttle)()],u.prototype,"onScrollList",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickCategory",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickItem",null),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"onInputFilter",null),(0,r.__decorate)([(0,s.hook)("ready")],u.prototype,"onReady",null),u=(0,r.__decorate)([s.component],u)},5082:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ラインの高さ"}},5119:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},5287:function(t,i,n){"use strict";n.d(i,{wrapText:function(){return r}});var o=n(2748);function r(t,i){let n=t;o.Dom.up(n,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(n=t)},i.editor);let r=o.Dom.wrapInline(n,i.o.enter,i);if(o.Dom.isEmpty(r)){let n=i.createInside.element("br");r.appendChild(n),o.Dom.before(n,t)}return r}},5422:function(t,i,n){"use strict";n.d(i,{FileBrowserPro:function(){return E}});var o=n(82749),r=n(31635);n(34042);var s=n(8087),a=n(77841),l=n(17578),c=n(97770),u=n(42663),d=n(55535),h=n(18250),p=n(69277),f=n(4278),m=n(95002),g=n(6441),b=n(82758),v=n(65478),y=n(21537),w=n(70231),_=n(41409),C=n(638),k=n(63399),S=n(50050),x=n(2692),I=n(21246);class E extends C.Dialog{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,i=!(t instanceof Error)){(0,y.isAbortError)(t)||(b.IS_PROD||(0,y.isString)(t),this.message.message((0,y.isString)(t)?t:t.message,i?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new m.UIProgress(this,this.stateManager.state)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,i){return this.state.onlyImages=!!i,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,y.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){let{currentPath:t,currentSource:i}=this.state;this.uploader.setPath(t),this.uploader.setSource(i)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=i=>{this.close(),t(i)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){let{activeElement:i}=this.od;if(!this.state.activeElements.length||!i||!_.Dom.isOrContains(this.panel.items.container,i))return;let n=this.state.elements;switch(t.key){case b.KEY_ENTER:return this.onChooseItems();case b.KEY_DELETE:return this.onFileRemove();case b.KEY_RIGHT:case b.KEY_LEFT:case b.KEY_DOWN:case b.KEY_UP:{let i,o=t.key===b.KEY_RIGHT||t.key===b.KEY_DOWN,r=this.state.lastSelectedIndex;if([b.KEY_RIGHT,b.KEY_LEFT].includes(t.key))i=o?n[r+1]?r+1:0:n[r-1]?r-1:n.length-1;else{let{countInRow:t}=this.panel;i=Math.round(((r+1)/t+(o?1:-1))*t-1)}return n[i]&&this.stateManager.addActive(n[i],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();let i=[];return t.forEach(t=>{i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),t.name??"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))}),this.state.activeElements.forEach(t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)}),this.state.activeElements=[],Promise.allSettled(i).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(t,i){return this.dataProvider.fileRemove(this.state.currentPath,t,i).then(i=>{this.status(i||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}__folderRemove(t,i,n){return this.dataProvider.folderRemove(t,i,n).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',i),!0),this.state.currentPath===t&&(this.state.currentPath=(0,a.parentPath)(t),this.state.currentSource=n)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){let[t]=this.state.activeElements;S.openImageEditor.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",i=>{if(!(0,y.isValidName)(i)||i===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,a.parentPath)(t.path),t.name,i,t.sourceName).then(n=>{this.state.activeElements=[],this.status(n,!0),this.state.currentPath=(0,a.parentPath)(t.path)+"/"+i,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",i=>{i&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])}).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",i=>{let n=t.path||"/";this.dataProvider.createFolder(i,t.path||"/",t.sourceName).then(()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===n?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=n),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(t){let i=t.file||t.name||"";1===this.state.activeElements.length&&i&&this.prompt("Enter new name","Rename",t=>{if(!(0,y.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,i,t,this.state.currentSource).then(t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),i).bindDestruct(this)}onChooseItems(){let t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type){this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){p.UILightBox.open(this,t,this.state.elements)}initUploader(){let t=this,i=(0,y.ConfigProto)(t.o.uploader||{},g.Config.defaultOptions.uploader),n=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",i),t.uploader.bind(t.panel.container,n,t.status),t.e.on("bindUploader.filebrowser",i=>{t.uploader.bind(i,n,t.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,y.ConfigProto)(this.options[t],this.o.ajax))})}constructor(t){super((0,y.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:t?.toolbarButtons||g.Config.defaultOptions.filebrowser.buttons,buttons:x.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,k.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,_.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new d.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),I.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),x.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([v.autobind],E.prototype,"status",null),(0,r.__decorate)([v.cache],E.prototype,"progressbar",null),(0,r.__decorate)([(0,v.watch)(":resize",{context:window})],E.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,v.watch)(["state.currentPath","state.currentSource"])],E.prototype,"onChangePath",null),(0,r.__decorate)([(0,v.watch)("state.theme")],E.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,v.watch)(":toggleSettings.filebrowser")],E.prototype,"onToggleSettings",null),(0,r.__decorate)([v.autobind],E.prototype,"onKeyPress",null),(0,r.__decorate)([v.autobind],E.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,v.watch)(":fileRemove.filebrowser")],E.prototype,"onFileRemove",null),(0,r.__decorate)([(0,v.watch)(":edit.filebrowser")],E.prototype,"onFileEdit",null),(0,r.__decorate)([(0,v.watch)(":folderRename.filebrowser")],E.prototype,"onFolderRename",null),(0,r.__decorate)([(0,v.watch)(":folderRemove.filebrowser")],E.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,v.watch)(":folderCreate.filebrowser")],E.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,v.watch)(":fileRename.filebrowser")],E.prototype,"onFileRename",null),(0,r.__decorate)([(0,v.watch)(":select.filebrowser")],E.prototype,"onChooseItems",null),(0,r.__decorate)([(0,v.watch)(":openLightBox.filebrowser")],E.prototype,"onOpenLightBox",null),E=(0,r.__decorate)([v.component,(0,v.derive)(w.Dlgs)],E),Object.defineProperty(x.JoditPro.modules,"FileBrowserPro",{value:E,writable:!1,enumerable:!0,configurable:!0})},5440:function(t,i,n){"use strict";n.d(i,{buildStylePopup:function(){return l}});var o=n(31105),r=n(8060),s=n(69341);let a="jodit-style-popup";function l(t,i,n){let l=(0,r.classifyDefinitions)(i),c=(0,s.detectActiveStyle)(t,i),u=t.c.div(a);for(let r of l){let s=t.c.div(`${a}__group-title`);s.textContent=t.i18n(r.title),u.appendChild(s);let l=t.c.div(`${a}__grid`);for(let s of r.definitions){let r=t.c.element("button");r.type="button",r.className=`${a}__card`+(c===s?` ${a}__card_active_true`:"");let u=t.c.div(`${a}__card-preview`),d=t.c.element(s.element);for(let t of s.classes)d.classList.add(t);d.textContent=s.name,u.appendChild(d),r.appendChild(u);let h=t.c.div(`${a}__card-label`);h.textContent=s.name,r.appendChild(h),t.e.on(r,"click",()=>{t.s.focus(),(0,o.applyStyle)(t,s,i),t.synchronizeValues(),n()}),l.appendChild(r)}u.appendChild(l)}return u}},5567:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},5618:function(t,i,n){"use strict";var o=n(93809),r=n(28157);i.default={...o,execute:r.execute}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,u+=o}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},5827:function(t,i,n){"use strict";var o=n(2748),r=n(12153),s=n(6441),a=n(27190),l=n(42345),c=n(10411);s.Config.prototype.link={formTemplate:c.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},r.Icon.set("link",a.default).set("unlink",l.default),s.Config.prototype.controls.unlink={exec(t,i){let n=o.Dom.closest(i,"a",t.editor);n&&o.Dom.unwrap(n),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive(t){let i=t.s.current();return!!(i&&o.Dom.closest(i,"a",t.editor))},popup:(t,i,n)=>t.e.fire("generateLinkForm.link",i,n),tags:["a"],tooltip:"Insert link"}},6091:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},6183:function(t,i,n){"use strict";n.d(i,{UIBackupList:function(){return d}});var o=n(82749),r=n(31635),s=n(38512),a=n(82758),l=n(65478),c=n(21537),u=n(67510);class d extends u.UIGroup{className(){return"UIBackupList"}createContainer(t){let i=super.createContainer(t);return(0,c.attr)(i,"tabIndex","-1"),i}build(t){this.clear(),t.forEach((t,i)=>{let n=new s.UIBackupItem(this.jodit,t);this.append(n),this.j.e.on(n.container,"focus",()=>this.onSelect(i)).on(n.container,"click",()=>this.onSelect(i)).on(n.container,"dblclick",()=>this.onChoose(i))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,i,n){this.elements[i]?.setMod("active",!1),this.elements[n]?.setMod("active",!0),this.elements[n]?.focus(),this.j.e.fire(this,"select",this.elements[n].data)}onSelect(t){this.currentSelection=t}onChoose(t){this.j.e.fire(this,"choose",this.elements[t??this.currentSelection].data)}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}constructor(t){super(t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),t.e.on(this.container,"keydown",t=>{switch(t.key){case a.KEY_ENTER:t.preventDefault(),t.stopPropagation(),this.onChoose(this.currentSelection);break;case a.KEY_DOWN:this.selectNext();break;case a.KEY_UP:this.selectPrevious()}})}}(0,r.__decorate)([(0,l.watch)("currentSelection")],d.prototype,"onChangeCurrentSelection",null),(0,r.__decorate)([l.autobind],d.prototype,"onSelect",null),(0,r.__decorate)([l.autobind],d.prototype,"onChoose",null),d=(0,r.__decorate)([l.component],d)},6342:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> '},6402:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Дүрмийн алдаа шалгах"}},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__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=o.globalDocument,this.ownerWindow=o.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=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.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:[]},`
|
|
22
|
+
`,{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=s.prototype,s.prototype.controls={}},6602:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},6687:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(20356),a=n(12153),l=n(6441),c=n(66863),u=n(64489);a.Icon.set("redo",c.default).set("undo",u.default),l.Config.prototype.controls.redo={mode:o.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:o.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:"Undo"};class d extends s.Plugin{beforeDestruct(){}afterInit(t){let i=i=>(t.history[i](),!1);t.registerCommand("redo",{exec:i,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:i,hotkeys:["ctrl+z","cmd+z"]})}constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}}r.pluginSystem.add("redoUndo",d)},6689:function(t,i,n){"use strict";n.d(i,{throwIfAborted:function(){return r}});var o=n(93661);function r(t){if(t.aborted)throw(0,o.abort)()}},6700:function(t,i,n){"use strict";n.d(i,{Storage:function(){return l},StorageKey:function(){return a}});var o=n(87058),r=n(65638),s=n(21162);let a="Jodit_";class l{set(t,i){return this.provider.set((0,o.camelCase)(this.prefix+t),i),this}delete(t){return this.provider.delete((0,o.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,o.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,o.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(n=new r.LocalStorageProvider(a+(i||""),t)):!0===t&&(0,r.canUsePersistentStorage)("localStorage")&&(n=new r.LocalStorageProvider(a+(i||""))),n||(n=new s.MemoryStorageProvider),new l(n,i)}constructor(t,i){this.provider=t,this.prefix=a,i&&(this.prefix+=i)}}},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},6980:function(t,i,n){"use strict";n.d(i,{wrapUnwrappedText:function(){return s}});var o=n(2748),r=n(78116);function s(t,i,n){let s=n.editor,a=n.createInside,l=(t,i="previousSibling")=>{let a=t,l=t;for(;l&&!(0,r.isMarker)(l)&&!o.Dom.isTag(l,n.o.enter)&&(a=l,l=l[i]?l[i]:l.parentNode&&!o.Dom.isBlock(l.parentNode)&&l.parentNode!==s?l.parentNode:null,!o.Dom.isBlock(l)););return a},c=l(i),u=l(i,"nextSibling"),d=n.s.createRange();d.setStartBefore(c),d.setEndAfter(u);let h=d.extractContents(),p=a.element(t.element);return p.appendChild(h),o.Dom.safeInsertNode(d,p),t.elementIsBlock&&o.Dom.isEmpty(p)&&!o.Dom.isTag(p.firstElementChild,"br")&&p.appendChild(a.element("br")),p}},7085:function(t){t.exports={"Show Blocks":"تظهر كتل"}},7307:function(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},7309:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(20356);n(99649);class l extends a.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 t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let i;i=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",i.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout)}}s.pluginSystem.add("stat",l)},7483:function(t,i,n){"use strict";n.d(i,{TextAreaEditor:function(){return a}});var o=n(2748),r=n(41180),s=n(23370);class a extends s.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,r.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",i=>{t.e.fire(i.type,i)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let i=this.getValue();if(this.getSelectionStart()>=0){let n=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(i.substring(0,n)+t+i.substring(o,i.length))}else this.setValue(i+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,i=t){this.instance.setSelectionRange(t,i)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",i=>{if((i.ctrlKey||i.metaKey)&&"z"===i.key)return i.shiftKey?t.redo():t.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)}}},7886:function(t,i,n){"use strict";n.r(i),i.default={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"}},7903:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},8060:function(t,i,n){"use strict";n.d(i,{classifyDefinitions:function(){return r}});var o=n(82758);function r(t){let i=[],n=[];for(let r of t)o.IS_BLOCK.test(r.element)?i.push(r):n.push(r);let r=[];return i.length&&r.push({title:"Block styles",definitions:i}),n.length&&r.push({title:"Text styles",definitions:n}),r}},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new a.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},8172:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return r.FileBrowserTree}});var o=n(97379),r=n(8193)},8193:function(t,i,n){"use strict";n.d(i,{FileBrowserTree:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserTree"}}},8256:function(t,i,n){"use strict";var o=n(6441),r=n(22732),s=n(21537);let a=["tune.up","tune.remove","tune.down"],l=["tune.h1","tune.h2","tune.h3",`
|
|
23
23
|
`,"tune.h4","tune.h5","tune.h6",`
|
|
24
24
|
`,...a];function c(t){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+t.toUpperCase()+"</text></svg>",isActive:(i,n)=>n?.target?.tagName.toLowerCase()===t,exec(i,n){if(n){i.selection.save();let o=r.Dom.replace(n,t,i.createInside);i.selection.restore(),i.e.fire("synchro"),i.e.fire("afterExecTune.tune",o)}return!0}}}function u(t){let i=t?"previousSibling":"nextSibling";return{icon:t?"angle-up":"angle-down",isDisabled:(t,n)=>!n?.target?.[i],exec(n,o){let a=o?.[i];return o&&a&&(n.selection.save(),(0,s.call)(t?r.Dom.before:r.Dom.after,a,o),n.selection.restore()),n.e.fire("synchro"),n.e.fire("afterExecTune.tune"),!0}}}o.Config.prototype.tuneBlock={popup:{p:a,table:a,img:a,blockquote:a,div:a,pre:["tune.editPre",...a],h1:l,h2:l,h3:l,h4:l,h5:l,h6:l}},o.Config.prototype.controls.tune={h1:c("h1"),h2:c("h2"),h3:c("h3"),h4:c("h4"),h5:c("h5"),h6:c("h6"),up:u(!0),down:u(!1),editPre:{icon:"pencil",exec(t,i){t.e.fire("editPreInPasteCode",i)}},remove:{icon:"bin",exec(t,i){r.Dom.safeRemove(i),t.e.fire("synchro"),t.e.fire("closeTuner.tune"),t.e.fire("hideTuner.tune")}}}},8355:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(11628);n(6441).Config.prototype.controls.preview={icon:"eye",command:"preview",mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Preview"},r.pluginSystem.add("preview",function(t){t.registerButton({name:"preview"}),t.registerCommand("preview",(i,n,o)=>{let r=t.dlg();r.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);let[,a]=(0,s.previewBox)(t,o,"px",r.getElm("content"));r.e.on(r,"afterClose",a)})})},8358:function(t,i,n){"use strict";n.d(i,{UIPreview:function(){return p}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(43555),c=n(38837),u=n(62405),d=n(21130),h=n(54747);class p extends u.UIGroup{className(){return"UIPreview"}addResize(){(0,l.css)(this.container,{width:null,height:null}),h.UIResize.remove(this),h.UIResize.install(this,screen.width>450?"left":"top")}render(){return`<div>
|
|
25
25
|
<div class="&__image"></div>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="jodit-resizer__bottom-right"></div>
|
|
36
36
|
<div class="jodit-resizer__bottom-left"></div>
|
|
37
37
|
<span>100x100</span>
|
|
38
|
-
</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{!this.isResizeMode&&(this.element===t&&this.isShown||(this.element=t,this.show(),s.Dom.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize)))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){let t=this.getWorkplacePosition(),i=(0,l.offset)(this.element,this.j,this.j.ed),n=parseInt(this.rect.style.left||"0",10),o=parseInt(this.rect.style.top||"0",10),r=this.rect.offsetWidth,s=this.rect.offsetHeight,a=i.top-t.top,c=i.left-t.left;(o!==a||n!==c||r!==this.element.offsetWidth||s!==this.element.offsetHeight)&&((0,l.css)(this.rect,{top:a,left:c,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(n)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}}u([(0,r.watch)(":click")],h.prototype,"onEditorClick",null),u([(0,r.watch)(":afterInsertImage")],h.prototype,"__afterInsertImage",null),u([r.autobind],h.prototype,"onStartResizing",null),u([r.autobind],h.prototype,"onEndResizing",null),u([r.autobind],h.prototype,"onResize",null),u([r.autobind],h.prototype,"onKeyDown",null),u([r.autobind],h.prototype,"onKeyUp",null),u([r.autobind],h.prototype,"onClickOutside",null),u([(0,r.watch)(":change")],h.prototype,"__onChangeEditor",null),u([r.autobind],h.prototype,"__bind",null),u([r.autobind,(0,r.watch)(":hideResizer")],h.prototype,"hide",null),a.pluginSystem.add("resizer",h)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},12081:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return r.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return a.MemoryStorageProvider},Storage:function(){return l.Storage},StorageKey:function(){return l.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var o=n(97333),r=n(2621),s=n(65638),a=n(21162),l=n(6700)},12117:function(t,i){"use strict";i.default={"copy-format":"Kopioi muotoilu"}},12153:function(t,i,n){"use strict";n.d(i,{Icon:function(){return a}});var o=n(82758),r=n(21537),s=n(41180);class a{static getIcon(t){if(/<svg/i.test(t))return t;let i=a.icons[t]||a.icons[t.replace(/-/g,"_")]||a.icons[t.replace(/_/g,"-")]||a.icons[(0,r.camelCase)(t)]||a.icons[(0,r.kebabCase)(t)]||a.icons[t.toLowerCase()];return o.IS_PROD,i}static exists(t){return void 0!==this.getIcon(t)}static get(t,i="<span></span>"){return this.getIcon(t)||i}static set(t,i){return this.icons[t.replace("_","-")]=i,this}static makeIcon(t,i){var n,o,r,l;let c,u;if(!i)return;let{name:d,iconURL:h,fill:p}=i,f=d.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(d)||(u=null==(o=(n=t.o).getIcon)?void 0:o.call(n,d,f));let m=`${d}${h}${p}${null!=u?u:""}`;if(t.o.cache&&this.__cache.has(m))return null==(r=this.__cache.get(m))?void 0:r.cloneNode(!0);if(h)c=t.c.span(),(0,s.css)(c,"backgroundImage","url("+h.replace("{basePath}",(null==t?void 0:t.basePath)||"")+")");else{let i=u||a.get(d,"")||(null==(l=t.o.extraIcons)?void 0:l[d]);i&&(c=t.c.fromHTML(i.trim()),/^<svg/i.test(d)||c.classList.add("jodit-icon_"+f))}return c&&(c.classList.add("jodit-icon"),c.style.fill=p,t.o.cache&&this.__cache.set(m,c.cloneNode(!0))),c}}a.icons={},a.__cache=new Map},12202:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},12234:function(t,i,n){"use strict";n.d(i,{UISelect:function(){return c}});var o,r=n(87325),s=n(29960),a=n(80256),l=n(30389);let c=o=class t extends a.UIInput{className(){return"UISelect"}createContainer(t){var i;let n=super.createContainer(t),{j:o}=this,{nativeInput:r}=this;if(void 0!==t.placeholder){let i=o.create.element("option");i.value="",i.text=o.i18n(t.placeholder),r.add(i)}return null==(i=t.options)||i.forEach(t=>{let i=o.create.element("option");i.value=t.value.toString(),i.text=o.i18n(t.text),r.add(i)}),t.size&&t.size>0&&(0,s.attr)(r,"size",t.size),t.multiple&&(0,s.attr)(r,"multiple",""),n}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(t,i){super(t,i),this.state={...o.defaultState},Object.assign(this.state,i)}};c.defaultState={...a.UIInput.defaultState,options:[],size:1,multiple:!1},c=o=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],c)},12270:function(t,i,n){"use strict";n.d(i,{clearSelectionWrappers:function(){return u},clearSelectionWrappersFromHTML:function(){return d},getSelectionWrappers:function(){return c},highlightTextRanges:function(){return l}});var o=n(82758),r=n(2748),s=n(76078);let a="jd-tmp-selection";function l(t,i,n,s,l){if(null==i.startContainer.nodeValue||null==i.endContainer.nodeValue||function(t,i,n){if(t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight){let o=new Highlight(...[i,...n].map(i=>{let n=t.selection.createRange();return n.setStart(i.startContainer,i.startOffset),n.setEnd(i.endContainer,i.endOffset),n}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),n.length=0,!0}return!1}(t,i,n))return;let c=s.element("span",{[a]:!0});r.Dom.markTemporary(c),function(t,i,n){let o=t.startContainer.nodeValue,s=0;if(0!==t.startOffset){let i=n.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),r.Dom.before(t.startContainer,i),t.startContainer===t.endContainer&&(s=t.startOffset,t.endOffset-=s),t.startOffset=0}let a=t.endContainer.nodeValue;if(t.endOffset!==a.length){let o=n.text(a.substring(t.endOffset));for(let n of(t.endContainer.nodeValue=a.substring(0,t.endOffset),r.Dom.after(t.endContainer,o),i))if(n.startContainer===t.endContainer)n.startContainer=o,n.startOffset=n.startOffset-t.endOffset-s,n.endContainer===t.endContainer&&(n.endContainer=o,n.endOffset=n.endOffset-t.endOffset-s);else break;t.endOffset=t.endContainer.nodeValue.length}}(i,n,s);let u=i.startContainer;do{var d;if(!u||(r.Dom.isText(u)&&(d=u.parentNode,!(r.Dom.isElement(d)&&d.hasAttribute(a)))&&r.Dom.wrap(u,c.cloneNode(),s),u===i.endContainer))break;let t=u.firstChild||u.nextSibling;if(!t){for(;u&&!u.nextSibling&&u!==l;)u=u.parentNode;t=null==u?void 0:u.nextSibling}u=t}while(u&&u!==l)}function c(t){return(0,s.$$)(`[${a}]`,t)}function u(t){c(t.editor).forEach(t=>r.Dom.unwrap(t)),t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight&&CSS.highlights.clear()}function d(t){return t.replace(RegExp(`<span[^>]+${a}[^>]+>(.*?)</span>`,"g"),"$1")}},12324:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},o.Config.prototype.controls.showBlocks={isActive:t=>!!t.e.fire("showBlocksEnabled"),tooltip:"Show Blocks",command:"toggleShowBlocks"}},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(44864),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(19374),n(73098),n(13152)},12391:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(21537),a=n(41409);n(4604);var l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let c="addnewline";class u extends a.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",t=>{t.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let t=this.j;t.e.off(t.editor,"."+c).off(t.container,"."+c).off("."+c).on([t.ow,t.ew,t.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(t.editor,"click."+c,this.__hide).on(t.container,"mouseleave."+c,this.__hide).on(t.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(t){let i=this.j;if(!i.o.readonly&&i.o.addNewLineOnDBLClick&&t.target===i.editor&&i.s.isCollapsed()){let n=(0,s.offset)(i.editor,i,i.ed),o=t.pageY-i.ew.scrollX,r=i.createInside.element(i.o.enter);Math.abs(o-n.top)<Math.abs(o-(n.height+n.top))&&i.editor.firstChild?i.editor.insertBefore(r,i.editor.firstChild):i.editor.appendChild(r),i.s.setCursorIn(r),i.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){let i=this.j,n=i.ed.elementFromPoint(t.clientX,t.clientY);if(!a.Dom.isHTMLElement(n)||!a.Dom.isOrContains(i.editor,n))return;if(i.editor===n||this.__isMatchedTag(n)||(n=a.Dom.closest(n,this.__isMatchedTag,i.editor)),!n)return void this.__hide();if(this.__isMatchedTag(n)){let t=a.Dom.up(n,a.Dom.isBlock,i.editor);t&&t!==i.editor&&(n=t)}let o=(0,s.position)(n,this.j),r=!1,{clientY:l,clientX:c}=t;if(this.j.iframe){let{top:t,left:i}=(0,s.position)(this.j.iframe,this.j,!0);l+=t,c+=i}let u=this.j.o.addNewLineDeltaShow;Math.abs(l-o.top)<=u?(r=o.top,this.__isBeforeContent=!0):Math.abs(l-(o.top+o.height))<=u&&(r=o.top+o.height,this.__isBeforeContent=!1);let d=i.editor===n;!1===r||(!d||this.__isBeforeContent)&&(d||(0,s.call)(this.__isBeforeContent?a.Dom.prev:a.Dom.next,n,this.__canGetFocus,i.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=r+"px",this.__current=n,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",c-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),a.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${a.Icon.get("enter")}</span></div>`),this.__isMatchedTag=t=>!!(t&&this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,a.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=t=>null!=t&&a.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.__onClickLine=t=>{let i=this.j,n=i.createInside.element(i.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===i.editor?a.Dom.prepend(i.editor,n):this.__current.parentNode.insertBefore(n,this.__current):i.editor.appendChild(n),i.s.setCursorIn(n),(0,s.scrollIntoViewIfNeeded)(n,i.editor,i.ed),i.synchronizeValues(),this.__hideForce(),t.preventDefault()}}}l([(0,o.watch)(":lock")],u.prototype,"onLock",null),l([o.autobind],u.prototype,"__hide",null),l([(0,o.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),l([(0,o.throttle)(t=>t.defaultTimeout)],u.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",u)},12474:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var o=n(2748);function r(t,i,n){let r=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!r)return!1;let s=o.Dom.findNotEmptySibling(r,n);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},12570:function(t,i,n){"use strict";var o=n(62553),r=n(56293);i.default={...o,execute:r.execute}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},13085:function(t,i,n){"use strict";n(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},13152:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(8256);var s=n(40104),a=n(65478),l=n(50911),c=n(2692);class u extends l.Plugin{afterInit(t){this.tuner=new s.UITuner(t)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(t){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(t){this.tuner.destruct()}constructor(...t){super(...t),(0,o._)(this,"tuner",void 0)}}(0,o._)(u,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":outsideClick :keydown")],u.prototype,"hideTuner",null),(0,r.__decorate)([(0,a.watch)("j.ed:selectionchange"),(0,a.debounce)()],u.prototype,"onChangeSelection",null),(0,r.__decorate)([(0,a.watch)(":click")],u.prototype,"onClickInBlock",null),c.JoditPro.plugins.add("tune-block",u)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},13465:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},13995:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"맞춤법 검사"}},14002:function(t,i,n){"use strict";n.d(i,{UIBaseEditor:function(){return s}});var o=n(82749),r=n(67510);class s extends r.UIGroup{className(){return"UIBaseEditor"}render(){return`<div>
|
|
38
|
+
</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{!this.isResizeMode&&(this.element===t&&this.isShown||(this.element=t,this.show(),s.Dom.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize)))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){let t=this.getWorkplacePosition(),i=(0,l.offset)(this.element,this.j,this.j.ed),n=parseInt(this.rect.style.left||"0",10),o=parseInt(this.rect.style.top||"0",10),r=this.rect.offsetWidth,s=this.rect.offsetHeight,a=i.top-t.top,c=i.left-t.left;(o!==a||n!==c||r!==this.element.offsetWidth||s!==this.element.offsetHeight)&&((0,l.css)(this.rect,{top:a,left:c,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(n)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}}u([(0,r.watch)(":click")],h.prototype,"onEditorClick",null),u([(0,r.watch)(":afterInsertImage")],h.prototype,"__afterInsertImage",null),u([r.autobind],h.prototype,"onStartResizing",null),u([r.autobind],h.prototype,"onEndResizing",null),u([r.autobind],h.prototype,"onResize",null),u([r.autobind],h.prototype,"onKeyDown",null),u([r.autobind],h.prototype,"onKeyUp",null),u([r.autobind],h.prototype,"onClickOutside",null),u([(0,r.watch)(":change")],h.prototype,"__onChangeEditor",null),u([r.autobind],h.prototype,"__bind",null),u([r.autobind,(0,r.watch)(":hideResizer")],h.prototype,"hide",null),a.pluginSystem.add("resizer",h)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},12081:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return r.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return a.MemoryStorageProvider},Storage:function(){return l.Storage},StorageKey:function(){return l.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var o=n(97333),r=n(2621),s=n(65638),a=n(21162),l=n(6700)},12117:function(t,i){"use strict";i.default={"copy-format":"Kopioi muotoilu"}},12153:function(t,i,n){"use strict";n.d(i,{Icon:function(){return a}});var o=n(82758),r=n(21537),s=n(41180);class a{static getIcon(t){if(/<svg/i.test(t))return t;let i=a.icons[t]||a.icons[t.replace(/-/g,"_")]||a.icons[t.replace(/_/g,"-")]||a.icons[(0,r.camelCase)(t)]||a.icons[(0,r.kebabCase)(t)]||a.icons[t.toLowerCase()];return o.IS_PROD,i}static exists(t){return void 0!==this.getIcon(t)}static get(t,i="<span></span>"){return this.getIcon(t)||i}static set(t,i){return this.icons[t.replace("_","-")]=i,this}static makeIcon(t,i){var n,o,r,l;let c,u;if(!i)return;let{name:d,iconURL:h,fill:p}=i,f=d.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(d)||(u=null==(o=(n=t.o).getIcon)?void 0:o.call(n,d,f));let m=`${d}${h}${p}${null!=u?u:""}`;if(t.o.cache&&this.__cache.has(m))return null==(r=this.__cache.get(m))?void 0:r.cloneNode(!0);if(h)c=t.c.span(),(0,s.css)(c,"backgroundImage","url("+h.replace("{basePath}",(null==t?void 0:t.basePath)||"")+")");else{let i=u||a.get(d,"")||(null==(l=t.o.extraIcons)?void 0:l[d]);i&&(c=t.c.fromHTML(i.trim()),/^<svg/i.test(d)||c.classList.add("jodit-icon_"+f))}return c&&(c.classList.add("jodit-icon"),c.style.fill=p,t.o.cache&&this.__cache.set(m,c.cloneNode(!0))),c}}a.icons={},a.__cache=new Map},12202:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},12234:function(t,i,n){"use strict";n.d(i,{UISelect:function(){return c}});var o,r=n(87325),s=n(29960),a=n(80256),l=n(30389);let c=o=class t extends a.UIInput{className(){return"UISelect"}createContainer(t){var i;let n=super.createContainer(t),{j:o}=this,{nativeInput:r}=this;if(void 0!==t.placeholder){let i=o.create.element("option");i.value="",i.text=o.i18n(t.placeholder),r.add(i)}return null==(i=t.options)||i.forEach(t=>{let i=o.create.element("option");i.value=t.value.toString(),i.text=o.i18n(t.text),r.add(i)}),t.size&&t.size>0&&(0,s.attr)(r,"size",t.size),t.multiple&&(0,s.attr)(r,"multiple",""),n}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(t,i){super(t,i),this.state={...o.defaultState},Object.assign(this.state,i)}};c.defaultState={...a.UIInput.defaultState,options:[],size:1,multiple:!1},c=o=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],c)},12270:function(t,i,n){"use strict";n.d(i,{clearSelectionWrappers:function(){return u},clearSelectionWrappersFromHTML:function(){return d},getSelectionWrappers:function(){return c},highlightTextRanges:function(){return l}});var o=n(82758),r=n(2748),s=n(76078);let a="jd-tmp-selection";function l(t,i,n,s,l){if(null==i.startContainer.nodeValue||null==i.endContainer.nodeValue||function(t,i,n){if(t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight){let o=new Highlight(...[i,...n].map(i=>{let n=t.selection.createRange();return n.setStart(i.startContainer,i.startOffset),n.setEnd(i.endContainer,i.endOffset),n}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),n.length=0,!0}return!1}(t,i,n))return;let c=s.element("span",{[a]:!0});r.Dom.markTemporary(c),function(t,i,n){let o=t.startContainer.nodeValue,s=0;if(0!==t.startOffset){let i=n.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),r.Dom.before(t.startContainer,i),t.startContainer===t.endContainer&&(s=t.startOffset,t.endOffset-=s),t.startOffset=0}let a=t.endContainer.nodeValue;if(t.endOffset!==a.length){let o=n.text(a.substring(t.endOffset));for(let n of(t.endContainer.nodeValue=a.substring(0,t.endOffset),r.Dom.after(t.endContainer,o),i))if(n.startContainer===t.endContainer)n.startContainer=o,n.startOffset=n.startOffset-t.endOffset-s,n.endContainer===t.endContainer&&(n.endContainer=o,n.endOffset=n.endOffset-t.endOffset-s);else break;t.endOffset=t.endContainer.nodeValue.length}}(i,n,s);let u=i.startContainer;do{var d;if(!u||(r.Dom.isText(u)&&(d=u.parentNode,!(r.Dom.isElement(d)&&d.hasAttribute(a)))&&r.Dom.wrap(u,c.cloneNode(),s),u===i.endContainer))break;let t=u.firstChild||u.nextSibling;if(!t){for(;u&&!u.nextSibling&&u!==l;)u=u.parentNode;t=null==u?void 0:u.nextSibling}u=t}while(u&&u!==l)}function c(t){return(0,s.$$)(`[${a}]`,t)}function u(t){c(t.editor).forEach(t=>r.Dom.unwrap(t)),t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight&&CSS.highlights.clear()}function d(t){return t.replace(RegExp(`<span[^>]+${a}[^>]+>(.*?)</span>`,"g"),"$1")}},12324:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},o.Config.prototype.controls.showBlocks={isActive:t=>!!t.e.fire("showBlocksEnabled"),tooltip:"Show Blocks",command:"toggleShowBlocks"}},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(44864),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(19374),n(73098),n(13152)},12391:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(21537),a=n(41409);n(4604);var l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let c="addnewline";class u extends a.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",t=>{t.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let t=this.j;t.e.off(t.editor,"."+c).off(t.container,"."+c).off("."+c).on([t.ow,t.ew,t.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(t.editor,"click."+c,this.__hide).on(t.container,"mouseleave."+c,this.__hide).on(t.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(t){let i=this.j;if(!i.o.readonly&&i.o.addNewLineOnDBLClick&&t.target===i.editor&&i.s.isCollapsed()){let n=(0,s.offset)(i.editor,i,i.ed),o=t.pageY-i.ew.scrollX,r=i.createInside.element(i.o.enter);Math.abs(o-n.top)<Math.abs(o-(n.height+n.top))&&i.editor.firstChild?i.editor.insertBefore(r,i.editor.firstChild):i.editor.appendChild(r),i.s.setCursorIn(r),i.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){let i=this.j,n=i.ed.elementFromPoint(t.clientX,t.clientY);if(!a.Dom.isHTMLElement(n)||!a.Dom.isOrContains(i.editor,n))return;if(i.editor===n||this.__isMatchedTag(n)||(n=a.Dom.closest(n,this.__isMatchedTag,i.editor)),!n)return void this.__hide();if(this.__isMatchedTag(n)){let t=a.Dom.up(n,a.Dom.isBlock,i.editor);t&&t!==i.editor&&(n=t)}let o=(0,s.position)(n,this.j),r=!1,{clientY:l,clientX:c}=t;if(this.j.iframe){let{top:t,left:i}=(0,s.position)(this.j.iframe,this.j,!0);l+=t,c+=i}let u=this.j.o.addNewLineDeltaShow;Math.abs(l-o.top)<=u?(r=o.top,this.__isBeforeContent=!0):Math.abs(l-(o.top+o.height))<=u&&(r=o.top+o.height,this.__isBeforeContent=!1);let d=i.editor===n;!1===r||(!d||this.__isBeforeContent)&&(d||(0,s.call)(this.__isBeforeContent?a.Dom.prev:a.Dom.next,n,this.__canGetFocus,i.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=r+"px",this.__current=n,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",c-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),a.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${a.Icon.get("enter")}</span></div>`),this.__isMatchedTag=t=>!!(t&&this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,a.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=t=>null!=t&&a.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.__onClickLine=t=>{let i=this.j,n=i.createInside.element(i.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===i.editor?a.Dom.prepend(i.editor,n):this.__current.parentNode.insertBefore(n,this.__current):i.editor.appendChild(n),i.s.setCursorIn(n),(0,s.scrollIntoViewIfNeeded)(n,i.editor,i.ed),i.synchronizeValues(),this.__hideForce(),t.preventDefault()}}}l([(0,o.watch)(":lock")],u.prototype,"onLock",null),l([o.autobind],u.prototype,"__hide",null),l([(0,o.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),l([(0,o.throttle)(t=>t.defaultTimeout)],u.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",u)},12474:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var o=n(2748);function r(t,i,n){let r=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!r)return!1;let s=o.Dom.findNotEmptySibling(r,n);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},12570:function(t,i,n){"use strict";var o=n(62553),r=n(56293);i.default={...o,execute:r.execute}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},13085:function(t,i,n){"use strict";n(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},13152:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(8256);var s=n(40104),a=n(65478),l=n(50911),c=n(2692);class u extends l.Plugin{afterInit(t){this.tuner=new s.UITuner(t)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(t){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(t){this.tuner.destruct()}constructor(...t){super(...t),(0,o._)(this,"tuner",void 0)}}(0,o._)(u,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":outsideClick :keydown")],u.prototype,"hideTuner",null),(0,r.__decorate)([(0,a.watch)("j.ed:selectionchange"),(0,a.debounce)()],u.prototype,"onChangeSelection",null),(0,r.__decorate)([(0,a.watch)(":click")],u.prototype,"onClickInBlock",null),c.JoditPro.plugins.add("tune-block",u)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},13465:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},13995:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"맞춤법 검사"}},14002:function(t,i,n){"use strict";n.d(i,{UIBaseEditor:function(){return s}});var o=n(82749),r=n(67510);class s extends r.UIGroup{className(){return"UIBaseEditor"}render(){return`<div>
|
|
39
39
|
<div class='&__header'></div>
|
|
40
40
|
<div class='&__form'></div>
|
|
41
41
|
<div class='&__buttons'></div>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
`)})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:n,caps:o}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t],s=0;for(let t=0;t<r.length;t+=1)for(let a=0;a<r[t].length;a+=1){let l=r[t][a].split(" "),c=l[0];n&&(c=l[1]),!n&&o&&l[1]&&w.isLetter(l[0])&&(c=l[1]),i&&(c=l[2]),this.setKeyValue(s,c??l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let n=this._keys[t];if(!n)return;let o=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":o=a;break;case"Options":o=r;break;case"Shift":o=s}n.innerHTML=w.decorate(i),n.classList.toggle(this.getFullElName("key","active",!0),o),(0,l.attr)(n,"-key",i)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,i=0){let n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));let o=(0,l.attr)(n,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}let{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,r),i||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return y();default:return t}}constructor(t){super(t),(0,o._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,o._)(this,"_keys",this.getElms("key")),(0,o._)(this,"pressed",!1),(0,o._)(this,"reKeyDownTimeout",0),this.onStateChange()}}(0,r.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],w.prototype,"onStateChange",null),(0,r.__decorate)([(0,a.watch)(["ow:mouseup"])],w.prototype,"onKeyUp",null),(0,r.__decorate)([(0,a.hook)("ready")],w.prototype,"onReady",null),(0,r.__decorate)([a.autobind],w.prototype,"stopPress",null),(0,r.__decorate)([(0,a.watch)(["container:mousedown","container:touchstart"])],w.prototype,"onKeyDown",null),w=(0,r.__decorate)([a.component],w)},25321:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},25639:function(t,i,n){"use strict";n.d(i,{CommitStyle:function(){return l}});var o=n(82758),r=n(87058),s=n(77361),a=n(83632);class l{isApplied(t,i){let n=this.__applyMap.get(t);return!!n&&n[i]}setApplied(t,i){var n;let o=null!=(n=this.__applyMap.get(t))?n:{};o[i]=!0,this.__applyMap.set(t,o)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.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(t){let{hooks:i}=this.options,n=i?Object.keys(i):[];try{n.forEach(n=>{t.e.on((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),(0,a.ApplyStyle)(t,this)}finally{n.forEach(n=>{t.e.off((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){this.options=t,this.__applyMap=new WeakMap}}},25685:function(t,i,n){"use strict";n.r(i),n.d(i,{required:function(){return s},url:function(){return a}});var o=n(26049),r=n(49055);let s=function(t){return!!(0,r.trim)(t.value).length||(t.error="Please fill out this field",!1)},a=function(t){return!!(0,o.isURL)((0,r.trim)(t.value))||(t.error="Please enter a web address",!1)}},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},25813:function(t,i,n){"use strict";n.d(i,{removeInvTextNodes:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return n;let c=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!c||r.Dom.isOrContains(c,i)?n:(i.nodeValue=i.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},26152:function(t,i,n){"use strict";var o=n(68345),r=n(79910),s=n(4795),a=n(62770),l=n(1830),c=n(86273),u=n(82168),d=n(85017),h=n(32726),p=n(67078),f=n(92648),m=n(62232),g=n(62700),b=n(75445),v=n(97519),y=n(80926),w=n(52995),_=n(59526),C=n(40565),k=n(19292),S=n(83160),x=n(28923),I=n(19007),E=n(60175),T=n(69159);let A={};A={ar:r.default,cs_cz:s.default,de:a.default,en:l.default,es:c.default,fi:u.default,fr:d.default,he:h.default,hu:p.default,id:f.default,it:m.default,ja:g.default,ko:v.default,mn:y.default,nl:w.default,no:_.default,pl:C.default,pt_br:k.default,ru:S.default,tr:x.default,ua:I.default,zh_cn:E.default,zh_tw:T.default};let j=t=>t?t.default||t:{},L={};(0,o.isArray)(j(b.default))&&j(b.default).forEach((t,i)=>{L[i]=t}),Object.keys(A).forEach(t=>{let i=j(A[t]);(0,o.isArray)(i)?(A[t]={},i.forEach((i,n)=>{A[t][L[n]]=i})):A[t]=i}),i.default=A},26295:function(t,i,n){"use strict";var o=n(21537),r=n(12153),s=n(6441),a=n(53259);s.Config.prototype.defaultLineHeight=null,r.Icon.set("line-height",a.default),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,i,{control:n})=>(0,o.memorizeExec)(t,i,{control:n},t=>t)}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},26428:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"غلطیابی املایی"}},26436:function(t){t.exports={"Show Blocks":"Toon Blokken"}},26529:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return c},fr:function(){return u},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},no:function(){return y},pl:function(){return w},pt_br:function(){return _},ru:function(){return C},tr:function(){return k},ua:function(){return S},zh_cn:function(){return x},zh_tw:function(){return I}});var o=n(28906),r=n(24351),s=n(32806),a=n(77725),l=n(26428),c=n(42820),u=n(60373),d=n(98370),h=n(44850),p=n(3636),f=n(73220),m=n(55776),g=n(13995),b=n(6402),v=n(1879),y=n(1322),w=n(53361),_=n(70824),C=n(65140),k=n(42247),S=n(68891),x=n(63195),I=n(42107)},26532:function(t,i,n){"use strict";n.d(i,{SpeechRecognition:function(){return r}});var o=n(82758);let r=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},26551:function(t,i,n){"use strict";var o=n(580);n(14984),o.pluginSystem.add("video",function(t){t.registerButton({name:"video",group:"media"})})},26556:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Зураасны өндөр"}},26612:function(t){t.exports={"AI Assistant":"AI Assistant","AI Assistant Pro":"AI Assistant Pro","Welcome to AI Assistant":"Welcome to AI Assistant","Start your first conversation":"Start your first conversation","Tip: Select text in editor to add context":"Tip: Select text in editor to add context","New Chat":"New Chat","Search conversations...":"Search conversations...","No conversations yet":"No conversations yet","Ask me anything...":"Ask me anything...","Ask a follow-up...":"Ask a follow-up...","Reply...":"Reply...","Type your message...":"Type your message...",Send:"Send",Cancel:"Cancel",Retry:"Retry",Insert:"Insert",Copy:"Copy",Edit:"Edit",Delete:"Delete",New:"New",Back:"Back","Permission Required":"Permission Required",Approve:"Approve",Deny:"Deny",Once:"Once","This conversation":"This conversation",Always:"Always","The AI wants to execute:":"The AI wants to execute:","This will modify your document content.":"This will modify your document content.","Executing...":"Executing...","Completed successfully":"Completed successfully",Failed:"Failed","Pending approval":"Pending approval","Denied by user":"Denied by user","Tool Result":"Tool Result","Tool Execution Error":"Tool Execution Error",Context:"Context",Contexts:"Contexts","Add to AI Context":"Add to AI Context",Remove:"Remove","Clear all":"Clear all","An error occurred":"An error occurred","Request failed":"Request failed","Connection error":"Connection error","AI Assistant is not configured":"AI Assistant is not configured","Thinking...":"Thinking...","Generating response...":"Generating response...",insertHTML:"Insert HTML",readDocument:"Read Document",readBlock:"Read Block",replaceInDocument:"Replace in Document",replaceInBlock:"Replace in Block",getSelection:"Get Selection","Just now":"Just now",Conversation:"Conversation","New Conversation":"New Conversation",Yesterday:"Yesterday","Delete conversation":"Delete conversation","Are you sure you want to delete this conversation?":"Are you sure you want to delete this conversation?","Failed to delete conversation":"Failed to delete conversation"}},26638:function(t,i,n){"use strict";n.d(i,{UIPreviewButtonGenerator:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(67510),c=n(82520),u=n(45128);class d extends l.UIElement{className(){return"UIPreviewButtonGenerator"}render(){return`<div>
|
|
124
124
|
<div class='&__button'></div>
|
|
125
125
|
<div class='&__colors'></div>
|
|
126
|
-
</div>`}update(){this.button.update(),this.lockUpdate=!0,this.colors.forEach(t=>{t.value!==this.state[t.state.name]&&(t.value=this.state[t.state.name])}),this.lockUpdate=!1}constructor(t,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"updateState",void 0),(0,o._)(this,"button",void 0),(0,o._)(this,"lockUpdate",void 0),(0,o._)(this,"colors",void 0),this.state=i,this.updateState=n,this.button=new c.UIGButton(this.j,this.state),this.lockUpdate=!1,this.colors=["bgStart","bgEnd","fontColor","borderColor","boxShadowColor","textShadowColor","previewBgColor"].map(t=>new u.ColorInput(this.j,{name:t,onChange:i=>{this.lockUpdate||("bgEnd"===t&&i!==this.state.bgStart&&this.updateState("solid",!1),this.updateState(t,i))}}).setMod("slim",!0)),this.setMod("mode","default");const r=this.getElm("button");(0,a.assert)(null!=r,"button element does not exists"),r.appendChild(this.button.container);const s=this.getElm("colors");(0,a.assert)(null!=s,"colors element does not exists"),this.colors.forEach(t=>{s.appendChild(t.container)}),this.update()}}d=(0,r.__decorate)([s.component],d)},26658:function(t,i,n){"use strict";n.d(i,{onTabInsideLi:function(){return s}});var o=n(2748),r=n(38837);function s(t,i=!1){let n,a,l,c;if(!t.o.tab.tabInsideLiInsertNewList)return!1;let[u,d]=(n=t.createInside.fake(),a=t.createInside.fake(),(l=t.s.range.cloneRange()).collapse(!0),l.insertNode(n),(c=t.s.range.cloneRange()).collapse(!1),c.insertNode(a),[n,a]);try{let n,s,a,l,c,d=!!(n=o.Dom.closest(u,"li",t.editor))&&(!!i||!!o.Dom.isLeaf(n.previousElementSibling))&&(!i||!!o.Dom.closest(n,"li",t.editor))&&n;if(!d||!(s=o.Dom.closest(u,"li",t.editor))||s!==d&&!d.contains(s))return!1;let h=o.Dom.closest(d,["ol","ul"],t.editor);if(!h||i&&!o.Dom.closest(h,"li",t.editor))return!1;return i?function(t,i,n){let s=o.Dom.closest(i,"li",t.editor);(0,r.assert)(s,"tab parent li is null");let a=Array.from(i.children).filter(t=>o.Dom.isLeaf(t));o.Dom.after(s,n);let l=a.indexOf(n);if((0===l||1===a.length)&&o.Dom.safeRemove(i),l!==a.length-1){let t=i.cloneNode();o.Dom.append(n,t);for(let i=l+1;i<a.length;i+=1)o.Dom.append(t,a[i])}}(t,h,d):(a=d.previousElementSibling,(0,r.assert)(a,"tab previousElementSibling is null"),l=a.lastElementChild,(c=o.Dom.isTag(l,h.tagName)?l:t.createInside.element(h.tagName,Array.from(h.attributes).reduce((t,i)=>(t[i.name]=i.value,t),{}))).appendChild(d),l!==c&&a.appendChild(c)),!0}finally{let i=t.s.createRange();i.setStartAfter(u),i.setEndBefore(d),t.s.selectRange(i),o.Dom.safeRemove(u),o.Dom.safeRemove(d)}}},26716:function(t,i,n){"use strict";n.d(i,{moveNodeInsideStart:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n){let s=r.Dom.findSibling(i,n),a=r.Dom.findSibling(i,!n);for(;r.Dom.isElement(s)&&!r.Dom.isTag(s,o.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(s,t.editor)&&(!a||!r.Dom.closest(i,r.Dom.isElement,t.editor));)n||!s.firstChild?s.appendChild(i):r.Dom.before(s.firstChild,i),s=r.Dom.sibling(i,n),a=r.Dom.sibling(i,!n)}},26866:function(t,i,n){"use strict";n.d(i,{Confirm:function(){return a}});var o=n(23282),r=n(10830),s=n(78584);function a(t,i,n){let a=this instanceof s.Dialog?this:new s.Dialog({closeOnClickOverlay:!0}),l=a.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),c=a.c.element("label");(0,o.isFunction)(i)&&(n=i,i=void 0),c.appendChild(a.c.fromHTML(t)),l.appendChild(c);let u=t=>()=>{n&&!1===n(t)||a.close()},d=(0,r.Button)(a,"cancel","Cancel"),h=(0,r.Button)(a,"ok","Yes");return d.onAction(u(!1)),h.onAction(u(!0)),a.e.on(l,"submit",()=>(u(!0)(),!1)),a.setFooter([h,d]),a.open(l,i||" ",!0,!0),h.focus(),a}},26992:function(t,i,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),c=n(72430),u=n(14773),d=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,n=!1){let o=0,l=!1,d=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,u.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{d.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...i,signal:n.signal});return o.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),o}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,n,o,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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!=(n=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},27190:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> '},27222:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return y.isNumeric},isPlainObject:function(){return w.isPlainObject},isPromise:function(){return _.isPromise},isSet:function(){return C.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return x.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return E.isVoid},isWindow:function(){return T.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),c=n(23282),u=n(58487),d=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),v=n(84767),y=n(29807),w=n(72430),_=n(14773),C=n(42320),k=n(70799),S=n(26049),x=n(37508),I=n(39955),E=n(86068),T=n(52742)},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27769:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return o.UIMainPanel}});var o=n(51251)},27834:function(t,i,n){"use strict";n.d(i,{GoogleTranslateProvider:function(){return l}});var o=n(82749),r=n(82758),s=n(38837),a=n(80942);class l{__fetch(t,i={}){let n=this.jodit.o.translate.googleProviderOptions;return(0,s.assert)(n,"Set googleProviderOptions"),this.jodit.fetch(n.url+"?key="+n.key,{method:"POST",data:{...i,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){r.IS_PROD}})}translate(t,i,n){return this.__fetch("translate",{q:t,source:i,target:n,format:"html"}).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:a.languages})}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t}}},27847:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},27926:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},28125:function(t){t.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"}},28143:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return c},fr:function(){return u},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},pl:function(){return y},pt_br:function(){return w},ru:function(){return _},tr:function(){return C},ua:function(){return k},zh_cn:function(){return S},zh_tw:function(){return x}});var o=n(80084),r=n(76725),s=n(71724),a=n(46295),l=n(70190),c=n(67206),u=n(85723),d=n(61072),h=n(30592),p=n(89194),f=n(51834),m=n(5082),g=n(80105),b=n(26556),v=n(98689),y=n(42727),w=n(43646),_=n(53822),C=n(41817),k=n(69625),S=n(28973),x=n(19033)},28157:function(t,i,n){"use strict";n.d(i,{execute:function(){return s}});var o=n(6689),r=n(22732);async function s(t,i,n){let{start:s,end:a,aroundSelection:l}=i;(0,o.throwIfAborted)(n);let c=t.value,u=c.length;if(l&&!t.s.isCollapsed()){let i=t.s.range.commonAncestorContainer;for(;i&&i!==t.editor;){if(r.Dom.isElement(i)&&i.parentNode===t.editor){c=i.outerHTML;break}i=i.parentNode}return{html:c,length:u}}let d=void 0!==a?Math.min(a,u):u,h=Math.max(0,Math.min("number"==typeof s?s:0,u));return(h>0||u>d)&&(c=c.substring(h,d)),{html:c,length:u,start:h,end:d}}},28252:function(t,i,n){"use strict";var o=n(22732),r=n(49055),s=n(41180),a=n(12153),l=n(6441),c=n(4104),u=n(83709);l.Config.prototype.defaultFontSizePoints="px",a.Icon.set("font",c.default).set("fontsize",u.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(t,i)=>/pt$/i.test(t)&&"pt"===i.o.defaultFontSizePoints?t.replace(/pt$/i,""):t},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,n)=>`${n}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,i){var n;let r=t.s.current();if(!r)return;let a=o.Dom.closest(r,o.Dom.isElement,t.editor);if(!a)return;let l=(null==(n=i.control.data)?void 0:n.cssRule)||"font-size";return(0,s.css)(a,l).toString()},isChildActive(t,i){var n,o;let r=i.state.value,s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive(t,i){var n,o;let r=i.state.value;if(!r)return!1;let s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,i){let[n]=i.split(",");return(0,r.trimChars)(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,i,n){let o=!1;try{o=-1===i.indexOf("dings")&&document.fonts.check("16px "+i,n)}catch(t){}return`<span data-style="${i}" style="${o?`font-family: ${i}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},28435:function(t,i){"use strict";i.default={"copy-format":"העתק עיצוב"}},28545:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),c=n(50911),u=n(76014);n(55311);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let h="table_processor_observer",p="onMoveTableSelectCell";class f extends c.Plugin{get __tableModule(){return this.j.getInstance(u.Table,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",t=>{t.key===o.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(t=>t+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var t;let i=this.__tableModule.getAllSelectedCells().length;if(i)return i>1&&(null==(t=this.j.s.sel)||t.removeAllRanges()),!1})}onStartSelection(t){if(this.j.o.readonly||(this.unselectCells(),t===this.j.editor))return;let i=s.Dom.closest(t,"table",this.j.editor);if(t&&i)return t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,i),{label:p,timeout:this.j.defaultTimeout/2})).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,i){var n;let o;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let r=this.j.ed.elementFromPoint(i.clientX,i.clientY);if(!r)return;let a=s.Dom.closest(r,["td","th"],t);if(!a||!this.__selectedCell)return;a!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let l=this.__tableModule.getSelectedBound(t,[a,this.__selectedCell]),c=this.__tableModule.formalMatrix(t);for(let t=l[0][0];t<=l[1][0];t+=1)for(let i=l[0][1];i<=l[1][1];i+=1)this.__tableModule.addSelection(c[t][i]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),i.stopPropagation(),o=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),a.appendChild(o),this.j.async.setTimeout(()=>{var t;null==(t=o.parentNode)||t.removeChild(o)},this.j.defaultTimeout/5)}__onRemoveSelection(t){var i;if(!(null==(i=null==t?void 0:t.buffer)?void 0:i.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(t,i){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let n=this.j.ed.elementFromPoint(i.clientX,i.clientY);if(!n)return;let o=s.Dom.closest(n,["td","th"],t);if(!o)return;let r=s.Dom.closest(o,"table",t);if(r&&r!==t)return;let a=this.__tableModule.getSelectedBound(t,[o,this.__selectedCell]),c=this.__tableModule.formalMatrix(t),u=c[a[1][0]][a[1][1]],d=c[a[0][0]][a[0][1]];this.j.e.fire("showPopup",t,()=>{let t=(0,l.position)(d,this.j),i=(0,l.position)(u,this.j);return{left:t.left,top:t.top,width:i.left-t.left+i.width,height:i.top-t.top+i.height}},"cells"),(0,l.$$)("table",this.j.editor).forEach(t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p)}unselectCells(t){let i=this.__tableModule,n=i.getAllSelectedCells();n.length&&n.forEach(n=>{t&&t===n||i.removeSelection(n)})}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");let i=this.__tableModule.getAllSelectedCells();if(i.length){let[n]=i;if(!n)return;let o=s.Dom.closest(n,"table",this.j.editor);if(!o)return;switch(t){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":i.forEach(t=>s.Dom.detach(t));break;case"bin":s.Dom.safeRemove(o);break;case"binrow":new Set(i.map(t=>t.parentNode)).forEach(t=>{this.__tableModule.removeRow(o,t.rowIndex)});break;case"bincolumn":{let t=new Set;i.reduce((i,n)=>(t.has(n.cellIndex)||(i.push(n),t.add(n.cellIndex)),i),[]).forEach(t=>{this.__tableModule.removeColumn(o,t.cellIndex)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,n,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,n.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach(i=>(0,l.alignElement)(t,i))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}}f.requires=["select"],d([r.autobind],f.prototype,"onStartSelection",null),d([(0,r.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),d([(0,r.watch)(":change")],f.prototype,"onChange",null),d([r.autobind],f.prototype,"__onRemoveSelection",null),d([r.autobind],f.prototype,"__onStopSelection",null),d([r.autobind],f.prototype,"onExecCommand",null),d([r.autobind],f.prototype,"onAfterCommand",null),a.pluginSystem.add("selectCells",f)},28800:function(t,i,n){"use strict";n.d(i,{tryRemoveNode:function(){return a}});var o=n(82758),r=n(2748),s=n(49055);function a(t,i,n,a,l,c){return!r.Dom.isText(i)&&(a&&!a[i.nodeName]||!a&&l&&l[i.nodeName])||t.o.cleanHTML.removeEmptyElements&&r.Dom.isElement(i)&&null!=i.nodeName.match(o.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==c||!r.Dom.isOrContains(i,c))?(r.Dom.safeRemove(i),!0):n}},28906:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"التدقيق الإملائي"}},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},28923:function(t,i){"use strict";i.default={"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın","License: %s":"Lisans: %s"}},28973:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"线高"}},29136:function(t,i,n){"use strict";n.d(i,{isNormalNode:function(){return s}});var o=n(2748),r=n(78116);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,r.isMarker)(t))}},29243:function(t,i,n){"use strict";n.d(i,{DefaultStorage:function(){return r}});var o=n(82749);class r{async add(t){if(!t.html.trim().length)return!1;let i=this.jodit.storage.get(this.key)||[];return!i.find(i=>i.html===t.html)&&(i.unshift(t),i.length>this.jodit.o.backup.limit&&(i.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,i),!1)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"key",void 0),this.jodit=t,this.key="backup.default.storage"}}},29402:function(t,i,n){"use strict";n.r(i)},29528:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(45128),a=n(65478),l=n(2748),c=n(50911),u=n(2692);class d extends c.Plugin{afterInit(t){t.e.on("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}onAfterGenerateColorPicker(t,i,n,o){l.Dom.detach(i);let r=new s.ColorInput(this.j,{value:o||"#000",onChange:n});i.appendChild(r.container)}beforeDestruct(t){t.e.off("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAfterGenerateColorPicker",null),u.JoditPro.plugins.add("color-picker",d)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return c}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",u="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,u)&&"default"!==(0,l.dataBind)(t,u),isChildActive(t,i){let n=i.control?.args?.[0];return(0,a.isNumeric)(n)&&(n=Number(n)),((0,l.dataBind)(t,u)||"default")===n},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec(t,i,{button:n}){let o=n.control?.args?.[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(o)?Number(o):o)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},29615:function(t,i,n){"use strict";n.d(i,{applyLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n,s){let a=o.Dom.closest(i,"a",t.editor);n?(a||(a=o.Dom.wrap(i,"a",t.createInside)),(0,r.attr)(a,"href",n),(0,r.attr)(a,"target",s?"_blank":null)):a&&a.parentNode&&a.parentNode.replaceChild(i,a)}},29673:function(t,i,n){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}n.d(i,{isHtmlFromWord:function(){return o}})},29744:function(t,i,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},29827:function(t,i,n){"use strict";n.d(i,{UIImagePositionTab:function(){return f}});var o=n(87325),r=n(97357),s=n(37133),a=n(21537),l=n(70799),c=n(29960),u=n(48538),d=n(12153),h=n(14415),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let f=class t extends u.UIElement{className(){return"UIImagePositionTab"}render({availableClasses:t}){let i;return`<div class="jodit-form__group &__editMargins">
|
|
126
|
+
</div>`}update(){this.button.update(),this.lockUpdate=!0,this.colors.forEach(t=>{t.value!==this.state[t.state.name]&&(t.value=this.state[t.state.name])}),this.lockUpdate=!1}constructor(t,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"updateState",void 0),(0,o._)(this,"button",void 0),(0,o._)(this,"lockUpdate",void 0),(0,o._)(this,"colors",void 0),this.state=i,this.updateState=n,this.button=new c.UIGButton(this.j,this.state),this.lockUpdate=!1,this.colors=["bgStart","bgEnd","fontColor","borderColor","boxShadowColor","textShadowColor","previewBgColor"].map(t=>new u.ColorInput(this.j,{name:t,onChange:i=>{this.lockUpdate||("bgEnd"===t&&i!==this.state.bgStart&&this.updateState("solid",!1),this.updateState(t,i))}}).setMod("slim",!0)),this.setMod("mode","default");const r=this.getElm("button");(0,a.assert)(null!=r,"button element does not exists"),r.appendChild(this.button.container);const s=this.getElm("colors");(0,a.assert)(null!=s,"colors element does not exists"),this.colors.forEach(t=>{s.appendChild(t.container)}),this.update()}}d=(0,r.__decorate)([s.component],d)},26658:function(t,i,n){"use strict";n.d(i,{onTabInsideLi:function(){return s}});var o=n(2748),r=n(38837);function s(t,i=!1){let n,a,l,c;if(!t.o.tab.tabInsideLiInsertNewList)return!1;let[u,d]=(n=t.createInside.fake(),a=t.createInside.fake(),(l=t.s.range.cloneRange()).collapse(!0),l.insertNode(n),(c=t.s.range.cloneRange()).collapse(!1),c.insertNode(a),[n,a]);try{let n,s,a,l,c,d=!!(n=o.Dom.closest(u,"li",t.editor))&&(!!i||!!o.Dom.isLeaf(n.previousElementSibling))&&(!i||!!o.Dom.closest(n,"li",t.editor))&&n;if(!d||!(s=o.Dom.closest(u,"li",t.editor))||s!==d&&!d.contains(s))return!1;let h=o.Dom.closest(d,["ol","ul"],t.editor);if(!h||i&&!o.Dom.closest(h,"li",t.editor))return!1;return i?function(t,i,n){let s=o.Dom.closest(i,"li",t.editor);(0,r.assert)(s,"tab parent li is null");let a=Array.from(i.children).filter(t=>o.Dom.isLeaf(t));o.Dom.after(s,n);let l=a.indexOf(n);if((0===l||1===a.length)&&o.Dom.safeRemove(i),l!==a.length-1){let t=i.cloneNode();o.Dom.append(n,t);for(let i=l+1;i<a.length;i+=1)o.Dom.append(t,a[i])}}(t,h,d):(a=d.previousElementSibling,(0,r.assert)(a,"tab previousElementSibling is null"),l=a.lastElementChild,(c=o.Dom.isTag(l,h.tagName)?l:t.createInside.element(h.tagName,Array.from(h.attributes).reduce((t,i)=>(t[i.name]=i.value,t),{}))).appendChild(d),l!==c&&a.appendChild(c)),!0}finally{let i=t.s.createRange();i.setStartAfter(u),i.setEndBefore(d),t.s.selectRange(i),o.Dom.safeRemove(u),o.Dom.safeRemove(d)}}},26716:function(t,i,n){"use strict";n.d(i,{moveNodeInsideStart:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n){let s=r.Dom.findSibling(i,n),a=r.Dom.findSibling(i,!n);for(;r.Dom.isElement(s)&&!r.Dom.isTag(s,o.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(s,t.editor)&&(!a||!r.Dom.closest(i,r.Dom.isElement,t.editor));)n||!s.firstChild?s.appendChild(i):r.Dom.before(s.firstChild,i),s=r.Dom.sibling(i,n),a=r.Dom.sibling(i,!n)}},26866:function(t,i,n){"use strict";n.d(i,{Confirm:function(){return a}});var o=n(23282),r=n(10830),s=n(78584);function a(t,i,n){let a=this instanceof s.Dialog?this:new s.Dialog({closeOnClickOverlay:!0}),l=a.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),c=a.c.element("label");(0,o.isFunction)(i)&&(n=i,i=void 0),c.appendChild(a.c.fromHTML(t)),l.appendChild(c);let u=t=>()=>{n&&!1===n(t)||a.close()},d=(0,r.Button)(a,"cancel","Cancel"),h=(0,r.Button)(a,"ok","Yes");return d.onAction(u(!1)),h.onAction(u(!0)),a.e.on(l,"submit",()=>(u(!0)(),!1)),a.setFooter([h,d]),a.open(l,i||" ",!0,!0),h.focus(),a}},26992:function(t,i,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),c=n(72430),u=n(14773),d=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,n=!1){let o=0,l=!1,d=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,u.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{d.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...i,signal:n.signal});return o.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),o}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,n,o,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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!=(n=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},27190:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> '},27222:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return y.isNumeric},isPlainObject:function(){return w.isPlainObject},isPromise:function(){return _.isPromise},isSet:function(){return C.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return x.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return E.isVoid},isWindow:function(){return T.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),c=n(23282),u=n(58487),d=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),v=n(84767),y=n(29807),w=n(72430),_=n(14773),C=n(42320),k=n(70799),S=n(26049),x=n(37508),I=n(39955),E=n(86068),T=n(52742)},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27769:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return o.UIMainPanel}});var o=n(51251)},27834:function(t,i,n){"use strict";n.d(i,{GoogleTranslateProvider:function(){return l}});var o=n(82749),r=n(82758),s=n(38837),a=n(80942);class l{__fetch(t,i={}){let n=this.jodit.o.translate.googleProviderOptions;return(0,s.assert)(n,"Set googleProviderOptions"),this.jodit.fetch(n.url+"?key="+n.key,{method:"POST",data:{...i,ui:this.jodit.o.language},contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){r.IS_PROD}})}translate(t,i,n){return this.__fetch("translate",{q:t,source:i,target:n,format:"html"}).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:a.languages})}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t}}},27847:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},27926:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},28125:function(t){t.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"}},28143:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return c},fr:function(){return u},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},pl:function(){return y},pt_br:function(){return w},ru:function(){return _},tr:function(){return C},ua:function(){return k},zh_cn:function(){return S},zh_tw:function(){return x}});var o=n(80084),r=n(76725),s=n(71724),a=n(46295),l=n(70190),c=n(67206),u=n(85723),d=n(61072),h=n(30592),p=n(89194),f=n(51834),m=n(5082),g=n(80105),b=n(26556),v=n(98689),y=n(42727),w=n(43646),_=n(53822),C=n(41817),k=n(69625),S=n(28973),x=n(19033)},28157:function(t,i,n){"use strict";n.d(i,{execute:function(){return s}});var o=n(6689),r=n(22732);async function s(t,i,n){let{start:s,end:a,aroundSelection:l}=i;(0,o.throwIfAborted)(n);let c=t.value,u=c.length;if(l&&!t.s.isCollapsed()){let i=t.s.range.commonAncestorContainer;for(;i&&i!==t.editor;){if(r.Dom.isElement(i)&&i.parentNode===t.editor){c=i.outerHTML;break}i=i.parentNode}return{html:c,length:u}}let d=void 0!==a?Math.min(a,u):u,h=Math.max(0,Math.min("number"==typeof s?s:0,u));return(h>0||u>d)&&(c=c.substring(h,d)),{html:c,length:u,start:h,end:d}}},28252:function(t,i,n){"use strict";var o=n(22732),r=n(49055),s=n(41180),a=n(12153),l=n(6441),c=n(4104),u=n(83709);l.Config.prototype.defaultFontSizePoints="px",a.Icon.set("font",c.default).set("fontsize",u.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(t,i)=>/pt$/i.test(t)&&"pt"===i.o.defaultFontSizePoints?t.replace(/pt$/i,""):t},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,n)=>`${n}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,i){var n;let r=t.s.current();if(!r)return;let a=o.Dom.closest(r,o.Dom.isElement,t.editor);if(!a)return;let l=(null==(n=i.control.data)?void 0:n.cssRule)||"font-size";return(0,s.css)(a,l).toString()},isChildActive(t,i){var n,o;let r=i.state.value,s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive(t,i){var n,o;let r=i.state.value;if(!r)return!1;let s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,i){let[n]=i.split(",");return(0,r.trimChars)(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,i,n){let o=!1;try{o=-1===i.indexOf("dings")&&document.fonts.check("16px "+i,n)}catch(t){}return`<span data-style="${i}" style="${o?`font-family: ${i}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},28435:function(t,i){"use strict";i.default={"copy-format":"העתק עיצוב"}},28545:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),c=n(50911),u=n(76014);n(55311);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let h="table_processor_observer",p="onMoveTableSelectCell";class f extends c.Plugin{get __tableModule(){return this.j.getInstance(u.Table,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",t=>{t.key===o.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(t=>t+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var t;let i=this.__tableModule.getAllSelectedCells().length;if(i)return i>1&&(null==(t=this.j.s.sel)||t.removeAllRanges()),!1})}onStartSelection(t){if(this.j.o.readonly||(this.unselectCells(),t===this.j.editor))return;let i=s.Dom.closest(t,"table",this.j.editor);if(t&&i)return t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,i),{label:p,timeout:this.j.defaultTimeout/2})).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,i){var n;let o;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let r=this.j.ed.elementFromPoint(i.clientX,i.clientY);if(!r)return;let a=s.Dom.closest(r,["td","th"],t);if(!a||!this.__selectedCell)return;a!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let l=this.__tableModule.getSelectedBound(t,[a,this.__selectedCell]),c=this.__tableModule.formalMatrix(t);for(let t=l[0][0];t<=l[1][0];t+=1)for(let i=l[0][1];i<=l[1][1];i+=1)this.__tableModule.addSelection(c[t][i]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),i.stopPropagation(),o=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),a.appendChild(o),this.j.async.setTimeout(()=>{var t;null==(t=o.parentNode)||t.removeChild(o)},this.j.defaultTimeout/5)}__onRemoveSelection(t){var i;if(!(null==(i=null==t?void 0:t.buffer)?void 0:i.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(t,i){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let n=this.j.ed.elementFromPoint(i.clientX,i.clientY);if(!n)return;let o=s.Dom.closest(n,["td","th"],t);if(!o)return;let r=s.Dom.closest(o,"table",t);if(r&&r!==t)return;let a=this.__tableModule.getSelectedBound(t,[o,this.__selectedCell]),c=this.__tableModule.formalMatrix(t),u=c[a[1][0]][a[1][1]],d=c[a[0][0]][a[0][1]];this.j.e.fire("showPopup",t,()=>{let t=(0,l.position)(d,this.j),i=(0,l.position)(u,this.j);return{left:t.left,top:t.top,width:i.left-t.left+i.width,height:i.top-t.top+i.height}},"cells"),(0,l.$$)("table",this.j.editor).forEach(t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p)}unselectCells(t){let i=this.__tableModule,n=i.getAllSelectedCells();n.length&&n.forEach(n=>{t&&t===n||i.removeSelection(n)})}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");let i=this.__tableModule.getAllSelectedCells();if(i.length){let[n]=i;if(!n)return;let o=s.Dom.closest(n,"table",this.j.editor);if(!o)return;switch(t){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":i.forEach(t=>s.Dom.detach(t));break;case"bin":s.Dom.safeRemove(o);break;case"binrow":new Set(i.map(t=>t.parentNode)).forEach(t=>{this.__tableModule.removeRow(o,t.rowIndex)});break;case"bincolumn":{let t=new Set;i.reduce((i,n)=>(t.has(n.cellIndex)||(i.push(n),t.add(n.cellIndex)),i),[]).forEach(t=>{this.__tableModule.removeColumn(o,t.cellIndex)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,n,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,n.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach(i=>(0,l.alignElement)(t,i))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}}f.requires=["select"],d([r.autobind],f.prototype,"onStartSelection",null),d([(0,r.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),d([(0,r.watch)(":change")],f.prototype,"onChange",null),d([r.autobind],f.prototype,"__onRemoveSelection",null),d([r.autobind],f.prototype,"__onStopSelection",null),d([r.autobind],f.prototype,"onExecCommand",null),d([r.autobind],f.prototype,"onAfterCommand",null),a.pluginSystem.add("selectCells",f)},28609:function(t,i,n){"use strict";var o=n(69341),r=n(5440),s=n(78955),a=n.n(s),l=n(6441);l.Config.prototype.customStyles={definitions:[]},l.Config.prototype.controls.style={tooltip:"Styles",icon:a(),isDisabled:t=>!t.o.customStyles.definitions.length,isActive(t){let i=t.o.customStyles.definitions;return!!i.length&&null!=(0,o.detectActiveStyle)(t,i)},update(t,i){let n=t.o.customStyles.definitions;if(!n.length)return;let r=(0,o.detectActiveStyle)(t,n);t.o.textIcons&&(r?i.state.text=r.name:i.state.text="")},popup(t,i,n){let o=t.o.customStyles.definitions;if(!o.length)return!1;t.s.current()||t.s.focus(),t.s.save();let s=(0,r.buildStylePopup)(t,o,()=>{t.s.restore(),n()});return t.e.one("beforePopupClose",()=>{t.s.restore()}),s}}},28800:function(t,i,n){"use strict";n.d(i,{tryRemoveNode:function(){return a}});var o=n(82758),r=n(2748),s=n(49055);function a(t,i,n,a,l,c){return!r.Dom.isText(i)&&(a&&!a[i.nodeName]||!a&&l&&l[i.nodeName])||t.o.cleanHTML.removeEmptyElements&&r.Dom.isElement(i)&&null!=i.nodeName.match(o.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==c||!r.Dom.isOrContains(i,c))?(r.Dom.safeRemove(i),!0):n}},28906:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"التدقيق الإملائي"}},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},28923:function(t,i){"use strict";i.default={"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın","License: %s":"Lisans: %s"}},28973:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"线高"}},29136:function(t,i,n){"use strict";n.d(i,{isNormalNode:function(){return s}});var o=n(2748),r=n(78116);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,r.isMarker)(t))}},29243:function(t,i,n){"use strict";n.d(i,{DefaultStorage:function(){return r}});var o=n(82749);class r{async add(t){if(!t.html.trim().length)return!1;let i=this.jodit.storage.get(this.key)||[];return!i.find(i=>i.html===t.html)&&(i.unshift(t),i.length>this.jodit.o.backup.limit&&(i.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,i),!1)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"key",void 0),this.jodit=t,this.key="backup.default.storage"}}},29402:function(t,i,n){"use strict";n.r(i)},29528:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(45128),a=n(65478),l=n(2748),c=n(50911),u=n(2692);class d extends c.Plugin{afterInit(t){t.e.on("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}onAfterGenerateColorPicker(t,i,n,o){l.Dom.detach(i);let r=new s.ColorInput(this.j,{value:o||"#000",onChange:n});i.appendChild(r.container)}beforeDestruct(t){t.e.off("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAfterGenerateColorPicker",null),u.JoditPro.plugins.add("color-picker",d)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return c}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",u="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,u)&&"default"!==(0,l.dataBind)(t,u),isChildActive(t,i){let n=i.control?.args?.[0];return(0,a.isNumeric)(n)&&(n=Number(n)),((0,l.dataBind)(t,u)||"default")===n},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec(t,i,{button:n}){let o=n.control?.args?.[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(o)?Number(o):o)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},29615:function(t,i,n){"use strict";n.d(i,{applyLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n,s){let a=o.Dom.closest(i,"a",t.editor);n?(a||(a=o.Dom.wrap(i,"a",t.createInside)),(0,r.attr)(a,"href",n),(0,r.attr)(a,"target",s?"_blank":null)):a&&a.parentNode&&a.parentNode.replaceChild(i,a)}},29673:function(t,i,n){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}n.d(i,{isHtmlFromWord:function(){return o}})},29744:function(t,i,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},29827:function(t,i,n){"use strict";n.d(i,{UIImagePositionTab:function(){return f}});var o=n(87325),r=n(97357),s=n(37133),a=n(21537),l=n(70799),c=n(29960),u=n(48538),d=n(12153),h=n(14415),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let f=class t extends u.UIElement{className(){return"UIImagePositionTab"}render({availableClasses:t}){let i;return`<div class="jodit-form__group &__editMargins">
|
|
127
127
|
<label>~Margins~</label>
|
|
128
128
|
<div class="jodit-grid jodit_vertical_middle">
|
|
129
129
|
<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
>
|
|
160
160
|
<label>~Border radius~</label>
|
|
161
161
|
<input type="number" class="jodit-input &__borderRadius"/>
|
|
162
|
-
</div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){let t=this.getElm("marginBottom"),i=this.getElm("marginRight"),n=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([i,t,n].forEach(t=>{(0,c.attr)(t,"disabled",this.state.marginIsLocked||null)}),o.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");t.value=this.state.values.marginTop.toString(),i.value=this.state.values.marginRight.toString(),n.value=this.state.values.marginBottom.toString(),o.value=this.state.values.marginLeft.toString()}onChangeMargin(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");this.state.values.marginTop=(0,h.normalSizeFromString)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,h.normalSizeFromString)(i.value),this.state.values.marginBottom=(0,h.normalSizeFromString)(n.value),this.state.values.marginLeft=(0,h.normalSizeFromString)(o.value))}hideFieldByOptions(){let t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([i,n])=>{let o=this.getElm(n);(0,a.css)(o,"display",t[i]?null:"none")})}constructor(t,i,n){super(t,{availableClasses:t.o.image.availableClasses}),this.state=i,this.handlers=n}};p([(0,r.hook)("ready"),(0,s.watch)("state.values.align")],f.prototype,"onStateAlignChange",null),p([(0,s.watch)("align:change")],f.prototype,"onChangeAlign",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),p([(0,s.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),p([(0,s.watch)("id:change")],f.prototype,"onChangeId",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),p([(0,s.watch)("style:change")],f.prototype,"onChangeStyle",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),p([(0,s.watch)("classes:change")],f.prototype,"onChangClasses",null),p([(0,s.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),p([(0,r.hook)("ready"),(0,s.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),p([(0,r.hook)("ready"),(0,s.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),p([(0,s.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),p([(0,r.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=p([o.component],f)},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,c){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let u=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(u)){let n=t(i,"data"+u);if(n)return n;u=u.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(u)&&i.removeAttribute(u);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===u||"height"===u)&&(t=t.replace("px","")),i.setAttribute(u,t),t}return i.getAttribute(u)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},30389:function(t,i,n){"use strict";n.d(i,{inputValidators:function(){return o},selectValidators:function(){return r}});var o=n(25685),r=n(66465)},30465:function(t,i,n){"use strict";function o(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then(i=>{i&&(t.state.elements=i,t.state.activeElements=[])}).catch(t.status).finally(()=>t.files.setMod("loading",!1))}n.d(i,{loadItems:function(){return o}})},30592:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Vonal magassága"}},30717:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return o.applyStylesPro}});var o=n(51586);n(31269),n(19606)},30798:function(t,i,n){"use strict";n.r(i),i.default={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},31269:function(t,i,n){"use strict";n.d(i,{calcListLevels:function(){return a}});var o=n(43712),r=n(10058),s=n(97420);function a(t){if(void 0!==t.attributes[r.LEVEL_KEY])return;let i=[(0,o.realPixelIndent)(t)],n=[t],a=t.next;for(;a;){if(a.isElement&&!a.attributes[r.LEVEL_KEY]&&(0,s.isPseudoLeaf)(a)){let t=(0,o.realPixelIndent)(a);t&&(i.push(t),n.push(a))}a=a.next}let l=Math.min(...i.filter(t=>t>0)),c=i.map(t=>Math.ceil(t/10));-1!==c.indexOf(0)&&(c=c.map(t=>t+1)),n.forEach((t,i)=>{t.attributes[r.LEVEL_KEY]=c[i],t.style.add("margin-left",`${Math.max((0,o.realPixelIndent)(t)-10*c[i]/l*40,0)}px`)})}},31356:function(t,i,n){"use strict";n.d(i,{ListReconciler:function(){return o}});class o{static reconcile(t,i,n){let{getId:o,isEqual:r=(t,i)=>o(t)===o(i),preserveOrder:s=!0}=n,a=new Map,l=new Map;t.forEach((t,i)=>{let n=o(t);a.set(n,t),l.set(n,i)});let c=new Map,u=new Map;i.forEach((t,i)=>{let n=o(t);c.set(n,t),u.set(n,i)});let d=[],h=[],p=[],f=[];return i.forEach((t,i)=>{let n=o(t),c=a.get(n);c?!r(c,t)||s&&l.get(n)!==i?h.push({oldItem:c,newItem:t,index:s?i:l.get(n)}):f.push(c):d.push(t)}),t.forEach(t=>{let i=o(t);c.has(i)||p.push(t)}),{toCreate:d,toUpdate:h,toRemove:p,unchanged:f}}static applyResult(t,i,n={}){i.toRemove.forEach(i=>{let o=t.indexOf(i);-1!==o&&(n.onRemove?.(i,o),t.splice(o,1))}),i.toUpdate.forEach(({oldItem:i,newItem:o,index:r})=>{let s=t.indexOf(i);-1!==s&&(n.onUpdate?.(i,o,r),t[s]=o)}),i.toCreate.forEach(i=>{n.onCreate?.(i,t.length),t.push(i)})}}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,c,u){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(u(t,i,"style").innerHTML=a.styles)}},31554:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},31571:function(t,i,n){"use strict";n.d(i,{pasteFromWord:function(){return u}});var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);n(71842);var c=n(117);class u extends l.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,i,n){let{j:o}=this,{processPasteFromWord:r,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:l,defaultActionOnPaste:u,pasteFromWordActionList:d}=o.o;return!!(r&&(0,a.isHtmlFromWord)(i))&&(s?(0,c.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,i,o,n)},d):this.insertFromWordByType(t,i,l||u,n),!0)}insertFromWordByType(t,i,n,r){var s;switch(n){case o.INSERT_AS_HTML:{i=(0,a.applyStyles)(i);let t=null==(s=this.j.events)?void 0:s.fire("beautifyHTML",i);(0,a.isString)(t)&&(i=t);break}case o.INSERT_AS_TEXT:i=(0,a.cleanFromWord)(i);break;case o.INSERT_ONLY_TEXT:i=(0,a.stripTags)((0,a.cleanFromWord)(i))}(0,c.pasteInsertHtml)(t,this.j,i)}}u.requires=["paste"],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":processHTML")],u.prototype,"processWordHTML",null),s.pluginSystem.add("pasteFromWord",u)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},31635:function(t,i,n){"use strict";function o(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}n.d(i,{__decorate:function(){return o}}),"function"==typeof SuppressedError&&SuppressedError},31974:function(t,i,n){"use strict";n.d(i,{aiAssitentCommands:function(){return l}});var o=n(12153),r=n(6441),s=n(64488),a=n(23658);let l={aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"};r.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",a.default),o.Icon.set("ai-commands",s.default),r.Config.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:l,exec(t,i,{control:n}){t.e.fire("generateAiAssistantForm.ai-assistant",n.name)}},r.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,i,n){t.e.fire("generateAiAssistantForm.ai-assistant")}}},32118:function(t,i,n){"use strict";n.d(i,{elementsMap:function(){return r}});let o=new WeakMap,r=t=>{let i=o.get(t);return i||(i={},o.set(t,i)),i}},32172:function(t,i){"use strict";i.default={"copy-format":"format kopii"}},32309:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(43649);n(37585),o.pluginSystem.add("mobile",function(t){let i=0,n=(0,r.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",n=>{if(n.changedTouches&&n.changedTouches.length){let o=new Date().getTime(),r=o-i;r>t.o.mobileTapTimeout&&(i=o,r<1.5*t.o.mobileTapTimeout&&t.s.insertCursorAtPoint(n.clientX,n.clientY))}}),t.e.on("getDiffButtons.mobile",i=>{if(i===t.toolbar){let i=(0,s.flatButtonsSet)((0,r.splitArray)(t.o.buttons),t),o=(0,s.flatButtonsSet)(n,t);return(0,r.toArray)(i).reduce((t,i)=>(o.has(i)||t.push(i),t),[])}}),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var i,o;if(!t.o.toolbar)return;let s=(null!=(i=t.container.parentElement)?i:t.container).offsetWidth,a=t.isFullSize||s>=t.o.sizeLG?(0,r.splitArray)(t.o.buttons):s>=t.o.sizeMD?(0,r.splitArray)(t.o.buttonsMD):s>=t.o.sizeSM?(0,r.splitArray)(t.o.buttonsSM):(0,r.splitArray)(t.o.buttonsXS);a.toString()!==n.toString()&&(n=a,t.e.fire("closeAllPopups"),null==(o=t.toolbar)||o.setRemoveButtons(t.o.removeButtons).build(n.concat(t.o.extraButtons)))}).on(t.ow,"load resize",()=>t.e.fire("recalcAdaptive"))})},32496:function(t,i,n){"use strict";n(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},32523:function(t,i,n){"use strict";n.d(i,{UiAiAssistant:function(){return d}});var o=n(87325),r=n(37133),s=n(2748),a=n(70799),l=n(67510),c=n(48538),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d=class t extends c.UIElement{className(){return"UIAiAssistant"}render(){return`<div>
|
|
162
|
+
</div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){let t=this.getElm("marginBottom"),i=this.getElm("marginRight"),n=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([i,t,n].forEach(t=>{(0,c.attr)(t,"disabled",this.state.marginIsLocked||null)}),o.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");t.value=this.state.values.marginTop.toString(),i.value=this.state.values.marginRight.toString(),n.value=this.state.values.marginBottom.toString(),o.value=this.state.values.marginLeft.toString()}onChangeMargin(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");this.state.values.marginTop=(0,h.normalSizeFromString)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,h.normalSizeFromString)(i.value),this.state.values.marginBottom=(0,h.normalSizeFromString)(n.value),this.state.values.marginLeft=(0,h.normalSizeFromString)(o.value))}hideFieldByOptions(){let t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([i,n])=>{let o=this.getElm(n);(0,a.css)(o,"display",t[i]?null:"none")})}constructor(t,i,n){super(t,{availableClasses:t.o.image.availableClasses}),this.state=i,this.handlers=n}};p([(0,r.hook)("ready"),(0,s.watch)("state.values.align")],f.prototype,"onStateAlignChange",null),p([(0,s.watch)("align:change")],f.prototype,"onChangeAlign",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),p([(0,s.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),p([(0,s.watch)("id:change")],f.prototype,"onChangeId",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),p([(0,s.watch)("style:change")],f.prototype,"onChangeStyle",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),p([(0,s.watch)("classes:change")],f.prototype,"onChangClasses",null),p([(0,s.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),p([(0,r.hook)("ready"),(0,s.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),p([(0,r.hook)("ready"),(0,s.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),p([(0,s.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),p([(0,r.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=p([o.component],f)},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,c){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let u=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(u)){let n=t(i,"data"+u);if(n)return n;u=u.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(u)&&i.removeAttribute(u);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===u||"height"===u)&&(t=t.replace("px","")),i.setAttribute(u,t),t}return i.getAttribute(u)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},30389:function(t,i,n){"use strict";n.d(i,{inputValidators:function(){return o},selectValidators:function(){return r}});var o=n(25685),r=n(66465)},30465:function(t,i,n){"use strict";function o(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then(i=>{i&&(t.state.elements=i,t.state.activeElements=[])}).catch(t.status).finally(()=>t.files.setMod("loading",!1))}n.d(i,{loadItems:function(){return o}})},30592:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Vonal magassága"}},30717:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return o.applyStylesPro}});var o=n(51586);n(31269),n(19606)},30798:function(t,i,n){"use strict";n.r(i),i.default={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},31105:function(t,i,n){"use strict";n.d(i,{applyStyle:function(){return c}});var o=n(69341),r=n(82758),s=n(2748);function a(t,i){let n=t.s.current();if(!n)return null;if(r.IS_BLOCK.test(i.element))return s.Dom.closest(n,s.Dom.isBlock,t.editor);let o=s.Dom.isElement(n)?n:n.parentNode;for(;o&&o!==t.editor;){if(s.Dom.isElement(o)&&o.nodeName.toLowerCase()===i.element)return o;o=o.parentNode}return null}function l(t,i){for(let n of i)t.classList.remove(n);""===t.className&&t.removeAttribute("class")}function c(t,i,n){let c=(0,o.detectActiveStyle)(t,n);c&&(t.s.commitStyle({element:c.element,attributes:{class:c.classes[0]}}),!function(t,i){if(i.classes.length<=1)return;let n=t.s.current();if(n)if(r.IS_BLOCK.test(i.element)){let o=s.Dom.closest(n,s.Dom.isBlock,t.editor);o&&l(o,i.classes.slice(1))}else{let n=a(t,i);n&&(l(n,i.classes.slice(1)),"span"!==n.nodeName.toLowerCase()||n.attributes.length||s.Dom.unwrap(n))}}(t,c),c===i)||(t.s.commitStyle({element:i.element,attributes:{class:i.classes[0]}}),function(t,i){if(i.classes.length<=1)return;let n=a(t,i);if(n)for(let t=1;t<i.classes.length;t++)n.classList.add(i.classes[t])}(t,i))}},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},31269:function(t,i,n){"use strict";n.d(i,{calcListLevels:function(){return a}});var o=n(43712),r=n(10058),s=n(97420);function a(t){if(void 0!==t.attributes[r.LEVEL_KEY])return;let i=[(0,o.realPixelIndent)(t)],n=[t],a=t.next;for(;a;){if(a.isElement&&!a.attributes[r.LEVEL_KEY]&&(0,s.isPseudoLeaf)(a)){let t=(0,o.realPixelIndent)(a);t&&(i.push(t),n.push(a))}a=a.next}let l=Math.min(...i.filter(t=>t>0)),c=i.map(t=>Math.ceil(t/10));-1!==c.indexOf(0)&&(c=c.map(t=>t+1)),n.forEach((t,i)=>{t.attributes[r.LEVEL_KEY]=c[i],t.style.add("margin-left",`${Math.max((0,o.realPixelIndent)(t)-10*c[i]/l*40,0)}px`)})}},31356:function(t,i,n){"use strict";n.d(i,{ListReconciler:function(){return o}});class o{static reconcile(t,i,n){let{getId:o,isEqual:r=(t,i)=>o(t)===o(i),preserveOrder:s=!0}=n,a=new Map,l=new Map;t.forEach((t,i)=>{let n=o(t);a.set(n,t),l.set(n,i)});let c=new Map,u=new Map;i.forEach((t,i)=>{let n=o(t);c.set(n,t),u.set(n,i)});let d=[],h=[],p=[],f=[];return i.forEach((t,i)=>{let n=o(t),c=a.get(n);c?!r(c,t)||s&&l.get(n)!==i?h.push({oldItem:c,newItem:t,index:s?i:l.get(n)}):f.push(c):d.push(t)}),t.forEach(t=>{let i=o(t);c.has(i)||p.push(t)}),{toCreate:d,toUpdate:h,toRemove:p,unchanged:f}}static applyResult(t,i,n={}){i.toRemove.forEach(i=>{let o=t.indexOf(i);-1!==o&&(n.onRemove?.(i,o),t.splice(o,1))}),i.toUpdate.forEach(({oldItem:i,newItem:o,index:r})=>{let s=t.indexOf(i);-1!==s&&(n.onUpdate?.(i,o,r),t[s]=o)}),i.toCreate.forEach(i=>{n.onCreate?.(i,t.length),t.push(i)})}}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,c,u){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(u(t,i,"style").innerHTML=a.styles)}},31554:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},31571:function(t,i,n){"use strict";n.d(i,{pasteFromWord:function(){return u}});var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);n(71842);var c=n(117);class u extends l.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,i,n){let{j:o}=this,{processPasteFromWord:r,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:l,defaultActionOnPaste:u,pasteFromWordActionList:d}=o.o;return!!(r&&(0,a.isHtmlFromWord)(i))&&(s?(0,c.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,i,o,n)},d):this.insertFromWordByType(t,i,l||u,n),!0)}insertFromWordByType(t,i,n,r){var s;switch(n){case o.INSERT_AS_HTML:{i=(0,a.applyStyles)(i);let t=null==(s=this.j.events)?void 0:s.fire("beautifyHTML",i);(0,a.isString)(t)&&(i=t);break}case o.INSERT_AS_TEXT:i=(0,a.cleanFromWord)(i);break;case o.INSERT_ONLY_TEXT:i=(0,a.stripTags)((0,a.cleanFromWord)(i))}(0,c.pasteInsertHtml)(t,this.j,i)}}u.requires=["paste"],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":processHTML")],u.prototype,"processWordHTML",null),s.pluginSystem.add("pasteFromWord",u)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},31635:function(t,i,n){"use strict";function o(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}n.d(i,{__decorate:function(){return o}}),"function"==typeof SuppressedError&&SuppressedError},31974:function(t,i,n){"use strict";n.d(i,{aiAssitentCommands:function(){return l}});var o=n(12153),r=n(6441),s=n(64488),a=n(23658);let l={aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"};r.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",a.default),o.Icon.set("ai-commands",s.default),r.Config.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:l,exec(t,i,{control:n}){t.e.fire("generateAiAssistantForm.ai-assistant",n.name)}},r.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,i,n){t.e.fire("generateAiAssistantForm.ai-assistant")}}},32118:function(t,i,n){"use strict";n.d(i,{elementsMap:function(){return r}});let o=new WeakMap,r=t=>{let i=o.get(t);return i||(i={},o.set(t,i)),i}},32172:function(t,i){"use strict";i.default={"copy-format":"format kopii"}},32309:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(43649);n(37585),o.pluginSystem.add("mobile",function(t){let i=0,n=(0,r.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",n=>{if(n.changedTouches&&n.changedTouches.length){let o=new Date().getTime(),r=o-i;r>t.o.mobileTapTimeout&&(i=o,r<1.5*t.o.mobileTapTimeout&&t.s.insertCursorAtPoint(n.clientX,n.clientY))}}),t.e.on("getDiffButtons.mobile",i=>{if(i===t.toolbar){let i=(0,s.flatButtonsSet)((0,r.splitArray)(t.o.buttons),t),o=(0,s.flatButtonsSet)(n,t);return(0,r.toArray)(i).reduce((t,i)=>(o.has(i)||t.push(i),t),[])}}),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var i,o;if(!t.o.toolbar)return;let s=(null!=(i=t.container.parentElement)?i:t.container).offsetWidth,a=t.isFullSize||s>=t.o.sizeLG?(0,r.splitArray)(t.o.buttons):s>=t.o.sizeMD?(0,r.splitArray)(t.o.buttonsMD):s>=t.o.sizeSM?(0,r.splitArray)(t.o.buttonsSM):(0,r.splitArray)(t.o.buttonsXS);a.toString()!==n.toString()&&(n=a,t.e.fire("closeAllPopups"),null==(o=t.toolbar)||o.setRemoveButtons(t.o.removeButtons).build(n.concat(t.o.extraButtons)))}).on(t.ow,"load resize",()=>t.e.fire("recalcAdaptive"))})},32496:function(t,i,n){"use strict";n(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},32523:function(t,i,n){"use strict";n.d(i,{UiAiAssistant:function(){return d}});var o=n(87325),r=n(37133),s=n(2748),a=n(70799),l=n(67510),c=n(48538),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d=class t extends c.UIElement{className(){return"UIAiAssistant"}render(){return`<div>
|
|
163
163
|
<div class="&__container">
|
|
164
164
|
<div class="&__error"></div>
|
|
165
165
|
<div class="&__body"></div>
|
|
@@ -232,7 +232,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
232
232
|
<div class="&__empty-message">~There are no files~</div>
|
|
233
233
|
<div class='&__loader'></div>
|
|
234
234
|
<div class='&__drag-area'>~Drop image~</div>
|
|
235
|
-
</div>`}reconcile(t){let i=this.elements.findIndex((i,n)=>!t[n]||i.item.uniqueHashKey!==c.FileBrowserItem.create(t[n]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){d.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(n=>{let o=(0,a.position)(n.container);h.intersectRect(o,t)&&i.push(n.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),this.stateManager=i,this.syncMod=!0,this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],h.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],h.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],h.prototype,"onDragLeave",null),h=(0,r.__decorate)([s.component],h)},43809:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(29960),a=n(50911);n(99085);var l=n(26529);class c extends a.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,s.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(l)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],c.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",c)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return s}});var o=n(2748),r=n(26395);function s(t,i,n,s){let a="br"===n.toLowerCase(),{createInside:l}=i,c=l.element(n),u=l.element("br");return a||c.appendChild(u),s&&s.cssText&&c.setAttribute("style",s.cssText),o.Dom.after(t,c),o.Dom.before(a?c:u,t),(0,r.scrollIntoViewIfNeeded)(c,i.editor,i.ed),c}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),c=n(21496),u=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:w}=t.options;return w&&(0,c.size)(w)>0&&Object.keys(w).forEach(m=>{var g,_,C;let k=w[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(k)&&(0,c.size)(k),"Style must be an object"),Object.keys(k).forEach(a=>{let c=i.style.getPropertyValue((0,u.kebabCase)(a)),d=k[a];if(""!==c||null!=d){let u,m;if((u=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,(function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l})(n).appendChild(u),m=(0,h.css)(u,a),r.Dom.safeRemove(u),m===(0,l.normalizeCssValue)(a,d)){if(!c)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let S;_=v,(0,d.assert)((0,a.isString)(k),"Class name must be a string"),S=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(k.toString())?(_=f.UNSET,y||(i.classList.remove(k),0===i.classList.length&&((0,d.attr)(i,"class",null),S(_,i,"class",null)))):(_=f.CHANGE,y||(i.classList.add(k),S(_,i,"class",k))),v=_;break;default:let x;C=v,(0,d.assert)((0,a.isString)(k)||(0,a.isNumber)(k)||(0,a.isBoolean)(k)||null==k,"Attribute value must be a string or number or boolean or null"),x=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===k?(y||(0,d.attr)(i,m,null),C=f.UNSET,y||x(C,i,m,k)):(C=f.CHANGE,y||((0,d.attr)(i,m,k),x(C,i,m,k))),v=C}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},44328:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Sembol"}},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},44450:function(t,i,n){"use strict";function o(t,i,n){return t.dataProvider.fileRemove(t.state.currentPath,i,n).then(n=>{t.status(n||t.i18n('File "%s" was deleted',i),!0)}).catch(t.status)}n.d(i,{deleteFile:function(){return o}})},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},44526:function(t,i,n){"use strict";n.d(i,{resolveBlock:function(){return r}});var o=n(22732);function r(t,{selector:i,index:n,requireExactlyOne:s=!1}={}){let a=null!=i,l=null!=n;if(s&&a===l)throw Error("Either index or selector must be provided, but not both");if(!a&&!l)throw Error("Block identifier is required");if(a){if("string"!=typeof i)throw Error("Selector must be a string");let n=t.editor.querySelector(i);if(!n)throw Error(`No element found matching selector "${i}"`);if(!o.Dom.isElement(n))throw Error(`Selector "${i}" does not point to an element node`);return{element:n,identifier:`with selector "${i}"`}}if("number"!=typeof n)throw Error("Block index must be a number");let c=Array.from(t.editor.children);if(n<0||n>=c.length)throw Error(`Block index ${n} is out of range. Document has ${c.length} blocks`);let u=c[n];if(!o.Dom.isElement(u))throw Error(`Block at index ${n} is not a valid element`);return{element:u,identifier:"at index "+n}}},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},44730:function(t,i,n){"use strict";n.r(i),i.default={symbols:"caractère"}},44850:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Helyesírás-ellenőrzés"}},44864:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(53586);var s=n(83725),a=n(64199),l=n(82758),c=n(65478),u=n(2748),d=n(21537),h=n(50911),p=n(56917),f=n(2692);class m extends h.Plugin{get list(){return new s.Autocomplete(this.jodit)}get popup(){let t=new p.Popup(this.jodit);return t.setMod("padding",!1),t.setContent(this.list.container),this.jodit.e.on(t,"beforeClose",()=>{this.list.currentSelection=0}),t}afterInit(t){t.e.on("select.autocomplete",i=>{let n=i.value;(0,d.isFunction)(i.insertValueRenderer)&&(n=i.insertValueRenderer(i)),u.Dom.isNode(n)||(n=t.createInside.fromHTML(n)),(0,a.replaceTextLeftOfCursorAfterSpace)(t.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(t){this.sources.push(t)}unregisterAutocompleteSource(t){let i=this.sources.indexOf(t);-1!==i&&this.sources.splice(i,1)}static isControlKey(t){return t===l.KEY_DOWN||t===l.KEY_UP||t===l.KEY_ENTER||t===l.KEY_TAB}async onKeyDown(t){if(t.key===l.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:i}=this.j;if(m.isControlKey(t.key)||!i.isInsideArea||!i.isCollapsed)return;let n=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,o=n&&(0,a.getTextLeftOfCursor)(n).split(" ").pop();if(o&&(0,d.trim)(o).length){let t=await this.onAutoComplete(o);if(t.length)return this.openPopup(t)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(t){if(this.popup.isOpened&&m.isControlKey(t.key)){switch(t.key){case l.KEY_DOWN:this.list.selectNext();break;case l.KEY_UP:this.list.selectPrevious();break;case l.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(t.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(t){let i=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async n=>{i.push(...await this.resolveFeed(t,n))})),i}async resolveFeed(t,i,n){let o;if((0,d.isPromise)(i)&&(i=await i),(0,d.isFunction)(i))o=await i(t);else if((0,d.isArray)(i)){let n=i,{isMatchedQuery:r}=this.j.o.autocomplete;o=n.filter(i=>(0,d.isString)(i)?r(t,i):r(t,i.value)).map(t=>(0,d.isString)(t)?{title:t,value:t}:t)}else o=await this.resolveFeed(t,i.feed,i);if(this.j.isDestructed)return[];if(o&&(0,d.isArray)(o)){let{itemRenderer:t,insertValueRenderer:i,maxItems:r}=this.j.o.autocomplete;return(o=o.map(o=>({itemRenderer:n?.itemRenderer??t,insertValueRenderer:n?.insertValueRenderer??i,...o}))).slice(0,r)}return[]}openPopup(t){this.list.build(t),this.popup.open(()=>{let{j:t}=this,i=t.s.range.getBoundingClientRect(),n={left:i.left,top:i.top,height:i.height,width:i.width};if(t.o.iframe&&t.iframe){let i=(0,d.position)(t.iframe,t);n.top+=i.top,n.left+=i.left}return n})}beforeDestruct(t){t.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!f.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(m,"requires",["enter","license"]),(0,r.__decorate)([c.cache],m.prototype,"list",null),(0,r.__decorate)([c.cache],m.prototype,"popup",null),(0,r.__decorate)([c.autobind],m.prototype,"registerAutocompleteSource",null),(0,r.__decorate)([c.autobind],m.prototype,"unregisterAutocompleteSource",null),(0,r.__decorate)([(0,c.debounce)()],m.prototype,"onKeyDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onKeyControlDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onEnter",null),(0,r.__decorate)([c.autobind],m.prototype,"onAutoComplete",null),(0,r.__decorate)([c.autobind],m.prototype,"resolveFeed",null),f.JoditPro.plugins.add("autocomplete",m)},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i))i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),u=n(38837),d=n(67510),h=n(41409);class p extends d.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){t.key===a.KEY_ESC&&this.popup?.close()}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new d.Popup(t);this.popup=n,this.trigger=(0,d.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,u.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{this.state.onChange?.(this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},45198:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return a.a},de:function(){return c.a},es:function(){return d.a},fa:function(){return p.a},fr:function(){return m.a},he:function(){return b.a},hu:function(){return y.a},id:function(){return _.a},it:function(){return k.a},ja:function(){return x.a},ko:function(){return E.a},nl:function(){return A.a},pl:function(){return L.a},pt_br:function(){return P.a},ru:function(){return M.a},tr:function(){return B.a},zh_cn:function(){return F.a},zh_tw:function(){return H.a}});var o=n(7085),r=n.n(o),s=n(42350),a=n.n(s),l=n(53189),c=n.n(l),u=n(48154),d=n.n(u),h=n(59551),p=n.n(h),f=n(41858),m=n.n(f),g=n(78777),b=n.n(g),v=n(25321),y=n.n(v),w=n(27847),_=n.n(w),C=n(23287),k=n.n(C),S=n(73035),x=n.n(S),I=n(97028),E=n.n(I),T=n(26436),A=n.n(T),j=n(6602),L=n.n(j),D=n(86401),P=n.n(D),R=n(54023),M=n.n(R),z=n(8432),B=n.n(z),N=n(58366),F=n.n(N),O=n(46954),H=n.n(O)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},sanitizeAttributes:function(){return c.sanitizeAttributes},tryRemoveNode:function(){return u.tryRemoveNode}});var o=n(82558),r=n(39433),s=n(53392),a=n(25813),l=n(80973),c=n(384),u=n(28800)},45575:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45632:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(82158);var s=n(82520),a=n(35987),l=n(65478),c=n(2748),u=n(50911),d=n(62843),h=n(78584),p=n(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",()=>this.__dialog?.isOpened)}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new a.UIButtonGenerator(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!c.Dom.isTag(t,new Set(["button","a"]))&&(t=void 0);let i=this.__ui,n=this.__dialog;n.isOpened?n.close():(t&&s.UIGButton.extractStyle(i.state,t),i.target=t,i.update(),n.setFooter([(0,d.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,d.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{t||(t=this.j.createInside.element(i.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),s.UIGButton.applyStyle(i.state,t),t.className=i.state.className||"",this.jodit.e.fire("synchro"),n.close()})]).open())}onDblClick(t){c.Dom.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){this.__dialog?.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"form",name:"buttonGenerator"}]),(0,o._)(this,"__dialog",void 0),(0,o._)(this,"__ui",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([l.autobind],f.prototype,"toggleButtonGenerator",null),(0,r.__decorate)([(0,l.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("button-generator",f)},45927:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(84767),a=n(41180),l=n(20356);n(80792);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends l.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.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:t}=this;if(t.o.inline)return;let{height:i}=t.o;if(t.o.saveHeightInStorage&&"auto"!==i){let n=t.storage.get("height");n&&(i=n)}(0,a.css)(t.editor,{minHeight:"100%"}),(0,a.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(i),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minHeight:i,maxHeight:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&n<t&&(t=n)}(0,a.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__setWidth(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minWidth:i,maxWidth:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&t>n&&(t=n)}(0,a.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__getNotWorkHeight(){var t,i;return((null==(t=this.j.toolbarContainer)?void 0:t.offsetHeight)||0)+((null==(i=this.j.statusbar)?void 0:i.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:i}=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 n=((0,a.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,s.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,a.css)(t,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,s.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(i=>{i&&(0,a.css)(i,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,a.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,s.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:r}=this.j.container;(t!==o||i!==r)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}c([(0,o.throttle)()],u.prototype,"__initialize",null),c([o.autobind],u.prototype,"__setHeight",null),c([o.autobind],u.prototype,"__setWidth",null),c([o.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=c(n(0)),l=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function w(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function _(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var C=function(){function t(i,n){if(u(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=w(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=w(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=w(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=w(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=w(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=_(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=_(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var w=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=w[0],this.G=w[1],this.B=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var _=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=_[0],this.G=_[1],this.B=_[2];var C=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var k=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var S=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=S[0],this.S=S[1],this.L=S[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],c=o[2],u=r(this.slBarHelper.findColor(a,l,c),2),d=u[0],h=u[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),k=function(){function t(i){u(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function S(t,i){var n=new C(t,i),o={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,l={},c={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var u=r(e,3),d=u[0],h=u[1],p=u[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],w=v[1],_=v[2],S=[(0,s.limit)(y,0,360),(0,s.limit)(w,0,100),(0,s.limit)(_,0,100)];y=S[0],w=S[1],_=S[2],n.onValueChanged(b,[y,w,_,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var x=r(e,4),I=x[0],E=x[1],T=x[2],A=x[3],j=[(0,s.limit)(I,0,255),(0,s.limit)(E,0,255),(0,s.limit)(T,0,255),(0,s.limit)(A,0,1)];I=j[0],E=j[1],T=j[2],A=j[3],n.onValueChanged(g,[I,E,T,A])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var L=r(e,4),D=L[0],P=L[1],R=L[2],M=L[3],z=[(0,s.limit)(D,0,360),(0,s.limit)(P,0,100),(0,s.limit)(R,0,100),(0,s.limit)(M,0,1)];D=z[0],P=z[1],R=z[2],M=z[3],n.onValueChanged(b,[D,P,R,M])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var B=[n.R,n.G,n.B,n.A],N=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,B);(l=(0,s.parseColor)(B,l)).toString=function(){return N},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([c].concat(i),c)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([c].concat(i),c)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([c].concat(i),c)},n.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=n(5).toString(),I=document.createElement("style");I.setAttribute("type","text/css"),I.setAttribute("data-source","a-color-picker"),I.innerHTML=x,document.querySelector("head").appendChild(I)}i.createPicker=S,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=S(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function u(t,i){return null==t?i:t}function d(t,i,n){var o=[c(t,0,255),c(i,0,255),c(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[c(t,0,360)/360,c(i,0,100)/100,c(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},u=n<.5?n*(1+i):n+i-n*i,d=2*n-u;o=l(d,u,t+1/3),r=l(d,u,t),s=l(d,u,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,u=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=u>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*u].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],c=n[7],u=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],c=n[6],u=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,255),c(s,0,255),c(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(u(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function w(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,360),c(s,0,100),c(a,0,100)]:void 0}}function _(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(u(t[3],1),0,1)];var i=_(t);return i&&3===i.length&&i.push(1),i}function k(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,u=s-a;if(r=0===s?0:u/s,s==a)l=0;else{switch(s){case t:l=(i-n)/u+6*(i<n);break;case i:l=(n-t)/u+2;break;case n:l=(t-i)/u+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=w,i.cssHslaToHsla=_,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:w(t)},i.parseColorToHsla=C,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=C(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=k(n,i),t},i||{}):k(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=c,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=u},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,`/*!
|
|
235
|
+
</div>`}reconcile(t){let i=this.elements.findIndex((i,n)=>!t[n]||i.item.uniqueHashKey!==c.FileBrowserItem.create(t[n]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){d.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(n=>{let o=(0,a.position)(n.container);h.intersectRect(o,t)&&i.push(n.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),this.stateManager=i,this.syncMod=!0,this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],h.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],h.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],h.prototype,"onDragLeave",null),h=(0,r.__decorate)([s.component],h)},43809:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(29960),a=n(50911);n(99085);var l=n(26529);class c extends a.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,s.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(l)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],c.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",c)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return s}});var o=n(2748),r=n(26395);function s(t,i,n,s){let a="br"===n.toLowerCase(),{createInside:l}=i,c=l.element(n),u=l.element("br");return a||c.appendChild(u),s&&s.cssText&&c.setAttribute("style",s.cssText),o.Dom.after(t,c),o.Dom.before(a?c:u,t),(0,r.scrollIntoViewIfNeeded)(c,i.editor,i.ed),c}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),c=n(21496),u=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:w}=t.options;return w&&(0,c.size)(w)>0&&Object.keys(w).forEach(m=>{var g,_,C;let k=w[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(k)&&(0,c.size)(k),"Style must be an object"),Object.keys(k).forEach(a=>{let c=i.style.getPropertyValue((0,u.kebabCase)(a)),d=k[a];if(""!==c||null!=d){let u,m;if((u=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,(function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l})(n).appendChild(u),m=(0,h.css)(u,a),r.Dom.safeRemove(u),m===(0,l.normalizeCssValue)(a,d)){if(!c)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let S;_=v,(0,d.assert)((0,a.isString)(k),"Class name must be a string"),S=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(k.toString())?(_=f.UNSET,y||(i.classList.remove(k),0===i.classList.length&&((0,d.attr)(i,"class",null),S(_,i,"class",null)))):(_=f.CHANGE,y||(i.classList.add(k),S(_,i,"class",k))),v=_;break;default:let x;C=v,(0,d.assert)((0,a.isString)(k)||(0,a.isNumber)(k)||(0,a.isBoolean)(k)||null==k,"Attribute value must be a string or number or boolean or null"),x=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===k?(y||(0,d.attr)(i,m,null),C=f.UNSET,y||x(C,i,m,k)):(C=f.CHANGE,y||((0,d.attr)(i,m,k),x(C,i,m,k))),v=C}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},44328:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Sembol"}},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},44450:function(t,i,n){"use strict";function o(t,i,n){return t.dataProvider.fileRemove(t.state.currentPath,i,n).then(n=>{t.status(n||t.i18n('File "%s" was deleted',i),!0)}).catch(t.status)}n.d(i,{deleteFile:function(){return o}})},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},44526:function(t,i,n){"use strict";n.d(i,{resolveBlock:function(){return r}});var o=n(22732);function r(t,{selector:i,index:n,requireExactlyOne:s=!1}={}){let a=null!=i,l=null!=n;if(s&&a===l)throw Error("Either index or selector must be provided, but not both");if(!a&&!l)throw Error("Block identifier is required");if(a){if("string"!=typeof i)throw Error("Selector must be a string");let n=t.editor.querySelector(i);if(!n)throw Error(`No element found matching selector "${i}"`);if(!o.Dom.isElement(n))throw Error(`Selector "${i}" does not point to an element node`);return{element:n,identifier:`with selector "${i}"`}}if("number"!=typeof n)throw Error("Block index must be a number");let c=Array.from(t.editor.children);if(n<0||n>=c.length)throw Error(`Block index ${n} is out of range. Document has ${c.length} blocks`);let u=c[n];if(!o.Dom.isElement(u))throw Error(`Block at index ${n} is not a valid element`);return{element:u,identifier:"at index "+n}}},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},44730:function(t,i,n){"use strict";n.r(i),i.default={symbols:"caractère"}},44850:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Helyesírás-ellenőrzés"}},44864:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(53586);var s=n(83725),a=n(64199),l=n(82758),c=n(65478),u=n(2748),d=n(21537),h=n(50911),p=n(56917),f=n(2692);class m extends h.Plugin{get list(){return new s.Autocomplete(this.jodit)}get popup(){let t=new p.Popup(this.jodit);return t.setMod("padding",!1),t.setContent(this.list.container),this.jodit.e.on(t,"beforeClose",()=>{this.list.currentSelection=0}),t}afterInit(t){t.e.on("select.autocomplete",i=>{let n=i.value;(0,d.isFunction)(i.insertValueRenderer)&&(n=i.insertValueRenderer(i)),u.Dom.isNode(n)||(n=t.createInside.fromHTML(n)),(0,a.replaceTextLeftOfCursorAfterSpace)(t.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(t){this.sources.push(t)}unregisterAutocompleteSource(t){let i=this.sources.indexOf(t);-1!==i&&this.sources.splice(i,1)}static isControlKey(t){return t===l.KEY_DOWN||t===l.KEY_UP||t===l.KEY_ENTER||t===l.KEY_TAB}async onKeyDown(t){if(t.key===l.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:i}=this.j;if(m.isControlKey(t.key)||!i.isInsideArea||!i.isCollapsed)return;let n=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,o=n&&(0,a.getTextLeftOfCursor)(n).split(" ").pop();if(o&&(0,d.trim)(o).length){let t=await this.onAutoComplete(o);if(t.length)return this.openPopup(t)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(t){if(this.popup.isOpened&&m.isControlKey(t.key)){switch(t.key){case l.KEY_DOWN:this.list.selectNext();break;case l.KEY_UP:this.list.selectPrevious();break;case l.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(t.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(t){let i=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async n=>{i.push(...await this.resolveFeed(t,n))})),i}async resolveFeed(t,i,n){let o;if((0,d.isPromise)(i)&&(i=await i),(0,d.isFunction)(i))o=await i(t);else if((0,d.isArray)(i)){let n=i,{isMatchedQuery:r}=this.j.o.autocomplete;o=n.filter(i=>(0,d.isString)(i)?r(t,i):r(t,i.value)).map(t=>(0,d.isString)(t)?{title:t,value:t}:t)}else o=await this.resolveFeed(t,i.feed,i);if(this.j.isDestructed)return[];if(o&&(0,d.isArray)(o)){let{itemRenderer:t,insertValueRenderer:i,maxItems:r}=this.j.o.autocomplete;return(o=o.map(o=>({itemRenderer:n?.itemRenderer??t,insertValueRenderer:n?.insertValueRenderer??i,...o}))).slice(0,r)}return[]}openPopup(t){this.list.build(t),this.popup.open(()=>{let{j:t}=this,i=t.s.range.getBoundingClientRect(),n={left:i.left,top:i.top,height:i.height,width:i.width};if(t.o.iframe&&t.iframe){let i=(0,d.position)(t.iframe,t);n.top+=i.top,n.left+=i.left}return n})}beforeDestruct(t){t.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!f.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(m,"requires",["enter","license"]),(0,r.__decorate)([c.cache],m.prototype,"list",null),(0,r.__decorate)([c.cache],m.prototype,"popup",null),(0,r.__decorate)([c.autobind],m.prototype,"registerAutocompleteSource",null),(0,r.__decorate)([c.autobind],m.prototype,"unregisterAutocompleteSource",null),(0,r.__decorate)([(0,c.debounce)()],m.prototype,"onKeyDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onKeyControlDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onEnter",null),(0,r.__decorate)([c.autobind],m.prototype,"onAutoComplete",null),(0,r.__decorate)([c.autobind],m.prototype,"resolveFeed",null),f.JoditPro.plugins.add("autocomplete",m)},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i))i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),u=n(38837),d=n(67510),h=n(41409);class p extends d.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){t.key===a.KEY_ESC&&this.popup?.close()}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new d.Popup(t);this.popup=n,this.trigger=(0,d.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,u.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{this.state.onChange?.(this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},45198:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return a.a},de:function(){return c.a},es:function(){return d.a},fa:function(){return p.a},fr:function(){return m.a},he:function(){return b.a},hu:function(){return y.a},id:function(){return _.a},it:function(){return k.a},ja:function(){return x.a},ko:function(){return E.a},nl:function(){return A.a},pl:function(){return L.a},pt_br:function(){return P.a},ru:function(){return M.a},tr:function(){return B.a},zh_cn:function(){return O.a},zh_tw:function(){return H.a}});var o=n(7085),r=n.n(o),s=n(42350),a=n.n(s),l=n(53189),c=n.n(l),u=n(48154),d=n.n(u),h=n(59551),p=n.n(h),f=n(41858),m=n.n(f),g=n(78777),b=n.n(g),v=n(25321),y=n.n(v),w=n(27847),_=n.n(w),C=n(23287),k=n.n(C),S=n(73035),x=n.n(S),I=n(97028),E=n.n(I),T=n(26436),A=n.n(T),j=n(6602),L=n.n(j),D=n(86401),P=n.n(D),R=n(54023),M=n.n(R),z=n(8432),B=n.n(z),N=n(58366),O=n.n(N),F=n(46954),H=n.n(F)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},sanitizeAttributes:function(){return c.sanitizeAttributes},tryRemoveNode:function(){return u.tryRemoveNode}});var o=n(82558),r=n(39433),s=n(53392),a=n(25813),l=n(80973),c=n(384),u=n(28800)},45575:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45632:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(82158);var s=n(82520),a=n(35987),l=n(65478),c=n(2748),u=n(50911),d=n(62843),h=n(78584),p=n(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",()=>this.__dialog?.isOpened)}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new a.UIButtonGenerator(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!c.Dom.isTag(t,new Set(["button","a"]))&&(t=void 0);let i=this.__ui,n=this.__dialog;n.isOpened?n.close():(t&&s.UIGButton.extractStyle(i.state,t),i.target=t,i.update(),n.setFooter([(0,d.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,d.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{t||(t=this.j.createInside.element(i.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),s.UIGButton.applyStyle(i.state,t),t.className=i.state.className||"",this.jodit.e.fire("synchro"),n.close()})]).open())}onDblClick(t){c.Dom.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){this.__dialog?.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"form",name:"buttonGenerator"}]),(0,o._)(this,"__dialog",void 0),(0,o._)(this,"__ui",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([l.autobind],f.prototype,"toggleButtonGenerator",null),(0,r.__decorate)([(0,l.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("button-generator",f)},45927:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(84767),a=n(41180),l=n(20356);n(80792);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends l.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.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:t}=this;if(t.o.inline)return;let{height:i}=t.o;if(t.o.saveHeightInStorage&&"auto"!==i){let n=t.storage.get("height");n&&(i=n)}(0,a.css)(t.editor,{minHeight:"100%"}),(0,a.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(i),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minHeight:i,maxHeight:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&n<t&&(t=n)}(0,a.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__setWidth(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minWidth:i,maxWidth:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&t>n&&(t=n)}(0,a.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__getNotWorkHeight(){var t,i;return((null==(t=this.j.toolbarContainer)?void 0:t.offsetHeight)||0)+((null==(i=this.j.statusbar)?void 0:i.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:i}=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 n=((0,a.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,s.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,a.css)(t,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,s.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(i=>{i&&(0,a.css)(i,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,a.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,s.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:r}=this.j.container;(t!==o||i!==r)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}c([(0,o.throttle)()],u.prototype,"__initialize",null),c([o.autobind],u.prototype,"__setHeight",null),c([o.autobind],u.prototype,"__setWidth",null),c([o.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=c(n(0)),l=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function w(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function _(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var C=function(){function t(i,n){if(u(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=w(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=w(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=w(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=w(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=w(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=_(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=_(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var w=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=w[0],this.G=w[1],this.B=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var _=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=_[0],this.G=_[1],this.B=_[2];var C=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var k=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var S=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=S[0],this.S=S[1],this.L=S[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],c=o[2],u=r(this.slBarHelper.findColor(a,l,c),2),d=u[0],h=u[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),k=function(){function t(i){u(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function S(t,i){var n=new C(t,i),o={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,l={},c={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var u=r(e,3),d=u[0],h=u[1],p=u[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],w=v[1],_=v[2],S=[(0,s.limit)(y,0,360),(0,s.limit)(w,0,100),(0,s.limit)(_,0,100)];y=S[0],w=S[1],_=S[2],n.onValueChanged(b,[y,w,_,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var x=r(e,4),I=x[0],E=x[1],T=x[2],A=x[3],j=[(0,s.limit)(I,0,255),(0,s.limit)(E,0,255),(0,s.limit)(T,0,255),(0,s.limit)(A,0,1)];I=j[0],E=j[1],T=j[2],A=j[3],n.onValueChanged(g,[I,E,T,A])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var L=r(e,4),D=L[0],P=L[1],R=L[2],M=L[3],z=[(0,s.limit)(D,0,360),(0,s.limit)(P,0,100),(0,s.limit)(R,0,100),(0,s.limit)(M,0,1)];D=z[0],P=z[1],R=z[2],M=z[3],n.onValueChanged(b,[D,P,R,M])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var B=[n.R,n.G,n.B,n.A],N=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,B);(l=(0,s.parseColor)(B,l)).toString=function(){return N},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([c].concat(i),c)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([c].concat(i),c)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([c].concat(i),c)},n.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=n(5).toString(),I=document.createElement("style");I.setAttribute("type","text/css"),I.setAttribute("data-source","a-color-picker"),I.innerHTML=x,document.querySelector("head").appendChild(I)}i.createPicker=S,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=S(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function u(t,i){return null==t?i:t}function d(t,i,n){var o=[c(t,0,255),c(i,0,255),c(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[c(t,0,360)/360,c(i,0,100)/100,c(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},u=n<.5?n*(1+i):n+i-n*i,d=2*n-u;o=l(d,u,t+1/3),r=l(d,u,t),s=l(d,u,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,u=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=u>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*u].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],c=n[7],u=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],c=n[6],u=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,255),c(s,0,255),c(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(u(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function w(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,360),c(s,0,100),c(a,0,100)]:void 0}}function _(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(u(t[3],1),0,1)];var i=_(t);return i&&3===i.length&&i.push(1),i}function k(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,u=s-a;if(r=0===s?0:u/s,s==a)l=0;else{switch(s){case t:l=(i-n)/u+6*(i<n);break;case i:l=(n-t)/u+2;break;case n:l=(t-i)/u+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=w,i.cssHslaToHsla=_,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:w(t)},i.parseColorToHsla=C,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=C(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=k(n,i),t},i||{}):k(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=c,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=u},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,`/*!
|
|
236
236
|
* a-color-picker
|
|
237
237
|
* https://github.com/narsenico/a-color-picker
|
|
238
238
|
*
|
|
@@ -491,7 +491,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
491
491
|
<div class='&__preview'></div>
|
|
492
492
|
<div class='&__loader'></div>
|
|
493
493
|
<div class='&__next'>*angle-right*</div>
|
|
494
|
-
</div>`}async onChangeCurrent(){let{current:t}=this;this.setMod("loading",!0);let i=this.getElm("preview");if((0,c.assert)(null!=i,"preview element does not exist"),u.Dom.detach(i),(0,l.css)(i,{backgroundImage:null}),t.isImage){let n=await (0,l.loadImage)(t.fileURL,this.j);this.dialog.setPosition(),(0,l.css)(i,{width:Math.min(this.jodit.ow.innerWidth,n.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,n.naturalHeight),backgroundImage:`url(${n.src})`})}else{let n=await this.makeIframe(t.fileURL);i.appendChild(n)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(t){let i=this.j.c.element("iframe");return i.classList.add(this.getFullElName("office-iframe")),i.src=/\.pdf/.test(t)?t:this.j.o.previewOfficeURL+encodeURIComponent(t),i}onPreviousClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i<=0?i=this.elements.length-1:i-=1,this.current=this.elements[i]}onNextClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i>=this.elements.length-1?i=0:i+=1,this.current=this.elements[i]}static open(t,i,n){return new d(t,i,n)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(t){if(t.key===s.KEY_LEFT||t.key===s.KEY_RIGHT||t.key===s.KEY_SPACE)return t.key===s.KEY_LEFT?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}constructor(t,i,n){super(t),(0,o._)(this,"current",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"dialog",void 0),this.current=i,this.elements=n,this.dialog=new u.Dialog;const{dialog:r}=this;r.setMod("theme",t.state.theme).toolbar.setMod("mode","header"),r.open(this),this.elements=this.elements.filter(t=>t.isImage),r.e.on(r,"afterClose",()=>{this.destruct()}),this.addGlobalListeners(),this.onChangeCurrent(),r.toolbar.build([{icon:"check",exec:()=>{t.stateManager.addActive(this.current,!1),t.e.fire("select.filebrowser"),r.close()}},"dialog.close"])}}(0,r.__decorate)([(0,a.watch)("current")],d.prototype,"onChangeCurrent",null),(0,r.__decorate)([(0,a.watch)("previous:click")],d.prototype,"onPreviousClick",null),(0,r.__decorate)([(0,a.watch)("next:click")],d.prototype,"onNextClick",null),(0,r.__decorate)([a.autobind],d.prototype,"onKeyPress",null),d=(0,r.__decorate)([a.component],d)},69398:function(t,i,n){"use strict";n.d(i,{UIPolylineEditor:function(){return c}});var o=n(31635),r=n(65478),s=n(80256),a=n(45128),l=n(14002);class c extends l.UIBaseEditor{className(){return"UIPolylineEditor"}onReady(){super.onReady(),this.append([new s.UIInput(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new a.ColorInput(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}}(0,o.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,o.__decorate)([r.component],c)},69625:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Висота лінії"}},69874:function(t,i,n){"use strict";n.r(i),i.default={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},69994:function(t,i,n){"use strict";n.d(i,{removeInsideComment:function(){return s}});var o=n(99658);let r=0;function s(t){return(t.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,o.html)(t))&&(r++,t.remove()),t.isComment&&r>0&&(0,o.html)(t).includes("[endif]")&&(r=r>0?r-1:0,t.remove()),r&&(t.isText||"img"===t.name&&(!t.attributes.src||/^file:/.test(t.attributes.src))))?(t.remove(),null):t}},70022:function(t,i,n){"use strict";n.d(i,{createSourceEditor:function(){return s}});var o=n(21537),r=n(52968);function s(t,i,n,s,a){let l;if((0,o.isFunction)(t))l=t(i);else switch(t){case"ace":if(!i.o.shadowRoot){l=new r.AceEditor(i,n,s,a);break}default:l=new r.TextAreaEditor(i,n,s,a)}return l.init(i),l.onReadyAlways(()=>{l.setReadOnly(i.o.readonly)}),l}},70045:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(43555);n(54389);var l=n(302);let c=(t,i,n,o)=>{if(!i||t.has(i))return;let r=(0,l.getKey)(n.o.direction,i);t.add(i);let s=i.style[r]?parseInt(i.style[r],10):0;s+=n.o.indentMargin*("outdent"===o?-1:1),i.style[r]=s>0?s+"px":"",(0,a.attr)(i,"style")||(0,a.attr)(i,"style",null)};s.pluginSystem.add("indent",function(t){t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let i=i=>{let n=new Set,{enter:s,enterBlock:l}=t.o,u=s.toLowerCase()===o.BR,d=t.s.current();return u&&t.s.isCollapsed()&&d?c(n,r.Dom.wrapNextInline(d,l,t),t,i):(t.s.eachSelection(o=>{t.s.save();let d=!!o&&r.Dom.up(o,r.Dom.isBlock,t.editor);if(!d&&o&&(d=(0,a.call)(u?r.Dom.wrapNextInline:r.Dom.wrapInline,o,u?l:s.toLowerCase(),t)),!d)return t.s.restore(),!1;c(n,d,t,i),t.s.restore()}),t.synchronizeValues()),!1};t.registerCommand("indent",{exec:i,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:i,hotkeys:["ctrl+[","cmd+["]})})},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}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 t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<=n;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},70190:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ارتفاع خط"}},70231:function(t,i,n){"use strict";n.d(i,{Dlgs:function(){return l}});var o=n(580),r=n(27613),s=n(37790),a=n(638);class l{dlg(t){let i=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),n=new a.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,s.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(t,i,n){return t=c(t,this),i=c(i,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,i,n)}prompt(t,i,n,o,r){return t=c(t,this),i=c(i,this),o=c(o,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o,r)}alert(t,i,n,o){return t=c(t,this),i=c(i,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o)}}function c(t,i){return(0,r.isString)(t)&&!(0,r.isHTML)(t)&&(t=i.i18n(t)),t}},70308:function(t,i,n){"use strict";n.d(i,{areAllToolCallsExecuted:function(){return a},createNewConversation:function(){return r},findParentMessageId:function(){return s}});var o=n(21064);function r(t,i,n,s=[]){let a=t.o.aiAssistantPro,l={id:(0,o.generateConversationId)(),created:Date.now(),updated:Date.now(),messages:s,permissions:[],options:{model:i??a.defaultModel,temperature:n??a.defaultTemperature}};return t.e.fire("conversationCreated.ai-assistant-pro",l),l}function s(t){for(let i=t.messages.length-1;i>=0;i--){let n=t.messages[i];if("assistant"===n.role&&!n.id.startsWith("error_"))return n.id}return null}function a(t){let i=t.messages[t.messages.length-1];return!!i?.toolCalls&&i.toolCalls.every(t=>"executed"===t.status||"denied"===t.status||"error"===t.status)}},70722:function(t,i,n){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===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(t+""))}n.d(i,{isNativeFunction:function(){return o}})},70750:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceSelection",r="Replace the current selection with new HTML content",s=[{name:"html",type:"string",description:"HTML content to insert in place of the selection",required:!0},{name:"collapseToEnd",type:"boolean",description:"Move cursor to the end of the inserted content",required:!1,default:!0}],a=!0},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},70824:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Verificação ortográfica"}},70945:function(t,i,n){"use strict";n.r(i),i.default={symbols:"תו מיוחד"}},70950:function(t,i,n){"use strict";n.d(i,{UISidebar:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(41180),c=n(62405),u=n(54747);class d extends c.UIGroup{className(){return"UISidebar"}render(){return`<div>
|
|
494
|
+
</div>`}async onChangeCurrent(){let{current:t}=this;this.setMod("loading",!0);let i=this.getElm("preview");if((0,c.assert)(null!=i,"preview element does not exist"),u.Dom.detach(i),(0,l.css)(i,{backgroundImage:null}),t.isImage){let n=await (0,l.loadImage)(t.fileURL,this.j);this.dialog.setPosition(),(0,l.css)(i,{width:Math.min(this.jodit.ow.innerWidth,n.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,n.naturalHeight),backgroundImage:`url(${n.src})`})}else{let n=await this.makeIframe(t.fileURL);i.appendChild(n)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(t){let i=this.j.c.element("iframe");return i.classList.add(this.getFullElName("office-iframe")),i.src=/\.pdf/.test(t)?t:this.j.o.previewOfficeURL+encodeURIComponent(t),i}onPreviousClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i<=0?i=this.elements.length-1:i-=1,this.current=this.elements[i]}onNextClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i>=this.elements.length-1?i=0:i+=1,this.current=this.elements[i]}static open(t,i,n){return new d(t,i,n)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(t){if(t.key===s.KEY_LEFT||t.key===s.KEY_RIGHT||t.key===s.KEY_SPACE)return t.key===s.KEY_LEFT?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}constructor(t,i,n){super(t),(0,o._)(this,"current",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"dialog",void 0),this.current=i,this.elements=n,this.dialog=new u.Dialog;const{dialog:r}=this;r.setMod("theme",t.state.theme).toolbar.setMod("mode","header"),r.open(this),this.elements=this.elements.filter(t=>t.isImage),r.e.on(r,"afterClose",()=>{this.destruct()}),this.addGlobalListeners(),this.onChangeCurrent(),r.toolbar.build([{icon:"check",exec:()=>{t.stateManager.addActive(this.current,!1),t.e.fire("select.filebrowser"),r.close()}},"dialog.close"])}}(0,r.__decorate)([(0,a.watch)("current")],d.prototype,"onChangeCurrent",null),(0,r.__decorate)([(0,a.watch)("previous:click")],d.prototype,"onPreviousClick",null),(0,r.__decorate)([(0,a.watch)("next:click")],d.prototype,"onNextClick",null),(0,r.__decorate)([a.autobind],d.prototype,"onKeyPress",null),d=(0,r.__decorate)([a.component],d)},69341:function(t,i,n){"use strict";n.d(i,{detectActiveStyle:function(){return a}});var o=n(82758),r=n(2748);function s(t,i){return t.nodeName.toLowerCase()===i.element&&i.classes.every(i=>t.classList.contains(i))}function a(t,i){let n=t.s.current();if(!n)return null;for(let a of i)if(o.IS_BLOCK.test(a.element)){let i=r.Dom.closest(n,r.Dom.isBlock,t.editor);if(i&&s(i,a))return a}else{let i=r.Dom.isElement(n)?n:n.parentNode;for(;i&&i!==t.editor;){if(r.Dom.isElement(i)&&s(i,a))return a;i=i.parentNode}}return null}},69398:function(t,i,n){"use strict";n.d(i,{UIPolylineEditor:function(){return c}});var o=n(31635),r=n(65478),s=n(80256),a=n(45128),l=n(14002);class c extends l.UIBaseEditor{className(){return"UIPolylineEditor"}onReady(){super.onReady(),this.append([new s.UIInput(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new a.ColorInput(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}}(0,o.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,o.__decorate)([r.component],c)},69625:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Висота лінії"}},69874:function(t,i,n){"use strict";n.r(i),i.default={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},69994:function(t,i,n){"use strict";n.d(i,{removeInsideComment:function(){return s}});var o=n(99658);let r=0;function s(t){return(t.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,o.html)(t))&&(r++,t.remove()),t.isComment&&r>0&&(0,o.html)(t).includes("[endif]")&&(r=r>0?r-1:0,t.remove()),r&&(t.isText||"img"===t.name&&(!t.attributes.src||/^file:/.test(t.attributes.src))))?(t.remove(),null):t}},70022:function(t,i,n){"use strict";n.d(i,{createSourceEditor:function(){return s}});var o=n(21537),r=n(52968);function s(t,i,n,s,a){let l;if((0,o.isFunction)(t))l=t(i);else switch(t){case"ace":if(!i.o.shadowRoot){l=new r.AceEditor(i,n,s,a);break}default:l=new r.TextAreaEditor(i,n,s,a)}return l.init(i),l.onReadyAlways(()=>{l.setReadOnly(i.o.readonly)}),l}},70045:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(43555);n(54389);var l=n(302);let c=(t,i,n,o)=>{if(!i||t.has(i))return;let r=(0,l.getKey)(n.o.direction,i);t.add(i);let s=i.style[r]?parseInt(i.style[r],10):0;s+=n.o.indentMargin*("outdent"===o?-1:1),i.style[r]=s>0?s+"px":"",(0,a.attr)(i,"style")||(0,a.attr)(i,"style",null)};s.pluginSystem.add("indent",function(t){t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let i=i=>{let n=new Set,{enter:s,enterBlock:l}=t.o,u=s.toLowerCase()===o.BR,d=t.s.current();return u&&t.s.isCollapsed()&&d?c(n,r.Dom.wrapNextInline(d,l,t),t,i):(t.s.eachSelection(o=>{t.s.save();let d=!!o&&r.Dom.up(o,r.Dom.isBlock,t.editor);if(!d&&o&&(d=(0,a.call)(u?r.Dom.wrapNextInline:r.Dom.wrapInline,o,u?l:s.toLowerCase(),t)),!d)return t.s.restore(),!1;c(n,d,t,i),t.s.restore()}),t.synchronizeValues()),!1};t.registerCommand("indent",{exec:i,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:i,hotkeys:["ctrl+[","cmd+["]})})},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}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 t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<=n;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},70190:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ارتفاع خط"}},70231:function(t,i,n){"use strict";n.d(i,{Dlgs:function(){return l}});var o=n(580),r=n(27613),s=n(37790),a=n(638);class l{dlg(t){let i=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),n=new a.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,s.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(t,i,n){return t=c(t,this),i=c(i,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,i,n)}prompt(t,i,n,o,r){return t=c(t,this),i=c(i,this),o=c(o,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o,r)}alert(t,i,n,o){return t=c(t,this),i=c(i,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o)}}function c(t,i){return(0,r.isString)(t)&&!(0,r.isHTML)(t)&&(t=i.i18n(t)),t}},70308:function(t,i,n){"use strict";n.d(i,{areAllToolCallsExecuted:function(){return a},createNewConversation:function(){return r},findParentMessageId:function(){return s}});var o=n(21064);function r(t,i,n,s=[]){let a=t.o.aiAssistantPro,l={id:(0,o.generateConversationId)(),created:Date.now(),updated:Date.now(),messages:s,permissions:[],options:{model:i??a.defaultModel,temperature:n??a.defaultTemperature}};return t.e.fire("conversationCreated.ai-assistant-pro",l),l}function s(t){for(let i=t.messages.length-1;i>=0;i--){let n=t.messages[i];if("assistant"===n.role&&!n.id.startsWith("error_"))return n.id}return null}function a(t){let i=t.messages[t.messages.length-1];return!!i?.toolCalls&&i.toolCalls.every(t=>"executed"===t.status||"denied"===t.status||"error"===t.status)}},70722:function(t,i,n){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===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(t+""))}n.d(i,{isNativeFunction:function(){return o}})},70750:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceSelection",r="Replace the current selection with new HTML content",s=[{name:"html",type:"string",description:"HTML content to insert in place of the selection",required:!0},{name:"collapseToEnd",type:"boolean",description:"Move cursor to the end of the inserted content",required:!1,default:!0}],a=!0},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},70824:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Verificação ortográfica"}},70945:function(t,i,n){"use strict";n.r(i),i.default={symbols:"תו מיוחד"}},70950:function(t,i,n){"use strict";n.d(i,{UISidebar:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(41180),c=n(62405),u=n(54747);class d extends c.UIGroup{className(){return"UISidebar"}render(){return`<div>
|
|
495
495
|
<div class='&__hide-btn'>*angle-left*</div>
|
|
496
496
|
<div class='&__favorites'>*heart* ~Favorites~</div>
|
|
497
497
|
<div class='&__box'></div>
|
|
@@ -499,7 +499,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
499
499
|
<div class="&__label">~${t.label}~</div>
|
|
500
500
|
<div class="&__options"></div>
|
|
501
501
|
</div>`}appendChildToContainer(t){let i=this.getElm("options");(0,r.assert)(null!=i,"Options does not exist"),i.appendChild(t)}select(t){var i,n;this.elements.forEach((i,n)=>{n===t||i.state.value===t?i.state.activated=!0:this.options.radio&&(i.state.activated=!1)});let o=this.elements.filter(t=>t.state.activated).map(t=>({text:t.state.text,value:t.state.value}));this.jodit.e.fire(this,"select",o),null==(n=(i=this.options).onChange)||n.call(i,o)}constructor(t,i={radio:!0}){var n,o;super(t,null==(n=i.options)?void 0:n.map(i=>{let n=new s.UIButton(t,{text:i.text,value:i.value,variant:"primary"});return n.onAction(()=>{this.select(i.value)}),n}),i),this.options=i,this.select(null!=(o=i.value)?o:0)}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},72144:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> '},72157:function(t,i,n){"use strict";n.d(i,{findControlType:function(){return a},getControlType:function(){return s}});var o=n(21537),r=n(6441);function s(t,i){let n;return i||(i=r.Config.defaultOptions.controls),(0,o.isString)(t)?n=a(t,i)||{name:t,command:t,tooltip:t}:void 0!==i[(n={name:"empty",...(0,o.ConfigFlatten)(t)}).name]&&(n={...(0,o.ConfigFlatten)(i[n.name]),...(0,o.ConfigFlatten)(n)}),n}function a(t,i){let[n,r]=t.split(/\./),s=i;return null!=r?void 0!==i[n]&&(s=i[n]):r=n,s[r]?{name:r,...(0,o.ConfigFlatten)(s[r])}:void 0}},72253:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(70799),l=n(50911);n(96967);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends l.Plugin{afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:t}=this;if(!t.isEditorMode())return;let i=t.editor.firstChild,n=!1;for(;i;){if(i=function(t,i){let n=t,o=t;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let t=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(n,"ul")?n.appendChild(o):n=r.Dom.wrap(o,"ul",i.createInside),o=t}else break;while(o)return n}(i,t),this.isSuitableStart(i)){n||t.s.save(),n=!0;let o=t.createInside.element(t.o.enter);for(r.Dom.before(i,o);i&&this.isSuitable(i);){let t=i.nextSibling;o.appendChild(i),i=t}o.normalize(),i=o}i=i&&i.nextSibling}n&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){let{jodit:t}=this,i="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&i)return;let n=t.createInside.element(t.o.enter),o=t.createInside.element("br");r.Dom.append(n,o),r.Dom.append(t.editor,n),t.s.isFocused()&&t.s.setCursorBefore(o),t.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=t=>{var i;return r.Dom.isText(t)&&(0,a.isString)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||(null==(i=t.parentNode)?void 0:i.firstChild)===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!r.Dom.isTemporary(t)},this.isSuitable=t=>r.Dom.isText(t)||this.isNotWrapped(t),this.isNotWrapped=t=>r.Dom.isElement(t)&&!(r.Dom.isBlock(t)||r.Dom.isTag(t,this.j.o.wrapNodes.exclude))}}c([o.autobind],u.prototype,"postProcessSetEditorValue",null),c([o.autobind],u.prototype,"preprocessInput",null),s.pluginSystem.add("wrapNodes",u)},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},72392:function(t,i){"use strict";i.default={"copy-format":"Kopírovat formát"}},72430:function(t,i,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},72439:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(21537),l=n(76014);let c=new Set([o.KEY_TAB,o.KEY_LEFT,o.KEY_RIGHT,o.KEY_UP,o.KEY_DOWN]);s.pluginSystem.add("tableKeyboardNavigation",function(t){t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",i=>{let{key:n}=i,s=function(t,i){if(!c.has(i))return;let n=t.s.current();if(!n)return;let s=r.Dom.up(n,r.Dom.isCell,t.editor);if(!s)return;let{range:l}=t.s;if(i!==o.KEY_TAB&&n!==s){let t=i===o.KEY_RIGHT||i===o.KEY_DOWN,c=(0,a.call)(t?r.Dom.next:r.Dom.prev,n,t=>i===o.KEY_UP||i===o.KEY_DOWN?r.Dom.isTag(t,"br"):!!t,s);if(!t&&(c||i!==o.KEY_UP&&r.Dom.isText(n)&&0!==l.startOffset)||t&&(c||i!==o.KEY_DOWN&&r.Dom.isText(n)&&n.nodeValue&&l.startOffset!==n.nodeValue.length))return}return s}(t,n);if(!s)return;let u=t.getInstance(l.Table,t.o),d=r.Dom.closest(s,"table",t.editor),h=null,p=n===o.KEY_LEFT||i.shiftKey,f=()=>(0,a.call)(p?r.Dom.prev:r.Dom.next,s,r.Dom.isCell,d);switch(n){case o.KEY_TAB:case o.KEY_LEFT:(h=f())||(u.appendRow(d,!!p&&d.querySelector("tr"),!p),h=f());break;case o.KEY_UP:case o.KEY_DOWN:{let t=u.formalMatrix(d),[i,r]=u.formalCoordinate(d,s);n===o.KEY_UP?void 0!==t[i-1]&&(h=t[i-1][r]):void 0!==t[i+1]&&(h=t[i+1][r])}}if(h){if(t.e.fire("hidePopup hideResizer"),h.firstChild)n===o.KEY_TAB?t.s.select(h,!0):t.s.setCursorIn(h,n===o.KEY_RIGHT||n===o.KEY_DOWN);else{let i=t.createInside.element("br");h.appendChild(i),t.s.setCursorBefore(i)}return t.synchronizeValues(),!1}})})},72573:function(t,i,n){"use strict";function o(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(i,{marked:function(){return ey}});var s,a=r(),l={exec:()=>null};function c(t,i=""){let n="string"==typeof t?t:t.source,o={replace(t,i){let r="string"==typeof i?i:i.source;return r=r.replace(d.caret,"$1"),n=n.replace(t,r),o},getRegex:()=>new RegExp(n,i)};return o}var u=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),d={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/(?:[*+-]|\d{1,9}[.)])/,f=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,m=c(f).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),g=c(f).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,y=c(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=c(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,k=c("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",C).replace("tag",_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S=c(b).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),x={blockquote:c(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",S).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:h,html:k,lheading:m,list:w,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:S,table:l,text:/^[^\n]+/},I=c("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex(),E={...x,lheading:g,table:I,paragraph:c(b).replace("hr",h).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_).getRegex()},T={...x,html:c("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",C).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:c(b).replace("hr",h).replace("heading",` *#{1,6} *[^
|
|
502
|
-
]`).replace("lheading",m).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,j=/[\p{P}\p{S}]/u,L=/[\s\p{P}\p{S}]/u,D=/[^\s\p{P}\p{S}]/u,P=c(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,M=c(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",u?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=c(z,"u").replace(/punct/g,j).getRegex(),N=c(z,"u").replace(/punct/g,R).getRegex(),
|
|
502
|
+
]`).replace("lheading",m).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,j=/[\p{P}\p{S}]/u,L=/[\s\p{P}\p{S}]/u,D=/[^\s\p{P}\p{S}]/u,P=c(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,M=c(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",u?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,B=c(z,"u").replace(/punct/g,j).getRegex(),N=c(z,"u").replace(/punct/g,R).getRegex(),O="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F=c(O,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,j).getRegex(),H=c(O,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),U=c("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,j).getRegex(),q=c(/\\(punct)/,"gu").replace(/punct/g,j).getRegex(),V=c(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),W=c(C).replace("(?:--\x3e|$)","--\x3e").getRegex(),$=c("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,K=c(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Y=c(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",v).getRegex(),J=c(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),X=c("reflink|nolink(?!\\()","g").replace("reflink",Y).replace("nolink",J).getRegex(),Z=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Q={_backpedal:l,anyPunctuation:q,autolink:V,blockSkip:M,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,emStrongLDelim:B,emStrongRDelimAst:F,emStrongRDelimUnd:U,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:K,nolink:J,punctuation:P,reflink:Y,reflinkSearch:X,tag:$,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},ee={...Q,link:c(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},et={...Q,emStrongRDelimAst:H,emStrongLDelim:N,url:c(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Z).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:c(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Z).getRegex()},ei={...et,br:c(A).replace("{2,}","*").getRegex(),text:c(et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},en={normal:x,gfm:E,pedantic:T},eo={normal:Q,gfm:et,breaks:ei,pedantic:ee},er={"&":"&","<":"<",">":">",'"':""","'":"'"},es=t=>er[t];function ea(t,i){if(i){if(d.escapeTest.test(t))return t.replace(d.escapeReplace,es)}else if(d.escapeTestNoEncode.test(t))return t.replace(d.escapeReplaceNoEncode,es);return t}function el(t){try{t=encodeURI(t).replace(d.percentDecode,"%")}catch{return null}return t}function ec(t,i){let n=t.replace(d.findPipe,(t,i,n)=>{let o=!1,r=i;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"}).split(d.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),i)if(n.length>i)n.splice(i);else for(;n.length<i;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(d.slashPipe,"|");return n}function eu(t,i,n){let o=t.length;if(0===o)return"";let r=0;for(;r<o;){let s=t.charAt(o-r-1);if(s!==i||n)if(s!==i&&n)r++;else break;else r++}return t.slice(0,o-r)}function ed(t,i,n,o,r){let s=i.href,a=i.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;let c={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:s,title:a,text:l,tokens:o.inlineTokens(l)};return o.state.inLink=!1,c}var eh=class{space(t){let i=this.rules.block.newline.exec(t);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(t){let i=this.rules.block.code.exec(t);if(i){let t=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?t:eu(t,`
|
|
503
503
|
`)}}}fences(t){let i=this.rules.block.fences.exec(t);if(i){let t=i[0],n=function(t,i,n){let o=t.match(n.other.indentCodeCompensation);if(null===o)return i;let r=o[1];return i.split(`
|
|
504
504
|
`).map(t=>{let i=t.match(n.other.beginningSpace);if(null===i)return t;let[o]=i;return o.length>=r.length?t.slice(r.length):t}).join(`
|
|
505
505
|
`)}(t,i[3]||"",this.rules);return{type:"code",raw:t,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:n}}}heading(t){let i=this.rules.block.heading.exec(t);if(i){let t=i[2].trim();if(this.rules.other.endingHash.test(t)){let i=eu(t,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(t=i.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let i=this.rules.block.hr.exec(t);if(i)return{type:"hr",raw:eu(i[0],`
|
|
@@ -567,7 +567,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error
|
|
|
567
567
|
${n("contains detailed help for using")}
|
|
568
568
|
</div>
|
|
569
569
|
<div>${n("Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.")}</div>
|
|
570
|
-
</div>`),(0,s.css)(i.dialog,{minHeight:200,minWidth:420}),i.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},r.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),a.Icon.set("about",c.default)},73534:function(t,i,n){"use strict";n.d(i,{getSelectionFragments:function(){return r}});var o=n(2748);function r(t){let i=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return i;t.s.range.commonAncestorContainer.normalize();let r=t.s.range,{commonAncestorContainer:c,startContainer:u,endContainer:d,startOffset:h,endOffset:p}=r;if(u===d){if(o.Dom.isText(u))return[a(u,h,p)];if(p-h==1){let t=u.childNodes[h];return o.Dom.isText(t)?[a(t,0,t.nodeValue.length)]:[l(t)]}if(0===h&&u.childNodes.length===p)return[l(u)];for(let t=h;t<p;t++){let n=u.childNodes[t];o.Dom.isText(n)?i.push(a(n,0,n.nodeValue.length)):i.push(l(n))}return i}let f=new Set,m=t.ed.createTreeWalker(c,NodeFilter.SHOW_ALL,{acceptNode:t=>!r.intersectsNode(t)||o.Dom.closest(t,t=>t&&f.has(t),c)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),g=m.nextNode();for(;g;){if(o.Dom.isElement(g)&&s(r,g))f.add(g),i.push(l(g));else if(o.Dom.isText(g)&&s(r,g))i.push(a(g,0,g.nodeValue.length));else if(o.Dom.isText(g)){let t=0,n=g.nodeValue.length;g===u&&(t=h),g===d&&(n=p),i.push(a(g,t,n))}g=m.nextNode()}return i}let s=(t,i)=>{let n=document.createRange();try{n.selectNodeContents(i)}catch{n.selectNode(i)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function a(t,i,n){return{text:t.nodeValue.slice(i,n),replace(o){t.nodeValue=t.nodeValue.slice(0,i)+o+t.nodeValue.slice(n)}}}function l(t){return{text:t.innerHTML,replace(i){t.innerHTML=i}}}},73674:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},73792:function(t,i,n){"use strict";n.d(i,{checkRemoveChar:function(){return function t(i,n,a,c){var u,d,h,p;let f,m=a?-1:1,g=r.Dom.sibling(n,!a),b=r.Dom.sibling(n,a),v=null,y=!1;for(b||(b=l(n,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(u=b.nodeValue)?void 0:u.length)&&(f=function(t,i,n,a){let l=(0,s.toArray)(t.nodeValue),c=l.length,u=i?c-1:0;if(l[u]===o.INVISIBLE_SPACE)for(;l[u]===o.INVISIBLE_SPACE;)u+=n;let d=l[u];if(l[u+n]===o.INVISIBLE_SPACE){for(u+=n;l[u]===o.INVISIBLE_SPACE;)u+=n;u+=i?1:-1}return l=i&&u<0?[]:l.slice(i?0:u+1,i?u:c),function(t,i,n){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?n.length-1:0;i?t>=0:t<n.length;t+=i?-1:1)if(" "===n[t])n[t]=o.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),d}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=o.INVISIBLE_SPACE)),(null==(d=b.nodeValue)?void 0:d.length)||(v=b),!(0,s.isVoid)(f)&&f!==o.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,n),("sentence"===c||"word"===c&&" "!==p&&p!==o.NBSP_SPACE)&&t(i,n,a,c),y=!0;break}let w=l(b,a,i.editor);v&&(r.Dom.safeRemove(v),v=null),b=w}return v&&(r.Dom.safeRemove(v),v=null),y&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let n=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=n}}(n),n.parentElement!==i.editor&&r.Dom.isBlock(n.parentElement)&&r.Dom.each(n.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(n,i.createInside.element("br")),i.s.setCursorBefore(n),r.Dom.isTag(n.previousSibling,"br")&&!r.Dom.findNotEmptySibling(n,!1)&&r.Dom.after(n,i.createInside.element("br"))),y}}});var o=n(82758),r=n(22732),s=n(21537),a=n(63785);function l(t,i,n){let o=r.Dom.sibling(t,i);return!o&&t.parentNode&&t.parentNode!==n&&(o=(0,a.findMostNestedNeighbor)(t,!i,n,!0)),o}},73943:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="applyFormat",r="Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block",s=[{name:"element",type:"string",description:'HTML element to wrap selection (e.g., "strong", "em", "u", "span")',required:!1},{name:"attributes",type:"object",description:'Attributes to apply (e.g., {"className": "highlight"}, {"style": {"color": "red"}})',required:!1},{name:"remove",type:"boolean",description:"If true, remove the formatting instead of applying it",required:!1,default:!1},{name:"blockIndex",type:"number",description:"Zero-based index of the block to format (if not using current selection)",required:!1},{name:"selector",type:"string",description:"CSS selector to find the block to format (if not using current selection)",required:!1}],a=!0},73948:function(t,i,n){"use strict";n.d(i,{nativeListeners:function(){return u}});var o=n(29960),r=n(15456),s=n(41457),a=n(32118),l=n(21735),c=n(20201);function u(){let t=!1,i=(0,a.elementsMap)(this),n=this;n.e.on(n.tree.container,"dragstart",i=>{let o=(0,l.getItem)(i.target,n.container);o&&n.o.moveFolder&&(t=o)}).on(n.tree.container,"drop",i=>{if((n.o.moveFile||n.o.moveFolder)&&t){let r=(0,o.attr)(t,"-path")||"";if(!n.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item"))||t.classList.contains(this.files.getFullElName("item"))&&(r+=(0,o.attr)(t,"-name"),!n.o.moveFile))return!1;let s=(0,l.getItem)(i.target,n.container);s&&(n.dataProvider.move(r,(0,o.attr)(s,"-path")||"",(0,o.attr)(s,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then(()=>(0,c.loadTree)(this)).catch(n.status),t=!1)}}).on(n.files.container,"contextmenu",(0,s.default)(n)).on(n.files.container,"click",t=>{(0,r.ctrlKey)(t)||(this.state.activeElements=[])}).on(n.files.container,"click",t=>{let o=(0,l.getItem)(t.target,n.container);if(!o)return;let s=(0,l.elementToItem)(o,i);if(s)return(0,r.ctrlKey)(t)?n.state.activeElements=[...n.state.activeElements,s]:n.state.activeElements=[s],t.stopPropagation(),!1}).on(n.files.container,"dragstart",i=>{if(n.o.moveFile){let o=(0,l.getItem)(i.target,n.container);o&&(t=o)}}).on(n.container,"drop",t=>t.preventDefault())}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),c=n(50911),u=n(2692);class d extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),u.JoditPro.plugins.add("mobileView",d)},74551:function(t,i){"use strict";i.default={"copy-format":"Format kopierenт"}},74569:function(t,i,n){"use strict";function o(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(i.length));for(let t=0;t<i.length;t+=1)o[t]=i.charCodeAt(t);return new Blob([o.buffer],{type:n})}n.d(i,{dataURItoBlob:function(){return o}})},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},75259:function(t,i){"use strict";i.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> '},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),c=n(91003)},75330:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return k}});var o=n(91907),r=n(82758),s=n(65478),a=n(37133),l=n(3827),c=n(21537),u=n(12081),d=n(70231),h=n(84075),p=n(6441);n(61251);var f=n(30465),m=n(20201),g=n(73948),b=n(33281),v=n(94538),y=n(11787),w=n(63399),_=n(8172),C=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let k=class t extends h.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let i=[],n=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(i.push(o),n.push(t.isImage||!1))}),this.close(),(0,c.isFunction)(t)&&t({baseurl:"",files:i,isImages:n}),this.close()}return!1}}get _dialog(){var t;let i=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(t=this.o.headerButtons)?t:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(t=>i.events.on(i,t,()=>this.e.fire(t))),i.setSize(this.o.width,this.o.height),i}get storage(){return u.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,i){!t||(0,c.isAbortError)(t)||((0,c.isString)(t)||(t=t.message),(0,c.isString)(t)&&(0,c.trim)(t).length&&this.message.message(t,i?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,i=!1){return this.state.onlyImages=i,this.async.promise((i,n)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,c.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let i=new Date().getTime();i-s<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),s=i}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let a=this.c.div();null==(o=this.toolbar)||o.appendTo(a),this.__updateToolbarButtons(),this._dialog.open(this.browser,a),this.e.fire("sort.filebrowser",this.state.sortBy),(0,m.loadTree)(this).then(i,n).finally(()=>{var t;this.isInDestruct||null==(t=this===null||void 0===this?void 0:this.e)||t.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,c.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){var t;return(null!=(t=this.o.buttons)?t:[]).filter(t=>{if(!(0,c.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){var i;let n=this,o=null==(i=null==t?void 0:t.options)?void 0:i.uploader,r=(0,c.ConfigProto)(o||{},p.Config.defaultOptions.uploader),s=()=>(0,f.loadItems)(this);n.uploader=n.getInstance("Uploader",r),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,s,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),n.e.on("bindUploader.filebrowser",t=>{n.uploader.bind(t,s,n.errorHandler)})}destruct(){var t;!this.isInDestruct&&(null==(t=(0,s.cached)(this,"_dialog"))||t.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var t;let i=this.__getButtons();!function(t,i){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==i[n])return!1;return!0}(this.__prevButtons,i)&&(this.__prevButtons=i,null==(t=this.toolbar)||t.build(i))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new _.FileBrowserTree(this),this.files=new _.FileBrowserFiles(this),this.state=(0,l.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,c.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(t),this.options=(0,c.ConfigProto)(t||{},p.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),b.selfListeners.call(this),g.nativeListeners.call(this),v.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,c.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:i,storeSortBy:n,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},s=i&&this.storage.get("view");s&&null==this.o.view?this.state.view="list"===s?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=n&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(r){const t=this.storage.get("currentPath"),i=this.storage.get("currentSource");this.state.currentPath=null!=t?t:"",this.state.currentSource=null!=i?i:""}this.initUploader(this),this.setStatus(o.STATUSES.ready)}};C([s.cache],k.prototype,"dataProvider",null),C([s.cache],k.prototype,"_dialog",null),C([s.cache],k.prototype,"storage",null),C([s.autobind],k.prototype,"status",null),C([s.autobind],k.prototype,"open",null),C([(0,a.watch)("dataProvider:changePermissions")],k.prototype,"__updateToolbarButtons",null),k=C([(0,s.derive)(d.Dlgs)],k)},75352:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readBlocks",r="Read blocks from the editor with optional filtering and pagination",s=[{name:"offset",type:"number",description:"Number of blocks to skip from the beginning (default: 0)",required:!1,default:0},{name:"limit",type:"number",description:"Maximum number of blocks to return (default: all)",required:!1},{name:"query",type:"string",description:"Filter blocks by text content",required:!1}],a=!1},75393:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> '},75445:function(t,i){"use strict";i.default={}},75595:function(t,i,n){"use strict";n.d(i,{readLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=o.Dom.closest(t.sourceImage,"a",i.editor);s?(n.imageLink=(0,r.attr)(s,"href")||"",n.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}},75689:function(t){t.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},75703:function(t,i,n){"use strict";n.r(i),i.default={symbols:"سمبل"}},75882:function(t,i,n){"use strict";n.d(i,{unwrapChildren:function(){return l}});var o=n(2748),r=n(43555),s=n(22030),a=n(97380);function l(t,i){var n;let l,c=[],u=[],d=null==(n=t.options.attributes)?void 0:n.style;if(i.firstChild){let n=o.Dom.eachGen(i),h=n.next();for(;!h.done;){let i=h.value;(0,a.isSuitElement)(t,i,!0)&&(!d||(0,s.hasSameStyleKeys)(i,d))?(void 0===l&&(l=!0),c.push(i)):d&&(0,a.isSameStyleChild)(t,i)?(void 0===l&&(l=!1),u.push(()=>{(0,r.css)(i,Object.keys(d).reduce((t,i)=>(t[i]=null,t),{})),(0,r.attr)(i,"style")||(0,r.attr)(i,"style",null),(0,r.attr)(i,"style")||i.nodeName.toLowerCase()!==t.element||c.push(i)})):o.Dom.isEmptyTextNode(i)||void 0!==l||(l=!1),h=n.next()}}return u.forEach(t=>t()),c.forEach(o.Dom.unwrap),!!l}},75966:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},76014:function(t,i,n){"use strict";n.d(i,{Table:function(){return d}});var o=n(91907),r=n(82758),s=n(65478),a=n(22732),l=n(580),c=n(21537);let u=new WeakMap;class d extends o.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,l.getContainer)(this.j,d,"style",!0),i=[];this.selected.forEach(t=>{let n=(0,c.cssPath)(t);n&&i.push(n)}),t.innerHTML=i.length?i.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i)||new Set;n.add(t),d.__selectedByTable.set(i,n)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i);n&&(n.delete(t),n.size||d.__selectedByTable.delete(i))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(t){let i=d.__selectedByTable.get(t);return i?(0,c.toArray)(i):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,i)=>Math.max(t,i.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,i){let n=[[]],o=(0,c.toArray)(t.rows),r=(t,o)=>{void 0===n[o]&&(n[o]=[]);let r=t.colSpan,s=t.rowSpan,a,l,c=0;for(;n[o][c];)c+=1;for(l=0;s>l;l+=1)for(a=0;a<r;a+=1){if(void 0===n[o+l]&&(n[o+l]=[]),i&&!1===i(t,o+l,c+a,r,s))return!1;n[o+l][c+a]=t}};for(let t=0;t<o.length;t+=1){let i=(0,c.toArray)(o[t].cells);for(let o=0;o<i.length;o+=1)if(!1===r(i[o],t))return n}return n}formalMatrix(t,i){return d.__formalMatrix(t,i)}static __formalCoordinate(t,i,n=!1){let o=0,r=0,s=1,a=1;return d.__formalMatrix(t,(t,l,c,u,d)=>{if(i===t)return o=l,r=c,s=u||1,a=d||1,n&&(r+=(u||1)-1,o+=(d||1)-1),!1}),[o,r,s,a]}formalCoordinate(t,i,n=!1){return d.__formalCoordinate(t,i,n)}static __appendRow(t,i,n,o){var r;let s;if(i)s=i.cloneNode(!0),(0,c.$$)("td,th",i).forEach(t=>{let i=(0,c.attr)(t,"rowspan");if(i&&parseInt(i,10)>1){let n=parseInt(i,10)-1;(0,c.attr)(t,"rowspan",n>1?n:null)}}),(0,c.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let i=d.__getColumnsCount(t);s=o.element("tr");for(let t=0;t<i;t+=1)s.appendChild(o.element("td"))}n&&i&&i.nextSibling?i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling):!n&&i?i.parentNode&&i.parentNode.insertBefore(s,i):((null==(r=t.getElementsByTagName("tbody"))?void 0:r[0])||t).appendChild(s)}appendRow(t,i,n){return d.__appendRow(t,i,n,this.j.createInside)}static __removeRow(t,i){let n,o=d.__formalMatrix(t),r=t.rows[i];o[i].forEach((s,l)=>{if(n=!1,i-1>=0&&o[i-1][l]===s)n=!0;else if(o[i+1]&&o[i+1][l]===s){if(s.parentNode===r&&s.parentNode.nextSibling){n=!0;let r=l+1;for(;o[i+1][r]===s;)r+=1;let c=a.Dom.next(s.parentNode,t=>a.Dom.isTag(t,"tr"),t);c&&(o[i+1][r]?c.insertBefore(s,o[i+1][r]):c.appendChild(s))}}else a.Dom.safeRemove(s);if(n&&(s.parentNode===r||s!==o[i][l-1])){let t=s.rowSpan;(0,c.attr)(s,"rowspan",t-1>1?t-1:null)}}),a.Dom.safeRemove(r)}removeRow(t,i){return d.__removeRow(t,i)}appendColumn(t,i,n=!0){let o=d.__formalMatrix(t);if(!n&&a.Dom.isCell(i.previousElementSibling))return this.appendColumn(t,i.previousElementSibling,!0);let r=n?i.cellIndex+((i.colSpan||1)-1):i.cellIndex,s=n?r+1:r;for(let t=0;t<o.length;){let i=o[t];if(i[r]!==i[s]||r===s){let t=this.j.createInside.element("td");n?a.Dom.after(i[r],t):a.Dom.before(i[r],t),i[r].rowSpan>1&&(t.rowSpan=i[r].rowSpan)}else i[r].colSpan+=1;t+=i[r].rowSpan||1}}static __removeColumn(t,i){let n,o=d.__formalMatrix(t);o.forEach((t,r)=>{let s=t[i];if(n=!1,i-1>=0&&o[r][i-1]===s||i+1<t.length&&o[r][i+1]===s?n=!0:a.Dom.safeRemove(s),n&&(r-1<0||s!==o[r-1][i])){let t=s.colSpan;(0,c.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,i){return d.__removeColumn(t,i)}static __getSelectedBound(t,i){let n,o,r,s=[[1/0,1/0],[0,0]],a=d.__formalMatrix(t);for(n=0;n<a.length;n+=1)for(o=0;a[n]&&o<a[n].length;o+=1)i.includes(a[n][o])&&(s[0][0]=Math.min(n,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(n,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(n=s[0][0];n<=s[1][0];n+=1)for(r=1,o=s[0][1];o<=s[1][1];o+=1){for(;a[n]&&a[n][o-r]&&a[n][o]===a[n][o-r];)s[0][1]=Math.min(o-r,s[0][1]),s[1][1]=Math.max(o-r,s[1][1]),r+=1;for(r=1;a[n]&&a[n][o+r]&&a[n][o]===a[n][o+r];)s[0][1]=Math.min(o+r,s[0][1]),s[1][1]=Math.max(o+r,s[1][1]),r+=1;for(r=1;a[n-r]&&a[n][o]===a[n-r][o];)s[0][0]=Math.min(n-r,s[0][0]),s[1][0]=Math.max(n-r,s[1][0]),r+=1;for(r=1;a[n+r]&&a[n][o]===a[n+r][o];)s[0][0]=Math.min(n+r,s[0][0]),s[1][0]=Math.max(n+r,s[1][0]),r+=1}return s}getSelectedBound(t,i){return d.__getSelectedBound(t,i)}static __normalizeTable(t){let i=[],n=d.__formalMatrix(t);d.__removeExtraColspans(n,i),d.__removeExtraRowspans(n,i);for(let t=0;t<n.length;t+=1)for(let i=0;i<n[t].length;i+=1)void 0!==n[t][i]&&(n[t][i].hasAttribute("rowspan")&&1===n[t][i].rowSpan&&(0,c.attr)(n[t][i],"rowspan",null),n[t][i].hasAttribute("colspan")&&1===n[t][i].colSpan&&(0,c.attr)(n[t][i],"colspan",null),n[t][i].hasAttribute("class")&&!(0,c.attr)(n[t][i],"class")&&(0,c.attr)(n[t][i],"class",null));d.__unmark(i)}static __removeExtraColspans(t,i){for(let n=0;n<t[0].length;n+=1){let o=1e6,r=!1;for(let i=0;i<t.length;i+=1)if(void 0!==t[i][n]){if(t[i][n].colSpan<2){r=!0;break}o=Math.min(o,t[i][n].colSpan)}if(!r)for(let r=0;r<t.length;r+=1)void 0!==t[r][n]&&d.__mark(t[r][n],"colspan",t[r][n].colSpan-o+1,i)}}static __removeExtraRowspans(t,i){let n=0,o=0;for(n=0;n<t.length;n+=1){let r=1e6,s=!1;for(o=0;o<t[n].length;o+=1)if(void 0!==t[n][o]){if(t[n][o].rowSpan<2){s=!0;break}r=Math.min(r,t[n][o].rowSpan)}if(!s)for(o=0;o<t[n].length;o+=1)void 0!==t[n][o]&&d.__mark(t[n][o],"rowspan",t[n][o].rowSpan-r+1,i)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,i){let n=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),s=0,l=null,u=0,p=0,f=0,m=new Set,g=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,a,b,v)=>{r>=o[0][0]&&r<=o[1][0]&&a>=o[0][1]&&a<=o[1][1]&&(m.has(t)||(m.add(t),r===o[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,c.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&n.push(t.innerHTML),b>1&&(p+=b-1),v>1&&(f+=v-1),l?(d.__mark(t,"remove",1,g),h(i).removeSelection(t)):(l=t,u=a)))}),p=o[1][1]-o[0][1]+1,f=o[1][0]-o[0][0]+1,l&&(p>1&&d.__mark(l,"colspan",p,g),f>1&&d.__mark(l,"rowspan",f,g),s&&(d.__mark(l,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),u&&d.__setColumnWidthByDelta(t,u,0,!0,g)),l.innerHTML=n.join("<br/>"),h(i).addSelection(l),m.delete(l),d.__unmark(g),d.__normalizeTable(t),(0,c.toArray)(t.rows).forEach(t=>{t.cells.length||a.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,i){let n,o,r,s,l,c=[];d.__getSelectedCellsByTable(t).forEach(u=>{(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),r=i.createInside.element("tr"),n=d.__formalCoordinate(t,u),u.rowSpan<2?(d.__formalMatrix(t,(t,i,o)=>{n[0]===i&&n[1]!==o&&t!==u&&d.__mark(t,"rowspan",t.rowSpan+1,c)}),a.Dom.after(a.Dom.closest(u,"tr",t),r),r.appendChild(o)):(d.__mark(u,"rowspan",u.rowSpan-1,c),d.__formalMatrix(t,(i,o,r)=>{o>n[0]&&o<n[0]+u.rowSpan&&n[1]>r&&i.parentNode.rowIndex===o&&(l=i),n[0]<o&&i===u&&(s=t.rows[o])}),l?a.Dom.after(l,o):s.insertBefore(o,s.firstChild)),u.colSpan>1&&d.__mark(o,"colspan",u.colSpan,c),d.__unmark(c),h(i).removeSelection(u)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,i){let n,o,s,l=[];d.__getSelectedCellsByTable(t).forEach(c=>{n=d.__formalCoordinate(t,c),c.colSpan<2?d.__formalMatrix(t,(t,i,o)=>{n[1]===o&&n[0]!==i&&t!==c&&d.__mark(t,"colspan",t.colSpan+1,l)}):d.__mark(c,"colspan",c.colSpan-1,l),(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),c.rowSpan>1&&d.__mark(o,"rowspan",c.rowSpan,l);let u=c.offsetWidth;a.Dom.after(c,o),s=u/t.offsetWidth/2,d.__mark(c,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__mark(o,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__unmark(l),h(i).removeSelection(c)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,i,n,o,s){let a=d.__formalMatrix(t),l=0;for(let o=0;o<a.length;o+=1){let c=a[o][i];if(c.colSpan>1&&a.length>1)continue;let u=(c.offsetWidth+n)/t.offsetWidth*100;d.__mark(c,"width",u.toFixed(r.ACCURACY)+"%",s),l=o;break}for(let t=l+1;t<a.length;t+=1){let n=a[t][i];d.__mark(n,"width",null,s)}o||d.__unmark(s)}setColumnWidthByDelta(t,i,n,o,r){return d.__setColumnWidthByDelta(t,i,n,o,r)}static __mark(t,i,n,o){var r;o.push(t);let s=null!=(r=u.get(t))?r:{};s[i]=void 0===n?1:n,u.set(t,s)}static __unmark(t){t.forEach(t=>{let i=u.get(t);i&&(Object.keys(i).forEach(n=>{let o=i[n];switch(n){case"remove":a.Dom.safeRemove(t);break;case"rowspan":(0,c.attr)(t,"rowspan",(0,c.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,c.attr)(t,"colspan",(0,c.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,c.attr)(t,"style")||(0,c.attr)(t,"style",null)):t.style.width=o.toString()}delete i[n]}),u.delete(t))})}constructor(){super(...arguments),this.selected=new Set}}d.__selectedByTable=new WeakMap,function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,s.debounce)()],d.prototype,"__recalculateStyles",null);let h=t=>t.getInstance("Table",t.o)},76059:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});let o={i:"em",b:"strong"};function r(t){let{name:i}=t;return i in o&&(t.name=o[i]),t}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),c=n(29960),u=n(89890);let d=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,c.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i)t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,u.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,u.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},76295:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(21537),a=n(25726),l=n(41180),c=n(12153),u=n(6441),d=n(5567);c.Icon.set("justify",d.default),u.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,i){let n=i.control,r=t.s.current();if(r){let a=o.Dom.closest(r,o.Dom.isBlock,t.editor)||t.editor,c=(0,l.css)(a,"text-align").toString();n.defaultValue&&-1!==n.defaultValue.indexOf(c)&&(c="left");let{list:u,data:d}=n;d&&d.currentValue!==c&&u&&((0,s.isPlainObject)(u)?u[c]:u.includes(c))&&(t.o.textIcons||"select"===n.component?i.state.text=c:i.state.icon.name=c,d.currentValue=c)}},isActive(t,i){let n=t.s.current();if(!n||!i.control.defaultValue)return!1;let r=o.Dom.closest(n,o.Dom.isBlock,t.editor)||t.editor;return -1===i.control.defaultValue.indexOf((0,l.css)(r,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},u.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},u.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},u.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},u.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},r.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let i=i=>(t.s.focus(),t.s.eachSelection(n=>{if(!n)return;let r=o.Dom.up(n,o.Dom.isBlock,t.editor);r||(r=o.Dom.wrapInline(n,t.o.enterBlock,t)),(0,a.alignElement)(i,r)}),!1);t.registerCommand("justifyfull",i),t.registerCommand("justifyright",i),t.registerCommand("justifyleft",i),t.registerCommand("justifycenter",i)})},76636:function(t,i,n){"use strict";n.r(i),n.d(i,{ru:function(){return r.a}});var o=n(28125),r=n.n(o)},76697:function(t,i,n){"use strict";n.d(i,{UISettingsButton:function(){return d}});var o=n(82749),r=n(31635),s=n(79455),a=n(87325),l=n(37133),c=n(48538),u=n(78644);class d extends c.UIElement{className(){return"UISettingsButton"}setParentView(t){return this.settingsPopup?.setParentView(t),this.button?.setParentView(t),super.setParentView(t)}onChangeOptionsClosePopup(t){this.closeCallback()}openSettingsPopup(){return this.settingsPopup||(this.settingsPopup=new s.UISettingsPopup(this.jodit,this.extraState,this.options,this.getConversation,this.updateConversation)),this.settingsPopup.update(),this.settingsPopup}constructor(t,i,n,r,s){super(t),(0,o._)(this,"extraState",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"getConversation",void 0),(0,o._)(this,"updateConversation",void 0),(0,o._)(this,"closeCallback",void 0),(0,o._)(this,"settingsPopup",void 0),(0,o._)(this,"button",void 0),this.extraState=i,this.options=n,this.getConversation=r,this.updateConversation=s,this.closeCallback=()=>{},this.settingsPopup=null,this.button=new u.ToolbarButton(this.jodit,{name:"settings",tooltip:"Settings",popup:(t,i,n)=>(this.closeCallback=n,this.openSettingsPopup())}),this.button.state.variant="initial",this.button.state.size="small",this.container.appendChild(this.button.container)}}(0,r.__decorate)([(0,l.watch)("extraState.displayMode")],d.prototype,"onChangeOptionsClosePopup",null),d=(0,r.__decorate)([a.component],d)},76725:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Výška čáry"}},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},77361:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s},INITIAL:function(){return l},REPLACE:function(){return c},UNSET:function(){return a},UNWRAP:function(){return r},WRAP:function(){return o},_PREFIX:function(){return u}});let o="wrap",r="unwrap",s="change",a="unset",l="initial",c="replace",u="commitStyle"},77469:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537);n(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,n)=>{let o=t||n.iframe.contentWindow.document;if(o.open(),o.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=o.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),o.head&&o.head.appendChild(i)}),i.iframeStyle){let t=o.createElement("style");t.innerHTML=i.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let n=t.c.element("iframe");n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",n.setAttribute("allowtransparency","true"),n.setAttribute("tabindex",i.tabIndex.toString()),n.setAttribute("frameborder","0"),null!=i.iframeSandbox&&n.setAttribute("sandbox",i.iframeSandbox),t.workplace.appendChild(n),t.iframe=n;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let n=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(n.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,n="{%%BODY%%}",o=i.exec(t);return o&&(t=t.replace(i,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(n,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(n.documentElement.outerHTML)!==l(i)&&(n.open(),n.write(t.o.iframeDoctype+l(i)),n.close(),t.editor=n.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):n.body.innerHTML=i,!0),{top:!0})}if(t.editor=n.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");let o=t.async.throttle((...n)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),n=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+n)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,n.documentElement],"load",o).on(n,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let i=new ResizeObserver(o);i.observe(n.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return n.documentElement&&t.e.on(n.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===n.body&&t.s.setCursorIn(n.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var n;null==(n=t.events)||n.fire(t.ow,i)}),!1})})})},77725:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Corrección ortográfica"}},77841:function(t,i,n){"use strict";n.d(i,{parentPath:function(){return o}});let o=t=>{let i=t.split("/").filter(t=>t.length);return i.pop(),i.join("/")||"/"}},77894:function(t,i,n){"use strict";var o=n(76636),r=n(6441),s=n(580);let a=r.Config.prototype.controls.filebrowser;a.settings={icon:"settings",tooltip:"Settings",exec(t){(t.parent??t).e.fire("toggleSettings.filebrowser")}},a.home={icon:"home",tooltip:"Home",exec(t){t.e.fire("goHome.filebrowser")}},a.preview={icon:"eye",tooltip:"Preview",isDisabled:t=>0===t.state.activeElements.length,exec(t){t.e.fire("togglePreview.filebrowser")}},a.next={icon:"angle-right",tooltip:"History next",isDisabled:t=>!t.historyManager.canNext(),exec(t){t.historyManager.next()}},a.previous={icon:"angle-left",tooltip:"History previous",isDisabled:t=>!t.historyManager.canPrevious(),exec(t){t.historyManager.previous()}},a["new-folder"]={icon:"new-folder",exec(t){t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(r.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),(0,s.extendLang)(o)},78116:function(t,i,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},78173:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},78513:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return o.FileBrowser}});var o=n(75330)},78524:function(t,i,n){"use strict";n(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},78584:function(t,i,n){"use strict";n.d(i,{Dialog:function(){return y}});var o,r=n(91907),s=n(82758),a=n(65478),l=n(2748),c=n(580),u=n(76855),d=n(27613),h=n(43555),p=n(38837),f=n(67510),m=n(35608),g=n(84075),b=n(6441),v=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};b.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},b.Config.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let y=o=class t extends g.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:t,shadowRoot:i}=this.o;return t||i||this.od.body}setElements(t,i){let n=[];(0,u.asArray)(i).forEach(i=>{let o;if((0,d.isArray)(i)){let o=this.c.div(this.getFullElName("column"));return n.push(o),t.appendChild(o),this.setElements(o,i)}o=(0,d.isString)(i)?this.c.fromHTML(i):(0,d.hasContainer)(i)?i.container:i,n.push(o),o.parentNode!==t&&t.appendChild(o)}),(0,u.toArray)(t.childNodes).forEach(i=>{-1===n.indexOf(i)&&t.removeChild(i)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(t){let i=t.target;!(!this.o.draggable||i&&i.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,h.css)(this.dialog,"left"),this.startPoint.y=(0,h.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}__onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===s.KEY_ESC&&!0!==this.getMod("static")){let i=this.getMaxZIndexDialog();i?i.close():this.close(),t.stopImmediatePropagation()}}__onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(t,i){return null==t&&(t=this.dialog.offsetWidth),null==i&&(i=this.dialog.offsetHeight),(0,h.css)(this.dialog,{width:t,height:i}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,i){let n=this.ow.innerWidth,o=this.ow.innerHeight,r=n/2-this.dialog.offsetWidth/2,s=o/2-this.dialog.offsetHeight/2;return r<0&&(r=0),s<0&&(s=0),void 0!==t&&void 0!==i&&(this.offsetX=t,this.offsetY=i,this.moved=Math.abs(t-r)>100||Math.abs(i-s)>100),this.dialog.style.left=(t||r)+"px",this.dialog.style.top=(i||s)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,h.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t=0,i,n,o=this;return(0,h.$$)(".jodit-dialog",this.destination).forEach(r=>{i=r.component,n=parseInt((0,h.css)(r,"zIndex"),10),i.isOpened&&!isNaN(n)&&n>t&&(o=i,t=n)}),o}setMaxZIndex(){if(this.getMod("static"))return;let t=0x1312d04,i=0;(0,h.$$)(".jodit-dialog",this.destination).forEach(n=>{t=Math.max(isNaN(i=parseInt((0,h.css)(n,"zIndex"),10))?0:i,t)}),this.container.style.zIndex=(t+1).toString()}toggleFullSize(t){(0,d.isVoid)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,i,n,o){if(c.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,d.isBoolean)(t)&&(n=t),(0,d.isBoolean)(i)&&(o=i),this.destroyAfterClose=!0===n;let r=(0,d.isBoolean)(t)?void 0:t,s=(0,d.isBoolean)(i)?void 0:i;return void 0!==s&&this.setHeader(s),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(o),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,u.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(r.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.__onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1,this.options=(0,h.ConfigProto)(t,(0,h.ConfigProto)(b.Config.prototype.dialog,o.defaultOptions)),l.Dom.safeRemove(this.container);const i=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
|
|
570
|
+
</div>`),(0,s.css)(i.dialog,{minHeight:200,minWidth:420}),i.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},r.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),a.Icon.set("about",c.default)},73534:function(t,i,n){"use strict";n.d(i,{getSelectionFragments:function(){return r}});var o=n(2748);function r(t){let i=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return i;t.s.range.commonAncestorContainer.normalize();let r=t.s.range,{commonAncestorContainer:c,startContainer:u,endContainer:d,startOffset:h,endOffset:p}=r;if(u===d){if(o.Dom.isText(u))return[a(u,h,p)];if(p-h==1){let t=u.childNodes[h];return o.Dom.isText(t)?[a(t,0,t.nodeValue.length)]:[l(t)]}if(0===h&&u.childNodes.length===p)return[l(u)];for(let t=h;t<p;t++){let n=u.childNodes[t];o.Dom.isText(n)?i.push(a(n,0,n.nodeValue.length)):i.push(l(n))}return i}let f=new Set,m=t.ed.createTreeWalker(c,NodeFilter.SHOW_ALL,{acceptNode:t=>!r.intersectsNode(t)||o.Dom.closest(t,t=>t&&f.has(t),c)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),g=m.nextNode();for(;g;){if(o.Dom.isElement(g)&&s(r,g))f.add(g),i.push(l(g));else if(o.Dom.isText(g)&&s(r,g))i.push(a(g,0,g.nodeValue.length));else if(o.Dom.isText(g)){let t=0,n=g.nodeValue.length;g===u&&(t=h),g===d&&(n=p),i.push(a(g,t,n))}g=m.nextNode()}return i}let s=(t,i)=>{let n=document.createRange();try{n.selectNodeContents(i)}catch{n.selectNode(i)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function a(t,i,n){return{text:t.nodeValue.slice(i,n),replace(o){t.nodeValue=t.nodeValue.slice(0,i)+o+t.nodeValue.slice(n)}}}function l(t){return{text:t.innerHTML,replace(i){t.innerHTML=i}}}},73674:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},73792:function(t,i,n){"use strict";n.d(i,{checkRemoveChar:function(){return function t(i,n,a,c){var u,d,h,p;let f,m=a?-1:1,g=r.Dom.sibling(n,!a),b=r.Dom.sibling(n,a),v=null,y=!1;for(b||(b=l(n,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(u=b.nodeValue)?void 0:u.length)&&(f=function(t,i,n,a){let l=(0,s.toArray)(t.nodeValue),c=l.length,u=i?c-1:0;if(l[u]===o.INVISIBLE_SPACE)for(;l[u]===o.INVISIBLE_SPACE;)u+=n;let d=l[u];if(l[u+n]===o.INVISIBLE_SPACE){for(u+=n;l[u]===o.INVISIBLE_SPACE;)u+=n;u+=i?1:-1}return l=i&&u<0?[]:l.slice(i?0:u+1,i?u:c),function(t,i,n){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?n.length-1:0;i?t>=0:t<n.length;t+=i?-1:1)if(" "===n[t])n[t]=o.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),d}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=o.INVISIBLE_SPACE)),(null==(d=b.nodeValue)?void 0:d.length)||(v=b),!(0,s.isVoid)(f)&&f!==o.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,n),("sentence"===c||"word"===c&&" "!==p&&p!==o.NBSP_SPACE)&&t(i,n,a,c),y=!0;break}let w=l(b,a,i.editor);v&&(r.Dom.safeRemove(v),v=null),b=w}return v&&(r.Dom.safeRemove(v),v=null),y&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let n=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=n}}(n),n.parentElement!==i.editor&&r.Dom.isBlock(n.parentElement)&&r.Dom.each(n.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(n,i.createInside.element("br")),i.s.setCursorBefore(n),r.Dom.isTag(n.previousSibling,"br")&&!r.Dom.findNotEmptySibling(n,!1)&&r.Dom.after(n,i.createInside.element("br"))),y}}});var o=n(82758),r=n(22732),s=n(21537),a=n(63785);function l(t,i,n){let o=r.Dom.sibling(t,i);return!o&&t.parentNode&&t.parentNode!==n&&(o=(0,a.findMostNestedNeighbor)(t,!i,n,!0)),o}},73943:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="applyFormat",r="Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block",s=[{name:"element",type:"string",description:'HTML element to wrap selection (e.g., "strong", "em", "u", "span")',required:!1},{name:"attributes",type:"object",description:'Attributes to apply (e.g., {"className": "highlight"}, {"style": {"color": "red"}})',required:!1},{name:"remove",type:"boolean",description:"If true, remove the formatting instead of applying it",required:!1,default:!1},{name:"blockIndex",type:"number",description:"Zero-based index of the block to format (if not using current selection)",required:!1},{name:"selector",type:"string",description:"CSS selector to find the block to format (if not using current selection)",required:!1}],a=!0},73948:function(t,i,n){"use strict";n.d(i,{nativeListeners:function(){return u}});var o=n(29960),r=n(15456),s=n(41457),a=n(32118),l=n(21735),c=n(20201);function u(){let t=!1,i=(0,a.elementsMap)(this),n=this;n.e.on(n.tree.container,"dragstart",i=>{let o=(0,l.getItem)(i.target,n.container);o&&n.o.moveFolder&&(t=o)}).on(n.tree.container,"drop",i=>{if((n.o.moveFile||n.o.moveFolder)&&t){let r=(0,o.attr)(t,"-path")||"";if(!n.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item"))||t.classList.contains(this.files.getFullElName("item"))&&(r+=(0,o.attr)(t,"-name"),!n.o.moveFile))return!1;let s=(0,l.getItem)(i.target,n.container);s&&(n.dataProvider.move(r,(0,o.attr)(s,"-path")||"",(0,o.attr)(s,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then(()=>(0,c.loadTree)(this)).catch(n.status),t=!1)}}).on(n.files.container,"contextmenu",(0,s.default)(n)).on(n.files.container,"click",t=>{(0,r.ctrlKey)(t)||(this.state.activeElements=[])}).on(n.files.container,"click",t=>{let o=(0,l.getItem)(t.target,n.container);if(!o)return;let s=(0,l.elementToItem)(o,i);if(s)return(0,r.ctrlKey)(t)?n.state.activeElements=[...n.state.activeElements,s]:n.state.activeElements=[s],t.stopPropagation(),!1}).on(n.files.container,"dragstart",i=>{if(n.o.moveFile){let o=(0,l.getItem)(i.target,n.container);o&&(t=o)}}).on(n.container,"drop",t=>t.preventDefault())}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),c=n(50911),u=n(2692);class d extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),u.JoditPro.plugins.add("mobileView",d)},74551:function(t,i){"use strict";i.default={"copy-format":"Format kopierenт"}},74569:function(t,i,n){"use strict";function o(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(i.length));for(let t=0;t<i.length;t+=1)o[t]=i.charCodeAt(t);return new Blob([o.buffer],{type:n})}n.d(i,{dataURItoBlob:function(){return o}})},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},75259:function(t,i){"use strict";i.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> '},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),c=n(91003)},75330:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return k}});var o=n(91907),r=n(82758),s=n(65478),a=n(37133),l=n(3827),c=n(21537),u=n(12081),d=n(70231),h=n(84075),p=n(6441);n(61251);var f=n(30465),m=n(20201),g=n(73948),b=n(33281),v=n(94538),y=n(11787),w=n(63399),_=n(8172),C=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let k=class t extends h.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let i=[],n=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(i.push(o),n.push(t.isImage||!1))}),this.close(),(0,c.isFunction)(t)&&t({baseurl:"",files:i,isImages:n}),this.close()}return!1}}get _dialog(){var t;let i=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(t=this.o.headerButtons)?t:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(t=>i.events.on(i,t,()=>this.e.fire(t))),i.setSize(this.o.width,this.o.height),i}get storage(){return u.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,i){!t||(0,c.isAbortError)(t)||((0,c.isString)(t)||(t=t.message),(0,c.isString)(t)&&(0,c.trim)(t).length&&this.message.message(t,i?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,i=!1){return this.state.onlyImages=i,this.async.promise((i,n)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,c.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let i=new Date().getTime();i-s<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),s=i}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let a=this.c.div();null==(o=this.toolbar)||o.appendTo(a),this.__updateToolbarButtons(),this._dialog.open(this.browser,a),this.e.fire("sort.filebrowser",this.state.sortBy),(0,m.loadTree)(this).then(i,n).finally(()=>{var t;this.isInDestruct||null==(t=this===null||void 0===this?void 0:this.e)||t.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,c.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){var t;return(null!=(t=this.o.buttons)?t:[]).filter(t=>{if(!(0,c.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){var i;let n=this,o=null==(i=null==t?void 0:t.options)?void 0:i.uploader,r=(0,c.ConfigProto)(o||{},p.Config.defaultOptions.uploader),s=()=>(0,f.loadItems)(this);n.uploader=n.getInstance("Uploader",r),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,s,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),n.e.on("bindUploader.filebrowser",t=>{n.uploader.bind(t,s,n.errorHandler)})}destruct(){var t;!this.isInDestruct&&(null==(t=(0,s.cached)(this,"_dialog"))||t.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var t;let i=this.__getButtons();!function(t,i){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==i[n])return!1;return!0}(this.__prevButtons,i)&&(this.__prevButtons=i,null==(t=this.toolbar)||t.build(i))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new _.FileBrowserTree(this),this.files=new _.FileBrowserFiles(this),this.state=(0,l.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,c.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(t),this.options=(0,c.ConfigProto)(t||{},p.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),b.selfListeners.call(this),g.nativeListeners.call(this),v.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,c.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:i,storeSortBy:n,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},s=i&&this.storage.get("view");s&&null==this.o.view?this.state.view="list"===s?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=n&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(r){const t=this.storage.get("currentPath"),i=this.storage.get("currentSource");this.state.currentPath=null!=t?t:"",this.state.currentSource=null!=i?i:""}this.initUploader(this),this.setStatus(o.STATUSES.ready)}};C([s.cache],k.prototype,"dataProvider",null),C([s.cache],k.prototype,"_dialog",null),C([s.cache],k.prototype,"storage",null),C([s.autobind],k.prototype,"status",null),C([s.autobind],k.prototype,"open",null),C([(0,a.watch)("dataProvider:changePermissions")],k.prototype,"__updateToolbarButtons",null),k=C([(0,s.derive)(d.Dlgs)],k)},75352:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readBlocks",r="Read blocks from the editor with optional filtering and pagination",s=[{name:"offset",type:"number",description:"Number of blocks to skip from the beginning (default: 0)",required:!1,default:0},{name:"limit",type:"number",description:"Maximum number of blocks to return (default: all)",required:!1},{name:"query",type:"string",description:"Filter blocks by text content",required:!1}],a=!1},75393:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> '},75445:function(t,i){"use strict";i.default={}},75554:function(t,i,n){"use strict";var o=n(82749);n(28609);var r=n(50911),s=n(2692);class a extends r.Plugin{afterInit(t){}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"style",group:"font"}])}}(0,o._)(a,"requires",["license"]),s.JoditPro.plugins.add("style",a)},75595:function(t,i,n){"use strict";n.d(i,{readLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=o.Dom.closest(t.sourceImage,"a",i.editor);s?(n.imageLink=(0,r.attr)(s,"href")||"",n.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}},75689:function(t){t.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},75703:function(t,i,n){"use strict";n.r(i),i.default={symbols:"سمبل"}},75882:function(t,i,n){"use strict";n.d(i,{unwrapChildren:function(){return l}});var o=n(2748),r=n(43555),s=n(22030),a=n(97380);function l(t,i){var n;let l,c=[],u=[],d=null==(n=t.options.attributes)?void 0:n.style;if(i.firstChild){let n=o.Dom.eachGen(i),h=n.next();for(;!h.done;){let i=h.value;(0,a.isSuitElement)(t,i,!0)&&(!d||(0,s.hasSameStyleKeys)(i,d))?(void 0===l&&(l=!0),c.push(i)):d&&(0,a.isSameStyleChild)(t,i)?(void 0===l&&(l=!1),u.push(()=>{(0,r.css)(i,Object.keys(d).reduce((t,i)=>(t[i]=null,t),{})),(0,r.attr)(i,"style")||(0,r.attr)(i,"style",null),(0,r.attr)(i,"style")||i.nodeName.toLowerCase()!==t.element||c.push(i)})):o.Dom.isEmptyTextNode(i)||void 0!==l||(l=!1),h=n.next()}}return u.forEach(t=>t()),c.forEach(o.Dom.unwrap),!!l}},75966:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},76014:function(t,i,n){"use strict";n.d(i,{Table:function(){return d}});var o=n(91907),r=n(82758),s=n(65478),a=n(22732),l=n(580),c=n(21537);let u=new WeakMap;class d extends o.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,l.getContainer)(this.j,d,"style",!0),i=[];this.selected.forEach(t=>{let n=(0,c.cssPath)(t);n&&i.push(n)}),t.innerHTML=i.length?i.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i)||new Set;n.add(t),d.__selectedByTable.set(i,n)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i);n&&(n.delete(t),n.size||d.__selectedByTable.delete(i))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(t){let i=d.__selectedByTable.get(t);return i?(0,c.toArray)(i):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,i)=>Math.max(t,i.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,i){let n=[[]],o=(0,c.toArray)(t.rows),r=(t,o)=>{void 0===n[o]&&(n[o]=[]);let r=t.colSpan,s=t.rowSpan,a,l,c=0;for(;n[o][c];)c+=1;for(l=0;s>l;l+=1)for(a=0;a<r;a+=1){if(void 0===n[o+l]&&(n[o+l]=[]),i&&!1===i(t,o+l,c+a,r,s))return!1;n[o+l][c+a]=t}};for(let t=0;t<o.length;t+=1){let i=(0,c.toArray)(o[t].cells);for(let o=0;o<i.length;o+=1)if(!1===r(i[o],t))return n}return n}formalMatrix(t,i){return d.__formalMatrix(t,i)}static __formalCoordinate(t,i,n=!1){let o=0,r=0,s=1,a=1;return d.__formalMatrix(t,(t,l,c,u,d)=>{if(i===t)return o=l,r=c,s=u||1,a=d||1,n&&(r+=(u||1)-1,o+=(d||1)-1),!1}),[o,r,s,a]}formalCoordinate(t,i,n=!1){return d.__formalCoordinate(t,i,n)}static __appendRow(t,i,n,o){var r;let s;if(i)s=i.cloneNode(!0),(0,c.$$)("td,th",i).forEach(t=>{let i=(0,c.attr)(t,"rowspan");if(i&&parseInt(i,10)>1){let n=parseInt(i,10)-1;(0,c.attr)(t,"rowspan",n>1?n:null)}}),(0,c.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let i=d.__getColumnsCount(t);s=o.element("tr");for(let t=0;t<i;t+=1)s.appendChild(o.element("td"))}n&&i&&i.nextSibling?i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling):!n&&i?i.parentNode&&i.parentNode.insertBefore(s,i):((null==(r=t.getElementsByTagName("tbody"))?void 0:r[0])||t).appendChild(s)}appendRow(t,i,n){return d.__appendRow(t,i,n,this.j.createInside)}static __removeRow(t,i){let n,o=d.__formalMatrix(t),r=t.rows[i];o[i].forEach((s,l)=>{if(n=!1,i-1>=0&&o[i-1][l]===s)n=!0;else if(o[i+1]&&o[i+1][l]===s){if(s.parentNode===r&&s.parentNode.nextSibling){n=!0;let r=l+1;for(;o[i+1][r]===s;)r+=1;let c=a.Dom.next(s.parentNode,t=>a.Dom.isTag(t,"tr"),t);c&&(o[i+1][r]?c.insertBefore(s,o[i+1][r]):c.appendChild(s))}}else a.Dom.safeRemove(s);if(n&&(s.parentNode===r||s!==o[i][l-1])){let t=s.rowSpan;(0,c.attr)(s,"rowspan",t-1>1?t-1:null)}}),a.Dom.safeRemove(r)}removeRow(t,i){return d.__removeRow(t,i)}appendColumn(t,i,n=!0){let o=d.__formalMatrix(t);if(!n&&a.Dom.isCell(i.previousElementSibling))return this.appendColumn(t,i.previousElementSibling,!0);let r=n?i.cellIndex+((i.colSpan||1)-1):i.cellIndex,s=n?r+1:r;for(let t=0;t<o.length;){let i=o[t];if(i[r]!==i[s]||r===s){let t=this.j.createInside.element("td");n?a.Dom.after(i[r],t):a.Dom.before(i[r],t),i[r].rowSpan>1&&(t.rowSpan=i[r].rowSpan)}else i[r].colSpan+=1;t+=i[r].rowSpan||1}}static __removeColumn(t,i){let n,o=d.__formalMatrix(t);o.forEach((t,r)=>{let s=t[i];if(n=!1,i-1>=0&&o[r][i-1]===s||i+1<t.length&&o[r][i+1]===s?n=!0:a.Dom.safeRemove(s),n&&(r-1<0||s!==o[r-1][i])){let t=s.colSpan;(0,c.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,i){return d.__removeColumn(t,i)}static __getSelectedBound(t,i){let n,o,r,s=[[1/0,1/0],[0,0]],a=d.__formalMatrix(t);for(n=0;n<a.length;n+=1)for(o=0;a[n]&&o<a[n].length;o+=1)i.includes(a[n][o])&&(s[0][0]=Math.min(n,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(n,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(n=s[0][0];n<=s[1][0];n+=1)for(r=1,o=s[0][1];o<=s[1][1];o+=1){for(;a[n]&&a[n][o-r]&&a[n][o]===a[n][o-r];)s[0][1]=Math.min(o-r,s[0][1]),s[1][1]=Math.max(o-r,s[1][1]),r+=1;for(r=1;a[n]&&a[n][o+r]&&a[n][o]===a[n][o+r];)s[0][1]=Math.min(o+r,s[0][1]),s[1][1]=Math.max(o+r,s[1][1]),r+=1;for(r=1;a[n-r]&&a[n][o]===a[n-r][o];)s[0][0]=Math.min(n-r,s[0][0]),s[1][0]=Math.max(n-r,s[1][0]),r+=1;for(r=1;a[n+r]&&a[n][o]===a[n+r][o];)s[0][0]=Math.min(n+r,s[0][0]),s[1][0]=Math.max(n+r,s[1][0]),r+=1}return s}getSelectedBound(t,i){return d.__getSelectedBound(t,i)}static __normalizeTable(t){let i=[],n=d.__formalMatrix(t);d.__removeExtraColspans(n,i),d.__removeExtraRowspans(n,i);for(let t=0;t<n.length;t+=1)for(let i=0;i<n[t].length;i+=1)void 0!==n[t][i]&&(n[t][i].hasAttribute("rowspan")&&1===n[t][i].rowSpan&&(0,c.attr)(n[t][i],"rowspan",null),n[t][i].hasAttribute("colspan")&&1===n[t][i].colSpan&&(0,c.attr)(n[t][i],"colspan",null),n[t][i].hasAttribute("class")&&!(0,c.attr)(n[t][i],"class")&&(0,c.attr)(n[t][i],"class",null));d.__unmark(i)}static __removeExtraColspans(t,i){for(let n=0;n<t[0].length;n+=1){let o=1e6,r=!1;for(let i=0;i<t.length;i+=1)if(void 0!==t[i][n]){if(t[i][n].colSpan<2){r=!0;break}o=Math.min(o,t[i][n].colSpan)}if(!r)for(let r=0;r<t.length;r+=1)void 0!==t[r][n]&&d.__mark(t[r][n],"colspan",t[r][n].colSpan-o+1,i)}}static __removeExtraRowspans(t,i){let n=0,o=0;for(n=0;n<t.length;n+=1){let r=1e6,s=!1;for(o=0;o<t[n].length;o+=1)if(void 0!==t[n][o]){if(t[n][o].rowSpan<2){s=!0;break}r=Math.min(r,t[n][o].rowSpan)}if(!s)for(o=0;o<t[n].length;o+=1)void 0!==t[n][o]&&d.__mark(t[n][o],"rowspan",t[n][o].rowSpan-r+1,i)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,i){let n=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),s=0,l=null,u=0,p=0,f=0,m=new Set,g=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,a,b,v)=>{r>=o[0][0]&&r<=o[1][0]&&a>=o[0][1]&&a<=o[1][1]&&(m.has(t)||(m.add(t),r===o[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,c.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&n.push(t.innerHTML),b>1&&(p+=b-1),v>1&&(f+=v-1),l?(d.__mark(t,"remove",1,g),h(i).removeSelection(t)):(l=t,u=a)))}),p=o[1][1]-o[0][1]+1,f=o[1][0]-o[0][0]+1,l&&(p>1&&d.__mark(l,"colspan",p,g),f>1&&d.__mark(l,"rowspan",f,g),s&&(d.__mark(l,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),u&&d.__setColumnWidthByDelta(t,u,0,!0,g)),l.innerHTML=n.join("<br/>"),h(i).addSelection(l),m.delete(l),d.__unmark(g),d.__normalizeTable(t),(0,c.toArray)(t.rows).forEach(t=>{t.cells.length||a.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,i){let n,o,r,s,l,c=[];d.__getSelectedCellsByTable(t).forEach(u=>{(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),r=i.createInside.element("tr"),n=d.__formalCoordinate(t,u),u.rowSpan<2?(d.__formalMatrix(t,(t,i,o)=>{n[0]===i&&n[1]!==o&&t!==u&&d.__mark(t,"rowspan",t.rowSpan+1,c)}),a.Dom.after(a.Dom.closest(u,"tr",t),r),r.appendChild(o)):(d.__mark(u,"rowspan",u.rowSpan-1,c),d.__formalMatrix(t,(i,o,r)=>{o>n[0]&&o<n[0]+u.rowSpan&&n[1]>r&&i.parentNode.rowIndex===o&&(l=i),n[0]<o&&i===u&&(s=t.rows[o])}),l?a.Dom.after(l,o):s.insertBefore(o,s.firstChild)),u.colSpan>1&&d.__mark(o,"colspan",u.colSpan,c),d.__unmark(c),h(i).removeSelection(u)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,i){let n,o,s,l=[];d.__getSelectedCellsByTable(t).forEach(c=>{n=d.__formalCoordinate(t,c),c.colSpan<2?d.__formalMatrix(t,(t,i,o)=>{n[1]===o&&n[0]!==i&&t!==c&&d.__mark(t,"colspan",t.colSpan+1,l)}):d.__mark(c,"colspan",c.colSpan-1,l),(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),c.rowSpan>1&&d.__mark(o,"rowspan",c.rowSpan,l);let u=c.offsetWidth;a.Dom.after(c,o),s=u/t.offsetWidth/2,d.__mark(c,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__mark(o,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__unmark(l),h(i).removeSelection(c)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,i,n,o,s){let a=d.__formalMatrix(t),l=0;for(let o=0;o<a.length;o+=1){let c=a[o][i];if(c.colSpan>1&&a.length>1)continue;let u=(c.offsetWidth+n)/t.offsetWidth*100;d.__mark(c,"width",u.toFixed(r.ACCURACY)+"%",s),l=o;break}for(let t=l+1;t<a.length;t+=1){let n=a[t][i];d.__mark(n,"width",null,s)}o||d.__unmark(s)}setColumnWidthByDelta(t,i,n,o,r){return d.__setColumnWidthByDelta(t,i,n,o,r)}static __mark(t,i,n,o){var r;o.push(t);let s=null!=(r=u.get(t))?r:{};s[i]=void 0===n?1:n,u.set(t,s)}static __unmark(t){t.forEach(t=>{let i=u.get(t);i&&(Object.keys(i).forEach(n=>{let o=i[n];switch(n){case"remove":a.Dom.safeRemove(t);break;case"rowspan":(0,c.attr)(t,"rowspan",(0,c.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,c.attr)(t,"colspan",(0,c.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,c.attr)(t,"style")||(0,c.attr)(t,"style",null)):t.style.width=o.toString()}delete i[n]}),u.delete(t))})}constructor(){super(...arguments),this.selected=new Set}}d.__selectedByTable=new WeakMap,function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,s.debounce)()],d.prototype,"__recalculateStyles",null);let h=t=>t.getInstance("Table",t.o)},76059:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});let o={i:"em",b:"strong"};function r(t){let{name:i}=t;return i in o&&(t.name=o[i]),t}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),c=n(29960),u=n(89890);let d=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,c.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i)t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,u.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,u.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},76295:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(21537),a=n(25726),l=n(41180),c=n(12153),u=n(6441),d=n(5567);c.Icon.set("justify",d.default),u.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,i){let n=i.control,r=t.s.current();if(r){let a=o.Dom.closest(r,o.Dom.isBlock,t.editor)||t.editor,c=(0,l.css)(a,"text-align").toString();n.defaultValue&&-1!==n.defaultValue.indexOf(c)&&(c="left");let{list:u,data:d}=n;d&&d.currentValue!==c&&u&&((0,s.isPlainObject)(u)?u[c]:u.includes(c))&&(t.o.textIcons||"select"===n.component?i.state.text=c:i.state.icon.name=c,d.currentValue=c)}},isActive(t,i){let n=t.s.current();if(!n||!i.control.defaultValue)return!1;let r=o.Dom.closest(n,o.Dom.isBlock,t.editor)||t.editor;return -1===i.control.defaultValue.indexOf((0,l.css)(r,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},u.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},u.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},u.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},u.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},r.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let i=i=>(t.s.focus(),t.s.eachSelection(n=>{if(!n)return;let r=o.Dom.up(n,o.Dom.isBlock,t.editor);r||(r=o.Dom.wrapInline(n,t.o.enterBlock,t)),(0,a.alignElement)(i,r)}),!1);t.registerCommand("justifyfull",i),t.registerCommand("justifyright",i),t.registerCommand("justifyleft",i),t.registerCommand("justifycenter",i)})},76636:function(t,i,n){"use strict";n.r(i),n.d(i,{ru:function(){return r.a}});var o=n(28125),r=n.n(o)},76697:function(t,i,n){"use strict";n.d(i,{UISettingsButton:function(){return d}});var o=n(82749),r=n(31635),s=n(79455),a=n(87325),l=n(37133),c=n(48538),u=n(78644);class d extends c.UIElement{className(){return"UISettingsButton"}setParentView(t){return this.settingsPopup?.setParentView(t),this.button?.setParentView(t),super.setParentView(t)}onChangeOptionsClosePopup(t){this.closeCallback()}openSettingsPopup(){return this.settingsPopup||(this.settingsPopup=new s.UISettingsPopup(this.jodit,this.extraState,this.options,this.getConversation,this.updateConversation)),this.settingsPopup.update(),this.settingsPopup}constructor(t,i,n,r,s){super(t),(0,o._)(this,"extraState",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"getConversation",void 0),(0,o._)(this,"updateConversation",void 0),(0,o._)(this,"closeCallback",void 0),(0,o._)(this,"settingsPopup",void 0),(0,o._)(this,"button",void 0),this.extraState=i,this.options=n,this.getConversation=r,this.updateConversation=s,this.closeCallback=()=>{},this.settingsPopup=null,this.button=new u.ToolbarButton(this.jodit,{name:"settings",tooltip:"Settings",popup:(t,i,n)=>(this.closeCallback=n,this.openSettingsPopup())}),this.button.state.variant="initial",this.button.state.size="small",this.container.appendChild(this.button.container)}}(0,r.__decorate)([(0,l.watch)("extraState.displayMode")],d.prototype,"onChangeOptionsClosePopup",null),d=(0,r.__decorate)([a.component],d)},76725:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Výška čáry"}},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},77361:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s},INITIAL:function(){return l},REPLACE:function(){return c},UNSET:function(){return a},UNWRAP:function(){return r},WRAP:function(){return o},_PREFIX:function(){return u}});let o="wrap",r="unwrap",s="change",a="unset",l="initial",c="replace",u="commitStyle"},77469:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537);n(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,n)=>{let o=t||n.iframe.contentWindow.document;if(o.open(),o.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=o.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),o.head&&o.head.appendChild(i)}),i.iframeStyle){let t=o.createElement("style");t.innerHTML=i.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let n=t.c.element("iframe");n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",n.setAttribute("allowtransparency","true"),n.setAttribute("tabindex",i.tabIndex.toString()),n.setAttribute("frameborder","0"),null!=i.iframeSandbox&&n.setAttribute("sandbox",i.iframeSandbox),t.workplace.appendChild(n),t.iframe=n;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let n=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(n.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,n="{%%BODY%%}",o=i.exec(t);return o&&(t=t.replace(i,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(n,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(n.documentElement.outerHTML)!==l(i)&&(n.open(),n.write(t.o.iframeDoctype+l(i)),n.close(),t.editor=n.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):n.body.innerHTML=i,!0),{top:!0})}if(t.editor=n.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");let o=t.async.throttle((...n)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),n=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+n)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,n.documentElement],"load",o).on(n,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let i=new ResizeObserver(o);i.observe(n.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return n.documentElement&&t.e.on(n.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===n.body&&t.s.setCursorIn(n.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var n;null==(n=t.events)||n.fire(t.ow,i)}),!1})})})},77725:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Corrección ortográfica"}},77841:function(t,i,n){"use strict";n.d(i,{parentPath:function(){return o}});let o=t=>{let i=t.split("/").filter(t=>t.length);return i.pop(),i.join("/")||"/"}},77894:function(t,i,n){"use strict";var o=n(76636),r=n(6441),s=n(580);let a=r.Config.prototype.controls.filebrowser;a.settings={icon:"settings",tooltip:"Settings",exec(t){(t.parent??t).e.fire("toggleSettings.filebrowser")}},a.home={icon:"home",tooltip:"Home",exec(t){t.e.fire("goHome.filebrowser")}},a.preview={icon:"eye",tooltip:"Preview",isDisabled:t=>0===t.state.activeElements.length,exec(t){t.e.fire("togglePreview.filebrowser")}},a.next={icon:"angle-right",tooltip:"History next",isDisabled:t=>!t.historyManager.canNext(),exec(t){t.historyManager.next()}},a.previous={icon:"angle-left",tooltip:"History previous",isDisabled:t=>!t.historyManager.canPrevious(),exec(t){t.historyManager.previous()}},a["new-folder"]={icon:"new-folder",exec(t){t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(r.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),(0,s.extendLang)(o)},78116:function(t,i,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},78173:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},78513:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return o.FileBrowser}});var o=n(75330)},78524:function(t,i,n){"use strict";n(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},78584:function(t,i,n){"use strict";n.d(i,{Dialog:function(){return y}});var o,r=n(91907),s=n(82758),a=n(65478),l=n(2748),c=n(580),u=n(76855),d=n(27613),h=n(43555),p=n(38837),f=n(67510),m=n(35608),g=n(84075),b=n(6441),v=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};b.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},b.Config.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let y=o=class t extends g.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:t,shadowRoot:i}=this.o;return t||i||this.od.body}setElements(t,i){let n=[];(0,u.asArray)(i).forEach(i=>{let o;if((0,d.isArray)(i)){let o=this.c.div(this.getFullElName("column"));return n.push(o),t.appendChild(o),this.setElements(o,i)}o=(0,d.isString)(i)?this.c.fromHTML(i):(0,d.hasContainer)(i)?i.container:i,n.push(o),o.parentNode!==t&&t.appendChild(o)}),(0,u.toArray)(t.childNodes).forEach(i=>{-1===n.indexOf(i)&&t.removeChild(i)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(t){let i=t.target;!(!this.o.draggable||i&&i.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,h.css)(this.dialog,"left"),this.startPoint.y=(0,h.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}__onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===s.KEY_ESC&&!0!==this.getMod("static")){let i=this.getMaxZIndexDialog();i?i.close():this.close(),t.stopImmediatePropagation()}}__onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(t,i){return null==t&&(t=this.dialog.offsetWidth),null==i&&(i=this.dialog.offsetHeight),(0,h.css)(this.dialog,{width:t,height:i}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,i){let n=this.ow.innerWidth,o=this.ow.innerHeight,r=n/2-this.dialog.offsetWidth/2,s=o/2-this.dialog.offsetHeight/2;return r<0&&(r=0),s<0&&(s=0),void 0!==t&&void 0!==i&&(this.offsetX=t,this.offsetY=i,this.moved=Math.abs(t-r)>100||Math.abs(i-s)>100),this.dialog.style.left=(t||r)+"px",this.dialog.style.top=(i||s)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,h.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t=0,i,n,o=this;return(0,h.$$)(".jodit-dialog",this.destination).forEach(r=>{i=r.component,n=parseInt((0,h.css)(r,"zIndex"),10),i.isOpened&&!isNaN(n)&&n>t&&(o=i,t=n)}),o}setMaxZIndex(){if(this.getMod("static"))return;let t=0x1312d04,i=0;(0,h.$$)(".jodit-dialog",this.destination).forEach(n=>{t=Math.max(isNaN(i=parseInt((0,h.css)(n,"zIndex"),10))?0:i,t)}),this.container.style.zIndex=(t+1).toString()}toggleFullSize(t){(0,d.isVoid)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,i,n,o){if(c.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,d.isBoolean)(t)&&(n=t),(0,d.isBoolean)(i)&&(o=i),this.destroyAfterClose=!0===n;let r=(0,d.isBoolean)(t)?void 0:t,s=(0,d.isBoolean)(i)?void 0:i;return void 0!==s&&this.setHeader(s),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(o),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,u.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(r.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.__onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1,this.options=(0,h.ConfigProto)(t,(0,h.ConfigProto)(b.Config.prototype.dialog,o.defaultOptions)),l.Dom.safeRemove(this.container);const i=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
|
|
571
571
|
<div class="${i("overlay")}"></div>
|
|
572
572
|
<div class="${this.getFullElName("panel")}">
|
|
573
573
|
<div class="${i("header")}">
|
|
@@ -578,7 +578,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error
|
|
|
578
578
|
<div class="${i("footer")}"></div>
|
|
579
579
|
<div class="${i("resizer")}">${f.Icon.get("resize_handler")}</div>
|
|
580
580
|
</div>
|
|
581
|
-
</div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,h.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);const n=this.getElm("panel");(0,p.assert)(null!=n,"Panel element does not exist");const r=this.getElm("resizer");(0,p.assert)(null!=r,"Resizer element does not exist");const s=this.getElm("header-title");(0,p.assert)(null!=s,"header-title element does not exist");const a=this.getElm("content");(0,p.assert)(null!=a,"Content element does not exist");const u=this.getElm("footer");(0,p.assert)(null!=u,"Footer element does not exist");const m=this.getElm("header-toolbar");(0,p.assert)(null!=m,"header-toolbar element does not exist"),this.dialog=n,this.resizer=r,this.dialogbox_header=s,this.dialogbox_content=a,this.dialogbox_footer=u,this.dialogbox_toolbar=m,(0,h.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});const g=this.getElm("header");g&&this.e.on(g,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);const v=c.pluginSystem.get("fullsize");if((0,d.isFunction)(v)&&v(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=this.getElm("overlay");(0,p.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}};y.defaultOptions={...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},v([a.autobind],y.prototype,"__onMouseUp",null),v([a.autobind],y.prototype,"__onHeaderMouseDown",null),v([a.autobind],y.prototype,"__onMouseMove",null),v([a.autobind],y.prototype,"__onEsc",null),v([a.autobind],y.prototype,"__onResizerMouseDown",null),v([a.autobind],y.prototype,"close",null),v([(0,a.hook)("ready")],y.prototype,"buildToolbar",null),y=o=v([a.component],y)},78614:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},78644:function(t,i,n){"use strict";n.d(i,{ToolbarButton:function(){return I}});var o=n(78213),r=n(45219),s=n(33433),a=n(87325),l=n(37133),c=n(2748),u=n(68345),d=n(23282),h=n(19306),p=n(72430),f=n(70799),m=n(56175),g=n(87058),b=n(38837),v=n(29960),y=n(37790),w=n(62843),_=n(72157),C=n(12153),k=n(56917),S=n(21491),x=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let I=class t extends w.UIButton{className(){return"ToolbarButton"}get toolbar(){let t=(0,a.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){var t,i;let{control:n,state:o}=this,r=this.toolbar;if(!r)return;let s=null==(t=n.value)?void 0:t.call(n,r.jodit,this);void 0!==s&&(o.value=s),o.disabled=this.__calculateDisabledStatus(r),o.activated=this.__calculateActivatedStatus(r),null==(i=n.update)||i.call(n,r.jodit,this)}__calculateActivatedStatus(t){var i,n;return(!(0,h.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(n=(i=this.control).isActive)&&!!n.call(i,this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){var i,n;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(n=(i=this.control).isDisabled)?void 0:n.call(i,this.j,this)))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,d.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,i=this.j.c.span(t),n=super.createContainer();(0,v.attr)(i,"role","listitem"),n.classList.remove(t),n.classList.add(t+"__button"),Object.defineProperty(n,"component",{value:this}),i.appendChild(n);let o=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${C.Icon.get("chevron")}</span>`);return n.appendChild(o),i}focus(){var t;null==(t=this.container.querySelector("button"))||t.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):c.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",t),(0,v.attr)(this.button,"disabled",t),(0,v.attr)(this.container,"disabled",t)}__initFromControl(){var t;let{control:i,state:n}=this;this.updateSize(),n.name=i.name;let{textIcons:o}=this.j.o;if(!0===o||(0,d.isFunction)(o)&&o(i.name)||i.template)n.icon=(0,w.UIButtonState)().icon,n.text=i.text||i.name;else{if(i.iconURL)n.icon.iconURL=i.iconURL;else{let o=i.icon||i.name;n.icon.name=C.Icon.exists(o)||(null==(t=this.j.o.extraIcons)?void 0:t[o])?o:""}i.iconURL||n.icon.name||(n.text=i.text||i.name)}i.tooltip&&(n.tooltip=(0,d.isFunction)(i.tooltip)?i.tooltip(this.j,i,this):i.tooltip),n.hasTrigger=!!(i.list||i.popup&&i.exec)}onTriggerClick(t){var i,n,o;if(this.openedPopup)return void this.__closePopup();let{control:r}=this;if(t.buffer={actionTrigger:this},r.list)return this.__openControlList(r);if((0,d.isFunction)(r.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,g.camelCase)(`before-${r.name}-open-popup`),this.target,r,t)){let s=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,a=r.popup(this.j,s,this.__closePopup,this);a?t.setContent((0,f.isString)(a)?this.j.c.fromHTML(a):a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,g.camelCase)(`after-${r.name}-open-popup`),t.container)}}__openControlList(t){var i;let n=null!=(i=this.jodit.options.controls)?i:{},o=t=>(0,_.findControlType)(t,n),r=t.list,s=this.openPopup(),a=(0,S.makeCollection)(this.j);s.parentElement=this,a.parentElement=s,a.mode="vertical";let l=(i,n)=>{let r;if((0,f.isString)(n)&&o(n))return{name:n.toString(),...o(n)};if((0,f.isString)(i)&&o(i))return{name:i.toString(),...o(i),..."object"==typeof n?n:{}};r=i,(0,p.isPlainObject)(r)&&"title"in r&&"value"in r&&(n=i.value,i=i.title);let{childTemplate:s}=t,a={name:i.toString(),template:s&&((t,i,n)=>s(t,i,n,this)),exec:t.childExec?(i,n,o)=>{var r;return null==(r=t.childExec)?void 0:r.call(t,i,n,{...o,parentControl:t})}:t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],i,n]};return(0,f.isString)(n)&&(a.text=n),a};a.build((0,u.isArray)(r)?r.map(l):(0,y.keys)(r,!1).map(t=>l(t,r[t])),this.target),s.setContent(a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&c.Dom.isNode(t.target)&&(c.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new k.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){var i,n,o,r,s,a,l;let{control:c}=this;if((0,d.isFunction)(c.exec)){let u=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,d=c.exec(this.j,u,{control:c,originalEvent:t,button:this});if(!1!==d&&!0!==d&&(null==(s=null==(r=this.j)?void 0:r.e)||s.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=null==(a=this.j)?void 0:a.e)||l.fire("closeAllPopups afterExec")),!1!==d)return}return c.list?this.__openControlList(c):(0,d.isFunction)(c.popup)?this.onTriggerClick(t):void((c.command||c.name)&&((0,y.call)((0,h.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),c.command||c.name,!1,c.args&&c.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,i,n=null){super(t),this.control=i,this.target=n,this.state={...(0,w.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const r=this.getElm("button");(0,b.assert)(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const s=this.getElm("trigger");(0,b.assert)(s,"Element trigger should exists"),this.trigger=s,s.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(o.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),i.mods&&Object.keys(i.mods).forEach(t=>{i.mods&&this.setMod(t,i.mods[t])})}};x([s.cacheHTML],I.prototype,"createContainer",null),x([(0,l.watch)("state.hasTrigger",{immediately:!1})],I.prototype,"onChangeHasTrigger",null),x([(0,l.watch)("trigger:click")],I.prototype,"onTriggerClick",null),x([r.autobind],I.prototype,"onOutsideClick",null),x([r.autobind],I.prototype,"__closePopup",null),I=x([a.component],I)},78717:function(t,i,n){"use strict";var o=n(75352),r=n(91140);i.default={...o,execute:r.execute}},78720:function(t,i,n){"use strict";n.d(i,{checkBlockNesting:function(){return r}});var o=n(2748);function r(t,i){if(o.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(i)){let i=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);i&&!t.o.dtd.blockLimits[i.tagName.toLowerCase()]&&(t.s.setCursorAfter(i),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i))}}},78777:function(t){t.exports={"Show Blocks":"תראה רחובות"}},78818:function(t,i,n){"use strict";n.d(i,{History:function(){return u}});var o=n(80480),r=n(81577),s=n(6441),a=n(92643),l=n(52604),c=n(57034);s.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class u extends o.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let i=this.snapshot.make();if(!l.Snapshot.equal(i,this.startValue)){let n=new a.Command(this.startValue,i,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(n)}else this.__stack.push(n);this.startValue=i,this.fireChangeStack()}}fireChangeStack(){var t;this.j&&!this.j.isInDestruct&&(null==(t=this.j.events)||t.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,i=new c.Stack(t.o.history.maxHistoryLength),n=new l.Snapshot(t)){super(t),this.updateTick=0,this.__stack=i,this.snapshot=n,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.debounce)()],u.prototype,"onChange",null)},78879:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},79078:function(t,i,n){"use strict";async function o(t,i,n){let o={...i};try{let t=new AbortController().signal,r=await n.executeTool(i.name,i.arguments,t);o={...i,result:{result:r},status:"executed"}}catch(n){o={...i,result:{error:n instanceof Error?n.message:n+""},status:"error"},t.e.fire("toolCallFailed.ai-assistant-pro",o)}return t.e.fire("toolCallExecuted.ai-assistant-pro",o,{toolCallId:o.id,result:o.result}),o}function r(t,i){let n=t.toolCalls?.findIndex(t=>t.id===i.id);if(null==n||-1===n)return t;let o=[...t?.toolCalls??[]];return o[n]=i,{...t,toolCalls:o}}n.d(i,{executeToolCall:function(){return o},updateToolCallInMessage:function(){return r}})},79348:function(t,i,n){"use strict";n.d(i,{Selection:function(){return f}});var o=n(82758),r=n(65478),s=n(2748),a=n(21537),l=n(27613),c=n(38837),u=n(43463),d=n(25639),h=n(45124),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class f{get j(){return this.jodit}errorNode(t){if(!s.Dom.isNode(t))throw(0,a.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,l.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,i=(null==t?void 0:t.rangeCount)?t.getRangeAt(0):null;return!(!i||!s.Dom.isOrContains(this.area,i.startContainer))}createRange(t=!1){let i=this.doc.createRange();return t&&this.selectRange(i),i}remove(){let t=this.sel,i=this.current();if(t&&i)for(let i=0;i<t.rangeCount;i+=1)t.getRangeAt(i).deleteContents(),t.getRangeAt(i).collapse(!0)}clear(){var t,i;(null==(t=this.sel)?void 0:t.rangeCount)&&(null==(i=this.sel)||i.removeAllRanges())}removeNode(t){if(!s.Dom.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");s.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,i){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,i);if(o)return n.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,i);(0,c.assert)(o,"Incorrect caretRangeFromPoint behaviour"),n.setStart(o.startContainer,o.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(t){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){s.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,i){let n=null;i&&(n=i.cloneRange()).collapse(t);let r=this.j.createInside.span();return r.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),r.style.lineHeight="0",r.style.display="none",s.Dom.markTemporary(r),(0,a.attr)(r,"data-"+o.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),n&&s.Dom.isOrContains(this.area,t?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let t=!1,i=t=>`span[data-${o.MARKER_CLASS}=${t?"start":"end"}]`,n=this.area.querySelector(i(!0)),r=this.area.querySelector(i(!1));if(n){if(t=this.createRange(),r)t.setStartAfter(n),s.Dom.safeRemove(n),t.setEndBefore(r),s.Dom.safeRemove(r);else{let i=n.previousSibling;s.Dom.isText(i)?t.setStart(i,i.nodeValue?i.nodeValue.length:0):t.setStartBefore(n),s.Dom.safeRemove(n),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let i=t.getRangeAt(0);(0,c.assert)(i,"Range is null");let n=i.cloneRange();n.collapse(!0);let o=this.j.createInside.fake();s.Dom.safeInsertNode(n,o),i.setStartBefore(o);let r=[o];if(!i.collapsed){let t=i.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();s.Dom.safeInsertNode(t,n),i.setEndAfter(n),r.push(n)}return this.selectRange(i),r}restoreFakes(t){var i,n,o,r;let a=t.filter(t=>t.isConnected);if(!a.length)return;let[l,c]=a,u=this.createRange();u.setStartAfter(l),c&&u.setEndBefore(c),this.selectRange(u),(null==(i=l.parentNode)?void 0:i.firstChild)!==(null==(n=l.parentNode)?void 0:n.lastChild)&&s.Dom.safeRemove(l),(null==(o=null==c?void 0:c.parentNode)?void 0:o.firstChild)!==(null==(r=null==c?void 0:c.parentNode)?void 0:r.lastChild)&&s.Dom.safeRemove(c)}save(t=!1){if(this.hasMarkers)return[];let i=this.sel;if(!i||!i.rangeCount)return[];let n=[],o=i.rangeCount,r=[];for(let t=0;o>t;t+=1)if(r[t]=i.getRangeAt(t),r[t].collapsed){let i=this.marker(!0,r[t]);n[t]={startId:i.id,collapsed:!0,startMarker:i.outerHTML}}else{let i=this.marker(!0,r[t]),o=this.marker(!1,r[t]);n[t]={startId:i.id,endId:o.id,collapsed:!1,startMarker:i.outerHTML,endMarker:o.outerHTML}}if(!t){i.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(n[t].startId);if(o){if(n[t].collapsed)r[t].setStartAfter(o),r[t].collapse(!0);else if(r[t].setStartBefore(o),n[t].endId){let i=this.doc.getElementById(n[t].endId);i&&r[t].setEndAfter(i)}try{i.addRange(r[t].cloneRange())}catch(t){}}}}return n}focus(t={preventScroll:!0}){var i,n;if(!this.isFocused()){let o=(0,a.getScrollParent)(this.j.container),r=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),r&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,r);let l=this.sel,c=(null==l?void 0:l.rangeCount)?null==l?void 0:l.getRangeAt(0):null;if(!c||!s.Dom.isOrContains(this.area,c.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||null==(n=null==(i=this.j)?void 0:i.events)||n.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let i=0;t&&i<t.rangeCount;i+=1)if(!t.getRangeAt(i).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==o.MODE_WYSIWYG)return null;let i=this.sel;if(!i||0===i.rangeCount)return null;let n=i.getRangeAt(0),r=n.startContainer,a=!1;if(s.Dom.isTag(r,"br")&&i.isCollapsed)return r;if(!s.Dom.isText(r)){let o=(0,h.findCorrectCurrentNode)(r,n,a,i.isCollapsed,t,t=>a?t.lastChild:t.firstChild);r=o.node,a=o.rightMode}return r&&s.Dom.isOrContains(this.area,r)?r:null}insertNode(t,i=!0,n=!0){this.errorNode(t);let o=s.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!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",t),r&&r.rangeCount){let i=r.getRangeAt(0),{firstChild:n}=t;s.Dom.isOrContains(this.area,i.commonAncestorContainer)?s.Dom.safeInsertNode(i,t):this.area.appendChild(t),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var t;return null==(t=null==n?void 0:n.previousSibling)?void 0:t.lastChild}].forEach(t=>{let i=t();i&&s.Dom.isEmptyTextNode(i)&&s.Dom.safeRemove(i)})}else this.area.appendChild(t);let n=t=>{if(s.Dom.isBlock(t)){let i=t.lastChild;if(i)return n(i)}this.setCursorAfter(t)};i&&(s.Dom.isFragment(t)?o&&n(o):n(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(null!=o?o:t,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",s.Dom.isFragment(t)?o:t)}insertHTML(t,i=!0){if(""===t)return;let n=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),s.Dom.isNode(t)?n.appendChild(t):n.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,o.appendChild(n.firstChild);this.insertNode(o,i,!1),this.j.__imdSynchronizeValues()}}insertImage(t,i=null,n=null){let o=(0,l.isString)(t)?this.j.createInside.element("img"):t;if((0,l.isString)(t)&&o.setAttribute("src",t),null!=n){let t=n.toString();t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,a.attr)(o,"width",t)}i&&"object"==typeof i&&(0,a.css)(o,i);let r=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){var i;let n=this.sel;if(!n||!n.rangeCount)return;let r=n.getRangeAt(0),c=r.commonAncestorContainer;s.Dom.isHTMLElement(c)||(c=c.parentElement);let u=[],d=r.startOffset,h=c.childNodes.length,p=r.startContainer===this.area?c.childNodes[d<h?d:h-1]:r.startContainer,f=r.endContainer===this.area?c.childNodes[r.endOffset-1]:r.endContainer;s.Dom.isText(p)&&p===r.startContainer&&r.startOffset===(null==(i=p.nodeValue)?void 0:i.length)&&p.nextSibling&&(p=p.nextSibling),s.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let m=t=>{!t||t===c||s.Dom.isEmptyTextNode(t)||(0,l.isMarker)(t)||u.push(t)};m(p),p!==f&&s.Dom.isOrContains(c,p,!0)&&s.Dom.find(p,t=>(m(t),t===f||t&&t.contains&&t.contains(f)),c,!0,!1);let g=i=>{if(s.Dom.isOrContains(this.j.editor,i,!0)){if(i.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(i.childNodes).forEach(g);if(s.Dom.isTag(i,"li"))if(i.firstChild)i=i.firstChild;else{let t=this.j.createInside.text(o.INVISIBLE_SPACE);i.appendChild(t),i=t}t(i)}};0===u.length&&(s.Dom.isEmptyTextNode(p)&&u.push(p),p.firstChild&&u.push(p.firstChild)),u.forEach(g)}cursorInTheEdge(t,i,n=null){var o;let r=!t,l=null==(o=this.sel)?void 0:o.getRangeAt(0);if(null!=n||(n=this.current(!1)),!l||!n||!s.Dom.isOrContains(i,n,!0))return null;let c=t?l.startContainer:l.endContainer,u=t?l.startOffset:l.endOffset,d=t=>!!(t&&!s.Dom.isTag(t,"br")&&!s.Dom.isEmptyTextNode(t)&&!s.Dom.isTemporary(t)&&!(s.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(s.Dom.isText(c)){if((0,h.cursorInTheEdgeOfString)(c,u,t,r))return!1}else{let t=(0,a.toArray)(c.childNodes);if(r){if(t.slice(u).some(d))return!1}else if(t.slice(0,u).some(d))return!1}let p=n;for(;p&&p!==i;){let i=s.Dom.sibling(p,t);if(!i){p=p.parentNode;continue}if((p=i)&&d(p))return!1}return!0}cursorOnTheLeft(t,i){return this.cursorInTheEdge(!0,t,i)}cursorOnTheRight(t,i){return this.cursorInTheEdge(!1,t,i)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,i){var n,o;if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let r=this.createRange(),l=null;return s.Dom.isText(t)?i?r.setStart(t,0):r.setEnd(t,null!=(o=null==(n=t.nodeValue)?void 0:n.length)?o:0):(l=this.j.createInside.fake(),i?r.setStartBefore(t):r.setEndAfter(t),r.collapse(i),s.Dom.safeInsertNode(r,l),r.selectNode(l)),r.collapse(i),this.selectRange(r),l}setCursorIn(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange(),r=t,l=t;do{if(s.Dom.isText(r)||s.Dom.isTag(r,o.INSEPARABLE_TAGS))break;l=r,r=i?r.firstChild:r.lastChild}while(r)if(!r){let t=this.j.createInside.text(o.INVISIBLE_SPACE);s.Dom.isTag(l,o.INSEPARABLE_TAGS)?r=l:(l.appendChild(t),l=t)}let c=r||l;return s.Dom.isTag(c,o.INSEPARABLE_TAGS)?i||s.Dom.isTag(c,"br")?n.setStartBefore(c):n.setEndAfter(c):n.selectNodeContents(c),n.collapse(i),this.selectRange(n),l}selectRange(t,i=!0){let n=this.sel;return i&&!this.isFocused()&&this.focus(),n&&(n.removeAllRanges(),n.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange();return n[i?"selectNodeContents":"selectNode"](t),this.selectRange(n)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let i=t.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(i),n.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let i=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(i,!1,!1),t&&t[0]&&i.appendChild(t[0]),yield i,s.Dom.unwrap(i);return}for(let t of((0,a.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,a.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach(t=>{let i=(0,a.attr)(t,"data-font-size");i&&(t.style.fontSize=i,(0,a.attr)(t,"data-font-size",null))}),(0,a.$$)('font[size="7"]',this.area))){let{firstChild:i,lastChild:n}=t;if(i&&i===n&&(0,l.isMarker)(i)){s.Dom.unwrap(t);continue}i&&(0,l.isMarker)(i)&&s.Dom.before(t,i),n&&(0,l.isMarker)(n)&&s.Dom.after(t,n),yield t,s.Dom.unwrap(t)}}wrapInTag(t){let i=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,l.isMarker)(n.firstChild))continue;(0,l.isFunction)(t)?t(n):i.push(s.Dom.replace(n,t,this.j.createInside))}finally{let t=n.parentNode;t&&(s.Dom.unwrap(n),s.Dom.isEmpty(t)&&s.Dom.unwrap(t))}return i}commitStyle(t){(0,c.assert)((0,a.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,i){if(!this.isCollapsed())return null;let n=this.createRange(),r=this.range;n.setStartBefore(t);let a=this.cursorOnTheRight(t,i),l=this.cursorOnTheLeft(t,i),u=this.j.createInside.element("br"),d=this.j.createInside.fake(),h=d.cloneNode();try{if(a||l){i?s.Dom.before(i,u):s.Dom.safeInsertNode(r,u);let t=(t,i)=>{let n=i(t);for(;n;){let t=i(n);if(n&&(s.Dom.isTag(n,"br")||s.Dom.isEmptyTextNode(n)))s.Dom.safeRemove(n);else break;n=t}};t(u,t=>t.nextSibling),t(u,t=>t.previousSibling),s.Dom.after(u,h),s.Dom.before(u,d),a?(n.setEndBefore(u),r.setEndBefore(u)):(n.setEndAfter(u),r.setEndAfter(u))}else n.setEnd(r.startContainer,r.startOffset);let p=n.extractContents(),f=t=>s.Dom.each(t,t=>s.Dom.isEmptyTextNode(t)&&s.Dom.safeRemove(t));(0,c.assert)(t.parentNode,"Splitting fails");try{if(f(p),f(t),t.parentNode.insertBefore(p,t),!i&&a&&(null==u?void 0:u.parentNode)){let t=this.createRange();t.setStartBefore(u),this.selectRange(t)}}catch(t){if(!o.IS_PROD)throw t}let m=t=>{var i,n,o;(null==(i=null==t?void 0:t.parentNode)?void 0:i.firstChild)===(null==(n=null==t?void 0:t.parentNode)?void 0:n.lastChild)&&(null==(o=null==t?void 0:t.parentNode)||o.appendChild(u.cloneNode()))};m(d),m(h)}finally{s.Dom.safeRemove(d),s.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,i=t.cloneRange();if(!s.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let n=i=>{let n=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(i),s.Dom.safeInsertNode(o,n),(0,u.moveTheNodeAlongTheEdgeOutward)(n,i,this.j.editor),n},o=n(!0),r=n(!1);i.setStartAfter(o),i.setEndBefore(r);let l=s.Dom.findSibling(o,!1),c=s.Dom.findSibling(r,!0);if(l!==c){let t=s.Dom.isElement(l)&&s.Dom.isOrContains(l,r),n=!t&&s.Dom.isElement(c)&&s.Dom.isOrContains(c,o);if(t||n){let n=t?l:c,a=n;for(;s.Dom.isElement(n);)(n=t?n.firstElementChild:n.lastElementChild)&&(t?s.Dom.isOrContains(n,r):s.Dom.isOrContains(n,o))&&(a=n);t?i.setStart(a,0):i.setEnd(a,a.childNodes.length)}}if(this.selectRange(i),s.Dom.safeRemove(o,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}constructor(t){this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([r.autobind],f.prototype,"createRange",null),p([r.autobind],f.prototype,"focus",null),p([r.autobind],f.prototype,"setCursorAfter",null),p([r.autobind],f.prototype,"setCursorBefore",null),p([r.autobind],f.prototype,"setCursorIn",null)},79419:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(94775),a=n(23140),l=n(92699),c=n(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",c.default)},79455:function(t,i,n){"use strict";n.d(i,{UISettingsPopup:function(){return u}});var o=n(82749),r=n(31635),s=n(16015),a=n(71102),l=n(65478),c=n(67510);class u extends c.UIElement{className(){return"UISettingsPopup"}async onChangeTheme(){let t=this.state?.theme&&this.state?.theme!=="parent"?this.state?.theme:this.j.o.theme;this.container.classList.remove("jodit_theme_dark","jodit_theme_light"),this.container.classList.add("jodit_theme_"+t)}update(){return this.dialogSettings?.update(),this.globalSettings?.update(),this.updateContent(),super.update()}setParentView(t){return this.globalSettings?.setParentView(t),this.dialogSettings?.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
|
|
581
|
+
</div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,h.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);const n=this.getElm("panel");(0,p.assert)(null!=n,"Panel element does not exist");const r=this.getElm("resizer");(0,p.assert)(null!=r,"Resizer element does not exist");const s=this.getElm("header-title");(0,p.assert)(null!=s,"header-title element does not exist");const a=this.getElm("content");(0,p.assert)(null!=a,"Content element does not exist");const u=this.getElm("footer");(0,p.assert)(null!=u,"Footer element does not exist");const m=this.getElm("header-toolbar");(0,p.assert)(null!=m,"header-toolbar element does not exist"),this.dialog=n,this.resizer=r,this.dialogbox_header=s,this.dialogbox_content=a,this.dialogbox_footer=u,this.dialogbox_toolbar=m,(0,h.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});const g=this.getElm("header");g&&this.e.on(g,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);const v=c.pluginSystem.get("fullsize");if((0,d.isFunction)(v)&&v(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=this.getElm("overlay");(0,p.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}};y.defaultOptions={...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},v([a.autobind],y.prototype,"__onMouseUp",null),v([a.autobind],y.prototype,"__onHeaderMouseDown",null),v([a.autobind],y.prototype,"__onMouseMove",null),v([a.autobind],y.prototype,"__onEsc",null),v([a.autobind],y.prototype,"__onResizerMouseDown",null),v([a.autobind],y.prototype,"close",null),v([(0,a.hook)("ready")],y.prototype,"buildToolbar",null),y=o=v([a.component],y)},78614:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},78644:function(t,i,n){"use strict";n.d(i,{ToolbarButton:function(){return I}});var o=n(78213),r=n(45219),s=n(33433),a=n(87325),l=n(37133),c=n(2748),u=n(68345),d=n(23282),h=n(19306),p=n(72430),f=n(70799),m=n(56175),g=n(87058),b=n(38837),v=n(29960),y=n(37790),w=n(62843),_=n(72157),C=n(12153),k=n(56917),S=n(21491),x=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let I=class t extends w.UIButton{className(){return"ToolbarButton"}get toolbar(){let t=(0,a.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){var t,i;let{control:n,state:o}=this,r=this.toolbar;if(!r)return;let s=null==(t=n.value)?void 0:t.call(n,r.jodit,this);void 0!==s&&(o.value=s),o.disabled=this.__calculateDisabledStatus(r),o.activated=this.__calculateActivatedStatus(r),null==(i=n.update)||i.call(n,r.jodit,this)}__calculateActivatedStatus(t){var i,n;return(!(0,h.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(n=(i=this.control).isActive)&&!!n.call(i,this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){var i,n;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(n=(i=this.control).isDisabled)?void 0:n.call(i,this.j,this)))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,d.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,i=this.j.c.span(t),n=super.createContainer();(0,v.attr)(i,"role","listitem"),n.classList.remove(t),n.classList.add(t+"__button"),Object.defineProperty(n,"component",{value:this}),i.appendChild(n);let o=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${C.Icon.get("chevron")}</span>`);return n.appendChild(o),i}focus(){var t;null==(t=this.container.querySelector("button"))||t.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):c.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",t),(0,v.attr)(this.button,"disabled",t),(0,v.attr)(this.container,"disabled",t)}__initFromControl(){var t;let{control:i,state:n}=this;this.updateSize(),n.name=i.name;let{textIcons:o}=this.j.o;if(!0===o||(0,d.isFunction)(o)&&o(i.name)||i.template)n.icon=(0,w.UIButtonState)().icon,n.text=i.text||i.name;else{if(i.iconURL)n.icon.iconURL=i.iconURL;else{let o=i.icon||i.name;n.icon.name=C.Icon.exists(o)||(null==(t=this.j.o.extraIcons)?void 0:t[o])?o:""}i.iconURL||n.icon.name||(n.text=i.text||i.name)}i.tooltip&&(n.tooltip=(0,d.isFunction)(i.tooltip)?i.tooltip(this.j,i,this):i.tooltip),n.hasTrigger=!!(i.list||i.popup&&i.exec)}onTriggerClick(t){var i,n,o;if(this.openedPopup)return void this.__closePopup();let{control:r}=this;if(t.buffer={actionTrigger:this},r.list)return this.__openControlList(r);if((0,d.isFunction)(r.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,g.camelCase)(`before-${r.name}-open-popup`),this.target,r,t)){let s=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,a=r.popup(this.j,s,this.__closePopup,this);a?t.setContent((0,f.isString)(a)?this.j.c.fromHTML(a):a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,g.camelCase)(`after-${r.name}-open-popup`),t.container)}}__openControlList(t){var i;let n=null!=(i=this.jodit.options.controls)?i:{},o=t=>(0,_.findControlType)(t,n),r=t.list,s=this.openPopup(),a=(0,S.makeCollection)(this.j);s.parentElement=this,a.parentElement=s,a.mode="vertical";let l=(i,n)=>{let r;if((0,f.isString)(n)&&o(n))return{name:n.toString(),...o(n)};if((0,f.isString)(i)&&o(i))return{name:i.toString(),...o(i),..."object"==typeof n?n:{}};r=i,(0,p.isPlainObject)(r)&&"title"in r&&"value"in r&&(n=i.value,i=i.title);let{childTemplate:s}=t,a={name:i.toString(),template:s&&((t,i,n)=>s(t,i,n,this)),exec:t.childExec?(i,n,o)=>{var r;return null==(r=t.childExec)?void 0:r.call(t,i,n,{...o,parentControl:t})}:t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],i,n]};return(0,f.isString)(n)&&(a.text=n),a};a.build((0,u.isArray)(r)?r.map(l):(0,y.keys)(r,!1).map(t=>l(t,r[t])),this.target),s.setContent(a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&c.Dom.isNode(t.target)&&(c.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new k.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){var i,n,o,r,s,a,l;let{control:c}=this;if((0,d.isFunction)(c.exec)){let u=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,d=c.exec(this.j,u,{control:c,originalEvent:t,button:this});if(!1!==d&&!0!==d&&(null==(s=null==(r=this.j)?void 0:r.e)||s.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=null==(a=this.j)?void 0:a.e)||l.fire("closeAllPopups afterExec")),!1!==d)return}return c.list?this.__openControlList(c):(0,d.isFunction)(c.popup)?this.onTriggerClick(t):void((c.command||c.name)&&((0,y.call)((0,h.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),c.command||c.name,!1,c.args&&c.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,i,n=null){super(t),this.control=i,this.target=n,this.state={...(0,w.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const r=this.getElm("button");(0,b.assert)(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const s=this.getElm("trigger");(0,b.assert)(s,"Element trigger should exists"),this.trigger=s,s.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(o.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),i.mods&&Object.keys(i.mods).forEach(t=>{i.mods&&this.setMod(t,i.mods[t])})}};x([s.cacheHTML],I.prototype,"createContainer",null),x([(0,l.watch)("state.hasTrigger",{immediately:!1})],I.prototype,"onChangeHasTrigger",null),x([(0,l.watch)("trigger:click")],I.prototype,"onTriggerClick",null),x([r.autobind],I.prototype,"onOutsideClick",null),x([r.autobind],I.prototype,"__closePopup",null),I=x([a.component],I)},78717:function(t,i,n){"use strict";var o=n(75352),r=n(91140);i.default={...o,execute:r.execute}},78720:function(t,i,n){"use strict";n.d(i,{checkBlockNesting:function(){return r}});var o=n(2748);function r(t,i){if(o.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(i)){let i=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);i&&!t.o.dtd.blockLimits[i.tagName.toLowerCase()]&&(t.s.setCursorAfter(i),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i))}}},78777:function(t){t.exports={"Show Blocks":"תראה רחובות"}},78818:function(t,i,n){"use strict";n.d(i,{History:function(){return u}});var o=n(80480),r=n(81577),s=n(6441),a=n(92643),l=n(52604),c=n(57034);s.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class u extends o.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let i=this.snapshot.make();if(!l.Snapshot.equal(i,this.startValue)){let n=new a.Command(this.startValue,i,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(n)}else this.__stack.push(n);this.startValue=i,this.fireChangeStack()}}fireChangeStack(){var t;this.j&&!this.j.isInDestruct&&(null==(t=this.j.events)||t.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,i=new c.Stack(t.o.history.maxHistoryLength),n=new l.Snapshot(t)){super(t),this.updateTick=0,this.__stack=i,this.snapshot=n,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.debounce)()],u.prototype,"onChange",null)},78879:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},79078:function(t,i,n){"use strict";async function o(t,i,n){let o={...i};try{let t=new AbortController().signal,r=await n.executeTool(i.name,i.arguments,t);o={...i,result:{result:r},status:"executed"}}catch(n){o={...i,result:{error:n instanceof Error?n.message:n+""},status:"error"},t.e.fire("toolCallFailed.ai-assistant-pro",o)}return t.e.fire("toolCallExecuted.ai-assistant-pro",o,{toolCallId:o.id,result:o.result}),o}function r(t,i){let n=t.toolCalls?.findIndex(t=>t.id===i.id);if(null==n||-1===n)return t;let o=[...t?.toolCalls??[]];return o[n]=i,{...t,toolCalls:o}}n.d(i,{executeToolCall:function(){return o},updateToolCallInMessage:function(){return r}})},79348:function(t,i,n){"use strict";n.d(i,{Selection:function(){return f}});var o=n(82758),r=n(65478),s=n(2748),a=n(21537),l=n(27613),c=n(38837),u=n(43463),d=n(25639),h=n(45124),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class f{get j(){return this.jodit}errorNode(t){if(!s.Dom.isNode(t))throw(0,a.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,l.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,i=(null==t?void 0:t.rangeCount)?t.getRangeAt(0):null;return!(!i||!s.Dom.isOrContains(this.area,i.startContainer))}createRange(t=!1){let i=this.doc.createRange();return t&&this.selectRange(i),i}remove(){let t=this.sel,i=this.current();if(t&&i)for(let i=0;i<t.rangeCount;i+=1)t.getRangeAt(i).deleteContents(),t.getRangeAt(i).collapse(!0)}clear(){var t,i;(null==(t=this.sel)?void 0:t.rangeCount)&&(null==(i=this.sel)||i.removeAllRanges())}removeNode(t){if(!s.Dom.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");s.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,i){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,i);if(o)return n.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,i);(0,c.assert)(o,"Incorrect caretRangeFromPoint behaviour"),n.setStart(o.startContainer,o.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(t){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){s.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,i){let n=null;i&&(n=i.cloneRange()).collapse(t);let r=this.j.createInside.span();return r.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),r.style.lineHeight="0",r.style.display="none",s.Dom.markTemporary(r),(0,a.attr)(r,"data-"+o.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),n&&s.Dom.isOrContains(this.area,t?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let t=!1,i=t=>`span[data-${o.MARKER_CLASS}=${t?"start":"end"}]`,n=this.area.querySelector(i(!0)),r=this.area.querySelector(i(!1));if(n){if(t=this.createRange(),r)t.setStartAfter(n),s.Dom.safeRemove(n),t.setEndBefore(r),s.Dom.safeRemove(r);else{let i=n.previousSibling;s.Dom.isText(i)?t.setStart(i,i.nodeValue?i.nodeValue.length:0):t.setStartBefore(n),s.Dom.safeRemove(n),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let i=t.getRangeAt(0);(0,c.assert)(i,"Range is null");let n=i.cloneRange();n.collapse(!0);let o=this.j.createInside.fake();s.Dom.safeInsertNode(n,o),i.setStartBefore(o);let r=[o];if(!i.collapsed){let t=i.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();s.Dom.safeInsertNode(t,n),i.setEndAfter(n),r.push(n)}return this.selectRange(i),r}restoreFakes(t){var i,n,o,r;let a=t.filter(t=>t.isConnected);if(!a.length)return;let[l,c]=a,u=this.createRange();u.setStartAfter(l),c&&u.setEndBefore(c),this.selectRange(u),(null==(i=l.parentNode)?void 0:i.firstChild)!==(null==(n=l.parentNode)?void 0:n.lastChild)&&s.Dom.safeRemove(l),(null==(o=null==c?void 0:c.parentNode)?void 0:o.firstChild)!==(null==(r=null==c?void 0:c.parentNode)?void 0:r.lastChild)&&s.Dom.safeRemove(c)}save(t=!1){if(this.hasMarkers)return[];let i=this.sel;if(!i||!i.rangeCount)return[];let n=[],o=i.rangeCount,r=[];for(let t=0;o>t;t+=1)if(r[t]=i.getRangeAt(t),r[t].collapsed){let i=this.marker(!0,r[t]);n[t]={startId:i.id,collapsed:!0,startMarker:i.outerHTML}}else{let i=this.marker(!0,r[t]),o=this.marker(!1,r[t]);n[t]={startId:i.id,endId:o.id,collapsed:!1,startMarker:i.outerHTML,endMarker:o.outerHTML}}if(!t){i.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(n[t].startId);if(o){if(n[t].collapsed)r[t].setStartAfter(o),r[t].collapse(!0);else if(r[t].setStartBefore(o),n[t].endId){let i=this.doc.getElementById(n[t].endId);i&&r[t].setEndAfter(i)}try{i.addRange(r[t].cloneRange())}catch(t){}}}}return n}focus(t={preventScroll:!0}){var i,n;if(!this.isFocused()){let o=(0,a.getScrollParent)(this.j.container),r=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),r&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,r);let l=this.sel,c=(null==l?void 0:l.rangeCount)?null==l?void 0:l.getRangeAt(0):null;if(!c||!s.Dom.isOrContains(this.area,c.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||null==(n=null==(i=this.j)?void 0:i.events)||n.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let i=0;t&&i<t.rangeCount;i+=1)if(!t.getRangeAt(i).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==o.MODE_WYSIWYG)return null;let i=this.sel;if(!i||0===i.rangeCount)return null;let n=i.getRangeAt(0),r=n.startContainer,a=!1;if(s.Dom.isTag(r,"br")&&i.isCollapsed)return r;if(!s.Dom.isText(r)){let o=(0,h.findCorrectCurrentNode)(r,n,a,i.isCollapsed,t,t=>a?t.lastChild:t.firstChild);r=o.node,a=o.rightMode}return r&&s.Dom.isOrContains(this.area,r)?r:null}insertNode(t,i=!0,n=!0){this.errorNode(t);let o=s.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!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",t),r&&r.rangeCount){let i=r.getRangeAt(0),{firstChild:n}=t;s.Dom.isOrContains(this.area,i.commonAncestorContainer)?s.Dom.safeInsertNode(i,t):this.area.appendChild(t),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var t;return null==(t=null==n?void 0:n.previousSibling)?void 0:t.lastChild}].forEach(t=>{let i=t();i&&s.Dom.isEmptyTextNode(i)&&s.Dom.safeRemove(i)})}else this.area.appendChild(t);let n=t=>{if(s.Dom.isBlock(t)){let i=t.lastChild;if(i)return n(i)}this.setCursorAfter(t)};i&&(s.Dom.isFragment(t)?o&&n(o):n(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(null!=o?o:t,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",s.Dom.isFragment(t)?o:t)}insertHTML(t,i=!0){if(""===t)return;let n=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),s.Dom.isNode(t)?n.appendChild(t):n.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,o.appendChild(n.firstChild);this.insertNode(o,i,!1),this.j.__imdSynchronizeValues()}}insertImage(t,i=null,n=null){let o=(0,l.isString)(t)?this.j.createInside.element("img"):t;if((0,l.isString)(t)&&o.setAttribute("src",t),null!=n){let t=n.toString();t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,a.attr)(o,"width",t)}i&&"object"==typeof i&&(0,a.css)(o,i);let r=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){var i;let n=this.sel;if(!n||!n.rangeCount)return;let r=n.getRangeAt(0),c=r.commonAncestorContainer;s.Dom.isHTMLElement(c)||(c=c.parentElement);let u=[],d=r.startOffset,h=c.childNodes.length,p=r.startContainer===this.area?c.childNodes[d<h?d:h-1]:r.startContainer,f=r.endContainer===this.area?c.childNodes[r.endOffset-1]:r.endContainer;s.Dom.isText(p)&&p===r.startContainer&&r.startOffset===(null==(i=p.nodeValue)?void 0:i.length)&&p.nextSibling&&(p=p.nextSibling),s.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let m=t=>{!t||t===c||s.Dom.isEmptyTextNode(t)||(0,l.isMarker)(t)||u.push(t)};m(p),p!==f&&s.Dom.isOrContains(c,p,!0)&&s.Dom.find(p,t=>(m(t),t===f||t&&t.contains&&t.contains(f)),c,!0,!1);let g=i=>{if(s.Dom.isOrContains(this.j.editor,i,!0)){if(i.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(i.childNodes).forEach(g);if(s.Dom.isTag(i,"li"))if(i.firstChild)i=i.firstChild;else{let t=this.j.createInside.text(o.INVISIBLE_SPACE);i.appendChild(t),i=t}t(i)}};0===u.length&&(s.Dom.isEmptyTextNode(p)&&u.push(p),p.firstChild&&u.push(p.firstChild)),u.forEach(g)}cursorInTheEdge(t,i,n=null){var o;let r=!t,l=null==(o=this.sel)?void 0:o.getRangeAt(0);if(null!=n||(n=this.current(!1)),!l||!n||!s.Dom.isOrContains(i,n,!0))return null;let c=t?l.startContainer:l.endContainer,u=t?l.startOffset:l.endOffset,d=t=>!!(t&&!s.Dom.isTag(t,"br")&&!s.Dom.isEmptyTextNode(t)&&!s.Dom.isTemporary(t)&&!(s.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(s.Dom.isText(c)){if((0,h.cursorInTheEdgeOfString)(c,u,t,r))return!1}else{let t=(0,a.toArray)(c.childNodes);if(r){if(t.slice(u).some(d))return!1}else if(t.slice(0,u).some(d))return!1}let p=n;for(;p&&p!==i;){let i=s.Dom.sibling(p,t);if(!i){p=p.parentNode;continue}if((p=i)&&d(p))return!1}return!0}cursorOnTheLeft(t,i){return this.cursorInTheEdge(!0,t,i)}cursorOnTheRight(t,i){return this.cursorInTheEdge(!1,t,i)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,i){var n,o;if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let r=this.createRange(),l=null;return s.Dom.isText(t)?i?r.setStart(t,0):r.setEnd(t,null!=(o=null==(n=t.nodeValue)?void 0:n.length)?o:0):(l=this.j.createInside.fake(),i?r.setStartBefore(t):r.setEndAfter(t),r.collapse(i),s.Dom.safeInsertNode(r,l),r.selectNode(l)),r.collapse(i),this.selectRange(r),l}setCursorIn(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange(),r=t,l=t;do{if(s.Dom.isText(r)||s.Dom.isTag(r,o.INSEPARABLE_TAGS))break;l=r,r=i?r.firstChild:r.lastChild}while(r)if(!r){let t=this.j.createInside.text(o.INVISIBLE_SPACE);s.Dom.isTag(l,o.INSEPARABLE_TAGS)?r=l:(l.appendChild(t),l=t)}let c=r||l;return s.Dom.isTag(c,o.INSEPARABLE_TAGS)?i||s.Dom.isTag(c,"br")?n.setStartBefore(c):n.setEndAfter(c):n.selectNodeContents(c),n.collapse(i),this.selectRange(n),l}selectRange(t,i=!0){let n=this.sel;return i&&!this.isFocused()&&this.focus(),n&&(n.removeAllRanges(),n.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange();return n[i?"selectNodeContents":"selectNode"](t),this.selectRange(n)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let i=t.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(i),n.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let i=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(i,!1,!1),t&&t[0]&&i.appendChild(t[0]),yield i,s.Dom.unwrap(i);return}for(let t of((0,a.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,a.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach(t=>{let i=(0,a.attr)(t,"data-font-size");i&&(t.style.fontSize=i,(0,a.attr)(t,"data-font-size",null))}),(0,a.$$)('font[size="7"]',this.area))){let{firstChild:i,lastChild:n}=t;if(i&&i===n&&(0,l.isMarker)(i)){s.Dom.unwrap(t);continue}i&&(0,l.isMarker)(i)&&s.Dom.before(t,i),n&&(0,l.isMarker)(n)&&s.Dom.after(t,n),yield t,s.Dom.unwrap(t)}}wrapInTag(t){let i=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,l.isMarker)(n.firstChild))continue;(0,l.isFunction)(t)?t(n):i.push(s.Dom.replace(n,t,this.j.createInside))}finally{let t=n.parentNode;t&&(s.Dom.unwrap(n),s.Dom.isEmpty(t)&&s.Dom.unwrap(t))}return i}commitStyle(t){(0,c.assert)((0,a.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,i){if(!this.isCollapsed())return null;let n=this.createRange(),r=this.range;n.setStartBefore(t);let a=this.cursorOnTheRight(t,i),l=this.cursorOnTheLeft(t,i),u=this.j.createInside.element("br"),d=this.j.createInside.fake(),h=d.cloneNode();try{if(a||l){i?s.Dom.before(i,u):s.Dom.safeInsertNode(r,u);let t=(t,i)=>{let n=i(t);for(;n;){let t=i(n);if(n&&(s.Dom.isTag(n,"br")||s.Dom.isEmptyTextNode(n)))s.Dom.safeRemove(n);else break;n=t}};t(u,t=>t.nextSibling),t(u,t=>t.previousSibling),s.Dom.after(u,h),s.Dom.before(u,d),a?(n.setEndBefore(u),r.setEndBefore(u)):(n.setEndAfter(u),r.setEndAfter(u))}else n.setEnd(r.startContainer,r.startOffset);let p=n.extractContents(),f=t=>s.Dom.each(t,t=>s.Dom.isEmptyTextNode(t)&&s.Dom.safeRemove(t));(0,c.assert)(t.parentNode,"Splitting fails");try{if(f(p),f(t),t.parentNode.insertBefore(p,t),!i&&a&&(null==u?void 0:u.parentNode)){let t=this.createRange();t.setStartBefore(u),this.selectRange(t)}}catch(t){if(!o.IS_PROD)throw t}let m=t=>{var i,n,o;(null==(i=null==t?void 0:t.parentNode)?void 0:i.firstChild)===(null==(n=null==t?void 0:t.parentNode)?void 0:n.lastChild)&&(null==(o=null==t?void 0:t.parentNode)||o.appendChild(u.cloneNode()))};m(d),m(h)}finally{s.Dom.safeRemove(d),s.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,i=t.cloneRange();if(!s.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let n=i=>{let n=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(i),s.Dom.safeInsertNode(o,n),(0,u.moveTheNodeAlongTheEdgeOutward)(n,i,this.j.editor),n},o=n(!0),r=n(!1);i.setStartAfter(o),i.setEndBefore(r);let l=s.Dom.findSibling(o,!1),c=s.Dom.findSibling(r,!0);if(l!==c){let t=s.Dom.isElement(l)&&s.Dom.isOrContains(l,r),n=!t&&s.Dom.isElement(c)&&s.Dom.isOrContains(c,o);if(t||n){let n=t?l:c,a=n;for(;s.Dom.isElement(n);)(n=t?n.firstElementChild:n.lastElementChild)&&(t?s.Dom.isOrContains(n,r):s.Dom.isOrContains(n,o))&&(a=n);t?i.setStart(a,0):i.setEnd(a,a.childNodes.length)}}if(this.selectRange(i),s.Dom.safeRemove(o,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}constructor(t){this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([r.autobind],f.prototype,"createRange",null),p([r.autobind],f.prototype,"focus",null),p([r.autobind],f.prototype,"setCursorAfter",null),p([r.autobind],f.prototype,"setCursorBefore",null),p([r.autobind],f.prototype,"setCursorIn",null)},79419:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(94775),a=n(23140),l=n(92699),c=n(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",c.default)},79455:function(t,i,n){"use strict";n.d(i,{UISettingsPopup:function(){return u}});var o=n(82749),r=n(31635),s=n(16015),a=n(71102),l=n(65478),c=n(67510);class u extends c.UIElement{className(){return"UISettingsPopup"}async onChangeTheme(){let t=this.state?.theme&&this.state?.theme!=="parent"?this.state?.theme:this.j.o.theme;this.container.classList.remove("jodit_theme_dark","jodit_theme_light"),this.container.classList.add("jodit_theme_"+t)}update(){return this.dialogSettings?.update(),this.globalSettings?.update(),this.updateContent(),super.update()}setParentView(t){return this.globalSettings?.setParentView(t),this.dialogSettings?.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
|
|
582
582
|
<div class="&__header">
|
|
583
583
|
<h3 class="&__title">~Settings~</h3>
|
|
584
584
|
</div>
|
|
@@ -587,7 +587,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error
|
|
|
587
587
|
<div class='&__wrapper'>
|
|
588
588
|
<button class='&__button'>css</button>
|
|
589
589
|
</div>
|
|
590
|
-
</div>`}static extractStyle(t,i){let n=i.ownerDocument.defaultView?.getComputedStyle(i)||{},o=(t,i,o,r)=>{let s=n[o];return!s||["none","inherit","initial","unset"].includes(s)?{[o]:!1}:(s.replace(/,\s/g,",").split(/\s+/).forEach(n=>{if(/[0-9.]+(px|pt|em|%)/.test(n)){let o=t.shift();o&&(i[o]=n)}else"inset"===n?i.boxShadowInset=!0:i[r]=n}),i[o]=!0,i)};Object.assign(t,{text:i.innerText,className:i.className,href:i.getAttribute("href")||"",...(()=>{let t={solid:!0,bgStart:n.backgroundColor??"#44c767",bgEnd:n.backgroundColor??"#44c767"},i=n.backgroundImage;if(i&&/linear-gradient/.test(i)){let n=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(i);n&&(t.solid=!1,t.bgStart=n[1]||t.bgStart,t.bgEnd=n[2]||"#5cbf2a")}return t})(),borderColor:n?.borderColor??"#18ab29",borderRadius:n?.borderRadius??0,borderSize:n?.borderWidth??1,...o(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:n.color,fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:"bold"===n.fontWeight,fontItalic:"italic"===n.fontStyle,paddingX:n.paddingLeft,paddingY:n.paddingTop,...o(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}constructor(t,i){super(t),(0,o._)(this,"style",void 0),this.style=i,this.__updateStyles()}}(0,r.__decorate)([(0,s.watch)("style")],d.prototype,"__updateStyles",null),d=(0,r.__decorate)([s.component],d)},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){if(r&&o.Dom.isElement(i)&&!0!==r[i.nodeName]){let t=i.attributes;if(t&&t.length){let o=[];for(let n=0;n<t.length;n+=1){let s=r[i.nodeName][t[n].name];s&&(!0===s||s===t[n].value)||o.push(t[n].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},82749:function(t,i,n){"use strict";function o(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}n.d(i,{_:function(){return o}})},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return S},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return x},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ec},KEY_ALT:function(){return M},KEY_BACKSPACE:function(){return L},KEY_DELETE:function(){return H},KEY_DOWN:function(){return F},KEY_ENTER:function(){return P},KEY_ESC:function(){return R},KEY_F3:function(){return U},KEY_LEFT:function(){return z},KEY_META:function(){return j},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return O},KEY_TAB:function(){return D},KEY_UP:function(){return B},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return _},SPACE_REG_EXP_START:function(){return w},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return k},globalWindow:function(){return C},lang:function(){return eg}});let o="4.9.12",r="es2021",s=!0,a=!0,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,k="u">typeof document?document:void 0,S=/^(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,x=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),A=new Set(E),j="Meta",L="Backspace",D="Tab",P="Enter",R="Escape",M="Alt",z="ArrowLeft",B="ArrowUp",N="ArrowRight",F="ArrowDown",O="Space",H="Delete",U="F3",q=5,V=10,W=[j,L,H,B,F,N,z,P,R,U,D],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),ec={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=k.currentScript;if(t)return eu(t.src);let i=k.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(C.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(t?.value,10)||0,parseInt(i?.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[n,o]=this.state.size;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(t?.value)||0,parseFloat(i?.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[n,o]=this.state.center;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const[n,r]=i.size,[s,a]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:n,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:a,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){i.type=t}}),new l.UISelect(t,{label:"Layer",value:i.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){i.layer=t}})])}}(0,r.__decorate)([s.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([s.component],c)},83059:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},83111:function(t,i,n){"use strict";n.d(i,{ToolbarSelect:function(){return l}});var o=n(65478),r=n(72430),s=n(70799),a=n(78644);let l=class t extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){var t,i,n;super.update(),this.state.icon.name="";let{list:o,data:a}=this.control;if(o){let l=this.state.value||(a&&(0,s.isString)(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(o)[0]);let c=((0,r.isPlainObject)(o)&&o[l.toString()]||l).toString();this.state.text=null!=(n=null==(i=(t=this.control).textTemplate)?void 0:i.call(t,this.jodit,c))?n:c}}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},83160:function(t,i){"use strict";i.default={"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"}},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let c=a.fakes(),u=t.s.wrapInTagGen(c),d=u.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=u.next()}a.restoreFakes(c)}},83671:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(50911),c=n(80870),u=n(21491);n(86012);class d extends l.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath");let t=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===o.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",t),t(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),r.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(t,i)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(i.clientX,i.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?r.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,i)=>{this.j.s.focus();let n=(0,a.attr)(i.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch(t){}return this.j.s.select(t),!1},this.tpl=(t,i,n,o)=>{let r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${i}" title="${o}" tabindex="-1"'>${(0,a.trim)(n)}</a></span>`),s=r.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),t){let i,n,o;r.Dom.up(t,t=>{t&&this.j.editor!==t&&!r.Dom.isText(t)&&!r.Dom.isComment(t)&&(i=t.nodeName.toLowerCase(),n=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,n,i,this.j.i18n("Select %s",i)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}s.pluginSystem.add("xpath",d)},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},83725:function(t,i,n){"use strict";n.d(i,{Autocomplete:function(){return u}});var o=n(82749),r=n(31635),s=n(31356),a=n(35934),l=n(65478),c=n(62405);class u extends c.UIGroup{className(){return"Autocomplete"}onChangeSelection(){this.elements.forEach(t=>t.setMod("active",!1)),this.elements[this.currentSelection]?.setMod("active",!0),this.elements[this.currentSelection]?.container.scrollIntoView(!1)}build(t){let i=this.elements[this.currentSelection]?.item.value,n=t=>t.value,o=s.ListReconciler.reconcile(this.__previousList,t,{getId:n}),r=new Set;o.toRemove.forEach(t=>{let i=n(t);if(r.has(i))return;r.add(i);let o=this.itemsMap.get(i);o&&(-1!==this.elements.indexOf(o)&&(this.remove(o),o.destruct()),this.itemsMap.delete(t.value))}),o.toCreate.forEach(i=>{let o=n(i);if(r.has(o))return;r.add(o);let s=new a.AutocompleteItem(this.jodit,i,i=>{this.currentSelection=t.findIndex(t=>n(t)===i),this.select()});this.itemsMap.set(o,s);let l=t.indexOf(i);this.append(s,l)}),o.toUpdate.forEach(({newItem:t,index:i})=>{let o=n(t);if(r.has(o))return;r.add(o);let s=this.itemsMap.get(o);s&&(s.item=t,this.elements.indexOf(s)!==i&&i<this.elements.length&&(this.remove(s),this.append(s,i)))});let l=this.currentSelection;this.currentSelection=Math.max(0,t.findIndex(t=>n(t)===i)),l===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...t]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...t){super(...t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),(0,o._)(this,"__previousList",[]),(0,o._)(this,"itemsMap",new Map)}}(0,r.__decorate)([(0,l.watch)("currentSelection")],u.prototype,"onChangeSelection",null),u=(0,r.__decorate)([l.component],u)},83967:function(t,i,n){"use strict";var o=n(75689),r=n.n(o),s=n(6441),a=n(53326);s.Config.prototype.controls.pasteCode={icon:r(),tooltip:"Paste code",command:"pasteCode"},s.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:(t,i)=>"u">typeof Prism?Prism.highlight(t,Prism.languages[i]||Prism.languages.plain,i):(0,a.htmlspecialchars)(t),isLangLoaded:t=>"html"===t||"u">typeof Prism&&!!Prism.languages[t],js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(t,i,n)=>`<pre class="language-${i}">${(0,a.htmlspecialchars)(n)}</pre>`,languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}},83987:function(t,i,n){"use strict";n.d(i,{buildData:function(){return r}});var o=n(21537);function r(t,i){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,i);let n=t.ow.FormData;if(void 0!==n){if(i instanceof n||(0,o.isString)(i))return i;let t=new n;return Object.keys(i).forEach(n=>{t.append(n,i[n])}),t}return i}},84021:function(t,i,n){"use strict";n.d(i,{removeExtraTags:function(){return r}});let o=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function r(t){return"none"===t.style.get("display")||0===t.length&&"span"===t.name||o.has(t.name)?(t.remove(),null):t}},84075:function(t,i,n){"use strict";n.d(i,{ViewWithToolbar:function(){return g}});var o=n(78213),r=n(45219),s=n(37133),a=n(2748),l=n(76855),c=n(70799),u=n(76078),d=n(67510),h=n(43649),p=n(35608),f=n(21491),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class g extends p.View{get toolbarContainer(){return!this.o.fullsize&&((0,c.isString)(this.o.toolbar)||a.Dom.isHTMLElement(this.o.toolbar))?(0,u.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&a.Dom.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){var t;if(!this.o.toolbar)return;let i=this.o.buttons?(0,l.splitArray)(this.o.buttons):[];null==(t=this.toolbar)||t.setRemoveButtons(this.o.removeButtons).build(i.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){var i;this.registeredButtons.add(t);let n=null!=(i=t.group)?i:"other";return this.groupToButtons[n]||(this.groupToButtons[n]=[]),null!=t.position?this.groupToButtons[n][t.position]=t.name:this.groupToButtons[n].push(t.name),this}unregisterButton(t){var i;this.registeredButtons.delete(t);let n=null!=(i=t.group)?i:"other",o=this.groupToButtons[n];if(o){let i=o.indexOf(t.name);-1!==i&&o.splice(i,1),0===o.length&&delete this.groupToButtons[n]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map(t=>(0,h.isButtonGroup)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t)}destruct(){this.isDestructed||(this.setStatus(o.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(t,i=!1){super(t,i),this.toolbar=(0,f.makeCollection)(this),this.__defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.__tooltip=new d.UITooltip(this),this.isJodit=i,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}m([(0,s.watch)(":rebuildToolbar")],g.prototype,"buildToolbar",null),m([r.autobind],g.prototype,"beforeToolbarBuild",null)},84272:function(t,i,n){"use strict";n.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var o=n(82758),r=n(2748);function s(t,i){let{s:n}=t,o=i;if(!o){o=t.createInside.fake();let{range:i}=n;r.Dom.safeInsertNode(i,o),i.collapse()}let s=r.Dom.furthest(o,a,t.editor);if(s)if(n.cursorOnTheLeft(s))r.Dom.before(s,o);else if(n.cursorOnTheRight(s))r.Dom.after(s,o);else{let t=n.splitSelection(s);t&&r.Dom.after(t,o)}i||(n.setCursorBefore(o),r.Dom.safeRemove(o))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,o.INSEPARABLE_TAGS)}},84380:function(t,i,n){"use strict";var o=n(82758),r=n(6441),s=n(117);r.Config.prototype.askBeforePasteHTML=!0,r.Config.prototype.processPasteHTML=!0,r.Config.prototype.scrollToPastedContent=!0,r.Config.prototype.pasteExcludeStripTags=["br","hr"],r.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],r.Config.prototype.memorizeChoiceWhenPasteFragment=!1,r.Config.prototype.nl2brInPlainText=!0;let a="pasteStorage";r.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,i,{control:n}){if(n.name===a)return void t.execCommand("showPasteStorage");t.s.focus();let r="",l=!0;if(navigator.clipboard){try{let t=await navigator.clipboard.read();if(t&&t.length){let i=await t[0].getType(o.TEXT_PLAIN);r=await new Response(i).text()}l=!1}catch(t){o.IS_PROD}if(l)try{r=await navigator.clipboard.readText(),l=!1}catch(t){o.IS_PROD}}l&&(l=0===(r=t.buffer.get(o.CLIPBOARD_ID)||"").length);let c=t.value;l?(t.ed.execCommand("paste"),(l=c===t.value)||t.e.fire("afterPaste")):r.length?((0,s.pasteInsertHtml)(null,t,r),t.e.fire("afterPaste")):l&&t.alert("Your browser doesn't support direct access to the clipboard.",()=>void t.s.focus())},list:{[a]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},84858:function(t,i){"use strict";i.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},85017:function(t,i){"use strict";i.default={"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé","Embed code":"Code d'intégration",Edit:"Modifier",All:"Tout sélectionner","License: %s":"Licence: %s"}},85120:function(t,i,n){"use strict";n.d(i,{UITextArea:function(){return c}});var o,r=n(65478),s=n(87325),a=n(80256),l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let c=o=class t extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:i}=this.state;this.nativeInput.style.resize=i?"auto":"none",this.nativeInput.rows=null!=t?t:5}constructor(t,i){super(t,i),this.state={...o.defaultState},Object.assign(this.state,i),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};c.defaultState={...a.UIInput.defaultState,size:5,resizable:!0},l([(0,r.watch)(["state.size","state.resizable"])],c.prototype,"onChangeStateSize",null),c=o=l([s.component],c)},85130:function(t,i,n){"use strict";n.d(i,{execute:function(){return r}});var o=n(6689);async function r(t,i,n){let{contextCharsBefore:r,contextCharsAfter:s}=i;if((0,o.throwIfAborted)(n),t.s.restore(),t.s.isCollapsed())return{hasSelection:!1};let a=t.s.html,l=t.s.range,c=l.toString(),u={hasSelection:!0,html:a,text:c,startContainer:l.startContainer.nodeName,endContainer:l.endContainer.nodeName};if(r>0||s>0){let i=t.editor.textContent||"",n=i.substring(0,i.indexOf(c)),o=i.substring(i.indexOf(c)+c.length);r>0&&(u.contextBefore=n.slice(-r)),s>0&&(u.contextAfter=o.slice(0,s))}return u}},85174:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(3536);var s=n(4941),a=n(65478),l=n(49055),c=n(20356),u=n(2692);class d extends c.Plugin{async afterInit(t){let i=await t.o.emoji.data();t.isInDestruct||(this.data={...i,emoji:i.emoji.map(s.Emoji.normalizeEmoji)},t.o.emoji.enableAutoComplete&&t.e.fire("registerAutocompleteSource",this.onAutoComplete),t.async.requestIdleCallback(()=>{t.getInstance(s.Emoji)}))}onAutoComplete(t){return t.length>2&&":"===t[0]&&(t=t.substr(1).toLowerCase(),(0,l.trim)(t).length)?this.data.emoji.filter(i=>i.description?.indexOf(t)===0).sort((i,n)=>i.description.indexOf(t)-n.description.indexOf(t)).map(t=>({title:`${t.emoji} ${t.description}`,value:t.emoji})):[]}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode),(0,o._)(this,"buttons",[{name:"emoji",group:"insert"}]),(0,o._)(this,"data",void 0)}}(0,o._)(d,"requires",["autocomplete","license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAutoComplete",null),u.JoditPro.plugins.add("emoji",d)},85407:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(21537),l=n(20356),c=n(10830);class u extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let t=(0,c.Button)(this.j,"paste","Paste","primary");t.onAction(this.paste);let i=(0,c.Button)(this.j,"","Cancel");i.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,i]),this.j.e.on(this.listBox,"click dblclick",t=>{let i=t.target;return r.Dom.isTag(i,"a")&&i.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(i,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),r.Dom.safeRemove(this.previewBox),r.Dom.safeRemove(this.listBox),r.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=t=>{let i=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(t.key)){if(t.key===o.KEY_UP&&(0===i?i=this.list.length-1:i-=1),t.key===o.KEY_DOWN&&(i===this.list.length-1?i=0:i+=1),t.key===o.KEY_ENTER)return void this.paste();i!==this.currentIndex&&this.selectIndex(i),t.stopImmediatePropagation(),t.preventDefault()}},this.selectIndex=t=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((i,n)=>{i.classList.remove("jodit_active"),t===n&&this.previewBox&&(i.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],i.focus())}),this.currentIndex=t},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,i)=>{let n=this.j.c.element("a");n.textContent=i+1+". "+t.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(n,"keydown",this.onKeyDown),(0,a.attr)(n,"href","#"),(0,a.attr)(n,"data-index",i.toString()),(0,a.attr)(n,"tab-index","-1"),this.listBox&&this.listBox.appendChild(n)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}s.pluginSystem.add("pasteStorage",u)},85567:function(t,i,n){"use strict";n.d(i,{PII:function(){return o},WARN:function(){return r}});let o=440,r=940},85723:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Hauteur de ligne"}},85745:function(t,i,n){"use strict";n(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},86012:function(t,i,n){"use strict";n(6441).Config.prototype.showXPathInStatusbar=!0},86019:function(t,i,n){"use strict";n.d(i,{Jodit:function(){return o.Jodit}});var o=n(2303),r=n(27613),s=n(82758),a=n(65478),l=n(41409),c=n(17555),u=n(26152);n(46448),Object.keys(s).forEach(t=>{o.Jodit[t]=s[t]});let d=t=>"__esModule"!==t;Object.keys(c).filter(d).forEach(t=>{l.Icon.set(t.replace("_","-"),c[t])}),Object.keys(l).filter(d).forEach(t=>{var i;let n=l[t],s=(0,r.isFunction)(null==(i=n.prototype)?void 0:i.className)?n.prototype.className():t;(0,r.isString)(s)&&(o.Jodit.modules[s]=n)}),Object.keys(a).filter(d).forEach(t=>{o.Jodit.decorators[t]=a[t]}),["Confirm","Alert","Prompt"].forEach(t=>{o.Jodit[t]=l[t]}),Object.keys(u.default).filter(d).forEach(t=>{o.Jodit.lang[t]=u.default[t]})},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},86273:function(t,i){"use strict";i.default={"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado","License: %s":"Licencia: %s"}},86327:function(t,i,n){"use strict";n.d(i,{UIForm:function(){return u}});var o=n(4012),r=n(87325),s=n(43555),a=n(80256),l=n(12234),c=n(62405);let u=class t extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let i=this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(i.reduce((t,i)=>(t[i.state.name]=i.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,s.attr)(t,"dir",this.j.o.direction||"auto"),(0,s.attr)(t,"novalidate",""),t}constructor(...t){var i,n;super(...t),(null==(i=this.options)?void 0:i.className)&&this.container.classList.add(null==(n=this.options)?void 0:n.className)}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],u)},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},86401:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},86428:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},86449:function(t,i,n){"use strict";n.d(i,{APIClient:function(){return a}});var o=n(82749),r=n(82758),s=n(21537);class a{async sendRequest(t,i,n,o,a){let{apiRequest:l,requestTimeout:c,maxRetries:u}=this.jodit.o.aiAssistantPro;if(!l)throw Error("AI Assistant Pro callback is not configured");let d=new AbortController;this.abortControllers.add(d);try{let h=this.buildRequestContext(t,i,n,o,a),p=null;for(let t=0;u>=t;t++)try{if(d.signal.aborted)throw(0,s.abort)();let t=setTimeout(()=>{d.abort()},c);try{let i=await l(h,d.signal);return clearTimeout(t),this.validateResponse(i),i}catch(i){throw clearTimeout(t),i}}catch(i){if(p=i,r.IS_PROD,u>t){let i=this.calculateRetryDelay(t);await this.sleep(i)}else throw i}throw p||Error("API request failed after all retries")}finally{this.abortControllers.delete(d)}}abort(){this.abortControllers.forEach(t=>{t.abort()}),this.abortControllers.clear()}isInProgress(){return this.abortControllers.size>0}buildRequestContext(t,i,n,o,r){let{apiMode:s,instructions:a}=this.jodit.o.aiAssistantPro,l={mode:s,conversationId:t,tools:this.toolRegistry.getAllTools(),selectionContexts:o,conversationOptions:r,instructions:a},c=[];if("full"===s)c=i;else if(n){let t=i.findIndex(t=>t.id===n);c=-1!==t?i.slice(t+1):i,l={...l,parentMessageId:n}}else c=i;return{...l,messages:this.expandToolMessages(c,i.find(t=>t.id===n))}}expandToolMessages(t,i){let n=[];for(let i of t)n.push(i),this.expandToolResultsMessage(i,n);return i&&this.expandToolResultsMessage(i,n),n}expandToolResultsMessage(t,i){if(t.toolCalls&&t.toolCalls.length>0)for(let n of t.toolCalls){let o=n.result??{error:"result not found"};if(i.find(t=>t.id===`${n.id}-result`))continue;let r={id:`${n.id}-result`,role:"tool",content:o.error?"Error: "+o.error:JSON.stringify(o.result),timestamp:t.timestamp,toolResults:[{toolCallId:n.id,result:o}]};i.push(r)}}validateResponse(t){if("final"!==t.mode)return;let i=t.response;if(!i)throw Error("API returned empty response");if(!i.responseId)throw Error("API response missing responseId");if(void 0===i.content)throw Error("API response missing content");if(void 0===i.finished)throw Error("API response missing finished flag");if(i.toolCalls){if(!Array.isArray(i.toolCalls))throw Error("API response toolCalls must be an array");i.toolCalls.forEach((t,i)=>{if(!t.id)throw Error(`Tool call at index ${i} is missing id`);if(!t.name)throw Error(`Tool call at index ${i} is missing name`);if(!t.arguments||"object"!=typeof t.arguments)throw Error(`Tool call at index ${i} has invalid arguments`)})}}calculateRetryDelay(t){let{retryDelay:i}=this.jodit.o.aiAssistantPro;return i*Math.pow(2,t)+Math.random()*i}sleep(t){return new Promise(i=>setTimeout(i,t))}destruct(){this.abort()}constructor(t,i){(0,o._)(this,"jodit",void 0),(0,o._)(this,"toolRegistry",void 0),(0,o._)(this,"abortControllers",void 0),this.jodit=t,this.toolRegistry=i,this.abortControllers=new Set}}},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return a}});var o=n(2748),r=n(43555);function s(t,i){(o.Dom.isElement(t)||o.Dom.isFragment(t))&&(i.removeOnError&&(a(t),(0,r.$$)("[onerror]",t).forEach(t=>a(t,i))),i.safeJavaScriptLink&&(a(t),(0,r.$$)('a[href^="javascript"]',t).forEach(t=>a(t,i))))}function a(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let l=t.getAttribute("href");return i&&l&&0===l.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+l),s=!0),s}},86563:function(t,i,n){"use strict";n.d(i,{UIMessageList:function(){return u}});var o=n(82749),r=n(31635),s=n(51359),a=n(65478),l=n(62405),c=n(31356);class u extends l.UIGroup{className(){return"UIMessageList"}render(){return'<div class="&__scroll-container"></div>'}afterRender(){this.scrollContainer=this.container}onUserScroll(){if(!this.scrollContainer)return;let{scrollTop:t,scrollHeight:i,clientHeight:n}=this.scrollContainer;this.autoScrollEnabled=i-t-n<10}onMessageSent(){this.autoScrollEnabled=!0,this.scrollToBottom()}appendChildToContainer(t){this.scrollContainer&&this.scrollContainer.appendChild(t)}setMessages(t){let i=this.messages.slice();this.messages=t.slice(),this.updateMessageList(i),this.scrollToBottom()}updateMessageList(t){let i=c.ListReconciler.reconcile(t,this.messages,{getId:t=>t.id,isEqual:(t,i)=>t.id===i.id&&t.content===i.content&&t.timestamp===i.timestamp&&JSON.stringify(t.artifacts)===JSON.stringify(i.artifacts)&&JSON.stringify(t.toolCalls)===JSON.stringify(i.toolCalls),preserveOrder:!0});i.toRemove.forEach(t=>{let i=this.messageItems.get(t.id);i&&(-1!==this.elements.indexOf(i)&&(this.remove(i),i.destruct()),this.messageItems.delete(t.id))}),i.toUpdate.forEach(({newItem:t,index:i})=>{let n=this.messageItems.get(t.id);n&&(n.updateMessage(t),this.elements.indexOf(n)!==i&&i<this.elements.length&&(this.remove(n),this.append(n,i)))}),i.toCreate.forEach(t=>{let i=new s.UIMessageListItem(this.j,t,this.params);this.messageItems.set(t.id,i);let n=this.messages.indexOf(t);this.append(i,n)})}scrollToBottom(){!this.j.isDestructed&&this.autoScrollEnabled&&(this.container.scrollTop=this.container.scrollHeight)}destruct(){this.messageItems.clear(),this.messages=[],super.destruct()}constructor(t,i){super(t),(0,o._)(this,"params",void 0),(0,o._)(this,"messages",void 0),(0,o._)(this,"messageItems",void 0),(0,o._)(this,"scrollContainer",void 0),(0,o._)(this,"autoScrollEnabled",void 0),this.params=i,this.messages=[],this.messageItems=new Map,this.autoScrollEnabled=!0}}(0,r.__decorate)([(0,a.hook)("ready")],u.prototype,"afterRender",null),(0,r.__decorate)([(0,a.watch)(["scrollContainer:wheel","scrollContainer:scroll","scrollContainer:touchmove"]),(0,a.throttle)(t=>t.defaultTimeout)],u.prototype,"onUserScroll",null),(0,r.__decorate)([(0,a.watch)(":messageSent.ai-assistant-pro")],u.prototype,"onMessageSent",null),(0,r.__decorate)([a.autobind],u.prototype,"setMessages",null),(0,r.__decorate)([(0,a.throttle)(t=>2*t.defaultTimeout)],u.prototype,"scrollToBottom",null),u=(0,r.__decorate)([a.component],u)},86583:function(t,i,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},86835:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},87394:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,i,n){let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let i=t.c.div();return i.classList.add("jodit-symbols"),i.appendChild(o),t.e.on(o,"close_dialog",n),i}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let i=o.querySelector("a");i&&i.focus()}}}},87536:function(t,i,n){"use strict";n.d(i,{checkRemoveContentNotEditable:function(){return a}});var o=n(22732),r=n(21537),s=n(45124);function a(t,i,n){let a=o.Dom.findSibling(i,n);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=o.Dom.findSibling(i.parentElement,n)),!(!o.Dom.isElement(a)||o.Dom.isContentEditable(a,t.editor))&&((0,r.call)(n?o.Dom.before:o.Dom.after,a,i),o.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,n),(0,r.call)(n?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},87602:function(t,i,n){"use strict";n.d(i,{applySize:function(){return l}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);function l(t,i,n,l){if(i!==t.offsetWidth||n!==t.offsetHeight){let c=i?(0,a.normalSizeToString)(i):null,u=n?(0,a.normalSizeToString)(n):null;(0,s.css)(t,{width:c,height:c&&l?null:u}),(0,r.attr)(t,"width",c&&(0,o.isNumeric)(i)&&(0,r.attr)(t,"width")?c:null),(!(0,r.attr)(t,"width")||l)&&(u=null),(0,r.attr)(t,"height",u)}}},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec(t,i){a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},88572:function(t,i,n){"use strict";n.d(i,{UIFormButtonGenerator:function(){return u}});var o=n(82749),r=n(2748),s=n(4510),a=n(38837),l=n(67510),c=n(62357);class u extends l.UIElement{className(){return"UIFormButtonGenerator"}update(){this.onUpdates.forEach(t=>t());let t=this.getElm("box-shadow");(0,a.assert)(null!=t,"box-shadow does not exists");let i=this.getElm("text-shadow");(0,a.assert)(null!=i,"text-shadow does not exists"),t.style.display=this.state.boxShadow?"":"none",i.style.display=this.state.textShadow?"":"none"}render(){return`<div>
|
|
590
|
+
</div>`}static extractStyle(t,i){let n=i.ownerDocument.defaultView?.getComputedStyle(i)||{},o=(t,i,o,r)=>{let s=n[o];return!s||["none","inherit","initial","unset"].includes(s)?{[o]:!1}:(s.replace(/,\s/g,",").split(/\s+/).forEach(n=>{if(/[0-9.]+(px|pt|em|%)/.test(n)){let o=t.shift();o&&(i[o]=n)}else"inset"===n?i.boxShadowInset=!0:i[r]=n}),i[o]=!0,i)};Object.assign(t,{text:i.innerText,className:i.className,href:i.getAttribute("href")||"",...(()=>{let t={solid:!0,bgStart:n.backgroundColor??"#44c767",bgEnd:n.backgroundColor??"#44c767"},i=n.backgroundImage;if(i&&/linear-gradient/.test(i)){let n=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(i);n&&(t.solid=!1,t.bgStart=n[1]||t.bgStart,t.bgEnd=n[2]||"#5cbf2a")}return t})(),borderColor:n?.borderColor??"#18ab29",borderRadius:n?.borderRadius??0,borderSize:n?.borderWidth??1,...o(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:n.color,fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:"bold"===n.fontWeight,fontItalic:"italic"===n.fontStyle,paddingX:n.paddingLeft,paddingY:n.paddingTop,...o(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}constructor(t,i){super(t),(0,o._)(this,"style",void 0),this.style=i,this.__updateStyles()}}(0,r.__decorate)([(0,s.watch)("style")],d.prototype,"__updateStyles",null),d=(0,r.__decorate)([s.component],d)},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){if(r&&o.Dom.isElement(i)&&!0!==r[i.nodeName]){let t=i.attributes;if(t&&t.length){let o=[];for(let n=0;n<t.length;n+=1){let s=r[i.nodeName][t[n].name];s&&(!0===s||s===t[n].value)||o.push(t[n].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},82749:function(t,i,n){"use strict";function o(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}n.d(i,{_:function(){return o}})},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return S},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return x},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ec},KEY_ALT:function(){return M},KEY_BACKSPACE:function(){return L},KEY_DELETE:function(){return H},KEY_DOWN:function(){return O},KEY_ENTER:function(){return P},KEY_ESC:function(){return R},KEY_F3:function(){return U},KEY_LEFT:function(){return z},KEY_META:function(){return j},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return F},KEY_TAB:function(){return D},KEY_UP:function(){return B},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return _},SPACE_REG_EXP_START:function(){return w},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return k},globalWindow:function(){return C},lang:function(){return eg}});let o="4.9.16",r="es2021",s=!0,a=!0,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,k="u">typeof document?document:void 0,S=/^(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,x=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),A=new Set(E),j="Meta",L="Backspace",D="Tab",P="Enter",R="Escape",M="Alt",z="ArrowLeft",B="ArrowUp",N="ArrowRight",O="ArrowDown",F="Space",H="Delete",U="F3",q=5,V=10,W=[j,L,H,B,O,N,z,P,R,U,D],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),ec={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=k.currentScript;if(t)return eu(t.src);let i=k.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(C.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(t?.value,10)||0,parseInt(i?.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[n,o]=this.state.size;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(t?.value)||0,parseFloat(i?.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[n,o]=this.state.center;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const[n,r]=i.size,[s,a]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:n,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:a,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){i.type=t}}),new l.UISelect(t,{label:"Layer",value:i.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){i.layer=t}})])}}(0,r.__decorate)([s.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([s.component],c)},83059:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},83111:function(t,i,n){"use strict";n.d(i,{ToolbarSelect:function(){return l}});var o=n(65478),r=n(72430),s=n(70799),a=n(78644);let l=class t extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){var t,i,n;super.update(),this.state.icon.name="";let{list:o,data:a}=this.control;if(o){let l=this.state.value||(a&&(0,s.isString)(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(o)[0]);let c=((0,r.isPlainObject)(o)&&o[l.toString()]||l).toString();this.state.text=null!=(n=null==(i=(t=this.control).textTemplate)?void 0:i.call(t,this.jodit,c))?n:c}}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},83160:function(t,i){"use strict";i.default={"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"}},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let c=a.fakes(),u=t.s.wrapInTagGen(c),d=u.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=u.next()}a.restoreFakes(c)}},83671:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(50911),c=n(80870),u=n(21491);n(86012);class d extends l.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath");let t=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===o.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",t),t(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),r.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(t,i)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(i.clientX,i.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?r.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,i)=>{this.j.s.focus();let n=(0,a.attr)(i.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch(t){}return this.j.s.select(t),!1},this.tpl=(t,i,n,o)=>{let r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${i}" title="${o}" tabindex="-1"'>${(0,a.trim)(n)}</a></span>`),s=r.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),t){let i,n,o;r.Dom.up(t,t=>{t&&this.j.editor!==t&&!r.Dom.isText(t)&&!r.Dom.isComment(t)&&(i=t.nodeName.toLowerCase(),n=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,n,i,this.j.i18n("Select %s",i)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}s.pluginSystem.add("xpath",d)},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},83725:function(t,i,n){"use strict";n.d(i,{Autocomplete:function(){return u}});var o=n(82749),r=n(31635),s=n(31356),a=n(35934),l=n(65478),c=n(62405);class u extends c.UIGroup{className(){return"Autocomplete"}onChangeSelection(){this.elements.forEach(t=>t.setMod("active",!1)),this.elements[this.currentSelection]?.setMod("active",!0),this.elements[this.currentSelection]?.container.scrollIntoView(!1)}build(t){let i=this.elements[this.currentSelection]?.item.value,n=t=>t.value,o=s.ListReconciler.reconcile(this.__previousList,t,{getId:n}),r=new Set;o.toRemove.forEach(t=>{let i=n(t);if(r.has(i))return;r.add(i);let o=this.itemsMap.get(i);o&&(-1!==this.elements.indexOf(o)&&(this.remove(o),o.destruct()),this.itemsMap.delete(t.value))}),o.toCreate.forEach(i=>{let o=n(i);if(r.has(o))return;r.add(o);let s=new a.AutocompleteItem(this.jodit,i,i=>{this.currentSelection=t.findIndex(t=>n(t)===i),this.select()});this.itemsMap.set(o,s);let l=t.indexOf(i);this.append(s,l)}),o.toUpdate.forEach(({newItem:t,index:i})=>{let o=n(t);if(r.has(o))return;r.add(o);let s=this.itemsMap.get(o);s&&(s.item=t,this.elements.indexOf(s)!==i&&i<this.elements.length&&(this.remove(s),this.append(s,i)))});let l=this.currentSelection;this.currentSelection=Math.max(0,t.findIndex(t=>n(t)===i)),l===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...t]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...t){super(...t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),(0,o._)(this,"__previousList",[]),(0,o._)(this,"itemsMap",new Map)}}(0,r.__decorate)([(0,l.watch)("currentSelection")],u.prototype,"onChangeSelection",null),u=(0,r.__decorate)([l.component],u)},83967:function(t,i,n){"use strict";var o=n(75689),r=n.n(o),s=n(6441),a=n(53326);s.Config.prototype.controls.pasteCode={icon:r(),tooltip:"Paste code",command:"pasteCode"},s.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight:(t,i)=>"u">typeof Prism?Prism.highlight(t,Prism.languages[i]||Prism.languages.plain,i):(0,a.htmlspecialchars)(t),isLangLoaded:t=>"html"===t||"u">typeof Prism&&!!Prism.languages[t],js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(t,i,n)=>`<pre class="language-${i}">${(0,a.htmlspecialchars)(n)}</pre>`,languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}},83987:function(t,i,n){"use strict";n.d(i,{buildData:function(){return r}});var o=n(21537);function r(t,i){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,i);let n=t.ow.FormData;if(void 0!==n){if(i instanceof n||(0,o.isString)(i))return i;let t=new n;return Object.keys(i).forEach(n=>{t.append(n,i[n])}),t}return i}},84021:function(t,i,n){"use strict";n.d(i,{removeExtraTags:function(){return r}});let o=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function r(t){return"none"===t.style.get("display")||0===t.length&&"span"===t.name||o.has(t.name)?(t.remove(),null):t}},84075:function(t,i,n){"use strict";n.d(i,{ViewWithToolbar:function(){return g}});var o=n(78213),r=n(45219),s=n(37133),a=n(2748),l=n(76855),c=n(70799),u=n(76078),d=n(67510),h=n(43649),p=n(35608),f=n(21491),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class g extends p.View{get toolbarContainer(){return!this.o.fullsize&&((0,c.isString)(this.o.toolbar)||a.Dom.isHTMLElement(this.o.toolbar))?(0,u.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&a.Dom.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){var t;if(!this.o.toolbar)return;let i=this.o.buttons?(0,l.splitArray)(this.o.buttons):[];null==(t=this.toolbar)||t.setRemoveButtons(this.o.removeButtons).build(i.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){var i;this.registeredButtons.add(t);let n=null!=(i=t.group)?i:"other";return this.groupToButtons[n]||(this.groupToButtons[n]=[]),null!=t.position?this.groupToButtons[n][t.position]=t.name:this.groupToButtons[n].push(t.name),this}unregisterButton(t){var i;this.registeredButtons.delete(t);let n=null!=(i=t.group)?i:"other",o=this.groupToButtons[n];if(o){let i=o.indexOf(t.name);-1!==i&&o.splice(i,1),0===o.length&&delete this.groupToButtons[n]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map(t=>(0,h.isButtonGroup)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t)}destruct(){this.isDestructed||(this.setStatus(o.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(t,i=!1){super(t,i),this.toolbar=(0,f.makeCollection)(this),this.__defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.__tooltip=new d.UITooltip(this),this.isJodit=i,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}m([(0,s.watch)(":rebuildToolbar")],g.prototype,"buildToolbar",null),m([r.autobind],g.prototype,"beforeToolbarBuild",null)},84272:function(t,i,n){"use strict";n.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var o=n(82758),r=n(2748);function s(t,i){let{s:n}=t,o=i;if(!o){o=t.createInside.fake();let{range:i}=n;r.Dom.safeInsertNode(i,o),i.collapse()}let s=r.Dom.furthest(o,a,t.editor);if(s)if(n.cursorOnTheLeft(s))r.Dom.before(s,o);else if(n.cursorOnTheRight(s))r.Dom.after(s,o);else{let t=n.splitSelection(s);t&&r.Dom.after(t,o)}i||(n.setCursorBefore(o),r.Dom.safeRemove(o))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,o.INSEPARABLE_TAGS)}},84380:function(t,i,n){"use strict";var o=n(82758),r=n(6441),s=n(117);r.Config.prototype.askBeforePasteHTML=!0,r.Config.prototype.processPasteHTML=!0,r.Config.prototype.scrollToPastedContent=!0,r.Config.prototype.pasteExcludeStripTags=["br","hr"],r.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],r.Config.prototype.memorizeChoiceWhenPasteFragment=!1,r.Config.prototype.nl2brInPlainText=!0;let a="pasteStorage";r.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,i,{control:n}){if(n.name===a)return void t.execCommand("showPasteStorage");t.s.focus();let r="",l=!0;if(navigator.clipboard){try{let t=await navigator.clipboard.read();if(t&&t.length){let i=await t[0].getType(o.TEXT_PLAIN);r=await new Response(i).text()}l=!1}catch(t){o.IS_PROD}if(l)try{r=await navigator.clipboard.readText(),l=!1}catch(t){o.IS_PROD}}l&&(l=0===(r=t.buffer.get(o.CLIPBOARD_ID)||"").length);let c=t.value;l?(t.ed.execCommand("paste"),(l=c===t.value)||t.e.fire("afterPaste")):r.length?((0,s.pasteInsertHtml)(null,t,r),t.e.fire("afterPaste")):l&&t.alert("Your browser doesn't support direct access to the clipboard.",()=>void t.s.focus())},list:{[a]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},84858:function(t,i){"use strict";i.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},85017:function(t,i){"use strict";i.default={"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé","Embed code":"Code d'intégration",Edit:"Modifier",All:"Tout sélectionner","License: %s":"Licence: %s"}},85120:function(t,i,n){"use strict";n.d(i,{UITextArea:function(){return c}});var o,r=n(65478),s=n(87325),a=n(80256),l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let c=o=class t extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:i}=this.state;this.nativeInput.style.resize=i?"auto":"none",this.nativeInput.rows=null!=t?t:5}constructor(t,i){super(t,i),this.state={...o.defaultState},Object.assign(this.state,i),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};c.defaultState={...a.UIInput.defaultState,size:5,resizable:!0},l([(0,r.watch)(["state.size","state.resizable"])],c.prototype,"onChangeStateSize",null),c=o=l([s.component],c)},85130:function(t,i,n){"use strict";n.d(i,{execute:function(){return r}});var o=n(6689);async function r(t,i,n){let{contextCharsBefore:r,contextCharsAfter:s}=i;if((0,o.throwIfAborted)(n),t.s.restore(),t.s.isCollapsed())return{hasSelection:!1};let a=t.s.html,l=t.s.range,c=l.toString(),u={hasSelection:!0,html:a,text:c,startContainer:l.startContainer.nodeName,endContainer:l.endContainer.nodeName};if(r>0||s>0){let i=t.editor.textContent||"",n=i.substring(0,i.indexOf(c)),o=i.substring(i.indexOf(c)+c.length);r>0&&(u.contextBefore=n.slice(-r)),s>0&&(u.contextAfter=o.slice(0,s))}return u}},85174:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(3536);var s=n(4941),a=n(65478),l=n(49055),c=n(20356),u=n(2692);class d extends c.Plugin{async afterInit(t){let i=await t.o.emoji.data();t.isInDestruct||(this.data={...i,emoji:i.emoji.map(s.Emoji.normalizeEmoji)},t.o.emoji.enableAutoComplete&&t.e.fire("registerAutocompleteSource",this.onAutoComplete),t.async.requestIdleCallback(()=>{t.getInstance(s.Emoji)}))}onAutoComplete(t){return t.length>2&&":"===t[0]&&(t=t.substr(1).toLowerCase(),(0,l.trim)(t).length)?this.data.emoji.filter(i=>i.description?.indexOf(t)===0).sort((i,n)=>i.description.indexOf(t)-n.description.indexOf(t)).map(t=>({title:`${t.emoji} ${t.description}`,value:t.emoji})):[]}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode),(0,o._)(this,"buttons",[{name:"emoji",group:"insert"}]),(0,o._)(this,"data",void 0)}}(0,o._)(d,"requires",["autocomplete","license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAutoComplete",null),u.JoditPro.plugins.add("emoji",d)},85407:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(21537),l=n(20356),c=n(10830);class u extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let t=(0,c.Button)(this.j,"paste","Paste","primary");t.onAction(this.paste);let i=(0,c.Button)(this.j,"","Cancel");i.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,i]),this.j.e.on(this.listBox,"click dblclick",t=>{let i=t.target;return r.Dom.isTag(i,"a")&&i.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(i,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),r.Dom.safeRemove(this.previewBox),r.Dom.safeRemove(this.listBox),r.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=t=>{let i=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(t.key)){if(t.key===o.KEY_UP&&(0===i?i=this.list.length-1:i-=1),t.key===o.KEY_DOWN&&(i===this.list.length-1?i=0:i+=1),t.key===o.KEY_ENTER)return void this.paste();i!==this.currentIndex&&this.selectIndex(i),t.stopImmediatePropagation(),t.preventDefault()}},this.selectIndex=t=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((i,n)=>{i.classList.remove("jodit_active"),t===n&&this.previewBox&&(i.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],i.focus())}),this.currentIndex=t},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,i)=>{let n=this.j.c.element("a");n.textContent=i+1+". "+t.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(n,"keydown",this.onKeyDown),(0,a.attr)(n,"href","#"),(0,a.attr)(n,"data-index",i.toString()),(0,a.attr)(n,"tab-index","-1"),this.listBox&&this.listBox.appendChild(n)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}s.pluginSystem.add("pasteStorage",u)},85567:function(t,i,n){"use strict";n.d(i,{PII:function(){return o},WARN:function(){return r}});let o=440,r=940},85723:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Hauteur de ligne"}},85745:function(t,i,n){"use strict";n(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},86012:function(t,i,n){"use strict";n(6441).Config.prototype.showXPathInStatusbar=!0},86019:function(t,i,n){"use strict";n.d(i,{Jodit:function(){return o.Jodit}});var o=n(2303),r=n(27613),s=n(82758),a=n(65478),l=n(41409),c=n(17555),u=n(26152);n(46448),Object.keys(s).forEach(t=>{o.Jodit[t]=s[t]});let d=t=>"__esModule"!==t;Object.keys(c).filter(d).forEach(t=>{l.Icon.set(t.replace("_","-"),c[t])}),Object.keys(l).filter(d).forEach(t=>{var i;let n=l[t],s=(0,r.isFunction)(null==(i=n.prototype)?void 0:i.className)?n.prototype.className():t;(0,r.isString)(s)&&(o.Jodit.modules[s]=n)}),Object.keys(a).filter(d).forEach(t=>{o.Jodit.decorators[t]=a[t]}),["Confirm","Alert","Prompt"].forEach(t=>{o.Jodit[t]=l[t]}),Object.keys(u.default).filter(d).forEach(t=>{o.Jodit.lang[t]=u.default[t]})},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},86273:function(t,i){"use strict";i.default={"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado","License: %s":"Licencia: %s"}},86327:function(t,i,n){"use strict";n.d(i,{UIForm:function(){return u}});var o=n(4012),r=n(87325),s=n(43555),a=n(80256),l=n(12234),c=n(62405);let u=class t extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let i=this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(i.reduce((t,i)=>(t[i.state.name]=i.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,s.attr)(t,"dir",this.j.o.direction||"auto"),(0,s.attr)(t,"novalidate",""),t}constructor(...t){var i,n;super(...t),(null==(i=this.options)?void 0:i.className)&&this.container.classList.add(null==(n=this.options)?void 0:n.className)}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],u)},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},86401:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},86428:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},86449:function(t,i,n){"use strict";n.d(i,{APIClient:function(){return a}});var o=n(82749),r=n(82758),s=n(21537);class a{async sendRequest(t,i,n,o,a){let{apiRequest:l,requestTimeout:c,maxRetries:u}=this.jodit.o.aiAssistantPro;if(!l)throw Error("AI Assistant Pro callback is not configured");let d=new AbortController;this.abortControllers.add(d);try{let h=this.buildRequestContext(t,i,n,o,a),p=null;for(let t=0;u>=t;t++)try{if(d.signal.aborted)throw(0,s.abort)();let t=setTimeout(()=>{d.abort()},c);try{let i=await l(h,d.signal);return clearTimeout(t),this.validateResponse(i),i}catch(i){throw clearTimeout(t),i}}catch(i){if(p=i,r.IS_PROD,u>t){let i=this.calculateRetryDelay(t);await this.sleep(i)}else throw i}throw p||Error("API request failed after all retries")}finally{this.abortControllers.delete(d)}}abort(){this.abortControllers.forEach(t=>{t.abort()}),this.abortControllers.clear()}isInProgress(){return this.abortControllers.size>0}buildRequestContext(t,i,n,o,r){let{apiMode:s,instructions:a}=this.jodit.o.aiAssistantPro,l={mode:s,conversationId:t,tools:this.toolRegistry.getAllTools(),selectionContexts:o,conversationOptions:r,instructions:a},c=[];if("full"===s)c=i;else if(n){let t=i.findIndex(t=>t.id===n);c=-1!==t?i.slice(t+1):i,l={...l,parentMessageId:n}}else c=i;return{...l,messages:this.expandToolMessages(c,i.find(t=>t.id===n))}}expandToolMessages(t,i){let n=[];for(let i of t)n.push(i),this.expandToolResultsMessage(i,n);return i&&this.expandToolResultsMessage(i,n),n}expandToolResultsMessage(t,i){if(t.toolCalls&&t.toolCalls.length>0)for(let n of t.toolCalls){let o=n.result??{error:"result not found"};if(i.find(t=>t.id===`${n.id}-result`))continue;let r={id:`${n.id}-result`,role:"tool",content:o.error?"Error: "+o.error:JSON.stringify(o.result),timestamp:t.timestamp,toolResults:[{toolCallId:n.id,result:o}]};i.push(r)}}validateResponse(t){if("final"!==t.mode)return;let i=t.response;if(!i)throw Error("API returned empty response");if(!i.responseId)throw Error("API response missing responseId");if(void 0===i.content)throw Error("API response missing content");if(void 0===i.finished)throw Error("API response missing finished flag");if(i.toolCalls){if(!Array.isArray(i.toolCalls))throw Error("API response toolCalls must be an array");i.toolCalls.forEach((t,i)=>{if(!t.id)throw Error(`Tool call at index ${i} is missing id`);if(!t.name)throw Error(`Tool call at index ${i} is missing name`);if(!t.arguments||"object"!=typeof t.arguments)throw Error(`Tool call at index ${i} has invalid arguments`)})}}calculateRetryDelay(t){let{retryDelay:i}=this.jodit.o.aiAssistantPro;return i*Math.pow(2,t)+Math.random()*i}sleep(t){return new Promise(i=>setTimeout(i,t))}destruct(){this.abort()}constructor(t,i){(0,o._)(this,"jodit",void 0),(0,o._)(this,"toolRegistry",void 0),(0,o._)(this,"abortControllers",void 0),this.jodit=t,this.toolRegistry=i,this.abortControllers=new Set}}},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return a}});var o=n(2748),r=n(43555);function s(t,i){(o.Dom.isElement(t)||o.Dom.isFragment(t))&&(i.removeOnError&&(a(t),(0,r.$$)("[onerror]",t).forEach(t=>a(t,i))),i.safeJavaScriptLink&&(a(t),(0,r.$$)('a[href^="javascript"]',t).forEach(t=>a(t,i))))}function a(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let l=t.getAttribute("href");return i&&l&&0===l.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+l),s=!0),s}},86563:function(t,i,n){"use strict";n.d(i,{UIMessageList:function(){return u}});var o=n(82749),r=n(31635),s=n(51359),a=n(65478),l=n(62405),c=n(31356);class u extends l.UIGroup{className(){return"UIMessageList"}render(){return'<div class="&__scroll-container"></div>'}afterRender(){this.scrollContainer=this.container}onUserScroll(){if(!this.scrollContainer)return;let{scrollTop:t,scrollHeight:i,clientHeight:n}=this.scrollContainer;this.autoScrollEnabled=i-t-n<10}onMessageSent(){this.autoScrollEnabled=!0,this.scrollToBottom()}appendChildToContainer(t){this.scrollContainer&&this.scrollContainer.appendChild(t)}setMessages(t){let i=this.messages.slice();this.messages=t.slice(),this.updateMessageList(i),this.scrollToBottom()}updateMessageList(t){let i=c.ListReconciler.reconcile(t,this.messages,{getId:t=>t.id,isEqual:(t,i)=>t.id===i.id&&t.content===i.content&&t.timestamp===i.timestamp&&JSON.stringify(t.artifacts)===JSON.stringify(i.artifacts)&&JSON.stringify(t.toolCalls)===JSON.stringify(i.toolCalls),preserveOrder:!0});i.toRemove.forEach(t=>{let i=this.messageItems.get(t.id);i&&(-1!==this.elements.indexOf(i)&&(this.remove(i),i.destruct()),this.messageItems.delete(t.id))}),i.toUpdate.forEach(({newItem:t,index:i})=>{let n=this.messageItems.get(t.id);n&&(n.updateMessage(t),this.elements.indexOf(n)!==i&&i<this.elements.length&&(this.remove(n),this.append(n,i)))}),i.toCreate.forEach(t=>{let i=new s.UIMessageListItem(this.j,t,this.params);this.messageItems.set(t.id,i);let n=this.messages.indexOf(t);this.append(i,n)})}scrollToBottom(){!this.j.isDestructed&&this.autoScrollEnabled&&(this.container.scrollTop=this.container.scrollHeight)}destruct(){this.messageItems.clear(),this.messages=[],super.destruct()}constructor(t,i){super(t),(0,o._)(this,"params",void 0),(0,o._)(this,"messages",void 0),(0,o._)(this,"messageItems",void 0),(0,o._)(this,"scrollContainer",void 0),(0,o._)(this,"autoScrollEnabled",void 0),this.params=i,this.messages=[],this.messageItems=new Map,this.autoScrollEnabled=!0}}(0,r.__decorate)([(0,a.hook)("ready")],u.prototype,"afterRender",null),(0,r.__decorate)([(0,a.watch)(["scrollContainer:wheel","scrollContainer:scroll","scrollContainer:touchmove"]),(0,a.throttle)(t=>t.defaultTimeout)],u.prototype,"onUserScroll",null),(0,r.__decorate)([(0,a.watch)(":messageSent.ai-assistant-pro")],u.prototype,"onMessageSent",null),(0,r.__decorate)([a.autobind],u.prototype,"setMessages",null),(0,r.__decorate)([(0,a.throttle)(t=>2*t.defaultTimeout)],u.prototype,"scrollToBottom",null),u=(0,r.__decorate)([a.component],u)},86583:function(t,i,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},86835:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},87394:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,i,n){let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let i=t.c.div();return i.classList.add("jodit-symbols"),i.appendChild(o),t.e.on(o,"close_dialog",n),i}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let i=o.querySelector("a");i&&i.focus()}}}},87536:function(t,i,n){"use strict";n.d(i,{checkRemoveContentNotEditable:function(){return a}});var o=n(22732),r=n(21537),s=n(45124);function a(t,i,n){let a=o.Dom.findSibling(i,n);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=o.Dom.findSibling(i.parentElement,n)),!(!o.Dom.isElement(a)||o.Dom.isContentEditable(a,t.editor))&&((0,r.call)(n?o.Dom.before:o.Dom.after,a,i),o.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,n),(0,r.call)(n?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},87602:function(t,i,n){"use strict";n.d(i,{applySize:function(){return l}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);function l(t,i,n,l){if(i!==t.offsetWidth||n!==t.offsetHeight){let c=i?(0,a.normalSizeToString)(i):null,u=n?(0,a.normalSizeToString)(n):null;(0,s.css)(t,{width:c,height:c&&l?null:u}),(0,r.attr)(t,"width",c&&(0,o.isNumeric)(i)&&(0,r.attr)(t,"width")?c:null),(!(0,r.attr)(t,"width")||l)&&(u=null),(0,r.attr)(t,"height",u)}}},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec(t,i){a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},88572:function(t,i,n){"use strict";n.d(i,{UIFormButtonGenerator:function(){return u}});var o=n(82749),r=n(2748),s=n(4510),a=n(38837),l=n(67510),c=n(62357);class u extends l.UIElement{className(){return"UIFormButtonGenerator"}update(){this.onUpdates.forEach(t=>t());let t=this.getElm("box-shadow");(0,a.assert)(null!=t,"box-shadow does not exists");let i=this.getElm("text-shadow");(0,a.assert)(null!=i,"text-shadow does not exists"),t.style.display=this.state.boxShadow?"":"none",i.style.display=this.state.textShadow?"":"none"}render(){return`<div>
|
|
591
591
|
<div class='&__group &__text'>
|
|
592
592
|
<div class='&__title'>Text</div>
|
|
593
593
|
<div class='&__row'>
|