jodit-pro 4.9.30 → 4.9.35
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 +17 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +13 -13
- package/es2015/jodit.js +15 -10
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +37 -38
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +40 -4
- package/es2015/plugins/finder/finder.min.js +4 -4
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +37 -21
- package/es2015/plugins/style/style.min.js +2 -2
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +13 -13
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +3 -3
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +2 -2
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +13 -13
- package/es2021/jodit.js +15 -10
- package/es2021/jodit.min.js +6 -6
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +37 -38
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +40 -4
- package/es2021/plugins/finder/finder.min.js +4 -4
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +31 -21
- package/es2021/plugins/style/style.min.js +2 -2
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +12 -12
- package/es2021.en/jodit.js +15 -10
- package/es2021.en/jodit.min.js +6 -6
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +37 -38
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +6 -4
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +31 -21
- package/es2021.en/plugins/style/style.min.js +2 -2
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +15 -10
- 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 +34 -35
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- 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 +40 -4
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +37 -21
- package/es5/plugins/style/style.min.js +2 -2
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +2 -2
- package/esm/plugins/finder/langs/de.d.ts +22 -0
- package/esm/plugins/finder/langs/de.js +1 -0
- package/esm/plugins/finder/langs/index.d.ts +2 -1
- package/esm/plugins/finder/langs/index.js +1 -1
- package/esm/plugins/style/helpers/apply-style.js +1 -1
- package/esm/plugins/style/helpers/detect-active-style.js +1 -1
- package/esm/plugins/style/interface.d.ts +1 -1
- package/esm/plugins/style/ui/style-popup.js +1 -1
- package/package.json +1 -1
- package/types/plugins/finder/langs/de.d.ts +22 -0
- package/types/plugins/finder/langs/index.d.ts +2 -1
- package/types/plugins/style/interface.d.ts +1 -1
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.35
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
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})},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:[]},`
|
|
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?.filter(Boolean)??[])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
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>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</div>`}afterSetMod(t,i){"hidden"===t&&!1===i&&this.onChangeMetaInfo(),super.afterSetMod(t,i)}onChangeMetaInfo(){if(this.getMod("hidden"))return;let{metaInfo:t}=this.state;this.setMod("empty",!t);let i=this.getElm("info");(0,c.assert)(null!=i,"info element does not exists"),a.Dom.detach(i);let n=this.getElm("image");(0,c.assert)(null!=n,"image element does not exists"),(0,l.css)(n,{backgroundImage:null}),t&&(this.setMod("is-file",!1===t.isImage).setMod("type",t.type??"file"),d.UIBrowserItem.prototype.setElementValue.call(this,"name",t.file),d.UIBrowserItem.prototype.setElementValue.call(this,"time",t.time),d.UIBrowserItem.prototype.setElementValue.call(this,"filesize",t.size),this.setMod("loading",!0),this.lastLoadPromise?.rejectCallback(),this.lastLoadPromise=(0,l.loadImage)(t.isImage?t.fileURL:t.imageURL,this.j),this.lastLoadPromise.then(t=>{let i=this.getElm("image");(0,c.assert)(null!=i,"image element does not exist"),t&&(0,l.css)(i,{backgroundImage:`url(${t.src})`})}).finally(()=>{this.setMod("loading",!1)}).catch(()=>{}))}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"lastLoadPromise",void 0),this.state=i,this.lastLoadPromise=null,this.onChangeMetaInfo()}}(0,r.__decorate)([(0,s.hook)("ready"),(0,s.watch)(":resize",{context:window}),(0,s.debounce)()],p.prototype,"addResize",null),(0,r.__decorate)([(0,s.watch)("state.metaInfo")],p.prototype,"onChangeMetaInfo",null),p=(0,r.__decorate)([s.component],p)},8390:function(t,i,n){"use strict";var o=n(82749);n(89683);var r=n(2748),s=n(36409),a=n(50911),l=n(2692);class c extends a.Plugin{afterInit(t){t.registerCommand("changeCase",{exec:(i,n,o)=>{o=o.toLowerCase();let s=t.s.range,{startContainer:a,startOffset:l}=s;if(t.s.isCollapsed()){let i=t.s.current(!0);i&&i.parentElement&&this.applyCase(o,i.parentElement),s.setStart(a,l),t.s.selectRange(s)}else{let i=s.cloneRange(),n=s.cloneRange(),a=t.createInside.fake(),l=t.createInside.fake();i.collapse(!0),n.collapse(!1),i.insertNode(a),n.insertNode(l),r.Dom.between(a,l,t=>{this.applyCase(o,t)}),s.setStartAfter(a),s.setEndBefore(l),t.s.selectRange(s),r.Dom.safeRemove(a),r.Dom.safeRemove(l)}}})}applyCase(t,i){if(r.Dom.isText(i)){let n=i.nodeValue;n&&(i.nodeValue=(i=>{switch(t){case"lowercase":return i.toLowerCase();case"uppercase":return i.toUpperCase();default:return i.split(" ").map(s.ucfirst).join(" ")}})(n))}else r.Dom.each(i,i=>{this.applyCase(t,i)})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"changeCase",group:"font-style"}])}}(0,o._)(c,"requires",["license"]),l.JoditPro.plugins.add("change-case",c)},8432:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},8661:function(t,i,n){"use strict";n.r(i),i.default={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},8959:function(t,i,n){"use strict";n.d(i,{UICheckbox:function(){return r.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIInput:function(){return a.UIInput},UISelect:function(){return l.UISelect},UITextArea:function(){return o.UITextArea}});var o=n(85120),r=n(17328),s=n(4242),a=n(80256),l=n(12234)},9045:function(t,i,n){"use strict";n(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},9159:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(50911),l=n(67510);n(68252);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 a.Plugin{afterInit(t){let{height:i,width:n,allowResizeX:o}=t.o,{allowResizeY:r}=t.o;"auto"===i&&"auto"!==n&&(r=!1),("auto"!==i||"auto"!==n)&&(o||r)&&(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=t.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){r.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",l.Icon.get("resize_handler"))}}u.requires=["size"],c([o.autobind],u.prototype,"onHandleResizeStart",null),c([o.autobind],u.prototype,"onHandleResize",null),c([o.autobind],u.prototype,"onHandleResizeEnd",null),s.pluginSystem.add("resizeHandler",u)},9881:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(87058),l=n(50911),c=n(67510);n(67215);var 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};class d extends l.Plugin{afterInit(t){this.proxyEventsList.forEach(i=>{t.e.on(i+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(i=>{t.e.on(i+".select",this.onStartSelection)})}onStartSelection(t){let{j:i}=this,n,o=t.target;for(;void 0===n&&o&&o!==i.editor;)n=i.e.fire((0,a.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===n&&o===i.editor&&i.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let i=t.target;r.Dom.up(i,t=>t===this.j.editor)||c.UIElement.closestElement(i,c.Popup)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let i=t.current();i&&r.Dom.isOrContains(this.j.editor,i)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:i}=this.j,{startContainer:n,startOffset:o}=i.range;0===o&&r.Dom.isText(n)&&i.select(r.Dom.closest(n,r.Dom.isBlock,this.j.editor)||n,!0)}onCopyNormalizeSelectionBound(t){let{s:i,editor:n,o}=this.j;!o.select.normalizeSelectionBeforeCutAndCopy||i.isCollapsed()||(!t||t.isTrusted&&r.Dom.isNode(t.target)&&r.Dom.isOrContains(n,t.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}}u([o.autobind],d.prototype,"onStartSelection",null),u([(0,o.watch)("ow:click")],d.prototype,"onOutsideClick",null),u([(0,o.watch)([":beforeCommandCut"])],d.prototype,"beforeCommandCut",null),u([(0,o.watch)([":beforeCommandSelectall"])],d.prototype,"beforeCommandSelectAll",null),u([(0,o.watch)([":click"])],d.prototype,"onTripleClickNormalizeSelection",null),u([(0,o.watch)([":copy",":cut"])],d.prototype,"onCopyNormalizeSelectionBound",null),s.pluginSystem.add("select",d)},9914:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},10058:function(t,i,n){"use strict";n.d(i,{LEVEL_KEY:function(){return o},STYLE_CSS_KEY:function(){return l},STYLE_KEY:function(){return s},STYLE_VALID_KEY:function(){return a},TYPE_KEY:function(){return r},listStyleMap:function(){return c}});let o="jd-list-level",r="jd-list-type",s="jd-list-style-type",a="data-list-style-type",l="list-style-type",c={"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},10263:function(t,i,n){"use strict";n.d(i,{openImagePopup:function(){return l}});var o=n(68345),r=n(5700),s=n(56917),a=n(34793);function l(t,i,n,l){let c=new s.Popup(i),u=()=>{c.close(),c.destruct()};c.setContent((0,a.FileSelectorWidget)(t,{upload(t){t.files&&t.files.length&&(n.values.imageSrc=t.baseurl+t.files[0]),u()},async filebrowser(t){t&&(0,o.isArray)(t.files)&&t.files.length&&(n.values.imageSrc=t.files[0],u())}},n.image,u)).open(()=>(0,r.position)(l))}},10411:function(t,i,n){"use strict";n.d(i,{formTemplate:function(){return s}});var o=n(62843),r=n(2525);let s=t=>{let{openInNewTabCheckbox:i,noFollowCheckbox:n,modeClassName:s,selectSizeClassName:a,selectMultipleClassName:l,selectOptionsClassName:c}=t.o.link;return new r.UIForm(t,[new r.UIBlock(t,[new r.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new r.UIBlock(t,[new r.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),s?new r.UIBlock(t,["input"===s?new r.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===s?new r.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:a,multiple:l,options:c}):null]):null,i?new r.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,n?new r.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new r.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},10690:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},10766:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},10830:function(t,i,n){"use strict";n.d(i,{Button:function(){return v},UIButton:function(){return b},UIButtonState:function(){return g}});var o=n(78213),r=n(33433),s=n(87325),a=n(37133),l=n(2748),c=n(23282),u=n(70799),d=n(38837),h=n(29960),p=n(48538),f=n(12153),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};let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}),b=class t extends p.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,d.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,d.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,h.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,h.attr)(this.container,"role",this.state.role)}updateSize(){let t=(0,s.getComponentClass)("UIList"),i=this.closest(t);if(i){this.state.size=i.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,h.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,h.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,h.attr)(this.container,"data-ref",this.state.name),(0,h.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,h.attr)(this.container,"title",t),(0,h.attr)(this.container,"aria-label",t),this.updateAriaLabel()}updateAriaLabel(){let t=this.state.text.trim().length>0,i=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,h.attr)(this.container,"aria-label",i),(0,h.attr)(this.button,"aria-label",t?null:i)}onChangeTabIndex(){(0,h.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,c.isFunction)(t)&&t(this.state.name))return;l.Dom.detach(this.icon);let i=f.Icon.makeIcon(this.j,this.state.icon);i&&this.icon.appendChild(i)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&l.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,i=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return i.appendChild(n),i.appendChild(o),i}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(i=>i.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,i){super(t),this.isButton=!0,this.state=g(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),i&&this.hookStatus(o.STATUSES.ready,()=>{this.setState(i)})}};function v(t,i,n,o){let r=new b(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,u.isString)(i)?(r.state.icon.name=i,r.state.name=i,o&&(r.state.variant=o),n&&(r.state.text=n)):r.setState(i),r}m([r.cache],b.prototype,"text",null),m([r.cache],b.prototype,"icon",null),m([(0,a.watch)("state.size",{immediately:!1})],b.prototype,"onChangeSize",null),m([(0,a.watch)("state.type",{immediately:!1})],b.prototype,"onChangeType",null),m([(0,a.watch)("state.role",{immediately:!1})],b.prototype,"onChangeRole",null),m([(0,a.watch)("parentElement")],b.prototype,"updateSize",null),m([(0,a.watch)("state.variant",{immediately:!1})],b.prototype,"onChangeStatus",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeText",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeTextSetMode",null),m([(0,a.watch)("state.disabled")],b.prototype,"onChangeDisabled",null),m([(0,a.watch)("state.activated")],b.prototype,"onChangeActivated",null),m([(0,a.watch)("state.name",{immediately:!1})],b.prototype,"onChangeName",null),m([(0,a.watch)("state.tooltip",{immediately:!1})],b.prototype,"onChangeTooltip",null),m([(0,a.watch)("state.tabIndex",{immediately:!1})],b.prototype,"onChangeTabIndex",null),m([(0,a.watch)("state.icon",{immediately:!1})],b.prototype,"onChangeIcon",null),m([r.cacheHTML],b.prototype,"createContainer",null),m([(0,a.watch)("button:click")],b.prototype,"__onActionFire",null),b=m([s.component],b)},10937:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> '},11079:function(t,i,n){"use strict";n.d(i,{openPropsDialog:function(){return l}});var o=n(47660),r=n(72690),s=n(90835);function a(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,i){let n;switch(this.state.mode="hand",t.type){case"polyline":n=new s.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":n=new s.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":n=new s.UIPolygonEditor(this.jodit,t.state,this.options)}if(!n)return;this.append(n),this.j.e.on(n,"bin",()=>{o.removeElement.call(this,t)}).on(n,"change",(n,o)=>{r.updateStateAndGme.call(this,{...t.state,[n]:o},i)});let l=a.call(this);if("polygon"===t.type||"polyline"===t.type){let i=t.gme.getPath().getAt(0);l.setPosition(i)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(n.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{n&&(this.remove(n),n.destruct())})}},11093:function(t,i,n){"use strict";n.d(i,{UIWysiwyg:function(){return c}});var o=n(31635),r=n(87325),s=n(38837),a=n(48538),l=n(2692);class c extends a.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
|
|
30
30
|
<div class='&__label'>~Info~</div>
|
|
31
31
|
<div class='&__editor'></div>
|
|
32
|
-
</div>`}constructor(t,i,n,o){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=n,a.e.on("change",()=>o(a.value))}}c=(0,o.__decorate)([r.component],c)},11317:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(6441),a=n(92762);s.Config.prototype.controls.file={popup(t,i,n){let r=(i,n="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${n}">${n||i}</a>`))},s=null;return i&&(o.Dom.isTag(i,"a")||o.Dom.closest(i,"a",t.editor))&&(s=o.Dom.isTag(i,"a")?i:o.Dom.closest(i,"a",t.editor)),(0,a.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(i=>r(t.baseurl+i)),n()},upload:!0,url(t,i){s?(s.setAttribute("href",t),s.setAttribute("title",i)):r(t,i),n()}},s,n,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},11338:function(t,i,n){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}n.d(i,{checkNotCollapsed:function(){return o}})},11373:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return c}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function c(t,i,n="px",u=null){let d=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");u&&u.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),c=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};d.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{d.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},11676:function(t,i,n){"use strict";n.d(i,{ToolbarCollection:function(){return p}});var o=n(65478),r=n(45219),s=n(87325),a=n(97357),l=n(37133),c=n(82760),u=n(24536),d=n(21491),h=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 p=class t extends u.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,d.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,d.makeSelect)(this.j,t,i)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,c.error)("The method is not implemented for this class.")}build(t,i=null){let n=this.j.e.fire("beforeToolbarBuild",t);return n&&(t=n),super.build(t,i),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};h([(0,l.watch)(":afterInit"),r.autobind],p.prototype,"__immediateUpdate",null),h([(0,o.debounce)(t=>t.j.defaultTimeout,!0)],p.prototype,"update",null),h([(0,a.hook)("ready")],p.prototype,"__initEvents",null),p=h([s.component],p)},11696:function(t,i,n){"use strict";n.d(i,{UIPolygonEditor:function(){return c}});var o=n(31635),r=n(65478),s=n(62357),a=n(45128),l=n(69398);class c extends l.UIPolylineEditor{className(){return"UIPolygonEditor"}onReady(){this.append([new a.ColorInput(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new s.UIRange(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}}(0,o.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,o.__decorate)([r.component],c)},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},11787:function(t,i,n){"use strict";n.d(i,{DEFAULT_SOURCE_NAME:function(){return f},default:function(){return g}});var o=n(82758),r=n(45219),s=n(23282),a=n(70091),l=n(68934),c=n(89890),u=n(3703),d=n(54079),h=n(159),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="default",m=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class g{get o(){return this.options}get(t){let i=this.__ajaxInstances;if(i.has(t)){let n=i.get(t);null==n||n.abort(),i.delete(t)}let n=(0,l.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,l.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));let o=new d.Ajax(n);i.set(t,o);let r=o.send();return r.finally(()=>{o.destruct(),i.delete(t),this.progressHandler(100)}).catch(()=>null),r.then(t=>t.json()).then(t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t})}onProgress(t){this.progressHandler=t}async permissions(t,i){return this.o.permissions&&(this.o.permissions.data.path=t,this.o.permissions.data.source=i,this.o.permissions.url)?this.get("permissions").then(t=>{if(this.parent.isInDestruct)throw(0,c.abort)();let i=this.o.permissions.process;if(i||(i=this.o.ajax.process),i){let n=i.call(self,t);n.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,n.data.permissions),this.__currentPermissions=n.data.permissions)}return this.__currentPermissions}):null}canI(t){let i="allow"+t;if(!o.IS_PROD&&!m.has(i))throw(0,c.error)("Wrong action "+t);let n=this.o.permissionsPresets[i];return void 0!==n?n:null==this.__currentPermissions||void 0===this.__currentPermissions[i]||this.__currentPermissions[i]}__items(t,i,n,o){let r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=i,r.items.data.mods=n,this.get("items").then(t=>{let i=this.o.items.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),o(t)})):Promise.reject(Error("Set Items api options"))}items(t,i,n={}){return this.__items(t,i,n,t=>this.__generateItemsList(t.data.sources,n))}itemsEx(t,i,n={}){return this.__items(t,i,n,t=>({items:this.__generateItemsList(t.data.sources,n),loadedTotal:t.data.sources.reduce((t,i)=>t+i.files.length,0)}))}__generateItemsList(t,i={}){let n=[],o=t=>{var n;return!(null==(n=i.filterWord)?void 0:n.length)||void 0===this.o.filter||this.o.filter(t,i.filterWord)};return t.forEach(t=>{if(t.files&&t.files.length){let{sort:r}=this.o;(0,s.isFunction)(r)&&i.sortBy&&t.files.sort((t,n)=>r(t,n,i.sortBy)),t.files.forEach(r=>{o(r)&&("folder"===r.type||!i.onlyImages||void 0===r.isImage||r.isImage)&&n.push(h.FileBrowserItem.create({...r,sourceName:t.name,source:t}))})}}),n}async tree(t,i){return(t=(0,a.normalizeRelativePath)(t),this.o.folder)?(await this.permissions(t,i),this.o.folder.data.path=t,this.o.folder.data.source=i,this.get("folder").then(t=>{let i=this.o.folder.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),t.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(t){return(0,u.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,c.error)(this.getMessage(t))})}createFolder(t,i,n){let{create:o}=this.o;if(!o)throw(0,c.error)("Set Create api options");return o.data.source=n,o.data.path=i,o.data.name=t,this.get("create").then(t=>{if(this.isSuccess(t))return!0;throw(0,c.error)(this.getMessage(t))})}move(t,i,n,o){let r=o?"fileMove":"folderMove",s=this.options[r];if(!s)throw(0,c.error)("Set Move api options");return s.data.from=t,s.data.path=i,s.data.source=n,this.get(r).then(t=>{if(this.isSuccess(t))return!0;throw(0,c.error)(this.getMessage(t))})}__remove(t,i,n,o){let r=this.o[t];if(!r)throw(0,c.error)(`Set "${t}" api options`);return r.data.path=i,r.data.name=n,r.data.source=o,this.get(t).then(t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t)))}fileRemove(t,i,n){return this.__remove("fileRemove",t,i,n)}folderRemove(t,i,n){return this.__remove("folderRemove",t,i,n)}__rename(t,i,n,o,r){let s=this.o[t];if(!s)throw(0,c.error)(`Set "${t}" api options`);return s.data.path=i,s.data.name=n,s.data.newname=o,s.data.source=r,this.get(t).then(t=>(s.process&&(t=s.process.call(self,t)),this.getMessage(t)))}folderRename(t,i,n,o){return this.__rename("folderRename",t,i,n,o)}fileRename(t,i,n,o){return this.__rename("fileRename",t,i,n,o)}__changeImage(t,i,n,o,r,s){this.o[t]||(this.o[t]={data:{}});let a=this.o[t];return void 0===a.data&&(a.data={action:t}),a.data.newname=r||o,s&&(a.data.box=s),a.data.path=i,a.data.name=o,a.data.source=n,this.get(t).then(()=>!0)}crop(t,i,n,o,r){return this.__changeImage("crop",t,i,n,o,r)}resize(t,i,n,o,r){return this.__changeImage("resize",t,i,n,o,r)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.__ajaxInstances.forEach(t=>t.destruct()),this.__ajaxInstances.clear()}constructor(t,i){this.parent=t,this.options=i,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}}p([r.autobind],g.prototype,"onProgress",null),p([r.autobind],g.prototype,"permissions",null),p([r.autobind],g.prototype,"canI",null),p([r.autobind],g.prototype,"items",null),p([r.autobind],g.prototype,"itemsEx",null),p([r.autobind],g.prototype,"tree",null),p([r.autobind],g.prototype,"getPathByUrl",null),p([r.autobind],g.prototype,"createFolder",null),p([r.autobind],g.prototype,"move",null),p([r.autobind],g.prototype,"fileRemove",null),p([r.autobind],g.prototype,"folderRemove",null),p([r.autobind],g.prototype,"folderRename",null),p([r.autobind],g.prototype,"fileRename",null),p([r.autobind],g.prototype,"crop",null),p([r.autobind],g.prototype,"resize",null),p([r.autobind],g.prototype,"getMessage",null),p([r.autobind],g.prototype,"isSuccess",null),p([r.autobind],g.prototype,"destruct",null)},12019:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),c=n(20356);n(71675);var 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="__jodit-resizer_binded";class h extends c.Plugin{afterInit(t){(0,l.$$)("div",this.rect).forEach(i=>{t.e.on(i,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,i))}),a.eventEmitter.on("hideHelpers",this.hide),t.e.on("readonly",t=>{t&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",t=>{let i=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;i.test(t.value)&&(t.value=t.value.replace(i,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let i=t.target,{editor:n,options:{allowResizeTags:o}}=this.j;for(;i&&i!==n;){if(s.Dom.isTag(i,o)){this.__bind(i),this.onClickElement(i);return}i=i.parentNode}}__afterInsertImage(t){if(this.j.o.resizer.forImageChangeAttributes)return;let i=(0,l.attr)(t,"width");i&&!(0,l.css)(t,"width",!0)&&((0,l.css)(t,"width",i),(0,l.attr)(t,"width",null))}addEventListeners(){let t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",t=>{this.isShown&&t.key===o.KEY_DELETE&&this.element&&!s.Dom.isTag(this.element,"table")&&this.onDelete(t)}).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,i){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,i.cancelable&&i.preventDefault(),i.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=i.clientX,this.startY=i.clientY,this.pointerX=i.clientX,this.pointerY=i.clientY;let{j:n}=this;n.e.fire("hidePopup"),n.lock(this.LOCK_KEY),n.e.on(n.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){let i,n;if(!this.element)return;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){let o=this.getWorkplacePosition();i=t.clientX+o.left-this.startX,n=t.clientY+o.top-this.startY}else i=this.pointerX-this.startX,n=this.pointerY-this.startY;let o=this.handle.className,r=0,a=0,c=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===c||c&&s.Dom.isTag(this.element,c))?(i?a=Math.round((r=this.width+(o.match(/left/)?-1:1)*i)/this.ratio):r=Math.round((a=this.height+(o.match(/top/)?-1:1)*n)*this.ratio),r>(0,l.innerWidth)(this.j.editor,this.j.ow)&&(a=Math.round((r=(0,l.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(r=this.width+(o.match(/left/)?-1:1)*i,a=this.height+(o.match(/top/)?-1:1)*n),r>this.j.o.resizer.min_width&&(r<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",r):this.applySize(this.element,"width","100%")),a>this.j.o.resizer.min_height&&this.applySize(this.element,"height",a),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===o.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,l.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,i,n){let o=s.Dom.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,l.attr)(t,i,n),(!o||t.style[i])&&(0,l.css)(t,i,n)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(s.Dom.safeRemove(this.element),this.hide(),t.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,l.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(t){let i;if(!(!s.Dom.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,l.dataBind)(t,d))){if((0,l.dataBind)(t,d,!0),s.Dom.isTag(t,"iframe")){let n=t;s.Dom.isHTMLElement(t.parentNode)&&(0,l.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(i=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,l.attr)(i,"style",(0,l.attr)(t,"style")),(0,l.css)(i,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(i,t),i.appendChild(t),this.j.e.on(i,"click",()=>{(0,l.attr)(i,"data-jodit-wrapper_active",!0)}),t=i),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",()=>{this.j.s.select(t)}).off(t,"changesize").on(t,"changesize",()=>{n.setAttribute("width",t.offsetWidth+"px"),n.setAttribute("height",t.offsetHeight+"px")})}this.j.e.on(t,"dragstart",this.hide),!o.IS_ES_NEXT&&o.IS_IE&&this.j.e.on(t,"mousedown",i=>{s.Dom.isTag(t,"img")&&i.preventDefault()})}}showSizeViewer(t,i){if(this.j.o.resizer.showSize){if(t<this.sizeViewer.offsetWidth||i<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${i}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,l.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,l.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,s.Dom.safeRemove(this.rect),(0,l.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(t=>(0,l.attr)(t,"data-jodit-wrapper_active",!1)))}beforeDestruct(t){this.hide(),a.eventEmitter.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
|
|
32
|
+
</div>`}constructor(t,i,n,o){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=n,a.e.on("change",()=>o(a.value))}}c=(0,o.__decorate)([r.component],c)},11317:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(6441),a=n(92762);s.Config.prototype.controls.file={popup(t,i,n){let r=(i,n="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${n}">${n||i}</a>`))},s=null;return i&&(o.Dom.isTag(i,"a")||o.Dom.closest(i,"a",t.editor))&&(s=o.Dom.isTag(i,"a")?i:o.Dom.closest(i,"a",t.editor)),(0,a.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(i=>r(t.baseurl+i)),n()},upload:!0,url(t,i){s?(s.setAttribute("href",t),s.setAttribute("title",i)):r(t,i),n()}},s,n,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},11338:function(t,i,n){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}n.d(i,{checkNotCollapsed:function(){return o}})},11373:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return c}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function c(t,i,n="px",u=null){let d=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");u&&u.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),c=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};d.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{d.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},11676:function(t,i,n){"use strict";n.d(i,{ToolbarCollection:function(){return p}});var o=n(65478),r=n(45219),s=n(87325),a=n(97357),l=n(37133),c=n(82760),u=n(24536),d=n(21491),h=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 p=class t extends u.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,d.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,d.makeSelect)(this.j,t,i)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,c.error)("The method is not implemented for this class.")}build(t,i=null){let n=this.j.e.fire("beforeToolbarBuild",t);return n&&(t=n),super.build(t,i),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};h([(0,l.watch)(":afterInit"),r.autobind],p.prototype,"__immediateUpdate",null),h([(0,o.debounce)(t=>t.j.defaultTimeout,!0)],p.prototype,"update",null),h([(0,a.hook)("ready")],p.prototype,"__initEvents",null),p=h([s.component],p)},11696:function(t,i,n){"use strict";n.d(i,{UIPolygonEditor:function(){return c}});var o=n(31635),r=n(65478),s=n(62357),a=n(45128),l=n(69398);class c extends l.UIPolylineEditor{className(){return"UIPolygonEditor"}onReady(){this.append([new a.ColorInput(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new s.UIRange(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}}(0,o.__decorate)([(0,r.hook)("ready")],c.prototype,"onReady",null),c=(0,o.__decorate)([r.component],c)},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},11787:function(t,i,n){"use strict";n.d(i,{DEFAULT_SOURCE_NAME:function(){return f},default:function(){return g}});var o=n(82758),r=n(45219),s=n(23282),a=n(70091),l=n(68934),c=n(89890),u=n(3703),d=n(54079),h=n(159),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="default",m=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class g{get o(){return this.options}get(t){let i=this.__ajaxInstances;if(i.has(t)){let n=i.get(t);null==n||n.abort(),i.delete(t)}let n=(0,l.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,l.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));let o=new d.Ajax(n);i.set(t,o);let r=o.send();return r.finally(()=>{o.destruct(),i.delete(t),this.progressHandler(100)}).catch(()=>null),r.then(t=>t.json()).then(t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t})}onProgress(t){this.progressHandler=t}async permissions(t,i){return this.o.permissions&&(this.o.permissions.data.path=t,this.o.permissions.data.source=i,this.o.permissions.url)?this.get("permissions").then(t=>{if(this.parent.isInDestruct)throw(0,c.abort)();let i=this.o.permissions.process;if(i||(i=this.o.ajax.process),i){let n=i.call(self,t);n.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,n.data.permissions),this.__currentPermissions=n.data.permissions)}return this.__currentPermissions}):null}canI(t){let i="allow"+t;if(!o.IS_PROD&&!m.has(i))throw(0,c.error)("Wrong action "+t);let n=this.o.permissionsPresets[i];return void 0!==n?n:null==this.__currentPermissions||void 0===this.__currentPermissions[i]||this.__currentPermissions[i]}__items(t,i,n,o){let r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=i,r.items.data.mods=n,this.get("items").then(t=>{let i=this.o.items.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),o(t)})):Promise.reject(Error("Set Items api options"))}items(t,i,n={}){return this.__items(t,i,n,t=>this.__generateItemsList(t.data.sources,n))}itemsEx(t,i,n={}){return this.__items(t,i,n,t=>({items:this.__generateItemsList(t.data.sources,n),loadedTotal:t.data.sources.reduce((t,i)=>t+i.files.length,0)}))}__generateItemsList(t,i={}){let n=[],o=t=>{var n;return!(null==(n=i.filterWord)?void 0:n.length)||void 0===this.o.filter||this.o.filter(t,i.filterWord)};return t.forEach(t=>{if(t.files&&t.files.length){let{sort:r}=this.o;(0,s.isFunction)(r)&&i.sortBy&&t.files.sort((t,n)=>r(t,n,i.sortBy)),t.files.forEach(r=>{o(r)&&("folder"===r.type||!i.onlyImages||void 0===r.isImage||r.isImage)&&n.push(h.FileBrowserItem.create({...r,sourceName:t.name,source:t}))})}}),n}async tree(t,i){return(t=(0,a.normalizeRelativePath)(t),this.o.folder)?(await this.permissions(t,i),this.o.folder.data.path=t,this.o.folder.data.source=i,this.get("folder").then(t=>{let i=this.o.folder.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),t.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(t){return(0,u.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,c.error)(this.getMessage(t))})}createFolder(t,i,n){let{create:o}=this.o;if(!o)throw(0,c.error)("Set Create api options");return o.data.source=n,o.data.path=i,o.data.name=t,this.get("create").then(t=>{if(this.isSuccess(t))return!0;throw(0,c.error)(this.getMessage(t))})}move(t,i,n,o){let r=o?"fileMove":"folderMove",s=this.options[r];if(!s)throw(0,c.error)("Set Move api options");return s.data.from=t,s.data.path=i,s.data.source=n,this.get(r).then(t=>{if(this.isSuccess(t))return!0;throw(0,c.error)(this.getMessage(t))})}__remove(t,i,n,o){let r=this.o[t];if(!r)throw(0,c.error)(`Set "${t}" api options`);return r.data.path=i,r.data.name=n,r.data.source=o,this.get(t).then(t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t)))}fileRemove(t,i,n){return this.__remove("fileRemove",t,i,n)}folderRemove(t,i,n){return this.__remove("folderRemove",t,i,n)}__rename(t,i,n,o,r){let s=this.o[t];if(!s)throw(0,c.error)(`Set "${t}" api options`);return s.data.path=i,s.data.name=n,s.data.newname=o,s.data.source=r,this.get(t).then(t=>(s.process&&(t=s.process.call(self,t)),this.getMessage(t)))}folderRename(t,i,n,o){return this.__rename("folderRename",t,i,n,o)}fileRename(t,i,n,o){return this.__rename("fileRename",t,i,n,o)}__changeImage(t,i,n,o,r,s){this.o[t]||(this.o[t]={data:{}});let a=this.o[t];return void 0===a.data&&(a.data={action:t}),a.data.newname=r||o,s&&(a.data.box=s),a.data.path=i,a.data.name=o,a.data.source=n,this.get(t).then(t=>t.data.newPath||!0)}crop(t,i,n,o,r){return this.__changeImage("crop",t,i,n,o,r)}resize(t,i,n,o,r){return this.__changeImage("resize",t,i,n,o,r)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.__ajaxInstances.forEach(t=>t.destruct()),this.__ajaxInstances.clear()}constructor(t,i){this.parent=t,this.options=i,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}}p([r.autobind],g.prototype,"onProgress",null),p([r.autobind],g.prototype,"permissions",null),p([r.autobind],g.prototype,"canI",null),p([r.autobind],g.prototype,"items",null),p([r.autobind],g.prototype,"itemsEx",null),p([r.autobind],g.prototype,"tree",null),p([r.autobind],g.prototype,"getPathByUrl",null),p([r.autobind],g.prototype,"createFolder",null),p([r.autobind],g.prototype,"move",null),p([r.autobind],g.prototype,"fileRemove",null),p([r.autobind],g.prototype,"folderRemove",null),p([r.autobind],g.prototype,"folderRename",null),p([r.autobind],g.prototype,"fileRename",null),p([r.autobind],g.prototype,"crop",null),p([r.autobind],g.prototype,"resize",null),p([r.autobind],g.prototype,"getMessage",null),p([r.autobind],g.prototype,"isSuccess",null),p([r.autobind],g.prototype,"destruct",null)},12019:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),c=n(20356);n(71675);var 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="__jodit-resizer_binded";class h extends c.Plugin{afterInit(t){(0,l.$$)("div",this.rect).forEach(i=>{t.e.on(i,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,i))}),a.eventEmitter.on("hideHelpers",this.hide),t.e.on("readonly",t=>{t&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",t=>{let i=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;i.test(t.value)&&(t.value=t.value.replace(i,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let i=t.target,{editor:n,options:{allowResizeTags:o}}=this.j;for(;i&&i!==n;){if(s.Dom.isTag(i,o)){this.__bind(i),this.onClickElement(i);return}i=i.parentNode}}__afterInsertImage(t){if(this.j.o.resizer.forImageChangeAttributes)return;let i=(0,l.attr)(t,"width");i&&!(0,l.css)(t,"width",!0)&&((0,l.css)(t,"width",i),(0,l.attr)(t,"width",null))}addEventListeners(){let t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",t=>{this.isShown&&t.key===o.KEY_DELETE&&this.element&&!s.Dom.isTag(this.element,"table")&&this.onDelete(t)}).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,i){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,i.cancelable&&i.preventDefault(),i.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=i.clientX,this.startY=i.clientY,this.pointerX=i.clientX,this.pointerY=i.clientY;let{j:n}=this;n.e.fire("hidePopup"),n.lock(this.LOCK_KEY),n.e.on(n.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){let i,n;if(!this.element)return;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){let o=this.getWorkplacePosition();i=t.clientX+o.left-this.startX,n=t.clientY+o.top-this.startY}else i=this.pointerX-this.startX,n=this.pointerY-this.startY;let o=this.handle.className,r=0,a=0,c=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===c||c&&s.Dom.isTag(this.element,c))?(i?a=Math.round((r=this.width+(o.match(/left/)?-1:1)*i)/this.ratio):r=Math.round((a=this.height+(o.match(/top/)?-1:1)*n)*this.ratio),r>(0,l.innerWidth)(this.j.editor,this.j.ow)&&(a=Math.round((r=(0,l.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(r=this.width+(o.match(/left/)?-1:1)*i,a=this.height+(o.match(/top/)?-1:1)*n),r>this.j.o.resizer.min_width&&(r<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",r):this.applySize(this.element,"width","100%")),a>this.j.o.resizer.min_height&&this.applySize(this.element,"height",a),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===o.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,l.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,i,n){let o=s.Dom.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,l.attr)(t,i,n),(!o||t.style[i])&&(0,l.css)(t,i,n)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(s.Dom.safeRemove(this.element),this.hide(),t.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,l.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(t){let i;if(!(!s.Dom.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,l.dataBind)(t,d))){if((0,l.dataBind)(t,d,!0),s.Dom.isTag(t,"iframe")){let n=t;s.Dom.isHTMLElement(t.parentNode)&&(0,l.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(i=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,l.attr)(i,"style",(0,l.attr)(t,"style")),(0,l.css)(i,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(i,t),i.appendChild(t),this.j.e.on(i,"click",()=>{(0,l.attr)(i,"data-jodit-wrapper_active",!0)}),t=i),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",()=>{this.j.s.select(t)}).off(t,"changesize").on(t,"changesize",()=>{n.setAttribute("width",t.offsetWidth+"px"),n.setAttribute("height",t.offsetHeight+"px")})}this.j.e.on(t,"dragstart",this.hide),!o.IS_ES_NEXT&&o.IS_IE&&this.j.e.on(t,"mousedown",i=>{s.Dom.isTag(t,"img")&&i.preventDefault()})}}showSizeViewer(t,i){if(this.j.o.resizer.showSize){if(t<this.sizeViewer.offsetWidth||i<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${i}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,l.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,l.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,s.Dom.safeRemove(this.rect),(0,l.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(t=>(0,l.attr)(t,"data-jodit-wrapper_active",!1)))}beforeDestruct(t){this.hide(),a.eventEmitter.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
|
|
33
33
|
<div class="jodit-resizer__top-left"></div>
|
|
34
34
|
<div class="jodit-resizer__top-right"></div>
|
|
35
35
|
<div class="jodit-resizer__bottom-right"></div>
|
|
@@ -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"}},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>
|
|
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 u}});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){let i=t.classes?.filter(Boolean)[0];return i?{element:t.element,attributes:{class:i}}:{element:t.element}}function u(t,i,n){let u=(0,o.detectActiveStyle)(t,n);u&&(t.s.commitStyle(c(u)),!function(t,i){let n=i.classes?.filter(Boolean);if(!n||n.length<=1)return;let o=t.s.current();if(o)if(r.IS_BLOCK.test(i.element)){let i=s.Dom.closest(o,s.Dom.isBlock,t.editor);i&&l(i,n.slice(1))}else{let o=a(t,i);o&&(l(o,n.slice(1)),"span"!==o.nodeName.toLowerCase()||o.attributes.length||s.Dom.unwrap(o))}}(t,u),u===i)||(t.s.commitStyle(c(i)),function(t,i){let n=i.classes?.filter(Boolean);if(!n||n.length<=1)return;let o=a(t,i);if(o)for(let t=1;t<n.length;t++)o.classList.add(n[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>
|
|
@@ -240,13 +240,13 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
240
240
|
* Released under the MIT License.
|
|
241
241
|
*/.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}`,""])},function(t,i){t.exports=function(t){var i=[];return i.toString=function(){return this.map(function(i){var n=function(t,i){var n=t[1]||"",o=t[3];if(!o)return n;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join(`
|
|
242
242
|
`)}return[n].join(`
|
|
243
|
-
`)}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},46166:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return r}});var o=n(82749);class r{createInitialState(){return{isOpen:!1,currentView:"welcome",currentConversation:null,conversations:[],isLoading:!1,error:null,pendingToolCalls:[],selectionContexts:[],abortController:null,editingMessageId:null,theme:this.jodit.o.aiAssistantPro.theme||"parent",displayMode:this.jodit.o.aiAssistantPro.displayMode,panelWidth:this.jodit.o.aiAssistantPro.panelWidth,panelHeight:this.jodit.o.aiAssistantPro.panelHeight,defaultModel:this.jodit.o.aiAssistantPro.defaultModel,defaultTemperature:this.jodit.o.aiAssistantPro.defaultTemperature}}open(){this.state.isOpen=!0,this.jodit.e.fire("open.ai-assistant-pro",this.state.currentConversation)}close(){this.state.isOpen=!1,this.jodit.e.fire("close.ai-assistant-pro")}isOpen(){return this.state.isOpen}setView(t){this.state.currentView=t,this.jodit.e.fire("viewChanged.ai-assistant-pro",t)}getView(){return this.state.currentView}setConversations(t){this.state.conversations=t}setSavedState(t){t.theme&&(this.state.theme=t.theme),t.displayMode&&(this.state.displayMode=t.displayMode),t.panelWidth&&(this.state.panelWidth=t.panelWidth),t.panelHeight&&(this.state.panelHeight=t.panelHeight),t.defaultModel&&(this.state.defaultModel=t.defaultModel),t.defaultTemperature&&(this.state.defaultTemperature=t.defaultTemperature)}getConversations(){return this.state.conversations}setCurrentConversation(t){if(this.state.currentConversation===t)throw Error("Conversation is already current");this.state.currentConversation=t||null,t&&(this.setView("conversation"),this.jodit.e.fire("conversationSwitched.ai-assistant-pro",t))}getCurrentConversation(){return this.state.currentConversation}removeConversation(t){let i=this.state.conversations.filter(i=>i.id!==t);this.setConversations(i)}setLoading(t){this.state.isLoading=t}isLoading(){return this.state.isLoading}setError(t){this.state.error=t,t&&this.jodit.e.fire("error.ai-assistant-pro",Error(t))}getError(){return this.state.error}clearError(){this.setError(null)}setPendingToolCalls(t){this.state.pendingToolCalls=t}getPendingToolCalls(){return this.state.pendingToolCalls}addPendingToolCall(t){let i=[...this.state.pendingToolCalls,t];this.setPendingToolCalls(i)}removePendingToolCall(t){let i=this.state.pendingToolCalls.filter(i=>i.id!==t);this.setPendingToolCalls(i)}updateToolCallStatus(t,i){let n=this.state.pendingToolCalls.map(n=>n.id===t?{...n,status:i}:n);this.setPendingToolCalls(n)}setSelectionContexts(t){this.state.selectionContexts=t}getSelectionContexts(){return this.state.selectionContexts}addSelectionContext(t){let{maxContextRanges:i}=this.jodit.o.aiAssistantPro,n=[...this.state.selectionContexts,t];n.length>i&&(n=n.slice(-i)),this.setSelectionContexts(n),this.jodit.e.fire("contextAdded.ai-assistant-pro",t)}removeSelectionContext(t){let i=this.state.selectionContexts.filter((i,n)=>n!==t);this.setSelectionContexts(i),this.jodit.e.fire("contextRemoved.ai-assistant-pro",t)}clearSelectionContexts(){this.setSelectionContexts([])}setAbortController(t){this.state.abortController=t}getAbortController(){return this.state.abortController}setEditingMessageId(t){this.state.editingMessageId=t}getEditingMessageId(){return this.state.editingMessageId}isEditingMessage(){return null!=this.state.editingMessageId}clearEditingMessage(){this.setEditingMessageId(null)}reset(){this.state=this.createInitialState()}destruct(){this.state.abortController&&this.state.abortController.abort(),this.reset()}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"state",void 0),this.jodit=t,this.state=this.createInitialState()}}},46295:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altura de la línea"}},46334:function(t,i,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},46448:function(t,i,n){"use strict";n(73391),n(93183),n(66707),n(41107),n(93079),n(575),n(23399),n(96111),n(42263),n(77469),n(23531),n(93401),n(65517),n(64837),n(59451),n(18363),n(6687),n(45927),n(7309),n(43003),n(72253),n(65735)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},46614:function(t,i,n){"use strict";var o=n(87612),r=n(70799),s=n(29960),a=n(86583),l=n(12153),c=n(6441),u=n(26532),d=n(93602),h=n(75259);c.Config.prototype.speechRecognize={api:void 0!==u.SpeechRecognition?u.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},l.Icon.set("speech-recognize",h.default),c.Config.prototype.controls.speechRecognize={isVisible:t=>!!t.o.speechRecognize.api,isActive(t,i){let n=(0,a.dataBind)(t,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled:t=>!t.o.speechRecognize.api,exec(t,i,{button:n,control:l}){var c;let{api:u,lang:h,continuous:p,interimResults:f,sound:m}=t.o.speechRecognize;if(!u)return void t.alert("Speech recognize API unsupported in your browser");let g=(0,a.dataBind)(t,"speech");if(!g){let i=new u;(g=new d.RecognizeManager(t.async,i)).lang=(0,r.isString)(h)?h:null!=(c=(0,s.attr)(t.od.documentElement,"lang"))?c:void 0,g.continuous=p,g.interimResults=f,g.sound=m,(0,a.dataBind)(t,"speech",g),g.on("pulse",t=>{n.setMod("pulse",t)}),g.on("result",i=>t.e.fire("speechRecognizeResult",i)),g.on("progress",i=>t.e.fire("speechRecognizeProgressResult",i)),g.on("error",i=>t.message.error(i)),n.hookStatus("beforeDestruct",()=>{(0,a.dataBind)(t,"speech",null),g.destruct()})}if(l.args){let t=l.args[0];if((0,o.isBoolean)(g[t])){g[t]=!g[t],g.isEnabled&&g.restart();return}}g.toggle(),g.isEnabled&&n.setMod("pulse",!0),n.state.activated=g.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,i,n){var o;let r=(0,a.dataBind)(t,"speech"),s=null!=(o=null==r?void 0:r[i])?o:t.o.speechRecognize[i];return`<span class='jodit-speech-recognize__list-item'><input ${s?"checked":""} class='jodit-checkbox' type='checkbox'> ${n}</span>`},mods:{stroke:!1}}},46776:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(44330);r.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",s.default)},46954:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),c=n(20356),u=n(2692);class d extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",d.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",d.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:t}=this,i=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);this.abortController?.abort(),this.workLoop(i)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(d.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){let{j:r}=this,{range:s}=r.s,l=s.startContainer===t,c=s.startOffset,u=n.index??0;t.nodeValue=i.substring(0,u);let d=i.substring(u+n[0].length);if(d.length){let i=r.createInside.text(d);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),l&&this.restoreCursorPosition(c,t,o.firstChild,o.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{let i=(0,l.attr)(t,"dataHighlightSchema");if(!i)return;let n=RegExp(i),o=t.innerText??"";(!n.test(o)||o.replace(n,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),u.JoditPro.plugins.add("highlight-signature",d)},46995:function(t){t.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},47064:function(t,i,n){"use strict";n.d(i,{clearAttributes:function(){return r}});let o=["cellspacing","cellpadding","border","v:shapes","o:spid"];function r(t){if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,0===t.length))return t.remove(),null;for(let i of("_GoBack"===t.attributes.name&&(t.attributes.name=null),o))t.attributes[i]&&(t.attributes[i]=null);return t}},47193:function(t,i,n){"use strict";n.r(i),i.default={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},47373:function(t,i,n){"use strict";function o(t,i,n="image/png"){let r=atob(t),s=r.length,a=new Uint8Array(s);for(let t=0;s>t;t++)a[t]=r.charCodeAt(t);return new File([new Blob([a],{type:n})],i,{type:n})}n.d(i,{base64ToFile:function(){return o}})},47615:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Simbolo"}},47660:function(t,i,n){"use strict";function o(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}n.d(i,{removeElement:function(){return o}})},47682:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(12324);var s=n(45198),a=n(78879),l=n.n(a),c=n(65478),u=n(2748),d=n(580),h=n(50911),p=n(12153),f=n(2692);class m extends h.Plugin{get style(){return(0,d.getContainer)(this.jodit,m,"style",!0)}enable(){this.isEnabled=!0;let t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:i,color:n}=this.j.o.showBlocks;this.style.innerHTML=i.map(i=>`${t} ${i}{
|
|
243
|
+
`)}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},46166:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return r}});var o=n(82749);class r{createInitialState(){return{isOpen:!1,currentView:"welcome",currentConversation:null,conversations:[],isLoading:!1,error:null,pendingToolCalls:[],selectionContexts:[],abortController:null,editingMessageId:null,theme:this.jodit.o.aiAssistantPro.theme||"parent",displayMode:this.jodit.o.aiAssistantPro.displayMode,panelWidth:this.jodit.o.aiAssistantPro.panelWidth,panelHeight:this.jodit.o.aiAssistantPro.panelHeight,defaultModel:this.jodit.o.aiAssistantPro.defaultModel,defaultTemperature:this.jodit.o.aiAssistantPro.defaultTemperature}}open(){this.state.isOpen=!0,this.jodit.e.fire("open.ai-assistant-pro",this.state.currentConversation)}close(){this.state.isOpen=!1,this.jodit.e.fire("close.ai-assistant-pro")}isOpen(){return this.state.isOpen}setView(t){this.state.currentView=t,this.jodit.e.fire("viewChanged.ai-assistant-pro",t)}getView(){return this.state.currentView}setConversations(t){this.state.conversations=t}setSavedState(t){t.theme&&(this.state.theme=t.theme),t.displayMode&&(this.state.displayMode=t.displayMode),t.panelWidth&&(this.state.panelWidth=t.panelWidth),t.panelHeight&&(this.state.panelHeight=t.panelHeight),t.defaultModel&&(this.state.defaultModel=t.defaultModel),t.defaultTemperature&&(this.state.defaultTemperature=t.defaultTemperature)}getConversations(){return this.state.conversations}setCurrentConversation(t){if(this.state.currentConversation===t)throw Error("Conversation is already current");this.state.currentConversation=t||null,t&&(this.setView("conversation"),this.jodit.e.fire("conversationSwitched.ai-assistant-pro",t))}getCurrentConversation(){return this.state.currentConversation}removeConversation(t){let i=this.state.conversations.filter(i=>i.id!==t);this.setConversations(i)}setLoading(t){this.state.isLoading=t}isLoading(){return this.state.isLoading}setError(t){this.state.error=t,t&&this.jodit.e.fire("error.ai-assistant-pro",Error(t))}getError(){return this.state.error}clearError(){this.setError(null)}setPendingToolCalls(t){this.state.pendingToolCalls=t}getPendingToolCalls(){return this.state.pendingToolCalls}addPendingToolCall(t){let i=[...this.state.pendingToolCalls,t];this.setPendingToolCalls(i)}removePendingToolCall(t){let i=this.state.pendingToolCalls.filter(i=>i.id!==t);this.setPendingToolCalls(i)}updateToolCallStatus(t,i){let n=this.state.pendingToolCalls.map(n=>n.id===t?{...n,status:i}:n);this.setPendingToolCalls(n)}setSelectionContexts(t){this.state.selectionContexts=t}getSelectionContexts(){return this.state.selectionContexts}addSelectionContext(t){let{maxContextRanges:i}=this.jodit.o.aiAssistantPro,n=[...this.state.selectionContexts,t];n.length>i&&(n=n.slice(-i)),this.setSelectionContexts(n),this.jodit.e.fire("contextAdded.ai-assistant-pro",t)}removeSelectionContext(t){let i=this.state.selectionContexts.filter((i,n)=>n!==t);this.setSelectionContexts(i),this.jodit.e.fire("contextRemoved.ai-assistant-pro",t)}clearSelectionContexts(){this.setSelectionContexts([])}setAbortController(t){this.state.abortController=t}getAbortController(){return this.state.abortController}setEditingMessageId(t){this.state.editingMessageId=t}getEditingMessageId(){return this.state.editingMessageId}isEditingMessage(){return null!=this.state.editingMessageId}clearEditingMessage(){this.setEditingMessageId(null)}reset(){this.state=this.createInitialState()}destruct(){this.state.abortController&&this.state.abortController.abort(),this.reset()}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"state",void 0),this.jodit=t,this.state=this.createInitialState()}}},46295:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altura de la línea"}},46334:function(t,i,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},46448:function(t,i,n){"use strict";n(73391),n(93183),n(66707),n(41107),n(93079),n(575),n(23399),n(96111),n(42263),n(77469),n(23531),n(93401),n(65517),n(64837),n(59451),n(18363),n(6687),n(45927),n(7309),n(43003),n(72253),n(65735)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},46614:function(t,i,n){"use strict";var o=n(87612),r=n(70799),s=n(29960),a=n(86583),l=n(12153),c=n(6441),u=n(26532),d=n(93602),h=n(75259);c.Config.prototype.speechRecognize={api:void 0!==u.SpeechRecognition?u.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},l.Icon.set("speech-recognize",h.default),c.Config.prototype.controls.speechRecognize={isVisible:t=>!!t.o.speechRecognize.api,isActive(t,i){let n=(0,a.dataBind)(t,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled:t=>!t.o.speechRecognize.api,exec(t,i,{button:n,control:l}){var c;let{api:u,lang:h,continuous:p,interimResults:f,sound:m}=t.o.speechRecognize;if(!u)return void t.alert("Speech recognize API unsupported in your browser");let g=(0,a.dataBind)(t,"speech");if(!g){let i=new u;(g=new d.RecognizeManager(t.async,i)).lang=(0,r.isString)(h)?h:null!=(c=(0,s.attr)(t.od.documentElement,"lang"))?c:void 0,g.continuous=p,g.interimResults=f,g.sound=m,(0,a.dataBind)(t,"speech",g),g.on("pulse",t=>{n.setMod("pulse",t)}),g.on("result",i=>t.e.fire("speechRecognizeResult",i)),g.on("progress",i=>t.e.fire("speechRecognizeProgressResult",i)),g.on("error",i=>t.message.error(i)),n.hookStatus("beforeDestruct",()=>{(0,a.dataBind)(t,"speech",null),g.destruct()})}if(l.args){let t=l.args[0];if((0,o.isBoolean)(g[t])){g[t]=!g[t],g.isEnabled&&g.restart();return}}g.toggle(),g.isEnabled&&n.setMod("pulse",!0),n.state.activated=g.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,i,n){var o;let r=(0,a.dataBind)(t,"speech"),s=null!=(o=null==r?void 0:r[i])?o:t.o.speechRecognize[i];return`<span class='jodit-speech-recognize__list-item'><input ${s?"checked":""} class='jodit-checkbox' type='checkbox'> ${n}</span>`},mods:{stroke:!1}}},46732:function(t){t.exports={Favorites:"Favoriten",Settings:"Einstellungen",Light:"Hell",Dark:"Dunkel",Theme:"Design",Show:"Anzeigen",Hide:"Ausblenden","Show favorites":"Favoriten anzeigen",Tiles:"Kacheln",List:"Liste",Compact:"Kompakt",View:"Ansicht","Folders position":"Ordnerposition","Sort by":"Sortieren nach","Extra small":"Sehr klein",Small:"Klein",Large:"Groß","Extra large":"Sehr groß","Tile size":"Kachelgröße"}},46776:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(44330);r.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",s.default)},46954:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),c=n(20356),u=n(2692);class d extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",d.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",d.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:t}=this,i=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);this.abortController?.abort(),this.workLoop(i)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(d.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){let{j:r}=this,{range:s}=r.s,l=s.startContainer===t,c=s.startOffset,u=n.index??0;t.nodeValue=i.substring(0,u);let d=i.substring(u+n[0].length);if(d.length){let i=r.createInside.text(d);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),l&&this.restoreCursorPosition(c,t,o.firstChild,o.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{let i=(0,l.attr)(t,"dataHighlightSchema");if(!i)return;let n=RegExp(i),o=t.innerText??"";(!n.test(o)||o.replace(n,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),u.JoditPro.plugins.add("highlight-signature",d)},46995:function(t){t.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},47064:function(t,i,n){"use strict";n.d(i,{clearAttributes:function(){return r}});let o=["cellspacing","cellpadding","border","v:shapes","o:spid"];function r(t){if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,0===t.length))return t.remove(),null;for(let i of("_GoBack"===t.attributes.name&&(t.attributes.name=null),o))t.attributes[i]&&(t.attributes[i]=null);return t}},47193:function(t,i,n){"use strict";n.r(i),i.default={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},47373:function(t,i,n){"use strict";function o(t,i,n="image/png"){let r=atob(t),s=r.length,a=new Uint8Array(s);for(let t=0;s>t;t++)a[t]=r.charCodeAt(t);return new File([new Blob([a],{type:n})],i,{type:n})}n.d(i,{base64ToFile:function(){return o}})},47615:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Simbolo"}},47660:function(t,i,n){"use strict";function o(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}n.d(i,{removeElement:function(){return o}})},47682:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(12324);var s=n(45198),a=n(78879),l=n.n(a),c=n(65478),u=n(2748),d=n(580),h=n(50911),p=n(12153),f=n(2692);class m extends h.Plugin{get style(){return(0,d.getContainer)(this.jodit,m,"style",!0)}enable(){this.isEnabled=!0;let t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:i,color:n}=this.j.o.showBlocks;this.style.innerHTML=i.map(i=>`${t} ${i}{
|
|
244
244
|
outline: 1px dashed ${n};
|
|
245
245
|
background-image: url("${"data:image/svg+xml;utf8,"+escape('<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+n+';font: 10px sans-serif" x="50px" y="0">'+i+"</text></svg>")}");
|
|
246
246
|
background-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;
|
|
247
247
|
background-repeat: no-repeat;
|
|
248
248
|
position: relative;
|
|
249
|
-
}`).join("")}disable(){this.isEnabled=!1;let t=(0,c.cached)(this,"style");t&&(t.innerHTML="")}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){t.e.on("showBlocksEnabled",()=>this.isEnabled),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),u.Dom.safeRemove((0,c.cached)(this,"style"))}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"showBlocks",group:"state"}]),(0,o._)(this,"isEnabled",!1),(0,d.extendLang)(s),p.Icon.set("showBlocks",l())}}(0,o._)(m,"requires",["license"]),(0,r.__decorate)([c.cache],m.prototype,"style",null),(0,r.__decorate)([c.autobind],m.prototype,"enable",null),(0,r.__decorate)([c.autobind],m.prototype,"disable",null),(0,r.__decorate)([c.autobind],m.prototype,"toggle",null),f.JoditPro.plugins.add("show-blocks",m)},47686:function(t,i,n){"use strict";n.d(i,{onTabInsideLi:function(){return o.onTabInsideLi}});var o=n(26658)},47749:function(t,i,n){"use strict";n.d(i,{readMargins:function(){return r}});var o=n(12475);function r(t,i,n){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let a=t.style.getPropertyValue((0,o.kebabCase)(n));if(!a){s=!0,i[n]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[n]=a,(s&&i[n]||r&&"marginTop"!==n&&i[n]!==i.marginTop)&&(r=!1)}),n.marginIsLocked=r}},48038:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},48154:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},48538:function(t,i,n){"use strict";n.d(i,{UIElement:function(){return p}});var o,r=n(91907),s=n(55153),a=n(2748),l=n(70799),c=n(29960),u=n(14316),d=n(34176),h=n(12153);let p=o=class t extends r.ViewComponent{getRole(){var t;return(null==(t=this.options)?void 0:t.role)||""}get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let i=this.parentElement;for(;i;)t(i),i=i.parentElement;return this}updateParentElement(t){var i;return null==(i=this.__parentElement)||i.updateParentElement(t),this}get(t,i){return super.get(t,i)||this.getElm(t)}closest(t){let i="object"==typeof t?i=>i===t:i=>r.Component.isInstanceOf(i,t),n=this.__parentElement;for(;n;){if(i(n))return n;n=!n.parentElement&&n.container.parentElement?o.closestElement(n.container.parentElement,o):n.parentElement}return null}static closestElement(t,i){let n=a.Dom.up(t,t=>{if(t){let{component:n}=t;return n&&r.Component.isInstanceOf(n,i)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let i=this.render(t);if((0,l.isString)(i)){let t=this.parseTemplate(i);return t.classList.add(this.componentName),t}return i}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,i)=>h.Icon.get(i)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,i)=>this.i18n(i)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,i){super(t),this.name="",this.__parentElement=null,this.mods={},this.options=i,this.container=this.createContainer(i);const n=this.getRole();n&&(0,c.attr)(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};p=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}([(0,s.derive)(d.Mods,u.Elms)],p)},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},48705:function(t,i,n){"use strict";n.d(i,{UISettingsButton:function(){return o.UISettingsButton}});var o=n(76697)},49033:function(t,i,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},49155:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},49399:function(t,i){"use strict";i.default='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '},49459:function(t,i,n){"use strict";function o(t,i,n={}){let r=t[i];if("string"!=typeof r||!n.allowEmpty&&""===r)throw Error(`Parameter "${i}" is required and must be a${n.allowEmpty?"":" non-empty"} string`);return r}n.d(i,{requireString:function(){return o}})},49759:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbolit"}},49841:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Szimbólum"}},49922:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> '},49996:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return a}});var o=n(82758),r=n(70799),s=n(38837);class a{setState(t){(0,s.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,i){let n=this.transitions[this.getState()][t];if(n){let t=n.call(this,i);return(0,s.assert)(t&&t!==i,"Action should return new value"),(0,s.assert)((0,r.isString)(t.next),"Value should contain the next state"),(0,s.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),o.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,i){this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},50050:function(t,i,n){"use strict";n.d(i,{ImageEditor:function(){return _},openImageEditor:function(){return C}});var o,r=n(91907),s=n(65478),a=n(22732),l=n(4510),c=n(49055),u=n(29960),d=n(41180),h=n(76078),p=n(37790),f=n(62843),m=n(6441);n(62489);var g=n(22461),b=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 v="jodit-image-editor",y="resize",w="crop",_=o=class t extends r.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,i){return this.j.async.promise(n=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,h.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,h.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,d.css)(this.cropHandler,"background","transparent"),this.onSave=i,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:r,heightInput:s}=(0,h.refs)(this.editor),l=()=>{this.isDestructed||(this.image.removeEventListener("load",l),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=this.naturalWidth.toString(),s.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,h.$$)(".jodit-icon_loader",this.editor)),this.activeTab===w&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),n(this._dialog))};this.image.addEventListener("load",l),this.image.complete&&l()})}onTitleModeClick(t){let i=t.target,n=null==i?void 0:i.parentElement;if(!n)return;(0,h.$$)(`.${v}__slider,.${v}__area`,this.editor).forEach(t=>t.classList.remove(`${v}_active`)),n.classList.add(`${v}_active`),this.activeTab=(0,u.attr)(n,"-area")||y;let o=this.editor.querySelector(`.${v}__area.${v}__area_`+this.activeTab);o&&o.classList.add(`${v}_active`),this.activeTab===w&&this.showCrop()}onChangeSizeInput(t){let i,n=t.target,{widthInput:o,heightInput:r}=(0,h.refs)(this.editor),s="widthInput"===(0,u.attr)(n,"data-ref"),a=parseInt(n.value,10),l=s?this.o.min_width:this.o.min_height,c=s?this.o.min_height:this.o.min_width;a>l&&((0,d.css)(this.image,s?"width":"height",a),this.resizeUseRatio&&(i=s?Math.round(a/this.ratio):Math.round(a*this.ratio))>c&&((0,d.css)(this.image,s?"height":"width",i),s?r.value=i.toString():o.value=i.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===w?(this.top_x=(0,d.css)(this.cropHandler,"left"),this.top_y=(0,d.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===y&&this.resizeUseRatio||this.activeTab===w&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===y?(this.new_w>this.o.resizeMinWidth&&((0,d.css)(this.image,"width",this.new_w+"px"),i.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,d.css)(this.image,"height",this.new_h+"px"),n.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,d.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,d.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,d.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+v).off("."+v),super.destruct())}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=y,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let t=this.crop_box.parentNode,i=.8*t.offsetWidth,n=.8*t.offsetHeight,o=i,r=n,{naturalWidth:s,naturalHeight:a}=this;i>s&&n>a?(o=s,r=a):this.ratio>i/n?(o=i,r=i/s*a):(o=n/a*s,r=n),(0,d.css)(this.crop_box,{width:o,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=o.calcValueByPercent(t,this.o.cropDefaultWidth);let i=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=o.calcValueByPercent(i,this.o.cropDefaultHeight),(0,d.css)(this.cropHandler,{backgroundImage:"url("+(0,u.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:i/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,i=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,d.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,d.css)(this.cropHandler,"top")/i,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/i,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let t=this,{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+v,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+v,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${v}__slider-title`)),"click",this.onTitleModeClick).on([i,n],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:r}=(0,h.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),r&&r.addEventListener("change",()=>{this.cropUseRatio=r.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,d.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let i=(0,d.css)(t.cropHandler,"left"),n=(0,d.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;i<0&&(i=0),n<0&&(n=0),i+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-i,t.cropUseRatio&&(r=o/t.ratio)),n+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-n,t.cropUseRatio&&(o=r*t.ratio)),(0,d.css)(t.cropHandler,{width:o,height:r,left:i,top:n,backgroundPosition:-i-1+"px "+(-n-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let r={action:t.activeTab,box:t.activeTab===y?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",i=>{if(!(0,c.trim)(i))return t.j.alert("The name should not be empty"),!1;t.onSave(i,r,t.hide,i=>{t.j.alert(i.message)})});break;case t.buttons.save:t.onSave(void 0,r,t.hide,i=>{t.j.alert(i.message)});break;case t.buttons.reset:t.activeTab===y?((0,d.css)(t.image,{width:null,height:null}),i.value=t.naturalWidth.toString(),n.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:m.Config.defaultOptions.imageeditor;const i=this.options;this.resizeUseRatio=i.resizeUseRatio,this.cropUseRatio=i.cropUseRatio,this.buttons={reset:(0,f.Button)(this.j,"update","Reset"),save:(0,f.Button)(this.j,"save","Save"),saveas:(0,f.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=i.resize?y:w,this.editor=(0,g.form)(this.j,this.options);const{resizeBox:n,cropBox:r}=(0,h.refs)(this.editor);this.resize_box=n,this.crop_box=r,this.sizes=this.editor.querySelector(`.${v}__area.${v}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${v}__resizer`),this.cropHandler=this.editor.querySelector(`.${v}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function C(t,i,n,o,r,s){return this.getInstance("ImageEditor",this.o).open(t,(t,a,l,c)=>(0,p.call)("resize"===a.action?this.dataProvider.resize:this.dataProvider.crop,n,o,i,t,a.box).then(t=>{t&&(l(),r&&r())}).catch(t=>{c(t),s&&s(t)}))}_.calcValueByPercent=(t,i)=>{let n,o=i.toString(),r=parseFloat(t.toString());return(n=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(n=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(r*(parseFloat(n[1])/100)):r||0},b([s.autobind],_.prototype,"hide",null),b([s.autobind],_.prototype,"open",null),b([s.autobind],_.prototype,"onTitleModeClick",null),b([(0,s.debounce)(),s.autobind],_.prototype,"onChangeSizeInput",null),b([s.autobind],_.prototype,"onResizeHandleMouseDown",null),b([s.autobind],_.prototype,"onGlobalMouseUp",null),b([(0,s.throttle)(10)],_.prototype,"onGlobalMouseMove",null),_=o=b([s.component],_)},50267: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="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},50373:function(t,i,n){"use strict";n.d(i,{processOldBrowserDrag:function(){return u}});var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(74569),c=n(80020);function u(t,i,n,u,d){if(i&&(!i.types.length||i.types[0]!==o.TEXT_PLAIN)){let i=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(i);let o=(0,a.isJoditObject)(t.j)?t.j.s.save():null;i.focus(),t.j.async.setTimeout(()=>{let s=i.firstChild;if(r.Dom.safeRemove(i),s&&s.hasAttribute("src")){let i=(0,a.attr)(s,"src")||"";o&&(0,a.isJoditObject)(t.j)&&t.j.s.restore(),(0,c.sendFiles)(t,[(0,l.dataURItoBlob)(i)],n,u).finally(d)}},t.j.defaultTimeout)}}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},50963:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},51036:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51251:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return g}});var o=n(82749),r=n(31635),s=n(68365),a=n(63227),l=n(86563),c=n(93677),u=n(48705),d=n(55885),h=n(65478),p=n(2748),f=n(67510),m=n(62843);class g extends f.UIElement{className(){return"UIMainPanel"}setParentView(t){return this.welcomeScreen?.setParentView(t),this.conversationList?.setParentView(t),this.messageList?.setParentView(t),this.inputArea?.setParentView(t),this.permissionRequest?.setParentView(t),this.settingsButton?.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
|
|
249
|
+
}`).join("")}disable(){this.isEnabled=!1;let t=(0,c.cached)(this,"style");t&&(t.innerHTML="")}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){t.e.on("showBlocksEnabled",()=>this.isEnabled),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),u.Dom.safeRemove((0,c.cached)(this,"style"))}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"showBlocks",group:"state"}]),(0,o._)(this,"isEnabled",!1),(0,d.extendLang)(s),p.Icon.set("showBlocks",l())}}(0,o._)(m,"requires",["license"]),(0,r.__decorate)([c.cache],m.prototype,"style",null),(0,r.__decorate)([c.autobind],m.prototype,"enable",null),(0,r.__decorate)([c.autobind],m.prototype,"disable",null),(0,r.__decorate)([c.autobind],m.prototype,"toggle",null),f.JoditPro.plugins.add("show-blocks",m)},47686:function(t,i,n){"use strict";n.d(i,{onTabInsideLi:function(){return o.onTabInsideLi}});var o=n(26658)},47749:function(t,i,n){"use strict";n.d(i,{readMargins:function(){return r}});var o=n(12475);function r(t,i,n){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let a=t.style.getPropertyValue((0,o.kebabCase)(n));if(!a){s=!0,i[n]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[n]=a,(s&&i[n]||r&&"marginTop"!==n&&i[n]!==i.marginTop)&&(r=!1)}),n.marginIsLocked=r}},48038:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},48154:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},48538:function(t,i,n){"use strict";n.d(i,{UIElement:function(){return p}});var o,r=n(91907),s=n(55153),a=n(2748),l=n(70799),c=n(29960),u=n(14316),d=n(34176),h=n(12153);let p=o=class t extends r.ViewComponent{getRole(){var t;return(null==(t=this.options)?void 0:t.role)||""}get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let i=this.parentElement;for(;i;)t(i),i=i.parentElement;return this}updateParentElement(t){var i;return null==(i=this.__parentElement)||i.updateParentElement(t),this}get(t,i){return super.get(t,i)||this.getElm(t)}closest(t){let i="object"==typeof t?i=>i===t:i=>r.Component.isInstanceOf(i,t),n=this.__parentElement;for(;n;){if(i(n))return n;n=!n.parentElement&&n.container.parentElement?o.closestElement(n.container.parentElement,o):n.parentElement}return null}static closestElement(t,i){let n=a.Dom.up(t,t=>{if(t){let{component:n}=t;return n&&r.Component.isInstanceOf(n,i)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let i=this.render(t);if((0,l.isString)(i)){let t=this.parseTemplate(i);return t.classList.add(this.componentName),t}return i}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,i)=>h.Icon.get(i)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,i)=>this.i18n(i)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,i){super(t),this.name="",this.__parentElement=null,this.mods={},this.options=i,this.container=this.createContainer(i);const n=this.getRole();n&&(0,c.attr)(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};p=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}([(0,s.derive)(d.Mods,u.Elms)],p)},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},48705:function(t,i,n){"use strict";n.d(i,{UISettingsButton:function(){return o.UISettingsButton}});var o=n(76697)},49033:function(t,i,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},49155:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},49399:function(t,i){"use strict";i.default='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '},49459:function(t,i,n){"use strict";function o(t,i,n={}){let r=t[i];if("string"!=typeof r||!n.allowEmpty&&""===r)throw Error(`Parameter "${i}" is required and must be a${n.allowEmpty?"":" non-empty"} string`);return r}n.d(i,{requireString:function(){return o}})},49759:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbolit"}},49841:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Szimbólum"}},49922:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> '},49996:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return a}});var o=n(82758),r=n(70799),s=n(38837);class a{setState(t){(0,s.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,i){let n=this.transitions[this.getState()][t];if(n){let t=n.call(this,i);return(0,s.assert)(t&&t!==i,"Action should return new value"),(0,s.assert)((0,r.isString)(t.next),"Value should contain the next state"),(0,s.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),o.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,i){this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},50050:function(t,i,n){"use strict";n.d(i,{ImageEditor:function(){return _},openImageEditor:function(){return C}});var o,r=n(91907),s=n(65478),a=n(22732),l=n(4510),c=n(49055),u=n(29960),d=n(41180),h=n(76078),p=n(37790),f=n(62843),m=n(6441);n(62489);var g=n(22461),b=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 v="jodit-image-editor",y="resize",w="crop",_=o=class t extends r.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,i){return this.j.async.promise(n=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,h.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,h.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,d.css)(this.cropHandler,"background","transparent"),this.onSave=i,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:r,heightInput:s}=(0,h.refs)(this.editor),l=()=>{this.isDestructed||(this.image.removeEventListener("load",l),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=this.naturalWidth.toString(),s.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,h.$$)(".jodit-icon_loader",this.editor)),this.activeTab===w&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),n(this._dialog))};this.image.addEventListener("load",l),this.image.complete&&l()})}onTitleModeClick(t){let i=t.target,n=null==i?void 0:i.parentElement;if(!n)return;(0,h.$$)(`.${v}__slider,.${v}__area`,this.editor).forEach(t=>t.classList.remove(`${v}_active`)),n.classList.add(`${v}_active`),this.activeTab=(0,u.attr)(n,"-area")||y;let o=this.editor.querySelector(`.${v}__area.${v}__area_`+this.activeTab);o&&o.classList.add(`${v}_active`),this.activeTab===w&&this.showCrop()}onChangeSizeInput(t){let i,n=t.target,{widthInput:o,heightInput:r}=(0,h.refs)(this.editor),s="widthInput"===(0,u.attr)(n,"data-ref"),a=parseInt(n.value,10),l=s?this.o.min_width:this.o.min_height,c=s?this.o.min_height:this.o.min_width;a>l&&((0,d.css)(this.image,s?"width":"height",a),this.resizeUseRatio&&(i=s?Math.round(a/this.ratio):Math.round(a*this.ratio))>c&&((0,d.css)(this.image,s?"height":"width",i),s?r.value=i.toString():o.value=i.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===w?(this.top_x=(0,d.css)(this.cropHandler,"left"),this.top_y=(0,d.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===y&&this.resizeUseRatio||this.activeTab===w&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===y?(this.new_w>this.o.resizeMinWidth&&((0,d.css)(this.image,"width",this.new_w+"px"),i.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,d.css)(this.image,"height",this.new_h+"px"),n.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,d.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,d.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,d.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+v).off("."+v),super.destruct())}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=y,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let t=this.crop_box.parentNode,i=.8*t.offsetWidth,n=.8*t.offsetHeight,o=i,r=n,{naturalWidth:s,naturalHeight:a}=this;i>s&&n>a?(o=s,r=a):this.ratio>i/n?(o=i,r=i/s*a):(o=n/a*s,r=n),(0,d.css)(this.crop_box,{width:o,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=o.calcValueByPercent(t,this.o.cropDefaultWidth);let i=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=o.calcValueByPercent(i,this.o.cropDefaultHeight),(0,d.css)(this.cropHandler,{backgroundImage:"url("+(0,u.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:i/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,i=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,d.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,d.css)(this.cropHandler,"top")/i,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/i,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let t=this,{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+v,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+v,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${v}__slider-title`)),"click",this.onTitleModeClick).on([i,n],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:r}=(0,h.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),r&&r.addEventListener("change",()=>{this.cropUseRatio=r.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,d.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let i=(0,d.css)(t.cropHandler,"left"),n=(0,d.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;i<0&&(i=0),n<0&&(n=0),i+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-i,t.cropUseRatio&&(r=o/t.ratio)),n+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-n,t.cropUseRatio&&(o=r*t.ratio)),(0,d.css)(t.cropHandler,{width:o,height:r,left:i,top:n,backgroundPosition:-i-1+"px "+(-n-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let r={action:t.activeTab,box:t.activeTab===y?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",i=>{if(!(0,c.trim)(i))return t.j.alert("The name should not be empty"),!1;t.onSave(i,r,t.hide,i=>{t.j.alert(i.message)})});break;case t.buttons.save:t.onSave(void 0,r,t.hide,i=>{t.j.alert(i.message)});break;case t.buttons.reset:t.activeTab===y?((0,d.css)(t.image,{width:null,height:null}),i.value=t.naturalWidth.toString(),n.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:m.Config.defaultOptions.imageeditor;const i=this.options;this.resizeUseRatio=i.resizeUseRatio,this.cropUseRatio=i.cropUseRatio,this.buttons={reset:(0,f.Button)(this.j,"update","Reset"),save:(0,f.Button)(this.j,"save","Save"),saveas:(0,f.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=i.resize?y:w,this.editor=(0,g.form)(this.j,this.options);const{resizeBox:n,cropBox:r}=(0,h.refs)(this.editor);this.resize_box=n,this.crop_box=r,this.sizes=this.editor.querySelector(`.${v}__area.${v}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${v}__resizer`),this.cropHandler=this.editor.querySelector(`.${v}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function C(t,i,n,o,r,s){return this.getInstance("ImageEditor",this.o).open(t,(t,a,l,c)=>(0,p.call)("resize"===a.action?this.dataProvider.resize:this.dataProvider.crop,n,o,i,t,a.box).then(t=>{t&&(l(),r&&r("string"==typeof t?t:void 0))}).catch(t=>{c(t),s&&s(t)}))}_.calcValueByPercent=(t,i)=>{let n,o=i.toString(),r=parseFloat(t.toString());return(n=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(n=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(r*(parseFloat(n[1])/100)):r||0},b([s.autobind],_.prototype,"hide",null),b([s.autobind],_.prototype,"open",null),b([s.autobind],_.prototype,"onTitleModeClick",null),b([(0,s.debounce)(),s.autobind],_.prototype,"onChangeSizeInput",null),b([s.autobind],_.prototype,"onResizeHandleMouseDown",null),b([s.autobind],_.prototype,"onGlobalMouseUp",null),b([(0,s.throttle)(10)],_.prototype,"onGlobalMouseMove",null),_=o=b([s.component],_)},50267: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="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},50373:function(t,i,n){"use strict";n.d(i,{processOldBrowserDrag:function(){return u}});var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(74569),c=n(80020);function u(t,i,n,u,d){if(i&&(!i.types.length||i.types[0]!==o.TEXT_PLAIN)){let i=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(i);let o=(0,a.isJoditObject)(t.j)?t.j.s.save():null;i.focus(),t.j.async.setTimeout(()=>{let s=i.firstChild;if(r.Dom.safeRemove(i),s&&s.hasAttribute("src")){let i=(0,a.attr)(s,"src")||"";o&&(0,a.isJoditObject)(t.j)&&t.j.s.restore(),(0,c.sendFiles)(t,[(0,l.dataURItoBlob)(i)],n,u).finally(d)}},t.j.defaultTimeout)}}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},50963:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},51036:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51251:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return g}});var o=n(82749),r=n(31635),s=n(68365),a=n(63227),l=n(86563),c=n(93677),u=n(48705),d=n(55885),h=n(65478),p=n(2748),f=n(67510),m=n(62843);class g extends f.UIElement{className(){return"UIMainPanel"}setParentView(t){return this.welcomeScreen?.setParentView(t),this.conversationList?.setParentView(t),this.messageList?.setParentView(t),this.inputArea?.setParentView(t),this.permissionRequest?.setParentView(t),this.settingsButton?.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
|
|
250
250
|
<div class="&__header">
|
|
251
251
|
<div class="&__header-left"></div>
|
|
252
252
|
<div class="&__header-title"></div>
|
|
@@ -258,7 +258,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
258
258
|
</div>
|
|
259
259
|
<div class="&__footer"></div>
|
|
260
260
|
</div>`}addResize(){}afterRender(){this.content=this.getElm("content"),this.createComponents(),this.createHeaderButtons(),this.__updateView("welcome")}async __onChangeView(){this.__updateView(this.state.currentView,this.state.currentConversation)}createComponents(){this.welcomeScreen=new d.UIWelcomeScreen(this.j),this.conversationList=new s.UIConversationList(this.j,this.options),this.messageList=new l.UIMessageList(this.j,this.options),this.inputArea=new a.UIInputArea(this.j,this.options),this.getElm("footer").appendChild(this.inputArea.container)}createHeaderButtons(){let t=this.getElm("header-left"),i=this.getElm("header-right"),n=new m.UIButton(this.j,{icon:{name:"angle-left"},size:"small",variant:"initial"});n.container.classList.add(this.getFullElName("back-button")),this.j.e.on(n,"click",()=>{this.j.e.fire("backToList.ai-assistant-pro")}),t.appendChild(n.container);let o=new m.UIButton(this.j,{icon:{name:"plus"},size:"small",tooltip:"New chat",variant:"initial"});if(o.container.classList.add(this.getFullElName("new-button")),this.j.e.on(o,"click",()=>{this.j.e.fire("newConversation.ai-assistant-pro")}),i.appendChild(o.container),this.shouldShowSettings()&&(this.settingsButton=new u.UISettingsButton(this.j,this.state,this.options,()=>this.state.currentConversation,this.updateConversation),this.settingsButton.container.classList.add(this.getFullElName("settings-button")),i.appendChild(this.settingsButton.container)),"dialog"===this.mods.displayMode||!1===this.mods.allowClose)return;let r=new m.UIButton(this.j,{icon:{name:"cancel"},size:"small",tooltip:"Close",variant:"initial"});r.container.classList.add(this.getFullElName("close-button")),this.j.e.on(r,"click",()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro")}),i.appendChild(r.container)}isFlightMode(){return"flight"===this.mods.displayMode}shouldShowSettings(){let t=this.options,i=t.allowEditDisplayMode||t.allowEditPanelWidth,n=t.allowEditDialogSettings;return i||n}__updateView(t,i=null){this.settingsButton?.update();let n=this.getElm("header-title");this.setMod("view",t);let o=this.isFlightMode();switch(t){case"welcome":n.textContent=this.j.i18n("AI Assistant"),p.Dom.safeRemove(this.conversationList.container),p.Dom.safeRemove(this.messageList.container),this.content.appendChild(this.welcomeScreen.container),this.inputArea.focus();break;case"conversationList":n.textContent=this.j.i18n("AI Assistant"),p.Dom.safeRemove(this.welcomeScreen.container),p.Dom.safeRemove(this.messageList.container),this.conversationList.container.isConnected||this.content.appendChild(this.conversationList.container);break;case"conversation":n.textContent=o?this.j.i18n("AI Assistant"):i?.title||this.j.i18n("Conversation"),p.Dom.safeRemove(this.welcomeScreen.container),p.Dom.safeRemove(this.conversationList.container),this.messageList.container.isConnected||this.content.appendChild(this.messageList.container),i&&this.messageList.setMessages(i.messages),this.inputArea.focus()}}onChangeCurrentConversation(){let{currentConversation:t}=this.state;t&&(this.conversationList.setActiveConversation(t.id),this.messageList.setMessages(t.messages))}onChangeConversations(){this.conversationList.setConversations(this.state.conversations)}onChangeSelectionContexts(){this.inputArea.setContexts(this.state.selectionContexts)}onChangeLoading(){this.inputArea.setLoading(this.state.isLoading)}onChangePendingToolCalls(){this.state.pendingToolCalls&&this.state.pendingToolCalls.length>0?this.showPermissionRequest(this.state.pendingToolCalls[0]):this.hidePermissionRequest()}showPermissionRequest(t){this.permissionRequest||(this.permissionRequest=new c.UIPermissionRequest(this.j,this.options)),this.permissionRequest.setToolCall(t);let i=this.getElm("footer");i.contains(this.permissionRequest.container)||i.insertBefore(this.permissionRequest.container,this.inputArea.container)}hidePermissionRequest(){this.permissionRequest&&this.permissionRequest.container.parentNode&&this.permissionRequest.container.parentNode.removeChild(this.permissionRequest.container)}destruct(){this.welcomeScreen?.destruct(),this.conversationList?.destruct(),this.messageList?.destruct(),this.inputArea?.destruct(),this.permissionRequest?.destruct(),this.settingsButton?.destruct(),super.destruct()}constructor(t,i,n,r){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"updateConversation",void 0),(0,o._)(this,"permissionRequest",void 0),(0,o._)(this,"settingsButton",void 0),(0,o._)(this,"content",void 0),this.state=i,this.options=n,this.updateConversation=r,this.permissionRequest=null,this.settingsButton=null}}(0,r.__decorate)([(0,h.hook)("ready")],g.prototype,"afterRender",null),(0,r.__decorate)([(0,h.watch)(["state.currentView","state.currentConversation"])],g.prototype,"__onChangeView",null),(0,r.__decorate)([(0,h.watch)("state.currentConversation")],g.prototype,"onChangeCurrentConversation",null),(0,r.__decorate)([(0,h.watch)("state.conversations")],g.prototype,"onChangeConversations",null),(0,r.__decorate)([(0,h.watch)("state.selectionContexts")],g.prototype,"onChangeSelectionContexts",null),(0,r.__decorate)([(0,h.watch)("state.isLoading")],g.prototype,"onChangeLoading",null),(0,r.__decorate)([(0,h.watch)("state.pendingToolCalls")],g.prototype,"onChangePendingToolCalls",null),g=(0,r.__decorate)([h.component],g)},51359:function(t,i,n){"use strict";n.d(i,{UIMessageListItem:function(){return h}});var o=n(82749),r=n(31635),s=n(81835),a=n(65478),l=n(67510),c=n(62843),u=n(62405),d=n(80870);class h extends l.UIElement{className(){return"UIMessageListItem"}render(){return`<div class="${this.getFullElName("message")}"></div>`}onReady(){this.updateContent(),this.contextMenu=new d.ContextMenu(this.j)}updateContent(){let t=this.container;t.innerHTML="",t.setAttribute("data-message-id",this.message.id),t.setAttribute("data-role",this.message.role);let i=this.j.c.div(this.getFullElName("message-bubble"));i.classList.add(this.getFullElName("message-bubble",this.message.role,!0));let n=this.j.c.div(this.getFullElName("message-content"));if(n.innerHTML=this.formatMessageContent(this.message.content),i.appendChild(n),this.opts.showTimestamps){let t=this.j.c.div(this.getFullElName("message-timestamp"));t.textContent=this.formatTimestamp(this.message.timestamp),i.appendChild(t)}let o=this.j.c.div(this.getFullElName("message-actions"));if(this.renderActionsButton(o),i.appendChild(o),t.appendChild(i),this.message.toolCalls&&this.message.toolCalls.length>0){let i=this.j.c.div(this.getFullElName("tool-calls"));t.appendChild(i),this.message.toolCalls.forEach(t=>{let n=this.createToolCallElement(t);i.appendChild(n)})}this.message.artifacts&&this.message.artifacts.length>0&&this.renderArtifacts()}renderActionsButton(t){let i=this.opts;(i.showCopyMessageAction||i.showRestartMessageAction||i.showEditMessageAction||i.showDeleteMessageAction)&&(this.actionsButton=new c.UIButton(this.j,{icon:{name:"dots"},tooltip:"Message actions",name:"messageActions",size:"tiny"}),this.actionsButton.onAction(t=>{this.showActionsMenu(t)}),t.appendChild(this.actionsButton.container))}showActionsMenu(t){if(!this.contextMenu||!this.actionsButton)return;let i=this.j,n=i.o.aiAssistantPro,o=[];n.showCopyMessageAction&&o.push({title:"Copy message",icon:"copy",exec:()=>{this.j.e.fire("copyMessage.ai-assistant-pro",this.message.id)}}),"user"===this.message.role&&(n.showRestartMessageAction&&o.push({title:"Restart from here",icon:"update",exec:()=>{this.j.e.fire("restartFromMessage.ai-assistant-pro",this.message.id)}}),n.showEditMessageAction&&o.push({title:"Edit message",icon:"pencil",exec:()=>{this.j.e.fire("editMessage.ai-assistant-pro",this.message.id)}})),n.showDeleteMessageAction&&o.push({title:"Delete message",icon:"bin",exec:()=>{i.confirm("Are you sure you want to delete this message?","Delete message",t=>{t&&this.j.e.fire("deleteMessage.ai-assistant-pro",this.message.id)})}});let r=this.actionsButton.container.getBoundingClientRect();this.contextMenu.show(r.left,r.bottom,o),t.stopPropagation()}renderArtifacts(){if(!this.message.artifacts||0===this.message.artifacts.length)return;let t=this.j.c.div(this.getFullElName("artifacts"));this.container.appendChild(t),this.artifactGroup||(this.artifactGroup=new u.UIGroup(this.j),this.artifactGroup.container.className="jodit-ui-artifact-group"),this.artifactGroup.clear(),this.message.artifacts.forEach(t=>{let i=new s.UIArtifact(this.j,t);this.artifactGroup.append(i)}),t.appendChild(this.artifactGroup.container)}createToolCallElement(t){let i=this.j.c.div(this.getFullElName("tool-call"));i.setAttribute("data-tool-id",t.id),i.setAttribute("data-status",t.status);let n=this.j.c.div(this.getFullElName("tool-header")),o=this.j.c.div(this.getFullElName("tool-icon"));o.classList.add(this.getFullElName("tool-icon",t.status,!0)),o.textContent="⚡";let r=this.j.c.div(this.getFullElName("tool-name"));r.textContent=this.j.i18n(t.name);let s=this.j.c.div(this.getFullElName("tool-status"));s.textContent=this.getToolStatusText(t.status||"unknown"),n.appendChild(o),n.appendChild(r),n.appendChild(s),i.appendChild(n);let a=this.createExpandableSection("Arguments",JSON.stringify(t.arguments||{},null,2));if(i.appendChild(a),t.result){let n=t.result.error?"Error: "+t.result.error:t.result.result||"",o=this.createExpandableSection("Result","string"==typeof n?n:JSON.stringify(n,null,2));i.appendChild(o)}return i}createExpandableSection(t,i){let n=this.j.c.div(this.getFullElName("tool-expandable")),o=this.j.c.element("button",{type:"button",class:this.getFullElName("tool-expandable-toggle")});o.textContent="▶ "+this.j.i18n(t);let r=this.j.c.element("pre",{class:this.getFullElName("tool-expandable-content")});return r.textContent=i,r.style.display="none",this.j.e.on(o,"click",()=>{"none"!==r.style.display?(r.style.display="none",o.textContent="▶ "+this.j.i18n(t)):(r.style.display="block",o.textContent="▼ "+this.j.i18n(t))}),n.appendChild(o),n.appendChild(r),n}getToolStatusText(t){return({pending:"⏳",approved:"✓",denied:"✕",executing:"⚡",executed:"✓",error:"⚠"})[t]||"●"}formatMessageContent(t){return(0,this.opts.formatMessageContent)(t,this.message.role,this.j.i18n.bind(this.j))}formatTimestamp(t){return(0,this.opts.formatTimestamp)(t,this.j.i18n.bind(this.j))}updateMessage(t){this.message=t,this.updateContent()}destruct(){this.actionsButton?.destruct(),this.contextMenu?.destruct(),this.artifactGroup?.destruct(),super.destruct()}constructor(t,i,n){super(t),(0,o._)(this,"message",void 0),(0,o._)(this,"opts",void 0),(0,o._)(this,"artifactGroup",void 0),(0,o._)(this,"actionsButton",void 0),(0,o._)(this,"contextMenu",void 0),this.message=i,this.opts=n,this.artifactGroup=null,this.actionsButton=null,this.contextMenu=null}}(0,r.__decorate)([(0,a.hook)("ready")],h.prototype,"onReady",null),h=(0,r.__decorate)([a.component],h)},51586:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return c}});var o=n(19606),r=n(2748),s=n(29960),a=n(76078),l=n(97420);function c(t,i,n,u=""){let d=document.createElement("iframe");d.style.display="none",document.body.appendChild(d);try{let r=d.contentDocument??d.contentWindow?.document;if(!r)return i;r.open(),r.write(i),r.close();let c="jd-style";for(let t=0;t<r.styleSheets.length;t+=1)try{let i=r.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)i[t].selectorText&&(0,a.$$)(i[t].selectorText,r.body).forEach(n=>{(0,s.attr)(n,c)||((0,s.attr)(n,c,(0,s.attr)(n,"style")||""),(0,s.attr)(n,"style","")),(0,s.attr)(n,"style",`${(0,s.attr)(n,"style")};${i[t].style.cssText}`)})}catch(t){}return(0,a.$$)(`[${c}]`,r.body).forEach(t=>{(0,s.attr)(t,"style",`${(0,s.attr)(t,"style")};${(0,s.attr)(t,c)}`)}),(0,o.transformWordToHtml)(t,l.JElement.make(r.body),n,u)}finally{r.Dom.safeRemove(d)}}},51642:function(t,i,n){"use strict";n.d(i,{readAlign:function(){return r}});var o=n(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},51804:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbool"}},51834:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altezza linea"}},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},52230:function(t,i){"use strict";i.default={"copy-format":"복사 형식"}},52285:function(t,i){"use strict";i.default={"copy-format":"کپی کردن قالب"}},52507:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},52604:function(t,i,n){"use strict";n.d(i,{Snapshot:function(){return a}});var o=n(91907),r=n(82758),s=n(2748);class a extends o.ViewComponent{className(){return"Snapshot"}static equal(t,i){return t.html===i.html&&JSON.stringify(t.range)===JSON.stringify(i.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let i=t.parentNode.childNodes,n=0,o=null;for(let r=0;r<i.length;r+=1){if(!o||this.isIgnoredNode(i[r])||s.Dom.isText(o)&&s.Dom.isText(i[r])||(n+=1),i[r]===t)return n;o=i[r]}return 0}static strokeOffset(t,i){for(;s.Dom.isText(t);)t=t.previousSibling,s.Dom.isText(t)&&t.nodeValue&&(i+=t.nodeValue.length);return i}calcHierarchyLadder(t){let i=[];if(!t||!t.parentNode||!s.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&i.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return i.reverse()}getElementByLadder(t){let i=this.j.editor,n;for(n=0;i&&n<t.length;n+=1)i=i.childNodes[t[n]];return i}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!r.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let i=this.j.s.sel;if(i&&i.rangeCount){let n=i.getRangeAt(0),o=this.calcHierarchyLadder(n.startContainer),r=this.calcHierarchyLadder(n.endContainer),s=a.strokeOffset(n.startContainer,n.startOffset),l=a.strokeOffset(n.endContainer,n.endOffset);o.length||n.startContainer===this.j.editor||(s=0),r.length||n.endContainer===this.j.editor||(l=0),t.range={startContainer:o,startOffset:s,endContainer:r,endOffset:l}}return t}restore(t){this.transaction(()=>{let i=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(i)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:i}=this,{ow:n}=i;n.scrollTo(n.scrollX,t[0]),i.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let i=this.j.ed.createRange();i.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),i.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(i)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),r.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return s.Dom.isText(t)&&!t.nodeValue||s.Dom.isTemporary(t)}__getCleanedEditorValue(t){let i=t.cloneNode(!0);return s.Dom.temporaryList(i).forEach(s.Dom.unwrap),i.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},52826: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="readSelection",r="Get information about the current selection including HTML content and optional context",s=[{name:"contextCharsBefore",type:"number",description:"Number of characters to include before the selection",required:!1,default:0},{name:"contextCharsAfter",type:"number",description:"Number of characters to include after the selection",required:!1,default:0}],a=!1},52951: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);n(36204);var u=n(70022),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};class h extends c.Plugin{onInsertHTML(t){var i;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(i=this.sourceEditor)||i.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;let t=this.j.getEditorValue(!1,o.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,i){for(i=i.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,t=>{let i="";for(let n=0;n<t.length;n+=1)i+=o.INVISIBLE_SPACE;return i});t>0&&i[t]===o.INVISIBLE_SPACE;)t--;let n=t;for(;n>0;){if("<"===i[--n]&&void 0!==i[n+1]&&i[n+1].match(/[\w/]+/i))return n;if(">"===i[n])break}return t}clnInv(t){return t.replace(o.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){var i;if("selectall"===t.toLowerCase()&&this.j.getRealMode()===o.MODE_SOURCE)return null==(i=this.sourceEditor)||i.selectAll(),!1}getMirrorValue(){var t;return(null==(t=this.sourceEditor)?void 0:t.getValue())||""}setMirrorValue(t){var i;null==(i=this.sourceEditor)||i.setValue(t)}setFocusToMirror(){var t;null==(t=this.sourceEditor)||t.focus()}saveSelection(){if(this.j.getRealMode()===o.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let i=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,n)+this.clnInv(i.outerHTML)+t.substring(n))}else{let i=this.j.s.marker(!0),n=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,o)+this.clnInv(i.outerHTML)+t.slice(o,r)+this.clnInv(n.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===o.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let t=this.getMirrorValue(),i=0,n=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,l.isString)(i)&&(t=i)}if(n=i=t.indexOf(this.tempMarkerStart),t=t.replace(this.tempMarkerStartReg,""),-1!==i){let i=t.indexOf(this.tempMarkerEnd);-1!==i&&(n=i)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(i,n),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,i){var n;null==(n=this.sourceEditor)||n.setSelectionRange(t,i)}onReadonlyReact(){var t;null==(t=this.sourceEditor)||t.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",()=>{t.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,u.createSourceEditor)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",t=>{var i;t.key===o.KEY_ESC&&(null==(i=this.sourceEditor)?void 0:i.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),t.e.on("placeholder.source",t=>{var i;null==(i=this.sourceEditor)||i.setPlaceHolder(t)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",t=>t),t.o.beautifyHTML){let i=()=>{var i;if(t.isInDestruct)return!1;let n=t.ow.html_beautify;return!!n&&!t.isInDestruct&&(null==(i=t.events)||i.off("beautifyHTML").on("beautifyHTML",t=>n(t)),!0)};i()||(0,l.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(i,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){let i=this.j;(i.getMode()===o.MODE_SPLIT||i.getMode()===o.MODE_SOURCE)&&this.fromWYSIWYG(t)}initSourceEditor(t){var i;if("area"!==t.o.sourceEditor){let i=(0,u.createSourceEditor)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);i.onReadyAlways(()=>{var n,o;null==(n=this.sourceEditor)||n.destruct(),this.sourceEditor=i,this.syncValueFromWYSIWYG(!0),null==(o=t.events)||o.fire("sourceEditorReady",t)})}else null==(i=this.sourceEditor)||i.onReadyAlways(()=>{var i;this.syncValueFromWYSIWYG(!0),null==(i=t.events)||i.fire("sourceEditorReady",t)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),s.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var t,i;return null!=(i=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?i:0},this.getSelectionEnd=()=>{var t,i;return null!=(i=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?i:0}}}d([(0,r.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),d([r.autobind],h.prototype,"fromWYSIWYG",null),d([r.autobind],h.prototype,"toWYSIWYG",null),d([r.autobind],h.prototype,"getNormalPosition",null),d([(0,r.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),d([(0,r.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),d([(0,r.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),d([r.autobind],h.prototype,"setMirrorSelectionRange",null),d([(0,r.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),d([r.autobind],h.prototype,"syncValueFromWYSIWYG",null),a.pluginSystem.add("source",h)},52968:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return o.AceEditor},TextAreaEditor:function(){return r.TextAreaEditor}});var o=n(60031),r=n(7483)},52995:function(t,i){"use strict";i.default={"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"Link openen","Edit link":"Link aanpassen","No follow":"Niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hernoemen","Enter new name":"Voer een nieuwe naam in",preview:"Voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassen","Please fill out this field":"Vul dit veld in","Please enter a web address":"Voer een webadres in",Default:"Standaard",Circle:"Cirkel",Dot:"Punt",Quadrate:"Kwadraat",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Press Alt for custom resizing":"Druk op Alt voor aangepaste grootte","License: %s":"Licentie: %s"}},53014:function(t,i,n){"use strict";n.d(i,{applyTheme:function(){return s}});let o=["jodit_theme_dark","jodit-ai-assistant-pro_theme_dark","jodit-dialog_theme_dark"],r=["jodit_theme_light","jodit-ai-assistant-pro_theme_light","jodit-dialog_theme_light"];function s(t,i,n,s,a){let l;if(s?.classList.remove(...o),s?.classList.remove(...r),"dialog"===n){let t=a?.container;t?.classList.remove(...o),t?.classList.remove(...r)}if(l="dark"===i?o:r,s?.classList.add(...l),"dialog"===n){let t=a?.container;t?.classList.add(...l)}}},53121:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},53189:function(t){t.exports={"Show Blocks":"Zeigen Blöcke"}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join(`
|
|
261
|
-
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53213:function(t,i,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},53259:function(t,i){"use strict";i.default='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},53361:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Sprawdzanie pisowni"}},53392:function(t,i,n){"use strict";n.d(i,{removeEmptyTextNode:function(){return r}});var o=n(2748);function r(t,i,n,r,s,a){return o.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),o.Dom.safeRemove(i),!0):n}},53437:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbol"}},53454:function(t,i,n){"use strict";n.d(i,{onChangeGeometries:function(){return s}});var o=n(72690),r=n(67912);function s(t,i){switch(t.type){case"polyline":case"polygon":{let n=(0,r.pathToArray)(t.gme.getPath()),s={...t.state,coordinates:n};o.updateStateAndGme.call(this,s,i,!0);break}case"marker":{let n=t.gme.getPosition(),r={...t.state,coordinates:[n?.lat()??0,n?.lng()??0]};o.updateStateAndGme.call(this,r,i,!0);break}case"circle":{let n=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[n?.lat()??0,n?.lng()??0]};o.updateStateAndGme.call(this,r,i,!0)}}}},53585:function(t,i,n){"use strict";n.d(i,{convertStyleUnitToPixels:function(){return r}});var o=n(43712);let r=(t,{jodit:i})=>{if(!i.o.pasteFromWord.convertUnitsToPixel)return t;let{style:n}=t;return n.forEach(t=>{let i=n.get(t);i&&n.set(t,i.toString().replace(/\d+(\.\d+)?(pt|cm)/g,t=>(0,o.convertUnitToPx)(t)+"px"))}),t}},53586:function(t,i,n){"use strict";n(6441).Config.prototype.autocomplete={sources:[],maxItems:50,isMatchedQuery:(t,i)=>0===i.toLowerCase().indexOf(t.toLowerCase()),itemRenderer:t=>t.title??t.value,insertValueRenderer:t=>t.value+" "}},53636:function(t,i,n){"use strict";n.d(i,{openImageEditorDialog:function(){return a}});var o=n(70799),r=n(29960),s=n(50050);function a(t,i){let n=(0,r.attr)(i.image,"src")||"",a=t.c.element("a"),l=()=>{if(a.host!==location.host)return void t.confirm("You can only edit your own images. Download this image on the host?",n=>{n&&t.uploader&&t.uploader.uploadRemoteImage(a.href.toString(),n=>{t.alert("The image has been successfully uploaded to the host!",()=>{(0,o.isString)(n.newfilename)&&(i.values.imageSrc=n.baseurl+n.newfilename)})},i=>{t.alert("There was an error loading %s",i.message)})})};a.href=n,t.filebrowser.dataProvider.getPathByUrl(a.href.toString()).then(o=>{s.openImageEditor.call(t.filebrowser,a.href,o.name,o.path,o.source,()=>{let t=new Date().getTime();i.values.imageSrc=n+(-1!==n.indexOf("?")?"":"?")+"&_tmp="+t.toString()},i=>{t.alert(i.message)})}).catch(i=>{t.alert(i.message,l)})}},53650:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},53696:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> '},53822:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Высота линии"}},53835:function(t,i,n){"use strict";n.d(i,{BUILT_IN_TOOLS:function(){return p},getToolNames:function(){return f}});var o=n(39296),r=n(16745),s=n(78717),a=n(5618),l=n(90991),c=n(2020),u=n(12570),d=n(95323),h=n(97603);let p={readDocument:a.default,readBlocks:s.default,readSelection:l.default,writeDocument:h.default,replaceSelection:d.default,replaceBlock:c.default,replaceInDocument:u.default,insertHTML:r.default,applyFormat:o.default};function f(){return Object.keys(p)}},54023:function(t){t.exports={"Show Blocks":"Показать Блоки"}},54041:function(t,i,n){"use strict";n.d(i,{getBlockWrapper:function(){return function t(i,n,s=o.IS_BLOCK){let a=i,l=n.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,n,/^li$/i)||a}a=a.parentNode}while(a&&a!==l)return null}}});var o=n(82758),r=n(2748)},54076:function(t,i,n){"use strict";function o(t,i){let[n,o]=i.split("::");t.execCommand(n,null,o)}n.d(i,{execSpellCommand:function(){return o}})},54079:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return d}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),c=n(6441);n(57459);var u=n(98582);class d{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest();return this.__async.promise(async(o,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new u.Response(n,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=d,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?d():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}prepareRequest(){if(!this.o.url)throw l.error("Need URL for AJAX request");let t=this.o.url,i=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&i&&(0,a.isPlainObject)(i)){let n=t.indexOf("?");if(-1!==n){let o=(0,a.parseQuery)(t);t=t.substring(0,n)+"?"+(0,a.buildQuery)({...o,...i})}else t+="?"+(0,a.buildQuery)(this.o.data)}let o={url:t,method:n,data:i};return d.log.splice(100),d.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,i=c.Config.prototype.defaultAjaxOptions){this.__async=new o.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}d.log=[],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)}([s.autobind],d.prototype,"destruct",null)},54296:function(t,i,n){"use strict";n.d(i,{buildTemplatesPopup:function(){return r}});let o="jodit-templates-popup";function r(t,i,n){let r=t.c.div(o);for(let s of i){let i=t.c.element("button");i.type="button",i.className=`${o}__card`;let a=t.c.div(`${o}__card-preview`);if(s.image){let i=t.c.element("img");i.src=s.image,i.alt=s.title,a.appendChild(i)}else{let i=t.c.div(`${o}__card-preview-inner`);i.innerHTML=s.html,a.appendChild(i)}i.appendChild(a);let l=t.c.div(`${o}__card-info`),c=t.c.div(`${o}__card-title`);c.textContent=s.title,l.appendChild(c);let u=t.c.div(`${o}__card-description`);u.textContent=s.description,l.appendChild(u),i.appendChild(l),t.e.on(i,"click",()=>{t.s.focus(),t.s.insertHTML(s.html),t.synchronizeValues(),n()}),r.appendChild(i)}return r}},54389:function(t,i,n){"use strict";var o=n(22732),r=n(12153),s=n(6441),a=n(78614),l=n(86835),c=n(302);r.Icon.set("indent",a.default).set("outdent",l.default),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled(t){let i=t.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isBlock,t.editor);if(n){let i=(0,c.getKey)(t.o.direction,n);return!n.style[i]||0>=parseInt(n.style[i],10)}}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},54600:function(t,i,n){"use strict";n.d(i,{splitFragment:function(){return a}});var o=n(2748),r=n(26395),s=n(44245);function a(t,i,n){let a=i.s,{enter:l}=i.o,c=l.toLowerCase(),u=o.Dom.isLeaf(n),d=n.tagName.toLowerCase()===c||u,h=a.cursorOnTheRight(n,t),p=a.cursorOnTheLeft(n,t);if(!d&&(h||p)){h?o.Dom.after(n,t):o.Dom.before(n,t),(0,s.insertParagraph)(t,i,c),p&&!h&&o.Dom.prepend(n,t);return}let f=a.splitSelection(n,t);(0,r.scrollIntoViewIfNeeded)(f,i.editor,i.ed)}},54747:function(t,i,n){"use strict";n.d(i,{UIResize:function(){return s}});var o=n(2748),r=n(41180);class s{static remove(t){t.container.classList.remove("jodit-ui-resize"),o.Dom.safeRemove(t.container.querySelector(".jodit-ui-resize__handle"))}static install(t,i,n={}){t.container.classList.add("jodit-ui-resize"),"static"===(0,r.css)(t.container,"position")&&(0,r.css)(t.container,"position","relative");let o=t.j.c.div("jodit-ui-resize__handle");o.classList.add("jodit-ui-resize__handle_type_"+i),n.handleClassName&&o.classList.add(n.handleClassName),t.container.appendChild(o),t.j.e.on(o,"mousedown touchstart",this.onStartResize.bind(this,t,i,n.onResize??(()=>void 0)))}static onStartResize(t,i,n,o){let r={x:o.clientX,y:o.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight,direction:i},s=t.j.async.throttle(this.onResize.bind(this,t,r,n),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",s).one(t.j.ow,"mouseup touchend",this.onEndResize.bind(this,t,s))}static onResize(t,i,n,o){let s,a=["left","right"].includes(i.direction),l=t.container.parentElement;l&&(s=a?i.w+(o.clientX-i.x)*("right"===i.direction?1:-1):i.h+(o.clientY-i.y)*("top"===i.direction?-1:1),!0!==n?.({newSize:s})&&(0,r.css)(t.container,a?"width":"height",s/(a?l.offsetWidth:l.offsetHeight)*100+"%"))}static onEndResize(t,i,n){t.j.e.off(t.j.ow,"mousemove touchmove",i),t.j.unlock()}}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},55029:function(t,i,n){"use strict";var o=n(17298),r=n(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:o.COMMAND_OPEN_DIALOG};let s=t=>({icon:"edit-"+t,isActive:i=>i.buffer.get("createMode.gm")===t,exec(i){i.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:s("hand"),marker:s("marker"),polyline:s("polyline"),polygon:s("polygon"),circle:s("circle"),text:s("text")}},55099:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(21597);s.Config.prototype.useSearch=!0,s.Config.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:o.globalWindow&&void 0!==o.globalWindow.Highlight},r.Icon.set("search",a.default),s.Config.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,i,{control:n}){switch(n.args&&n.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:(t,i,n)=>n}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},55307:function(t,i,n){"use strict";n.d(i,{states:function(){return c},transactions:function(){return u}});var o=n(82758),r=n(2748),s=n(38837),a=n(63687),l=n(77361);let c={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},u={[c.START]:{exec(t){let{element:i,jodit:n,style:o,mode:s,collapsed:u}=t;if((0,a.isInsideInvisibleElement)(i,n.editor)||!u&&r.Dom.isEmptyContent(i))return{...t,next:c.END};let d=(0,a.getSuitParent)(o,i,n.editor)||(0,a.getSuitChild)(o,i);if(d)return{...t,next:c.ELEMENT,element:d};let h=(0,a.suitableClosest)(o,i,n.editor);return o.elementIsList&&r.Dom.isList(h)?{...t,next:c.LIST}:h?{...t,next:c.EXTRACT}:{...t,next:s!==l.UNWRAP?c.UNWRAP_CHILDREN:c.END}}},[c.LIST]:{exec(t){let{element:i,jodit:n,mode:s}=t;if(s!==l.INITIAL&&s!==l.UNWRAP&&s!==l.REPLACE)return{...t,next:c.END};let a=r.Dom.closest(i,"li",n.editor);return a&&r.Dom.closest(i,o.LIST_TAGS,n.editor)?{...t,element:a,next:c.TOGGLE_LIST}:{...t,next:c.END}}},[c.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:c.END})},[c.EXTRACT]:{exec(t){var i;let{element:n,jodit:o,style:l}=t,u=(0,a.suitableClosest)(l,n,o.editor);return((0,s.assert)(u,"This place should have an element"),!l.elementIsBlock&&(null==(i=l.options.attributes)?void 0:i.style)&&r.Dom.isBlock(u))?{...t,next:c.WRAP}:(l.elementIsBlock||(0,a.extractSelectedPart)(u,n,o),{...t,element:u,next:c.ELEMENT})}},[c.UNWRAP_CHILDREN]:{exec(t){let{element:i,style:n}=t;return(0,a.unwrapChildren)(n,i)?{...t,mode:l.UNWRAP,next:c.END}:{...t,next:c.WRAP}}},[c.WRAP]:{exec(t){let{element:i,jodit:n,style:o}=t,r=(0,a.wrap)(o,i,n);return{...t,next:o.elementIsList?c.END:c.CHANGE,mode:l.WRAP,element:r}}},[c.ELEMENT]:{exec(t){let{style:i,element:n,jodit:o}=t;return(0,a.toggleAttributes)(i,n,o,l.INITIAL,!0)!==l.INITIAL?{...t,next:c.CHANGE}:r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,next:c.END}}},[c.CHANGE]:{exec(t){let{style:i,element:n,jodit:o,mode:s}=t,u=(0,a.toggleAttributes)(i,n,o,t.mode);return s!==l.WRAP&&u===l.UNSET&&!n.attributes.length&&r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,mode:u,next:c.END}}},[c.UNWRAP]:{exec:t=>t.element.attributes.length&&r.Dom.isTag(t.element,t.style.element)?{...t,next:c.REPLACE_DEFAULT}:(r.Dom.unwrap(t.element),{...t,mode:l.UNWRAP,next:c.END})},[c.REPLACE_DEFAULT]:{exec:t=>(r.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:l.REPLACE,next:c.END})},[c.END]:{exec:t=>t}}},55311:function(t,i,n){"use strict";n(6441).Config.prototype.tableAllowCellSelection=!0},55487:function(t,i,n){"use strict";n.d(i,{ToolRegistry:function(){return s}});var o=n(82749),r=n(53835);class s{registerBuiltInTools(t){t.forEach(t=>{let i=r.BUILT_IN_TOOLS[t];i&&this.tools.set(t,i)})}registerCustomTools(t){t.forEach(t=>{this.validateToolDefinition(t),this.tools.set(t.name,t)})}validateToolDefinition(t){if(!t.name||"string"!=typeof t.name)throw Error("Tool must have a valid name");if(!t.description||"string"!=typeof t.description)throw Error(`Tool "${t.name}" must have a description`);if(!Array.isArray(t.parameters))throw Error(`Tool "${t.name}" must have a parameters array`);if("function"!=typeof t.execute)throw Error(`Tool "${t.name}" must have an execute function`);t.parameters.forEach(i=>{if(!i.name||"string"!=typeof i.name)throw Error(`Tool "${t.name}" has a parameter without a valid name`);if(!i.type)throw Error(`Tool "${t.name}" parameter "${i.name}" must have a type`);if("boolean"!=typeof i.required)throw Error(`Tool "${t.name}" parameter "${i.name}" must specify if it's required`)})}getAllTools(){return Array.from(this.tools.values())}getTool(t){return this.tools.get(t)}hasTool(t){return this.tools.has(t)}getToolNames(){return Array.from(this.tools.keys())}async executeTool(t,i,n){let o=this.getTool(t);if(!o)throw Error(`Tool "${t}" not found`);let r=this.applyDefaults(o,i);this.validateArguments(o,r);try{return await o.execute(this.jodit,r,n)}catch(t){if(t?.name==="AbortError"||n.aborted)throw Error("Tool execution was aborted");throw t}}validateArguments(t,i){let n=Object.keys(i);for(let i of t.parameters.filter(t=>t.required).map(t=>t.name))if(!n.includes(i))throw Error(`Tool "${t.name}" requires parameter "${i}"`);for(let[n,o]of Object.entries(i)){let i=t.parameters.find(t=>t.name===n);if(!i){this.jodit.o.aiAssistantPro.debug;continue}let r=Array.isArray(o)?"array":"object"==typeof o&&null!=o?"object":typeof o;if(i.type!==r&&!("number"===i.type&&"string"===r&&!isNaN(Number(o))))throw Error(`Tool "${t.name}" parameter "${n}" expects type "${i.type}" but got "${r}"`);if(i.enum&&i.enum.length>0&&!i.enum.includes(o))throw Error(`Tool "${t.name}" parameter "${n}" must be one of: ${i.enum.join(", ")}`)}}applyDefaults(t,i){let n={...i};for(let i of t.parameters)void 0===n[i.name]&&void 0!==i.default&&(n[i.name]=i.default);return n}destruct(){this.tools.clear()}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"tools",void 0),this.jodit=t,this.tools=new Map,this.registerBuiltInTools(t.o.aiAssistantPro.enabledTools||[]),this.registerCustomTools(t.o.aiAssistantPro.customTools||[])}}},55535:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(31635),s=n(65478);class a{getIndex(t,i=this.state.elements){return i.findIndex(i=>i.uniqueHashKey===t.uniqueHashKey)}isActive(t){return!!this.state.activeElements.find(i=>i.uniqueHashKey===t.uniqueHashKey)}isFavorite(t){return!!this.state.favorites.find(i=>i.uniqueHashKey===t.uniqueHashKey)}addActive(t,i){this.state.metaInfo=t,this.state.info=t.file??"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=i?[...this.state.activeElements,t]:[t]}callSelectHandler(){let t=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:t.map(t=>t.fileURL),isImages:t.map(t=>!!t.isImage)})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){let i=this.getIndex(t,this.state.favorites),n=[...this.state.favorites];-1===i?n.push(t):n.splice(i,1),this.state.favorites=n}fillTreeForPath(t,i){if(!this.state.tree.length||!i||"/"===i){this.state.tree=t.map(u);return}this.removeActive(this.state.tree),t.forEach(t=>{var n;let o=l(this.state.tree,t.name);o||(o=u(t),this.state.tree.push(o)),o.isActive=!0;let r=(n=o,i.split("/").reduce((t,i)=>t&&l(t.children,i),n));r&&(r.isActive=!0,r.children=c(t.folders).map(n=>d(n,i+"/"+n,t.name)))}),this.state.tree=[...this.state.tree]}removeActive(t){t.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}constructor(t){(0,o._)(this,"state",void 0),this.state=t}}function l(t,i){return t.find(t=>t.name===i)??null}function c(t){return t.filter(t=>"."!==t&&".."!==t)}function u(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:c(t.folders).map(i=>d(i,i,t.name))}}function d(t,i,n){return{type:"directory",name:t,path:i,sourceName:n,children:[]}}(0,r.__decorate)([s.autobind],a.prototype,"getIndex",null),(0,r.__decorate)([s.autobind],a.prototype,"isActive",null),(0,r.__decorate)([s.autobind],a.prototype,"isFavorite",null)},55611:function(t,i,n){"use strict";n.d(i,{SentenceFinder:function(){return r.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=n(12270),r=n(93119)},55776:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"スペルチェック"}},55790:function(t){t.exports={"AI Assistant":"AI Ассистент","AI Assistant Pro":"AI Ассистент Pro","Welcome to AI Assistant":"Добро пожаловать в AI Ассистент","Start your first conversation":"Начните первый диалог","Tip: Select text in editor to add context":"Подсказка: Выделите текст в редакторе для добавления контекста","New chat":"Новый чат","Search conversations...":"Поиск диалогов...","No conversations yet":"Пока нет диалогов","Ask me anything...":"Спросите меня о чем угодно...","Ask a follow-up...":"Задайте дополнительный вопрос...","Reply...":"Ответить...","Type your message...":"Введите ваше сообщение...",Send:"Отправить",Cancel:"Отмена",Retry:"Повторить",Insert:"Вставить",Copy:"Копировать",Edit:"Редактировать",Delete:"Удалить",New:"Новый",Back:"Назад","Permission Required":"Требуется разрешение",Approve:"Разрешить",Deny:"Отклонить",Once:"Один раз","This conversation":"Этот диалог",Always:"Всегда","The AI wants to execute:":"AI хочет выполнить:","This will modify your document content.":"Это изменит содержимое вашего документа.","Executing...":"Выполняется...","Completed successfully":"Успешно выполнено",Failed:"Ошибка","Pending approval":"Ожидает разрешения","Denied by user":"Отклонено пользователем","Tool Result":"Результат инструмента","Tool Execution Error":"Ошибка выполнения инструмента",Context:"Контекст",Contexts:"Контексты","Add to AI Context":"Добавить в контекст AI",Remove:"Удалить","Clear all":"Очистить все","An error occurred":"Произошла ошибка","Request failed":"Запрос не выполнен","Connection error":"Ошибка соединения","AI Assistant is not configured":"AI Ассистент не настроен","Thinking...":"Думаю...","Generating response...":"Генерирую ответ...",insertHTML:"Вставить HTML",readDocument:"Прочитать документ",readBlock:"Прочитать блок",replaceInDocument:"Заменить в документе",replaceInBlock:"Заменить в блоке",getSelection:"Получить выделение","Just now":"Только что",Conversation:"Диалог","New Conversation":"Новый диалог",Yesterday:"Вчера","Delete conversation":"Удалить диалог","Are you sure you want to delete this conversation?":"Вы уверены, что хотите удалить этот диалог?","Failed to delete conversation":"Не удалось удалить диалог",Settings:"Настройки","General Settings":"Общие настройки","Conversation Settings":"Настройки диалога","Display Mode":"Режим отображения","Panel Width":"Ширина панели",Theme:"Тема",Model:"Модель",Temperature:"Температура",Close:"Закрыть",Dialog:"Модальное окно",Left:"Левая панель",Right:"Правая панель",Top:"Верхняя панель",Bottom:"Нижняя панель",Inherit:"Наследовать от редактора",Light:"Светлая тема",Dark:"Тёмная тема","%dm ago":"%dм назад","%dh ago":"%dч назад"}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a"),l=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=t,i||(i=400),n||(n=345);let c=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return l.test(t)?t.replace(l,'<iframe width="'+i+'" height="'+n+'" src="'+c+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let o=a.search?(0,s.parseQuery)(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(o.v)&&(o.v=o.v.substring(6)),o.v?'<iframe width="'+i+'" height="'+n+'" src="'+c+"//www.youtube.com/embed/"+o.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},55885:function(t,i,n){"use strict";n.d(i,{UIWelcomeScreen:function(){return a}});var o=n(31635),r=n(65478),s=n(67510);class a extends s.UIElement{className(){return"UIWelcomeScreen"}render(){return`<div class="&__container">
|
|
261
|
+
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53213:function(t,i,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},53259:function(t,i){"use strict";i.default='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},53361:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Sprawdzanie pisowni"}},53392:function(t,i,n){"use strict";n.d(i,{removeEmptyTextNode:function(){return r}});var o=n(2748);function r(t,i,n,r,s,a){return o.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),o.Dom.safeRemove(i),!0):n}},53437:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbol"}},53454:function(t,i,n){"use strict";n.d(i,{onChangeGeometries:function(){return s}});var o=n(72690),r=n(67912);function s(t,i){switch(t.type){case"polyline":case"polygon":{let n=(0,r.pathToArray)(t.gme.getPath()),s={...t.state,coordinates:n};o.updateStateAndGme.call(this,s,i,!0);break}case"marker":{let n=t.gme.getPosition(),r={...t.state,coordinates:[n?.lat()??0,n?.lng()??0]};o.updateStateAndGme.call(this,r,i,!0);break}case"circle":{let n=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[n?.lat()??0,n?.lng()??0]};o.updateStateAndGme.call(this,r,i,!0)}}}},53585:function(t,i,n){"use strict";n.d(i,{convertStyleUnitToPixels:function(){return r}});var o=n(43712);let r=(t,{jodit:i})=>{if(!i.o.pasteFromWord.convertUnitsToPixel)return t;let{style:n}=t;return n.forEach(t=>{let i=n.get(t);i&&n.set(t,i.toString().replace(/\d+(\.\d+)?(pt|cm)/g,t=>(0,o.convertUnitToPx)(t)+"px"))}),t}},53586:function(t,i,n){"use strict";n(6441).Config.prototype.autocomplete={sources:[],maxItems:50,isMatchedQuery:(t,i)=>0===i.toLowerCase().indexOf(t.toLowerCase()),itemRenderer:t=>t.title??t.value,insertValueRenderer:t=>t.value+" "}},53636:function(t,i,n){"use strict";n.d(i,{openImageEditorDialog:function(){return a}});var o=n(70799),r=n(29960),s=n(50050);function a(t,i){let n=(0,r.attr)(i.image,"src")||"",a=t.c.element("a"),l=()=>{if(a.host!==location.host)return void t.confirm("You can only edit your own images. Download this image on the host?",n=>{n&&t.uploader&&t.uploader.uploadRemoteImage(a.href.toString(),n=>{t.alert("The image has been successfully uploaded to the host!",()=>{(0,o.isString)(n.newfilename)&&(i.values.imageSrc=n.baseurl+n.newfilename)})},i=>{t.alert("There was an error loading %s",i.message)})})};a.href=n,t.filebrowser.dataProvider.getPathByUrl(a.href.toString()).then(o=>{s.openImageEditor.call(t.filebrowser,a.href,o.name,o.path,o.source,t=>{let o=new Date().getTime(),r=t||n;i.values.imageSrc=r+(-1!==r.indexOf("?")?"":"?")+"&_tmp="+o.toString()},i=>{t.alert(i.message)})}).catch(i=>{t.alert(i.message,l)})}},53650:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},53696:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> '},53822:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Высота линии"}},53835:function(t,i,n){"use strict";n.d(i,{BUILT_IN_TOOLS:function(){return p},getToolNames:function(){return f}});var o=n(39296),r=n(16745),s=n(78717),a=n(5618),l=n(90991),c=n(2020),u=n(12570),d=n(95323),h=n(97603);let p={readDocument:a.default,readBlocks:s.default,readSelection:l.default,writeDocument:h.default,replaceSelection:d.default,replaceBlock:c.default,replaceInDocument:u.default,insertHTML:r.default,applyFormat:o.default};function f(){return Object.keys(p)}},54023:function(t){t.exports={"Show Blocks":"Показать Блоки"}},54041:function(t,i,n){"use strict";n.d(i,{getBlockWrapper:function(){return function t(i,n,s=o.IS_BLOCK){let a=i,l=n.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,n,/^li$/i)||a}a=a.parentNode}while(a&&a!==l)return null}}});var o=n(82758),r=n(2748)},54076:function(t,i,n){"use strict";function o(t,i){let[n,o]=i.split("::");t.execCommand(n,null,o)}n.d(i,{execSpellCommand:function(){return o}})},54079:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return d}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),c=n(6441);n(57459);var u=n(98582);class d{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest();return this.__async.promise(async(o,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new u.Response(n,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=d,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?d():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}prepareRequest(){if(!this.o.url)throw l.error("Need URL for AJAX request");let t=this.o.url,i=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&i&&(0,a.isPlainObject)(i)){let n=t.indexOf("?");if(-1!==n){let o=(0,a.parseQuery)(t);t=t.substring(0,n)+"?"+(0,a.buildQuery)({...o,...i})}else t+="?"+(0,a.buildQuery)(this.o.data)}let o={url:t,method:n,data:i};return d.log.splice(100),d.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,i=c.Config.prototype.defaultAjaxOptions){this.__async=new o.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}d.log=[],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)}([s.autobind],d.prototype,"destruct",null)},54296:function(t,i,n){"use strict";n.d(i,{buildTemplatesPopup:function(){return r}});let o="jodit-templates-popup";function r(t,i,n){let r=t.c.div(o);for(let s of i){let i=t.c.element("button");i.type="button",i.className=`${o}__card`;let a=t.c.div(`${o}__card-preview`);if(s.image){let i=t.c.element("img");i.src=s.image,i.alt=s.title,a.appendChild(i)}else{let i=t.c.div(`${o}__card-preview-inner`);i.innerHTML=s.html,a.appendChild(i)}i.appendChild(a);let l=t.c.div(`${o}__card-info`),c=t.c.div(`${o}__card-title`);c.textContent=s.title,l.appendChild(c);let u=t.c.div(`${o}__card-description`);u.textContent=s.description,l.appendChild(u),i.appendChild(l),t.e.on(i,"click",()=>{t.s.focus(),t.s.insertHTML(s.html),t.synchronizeValues(),n()}),r.appendChild(i)}return r}},54389:function(t,i,n){"use strict";var o=n(22732),r=n(12153),s=n(6441),a=n(78614),l=n(86835),c=n(302);r.Icon.set("indent",a.default).set("outdent",l.default),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled(t){let i=t.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isBlock,t.editor);if(n){let i=(0,c.getKey)(t.o.direction,n);return!n.style[i]||0>=parseInt(n.style[i],10)}}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},54600:function(t,i,n){"use strict";n.d(i,{splitFragment:function(){return a}});var o=n(2748),r=n(26395),s=n(44245);function a(t,i,n){let a=i.s,{enter:l}=i.o,c=l.toLowerCase(),u=o.Dom.isLeaf(n),d=n.tagName.toLowerCase()===c||u,h=a.cursorOnTheRight(n,t),p=a.cursorOnTheLeft(n,t);if(!d&&(h||p)){h?o.Dom.after(n,t):o.Dom.before(n,t),(0,s.insertParagraph)(t,i,c),p&&!h&&o.Dom.prepend(n,t);return}let f=a.splitSelection(n,t);(0,r.scrollIntoViewIfNeeded)(f,i.editor,i.ed)}},54747:function(t,i,n){"use strict";n.d(i,{UIResize:function(){return s}});var o=n(2748),r=n(41180);class s{static remove(t){t.container.classList.remove("jodit-ui-resize"),o.Dom.safeRemove(t.container.querySelector(".jodit-ui-resize__handle"))}static install(t,i,n={}){t.container.classList.add("jodit-ui-resize"),"static"===(0,r.css)(t.container,"position")&&(0,r.css)(t.container,"position","relative");let o=t.j.c.div("jodit-ui-resize__handle");o.classList.add("jodit-ui-resize__handle_type_"+i),n.handleClassName&&o.classList.add(n.handleClassName),t.container.appendChild(o),t.j.e.on(o,"mousedown touchstart",this.onStartResize.bind(this,t,i,n.onResize??(()=>void 0)))}static onStartResize(t,i,n,o){let r={x:o.clientX,y:o.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight,direction:i},s=t.j.async.throttle(this.onResize.bind(this,t,r,n),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",s).one(t.j.ow,"mouseup touchend",this.onEndResize.bind(this,t,s))}static onResize(t,i,n,o){let s,a=["left","right"].includes(i.direction),l=t.container.parentElement;l&&(s=a?i.w+(o.clientX-i.x)*("right"===i.direction?1:-1):i.h+(o.clientY-i.y)*("top"===i.direction?-1:1),!0!==n?.({newSize:s})&&(0,r.css)(t.container,a?"width":"height",s/(a?l.offsetWidth:l.offsetHeight)*100+"%"))}static onEndResize(t,i,n){t.j.e.off(t.j.ow,"mousemove touchmove",i),t.j.unlock()}}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},55029:function(t,i,n){"use strict";var o=n(17298),r=n(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:o.COMMAND_OPEN_DIALOG};let s=t=>({icon:"edit-"+t,isActive:i=>i.buffer.get("createMode.gm")===t,exec(i){i.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:s("hand"),marker:s("marker"),polyline:s("polyline"),polygon:s("polygon"),circle:s("circle"),text:s("text")}},55099:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(21597);s.Config.prototype.useSearch=!0,s.Config.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:o.globalWindow&&void 0!==o.globalWindow.Highlight},r.Icon.set("search",a.default),s.Config.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,i,{control:n}){switch(n.args&&n.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:(t,i,n)=>n}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},55307:function(t,i,n){"use strict";n.d(i,{states:function(){return c},transactions:function(){return u}});var o=n(82758),r=n(2748),s=n(38837),a=n(63687),l=n(77361);let c={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},u={[c.START]:{exec(t){let{element:i,jodit:n,style:o,mode:s,collapsed:u}=t;if((0,a.isInsideInvisibleElement)(i,n.editor)||!u&&r.Dom.isEmptyContent(i))return{...t,next:c.END};let d=(0,a.getSuitParent)(o,i,n.editor)||(0,a.getSuitChild)(o,i);if(d)return{...t,next:c.ELEMENT,element:d};let h=(0,a.suitableClosest)(o,i,n.editor);return o.elementIsList&&r.Dom.isList(h)?{...t,next:c.LIST}:h?{...t,next:c.EXTRACT}:{...t,next:s!==l.UNWRAP?c.UNWRAP_CHILDREN:c.END}}},[c.LIST]:{exec(t){let{element:i,jodit:n,mode:s}=t;if(s!==l.INITIAL&&s!==l.UNWRAP&&s!==l.REPLACE)return{...t,next:c.END};let a=r.Dom.closest(i,"li",n.editor);return a&&r.Dom.closest(i,o.LIST_TAGS,n.editor)?{...t,element:a,next:c.TOGGLE_LIST}:{...t,next:c.END}}},[c.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:c.END})},[c.EXTRACT]:{exec(t){var i;let{element:n,jodit:o,style:l}=t,u=(0,a.suitableClosest)(l,n,o.editor);return((0,s.assert)(u,"This place should have an element"),!l.elementIsBlock&&(null==(i=l.options.attributes)?void 0:i.style)&&r.Dom.isBlock(u))?{...t,next:c.WRAP}:(l.elementIsBlock||(0,a.extractSelectedPart)(u,n,o),{...t,element:u,next:c.ELEMENT})}},[c.UNWRAP_CHILDREN]:{exec(t){let{element:i,style:n}=t;return(0,a.unwrapChildren)(n,i)?{...t,mode:l.UNWRAP,next:c.END}:{...t,next:c.WRAP}}},[c.WRAP]:{exec(t){let{element:i,jodit:n,style:o}=t,r=(0,a.wrap)(o,i,n);return{...t,next:o.elementIsList?c.END:c.CHANGE,mode:l.WRAP,element:r}}},[c.ELEMENT]:{exec(t){let{style:i,element:n,jodit:o}=t;return(0,a.toggleAttributes)(i,n,o,l.INITIAL,!0)!==l.INITIAL?{...t,next:c.CHANGE}:r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,next:c.END}}},[c.CHANGE]:{exec(t){let{style:i,element:n,jodit:o,mode:s}=t,u=(0,a.toggleAttributes)(i,n,o,t.mode);return s!==l.WRAP&&u===l.UNSET&&!n.attributes.length&&r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,mode:u,next:c.END}}},[c.UNWRAP]:{exec:t=>t.element.attributes.length&&r.Dom.isTag(t.element,t.style.element)?{...t,next:c.REPLACE_DEFAULT}:(r.Dom.unwrap(t.element),{...t,mode:l.UNWRAP,next:c.END})},[c.REPLACE_DEFAULT]:{exec:t=>(r.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:l.REPLACE,next:c.END})},[c.END]:{exec:t=>t}}},55311:function(t,i,n){"use strict";n(6441).Config.prototype.tableAllowCellSelection=!0},55487:function(t,i,n){"use strict";n.d(i,{ToolRegistry:function(){return s}});var o=n(82749),r=n(53835);class s{registerBuiltInTools(t){t.forEach(t=>{let i=r.BUILT_IN_TOOLS[t];i&&this.tools.set(t,i)})}registerCustomTools(t){t.forEach(t=>{this.validateToolDefinition(t),this.tools.set(t.name,t)})}validateToolDefinition(t){if(!t.name||"string"!=typeof t.name)throw Error("Tool must have a valid name");if(!t.description||"string"!=typeof t.description)throw Error(`Tool "${t.name}" must have a description`);if(!Array.isArray(t.parameters))throw Error(`Tool "${t.name}" must have a parameters array`);if("function"!=typeof t.execute)throw Error(`Tool "${t.name}" must have an execute function`);t.parameters.forEach(i=>{if(!i.name||"string"!=typeof i.name)throw Error(`Tool "${t.name}" has a parameter without a valid name`);if(!i.type)throw Error(`Tool "${t.name}" parameter "${i.name}" must have a type`);if("boolean"!=typeof i.required)throw Error(`Tool "${t.name}" parameter "${i.name}" must specify if it's required`)})}getAllTools(){return Array.from(this.tools.values())}getTool(t){return this.tools.get(t)}hasTool(t){return this.tools.has(t)}getToolNames(){return Array.from(this.tools.keys())}async executeTool(t,i,n){let o=this.getTool(t);if(!o)throw Error(`Tool "${t}" not found`);let r=this.applyDefaults(o,i);this.validateArguments(o,r);try{return await o.execute(this.jodit,r,n)}catch(t){if(t?.name==="AbortError"||n.aborted)throw Error("Tool execution was aborted");throw t}}validateArguments(t,i){let n=Object.keys(i);for(let i of t.parameters.filter(t=>t.required).map(t=>t.name))if(!n.includes(i))throw Error(`Tool "${t.name}" requires parameter "${i}"`);for(let[n,o]of Object.entries(i)){let i=t.parameters.find(t=>t.name===n);if(!i){this.jodit.o.aiAssistantPro.debug;continue}let r=Array.isArray(o)?"array":"object"==typeof o&&null!=o?"object":typeof o;if(i.type!==r&&!("number"===i.type&&"string"===r&&!isNaN(Number(o))))throw Error(`Tool "${t.name}" parameter "${n}" expects type "${i.type}" but got "${r}"`);if(i.enum&&i.enum.length>0&&!i.enum.includes(o))throw Error(`Tool "${t.name}" parameter "${n}" must be one of: ${i.enum.join(", ")}`)}}applyDefaults(t,i){let n={...i};for(let i of t.parameters)void 0===n[i.name]&&void 0!==i.default&&(n[i.name]=i.default);return n}destruct(){this.tools.clear()}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"tools",void 0),this.jodit=t,this.tools=new Map,this.registerBuiltInTools(t.o.aiAssistantPro.enabledTools||[]),this.registerCustomTools(t.o.aiAssistantPro.customTools||[])}}},55535:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(31635),s=n(65478);class a{getIndex(t,i=this.state.elements){return i.findIndex(i=>i.uniqueHashKey===t.uniqueHashKey)}isActive(t){return!!this.state.activeElements.find(i=>i.uniqueHashKey===t.uniqueHashKey)}isFavorite(t){return!!this.state.favorites.find(i=>i.uniqueHashKey===t.uniqueHashKey)}addActive(t,i){this.state.metaInfo=t,this.state.info=t.file??"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=i?[...this.state.activeElements,t]:[t]}callSelectHandler(){let t=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:t.map(t=>t.fileURL),isImages:t.map(t=>!!t.isImage)})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){let i=this.getIndex(t,this.state.favorites),n=[...this.state.favorites];-1===i?n.push(t):n.splice(i,1),this.state.favorites=n}fillTreeForPath(t,i){if(!this.state.tree.length||!i||"/"===i){this.state.tree=t.map(u);return}this.removeActive(this.state.tree),t.forEach(t=>{var n;let o=l(this.state.tree,t.name);o||(o=u(t),this.state.tree.push(o)),o.isActive=!0;let r=(n=o,i.split("/").reduce((t,i)=>t&&l(t.children,i),n));r&&(r.isActive=!0,r.children=c(t.folders).map(n=>d(n,i+"/"+n,t.name)))}),this.state.tree=[...this.state.tree]}removeActive(t){t.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}constructor(t){(0,o._)(this,"state",void 0),this.state=t}}function l(t,i){return t.find(t=>t.name===i)??null}function c(t){return t.filter(t=>"."!==t&&".."!==t)}function u(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:c(t.folders).map(i=>d(i,i,t.name))}}function d(t,i,n){return{type:"directory",name:t,path:i,sourceName:n,children:[]}}(0,r.__decorate)([s.autobind],a.prototype,"getIndex",null),(0,r.__decorate)([s.autobind],a.prototype,"isActive",null),(0,r.__decorate)([s.autobind],a.prototype,"isFavorite",null)},55611:function(t,i,n){"use strict";n.d(i,{SentenceFinder:function(){return r.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=n(12270),r=n(93119)},55776:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"スペルチェック"}},55790:function(t){t.exports={"AI Assistant":"AI Ассистент","AI Assistant Pro":"AI Ассистент Pro","Welcome to AI Assistant":"Добро пожаловать в AI Ассистент","Start your first conversation":"Начните первый диалог","Tip: Select text in editor to add context":"Подсказка: Выделите текст в редакторе для добавления контекста","New chat":"Новый чат","Search conversations...":"Поиск диалогов...","No conversations yet":"Пока нет диалогов","Ask me anything...":"Спросите меня о чем угодно...","Ask a follow-up...":"Задайте дополнительный вопрос...","Reply...":"Ответить...","Type your message...":"Введите ваше сообщение...",Send:"Отправить",Cancel:"Отмена",Retry:"Повторить",Insert:"Вставить",Copy:"Копировать",Edit:"Редактировать",Delete:"Удалить",New:"Новый",Back:"Назад","Permission Required":"Требуется разрешение",Approve:"Разрешить",Deny:"Отклонить",Once:"Один раз","This conversation":"Этот диалог",Always:"Всегда","The AI wants to execute:":"AI хочет выполнить:","This will modify your document content.":"Это изменит содержимое вашего документа.","Executing...":"Выполняется...","Completed successfully":"Успешно выполнено",Failed:"Ошибка","Pending approval":"Ожидает разрешения","Denied by user":"Отклонено пользователем","Tool Result":"Результат инструмента","Tool Execution Error":"Ошибка выполнения инструмента",Context:"Контекст",Contexts:"Контексты","Add to AI Context":"Добавить в контекст AI",Remove:"Удалить","Clear all":"Очистить все","An error occurred":"Произошла ошибка","Request failed":"Запрос не выполнен","Connection error":"Ошибка соединения","AI Assistant is not configured":"AI Ассистент не настроен","Thinking...":"Думаю...","Generating response...":"Генерирую ответ...",insertHTML:"Вставить HTML",readDocument:"Прочитать документ",readBlock:"Прочитать блок",replaceInDocument:"Заменить в документе",replaceInBlock:"Заменить в блоке",getSelection:"Получить выделение","Just now":"Только что",Conversation:"Диалог","New Conversation":"Новый диалог",Yesterday:"Вчера","Delete conversation":"Удалить диалог","Are you sure you want to delete this conversation?":"Вы уверены, что хотите удалить этот диалог?","Failed to delete conversation":"Не удалось удалить диалог",Settings:"Настройки","General Settings":"Общие настройки","Conversation Settings":"Настройки диалога","Display Mode":"Режим отображения","Panel Width":"Ширина панели",Theme:"Тема",Model:"Модель",Temperature:"Температура",Close:"Закрыть",Dialog:"Модальное окно",Left:"Левая панель",Right:"Правая панель",Top:"Верхняя панель",Bottom:"Нижняя панель",Inherit:"Наследовать от редактора",Light:"Светлая тема",Dark:"Тёмная тема","%dm ago":"%dм назад","%dh ago":"%dч назад"}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a"),l=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=t,i||(i=400),n||(n=345);let c=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return l.test(t)?t.replace(l,'<iframe width="'+i+'" height="'+n+'" src="'+c+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let o=a.search?(0,s.parseQuery)(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(o.v)&&(o.v=o.v.substring(6)),o.v?'<iframe width="'+i+'" height="'+n+'" src="'+c+"//www.youtube.com/embed/"+o.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},55885:function(t,i,n){"use strict";n.d(i,{UIWelcomeScreen:function(){return a}});var o=n(31635),r=n(65478),s=n(67510);class a extends s.UIElement{className(){return"UIWelcomeScreen"}render(){return`<div class="&__container">
|
|
262
262
|
<div class="&__icon">
|
|
263
263
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
264
264
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/>
|
|
@@ -491,15 +491,15 @@ ${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)},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>
|
|
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){if(t.nodeName.toLowerCase()!==i.element)return!1;let n=i.classes?.filter(Boolean);return!n?.length||n.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>
|
|
498
498
|
</div>`}appendChildToContainer(t){let i=this.getElm("box");(0,a.assert)(null!=i,"box element does not exists"),i.appendChild(t)}addResize(){(0,l.css)(this.container,{width:null,height:null}),u.UIResize.remove(this),u.UIResize.install(this,screen.width>450?"right":"bottom")}onChangeFavorites(){this.setMod("has-favorites",!!this.state.favorites.length)}onClickHideButton(){return this.state.showSideBar=!this.state.showSideBar,!1}onClickFavorites(){return this.state.elements=this.state.favorites,!1}constructor(t,i,n){super(t,i),(0,o._)(this,"state",void 0),this.state=n,this.onChangeFavorites()}}(0,r.__decorate)([(0,s.hook)("ready"),(0,s.watch)(":resize",{context:window}),(0,s.debounce)()],d.prototype,"addResize",null),(0,r.__decorate)([(0,s.watch)("state.favorites")],d.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,s.watch)("hide-btn:click")],d.prototype,"onClickHideButton",null),(0,r.__decorate)([(0,s.watch)("favorites:click")],d.prototype,"onClickFavorites",null),d=(0,r.__decorate)([s.component],d)},71042:function(t,i){"use strict";i.default={"copy-format":"opmaak kopiëren"}},71050:function(t,i,n){"use strict";n.d(i,{invertMode:function(){return r},resizeInPanelView:function(){return s}});var o=n(41180);function r(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top"}}function s(t,i,n,s){if("dialog"===i||"flight"===i)return;("left"===i||"right"===i)&&(t.currentPlace.slots[r(i)]?.style.setProperty(`--jd-slot-${r(i)}-width`,"auto"),t.currentPlace.slots[i]?.style.setProperty(`--jd-slot-${i}-width`,`${n}px`));let a=(0,o.css)(t.currentPlace.workplace,"height")??0;t.currentPlace.slots[i]?.style.setProperty("min-height",`${Math.min(a,s)}px`)}},71102:function(t,i,n){"use strict";n.d(i,{UIGlobalSettings:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(67510),l=n(80256),c=n(12234);class u extends a.UIElement{className(){return"UIGlobalSettings"}setParentView(t){return this.displayModeSelect?.setParentView(t),this.panelWidthInput?.setParentView(t),this.themeSelect?.setParentView(t),super.setParentView(t)}async build(){let t=this.container;this.options.allowEditDisplayMode&&(this.displayModeSelect=new c.UISelect(this.j,{label:"Display Mode",name:"displayMode",value:this.state?.displayMode??"right",options:[{text:"Dialog",value:"dialog"},{text:"Flight",value:"flight"},{text:"Left",value:"left"},{text:"Right",value:"right"},{text:"Top",value:"top"},{text:"Bottom",value:"bottom"}],onChange:()=>{this.onDisplayModeChange()}}),t.appendChild(this.displayModeSelect.container)),this.options.allowEditPanelWidth&&(this.panelWidthInput=new l.UIInput(this.j,{label:"Panel Width",name:"panelWidth",type:"number",value:(this.state?.panelWidth??400)+"",onChange:()=>{this.onPanelWidthChange()}}),this.panelWidthInput.nativeInput.setAttribute("min","200"),this.panelWidthInput.nativeInput.setAttribute("max","800"),this.panelWidthInput.nativeInput.setAttribute("step","10"),t.appendChild(this.panelWidthInput.container)),this.options.allowEditTheme&&(this.themeSelect=new c.UISelect(this.j,{label:"Theme",name:"theme",value:this.state?.theme??"parent",options:[{text:"Inherit",value:"parent"},{text:"Light",value:"light"},{text:"Dark",value:"dark"}],onChange:()=>{this.onThemeChange()}}),t.appendChild(this.themeSelect.container))}async onDisplayModeChange(){this.displayModeSelect&&(this.state.displayMode=this.displayModeSelect.value,this.j.async.setTimeout(async()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro"),await this.j.async.requestIdlePromise(),this.j.e.fire("openAIAssistantPro.ai-assistant-pro")},100))}async onPanelWidthChange(){if(!this.panelWidthInput)return;let t=parseInt(this.panelWidthInput.value,10);isNaN(t)||t<200||t>800||(this.state.panelWidth=t)}async onThemeChange(){this.themeSelect&&(this.state.theme=this.themeSelect.value)}destruct(){this.displayModeSelect?.destruct(),this.panelWidthInput?.destruct(),this.themeSelect?.destruct(),super.destruct()}onStateDisplayModeChange(){this.displayModeSelect&&(this.displayModeSelect.value=this.state.displayMode)}onStatePanelWidthChange(){this.panelWidthInput&&this.panelWidthInput.value!==this.state.panelWidth+""&&(this.panelWidthInput.value=this.state.panelWidth+"")}onStateThemeChange(){this.themeSelect&&(this.themeSelect.value=this.state.theme)}constructor(t,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"displayModeSelect",void 0),(0,o._)(this,"panelWidthInput",void 0),(0,o._)(this,"themeSelect",void 0),this.state=i,this.options=n,this.displayModeSelect=null,this.panelWidthInput=null,this.themeSelect=null,this.build()}}(0,r.__decorate)([(0,s.watch)("state.displayMode")],u.prototype,"onStateDisplayModeChange",null),(0,r.__decorate)([(0,s.watch)("state.panelWidth")],u.prototype,"onStatePanelWidthChange",null),(0,r.__decorate)([(0,s.watch)("state.theme")],u.prototype,"onStateThemeChange",null),u=(0,r.__decorate)([s.component],u)},71255:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(37790),a=n(50911),l=n(12153),c=n(6441),u=n(31151);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,i){let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive(t,i){let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,n)=>`<span class="${i}">${t.i18n(n)}</span>`,tooltip:"Insert className"};class d extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,n,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",d),l.Icon.set("class-span",u.default)},71262:function(t,i,n){"use strict";n.d(i,{getStrongControlTypes:function(){return l}});var o=n(68345),r=n(43555),s=n(6441),a=n(72157);function l(t,i){return((0,o.isArray)(t)?t:(0,r.keys)(t,!1).map(i=>{let n=t[i]||{};return(0,r.ConfigProto)({name:i},n)})).map(t=>(0,a.getControlType)(t,i||s.Config.defaultOptions.controls))}},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),c=n(70091),u=n(46334),d=n(37406)},71568:function(t,i,n){"use strict";n.d(i,{Alert:function(){return c}});var o=n(2748),r=n(29999),s=n(23282),a=n(10830),l=n(78584);function c(t,i,n,u="jodit-dialog_alert"){(0,s.isFunction)(i)&&(n=i,i=void 0);let d=this instanceof l.Dialog?this:new l.Dialog({closeOnClickOverlay:!0}),h=d.c.div(u),p=(0,a.Button)(d,"ok","Ok");return(0,r.asArray)(t).forEach(t=>{h.appendChild(o.Dom.isNode(t)?t:d.c.fromHTML(t))}),p.onAction(()=>{n&&(0,s.isFunction)(n)&&!1===n(d)||d.close()}),d.setFooter([p]),d.open(h,i||" ",!0,!0),p.focus(),d}},71675:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},71686:function(t,i,n){"use strict";n.d(i,{ajaxInstances:function(){return a},send:function(){return l}});var o=n(21537),r=n(41601),s=n(83987);let a=new WeakMap;function l(t,i){let n=(0,s.buildData)(t,i),l=i=>{t.j.progressbar.show().progress(i),i>=100&&t.j.progressbar.hide()},c=(i,n)=>{let s=new r.Ajax({xhr(){let i=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&i.upload?(n(10),i.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;n(i*=100)}},!1)):n(100),i},method:t.o.method||"POST",data:i,url:(0,o.isFunction)(t.o.url)?t.o.url(i):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,i),withCredentials:t.o.withCredentials||!1}),l=a.get(t);return l||(l=new Set,a.set(t,l)),l.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),null==l||l.delete(s)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(c=t.o.customUploadFunction),(0,o.isPromise)(n))?n.then(t=>c(t,l)).catch(i=>{t.o.error.call(t,i)}):c(n,l)}},71705:function(t,i,n){"use strict";n.r(i),i.default={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},71724:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Zeilenhöhe"}},71842:function(t,i,n){"use strict";var o=n(82758),r=n(6441);r.Config.prototype.askBeforePasteFromWord=!0,r.Config.prototype.processPasteFromWord=!0,r.Config.prototype.defaultActionOnPasteFromWord=null,r.Config.prototype.pasteFromWordActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Clean"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}]},71916:function(t,i,n){"use strict";n.d(i,{UIButtonGroup:function(){return l}});var o=n(87325),r=n(38837),s=n(10830),a=n(62405);let l=class t extends a.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
|
|
499
499
|
<div class="&__label">~${t.label}~</div>
|
|
500
500
|
<div class="&__options"></div>
|
|
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 eC}});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,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"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\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(/^(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[.)])[ \\t]").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[.)])[ \\t]").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[.)])[ \\t]").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=/(?![*_])[\p{P}\p{S}]/u,z=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(),B=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,N=c(B,"u").replace(/punct/g,j).getRegex(),O=c(B,"u").replace(/punct/g,R).getRegex(),F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=c(F,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,j).getRegex(),U=c(F,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),q=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(),V=c(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,M).getRegex(),W=c("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,M).getRegex(),$=c(/\\(punct)/,"gu").replace(/punct/g,j).getRegex(),G=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(),K=c(C).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=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",K).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),J=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,X=c(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]
|
|
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 eC}});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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex: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"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},h=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\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(/^(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[.)])[ \\t]").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[.)])[ \\t]").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[.)])[ \\t]").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=/(?![*_])[\p{P}\p{S}]/u,z=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(),B=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,N=c(B,"u").replace(/punct/g,j).getRegex(),O=c(B,"u").replace(/punct/g,R).getRegex(),F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=c(F,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,L).replace(/punct/g,j).getRegex(),U=c(F,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),q=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(),V=c(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,M).getRegex(),W=c("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,M).getRegex(),$=c(/\\(punct)/,"gu").replace(/punct/g,j).getRegex(),G=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(),K=c(C).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=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",K).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),J=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,X=c(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",J).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=c(/^!?\[(label)\]\[(ref)\]/).replace("label",J).replace("ref",v).getRegex(),Q=c(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),ee=c("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",Q).getRegex(),et=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ei={_backpedal:l,anyPunctuation:$,autolink:G,blockSkip:z,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,delLDelim:l,delRDelim:l,emStrongLDelim:N,emStrongRDelimAst:H,emStrongRDelimUnd:q,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:Q,punctuation:P,reflink:Z,reflinkSearch:ee,tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},en={...ei,link:c(/^!?\[(label)\]\((.*?)\)/).replace("label",J).getRegex(),reflink:c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J).getRegex()},eo={...ei,emStrongRDelimAst:U,emStrongLDelim:O,delLDelim:V,delRDelim:W,url:c(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",et).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",et).getRegex()},er={...eo,br:c(A).replace("{2,}","*").getRegex(),text:c(eo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},es={normal:x,gfm:E,pedantic:T},ea={normal:ei,gfm:eo,breaks:er,pedantic:en},el={"&":"&","<":"<",">":">",'"':""","'":"'"},ec=t=>el[t];function eu(t,i){if(i){if(d.escapeTest.test(t))return t.replace(d.escapeReplace,ec)}else if(d.escapeTestNoEncode.test(t))return t.replace(d.escapeReplaceNoEncode,ec);return t}function ed(t){try{t=encodeURI(t).replace(d.percentDecode,"%")}catch{return null}return t}function eh(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 ep(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 ef(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 em=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:ep(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=ep(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:ep(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={}},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}">
|
|
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,{de:function(){return r.a},ru:function(){return a.a}});var o=n(46732),r=n.n(o),s=n(28125),a=n.n(s)},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")}">
|
|
@@ -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 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.30",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(49055),l=n(29960),c=n(76078),u=n(50911),d=n(80870),h=n(21491);n(86012);class p extends u.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,l.attr)(this.container,"role","list");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("pointerup.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 d.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,l.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,h.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,c.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",p)},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.35",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(49055),l=n(29960),c=n(76078),u=n(50911),d=n(80870),h=n(21491);n(86012);class p extends u.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,l.attr)(this.container,"role","list");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("pointerup.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 d.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,l.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,h.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,c.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",p)},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'>
|
|
@@ -684,7 +684,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error
|
|
|
684
684
|
<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
|
|
685
685
|
</div>
|
|
686
686
|
</div>
|
|
687
|
-
</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:i}=this;if(i.getRealMode()===o.MODE_WYSIWYG)switch(t.key){case o.KEY_ESC:this.close();break;case o.KEY_F3:this.queryInput.value&&(i.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,i,n=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);let o=null!=t?t:(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),i&&(this.replaceInput.value=i),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),s.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,a.position)(this.j.toolbarContainer);(0,a.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,a.css)(this.container,{top:null,left:null})}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:i,replace:n,cancel:r,next:s,prev:l,replaceBtn:c,current:u,count:d}=(0,a.refs)(this.container);this.queryInput=i,this.replaceInput=n,this.closeButton=r,this.replaceButton=c,this.currentBox=u,this.countBox=d,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(s,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(l,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,a.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async i=>{i.key===o.KEY_ENTER?(i.preventDefault(),i.stopImmediatePropagation(),await t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}};c([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([r.autobind],u.prototype,"open",null),c([r.autobind],u.prototype,"close",null),c([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([r.component],u)},92643:function(t,i,n){"use strict";n.d(i,{Command:function(){return o}});class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,i,n,o){this.oldValue=t,this.newValue=i,this.history=n,this.tick=o}}},92648:function(t,i){"use strict";i.default={"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"}},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},92762:function(t,i,n){"use strict";n.d(i,{ColorPickerWidget:function(){return o.ColorPickerWidget},FileSelectorWidget:function(){return r.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var o=n(22859),r=n(34793),s=n(38927)},92931:function(t,i,n){"use strict";n.d(i,{staticUrl:function(){return r}});var o=n(60811);function r(t){let{state:i}=t;return"https://maps.googleapis.com/maps/api/staticmap?center="+i.center.join(",")+"&zoom="+i.zoom+"&size="+i.size.join("x")+"&maptype="+i.type+"&key="+t.options.googleMaps.API_KEY+(0,o.generateStaticElements)(t)}},93079:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(21988),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,n,o)=>{let s=(0,r.normalizeColor)(o);switch(i){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:s||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:s||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},93119:function(t,i,n){"use strict";n.d(i,{SentenceFinder:function(){return r}});var o=n(67477);class r{add(t){var i;let n=(null!=(i=t.nodeValue)?i:"").toLowerCase();if(!n.length)return;let o=this.value.length;this.queue.push({startIndex:o,endIndex:o+n.length,node:t}),this.value+=n}ranges(t,i=0){let n=[],o=i,r=0,s=0;do if([o,r]=this.searchIndex(t,this.value,o),-1!==o){let t,i=0,a,l=0;for(let n=s;n<this.queue.length;n+=1)if(!t&&this.queue[n].endIndex>o&&(t=this.queue[n].node,i=o-this.queue[n].startIndex),t&&this.queue[n].endIndex>=o+r){a=this.queue[n].node,l=o+r-this.queue[n].startIndex,s=n;break}t&&a&&n.push({startContainer:t,startOffset:i,endContainer:a,endOffset:l}),o+=r}while(-1!==o)return 0===n.length?null:n}constructor(t=o.fuzzySearchIndex){this.searchIndex=t,this.queue=[],this.value=""}}},93183:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(23282),l=n(50911),c=n(45124);n(32496);var u=n(11338),d=n(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let n=this.j,s=n.selection;if(s.isFocused()||s.focus(),(0,u.checkNotCollapsed)(n))return!1;let l=s.range,h=n.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(n.editor,h))return;if(n.e.fire("backSpaceBeforeCases",t,h)||((0,c.moveNodeInsideStart)(n,h,t),d.cases.some(r=>{if((0,a.isFunction)(r)&&r(n,h,t,i))return o.IS_PROD,!0})))return!1}catch(t){throw o.IS_PROD,t}finally{n.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,n;let{range:o}=this.j.s;o.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?o.setStart(t.previousSibling,null!=(n=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?n:0):o.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?o.setStart(t.nextSibling,0):o.setStartBefore(t.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},93401:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(21537),l=n(50911),c=n(67510),u=n(61259),d=n(21491);n(24526);var h=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 p extends l.Plugin{get popup(){return new u.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let i=this.elmsList,n=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,i,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup(()=>(0,a.position)(n,this.j),n.nodeName.toLowerCase(),n),!1}showPopup(t,i,n){if(i=i.toLowerCase(),!this.canShowPopupForType(i))return!1;if(this.type!==i||n!==this.previousTarget){let t;this.previousTarget=n;let o=this.j.o.popup[i];t=(0,a.isFunction)(o)?o(this.j,n,this.popup.close):o,(0,a.isArray)(t)&&(this.toolbar.build(t,n),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=i}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,a.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let i=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!i&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,a.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",i=>{if(this.toolbar===i){let i=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let n=(0,a.isString)(t)?t:t.name;return n&&"|"!==n&&`
|
|
687
|
+
</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:i}=this;if(i.getRealMode()===o.MODE_WYSIWYG)switch(t.key){case o.KEY_ESC:this.close();break;case o.KEY_F3:this.queryInput.value&&(i.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,i,n=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);let o=null!=t?t:(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),i&&(this.replaceInput.value=i),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),s.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,a.position)(this.j.toolbarContainer);(0,a.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,a.css)(this.container,{top:null,left:null})}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:i,replace:n,cancel:r,next:s,prev:l,replaceBtn:c,current:u,count:d}=(0,a.refs)(this.container);this.queryInput=i,this.replaceInput=n,this.closeButton=r,this.replaceButton=c,this.currentBox=u,this.countBox=d,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(s,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(l,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,a.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async i=>{i.key===o.KEY_ENTER?(i.preventDefault(),i.stopImmediatePropagation(),await t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}};c([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([r.autobind],u.prototype,"open",null),c([r.autobind],u.prototype,"close",null),c([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([r.component],u)},92643:function(t,i,n){"use strict";n.d(i,{Command:function(){return o}});class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,i,n,o){this.oldValue=t,this.newValue=i,this.history=n,this.tick=o}}},92648:function(t,i){"use strict";i.default={"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"}},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},92762:function(t,i,n){"use strict";n.d(i,{ColorPickerWidget:function(){return o.ColorPickerWidget},FileSelectorWidget:function(){return r.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var o=n(22859),r=n(34793),s=n(38927)},92931:function(t,i,n){"use strict";n.d(i,{staticUrl:function(){return r}});var o=n(60811);function r(t){let{state:i}=t;return"https://maps.googleapis.com/maps/api/staticmap?center="+i.center.join(",")+"&zoom="+i.zoom+"&size="+i.size.join("x")+"&maptype="+i.type+"&key="+t.options.googleMaps.API_KEY+(0,o.generateStaticElements)(t)}},93079:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(21988),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,n,o)=>{let s=(0,r.normalizeColor)(o);switch(i){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:s||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:s||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},93119:function(t,i,n){"use strict";n.d(i,{SentenceFinder:function(){return r}});var o=n(67477);class r{add(t){var i;let n=(null!=(i=t.nodeValue)?i:"").toLowerCase();if(!n.length)return;let o=this.value.length;this.queue.push({startIndex:o,endIndex:o+n.length,node:t}),this.value+=n}ranges(t,i=0){let n=[],o=i,r=0,s=0;do if([o,r]=this.searchIndex(t,this.value,o),-1!==o){let t,i=0,a,l=0;for(let n=s;n<this.queue.length;n+=1)if(!t&&this.queue[n].endIndex>o&&(t=this.queue[n].node,i=o-this.queue[n].startIndex),t&&this.queue[n].endIndex>=o+r){a=this.queue[n].node,l=o+r-this.queue[n].startIndex,s=n;break}t&&a&&n.push({startContainer:t,startOffset:i,endContainer:a,endOffset:l}),o+=r}while(-1!==o)return 0===n.length?null:n}constructor(t=o.fuzzySearchIndex){this.searchIndex=t,this.queue=[],this.value=""}}},93183:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(23282),l=n(50911),c=n(45124);n(32496);var u=n(11338),d=n(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let n=this.j,s=n.selection;if(s.isFocused()||s.focus(),(0,u.checkNotCollapsed)(n))return!1;let l=s.range,h=n.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(n.editor,h))return;if(n.e.fire("backSpaceBeforeCases",t,h)||((0,c.moveNodeInsideStart)(n,h,t),d.cases.some(r=>{if((0,a.isFunction)(r)&&r(n,h,t,i))return o.IS_PROD,!0})))return!1}catch(t){throw o.IS_PROD,t}finally{n.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,n;let{range:o}=this.j.s;o.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?o.setStart(t.previousSibling,null!=(n=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?n:0):o.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?o.setStart(t.nextSibling,0):o.setStartBefore(t.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},93401:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(21537),l=n(50911),c=n(67510),u=n(61259),d=n(21491);n(24526);var h=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 p extends l.Plugin{get popup(){return new u.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let i=this.elmsList,n=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,i,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup(()=>(0,a.position)(n,this.j),n.nodeName.toLowerCase(),n),!1}showPopup(t,i,n){if(i=i.toLowerCase(),!this.canShowPopupForType(i))return!1;if(this.type!==i||n!==this.previousTarget){let t;this.previousTarget=n;let o=this.j.o.popup[i];if(t=(0,a.isFunction)(o)?o(this.j,n,this.popup.close):o,(0,a.isArray)(t)){let i=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(i.length?t.filter(t=>{let n=(0,a.isString)(t)?t:t.name;return!i.includes(null!=n?n:"")}):t,n),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container}this.popup.setContent(t),this.type=i}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,a.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let i=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!i&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,a.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",i=>{if(this.toolbar===i){let i=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let n=(0,a.isString)(t)?t:t.name;return n&&"|"!==n&&`
|
|
688
688
|
`!==n&&!i.includes(n)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,i,n)=>{this.showPopup(i,n||((0,a.isString)(t)?t:t.nodeName),(0,a.isString)(t)?void 0:t)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&c.UIElement.closestElement(t.target,u.Popup))return;let{snapRange:i}=this,{range:n}=this.j.s;(!i||n.collapsed||n.startContainer!==i.startContainer||n.startOffset!==i.startOffset||n.endContainer!==i.endContainer||n.endOffset!==i.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",i=this.j.s.sel,n=this.j.s.range;if((null==i?void 0:i.isCollapsed)||this.isSelectedTarget(n)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>n.getBoundingClientRect(),t)}isSelectedTarget(t){let i=t.startContainer;return r.Dom.isElement(i)&&i===t.endContainer&&r.Dom.isTag(i.childNodes[t.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,a.camelCase)("click_"+t)).concat(t.map(t=>(0,a.camelCase)("touchstart_"+t))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:i}=this.j.s;return i.getBoundingClientRect()},"toolbar")}constructor(){super(...arguments),this.type=null,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t))}}p.requires=["select"],h([o.cache],p.prototype,"popup",null),h([o.cache],p.prototype,"toolbar",null),h([o.autobind],p.prototype,"onClick",null),h([(0,o.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),h([(0,o.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),o.autobind],p.prototype,"hidePopup",null),h([(0,o.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),h([o.autobind],p.prototype,"onSelectionStart",null),h([o.autobind],p.prototype,"onSelectionEnd",null),h([(0,o.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),h([o.autobind],p.prototype,"showInlineToolbar",null),s.pluginSystem.add("inlinePopup",p)},93602:function(t,i,n){"use strict";n.d(i,{RecognizeManager:function(){return c}});var o=n(65478),r=n(72757),s=n(37643),a=n(85567),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};class c extends r.Eventify{set lang(t){this._lang=t,this._api.lang=t}get lang(){return this._lang}set continuous(t){this._continuous=t,this._api.continuous=t}get continuous(){return this._continuous}set interimResults(t){this._interimResults=t,this._api.interimResults=t}get interimResults(){return this._interimResults}destruct(){this.stop(),c._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,c._instances.forEach(t=>{t!==this&&t.stop()});try{this._api.start()}catch(t){this._onError(t),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(t,i){return this._api.addEventListener(t,i),this}__off(t,i){return this._api.removeEventListener(t,i),this}_onResults(t){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(a.PII),this.restart()}_onProgress(t){if(this._isEnabled&&(this.__interimResults="",t.results)){for(let i=0;i<t.results.length;i++){let n=t.results.item(i);if(n.length){let{transcript:t}=n.item(0);this.__interimResults+=t}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(t){"voice-unavailable"===t.error&&this.emit("error","Voice unavailable"),"not-allowed"===t.error&&this.emit("error","Not allowed"),("language-unavailable"===t.error||"language-not-supported"===t.error)&&this.emit("error","Language unavailable"),this._makeSound(a.WARN),this.emit("pulse",!1),this.stop()}_makeSound(t){this.sound&&(0,s.sound)({frequency:t})}constructor(t,i){super(),this.async=t,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=t=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(a.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=i,c._instances.add(this)}}c._instances=new Set,l([o.autobind],c.prototype,"_onResults",null),l([o.autobind],c.prototype,"_onProgress",null),l([o.autobind],c.prototype,"_onError",null)},93620:function(t,i,n){"use strict";n.r(i),i.default={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},93677:function(t,i,n){"use strict";n.d(i,{UIPermissionRequest:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(67510),l=n(62843),c=n(12234);class u extends a.UIElement{className(){return"UIPermissionRequest"}setToolCall(t){this.toolCall=t,this.updateContent()}setParentView(t){return this.scopeSelect?.setParentView(t),this.approveButton?.setParentView(t),this.denyButton?.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
|
|
689
689
|
<div class="&__header">
|
|
690
690
|
<div class="&__icon"></div>
|