jodit-pro 4.8.4 → 4.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +6 -6
- package/es2015/jodit.js +15 -14
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/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 +6 -6
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/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/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 +6 -6
- package/es2021/jodit.js +15 -14
- package/es2021/jodit.min.js +5 -5
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/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 +6 -6
- package/es2021.en/jodit.js +15 -14
- package/es2021.en/jodit.min.js +5 -5
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/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 +18 -14
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/package.json +1 -1
package/es2018/jodit.fat.min.js
CHANGED
|
@@ -1,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.8.
|
|
4
|
+
* Version: v4.8.5
|
|
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(){var t;let i=null==(t=this.items.elements[this.stateManager.state.lastSelectedIndex])?void 0:t.container;i&&((0,a.scrollIntoViewIfNeeded)(i,this.items.container,this.j.od),i.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\xed použit\xed","Jodit User's Guide":"Jodit Uživatelsk\xe1 př\xedručka","contains detailed help for using":"obsahuje detailn\xed n\xe1povědu","For information about the license, please go to our website:":"Pro informace o licenci, pros\xedm, přejděte na naši str\xe1nku:","Buy full version":"Koupit plnou verzi","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright \xa9 XDSoft.net - Chupurnov Valeriy. Všechna pr\xe1va vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevř\xedt v nov\xe9 z\xe1ložce","Open in fullsize":"Otevř\xedt v celoobrazovkov\xe9m režimu","Clear Formatting":"Vyčistit form\xe1tov\xe1n\xed","Fill color or set the text color":"Barva v\xfdplně a p\xedsma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučn\xe9",Italic:"Kurz\xedva","Insert Unordered List":"Odr\xe1žky","Insert Ordered List":"Č\xedslovan\xfd 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\xe1ln\xed linku","Insert Image":"Vložit obr\xe1zek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost p\xedsma","Font family":"Typ p\xedsma","Insert format block":"Form\xe1tovat blok",Normal:"Norm\xe1ln\xed text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Cit\xe1t",Code:"K\xf3d",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazen\xed","Increase Indent":"Zvětšit odsazen\xed","Select Special Character":"Vybrat speci\xe1ln\xed symbol","Insert Special Character":"Vložit speci\xe1ln\xed symbol","Paint format":"Použ\xedt form\xe1t","Change mode":"Změnit m\xf3d",Margins:"Okraje",top:"horn\xed",right:"prav\xfd",bottom:"spodn\xed",left:"lev\xfd",Styles:"Styly",Classes:"Tř\xeddy",Align:"Zarovn\xe1n\xed",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativn\xed text (alt)",Link:"Link","Open link in new tab":"Otevř\xedt link v nov\xe9 z\xe1ložce",Image:"Obr\xe1zek",file:"soubor",Advanced:"Rozš\xedřen\xe9","Image properties":"Vlastnosti obr\xe1zku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"V\xe1š text se podob\xe1 HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat origin\xe1l",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekov\xe1n 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\xfd vkl\xe1d\xe1te, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat form\xe1t nebo vložit pouze text?","File Browser":"Prohl\xedžeč souborů","Error on load list":"Chyba při nač\xedt\xe1n\xed seznamu souborů","Error on load folders":"Chyba při nač\xedt\xe1n\xed složek","Are you sure?":"Jste si jist\xfd(\xe1)?","Enter Directory name":"N\xe1zev složky","Create directory":"Vytvořit složku","type name":"n\xe1zev","Drop image":"Přet\xe1hněte sem obr\xe1zek","Drop file":"Přet\xe1hněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativn\xed text",Browse:"Server",Upload:"Nahr\xe1t",Background:"Pozad\xed",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 ř\xe1dek nad","Insert row below":"Vložit ř\xe1dek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat ř\xe1dku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurz\xedva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obr\xe1zek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost p\xedsma",video:"video",font:"p\xedsmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazen\xed",outdent:"zmenšit odsazen\xed",fullsize:"celoobrazovkov\xfd režim",shrink:"smrsknout",hr:"Linka",ul:"Odr\xe1žka",ol:"Č\xedslovan\xfd seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"K\xf3d","Open link":"Otevř\xedt 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\xe1ln\xed zarovn\xe1n\xed",Filter:"Filtr","Sort by changed":"Dle posledn\xed změny","Sort by name":"Dle n\xe1zvu","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:"Š\xedřka",Height:"V\xfdš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\xe1ln\xed zarovn\xe1n\xed",Split:"Rozdělit","Split vertical":"Rozdělit vertik\xe1lně","Split horizontal":"Rozdělit horizont\xe1lně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat ř\xe1dek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horn\xed index",subscript:"Doln\xed index","Cut selection":"Vyjmout označen\xe9",Break:"Zalomen\xed","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložen\xed","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze sv\xe9 obr\xe1zky. Nač\xedst obr\xe1zek?","The image has been successfully uploaded to the host!":"Obr\xe1zek byl \xfaspěšně nahr\xe1n!",palette:"paleta","There are no files":"V tomto adres\xe1ři nejsou ž\xe1dn\xe9 soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nov\xfd n\xe1zev",preview:"n\xe1hled",download:"Stažen\xed","Paste from clipboard":"Vložit ze schr\xe1nky","Your browser doesn't support direct access to the clipboard.":"V\xe1š prohl\xedžeč nepodporuje př\xedm\xfd př\xedstup do schr\xe1nky.","Copy selection":"Kop\xedrovat v\xfdběr",copy:"kop\xedrov\xe1n\xed","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Plat\xed","Please fill out this field":"Pros\xedm, vyplňte toto pole","Please enter a web address":"Pros\xedm, zadejte webovou adresu",Default:"V\xfdchoz\xed",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Naj\xedt","Find Previous":"Naj\xedt Předchoz\xed","Find Next":"Naj\xedt Dalš\xed","Insert className":"Vložte n\xe1zev tř\xeddy","Press Alt for custom resizing":"Stiskněte Alt pro vlastn\xed 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){var i,n;this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,null!=(i=null==(n=this.data)?void 0:n.categories)?i:[]))}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)=>{var s,a;let l=-1===(o=u.normalizeEmoji(o)).category?"Recently":i[o.category];if(l!==n){n=l;let i=null!=(a=this.cache[n])?a:this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let c=null!=(s=this.cache[o.emoji+o.category])?s:this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=c,t.push(c),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=>{var n,o,r;let s=u.normalizeEmoji(i);return(null==(n=s.description)?void 0:n.toLowerCase().includes(t))||(null==(o=s.tags)?void 0:o.join(" ").toLowerCase().includes(t))||(null==(r=s.aliases)?void 0:r.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.isAbort)(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=>{var n;i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),null!=(n=t.name)?n:"",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:(null==t?void 0:t.toolbarButtons)||g.Config.defaultOptions.filebrowser.buttons,buttons:x.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,k.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,_.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new d.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),I.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),x.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([v.autobind],E.prototype,"status",null),(0,r.__decorate)([v.cache],E.prototype,"progressbar",null),(0,r.__decorate)([(0,v.watch)(":resize",{context:window})],E.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,v.watch)(["state.currentPath","state.currentSource"])],E.prototype,"onChangePath",null),(0,r.__decorate)([(0,v.watch)("state.theme")],E.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,v.watch)(":toggleSettings.filebrowser")],E.prototype,"onToggleSettings",null),(0,r.__decorate)([v.autobind],E.prototype,"onKeyPress",null),(0,r.__decorate)([v.autobind],E.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,v.watch)(":fileRemove.filebrowser")],E.prototype,"onFileRemove",null),(0,r.__decorate)([(0,v.watch)(":edit.filebrowser")],E.prototype,"onFileEdit",null),(0,r.__decorate)([(0,v.watch)(":folderRename.filebrowser")],E.prototype,"onFolderRename",null),(0,r.__decorate)([(0,v.watch)(":folderRemove.filebrowser")],E.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,v.watch)(":folderCreate.filebrowser")],E.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,v.watch)(":fileRename.filebrowser")],E.prototype,"onFileRename",null),(0,r.__decorate)([(0,v.watch)(":select.filebrowser")],E.prototype,"onChooseItems",null),(0,r.__decorate)([(0,v.watch)(":openLightBox.filebrowser")],E.prototype,"onOpenLightBox",null),E=(0,r.__decorate)([v.component,(0,v.derive)(w.Dlgs)],E),Object.defineProperty(x.JoditPro.modules,"FileBrowserPro",{value:E,writable:!1,enumerable:!0,configurable:!0})},5567:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},5618:function(t,i,n){"use strict";var o=n(93809),r=n(28157);i.default={...o,execute:r.execute}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,u+=o}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},5827:function(t,i,n){"use strict";var o=n(2748),r=n(12153),s=n(6441),a=n(27190),l=n(42345),c=n(10411);s.Config.prototype.link={formTemplate:c.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},r.Icon.set("link",a.default).set("unlink",l.default),s.Config.prototype.controls.unlink={exec:(t,i)=>{let n=o.Dom.closest(i,"a",t.editor);n&&o.Dom.unwrap(n),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive:t=>{let i=t.s.current();return!!(i&&o.Dom.closest(i,"a",t.editor))},popup:(t,i,n)=>t.e.fire("generateLinkForm.link",i,n),tags:["a"],tooltip:"Insert link"}},6091:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},6183:function(t,i,n){"use strict";n.d(i,{UIBackupList:function(){return d}});var o=n(82749),r=n(31635),s=n(38512),a=n(82758),l=n(65478),c=n(21537),u=n(67510);class d extends u.UIGroup{className(){return"UIBackupList"}createContainer(t){let i=super.createContainer(t);return(0,c.attr)(i,"tabIndex","-1"),i}build(t){this.clear(),t.forEach((t,i)=>{let n=new s.UIBackupItem(this.jodit,t);this.append(n),this.j.e.on(n.container,"focus",()=>this.onSelect(i)).on(n.container,"click",()=>this.onSelect(i)).on(n.container,"dblclick",()=>this.onChoose(i))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,i,n){var o,r,s;null==(o=this.elements[i])||o.setMod("active",!1),null==(r=this.elements[n])||r.setMod("active",!0),null==(s=this.elements[n])||s.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[null!=t?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:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,r)}}r=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)}}},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\xe1s corto","Make longer":"Hacer m\xe1s largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar despu\xe9s","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\xedstico","Change style to poetic":"Cambiar estilo a po\xe9tico","Translate to Spanish":"Traducir al espa\xf1ol","Translate to French":"Traducir al franc\xe9s","Translate to German":"Traducir al alem\xe1n","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugu\xe9s","Translate to English":"Traducir al ingl\xe9s","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japon\xe9s","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al \xe1rabe",Submit:"Enviar"}},7903:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new a.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},8172:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return r.FileBrowserTree}});var o=n(97379),r=n(8193)},8193:function(t,i,n){"use strict";n.d(i,{FileBrowserTree:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserTree"}}},8256:function(t,i,n){"use strict";var o=n(6441),r=n(22732),s=n(21537);let a=["tune.up","tune.remove","tune.down"],l=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...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){var o;return(null==n||null==(o=n.target)?void 0:o.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){var o;return!(null==n||null==(o=n.target)?void 0:o[i])},exec(n,o){let a=null==o?void 0: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>
|
|
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(){var t;let i=null==(t=this.items.elements[this.stateManager.state.lastSelectedIndex])?void 0:t.container;i&&((0,a.scrollIntoViewIfNeeded)(i,this.items.container,this.j.od),i.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\xed použit\xed","Jodit User's Guide":"Jodit Uživatelsk\xe1 př\xedručka","contains detailed help for using":"obsahuje detailn\xed n\xe1povědu","For information about the license, please go to our website:":"Pro informace o licenci, pros\xedm, přejděte na naši str\xe1nku:","Buy full version":"Koupit plnou verzi","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright \xa9 XDSoft.net - Chupurnov Valeriy. Všechna pr\xe1va vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevř\xedt v nov\xe9 z\xe1ložce","Open in fullsize":"Otevř\xedt v celoobrazovkov\xe9m režimu","Clear Formatting":"Vyčistit form\xe1tov\xe1n\xed","Fill color or set the text color":"Barva v\xfdplně a p\xedsma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučn\xe9",Italic:"Kurz\xedva","Insert Unordered List":"Odr\xe1žky","Insert Ordered List":"Č\xedslovan\xfd 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\xe1ln\xed linku","Insert Image":"Vložit obr\xe1zek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost p\xedsma","Font family":"Typ p\xedsma","Insert format block":"Form\xe1tovat blok",Normal:"Norm\xe1ln\xed text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Cit\xe1t",Code:"K\xf3d",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazen\xed","Increase Indent":"Zvětšit odsazen\xed","Select Special Character":"Vybrat speci\xe1ln\xed symbol","Insert Special Character":"Vložit speci\xe1ln\xed symbol","Paint format":"Použ\xedt form\xe1t","Change mode":"Změnit m\xf3d",Margins:"Okraje",top:"horn\xed",right:"prav\xfd",bottom:"spodn\xed",left:"lev\xfd",Styles:"Styly",Classes:"Tř\xeddy",Align:"Zarovn\xe1n\xed",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativn\xed text (alt)",Link:"Link","Open link in new tab":"Otevř\xedt link v nov\xe9 z\xe1ložce",Image:"Obr\xe1zek",file:"soubor",Advanced:"Rozš\xedřen\xe9","Image properties":"Vlastnosti obr\xe1zku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"V\xe1š text se podob\xe1 HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat origin\xe1l",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekov\xe1n 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\xfd vkl\xe1d\xe1te, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat form\xe1t nebo vložit pouze text?","File Browser":"Prohl\xedžeč souborů","Error on load list":"Chyba při nač\xedt\xe1n\xed seznamu souborů","Error on load folders":"Chyba při nač\xedt\xe1n\xed složek","Are you sure?":"Jste si jist\xfd(\xe1)?","Enter Directory name":"N\xe1zev složky","Create directory":"Vytvořit složku","type name":"n\xe1zev","Drop image":"Přet\xe1hněte sem obr\xe1zek","Drop file":"Přet\xe1hněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativn\xed text",Browse:"Server",Upload:"Nahr\xe1t",Background:"Pozad\xed",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 ř\xe1dek nad","Insert row below":"Vložit ř\xe1dek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat ř\xe1dku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurz\xedva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obr\xe1zek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost p\xedsma",video:"video",font:"p\xedsmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazen\xed",outdent:"zmenšit odsazen\xed",fullsize:"celoobrazovkov\xfd režim",shrink:"smrsknout",hr:"Linka",ul:"Odr\xe1žka",ol:"Č\xedslovan\xfd seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"K\xf3d","Open link":"Otevř\xedt 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\xe1ln\xed zarovn\xe1n\xed",Filter:"Filtr","Sort by changed":"Dle posledn\xed změny","Sort by name":"Dle n\xe1zvu","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:"Š\xedřka",Height:"V\xfdš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\xe1ln\xed zarovn\xe1n\xed",Split:"Rozdělit","Split vertical":"Rozdělit vertik\xe1lně","Split horizontal":"Rozdělit horizont\xe1lně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat ř\xe1dek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horn\xed index",subscript:"Doln\xed index","Cut selection":"Vyjmout označen\xe9",Break:"Zalomen\xed","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložen\xed","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze sv\xe9 obr\xe1zky. Nač\xedst obr\xe1zek?","The image has been successfully uploaded to the host!":"Obr\xe1zek byl \xfaspěšně nahr\xe1n!",palette:"paleta","There are no files":"V tomto adres\xe1ři nejsou ž\xe1dn\xe9 soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nov\xfd n\xe1zev",preview:"n\xe1hled",download:"Stažen\xed","Paste from clipboard":"Vložit ze schr\xe1nky","Your browser doesn't support direct access to the clipboard.":"V\xe1š prohl\xedžeč nepodporuje př\xedm\xfd př\xedstup do schr\xe1nky.","Copy selection":"Kop\xedrovat v\xfdběr",copy:"kop\xedrov\xe1n\xed","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Plat\xed","Please fill out this field":"Pros\xedm, vyplňte toto pole","Please enter a web address":"Pros\xedm, zadejte webovou adresu",Default:"V\xfdchoz\xed",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Naj\xedt","Find Previous":"Naj\xedt Předchoz\xed","Find Next":"Naj\xedt Dalš\xed","Insert className":"Vložte n\xe1zev tř\xeddy","Press Alt for custom resizing":"Stiskněte Alt pro vlastn\xed 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){var i,n;this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,null!=(i=null==(n=this.data)?void 0:n.categories)?i:[]))}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)=>{var s,a;let l=-1===(o=u.normalizeEmoji(o)).category?"Recently":i[o.category];if(l!==n){n=l;let i=null!=(a=this.cache[n])?a:this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let c=null!=(s=this.cache[o.emoji+o.category])?s:this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=c,t.push(c),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=>{var n,o,r;let s=u.normalizeEmoji(i);return(null==(n=s.description)?void 0:n.toLowerCase().includes(t))||(null==(o=s.tags)?void 0:o.join(" ").toLowerCase().includes(t))||(null==(r=s.aliases)?void 0:r.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.isAbort)(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=>{var n;i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),null!=(n=t.name)?n:"",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:(null==t?void 0:t.toolbarButtons)||g.Config.defaultOptions.filebrowser.buttons,buttons:x.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,k.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,_.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new d.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),I.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),x.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([v.autobind],E.prototype,"status",null),(0,r.__decorate)([v.cache],E.prototype,"progressbar",null),(0,r.__decorate)([(0,v.watch)(":resize",{context:window})],E.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,v.watch)(["state.currentPath","state.currentSource"])],E.prototype,"onChangePath",null),(0,r.__decorate)([(0,v.watch)("state.theme")],E.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,v.watch)(":toggleSettings.filebrowser")],E.prototype,"onToggleSettings",null),(0,r.__decorate)([v.autobind],E.prototype,"onKeyPress",null),(0,r.__decorate)([v.autobind],E.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,v.watch)(":fileRemove.filebrowser")],E.prototype,"onFileRemove",null),(0,r.__decorate)([(0,v.watch)(":edit.filebrowser")],E.prototype,"onFileEdit",null),(0,r.__decorate)([(0,v.watch)(":folderRename.filebrowser")],E.prototype,"onFolderRename",null),(0,r.__decorate)([(0,v.watch)(":folderRemove.filebrowser")],E.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,v.watch)(":folderCreate.filebrowser")],E.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,v.watch)(":fileRename.filebrowser")],E.prototype,"onFileRename",null),(0,r.__decorate)([(0,v.watch)(":select.filebrowser")],E.prototype,"onChooseItems",null),(0,r.__decorate)([(0,v.watch)(":openLightBox.filebrowser")],E.prototype,"onOpenLightBox",null),E=(0,r.__decorate)([v.component,(0,v.derive)(w.Dlgs)],E),Object.defineProperty(x.JoditPro.modules,"FileBrowserPro",{value:E,writable:!1,enumerable:!0,configurable:!0})},5567:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},5618:function(t,i,n){"use strict";var o=n(93809),r=n(28157);i.default={...o,execute:r.execute}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,u+=o}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},5827:function(t,i,n){"use strict";var o=n(2748),r=n(12153),s=n(6441),a=n(27190),l=n(42345),c=n(10411);s.Config.prototype.link={formTemplate:c.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},r.Icon.set("link",a.default).set("unlink",l.default),s.Config.prototype.controls.unlink={exec:(t,i)=>{let n=o.Dom.closest(i,"a",t.editor);n&&o.Dom.unwrap(n),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive:t=>{let i=t.s.current();return!!(i&&o.Dom.closest(i,"a",t.editor))},popup:(t,i,n)=>t.e.fire("generateLinkForm.link",i,n),tags:["a"],tooltip:"Insert link"}},6091:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},6183:function(t,i,n){"use strict";n.d(i,{UIBackupList:function(){return d}});var o=n(82749),r=n(31635),s=n(38512),a=n(82758),l=n(65478),c=n(21537),u=n(67510);class d extends u.UIGroup{className(){return"UIBackupList"}createContainer(t){let i=super.createContainer(t);return(0,c.attr)(i,"tabIndex","-1"),i}build(t){this.clear(),t.forEach((t,i)=>{let n=new s.UIBackupItem(this.jodit,t);this.append(n),this.j.e.on(n.container,"focus",()=>this.onSelect(i)).on(n.container,"click",()=>this.onSelect(i)).on(n.container,"dblclick",()=>this.onChoose(i))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,i,n){var o,r,s;null==(o=this.elements[i])||o.setMod("active",!1),null==(r=this.elements[n])||r.setMod("active",!0),null==(s=this.elements[n])||s.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[null!=t?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:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,r)}}r=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\xe1s corto","Make longer":"Hacer m\xe1s largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar despu\xe9s","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\xedstico","Change style to poetic":"Cambiar estilo a po\xe9tico","Translate to Spanish":"Traducir al espa\xf1ol","Translate to French":"Traducir al franc\xe9s","Translate to German":"Traducir al alem\xe1n","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugu\xe9s","Translate to English":"Traducir al ingl\xe9s","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japon\xe9s","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al \xe1rabe",Submit:"Enviar"}},7903:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new a.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},8172:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return r.FileBrowserTree}});var o=n(97379),r=n(8193)},8193:function(t,i,n){"use strict";n.d(i,{FileBrowserTree:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserTree"}}},8256:function(t,i,n){"use strict";var o=n(6441),r=n(22732),s=n(21537);let a=["tune.up","tune.remove","tune.down"],l=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...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){var o;return(null==n||null==(o=n.target)?void 0:o.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){var o;return!(null==n||null==(o=n.target)?void 0:o[i])},exec(n,o){let a=null==o?void 0: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>
|
|
22
22
|
<div class="&__image"></div>
|
|
23
23
|
<div class="&__info"></div>
|
|
24
24
|
<div class="&__loader"></div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>`}afterSetMod(t,i){"hidden"===t&&!1===i&&this.onChangeMetaInfo(),super.afterSetMod(t,i)}onChangeMetaInfo(){var t,i;if(this.getMod("hidden"))return;let{metaInfo:n}=this.state;this.setMod("empty",!n);let o=this.getElm("info");(0,c.assert)(null!=o,"info element does not exists"),a.Dom.detach(o);let r=this.getElm("image");(0,c.assert)(null!=r,"image element does not exists"),(0,l.css)(r,{backgroundImage:null}),n&&(this.setMod("is-file",!1===n.isImage).setMod("type",null!=(t=n.type)?t:"file"),d.UIBrowserItem.prototype.setElementValue.call(this,"name",n.file),d.UIBrowserItem.prototype.setElementValue.call(this,"time",n.time),d.UIBrowserItem.prototype.setElementValue.call(this,"filesize",n.size),this.setMod("loading",!0),null==(i=this.lastLoadPromise)||i.rejectCallback(),this.lastLoadPromise=(0,l.loadImage)(n.isImage?n.fileURL:n.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\xf3rios"}},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={"\xb7":"disc",o:"circle","\xa7":"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()},filebrowser:async 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 g},UIButton:function(){return m},UIButtonState:function(){return f}});var o=n(78213),r=n(65478),s=n(2748),a=n(23282),l=n(70799),c=n(43555),u=n(48538),d=n(24536),h=n(12153),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=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}),m=class t extends u.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,c.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,c.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,c.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,c.attr)(this.container,"role",this.state.role)}updateSize(){let t=this.closest(d.UIList);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,c.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,c.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,c.attr)(this.container,"data-ref",this.state.name),(0,c.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,c.attr)(this.container,"title",t),(0,c.attr)(this.container,"aria-label",t)}onChangeTabIndex(){(0,c.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,a.isFunction)(t)&&t(this.state.name))return;s.Dom.detach(this.icon);let i=h.Icon.makeIcon(this.j,this.state.icon);i&&this.icon.appendChild(i)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&s.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=f(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),i&&this.hookStatus(o.STATUSES.ready,()=>{this.setState(i)})}};function g(t,i,n,o){let r=new m(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,l.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}p([r.cache],m.prototype,"text",null),p([r.cache],m.prototype,"icon",null),p([(0,r.watch)("state.size",{immediately:!1})],m.prototype,"onChangeSize",null),p([(0,r.watch)("state.type",{immediately:!1})],m.prototype,"onChangeType",null),p([(0,r.watch)("state.role",{immediately:!1})],m.prototype,"onChangeRole",null),p([(0,r.watch)("parentElement")],m.prototype,"updateSize",null),p([(0,r.watch)("state.variant",{immediately:!1})],m.prototype,"onChangeStatus",null),p([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeText",null),p([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeTextSetMode",null),p([(0,r.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),p([(0,r.watch)("state.activated")],m.prototype,"onChangeActivated",null),p([(0,r.watch)("state.name",{immediately:!1})],m.prototype,"onChangeName",null),p([(0,r.watch)("state.tooltip",{immediately:!1})],m.prototype,"onChangeTooltip",null),p([(0,r.watch)("state.tabIndex",{immediately:!1})],m.prototype,"onChangeTabIndex",null),p([(0,r.watch)("state.icon",{immediately:!1})],m.prototype,"onChangeIcon",null),p([r.cacheHTML],m.prototype,"createContainer",null),p([(0,r.watch)("button:click")],m.prototype,"__onActionFire",null),m=p([r.component],m)},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>
|
|
27
27
|
<div class='&__label'>~Info~</div>
|
|
28
28
|
<div class='&__editor'></div>
|
|
29
|
-
</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 c}});var o=n(65478),r=n(82760),s=n(67510),a=n(21491),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=class t extends s.UIList{className(){return"ToolbarCollection"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,a.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,a.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,r.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 afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};l([o.autobind],c.prototype,"__immediateUpdate",null),l([(0,o.debounce)(t=>t.j.defaultTimeout,!0)],c.prototype,"update",null),l([(0,o.hook)("ready")],c.prototype,"__initEvents",null),c=l([o.component],c)},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{onReady(){var t,i;this.append([new a.ColorInput(this.j,{label:"Fill color",value:null!=(t=this.state.fillColor)?t:"#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:null!=(i=this.state.fillOpacity)?i: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 l},default:function(){return u}});var o=n(82758),r=n(21537),s=n(41601),a=n(159);let l="default",c=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class u{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,r.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,r.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));let o=new s.Ajax(n);i.set(t,o);let a=o.send();return a.finally(()=>{o.destruct(),i.delete(t),this.progressHandler(100)}).catch(()=>null),a.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,r.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&&!c.has(i))throw(0,r.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:s}=this.o;(0,r.isFunction)(s)&&i.sortBy&&t.files.sort((t,n)=>s(t,n,i.sortBy)),t.files.forEach(r=>{o(r)&&("folder"===r.type||!i.onlyImages||void 0===r.isImage||r.isImage)&&n.push(a.FileBrowserItem.create({...r,sourceName:t.name,source:t}))})}}),n}async tree(t,i){return(t=(0,r.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,r.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,r.error)(this.getMessage(t))})}createFolder(t,i,n){let{create:o}=this.o;if(!o)throw(0,r.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,r.error)(this.getMessage(t))})}move(t,i,n,o){let s=o?"fileMove":"folderMove",a=this.options[s];if(!a)throw(0,r.error)("Set Move api options");return a.data.from=t,a.data.path=i,a.data.source=n,this.get(s).then(t=>{if(this.isSuccess(t))return!0;throw(0,r.error)(this.getMessage(t))})}remove(t,i,n,o){let s=this.o[t];if(!s)throw(0,r.error)(`Set "${t}" api options`);return s.data.path=i,s.data.name=n,s.data.source=o,this.get(t).then(t=>(s.process&&(t=s.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,s){let a=this.o[t];if(!a)throw(0,r.error)(`Set "${t}" api options`);return a.data.path=i,a.data.name=n,a.data.newname=o,a.data.source=s,this.get(t).then(t=>(a.process&&(t=a.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=>{}}}},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">
|
|
29
|
+
</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 c}});var o=n(65478),r=n(82760),s=n(67510),a=n(21491),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=class t extends s.UIList{className(){return"ToolbarCollection"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,a.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,a.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,r.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"}};l([(0,o.watch)(":afterInit"),o.autobind],c.prototype,"__immediateUpdate",null),l([(0,o.debounce)(t=>t.j.defaultTimeout,!0)],c.prototype,"update",null),l([(0,o.hook)("ready")],c.prototype,"__initEvents",null),c=l([o.component],c)},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{onReady(){var t,i;this.append([new a.ColorInput(this.j,{label:"Fill color",value:null!=(t=this.state.fillColor)?t:"#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:null!=(i=this.state.fillOpacity)?i: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 l},default:function(){return u}});var o=n(82758),r=n(21537),s=n(41601),a=n(159);let l="default",c=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class u{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,r.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,r.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));let o=new s.Ajax(n);i.set(t,o);let a=o.send();return a.finally(()=>{o.destruct(),i.delete(t),this.progressHandler(100)}).catch(()=>null),a.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,r.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&&!c.has(i))throw(0,r.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:s}=this.o;(0,r.isFunction)(s)&&i.sortBy&&t.files.sort((t,n)=>s(t,n,i.sortBy)),t.files.forEach(r=>{o(r)&&("folder"===r.type||!i.onlyImages||void 0===r.isImage||r.isImage)&&n.push(a.FileBrowserItem.create({...r,sourceName:t.name,source:t}))})}}),n}async tree(t,i){return(t=(0,r.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,r.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,r.error)(this.getMessage(t))})}createFolder(t,i,n){let{create:o}=this.o;if(!o)throw(0,r.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,r.error)(this.getMessage(t))})}move(t,i,n,o){let s=o?"fileMove":"folderMove",a=this.options[s];if(!a)throw(0,r.error)("Set Move api options");return a.data.from=t,a.data.path=i,a.data.source=n,this.get(s).then(t=>{if(this.isSuccess(t))return!0;throw(0,r.error)(this.getMessage(t))})}remove(t,i,n,o){let s=this.o[t];if(!s)throw(0,r.error)(`Set "${t}" api options`);return s.data.path=i,s.data.name=n,s.data.source=o,this.get(t).then(t=>(s.process&&(t=s.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,s){let a=this.o[t];if(!a)throw(0,r.error)(`Set "${t}" api options`);return a.data.path=i,a.data.name=n,a.data.newname=o,a.data.source=s,this.get(t).then(t=>(a.process&&(t=a.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=>{}}}},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">
|
|
30
30
|
<div class="jodit-resizer__top-left"></div>
|
|
31
31
|
<div class="jodit-resizer__top-right"></div>
|
|
32
32
|
<div class="jodit-resizer__bottom-right"></div>
|
|
@@ -217,7 +217,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
217
217
|
<div class="&__empty-message">~There are no files~</div>
|
|
218
218
|
<div class='&__loader'></div>
|
|
219
219
|
<div class='&__drag-area'>~Drop image~</div>
|
|
220
|
-
</div>`}reconcile(t){let i=this.elements.findIndex((i,n)=>!t[n]||i.item.uniqueHashKey!==c.FileBrowserItem.create(t[n]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){d.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(n=>{let o=(0,a.position)(n.container);h.intersectRect(o,t)&&i.push(n.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),this.stateManager=i,this.syncMod=!0,this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],h.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],h.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],h.prototype,"onDragLeave",null),h=(0,r.__decorate)([s.component],h)},43809:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(29960),a=n(50911);n(99085);var l=n(26529);class c extends a.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,s.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(l)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],c.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",c)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return s}});var o=n(2748),r=n(26395);function s(t,i,n,s){let a="br"===n.toLowerCase(),{createInside:l}=i,c=l.element(n),u=l.element("br");return a||c.appendChild(u),s&&s.cssText&&c.setAttribute("style",s.cssText),o.Dom.after(t,c),o.Dom.before(a?c:u,t),(0,r.scrollIntoViewIfNeeded)(c,i.editor,i.ed),c}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),c=n(21496),u=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:w}=t.options;return w&&(0,c.size)(w)>0&&Object.keys(w).forEach(m=>{var g,_,C;let k=w[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(k)&&(0,c.size)(k),"Style must be an object"),Object.keys(k).forEach(a=>{let c=i.style.getPropertyValue((0,u.kebabCase)(a)),d=k[a];if(""!==c||null!=d){let u,m;if((u=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,(function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l})(n).appendChild(u),m=(0,h.css)(u,a),r.Dom.safeRemove(u),m===(0,l.normalizeCssValue)(a,d)){if(!c)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let S;_=v,(0,d.assert)((0,a.isString)(k),"Class name must be a string"),S=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(k.toString())?(_=f.UNSET,y||(i.classList.remove(k),0===i.classList.length&&((0,d.attr)(i,"class",null),S(_,i,"class",null)))):(_=f.CHANGE,y||(i.classList.add(k),S(_,i,"class",k))),v=_;break;default:let x;C=v,(0,d.assert)((0,a.isString)(k)||(0,a.isNumber)(k)||(0,a.isBoolean)(k)||null==k,"Attribute value must be a string or number or boolean or null"),x=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===k?(y||(0,d.attr)(i,m,null),C=f.UNSET,y||x(C,i,m,k)):(C=f.CHANGE,y||((0,d.attr)(i,m,k),x(C,i,m,k))),v=C}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},44328:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Sembol"}},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},44450:function(t,i,n){"use strict";function o(t,i,n){return t.dataProvider.fileRemove(t.state.currentPath,i,n).then(n=>{t.status(n||t.i18n('File "%s" was deleted',i),!0)}).catch(t.status)}n.d(i,{deleteFile:function(){return o}})},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},44526:function(t,i,n){"use strict";n.d(i,{resolveBlock:function(){return r}});var o=n(22732);function r(t,{selector:i,index:n,requireExactlyOne:s=!1}={}){let a=null!=i,l=null!=n;if(s&&a===l)throw Error("Either index or selector must be provided, but not both");if(!a&&!l)throw Error("Block identifier is required");if(a){if("string"!=typeof i)throw Error("Selector must be a string");let n=t.editor.querySelector(i);if(!n)throw Error(`No element found matching selector "${i}"`);if(!o.Dom.isElement(n))throw Error(`Selector "${i}" does not point to an element node`);return{element:n,identifier:`with selector "${i}"`}}if("number"!=typeof n)throw Error("Block index must be a number");let c=Array.from(t.editor.children);if(n<0||n>=c.length)throw Error(`Block index ${n} is out of range. Document has ${c.length} blocks`);let u=c[n];if(!o.Dom.isElement(u))throw Error(`Block at index ${n} is not a valid element`);return{element:u,identifier:`at index ${n}`}}},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},44730:function(t,i,n){"use strict";n.r(i),i.default={symbols:"caract\xe8re"}},44850:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},44864:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(53586);var s=n(83725),a=n(64199),l=n(82758),c=n(65478),u=n(2748),d=n(21537),h=n(50911),p=n(56917),f=n(2692);class m extends h.Plugin{get list(){return new s.Autocomplete(this.jodit)}get popup(){let t=new p.Popup(this.jodit);return t.setMod("padding",!1),t.setContent(this.list.container),this.jodit.e.on(t,"beforeClose",()=>{this.list.currentSelection=0}),t}afterInit(t){t.e.on("select.autocomplete",i=>{let n=i.value;(0,d.isFunction)(i.insertValueRenderer)&&(n=i.insertValueRenderer(i)),u.Dom.isNode(n)||(n=t.createInside.fromHTML(n)),(0,a.replaceTextLeftOfCursorAfterSpace)(t.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(t){this.sources.push(t)}unregisterAutocompleteSource(t){let i=this.sources.indexOf(t);-1!==i&&this.sources.splice(i,1)}static isControlKey(t){return t===l.KEY_DOWN||t===l.KEY_UP||t===l.KEY_ENTER||t===l.KEY_TAB}async onKeyDown(t){var i,n;if(t.key===l.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:o}=this.j;if(m.isControlKey(t.key)||!o.isInsideArea||!o.isCollapsed)return;let r=(null==(i=this.j.s.sel)?void 0:i.rangeCount)?null==(n=this.j.s.sel)?void 0:n.getRangeAt(0):null,s=r&&(0,a.getTextLeftOfCursor)(r).split(" ").pop();if(s&&(0,d.trim)(s).length){let t=await this.onAutoComplete(s);if(t.length)return this.openPopup(t)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(t){if(this.popup.isOpened&&m.isControlKey(t.key)){switch(t.key){case l.KEY_DOWN:this.list.selectNext();break;case l.KEY_UP:this.list.selectPrevious();break;case l.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(t.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(t){let i=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async n=>{i.push(...await this.resolveFeed(t,n))})),i}async resolveFeed(t,i,n){let o;if((0,d.isPromise)(i)&&(i=await i),(0,d.isFunction)(i))o=await i(t);else if((0,d.isArray)(i)){let n=i,{isMatchedQuery:r}=this.j.o.autocomplete;o=n.filter(i=>(0,d.isString)(i)?r(t,i):r(t,i.value)).map(t=>(0,d.isString)(t)?{title:t,value:t}:t)}else o=await this.resolveFeed(t,i.feed,i);if(this.j.isDestructed)return[];if(o&&(0,d.isArray)(o)){let{itemRenderer:t,insertValueRenderer:i,maxItems:r}=this.j.o.autocomplete;return(o=o.map(o=>{var r,s;return{itemRenderer:null!=(r=null==n?void 0:n.itemRenderer)?r:t,insertValueRenderer:null!=(s=null==n?void 0:n.insertValueRenderer)?s:i,...o}})).slice(0,r)}return[]}openPopup(t){this.list.build(t),this.popup.open(()=>{let{j:t}=this,i=t.s.range.getBoundingClientRect(),n={left:i.left,top:i.top,height:i.height,width:i.width};if(t.o.iframe&&t.iframe){let i=(0,d.position)(t.iframe,t);n.top+=i.top,n.left+=i.left}return n})}beforeDestruct(t){t.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!f.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(m,"requires",["enter","license"]),(0,r.__decorate)([c.cache],m.prototype,"list",null),(0,r.__decorate)([c.cache],m.prototype,"popup",null),(0,r.__decorate)([c.autobind],m.prototype,"registerAutocompleteSource",null),(0,r.__decorate)([c.autobind],m.prototype,"unregisterAutocompleteSource",null),(0,r.__decorate)([(0,c.debounce)()],m.prototype,"onKeyDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onKeyControlDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onEnter",null),(0,r.__decorate)([c.autobind],m.prototype,"onAutoComplete",null),(0,r.__decorate)([c.autobind],m.prototype,"resolveFeed",null),f.JoditPro.plugins.add("autocomplete",m)},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i));i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),u=n(38837),d=n(67510),h=n(41409);class p extends d.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){if(t.key===a.KEY_ESC){var i;null==(i=this.popup)||i.close()}}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new d.Popup(t);this.popup=n,this.trigger=(0,d.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,u.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{var t,i;null==(t=(i=this.state).onChange)||t.call(i,this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},45198:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return a.a},de:function(){return c.a},es:function(){return d.a},fa:function(){return p.a},fr:function(){return m.a},he:function(){return b.a},hu:function(){return y.a},id:function(){return _.a},it:function(){return k.a},ja:function(){return x.a},ko:function(){return E.a},nl:function(){return A.a},pl:function(){return L.a},pt_br:function(){return P.a},ru:function(){return M.a},tr:function(){return B.a},zh_cn:function(){return F.a},zh_tw:function(){return H.a}});var o=n(7085),r=n.n(o),s=n(42350),a=n.n(s),l=n(53189),c=n.n(l),u=n(48154),d=n.n(u),h=n(59551),p=n.n(h),f=n(41858),m=n.n(f),g=n(78777),b=n.n(g),v=n(25321),y=n.n(v),w=n(27847),_=n.n(w),C=n(23287),k=n.n(C),S=n(73035),x=n.n(S),I=n(97028),E=n.n(I),T=n(26436),A=n.n(T),j=n(6602),L=n.n(j),D=n(86401),P=n.n(D),R=n(54023),M=n.n(R),z=n(8432),B=n.n(z),N=n(58366),F=n.n(N),O=n(46954),H=n.n(O)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},sanitizeAttributes:function(){return c.sanitizeAttributes},tryRemoveNode:function(){return u.tryRemoveNode}});var o=n(82558),r=n(39433),s=n(53392),a=n(25813),l=n(80973),c=n(384),u=n(28800)},45575:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45632:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(82158);var s=n(82520),a=n(35987),l=n(65478),c=n(2748),u=n(50911),d=n(62843),h=n(78584),p=n(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",()=>{var t;return null==(t=this.__dialog)?void 0:t.isOpened})}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new a.UIButtonGenerator(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!c.Dom.isTag(t,new Set(["button","a"]))&&(t=void 0);let i=this.__ui,n=this.__dialog;n.isOpened?n.close():(t&&s.UIGButton.extractStyle(i.state,t),i.target=t,i.update(),n.setFooter([(0,d.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,d.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{t||(t=this.j.createInside.element(i.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),s.UIGButton.applyStyle(i.state,t),t.className=i.state.className||"",this.jodit.e.fire("synchro"),n.close()})]).open())}onDblClick(t){c.Dom.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"form",name:"buttonGenerator"}]),(0,o._)(this,"__dialog",void 0),(0,o._)(this,"__ui",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([l.autobind],f.prototype,"toggleButtonGenerator",null),(0,r.__decorate)([(0,l.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("button-generator",f)},45927:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(84767),a=n(41180),l=n(20356);n(80792);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends l.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){let{j:t}=this;if(t.o.inline)return;let{height:i}=t.o;if(t.o.saveHeightInStorage&&"auto"!==i){let n=t.storage.get("height");n&&(i=n)}(0,a.css)(t.editor,{minHeight:"100%"}),(0,a.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(i),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minHeight:i,maxHeight:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&n<t&&(t=n)}(0,a.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__setWidth(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minWidth:i,maxWidth:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&t>n&&(t=n)}(0,a.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__getNotWorkHeight(){var t,i;return((null==(t=this.j.toolbarContainer)?void 0:t.offsetHeight)||0)+((null==(i=this.j.statusbar)?void 0:i.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:i}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let n=((0,a.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,s.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,a.css)(t,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,s.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(i=>{i&&(0,a.css)(i,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,a.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,s.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:r}=this.j.container;(t!==o||i!==r)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}c([(0,o.throttle)()],u.prototype,"__initialize",null),c([o.autobind],u.prototype,"__setHeight",null),c([o.autobind],u.prototype,"__setWidth",null),c([o.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=c(n(0)),l=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function w(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function _(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var C=function(){function t(i,n){if(u(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=w(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=w(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=w(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=w(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=w(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=_(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=_(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var w=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=w[0],this.G=w[1],this.B=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var _=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=_[0],this.G=_[1],this.B=_[2];var C=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var k=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var S=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=S[0],this.S=S[1],this.L=S[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],c=o[2],u=r(this.slBarHelper.findColor(a,l,c),2),d=u[0],h=u[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),k=function(){function t(i){u(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function S(t,i){var n=new C(t,i),o={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,l={},c={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var u=r(e,3),d=u[0],h=u[1],p=u[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],w=v[1],_=v[2],S=[(0,s.limit)(y,0,360),(0,s.limit)(w,0,100),(0,s.limit)(_,0,100)];y=S[0],w=S[1],_=S[2],n.onValueChanged(b,[y,w,_,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var x=r(e,4),I=x[0],E=x[1],T=x[2],A=x[3],j=[(0,s.limit)(I,0,255),(0,s.limit)(E,0,255),(0,s.limit)(T,0,255),(0,s.limit)(A,0,1)];I=j[0],E=j[1],T=j[2],A=j[3],n.onValueChanged(g,[I,E,T,A])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var L=r(e,4),D=L[0],P=L[1],R=L[2],M=L[3],z=[(0,s.limit)(D,0,360),(0,s.limit)(P,0,100),(0,s.limit)(R,0,100),(0,s.limit)(M,0,1)];D=z[0],P=z[1],R=z[2],M=z[3],n.onValueChanged(b,[D,P,R,M])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var B=[n.R,n.G,n.B,n.A],N=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,B);(l=(0,s.parseColor)(B,l)).toString=function(){return N},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([c].concat(i),c)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([c].concat(i),c)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([c].concat(i),c)},n.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=n(5).toString(),I=document.createElement("style");I.setAttribute("type","text/css"),I.setAttribute("data-source","a-color-picker"),I.innerHTML=x,document.querySelector("head").appendChild(I)}i.createPicker=S,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=S(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function u(t,i){return null==t?i:t}function d(t,i,n){var o=[c(t,0,255),c(i,0,255),c(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[c(t,0,360)/360,c(i,0,100)/100,c(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},u=n<.5?n*(1+i):n+i-n*i,d=2*n-u;o=l(d,u,t+1/3),r=l(d,u,t),s=l(d,u,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,u=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=u>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*u].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],c=n[7],u=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],c=n[6],u=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,255),c(s,0,255),c(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(u(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function w(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,360),c(s,0,100),c(a,0,100)]:void 0}}function _(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(u(t[3],1),0,1)];var i=_(t);return i&&3===i.length&&i.push(1),i}function k(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,u=s-a;if(r=0===s?0:u/s,s==a)l=0;else{switch(s){case t:l=(i-n)/u+6*(i<n);break;case i:l=(n-t)/u+2;break;case n:l=(t-i)/u+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=w,i.cssHslaToHsla=_,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:w(t)},i.parseColorToHsla=C,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=C(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=k(n,i),t},i||{}):k(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=c,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=u},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(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("\n")}return[n].join("\n")}(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\xednea"}},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){return!!t.o.speechRecognize.api},isActive(t,i){let n=(0,a.dataBind)(t,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled(t){return!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(){var t;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:i}=this,n=i.ed.createNodeIterator(i.editor,NodeFilter.SHOW_TEXT);null==(t=this.abortController)||t.abort(),this.workLoop(n)}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){var r;let{j:s}=this,{range:l}=s.s,c=l.startContainer===t,u=l.startOffset,d=null!=(r=n.index)?r:0;t.nodeValue=i.substring(0,d);let h=i.substring(d+n[0].length);if(h.length){let i=s.createInside.text(h);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),c&&this.restoreCursorPosition(u,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=>{var i;let n=(0,l.attr)(t,"dataHighlightSchema");if(!n)return;let o=RegExp(n),r=null!=(i=t.innerText)?i:"";(!o.test(r)||r.replace(o,"").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=>{var o;return`${t} ${i}{
|
|
220
|
+
</div>`}reconcile(t){let i=this.elements.findIndex((i,n)=>!t[n]||i.item.uniqueHashKey!==c.FileBrowserItem.create(t[n]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){d.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(n=>{let o=(0,a.position)(n.container);h.intersectRect(o,t)&&i.push(n.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),this.stateManager=i,this.syncMod=!0,this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],h.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],h.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],h.prototype,"onDragLeave",null),h=(0,r.__decorate)([s.component],h)},43809:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(29960),a=n(50911);n(99085);var l=n(26529);class c extends a.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,s.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(l)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],c.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",c)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return s}});var o=n(2748),r=n(26395);function s(t,i,n,s){let a="br"===n.toLowerCase(),{createInside:l}=i,c=l.element(n),u=l.element("br");return a||c.appendChild(u),s&&s.cssText&&c.setAttribute("style",s.cssText),o.Dom.after(t,c),o.Dom.before(a?c:u,t),(0,r.scrollIntoViewIfNeeded)(c,i.editor,i.ed),c}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),c=n(21496),u=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:w}=t.options;return w&&(0,c.size)(w)>0&&Object.keys(w).forEach(m=>{var g,_,C;let k=w[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(k)&&(0,c.size)(k),"Style must be an object"),Object.keys(k).forEach(a=>{let c=i.style.getPropertyValue((0,u.kebabCase)(a)),d=k[a];if(""!==c||null!=d){let u,m;if((u=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,(function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l})(n).appendChild(u),m=(0,h.css)(u,a),r.Dom.safeRemove(u),m===(0,l.normalizeCssValue)(a,d)){if(!c)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let S;_=v,(0,d.assert)((0,a.isString)(k),"Class name must be a string"),S=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(k.toString())?(_=f.UNSET,y||(i.classList.remove(k),0===i.classList.length&&((0,d.attr)(i,"class",null),S(_,i,"class",null)))):(_=f.CHANGE,y||(i.classList.add(k),S(_,i,"class",k))),v=_;break;default:let x;C=v,(0,d.assert)((0,a.isString)(k)||(0,a.isNumber)(k)||(0,a.isBoolean)(k)||null==k,"Attribute value must be a string or number or boolean or null"),x=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===k?(y||(0,d.attr)(i,m,null),C=f.UNSET,y||x(C,i,m,k)):(C=f.CHANGE,y||((0,d.attr)(i,m,k),x(C,i,m,k))),v=C}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},44328:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Sembol"}},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},44450:function(t,i,n){"use strict";function o(t,i,n){return t.dataProvider.fileRemove(t.state.currentPath,i,n).then(n=>{t.status(n||t.i18n('File "%s" was deleted',i),!0)}).catch(t.status)}n.d(i,{deleteFile:function(){return o}})},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},44526:function(t,i,n){"use strict";n.d(i,{resolveBlock:function(){return r}});var o=n(22732);function r(t,{selector:i,index:n,requireExactlyOne:s=!1}={}){let a=null!=i,l=null!=n;if(s&&a===l)throw Error("Either index or selector must be provided, but not both");if(!a&&!l)throw Error("Block identifier is required");if(a){if("string"!=typeof i)throw Error("Selector must be a string");let n=t.editor.querySelector(i);if(!n)throw Error(`No element found matching selector "${i}"`);if(!o.Dom.isElement(n))throw Error(`Selector "${i}" does not point to an element node`);return{element:n,identifier:`with selector "${i}"`}}if("number"!=typeof n)throw Error("Block index must be a number");let c=Array.from(t.editor.children);if(n<0||n>=c.length)throw Error(`Block index ${n} is out of range. Document has ${c.length} blocks`);let u=c[n];if(!o.Dom.isElement(u))throw Error(`Block at index ${n} is not a valid element`);return{element:u,identifier:`at index ${n}`}}},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},44730:function(t,i,n){"use strict";n.r(i),i.default={symbols:"caract\xe8re"}},44850:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},44864:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(53586);var s=n(83725),a=n(64199),l=n(82758),c=n(65478),u=n(2748),d=n(21537),h=n(50911),p=n(56917),f=n(2692);class m extends h.Plugin{get list(){return new s.Autocomplete(this.jodit)}get popup(){let t=new p.Popup(this.jodit);return t.setMod("padding",!1),t.setContent(this.list.container),this.jodit.e.on(t,"beforeClose",()=>{this.list.currentSelection=0}),t}afterInit(t){t.e.on("select.autocomplete",i=>{let n=i.value;(0,d.isFunction)(i.insertValueRenderer)&&(n=i.insertValueRenderer(i)),u.Dom.isNode(n)||(n=t.createInside.fromHTML(n)),(0,a.replaceTextLeftOfCursorAfterSpace)(t.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(t){this.sources.push(t)}unregisterAutocompleteSource(t){let i=this.sources.indexOf(t);-1!==i&&this.sources.splice(i,1)}static isControlKey(t){return t===l.KEY_DOWN||t===l.KEY_UP||t===l.KEY_ENTER||t===l.KEY_TAB}async onKeyDown(t){var i,n;if(t.key===l.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:o}=this.j;if(m.isControlKey(t.key)||!o.isInsideArea||!o.isCollapsed)return;let r=(null==(i=this.j.s.sel)?void 0:i.rangeCount)?null==(n=this.j.s.sel)?void 0:n.getRangeAt(0):null,s=r&&(0,a.getTextLeftOfCursor)(r).split(" ").pop();if(s&&(0,d.trim)(s).length){let t=await this.onAutoComplete(s);if(t.length)return this.openPopup(t)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(t){if(this.popup.isOpened&&m.isControlKey(t.key)){switch(t.key){case l.KEY_DOWN:this.list.selectNext();break;case l.KEY_UP:this.list.selectPrevious();break;case l.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(t.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(t){let i=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async n=>{i.push(...await this.resolveFeed(t,n))})),i}async resolveFeed(t,i,n){let o;if((0,d.isPromise)(i)&&(i=await i),(0,d.isFunction)(i))o=await i(t);else if((0,d.isArray)(i)){let n=i,{isMatchedQuery:r}=this.j.o.autocomplete;o=n.filter(i=>(0,d.isString)(i)?r(t,i):r(t,i.value)).map(t=>(0,d.isString)(t)?{title:t,value:t}:t)}else o=await this.resolveFeed(t,i.feed,i);if(this.j.isDestructed)return[];if(o&&(0,d.isArray)(o)){let{itemRenderer:t,insertValueRenderer:i,maxItems:r}=this.j.o.autocomplete;return(o=o.map(o=>{var r,s;return{itemRenderer:null!=(r=null==n?void 0:n.itemRenderer)?r:t,insertValueRenderer:null!=(s=null==n?void 0:n.insertValueRenderer)?s:i,...o}})).slice(0,r)}return[]}openPopup(t){this.list.build(t),this.popup.open(()=>{let{j:t}=this,i=t.s.range.getBoundingClientRect(),n={left:i.left,top:i.top,height:i.height,width:i.width};if(t.o.iframe&&t.iframe){let i=(0,d.position)(t.iframe,t);n.top+=i.top,n.left+=i.left}return n})}beforeDestruct(t){t.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!f.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(m,"requires",["enter","license"]),(0,r.__decorate)([c.cache],m.prototype,"list",null),(0,r.__decorate)([c.cache],m.prototype,"popup",null),(0,r.__decorate)([c.autobind],m.prototype,"registerAutocompleteSource",null),(0,r.__decorate)([c.autobind],m.prototype,"unregisterAutocompleteSource",null),(0,r.__decorate)([(0,c.debounce)()],m.prototype,"onKeyDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onKeyControlDown",null),(0,r.__decorate)([c.autobind],m.prototype,"onEnter",null),(0,r.__decorate)([c.autobind],m.prototype,"onAutoComplete",null),(0,r.__decorate)([c.autobind],m.prototype,"resolveFeed",null),f.JoditPro.plugins.add("autocomplete",m)},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i));i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),u=n(38837),d=n(67510),h=n(41409);class p extends d.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){if(t.key===a.KEY_ESC){var i;null==(i=this.popup)||i.close()}}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new d.Popup(t);this.popup=n,this.trigger=(0,d.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,u.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{var t,i;null==(t=(i=this.state).onChange)||t.call(i,this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},45198:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return a.a},de:function(){return c.a},es:function(){return d.a},fa:function(){return p.a},fr:function(){return m.a},he:function(){return b.a},hu:function(){return y.a},id:function(){return _.a},it:function(){return k.a},ja:function(){return x.a},ko:function(){return E.a},nl:function(){return A.a},pl:function(){return L.a},pt_br:function(){return P.a},ru:function(){return M.a},tr:function(){return B.a},zh_cn:function(){return F.a},zh_tw:function(){return H.a}});var o=n(7085),r=n.n(o),s=n(42350),a=n.n(s),l=n(53189),c=n.n(l),u=n(48154),d=n.n(u),h=n(59551),p=n.n(h),f=n(41858),m=n.n(f),g=n(78777),b=n.n(g),v=n(25321),y=n.n(v),w=n(27847),_=n.n(w),C=n(23287),k=n.n(C),S=n(73035),x=n.n(S),I=n(97028),E=n.n(I),T=n(26436),A=n.n(T),j=n(6602),L=n.n(j),D=n(86401),P=n.n(D),R=n(54023),M=n.n(R),z=n(8432),B=n.n(z),N=n(58366),F=n.n(N),O=n(46954),H=n.n(O)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},sanitizeAttributes:function(){return c.sanitizeAttributes},tryRemoveNode:function(){return u.tryRemoveNode}});var o=n(82558),r=n(39433),s=n(53392),a=n(25813),l=n(80973),c=n(384),u=n(28800)},45575:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45632:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(82158);var s=n(82520),a=n(35987),l=n(65478),c=n(2748),u=n(50911),d=n(62843),h=n(78584),p=n(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",()=>{var t;return null==(t=this.__dialog)?void 0:t.isOpened})}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new a.UIButtonGenerator(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!c.Dom.isTag(t,new Set(["button","a"]))&&(t=void 0);let i=this.__ui,n=this.__dialog;n.isOpened?n.close():(t&&s.UIGButton.extractStyle(i.state,t),i.target=t,i.update(),n.setFooter([(0,d.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,d.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{t||(t=this.j.createInside.element(i.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),s.UIGButton.applyStyle(i.state,t),t.className=i.state.className||"",this.jodit.e.fire("synchro"),n.close()})]).open())}onDblClick(t){c.Dom.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"form",name:"buttonGenerator"}]),(0,o._)(this,"__dialog",void 0),(0,o._)(this,"__ui",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([l.autobind],f.prototype,"toggleButtonGenerator",null),(0,r.__decorate)([(0,l.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("button-generator",f)},45927:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(84767),a=n(41180),l=n(20356);n(80792);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends l.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:t}=this;if(t.o.inline)return;let{height:i}=t.o;if(t.o.saveHeightInStorage&&"auto"!==i){let n=t.storage.get("height");n&&(i=n)}(0,a.css)(t.editor,{minHeight:"100%"}),(0,a.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(i),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minHeight:i,maxHeight:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&n<t&&(t=n)}(0,a.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__setWidth(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minWidth:i,maxWidth:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&t>n&&(t=n)}(0,a.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__getNotWorkHeight(){var t,i;return((null==(t=this.j.toolbarContainer)?void 0:t.offsetHeight)||0)+((null==(i=this.j.statusbar)?void 0:i.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:i}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let n=((0,a.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,s.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,a.css)(t,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,s.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(i=>{i&&(0,a.css)(i,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,a.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,s.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:r}=this.j.container;(t!==o||i!==r)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}c([(0,o.throttle)()],u.prototype,"__initialize",null),c([o.autobind],u.prototype,"__setHeight",null),c([o.autobind],u.prototype,"__setWidth",null),c([o.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=c(n(0)),l=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function w(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function _(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var C=function(){function t(i,n){if(u(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=w(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=w(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=w(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=w(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=w(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=_(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=_(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var w=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=w[0],this.G=w[1],this.B=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var _=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=_[0],this.G=_[1],this.B=_[2];var C=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var k=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var S=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=S[0],this.S=S[1],this.L=S[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],c=o[2],u=r(this.slBarHelper.findColor(a,l,c),2),d=u[0],h=u[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),k=function(){function t(i){u(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function S(t,i){var n=new C(t,i),o={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,l={},c={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var u=r(e,3),d=u[0],h=u[1],p=u[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],w=v[1],_=v[2],S=[(0,s.limit)(y,0,360),(0,s.limit)(w,0,100),(0,s.limit)(_,0,100)];y=S[0],w=S[1],_=S[2],n.onValueChanged(b,[y,w,_,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var x=r(e,4),I=x[0],E=x[1],T=x[2],A=x[3],j=[(0,s.limit)(I,0,255),(0,s.limit)(E,0,255),(0,s.limit)(T,0,255),(0,s.limit)(A,0,1)];I=j[0],E=j[1],T=j[2],A=j[3],n.onValueChanged(g,[I,E,T,A])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var L=r(e,4),D=L[0],P=L[1],R=L[2],M=L[3],z=[(0,s.limit)(D,0,360),(0,s.limit)(P,0,100),(0,s.limit)(R,0,100),(0,s.limit)(M,0,1)];D=z[0],P=z[1],R=z[2],M=z[3],n.onValueChanged(b,[D,P,R,M])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var B=[n.R,n.G,n.B,n.A],N=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,B);(l=(0,s.parseColor)(B,l)).toString=function(){return N},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([c].concat(i),c)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([c].concat(i),c)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([c].concat(i),c)},n.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=n(5).toString(),I=document.createElement("style");I.setAttribute("type","text/css"),I.setAttribute("data-source","a-color-picker"),I.innerHTML=x,document.querySelector("head").appendChild(I)}i.createPicker=S,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=S(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function u(t,i){return null==t?i:t}function d(t,i,n){var o=[c(t,0,255),c(i,0,255),c(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[c(t,0,360)/360,c(i,0,100)/100,c(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},u=n<.5?n*(1+i):n+i-n*i,d=2*n-u;o=l(d,u,t+1/3),r=l(d,u,t),s=l(d,u,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,u=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=u>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*u].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],c=n[7],u=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],c=n[6],u=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,255),c(s,0,255),c(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(u(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function w(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,360),c(s,0,100),c(a,0,100)]:void 0}}function _(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(u(t[3],1),0,1)];var i=_(t);return i&&3===i.length&&i.push(1),i}function k(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,u=s-a;if(r=0===s?0:u/s,s==a)l=0;else{switch(s){case t:l=(i-n)/u+6*(i<n);break;case i:l=(n-t)/u+2;break;case n:l=(t-i)/u+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=w,i.cssHslaToHsla=_,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:w(t)},i.parseColorToHsla=C,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=C(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=k(n,i),t},i||{}):k(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=c,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=u},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(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("\n")}return[n].join("\n")}(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\xednea"}},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){return!!t.o.speechRecognize.api},isActive(t,i){let n=(0,a.dataBind)(t,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled(t){return!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(){var t;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:i}=this,n=i.ed.createNodeIterator(i.editor,NodeFilter.SHOW_TEXT);null==(t=this.abortController)||t.abort(),this.workLoop(n)}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){var r;let{j:s}=this,{range:l}=s.s,c=l.startContainer===t,u=l.startOffset,d=null!=(r=n.index)?r:0;t.nodeValue=i.substring(0,d);let h=i.substring(d+n[0].length);if(h.length){let i=s.createInside.text(h);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),c&&this.restoreCursorPosition(u,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=>{var i;let n=(0,l.attr)(t,"dataHighlightSchema");if(!n)return;let o=RegExp(n),r=null!=(i=t.innerText)?i:"";(!o.test(r)||r.replace(o,"").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=>{var o;return`${t} ${i}{
|
|
221
221
|
outline: 1px dashed ${n};
|
|
222
222
|
background-image: url("${o='<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>",`data:image/svg+xml;utf8,${escape(o)}`}");
|
|
223
223
|
background-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;
|
|
@@ -277,7 +277,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
277
277
|
data-index-j="${o}"
|
|
278
278
|
role="option"
|
|
279
279
|
tabindex="-1"
|
|
280
|
-
>${t.o.specialCharacters[i]}</a>`);l.push(s),r.appendChild(s),n.appendChild(r)}s.appendChild(n)}let c=this;return t.e.on(l,"focus",function(){n.innerHTML=this.innerHTML}).on(l,"mousedown",function(i){r.Dom.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),(null==i?void 0:i.shiftKey)||t.e.fire(this,"close_dialog"),i&&i.preventDefault(),i&&i.stopImmediatePropagation())}).on(l,"mouseenter",function(){r.Dom.isTag(this,"a")&&this.focus()}).on(l,"keydown",i=>{let n=i.target;if(r.Dom.isTag(n,"a")){let r,s=parseInt((0,a.attr)(n,"-index")||"0",10),u=parseInt((0,a.attr)(n,"data-index-j")||"0",10);switch(i.key){case o.KEY_UP:case o.KEY_DOWN:void 0===l[r=i.key===o.KEY_UP?s-c.__countInRow:s+c.__countInRow]&&(r=i.key===o.KEY_UP?Math.floor(l.length/c.__countInRow)*c.__countInRow+u:u)>l.length-1&&(r-=c.__countInRow),l[r]&&l[r].focus();break;case o.KEY_RIGHT:case o.KEY_LEFT:void 0===l[r=i.key===o.KEY_LEFT?s-1:s+1]&&(r=i.key===o.KEY_LEFT?l.length-1:0),l[r]&&l[r].focus();break;case o.KEY_ENTER:t.e.fire(n,"mousedown"),i.stopImmediatePropagation(),i.preventDefault()}}}),i})}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,s.extendLang)(c)}}s.pluginSystem.add("symbols",u)},59498:function(t,i,n){"use strict";n.d(i,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var o=n(83447),r=n(84272),s=n(42312),a=n(39516)},59526:function(t,i){"use strict";i.default={"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, bes\xf8k v\xe5r nettside:","Buy full version":"Kj\xf8p fullversjon","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett \xa9 XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"\xc5pne i ny fane","Open in fullsize":"\xc5pne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gj\xf8r om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"H\xf8yrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-video","Insert link":"Sett inn lenke","Font size":"Skriftst\xf8rrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"\xd8k innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"h\xf8yre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"H\xf8yre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"\xc5pne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne f\xf8r","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"T\xf8m celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"S\xf8k etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold \xe5 lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gj\xf8r om",table:"tabell",image:"bilde",eraser:"viskel\xe6r",paragraph:"avsnitt",fontsize:"skriftst\xf8rrelse",video:"video",font:"skrift",about:"om redigeringsverkt\xf8yet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full st\xf8rrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"\xc5pne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppf\xf8lging",Unlink:"Fjern lenke",Eye:"Forh\xe5ndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre st\xf8rrelse",Crop:"Beskj\xe6r",Width:"Bredde",Height:"H\xf8yde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Sl\xe5 sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter st\xf8rrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forh\xe5ndsvisning","Line height":"Linjeh\xf8yde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Forel\xf8pige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk p\xe5 Alt for \xe5 endre st\xf8rrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne","Embed code":"Bygge inn kode",Edit:"Rediger",All:"Velg alle","License: %s":"Lisens: %s","You can only edit your own images. Download this image on the host?":"Du kan bare redigere dine egne bilder. Last ned dette bildet p\xe5 verten?","The image has been successfully uploaded to the host!":"Bildet har blitt lastet opp til verten!","There are no files":"Det er ingen filer i denne katalogen",Rename:"Gi nytt navn","Enter new name":"Skriv inn nytt navn",download:"Last ned","Your browser doesn't support direct access to the clipboard.":"Nettleseren din st\xf8tter ikke direkte tilgang til utklippstavlen.",copy:"kopi","Border radius":"Grenseradius",Apply:"Bruk","Please fill out this field":"Vennligst fyll ut dette feltet","Please enter a web address":"Vennligst skriv inn en webadresse",Default:"Standard",Circle:"Sirkel",Dot:"Prikk",Quadrate:"Firkant","Find Previous":"Finn forrige","Find Next":"Finn neste"}},59551:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},60031:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return a}});var o=n(82758),r=n(21537),s=n(23370);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),i=[],n=0;for(let o=0;t>o;o++)n+=this.getLastColumnIndex(o),o>0&&(n+=1),i[o]=n;return i}getRowColumnIndices(t){let i=this.getLastColumnIndices();if(t<=i[0])return{row:0,column:t};let n=1;for(let o=1;o<i.length;o++)t>i[o]&&(n=o+1);let o=t-i[n-1]-1;return{row:n,column:o}}setSelectionRangeIndices(t,i){let n=this.getRowColumnIndices(t),o=this.getRowColumnIndices(i);this.instance.getSelection().setSelectionRange({start:n,end:o})}getIndexByRowColumn(t,i){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+i}init(t){let i=()=>{if(void 0!==this.instance||!this.aceExists())return;let i=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(i);let n=t.ow.ace;this.instance=n.edit(i),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let r=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===o.MODE_WYSIWYG)return;let i=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),i&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()};t.e.on("afterSetMode",()=>{(t.getRealMode()===o.MODE_SOURCE||t.getMode()===o.MODE_SPLIT)&&(this.fromWYSIWYG(),i())}),i(),this.aceExists()||(0,r.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(()=>{t.isInDestruct||i()}).catch(()=>null)}destruct(){var t,i;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(i=null==(t=this.j)?void 0:t.events)||i.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,r.isString)(i)&&(t=i)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let i=this.instance.selection.getCursor(),n=this.instance.session.insert(i,t);this.instance.selection.setRange({start:i,end:n},!1)}setSelectionRange(t,i){this.setSelectionRangeIndices(t,i)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{t.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=t=>{this.j.e.fire("blur",t)},this.proxyOnFocus=t=>{this.j.e.fire("focus",t)},this.proxyOnMouseDown=t=>{this.j.e.fire("mousedown",t)}}}},60062:function(t,i,n){"use strict";n.d(i,{UIBrowserSettings:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(67510);class c extends l.UIGroup{className(){return"UIBrowserSettings"}render(){return`<div>
|
|
280
|
+
>${t.o.specialCharacters[i]}</a>`);l.push(s),r.appendChild(s),n.appendChild(r)}s.appendChild(n)}let c=this;return t.e.on(l,"focus",function(){n.innerHTML=this.innerHTML}).on(l,"mousedown",function(i){r.Dom.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),(null==i?void 0:i.shiftKey)||t.e.fire(this,"close_dialog"),i&&i.preventDefault(),i&&i.stopImmediatePropagation())}).on(l,"mouseenter",function(){r.Dom.isTag(this,"a")&&this.focus()}).on(l,"keydown",i=>{let n=i.target;if(r.Dom.isTag(n,"a")){let r,s=parseInt((0,a.attr)(n,"-index")||"0",10),u=parseInt((0,a.attr)(n,"data-index-j")||"0",10);switch(i.key){case o.KEY_UP:case o.KEY_DOWN:void 0===l[r=i.key===o.KEY_UP?s-c.__countInRow:s+c.__countInRow]&&(r=i.key===o.KEY_UP?Math.floor(l.length/c.__countInRow)*c.__countInRow+u:u)>l.length-1&&(r-=c.__countInRow),l[r]&&l[r].focus();break;case o.KEY_RIGHT:case o.KEY_LEFT:void 0===l[r=i.key===o.KEY_LEFT?s-1:s+1]&&(r=i.key===o.KEY_LEFT?l.length-1:0),l[r]&&l[r].focus();break;case o.KEY_ENTER:t.e.fire(n,"mousedown"),i.stopImmediatePropagation(),i.preventDefault()}}}),i})}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,s.extendLang)(c)}}s.pluginSystem.add("symbols",u)},59498:function(t,i,n){"use strict";n.d(i,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var o=n(83447),r=n(84272),s=n(42312),a=n(39516)},59526:function(t,i){"use strict";i.default={"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, bes\xf8k v\xe5r nettside:","Buy full version":"Kj\xf8p fullversjon","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett \xa9 XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"\xc5pne i ny fane","Open in fullsize":"\xc5pne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gj\xf8r om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"H\xf8yrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-video","Insert link":"Sett inn lenke","Font size":"Skriftst\xf8rrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"\xd8k innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"h\xf8yre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"H\xf8yre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"\xc5pne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne f\xf8r","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"T\xf8m celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"S\xf8k etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold \xe5 lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gj\xf8r om",table:"tabell",image:"bilde",eraser:"viskel\xe6r",paragraph:"avsnitt",fontsize:"skriftst\xf8rrelse",video:"video",font:"skrift",about:"om redigeringsverkt\xf8yet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full st\xf8rrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"\xc5pne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppf\xf8lging",Unlink:"Fjern lenke",Eye:"Forh\xe5ndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre st\xf8rrelse",Crop:"Beskj\xe6r",Width:"Bredde",Height:"H\xf8yde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Sl\xe5 sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter st\xf8rrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forh\xe5ndsvisning","Line height":"Linjeh\xf8yde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Forel\xf8pige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk p\xe5 Alt for \xe5 endre st\xf8rrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne","Embed code":"Bygge inn kode",Edit:"Rediger",All:"Velg alle","License: %s":"Lisens: %s","You can only edit your own images. Download this image on the host?":"Du kan bare redigere dine egne bilder. Last ned dette bildet p\xe5 verten?","The image has been successfully uploaded to the host!":"Bildet har blitt lastet opp til verten!","There are no files":"Det er ingen filer i denne katalogen",Rename:"Gi nytt navn","Enter new name":"Skriv inn nytt navn",download:"Last ned","Your browser doesn't support direct access to the clipboard.":"Nettleseren din st\xf8tter ikke direkte tilgang til utklippstavlen.",copy:"kopi","Border radius":"Grenseradius",Apply:"Bruk","Please fill out this field":"Vennligst fyll ut dette feltet","Please enter a web address":"Vennligst skriv inn en webadresse",Default:"Standard",Circle:"Sirkel",Dot:"Prikk",Quadrate:"Firkant","Find Previous":"Finn forrige","Find Next":"Finn neste"}},59551:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},60031:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return a}});var o=n(82758),r=n(21537),s=n(23370);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),i=[],n=0;for(let o=0;t>o;o++)n+=this.getLastColumnIndex(o),o>0&&(n+=1),i[o]=n;return i}getRowColumnIndices(t){let i=this.getLastColumnIndices();if(t<=i[0])return{row:0,column:t};let n=1;for(let o=1;o<i.length;o++)t>i[o]&&(n=o+1);let o=t-i[n-1]-1;return{row:n,column:o}}setSelectionRangeIndices(t,i){let n=this.getRowColumnIndices(t),o=this.getRowColumnIndices(i);this.instance.getSelection().setSelectionRange({start:n,end:o})}getIndexByRowColumn(t,i){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+i}init(t){let i=()=>{if(void 0!==this.instance||!this.aceExists())return;let i=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(i);let n=t.ow.ace;this.instance=n.edit(i),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let r=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===o.MODE_WYSIWYG)return;let i=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),i&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},n=()=>{t.isInDestruct||t.getRealMode()!==o.MODE_SOURCE&&t.getMode()!==o.MODE_SPLIT||(this.fromWYSIWYG(),i())};t.e.on("afterSetMode",n),n(),this.aceExists()||(0,r.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(n).catch(()=>null)}destruct(){var t,i;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(i=null==(t=this.j)?void 0:t.events)||i.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,r.isString)(i)&&(t=i)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let i=this.instance.selection.getCursor(),n=this.instance.session.insert(i,t);this.instance.selection.setRange({start:i,end:n},!1)}setSelectionRange(t,i){this.setSelectionRangeIndices(t,i)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{t.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=t=>{this.j.e.fire("blur",t)},this.proxyOnFocus=t=>{this.j.e.fire("focus",t)},this.proxyOnMouseDown=t=>{this.j.e.fire("mousedown",t)}}}},60062:function(t,i,n){"use strict";n.d(i,{UIBrowserSettings:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(67510);class c extends l.UIGroup{className(){return"UIBrowserSettings"}render(){return`<div>
|
|
281
281
|
<div class="${this.getFullElName("close")}">${l.Icon.get("cancel")}</div>
|
|
282
282
|
<div class="${this.getFullElName("title")}">~Settings~</div>
|
|
283
283
|
<div class="${this.getFullElName("options")}"></div>
|
|
@@ -562,7 +562,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error
|
|
|
562
562
|
<div class='&__wrapper'>
|
|
563
563
|
<button class='&__button'>css</button>
|
|
564
564
|
</div>
|
|
565
|
-
</div>`}static extractStyle(t,i){var n,o,r,s;let a=(null==(s=i.ownerDocument.defaultView)?void 0:s.getComputedStyle(i))||{},l=(t,i,n,o)=>{let r=a[n];return!r||["none","inherit","initial","unset"].includes(r)?{[n]:!1}:(r.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[o]=n}),i[n]=!0,i)};Object.assign(t,{text:i.innerText,className:i.className,href:i.getAttribute("href")||"",...(()=>{var t,i;let n={solid:!0,bgStart:null!=(t=a.backgroundColor)?t:"#44c767",bgEnd:null!=(i=a.backgroundColor)?i:"#44c767"},o=a.backgroundImage;if(o&&/linear-gradient/.test(o)){let t=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(o);t&&(n.solid=!1,n.bgStart=t[1]||n.bgStart,n.bgEnd=t[2]||"#5cbf2a")}return n})(),borderColor:null!=(n=null==a?void 0:a.borderColor)?n:"#18ab29",borderRadius:null!=(o=null==a?void 0:a.borderRadius)?o:0,borderSize:null!=(r=null==a?void 0:a.borderWidth)?r:1,...l(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize,fontWeight:"bold"===a.fontWeight,fontItalic:"italic"===a.fontStyle,paddingX:a.paddingLeft,paddingY:a.paddingTop,...l(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}constructor(t,i){super(t),(0,o._)(this,"style",void 0),this.style=i,this.__updateStyles()}}(0,r.__decorate)([(0,s.watch)("style")],d.prototype,"__updateStyles",null),d=(0,r.__decorate)([s.component],d)},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){if(r&&o.Dom.isElement(i)&&!0!==r[i.nodeName]){let t=i.attributes;if(t&&t.length){let o=[];for(let n=0;n<t.length;n+=1){let s=r[i.nodeName][t[n].name];s&&(!0===s||s===t[n].value)||o.push(t[n].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},82749:function(t,i,n){"use strict";function o(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}n.d(i,{_:function(){return o}})},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return S},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return x},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ec},KEY_ALT:function(){return M},KEY_BACKSPACE:function(){return L},KEY_DELETE:function(){return H},KEY_DOWN:function(){return F},KEY_ENTER:function(){return P},KEY_ESC:function(){return R},KEY_F3:function(){return U},KEY_LEFT:function(){return z},KEY_META:function(){return j},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return O},KEY_TAB:function(){return D},KEY_UP:function(){return B},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return _},SPACE_REG_EXP_START:function(){return w},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return k},globalWindow:function(){return C},lang:function(){return eg}});let o="4.8.4",r="es2018",s=!0,a=!1,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m="\xa0",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,k="u">typeof document?document:void 0,S=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,x=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),A=new Set(E),j="Meta",L="Backspace",D="Tab",P="Enter",R="Escape",M="Alt",z="ArrowLeft",B="ArrowUp",N="ArrowRight",F="ArrowDown",O="Space",H="Delete",U="F3",q=5,V=10,W=[j,L,H,B,F,N,z,P,R,U,D],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),ec={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=k.currentScript;if(t)return eu(t.src);let i=k.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(C.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==i?void 0: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(null==t?void 0:t.value)||0,parseFloat(null==i?void 0: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){var n;super(t),(0,o._)(this,"state",void 0),this.state=i;const[r,s]=i.size,[a,c]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:s,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:a,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:c,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:null!=(n=i.layer)?n:"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 \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права \xa9 XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"}},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let c=a.fakes(),u=t.s.wrapInTagGen(c),d=u.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=u.next()}a.restoreFakes(c)}},83671:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(50911),c=n(80870),u=n(21491);n(86012);class d extends l.Plugin{afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",()=>{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.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),r.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(t,i)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(i.clientX,i.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?r.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,i)=>{this.j.s.focus();let n=(0,a.attr)(i.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch(t){}return this.j.s.select(t),!1},this.tpl=(t,i,n,o)=>{let r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${i}" title="${o}" tabindex="-1"'>${(0,a.trim)(n)}</a></span>`),s=r.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),t){let i,n,o;r.Dom.up(t,t=>{t&&this.j.editor!==t&&!r.Dom.isText(t)&&!r.Dom.isComment(t)&&(i=t.nodeName.toLowerCase(),n=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,n,i,this.j.i18n("Select %s",i)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}}s.pluginSystem.add("xpath",d)},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},83725:function(t,i,n){"use strict";n.d(i,{Autocomplete:function(){return u}});var o=n(82749),r=n(31635),s=n(31356),a=n(35934),l=n(65478),c=n(62405);class u extends c.UIGroup{className(){return"Autocomplete"}onChangeSelection(){var t,i;this.elements.forEach(t=>t.setMod("active",!1)),null==(t=this.elements[this.currentSelection])||t.setMod("active",!0),null==(i=this.elements[this.currentSelection])||i.container.scrollIntoView(!1)}build(t){var i;let n=null==(i=this.elements[this.currentSelection])?void 0:i.item.value,o=t=>t.value,r=s.ListReconciler.reconcile(this.__previousList,t,{getId:o}),l=new Set;r.toRemove.forEach(t=>{let i=o(t);if(l.has(i))return;l.add(i);let n=this.itemsMap.get(i);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(t.value))}),r.toCreate.forEach(i=>{let n=o(i);if(l.has(n))return;l.add(n);let r=new a.AutocompleteItem(this.jodit,i,i=>{this.currentSelection=t.findIndex(t=>o(t)===i),this.select()});this.itemsMap.set(n,r);let s=t.indexOf(i);this.append(r,s)}),r.toUpdate.forEach(({newItem:t,index:i})=>{let n=o(t);if(l.has(n))return;l.add(n);let r=this.itemsMap.get(n);r&&(r.item=t,this.elements.indexOf(r)!==i&&i<this.elements.length&&(this.remove(r),this.append(r,i)))});let c=this.currentSelection;this.currentSelection=Math.max(0,t.findIndex(t=>o(t)===n)),c===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){return"u">typeof Prism?Prism.highlight(t,Prism.languages[i]||Prism.languages.plain,i):(0,a.htmlspecialchars)(t)},isLangLoaded(t){return"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){return 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\xe9taill\xe9e \xe0 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\xe8te","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright \xa9 XDSoft.net - Chupurnov Valeriy. Tous droits r\xe9serv\xe9s.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'\xe9diteur 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\xe9faire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonn\xe9e","Insert Ordered List":"Liste ordonn\xe9e","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner \xe0 gauche ","Align Right":"Aligner \xe0 droite","Insert Horizontal Line":"Ins\xe9rer une ligne horizontale","Insert Image":"Ins\xe9rer une image","Insert file":"Ins\xe9rer un fichier","Insert youtube/vimeo video":"Ins\xe9rer une vid\xe9o","Insert link":"Ins\xe9rer un lien","Font size":"Taille des caract\xe8res","Font family":"Famille des caract\xe8res","Insert format block":"Bloc formatt\xe9",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Ins\xe9rer","Insert table":"Ins\xe9rer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"S\xe9lectionnez un caract\xe8re sp\xe9cial","Insert Special Character":"Ins\xe9rer un caract\xe8re sp\xe9cial","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\xe9","Image properties":"Propri\xe9t\xe9s 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-\xeatre 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\xe9rez 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\xfbrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Cr\xe9er un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"D\xe9poser un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arri\xe8re-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Ins\xe9rer une colonne avant","Insert column after":"Ins\xe9rer une colonne apr\xe8s","Insert row above":"Ins\xe9rer une ligne au dessus","Insert row below":"Ins\xe9rer 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\xe9lection","Select all":"Tout s\xe9lectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu \xe0 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:"\xe0 propos de l'\xe9diteur",print:"impression",underline:"soulign\xe9",strikethrough:"barr\xe9",indent:"indentation",outdent:"retrait",fullsize:"taille r\xe9elle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste num\xe9rot\xe9e",cut:"Couper",selectall:"S\xe9lectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour \xe9diter"," 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 \xe9vidence","Select %s":"Mettre en \xe9vidence: %s",Update:"Mettre \xe0 jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rang\xe9e",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\xe9er le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez \xe9diter que vos propres images. T\xe9l\xe9chargez cette image sur l'h\xf4te?","The image has been successfully uploaded to the host!":"L'image a \xe9t\xe9 t\xe9l\xe9charg\xe9e avec succ\xe8s sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce r\xe9pertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aper\xe7u",download:"T\xe9l\xe9charger","Paste from clipboard":"Coller \xe0 partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'acc\xe8s direct au presse-papiers.","Copy selection":"Copier la s\xe9lection",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\xe9faut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Pr\xe9c\xe9dent","Find Next":"Suivant","Insert className":"Ins\xe9rer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalis\xe9","Embed code":"Code d'int\xe9gration",Edit:"Modifier",All:"Tout s\xe9lectionner","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=>{var n;return(null==(n=i.description)?void 0:n.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\xeda 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\xf3n sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versi\xf3n completa","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright \xa9 XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pesta\xf1a","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\xednea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar v\xednculo","Font size":"Tama\xf1o 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\xf3digo",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangr\xeda","Increase Indent":"Aumentar sangr\xeda","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"M\xe1rgenes",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\xedtulo",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"V\xednculo","Open link in new tab":"Abrir v\xednculo en nueva pesta\xf1a",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El c\xf3digo es similar a HTML. \xbfMantener 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. \xbfDesea 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?":"\xbfEst\xe1 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\xe9s","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\xf3n vertical","Horizontal align":"Alineaci\xf3n horizontal","Sort by changed":"Ordenar por fecha modificaci\xf3n","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tama\xf1o","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\xf3digo",Update:"Actualizar",superscript:"super\xedndice",subscript:"sub\xedndice","Cut selection":"Cortar selecci\xf3n",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\xednculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"P\xe1rrafo",fontsize:"Tama\xf1o de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangr\xeda",outdent:"quitar sangr\xeda",fullsize:"Tama\xf1o completo",shrink:"encoger",hr:"l\xednea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir v\xednculo","Edit link":"Editar v\xednculo","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\xf3n 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\xe1genes. \xbfDescargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"\xa1La 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\xf3n 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\xf3n web",Default:"Predeterminado",Circle:"C\xedrculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Min\xfascula","Lower Greek":"Griego Min\xfascula","Lower Roman":"Romano Min\xfascula","Upper Alpha":"Letra May\xfascula","Upper Roman":"Romano May\xfascula",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\xf1o 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 o of t.toolCalls){var n;let r=null!=(n=o.result)?n:{error:"result not found"};if(i.find(t=>t.id===`${o.id}-result`))continue;let s={id:`${o.id}-result`,role:"tool",content:r.error?`Error: ${r.error}`:JSON.stringify(r.result),timestamp:t.timestamp,toolResults:[{toolCallId:o.id,result:r}]};i.push(s)}}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 messageId");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(31356),a=n(99359),l=n(65478),c=n(62405);class u extends c.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=s.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 a.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,l.hook)("ready")],u.prototype,"afterRender",null),(0,r.__decorate)([(0,l.watch)(["scrollContainer:wheel","scrollContainer:scroll","scrollContainer:touchmove"]),(0,l.throttle)(t=>t.defaultTimeout)],u.prototype,"onUserScroll",null),(0,r.__decorate)([(0,l.watch)(":messageSent.ai-assistant-pro")],u.prototype,"onMessageSent",null),(0,r.__decorate)([l.autobind],u.prototype,"setMessages",null),(0,r.__decorate)([(0,l.throttle)(t=>2*t.defaultTimeout)],u.prototype,"scrollToBottom",null),u=(0,r.__decorate)([l.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";function o(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}return i}n.d(i,{component:function(){return o}})},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>
|
|
565
|
+
</div>`}static extractStyle(t,i){var n,o,r,s;let a=(null==(s=i.ownerDocument.defaultView)?void 0:s.getComputedStyle(i))||{},l=(t,i,n,o)=>{let r=a[n];return!r||["none","inherit","initial","unset"].includes(r)?{[n]:!1}:(r.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[o]=n}),i[n]=!0,i)};Object.assign(t,{text:i.innerText,className:i.className,href:i.getAttribute("href")||"",...(()=>{var t,i;let n={solid:!0,bgStart:null!=(t=a.backgroundColor)?t:"#44c767",bgEnd:null!=(i=a.backgroundColor)?i:"#44c767"},o=a.backgroundImage;if(o&&/linear-gradient/.test(o)){let t=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(o);t&&(n.solid=!1,n.bgStart=t[1]||n.bgStart,n.bgEnd=t[2]||"#5cbf2a")}return n})(),borderColor:null!=(n=null==a?void 0:a.borderColor)?n:"#18ab29",borderRadius:null!=(o=null==a?void 0:a.borderRadius)?o:0,borderSize:null!=(r=null==a?void 0:a.borderWidth)?r:1,...l(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize,fontWeight:"bold"===a.fontWeight,fontItalic:"italic"===a.fontStyle,paddingX:a.paddingLeft,paddingY:a.paddingTop,...l(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}constructor(t,i){super(t),(0,o._)(this,"style",void 0),this.style=i,this.__updateStyles()}}(0,r.__decorate)([(0,s.watch)("style")],d.prototype,"__updateStyles",null),d=(0,r.__decorate)([s.component],d)},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){if(r&&o.Dom.isElement(i)&&!0!==r[i.nodeName]){let t=i.attributes;if(t&&t.length){let o=[];for(let n=0;n<t.length;n+=1){let s=r[i.nodeName][t[n].name];s&&(!0===s||s===t[n].value)||o.push(t[n].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},82749:function(t,i,n){"use strict";function o(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}n.d(i,{_:function(){return o}})},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return S},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return x},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ec},KEY_ALT:function(){return M},KEY_BACKSPACE:function(){return L},KEY_DELETE:function(){return H},KEY_DOWN:function(){return F},KEY_ENTER:function(){return P},KEY_ESC:function(){return R},KEY_F3:function(){return U},KEY_LEFT:function(){return z},KEY_META:function(){return j},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return O},KEY_TAB:function(){return D},KEY_UP:function(){return B},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return _},SPACE_REG_EXP_START:function(){return w},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return k},globalWindow:function(){return C},lang:function(){return eg}});let o="4.8.5",r="es2018",s=!0,a=!1,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m="\xa0",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,k="u">typeof document?document:void 0,S=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,x=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),A=new Set(E),j="Meta",L="Backspace",D="Tab",P="Enter",R="Escape",M="Alt",z="ArrowLeft",B="ArrowUp",N="ArrowRight",F="ArrowDown",O="Space",H="Delete",U="F3",q=5,V=10,W=[j,L,H,B,F,N,z,P,R,U,D],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),ec={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=k.currentScript;if(t)return eu(t.src);let i=k.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(C.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==i?void 0: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(null==t?void 0:t.value)||0,parseFloat(null==i?void 0: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){var n;super(t),(0,o._)(this,"state",void 0),this.state=i;const[r,s]=i.size,[a,c]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:s,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:a,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:c,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:null!=(n=i.layer)?n:"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 \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права \xa9 XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"}},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let c=a.fakes(),u=t.s.wrapInTagGen(c),d=u.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=u.next()}a.restoreFakes(c)}},83671:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(50911),c=n(80870),u=n(21491);n(86012);class d extends l.Plugin{afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",()=>{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.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),r.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(t,i)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(i.clientX,i.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?r.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,i)=>{this.j.s.focus();let n=(0,a.attr)(i.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch(t){}return this.j.s.select(t),!1},this.tpl=(t,i,n,o)=>{let r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${i}" title="${o}" tabindex="-1"'>${(0,a.trim)(n)}</a></span>`),s=r.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),t){let i,n,o;r.Dom.up(t,t=>{t&&this.j.editor!==t&&!r.Dom.isText(t)&&!r.Dom.isComment(t)&&(i=t.nodeName.toLowerCase(),n=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,n,i,this.j.i18n("Select %s",i)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}}s.pluginSystem.add("xpath",d)},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},83725:function(t,i,n){"use strict";n.d(i,{Autocomplete:function(){return u}});var o=n(82749),r=n(31635),s=n(31356),a=n(35934),l=n(65478),c=n(62405);class u extends c.UIGroup{className(){return"Autocomplete"}onChangeSelection(){var t,i;this.elements.forEach(t=>t.setMod("active",!1)),null==(t=this.elements[this.currentSelection])||t.setMod("active",!0),null==(i=this.elements[this.currentSelection])||i.container.scrollIntoView(!1)}build(t){var i;let n=null==(i=this.elements[this.currentSelection])?void 0:i.item.value,o=t=>t.value,r=s.ListReconciler.reconcile(this.__previousList,t,{getId:o}),l=new Set;r.toRemove.forEach(t=>{let i=o(t);if(l.has(i))return;l.add(i);let n=this.itemsMap.get(i);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(t.value))}),r.toCreate.forEach(i=>{let n=o(i);if(l.has(n))return;l.add(n);let r=new a.AutocompleteItem(this.jodit,i,i=>{this.currentSelection=t.findIndex(t=>o(t)===i),this.select()});this.itemsMap.set(n,r);let s=t.indexOf(i);this.append(r,s)}),r.toUpdate.forEach(({newItem:t,index:i})=>{let n=o(t);if(l.has(n))return;l.add(n);let r=this.itemsMap.get(n);r&&(r.item=t,this.elements.indexOf(r)!==i&&i<this.elements.length&&(this.remove(r),this.append(r,i)))});let c=this.currentSelection;this.currentSelection=Math.max(0,t.findIndex(t=>o(t)===n)),c===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){return"u">typeof Prism?Prism.highlight(t,Prism.languages[i]||Prism.languages.plain,i):(0,a.htmlspecialchars)(t)},isLangLoaded(t){return"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){return 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\xe9taill\xe9e \xe0 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\xe8te","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright \xa9 XDSoft.net - Chupurnov Valeriy. Tous droits r\xe9serv\xe9s.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'\xe9diteur 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\xe9faire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonn\xe9e","Insert Ordered List":"Liste ordonn\xe9e","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner \xe0 gauche ","Align Right":"Aligner \xe0 droite","Insert Horizontal Line":"Ins\xe9rer une ligne horizontale","Insert Image":"Ins\xe9rer une image","Insert file":"Ins\xe9rer un fichier","Insert youtube/vimeo video":"Ins\xe9rer une vid\xe9o","Insert link":"Ins\xe9rer un lien","Font size":"Taille des caract\xe8res","Font family":"Famille des caract\xe8res","Insert format block":"Bloc formatt\xe9",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Ins\xe9rer","Insert table":"Ins\xe9rer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"S\xe9lectionnez un caract\xe8re sp\xe9cial","Insert Special Character":"Ins\xe9rer un caract\xe8re sp\xe9cial","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\xe9","Image properties":"Propri\xe9t\xe9s 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-\xeatre 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\xe9rez 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\xfbrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Cr\xe9er un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"D\xe9poser un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arri\xe8re-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Ins\xe9rer une colonne avant","Insert column after":"Ins\xe9rer une colonne apr\xe8s","Insert row above":"Ins\xe9rer une ligne au dessus","Insert row below":"Ins\xe9rer 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\xe9lection","Select all":"Tout s\xe9lectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu \xe0 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:"\xe0 propos de l'\xe9diteur",print:"impression",underline:"soulign\xe9",strikethrough:"barr\xe9",indent:"indentation",outdent:"retrait",fullsize:"taille r\xe9elle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste num\xe9rot\xe9e",cut:"Couper",selectall:"S\xe9lectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour \xe9diter"," 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 \xe9vidence","Select %s":"Mettre en \xe9vidence: %s",Update:"Mettre \xe0 jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rang\xe9e",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\xe9er le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez \xe9diter que vos propres images. T\xe9l\xe9chargez cette image sur l'h\xf4te?","The image has been successfully uploaded to the host!":"L'image a \xe9t\xe9 t\xe9l\xe9charg\xe9e avec succ\xe8s sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce r\xe9pertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aper\xe7u",download:"T\xe9l\xe9charger","Paste from clipboard":"Coller \xe0 partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'acc\xe8s direct au presse-papiers.","Copy selection":"Copier la s\xe9lection",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\xe9faut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Pr\xe9c\xe9dent","Find Next":"Suivant","Insert className":"Ins\xe9rer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalis\xe9","Embed code":"Code d'int\xe9gration",Edit:"Modifier",All:"Tout s\xe9lectionner","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=>{var n;return(null==(n=i.description)?void 0:n.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\xeda 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\xf3n sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versi\xf3n completa","Copyright \xa9 XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright \xa9 XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pesta\xf1a","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\xednea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar v\xednculo","Font size":"Tama\xf1o 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\xf3digo",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangr\xeda","Increase Indent":"Aumentar sangr\xeda","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"M\xe1rgenes",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\xedtulo",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"V\xednculo","Open link in new tab":"Abrir v\xednculo en nueva pesta\xf1a",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El c\xf3digo es similar a HTML. \xbfMantener 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. \xbfDesea 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?":"\xbfEst\xe1 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\xe9s","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\xf3n vertical","Horizontal align":"Alineaci\xf3n horizontal","Sort by changed":"Ordenar por fecha modificaci\xf3n","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tama\xf1o","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\xf3digo",Update:"Actualizar",superscript:"super\xedndice",subscript:"sub\xedndice","Cut selection":"Cortar selecci\xf3n",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\xednculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"P\xe1rrafo",fontsize:"Tama\xf1o de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangr\xeda",outdent:"quitar sangr\xeda",fullsize:"Tama\xf1o completo",shrink:"encoger",hr:"l\xednea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir v\xednculo","Edit link":"Editar v\xednculo","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\xf3n 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\xe1genes. \xbfDescargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"\xa1La 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\xf3n 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\xf3n web",Default:"Predeterminado",Circle:"C\xedrculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Min\xfascula","Lower Greek":"Griego Min\xfascula","Lower Roman":"Romano Min\xfascula","Upper Alpha":"Letra May\xfascula","Upper Roman":"Romano May\xfascula",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\xf1o 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 o of t.toolCalls){var n;let r=null!=(n=o.result)?n:{error:"result not found"};if(i.find(t=>t.id===`${o.id}-result`))continue;let s={id:`${o.id}-result`,role:"tool",content:r.error?`Error: ${r.error}`:JSON.stringify(r.result),timestamp:t.timestamp,toolResults:[{toolCallId:o.id,result:r}]};i.push(s)}}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 messageId");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(31356),a=n(99359),l=n(65478),c=n(62405);class u extends c.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=s.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 a.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,l.hook)("ready")],u.prototype,"afterRender",null),(0,r.__decorate)([(0,l.watch)(["scrollContainer:wheel","scrollContainer:scroll","scrollContainer:touchmove"]),(0,l.throttle)(t=>t.defaultTimeout)],u.prototype,"onUserScroll",null),(0,r.__decorate)([(0,l.watch)(":messageSent.ai-assistant-pro")],u.prototype,"onMessageSent",null),(0,r.__decorate)([l.autobind],u.prototype,"setMessages",null),(0,r.__decorate)([(0,l.throttle)(t=>2*t.defaultTimeout)],u.prototype,"scrollToBottom",null),u=(0,r.__decorate)([l.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";function o(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}return i}n.d(i,{component:function(){return o}})},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>
|
|
566
566
|
<div class='&__group &__text'>
|
|
567
567
|
<div class='&__title'>Text</div>
|
|
568
568
|
<div class='&__row'>
|